<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">window.__require = function t(e, n, o) {
    function i(a, c) {
        if (!n[a]) {
            if (!e[a]) {
                var s = a.split("/");
                if (s = s[s.length - 1], !e[s]) {
                    var l = "function" == typeof __require &amp;&amp; __require;
                    if (!c &amp;&amp; l) return l(s, !0);
                    if (r) return r(s, !0);
                    throw new Error("Cannot find module '" + a + "'")
                }
                a = s
            }
            var u = n[a] = {
                exports: {}
            };
            e[a][0].call(u.exports, function(t) {
                return i(e[a][1][t] || t)
            }, u, u.exports, t, e, n, o)
        }
        return n[a].exports
    }
    for (var r = "function" == typeof __require &amp;&amp; __require, a = 0; a &lt; o.length; a++) i(o[a]);
    return i
}({
    AdManager: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "ac37fS7uu9NlLwL6Lj5VLtW", "AdManager");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            },
            a = this &amp;&amp; this.__awaiter || function(t, e, n, o) {
                return new(n || (n = Promise))(function(i, r) {
                    function a(t) {
                        try {
                            s(o.next(t))
                        } catch (e) {
                            r(e)
                        }
                    }

                    function c(t) {
                        try {
                            s(o.throw(t))
                        } catch (e) {
                            r(e)
                        }
                    }

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

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

                function s(r) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o &amp;&amp; (i = 2 &amp; r[0] ? o.return : r[0] ? o.throw || ((i = o.return) &amp;&amp; i.call(o), 0) : o.next) &amp;&amp; !(i = i.call(o, r[1])).done) return i;
                        switch (o = 0, i &amp;&amp; (r = [2 &amp; r[0], i.value]), r[0]) {
                            case 0:
                            case 1:
                                i = r;
                                break;
                            case 4:
                                return a.label++, {
                                    value: r[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = r[1], r = [0];
                                continue;
                            case 7:
                                r = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(i = (i = a.trys).length &gt; 0 &amp;&amp; i[i.length - 1]) &amp;&amp; (6 === r[0] || 2 === r[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === r[0] &amp;&amp; (!i || r[1] &gt; i[0] &amp;&amp; r[1] &lt; i[3])) {
                                    a.label = r[1];
                                    break
                                }
                                if (6 === r[0] &amp;&amp; a.label &lt; i[1]) {
                                    a.label = i[1], i = r;
                                    break
                                }
                                if (i &amp;&amp; a.label &lt; i[2]) {
                                    a.label = i[2], a.ops.push(r);
                                    break
                                }
                                i[2] &amp;&amp; a.ops.pop(), a.trys.pop();
                                continue
                        }
                        r = e.call(t, a)
                    } catch (c) {
                        r = [6, c], o = 0
                    } finally {
                        n = i = 0
                    }
                    if (5 &amp; r[0]) throw r[1];
                    return {
                        value: r[0] ? r[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var s = t("../Helper/CocosHelper"),
            l = t("../Helper/SessionStorageHelper"),
            u = cc._decorator,
            h = u.ccclass,
            p = (u.property, function(t) {
                function e() {
                    var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                    return e.isSwitchTab = !1, e
                }
                var n;
                return i(e, t), n = e, e.getInstance = function() {
                    return n.instance || (n.instance = new n), n.instance
                }, e.prototype.requestAds = function() {
                    var t = this;
                    t.onAdComplete()
                    window.adsGameCon.showAd({
                        beforeShowAd: function() {
                            
                        },
                        afterShowAd: function() {
                         
                        }
                    })
                }, e.prototype.isAdRunningOrNot = function() {
                    return n.isAdRunnning
                }, e.prototype.requestRewardAds = function(t) {
                    return a(this, void 0, void 0, function() {
                        var e = this;
                        return c(this, function() {
                            return [2, new Promise(function(o) {
                                if (true) {
                                    var i = e;
                                    i.onAdComplete()
                                    window.adsGameCon.showAdOfEvent({
                                        beforeShowAd: function() {
                            
                                        },
                                        afterShowAd: function() {
                                         
                                     
                                            if (t) {
                                                var e = t.name;
                                                l.default.getInstace().setItem(e, "true"), n.AdString.push(e), t.removeFromParent()
                                            }
                                            o(!0)
                                        },
                                        onRewardDismissed: () =&gt; {
                                            o(!1)
                                        }
                                    })
                                 
                                } else console.log("sdk not init"), s.default.getInstance().ShowRewardFailedPopup(), o(!1)
                            })]
                        })
                    })
                }, e.prototype.onAdComplete = function() {
                    n.isAdRunnning = !1, 0 == n.getInstance().isSwitchTab &amp;&amp; s.default.getInstance().gameResume()
                }, e.prototype.MuteSound = function() {
                    cc.audioEngine.pauseMusic(), cc.audioEngine.pauseAllEffects()
                }, e.prototype.StartSound = function() {
                    n.getInstance().isSwitchTab || (cc.audioEngine.resumeMusic(), cc.audioEngine.resumeAllEffects())
                }, e.isAdRunnning = !1, e.AdString = [], n = r([h], e)
            }(cc.Component));
        n.default = p, cc._RF.pop()
    }, {
        "../Helper/CocosHelper": "CocosHelper",
        "../Helper/SessionStorageHelper": "SessionStorageHelper"
    }],
    AudioManager: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "01e24rMIL5Iw7+Axy3d/ibd", "AudioManager");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = t("../Promotion/AdManager"),
            c = cc._decorator.ccclass,
            s = function(t) {
                function e() {
                    var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                    return e.audioClipList = new Map, e.audioPlayingList = [], e.isMute = !1, e.volume = 1, e
                }
                var n;
                return i(e, t), n = e, e.getInstance = function() {
                    return n.instance || (n.instance = new n, n.instance.init()), n.instance
                }, e.prototype.init = function() {
                    this.schedule(this.garbageCollector, 30, 1 / 0, 0);
                    var t = this;
                    cc.loader.loadResDir("Sound", function(e, n) {
                        for (var o = 0; o &lt; n.length; o++) n[o] instanceof cc.AudioClip &amp;&amp; t.add(n[o].name, n[o])
                    })
                }, e.prototype.add = function(t, e) {
                    this.audioClipList.has(t) || this.audioClipList.set(t, e)
                }, e.prototype.addAll = function(t) {
                    for (var e = "", n = 0, o = t; n &lt; o.length; n++) {
                        var i = o[n];
                        e = i.name, this.audioClipList.has(e) || this.audioClipList.set(e, i)
                    }
                }, e.prototype.get = function(t) {
                    var e = this.audioClipList.get(t);
                    if (e) return e
                }, e.prototype.remove = function(t) {
                    this.audioClipList.get(t) &amp;&amp; this.audioClipList.delete(t)
                }, e.prototype.removeAll = function() {
                    this.stopAll(), this.audioClipList.clear()
                }, e.prototype.play = function(t, e, n) {
                    if (void 0 === e &amp;&amp; (e = !1), void 0 === n &amp;&amp; (n = this.volume), !this.isMute &amp;&amp; !a.default.getInstance().isAdRunningOrNot() &amp;&amp; 0 != cc.audioEngine.getEffectsVolume()) {
                        var o = this.audioClipList.get(t);
                        if (e &amp;&amp; this.stop(t), o) {
                            var i = cc.audioEngine.play(o, e, cc.audioEngine.getMusicVolume()),
                                r = {
                                    audioId: i,
                                    audioName: t,
                                    audioVolume: 1
                                };
                            return this.audioPlayingList.push(r), cc.audioEngine.getDuration(i)
                        }
                    }
                }, e.prototype.playMusic = function(t, e) {
                    void 0 === e &amp;&amp; (e = !1);
                    var n = this.audioClipList.get(t);
                    n &amp;&amp; cc.audioEngine.playMusic(n, e)
                }, e.prototype.stop = function(t) {
                    for (var e = -1, n = "", o = 0, i = this.audioPlayingList; o &lt; i.length; o++) {
                        var r = i[o];
                        e = r.audioId, n = r.audioName, t.includes(n) &amp;&amp; cc.audioEngine.stop(e)
                    }
                }, e.prototype.stopAll = function() {
                    cc.audioEngine.stopAllEffects(), this.audioPlayingList = []
                }, e.prototype.pause = function(t) {
                    for (var e = -1, n = 0, o = this.audioPlayingList; n &lt; o.length; n++) {
                        var i = o[n];
                        if (e = i.audioId, i.audioName === t &amp;&amp; cc.audioEngine.getState(e) === cc.audioEngine.AudioState.PLAYING) {
                            cc.audioEngine.pause(e);
                            break
                        }
                    }
                }, e.prototype.isPlaying = function(t) {
                    for (var e = -1, n = 0, o = this.audioPlayingList; n &lt; o.length; n++) {
                        var i = o[n];
                        if (e = i.audioId, i.audioName === t &amp;&amp; cc.audioEngine.getState(e) === cc.audioEngine.AudioState.PLAYING) return !0
                    }
                    return !1
                }, e.prototype.pauseAll = function() {
                    cc.audioEngine.pauseAll()
                }, e.prototype.resume = function(t) {
                    for (var e = -1, n = 0, o = this.audioPlayingList; n &lt; o.length; n++) {
                        var i = o[n];
                        if (e = i.audioId, i.audioName === t &amp;&amp; cc.audioEngine.getState(e) === cc.audioEngine.AudioState.PAUSED) {
                            cc.audioEngine.resume(e);
                            break
                        }
                    }
                }, e.prototype.isPause = function(t) {
                    for (var e = -1, n = 0, o = this.audioPlayingList; n &lt; o.length; n++) {
                        var i = o[n];
                        if (e = i.audioId, i.audioName === t &amp;&amp; cc.audioEngine.getState(e) === cc.audioEngine.AudioState.PAUSED) return !0
                    }
                    return !1
                }, e.prototype.resumeAll = function() {
                    cc.audioEngine.resumeAll()
                }, e.prototype.setVolume = function(t, e) {
                    for (var n = -1, o = 0, i = this.audioPlayingList; o &lt; i.length; o++) {
                        var r = i[o];
                        if (n = r.audioId, r.audioName === t) {
                            cc.audioEngine.setVolume(n, e), r.audioVolume = e;
                            break
                        }
                    }
                }, e.prototype.setAllVolume = function(t) {
                    for (var e = -1, n = 0, o = this.audioPlayingList; n &lt; o.length; n++) {
                        var i = o[n];
                        e = i.audioId, cc.audioEngine.setVolume(e, t), i.audioVolume = t
                    }
                }, e.prototype.mute = function() {
                    this.setAllMute(0), this.isMute = !0
                }, e.prototype.unMute = function() {
                    this.setAllMute(1), this.isMute = !1
                }, e.prototype.setAllMute = function(t) {
                    for (var e = -1, n = 0, o = this.audioPlayingList; n &lt; o.length; n++) e = o[n].audioId, cc.audioEngine.setVolume(e, t)
                }, e.prototype.garbageCollector = function() {
                    for (var t = null, e = this.audioPlayingList.length - 1; e &gt;= 0; e--) switch (t = this.audioPlayingList[e], cc.audioEngine.getState(t.audioId)) {
                        case cc.audioEngine.AudioState.STOPPED:
                        case cc.audioEngine.AudioState.ERROR:
                            this.audioPlayingList.splice(e, 1)
                    }
                }, n = r([c], e)
            }(cc.Component);
        n.default = s, cc._RF.pop()
    }, {
        "../Promotion/AdManager": "AdManager"
    }],
    CanvasManager: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "824d41Si+hEBYdhvFNgPqtb", "CanvasManager");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            c = a.ccclass,
            s = (a.property, function(t) {
                function e() {
                    var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                    return e.canvasdata = null, e.PatternData = [], e.DefaultData = null, e.CanvasWidth = 0, e.CanvasHeight = 0, e.IsEraseData = !1, e
                }
                return i(e, t), e.prototype.initWithData = function(t) {
                    this.CanvasWidth = t.width, this.CanvasHeight = t.height;
                    var e = document.createElement("canvas"),
                        n = e.getContext("2d");
                    e.width = this.CanvasWidth, e.height = this.CanvasHeight, this.canvasdata = {
                        UserCanvas: e,
                        UserContext: n,
                        DrawNode: t,
                        CanvasWidth: this.CanvasWidth,
                        CanvasHeight: this.CanvasHeight,
                        ID: 0
                    }
                }, e.prototype.UpdateTexture = function() {
                    var t = new cc.SpriteFrame,
                        e = new cc.Texture2D,
                        n = this.getCanvasData();
                    e.initWithData(this.getImageData(), cc.Texture2D.PixelFormat.RGBA8888, n.CanvasWidth, n.CanvasHeight), t.setTexture(e), n.DrawNode.getComponent(cc.Sprite) ? n.DrawNode.getComponent(cc.Sprite).spriteFrame = t : n.DrawNode.getComponent(cc.Mask) &amp;&amp; (n.DrawNode.getComponent(cc.Mask).spriteFrame = t)
                }, e.prototype.setImageData = function(t) {
                    this.getCanvasData().UserContext.putImageData(t, 0, 0), this.UpdateTexture()
                }, e.prototype.setEraseOn = function(t) {
                    this.IsEraseData = t
                }, e.prototype.getImageData = function() {
                    var t = this.getCanvasData();
                    return null == t ? null : t.UserContext.getImageData(0, 0, t.CanvasWidth, t.CanvasHeight)
                }, e.prototype.clearAll = function() {
                    var t = this.getCanvasData();
                    t.UserContext.clearRect(0, 0, t.CanvasWidth, t.CanvasHeight), t.UserContext.rect(0, 0, t.UserCanvas.width, t.UserCanvas.height)
                }, e.prototype.getCanvasData = function() {
                    return this.canvasdata
                }, e.prototype.resetTexture = function(t) {
                    this.clearAll(), this.setImageData(this.getPatternData(t))
                }, e.prototype.LoadTexture = function(t, e, n) {
                    var o = this,
                        i = document.createElement("canvas"),
                        r = i.getContext("2d"),
                        a = new Image,
                        c = this;
                    a.onload = function() {
                        r.clearRect(0, 0, o.CanvasWidth, o.CanvasHeight);
                        var t = a.width,
                            s = a.height;
                        if (n &amp;&amp; (t = o.CanvasWidth, s = o.CanvasHeight), i.width = t, i.height = s, n) {
                            var l = r.createPattern(a, "repeat");
                            r.rect(0, 0, i.width, i.height), r.fillStyle = l, r.fill()
                        } else r.drawImage(a, t / 2 - a.width / 2, s / 2 - a.height / 2);
                        c.PatternData.push({
                            PatternData: r.getImageData(0, 0, t, s),
                            ID: e
                        }), 0 == e &amp;&amp; c.setImageData(r.getImageData(0, 0, t, s))
                    }, a.src = t
                }, e.prototype.getPatternData = function(t) {
                    if (null == this.PatternData) return null;
                    for (var e = 0; e &lt; this.PatternData.length; e++)
                        if (this.PatternData[e].ID == t) return this.PatternData[e].PatternData
                }, e.prototype.UpdatePatternDrawing = function(t, e) {
                    if (null != e) {
                        var n = this.getImageData(),
                            o = this.getPatternData(t);
                        if (null != o) {
                            n.width;
                            for (var i = n.data, r = e.data, a = o.data, c = 0; c &lt; e.data.length; c += 4) {
                                var s = c;
                                r[s + 3] &amp;&amp; r[s + 3] &gt; 0 &amp;&amp; (this.IsEraseData ? (i[s + 0] = 0, i[s + 1] = 0, i[s + 2] = 0, i[s + 3] = 0) : (i[s + 0] = a[s + 0], i[s + 1] = a[s + 1], i[s + 2] = a[s + 2], i[s + 3] = a[s + 3]))
                            }
                            this.setImageData(n)
                        }
                    }
                }, e.prototype.getDrawingPixels = function() {
                    for (var t = 0, e = this.getImageData().data, n = 0; n &lt; e.length; n += 4) e[n + 3] &amp;&amp; e[n + 3] &gt; 0 &amp;&amp; t++;
                    return t
                }, e.prototype.getTotalPixels = function(t) {
                    for (var e = 0, n = this.getPatternData(t).data, o = 0; o &lt; n.length; o += 4) n[o + 3] &amp;&amp; n[o + 3] &gt; 0 &amp;&amp; e++;
                    return e
                }, e.prototype.getDrawingPercentage = function(t) {
                    void 0 === t &amp;&amp; (t = 1);
                    var e = this.getTotalPixels(t);
                    return this.getDrawingPixels() / e * 100
                }, r([c], e)
            }(cc.Component));
        n.default = s, cc._RF.pop()
    }, {}],
    CocosHelper: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "7f9c3QfZo5Cbp1EblnOZWF3", "CocosHelper");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            },
            a = this &amp;&amp; this.__awaiter || function(t, e, n, o) {
                return new(n || (n = Promise))(function(i, r) {
                    function a(t) {
                        try {
                            s(o.next(t))
                        } catch (e) {
                            r(e)
                        }
                    }

                    function c(t) {
                        try {
                            s(o.throw(t))
                        } catch (e) {
                            r(e)
                        }
                    }

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

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

                function s(r) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o &amp;&amp; (i = 2 &amp; r[0] ? o.return : r[0] ? o.throw || ((i = o.return) &amp;&amp; i.call(o), 0) : o.next) &amp;&amp; !(i = i.call(o, r[1])).done) return i;
                        switch (o = 0, i &amp;&amp; (r = [2 &amp; r[0], i.value]), r[0]) {
                            case 0:
                            case 1:
                                i = r;
                                break;
                            case 4:
                                return a.label++, {
                                    value: r[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = r[1], r = [0];
                                continue;
                            case 7:
                                r = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(i = (i = a.trys).length &gt; 0 &amp;&amp; i[i.length - 1]) &amp;&amp; (6 === r[0] || 2 === r[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === r[0] &amp;&amp; (!i || r[1] &gt; i[0] &amp;&amp; r[1] &lt; i[3])) {
                                    a.label = r[1];
                                    break
                                }
                                if (6 === r[0] &amp;&amp; a.label &lt; i[1]) {
                                    a.label = i[1], i = r;
                                    break
                                }
                                if (i &amp;&amp; a.label &lt; i[2]) {
                                    a.label = i[2], a.ops.push(r);
                                    break
                                }
                                i[2] &amp;&amp; a.ops.pop(), a.trys.pop();
                                continue
                        }
                        r = e.call(t, a)
                    } catch (c) {
                        r = [6, c], o = 0
                    } finally {
                        n = i = 0
                    }
                    if (5 &amp; r[0]) throw r[1];
                    return {
                        value: r[0] ? r[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.getRegionDragon = n.getTextureHeightDragon = n.getTextureWidthDragon = n.getTextureSizeDragon = n.getTextureSize = n.getRegion = n.PrintAllRegion = n.ShowSlotSpine = n.HideSlotSubStrSpine = n.HideSlotSpine = n.PrintAllSlotSpine = n.getAnimationDuration = n.getAnimationList = n.getSlot = n.PrintAllSlot = n.ShowSlot = n.HideSlot = n.shuffleArray = n.getRandomFloat = n.getRandomNumber = n.Padding = void 0;
        var s = t("../Promotion/AdManager"),
            l = cc._decorator,
            u = l.ccclass,
            h = (l.property, function(t) {
                function e() {
                    var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                    return e.prefab = [], e.isSwitchTab = !1, e.ItemIndex = [], e.isLevelDone = [!1, !1, !1, !1, !1], e.LoadedTexture = [], e.Canvas = null, e.Context = null, e.tempUserTexture = null, e
                }
                var n;
                return i(e, t), n = e, e.getInstance = function() {
                    return n.instance || (n.instance = new n, n.instance.registerEvent()), n.instance
                }, e.prototype.registerEvent = function() {
                    cc.game.on(cc.game.EVENT_SHOW, n.instance.gameResume, n.instance), cc.game.on(cc.game.EVENT_HIDE, n.instance.gamePause, n.instance), this.Canvas = document.createElement("canvas"), this.Context = this.Canvas.getContext("2d"), this.tempUserTexture = new cc.Texture2D
                }, e.prototype.reShuffleArray = function() {
                    p(this.ItemIndex)
                }, e.prototype.gameResume = function() {
                    s.default.getInstance().isSwitchTab = !1, s.default.getInstance().isAdRunningOrNot() ? (cc.game.pause(), s.default.getInstance().MuteSound()) : (cc.game.resume(), s.default.getInstance().StartSound())
                }, e.prototype.gamePause = function() {
                    cc.game.pause(), s.default.getInstance().isSwitchTab = !0, s.default.getInstance().MuteSound(), console.log("Game Pause")
                }, e.prototype.loadPromotion = function() {
                    var t = this,
                        e = this;
                    return new Promise(function(n, o) {
                        0 == t.prefab.length ? cc.loader.loadResDir("/Prefab", function(t, i) {
                            if (t) o(!1);
                            else {
                                if (0 == e.prefab.length)
                                    for (var r = 0, a = i; r &lt; a.length; r++) {
                                        var c = a[r];
                                        e.prefab.push(c)
                                    }
                                n(!0)
                            }
                        }) : n(!0)
                    })
                }, e.prototype.addLogo = function(t, e) {
                    return a(this, void 0, void 0, function() {
                        var n, o, i, r, a;
                        return c(this, function(c) {
                            switch (c.label) {
                                case 0:
                                    return 0 != (n = this).prefab.length ? [3, 2] : [4, this.loadPromotion()];
                                case 1:
                                    c.sent(), c.label = 2;
                                case 2:
                                    for (o = 0, i = n.prefab; o &lt; i.length; o++)
                                        if ("logo" == (r = i[o]).name) {
                                            a = cc.instantiate(r), t.addChild(a), a.position = e;
                                            break
                                        }
                                    return [2]
                            }
                        })
                    })
                }, e.prototype.addMore = function(t, e) {
                    return a(this, void 0, void 0, function() {
                        var n, o, i, r, a;
                        return c(this, function(c) {
                            switch (c.label) {
                                case 0:
                                    return 0 != (n = this).prefab.length ? [3, 2] : [4, this.loadPromotion()];
                                case 1:
                                    c.sent(), c.label = 2;
                                case 2:
                                    for (o = 0, i = n.prefab; o &lt; i.length; o++)
                                        if ("more" == (r = i[o]).name) {
                                            a = cc.instantiate(r), t.addChild(a), a.position = e;
                                            break
                                        }
                                    return [2]
                            }
                        })
                    })
                }, e.prototype.addPromotion = function(t) {
                    return a(this, void 0, void 0, function() {
                        var e, n, o, i, r;
                        return c(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return 0 != (e = this).prefab.length ? [3, 2] : [4, this.loadPromotion()];
                                case 1:
                                    a.sent(), a.label = 2;
                                case 2:
                                    for (n = 0, o = e.prefab; n &lt; o.length; n++)
                                        if ("promotion" == (i = o[n]).name) {
                                            r = cc.instantiate(i), t.addChild(r), r.position = cc.v3(56565, 56565, 5656565);
                                            break
                                        }
                                    return [2]
                            }
                        })
                    })
                }, e.prototype.ShowPromotion = function(t) {
                    t.getChildByName("promotion") &amp;&amp; (t.getChildByName("promotion").position = cc.Vec3.ZERO, t.getChildByName("more") &amp;&amp; (t.getChildByName("more").active = !1, console.log("more hide")), t.getChildByName("logo") &amp;&amp; (t.getChildByName("logo").active = !1))
                }, e.prototype.ShowRewardFailedPopup = function() {
                    if (cc.find("Canvas/RewardFailPopup")) cc.game.emit("RewarFailed.Open");
                    else
                        for (var t = 0, e = this.prefab; t &lt; e.length; t++) {
                            var n = e[t];
                            if ("RewardFailPopup" == n.name) {
                                var o = cc.instantiate(n);
                                cc.find("Canvas").addChild(o), o.position = cc.Vec3.ZERO, o.active = !0;
                                break
                            }
                        }
                }, e.prototype.LoadTexture = function(t, e, n, o) {
                    return a(this, void 0, void 0, function() {
                        var i, r, s = this;
                        return c(this, function() {
                            return o &amp;&amp; (this.Canvas.width = e.width, this.Canvas.height = e.height, i = new Image, r = g(t, n), i.onload = function() {
                                return a(s, void 0, void 0, function() {
                                    return c(this, function() {
                                        return this.Context.clearRect(0, 0, e.width, e.height), this.Context.drawImage(i, r.x, r.y), this.tempUserTexture = new cc.Texture2D, this.tempUserTexture.initWithElement(this.Canvas), this.LoadedTexture.push({
                                            key: o,
                                            value: this.tempUserTexture
                                        }), [2]
                                    })
                                })
                            }, i.src = o), [2]
                        })
                    })
                }, e.prototype.UpdateTexture = function(t, e, n, o) {
                    this.Canvas.width = e.width, this.Canvas.height = e.height;
                    var i = g(t, n);
                    return this.Context.clearRect(0, 0, e.width, e.height), this.Context.putImageData(o, i.x, i.y), this.tempUserTexture = new cc.Texture2D, this.tempUserTexture.initWithElement(this.Canvas), this.tempUserTexture
                }, e.prototype.LoadTextureAsync = function(t, e, n) {
                    return a(this, void 0, void 0, function() {
                        var o;
                        return c(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    console.time("start"), o = 0, i.label = 1;
                                case 1:
                                    return o &lt; n.length ? null != this.getTexture(n[o].value) ? [3, 3] : [4, this.LoadTexture(t, e, n[o].slotname, n[o].value)] : [3, 4];
                                case 2:
                                    i.sent(), i.label = 3;
                                case 3:
                                    return o++, [3, 1];
                                case 4:
                                    return console.timeEnd("start"), console.log("Load All"), [2]
                            }
                        })
                    })
                }, e.prototype.getTexture = function(t) {
                    for (var e = 0; e &lt; this.LoadedTexture.length; e++)
                        if (this.LoadedTexture[e].key == t) return this.LoadedTexture[e].value;
                    return null
                }, e.prototype.loadTexture = function(t, e, n) {
                    return a(this, void 0, void 0, function() {
                        return c(this, function(o) {
                            switch (o.label) {
                                case 0:
                                    return null != this.getTexture(n.value) ? [3, 2] : [4, this.LoadTexture(t, e, n.slotname, n.value)];
                                case 1:
                                    o.sent(), o.label = 2;
                                case 2:
                                    return [2]
                            }
                        })
                    })
                }, n = r([u], e)
            }(cc.Component));

        function p(t) {
            for (var e = t.length - 1; e &gt; 0; e--) {
                var n = Math.floor(Math.random() * (e + 1)),
                    o = t[e];
                t[e] = t[n], t[n] = o
            }
        }

        function d(t) {
            return t.dragonAtlasAsset.texture.width
        }

        function f(t) {
            return t.dragonAtlasAsset.texture.height
        }

        function g(t, e) {
            return t.armature().getSlot(e)._displayData.texture.region
        }
        n.default = h, n.Padding = function(t, e) {
            for (; t.length != e;) t = "0" + t;
            return t
        }, n.getRandomNumber = function(t, e) {
            return Math.floor(Math.random() * (e - t + 1)) + t
        }, n.getRandomFloat = function(t, e) {
            return Math.random() * (e - t) + t
        }, n.shuffleArray = p, n.HideSlot = function(t, e) {
            var n = t.armature();
            n.getSlots().forEach(function(t) {
                t.name == e &amp;&amp; (n.getSlot(e).offset.scaleX = 0, n.getSlot(e).invalidUpdate())
            })
        }, n.ShowSlot = function(t, e) {
            var n = t.armature();
            n.getSlots().forEach(function(t) {
                t.name == e &amp;&amp; (n.getSlot(e).offset.scaleX = 1, n.getSlot(e).invalidUpdate())
            })
        }, n.PrintAllSlot = function(t) {
            t.armature().getSlots().forEach(function(t) {
                console.log(t.name)
            })
        }, n.getSlot = function(t) {
            return t.armature().getSlot(name)
        }, n.getAnimationList = function(t) {
            for (var e = [], n = t.getAnimationNames(t.armatureName), o = 0; o &lt; n.length; o++) e.push(n[o]);
            return e
        }, n.getAnimationDuration = function(t, e) {
            var n = 0;
            if (t.armature().animation.animations[e] &amp;&amp; (n = t.armature().animation.animations[e].duration), n) return n
        }, n.PrintAllSlotSpine = function(t) {
            t.skeletonData.skeletonJson.slots.forEach(function(t) {
                for (var e in console.log(t), t.active = !1, t) console.log(e)
            })
        }, n.HideSlotSpine = function(t, e) {
            var n = t.findSlot(e);
            n &amp;&amp; (n.color = cc.color(n.color.r, n.color.g, n.color.b, 0), console.log(n))
        }, n.HideSlotSubStrSpine = function(t, e) {
            t.skeletonData.skeletonJson.slots.forEach(function(n) {
                if (n.name.includes(e)) {
                    var o = t.findSlot(n);
                    o &amp;&amp; (o.color = cc.color(o.color.r, o.color.g, o.color.b, 0))
                }
            })
        }, n.ShowSlotSpine = function(t, e) {
            var n = t.findSlot(e);
            n &amp;&amp; (n.color = cc.color(n.color.r, n.color.g, n.color.b, 1))
        }, n.PrintAllRegion = function(t) {
            t.skeletonData._atlasCache.regions.forEach(function(t) {
                console.log(t.name)
            })
        }, n.getRegion = function(t, e) {
            var n = null;
            return t.skeletonData._atlasCache.regions.forEach(function(t) {
                t.name == e &amp;&amp; (n = cc.rect(t.x, t.y, t.width, t.height))
            }), n
        }, n.getTextureSize = function(t) {
            return cc.size(t.skeletonData.textures[0].width, t.skeletonData.textures[0].height)
        }, n.getTextureSizeDragon = function(t) {
            return cc.size(d(t), f(t))
        }, n.getTextureWidthDragon = d, n.getTextureHeightDragon = f, n.getRegionDragon = g, cc._RF.pop()
    }, {
        "../Promotion/AdManager": "AdManager"
    }],
    DragonHelper: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "1be92NwuLVDGosJtCj2JoyX", "DragonHelper");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            },
            a = this &amp;&amp; this.__awaiter || function(t, e, n, o) {
                return new(n || (n = Promise))(function(i, r) {
                    function a(t) {
                        try {
                            s(o.next(t))
                        } catch (e) {
                            r(e)
                        }
                    }

                    function c(t) {
                        try {
                            s(o.throw(t))
                        } catch (e) {
                            r(e)
                        }
                    }

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

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

                function s(r) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o &amp;&amp; (i = 2 &amp; r[0] ? o.return : r[0] ? o.throw || ((i = o.return) &amp;&amp; i.call(o), 0) : o.next) &amp;&amp; !(i = i.call(o, r[1])).done) return i;
                        switch (o = 0, i &amp;&amp; (r = [2 &amp; r[0], i.value]), r[0]) {
                            case 0:
                            case 1:
                                i = r;
                                break;
                            case 4:
                                return a.label++, {
                                    value: r[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = r[1], r = [0];
                                continue;
                            case 7:
                                r = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(i = (i = a.trys).length &gt; 0 &amp;&amp; i[i.length - 1]) &amp;&amp; (6 === r[0] || 2 === r[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === r[0] &amp;&amp; (!i || r[1] &gt; i[0] &amp;&amp; r[1] &lt; i[3])) {
                                    a.label = r[1];
                                    break
                                }
                                if (6 === r[0] &amp;&amp; a.label &lt; i[1]) {
                                    a.label = i[1], i = r;
                                    break
                                }
                                if (i &amp;&amp; a.label &lt; i[2]) {
                                    a.label = i[2], a.ops.push(r);
                                    break
                                }
                                i[2] &amp;&amp; a.ops.pop(), a.trys.pop();
                                continue
                        }
                        r = e.call(t, a)
                    } catch (c) {
                        r = [6, c], o = 0
                    } finally {
                        n = i = 0
                    }
                    if (5 &amp; r[0]) throw r[1];
                    return {
                        value: r[0] ? r[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var s = t("./CocosHelper"),
            l = t("./HelperTools"),
            u = cc._decorator,
            h = u.ccclass,
            p = u.property,
            d = function(t) {
                function e() {
                    var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                    return e.DrawingTexture = null, e.nativeURL = [], e.CharacterObject = null, e.OriginalTextureSize = null, e
                }
                return i(e, t), e.prototype.onLoad = function() {
                    this.CharacterObject = this.node.getComponent(dragonBones.ArmatureDisplay), this.OriginalTextureSize = s.getTextureSizeDragon(this.CharacterObject), s.PrintAllSlot(this.CharacterObject), this.DrawingTexture &amp;&amp; this.loadNativeURL(this.DrawingTexture), "DressUp" != cc.director.getScene().name &amp;&amp; this.resetCharacter()
                }, e.prototype.resetCharacter = function() {
                    s.HideSlot(this.CharacterObject, "hair"), s.HideSlot(this.CharacterObject, "glasses"), s.HideSlot(this.CharacterObject, "shoes01"), s.HideSlot(this.CharacterObject, "leg01"), s.HideSlot(this.CharacterObject, "leg02"), s.HideSlot(this.CharacterObject, "leg03"), s.HideSlot(this.CharacterObject, "shoes02"), s.HideSlot(this.CharacterObject, "shoes03"), s.HideSlot(this.CharacterObject, "shoes04"), s.HideSlot(this.CharacterObject, "hat"), s.HideSlot(this.CharacterObject, "dress")
                }, e.prototype.setTexture = function(t, e) {
                    return a(this, void 0, void 0, function() {
                        var n, o;
                        return c(this, function(i) {
                            switch (i.label) {
                                case 0:
                                    return null != e ? [3, 2] : [4, l.Delay(.5)];
                                case 1:
                                    return i.sent(), s.HideSlot(this.CharacterObject, t), [3, 7];
                                case 2:
                                    return null != (n = s.default.getInstance().getTexture(e)) ? [3, 5] : [4, s.default.getInstance().loadTexture(this.CharacterObject, this.OriginalTextureSize, this.getURLFromURL(e))];
                                case 3:
                                    return i.sent(), [4, l.Delay(.5)];
                                case 4:
                                    return i.sent(), o = s.default.getInstance().getTexture(e), this.CharacterObject.armature().getSlot(t)._displayData.texture.spriteFrame.setTexture(o), s.ShowSlot(this.CharacterObject, t), [3, 7];
                                case 5:
                                    return [4, l.Delay(.5)];
                                case 6:
                                    i.sent(), this.CharacterObject.armature().getSlot(t)._displayData.texture.spriteFrame.setTexture(n), s.ShowSlot(this.CharacterObject, t), i.label = 7;
                                case 7:
                                    return [2]
                            }
                        })
                    })
                }, e.prototype.setTextureWithData = function(t, e) {
                    return a(this, void 0, void 0, function() {
                        var n;
                        return c(this, function() {
                            return n = s.default.getInstance().UpdateTexture(this.CharacterObject, this.OriginalTextureSize, t, e), this.CharacterObject.armature().getSlot(t)._displayData.texture.spriteFrame.setTexture(n), s.ShowSlot(this.CharacterObject, t), [2]
                        })
                    })
                }, e.prototype.start = function() {
                    s.default.getInstance().LoadTextureAsync(this.CharacterObject, this.OriginalTextureSize, this.nativeURL)
                }, e.prototype.loadTextureWithURL = function(t) {
                    var e = this;
                    t.children.forEach(function(t) {
                        return a(e, void 0, void 0, function() {
                            return c(this, function(e) {
                                switch (e.label) {
                                    case 0:
                                        return [4, s.default.getInstance().loadTexture(this.CharacterObject, this.OriginalTextureSize, this.getURLFromURL(this.getURL(t)))];
                                    case 1:
                                        return e.sent(), [2]
                                }
                            })
                        })
                    })
                }, e.prototype.playanimation = function(t, e) {
                    this.CharacterObject.playAnimation(t, e)
                }, e.prototype.loadNativeURL = function(t) {
                    var e = this;
                    t.children.forEach(function(t) {
                        t.childrenCount &gt; 0 ? e.loadNativeURL(t) : t.getComponent(cc.Sprite) &amp;&amp; e.nativeURL.push({
                            key: t.parent.name + t.name,
                            slotname: t.parent.name,
                            value: t.getComponent(cc.Sprite).spriteFrame.getTexture().nativeUrl
                        })
                    })
                }, e.prototype.getURL = function(t) {
                    if (null == t) return null;
                    for (var e = 0; e &lt; this.nativeURL.length; e++)
                        if (this.nativeURL[e].key == t.parent.name + t.name) return this.nativeURL[e].value;
                    return null
                }, e.prototype.getURLFromURL = function(t) {
                    for (var e = 0; e &lt; this.nativeURL.length; e++)
                        if (this.nativeURL[e].value == t) return this.nativeURL[e];
                    return null
                }, r([p(cc.Node)], e.prototype, "DrawingTexture", void 0), r([h], e)
            }(cc.Component);
        n.default = d, cc._RF.pop()
    }, {
        "./CocosHelper": "CocosHelper",
        "./HelperTools": "HelperTools"
    }],
    DrawingManager: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "23ba8JpANtF+Lc+pQqAAVEi", "DrawingManager");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.DRAWING_TYPE = void 0;
        var a, c = t("./CanvasManager"),
            s = cc._decorator,
            l = s.ccclass;
        s.property,
            function(t) {
                t[t.NONE = 0] = "NONE", t[t.DRAWING = 1] = "DRAWING", t[t.FILL = 2] = "FILL", t[t.STICKER = 3] = "STICKER"
            }(a = n.DRAWING_TYPE || (n.DRAWING_TYPE = {}));
        var u = function(t) {
            function e() {
                var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                return e.TextureSize = cc.Size.ZERO, e.DrawingType = a.DRAWING, e.SelectedColorID = 0, e.DrawNode = null, e.CanvasManagerObj = null, e
            }
            return i(e, t), e.prototype.initWithData = function(t) {
                this.TextureSize = t.getContentSize(), this.DrawNode = t, this.CanvasManagerObj = new c.default, this.CanvasManagerObj.initWithData(t)
            }, e.prototype.loadTextureFrame = function(t, e, n) {
                this.CanvasManagerObj.LoadTexture(t, e, n)
            }, e.prototype.resetTextureFrame = function(t) {
                this.CanvasManagerObj.resetTexture(t)
            }, e.prototype.clearAll = function() {
                this.CanvasManagerObj.clearAll()
            }, e.prototype.setEraseOn = function(t) {
                this.CanvasManagerObj.setEraseOn(t)
            }, e.prototype.updateCanvas = function(t, e) {
                this.CanvasManagerObj.UpdatePatternDrawing(t, e)
            }, e.prototype.getPercentage = function(t) {
                return this.CanvasManagerObj.getDrawingPercentage(t)
            }, e.prototype.getImageData = function() {
                return this.CanvasManagerObj.getImageData()
            }, r([l], e)
        }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./CanvasManager": "CanvasManager"
    }],
    GlobalData: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "7998d0FU05M7ZicmkTqWazx", "GlobalData"), Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.GlobalData = void 0, n.GlobalData = {
            data: {
                flags: {
                    Sound: !0
                }
            }
        }, cc._RF.pop()
    }, {}],
    HelperTools: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "13812UirHdE9JGkYgNum3bN", "HelperTools");
        var o = this &amp;&amp; this.__awaiter || function(t, e, n, o) {
                return new(n || (n = Promise))(function(i, r) {
                    function a(t) {
                        try {
                            s(o.next(t))
                        } catch (e) {
                            r(e)
                        }
                    }

                    function c(t) {
                        try {
                            s(o.throw(t))
                        } catch (e) {
                            r(e)
                        }
                    }

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

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

                function s(r) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o &amp;&amp; (i = 2 &amp; r[0] ? o.return : r[0] ? o.throw || ((i = o.return) &amp;&amp; i.call(o), 0) : o.next) &amp;&amp; !(i = i.call(o, r[1])).done) return i;
                        switch (o = 0, i &amp;&amp; (r = [2 &amp; r[0], i.value]), r[0]) {
                            case 0:
                            case 1:
                                i = r;
                                break;
                            case 4:
                                return a.label++, {
                                    value: r[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = r[1], r = [0];
                                continue;
                            case 7:
                                r = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(i = (i = a.trys).length &gt; 0 &amp;&amp; i[i.length - 1]) &amp;&amp; (6 === r[0] || 2 === r[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === r[0] &amp;&amp; (!i || r[1] &gt; i[0] &amp;&amp; r[1] &lt; i[3])) {
                                    a.label = r[1];
                                    break
                                }
                                if (6 === r[0] &amp;&amp; a.label &lt; i[1]) {
                                    a.label = i[1], i = r;
                                    break
                                }
                                if (i &amp;&amp; a.label &lt; i[2]) {
                                    a.label = i[2], a.ops.push(r);
                                    break
                                }
                                i[2] &amp;&amp; a.ops.pop(), a.trys.pop();
                                continue
                        }
                        r = e.call(t, a)
                    } catch (c) {
                        r = [6, c], o = 0
                    } finally {
                        n = i = 0
                    }
                    if (5 &amp; r[0]) throw r[1];
                    return {
                        value: r[0] ? r[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.rgbToHex = n.hexToRgb = n.addButtonEvent = n.setTexture = n.ScrollAction = n.distanceBetween2Points = n.animateProgressTo = n.NumberArray = n.RegisterDeviceFullScreen = n.RequestDeviceFullScreen = n.GetURLParameter = n.StringFormat = n.UItools = n.RoundDown = n.RoundUp = n.BeautifyNumber = n.Pad = n.Shuffle = n.SkippableDelay = n.DelayForScene = n.Delay = n.AsyncTask = n.GetRandomFloat = n.GetRandomInterger = void 0;
        var r = t("../Promotion/AdManager");

        function a(t) {
            return void 0 === t &amp;&amp; (t = 1), o(this, void 0, void 0, function() {
                var e, n = this;
                return i(this, function() {
                    return e = !1, cc.tween(cc.director.getScene()).delay(t).call(function() {
                        e = !0
                    }).start(), [2, new Promise(function(a) {
                        setTimeout(function() {
                            return o(n, void 0, void 0, function() {
                                return i(this, function(t) {
                                    switch (t.label) {
                                        case 0:
                                            return r.default.getInstance().isAdRunningOrNot() || r.default.getInstance().isSwitchTab || 0 == e ? [4, c(1)] : [3, 2];
                                        case 1:
                                            return t.sent(), [3, 0];
                                        case 2:
                                            return a(), [2]
                                    }
                                })
                            })
                        }, 1e3 * t)
                    })]
                })
            })
        }

        function c(t) {
            return void 0 === t &amp;&amp; (t = 1), o(this, void 0, void 0, function() {
                return i(this, function() {
                    return [2, new Promise(function(e) {
                        setTimeout(function() {
                            e()
                        }, 1e3 * t)
                    })]
                })
            })
        }

        function s() {
            cc.view.enableAutoFullScreen(!0)
        }

        function l(t) {
            var e = t.toString(16);
            return 1 == e.length ? "0" + e : e
        }
        n.GetRandomInterger = function(t, e) {
            return Math.floor(Math.random() * (e - t + 1)) + t
        }, n.GetRandomFloat = function(t, e) {
            return Math.random() * (e - t) + t
        }, n.AsyncTask = function(t) {
            return o(this, void 0, void 0, function() {
                return i(this, function() {
                    return [2, new Promise(function(e) {
                        t(e)
                    })]
                })
            })
        }, n.Delay = a, n.DelayForScene = c, n.SkippableDelay = function(t, e) {
            return void 0 === t &amp;&amp; (t = 1), o(this, void 0, void 0, function() {
                var n = this;
                return i(this, function() {
                    return t &lt;= 0 ? [2] : [2, new Promise(function(c) {
                        setTimeout(function() {
                            return o(n, void 0, void 0, function() {
                                return i(this, function(t) {
                                    switch (t.label) {
                                        case 0:
                                            return r.default.getInstance().isAdRunningOrNot() || r.default.getInstance().isSwitchTab ? [4, a(1)] : [3, 2];
                                        case 1:
                                            return t.sent(), [3, 0];
                                        case 2:
                                            return c(), [2]
                                    }
                                })
                            })
                        }, 1e3 * t), e &amp;&amp; cc.game.on(e, function() {
                            c()
                        })
                    })]
                })
            })
        }, n.Shuffle = function(t) {
            if (null == t) return t;
            for (var e, n, o = t.length; 0 !== o;) n = Math.floor(Math.random() * o), e = t[o -= 1], t[o] = t[n], t[n] = e;
            return t
        }, n.Pad = function(t, e) {
            var n = "000000000" + t;
            return n.substr(n.length - e)
        }, n.BeautifyNumber = function(t, e) {
            return 0 === t ? t.toFixed(e) : Number.isInteger(t) ? t.toFixed(0) : e ? t.toFixed(e) : t.toString()
        }, n.RoundUp = function(t, e) {
            void 0 === e &amp;&amp; (e = 2);
            var n = Math.pow(10, e);
            return Math.ceil(t * n) / n
        }, n.RoundDown = function(t, e) {
            void 0 === e &amp;&amp; (e = 2);
            var n = Math.pow(10, e);
            return Math.floor(t * n) / n
        }, n.UItools = {
            ChangeButtonSpriteFrame: function(t, e, n) {
                t.normalSprite = e.getSpriteFrame(n.normalSprite), t.pressedSprite = e.getSpriteFrame(n.pressedSprite), t.hoverSprite = e.getSpriteFrame(n.hoverSprite), t.disabledSprite = e.getSpriteFrame(n.disabledSprite)
            }
        }, n.StringFormat = function(t) {
            for (var e = [], n = 1; n &lt; arguments.length; n++) e[n - 1] = arguments[n];
            return t.replace(/{(\d+)}/g, function(t, n) {
                return e[n] || ""
            })
        }, n.GetURLParameter = function(t) {
            var e, n, o = new RegExp("[?|&amp;]" + t + "=([^&amp;;]+?)(&amp;|#|;|$)").exec(location.search);
            return o &amp;&amp; (e = (o || [, ""])[1].replace(/\+/g, "%20"), n = decodeURIComponent(e)), n || null
        }, n.RequestDeviceFullScreen = s, n.RegisterDeviceFullScreen = function() {
            cc.sys.isMobile &amp;&amp; document.getElementById("GameCanvas").addEventListener("touchend", function() {
                s()
            }, !1)
        }, n.NumberArray = function(t, e, n, o) {
            var i, r = [],
                a = !1;
            if ((n || o) &amp;&amp; (a = !0, n || (n = ""), o || (o = "")), e &lt; t)
                for (i = t; i &gt;= e; i--) a ? r.push(n + i.toString() + o) : r.push(i);
            else
                for (i = t; i &lt;= e; i++) a ? r.push(n + i.toString() + o) : r.push(i);
            return r
        }, n.animateProgressTo = function(t, e, n) {
            void 0 === n &amp;&amp; (n = 1);
            var o = 0;
            cc.tween(t).to(n, {
                fillRange: e
            }, {
                progress: function(e, n, i, r) {
                    return o = cc.misc.lerp(e, n, r), t.fillRange = o, o
                }
            }).start()
        }, n.distanceBetween2Points = function(t, e) {
            var n = e.x - t.x,
                o = e.y - t.y;
            return Math.sqrt(Math.pow(n, 2) + Math.pow(o, 2))
        }, n.ScrollAction = function(t) {
            t.scrollToBottom(0, !1), cc.tween(t).delay(.2).call(function() {
                t.scrollToTop(2, !1)
            }).start()
        }, n.setTexture = function(t, e) {
            t.getComponent(cc.Sprite).spriteFrame = e.getComponent(cc.Sprite).spriteFrame
        }, n.addButtonEvent = function(t, e, n, o, i) {
            void 0 === i &amp;&amp; (i = !0), t.addComponent(cc.Button);
            var r = new cc.Component.EventHandler;
            r.target = e, r.component = n, r.handler = o, r.customEventData = "";
            var a = t.getComponent(cc.Button);
            a.clickEvents.push(r), a.transition = cc.Button.Transition.NONE, a.enableAutoGrayEffect = i
        }, n.hexToRgb = function(t) {
            var e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
            return cc.color(parseInt(e[1], 16), parseInt(e[2], 16), parseInt(e[3], 16))
        }, n.rgbToHex = function(t, e, n) {
            return "#" + l(t) + l(e) + l(n)
        }, cc._RF.pop()
    }, {
        "../Promotion/AdManager": "AdManager"
    }],
    Promotion: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "c363esmtuVBDJcSkzRVx80v", "Promotion");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            },
            a = this &amp;&amp; this.__awaiter || function(t, e, n, o) {
                return new(n || (n = Promise))(function(i, r) {
                    function a(t) {
                        try {
                            s(o.next(t))
                        } catch (e) {
                            r(e)
                        }
                    }

                    function c(t) {
                        try {
                            s(o.throw(t))
                        } catch (e) {
                            r(e)
                        }
                    }

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

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

                function s(r) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o &amp;&amp; (i = 2 &amp; r[0] ? o.return : r[0] ? o.throw || ((i = o.return) &amp;&amp; i.call(o), 0) : o.next) &amp;&amp; !(i = i.call(o, r[1])).done) return i;
                        switch (o = 0, i &amp;&amp; (r = [2 &amp; r[0], i.value]), r[0]) {
                            case 0:
                            case 1:
                                i = r;
                                break;
                            case 4:
                                return a.label++, {
                                    value: r[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = r[1], r = [0];
                                continue;
                            case 7:
                                r = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(i = (i = a.trys).length &gt; 0 &amp;&amp; i[i.length - 1]) &amp;&amp; (6 === r[0] || 2 === r[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === r[0] &amp;&amp; (!i || r[1] &gt; i[0] &amp;&amp; r[1] &lt; i[3])) {
                                    a.label = r[1];
                                    break
                                }
                                if (6 === r[0] &amp;&amp; a.label &lt; i[1]) {
                                    a.label = i[1], i = r;
                                    break
                                }
                                if (i &amp;&amp; a.label &lt; i[2]) {
                                    a.label = i[2], a.ops.push(r);
                                    break
                                }
                                i[2] &amp;&amp; a.ops.pop(), a.trys.pop();
                                continue
                        }
                        r = e.call(t, a)
                    } catch (c) {
                        r = [6, c], o = 0
                    } finally {
                        n = i = 0
                    }
                    if (5 &amp; r[0]) throw r[1];
                    return {
                        value: r[0] ? r[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var s = t("../Helper/CocosHelper"),
            l = t("../Helper/HelperTools"),
            u = t("./AdManager"),
            h = cc._decorator,
            p = h.ccclass,
            d = (h.property, function(t) {
                function e() {
                    return null !== t &amp;&amp; t.apply(this, arguments) || this
                }
                var n;
                return i(e, t), n = e, e.prototype.start = function() {
                    n.self = this;
                    var t = this;
                    "promoBack" == t.node.name &amp;&amp; this.setPromoThumb();
                    var e = "game";
                    "MainScene" == cc.director.getScene().name &amp;&amp; (e = "mainscreen"), this.node.on(cc.Node.EventType.START, function() {
                         ("promoBack" == t.node.name ? 255 == t.node.parent.opacity &amp;&amp; window.adsGameCon.moreGame() : t.node.parent &amp;&amp; "promotion" == t.node.parent.name ?window.adsGameCon.moreGame() : window.adsGameCon.moreGame())
                    }, this)
                }, e.prototype.setPromoThumb = function() {
                   
                }, e.prototype.onReplayClick = function(t) {
                    return a(this, void 0, void 0, function() {
                        return c(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    return t.target.getComponent(cc.Button).interactable = !1, u.default.getInstance().requestAds(), [4, l.DelayForScene(.3)];
                                case 1:
                                    return e.sent(), cc.director.loadScene("SuperstarFamilyDressUp"), [2]
                            }
                        })
                    })
                }, e.self = null, n = r([p], e)
            }(cc.Component));
        n.default = d, cc._RF.pop()
    }, {
        "../Helper/CocosHelper": "CocosHelper",
        "../Helper/HelperTools": "HelperTools",
        "./AdManager": "AdManager"
    }],
    RewardFailed: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "de049FllctHALvm/i+bzPTu", "RewardFailed");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = t("../Helper/AudioManager"),
            c = cc._decorator,
            s = c.ccclass,
            l = (c.property, function(t) {
                function e() {
                    var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                    return e.safeArea = null, e
                }
                return i(e, t), e.prototype.onLoad = function() {}, e.prototype.start = function() {
                    cc.game.on("RewarFailed.Open", this.OpenRewardFailed, this), cc.game.on("RewarFailed.Close", this.CloseRewardFailed, this), this.safeArea = this.node.children[0], cc.find("Failclose", this.safeArea).on(cc.Node.EventType.TOUCH_START, this.rewardCloseAction, this)
                }, e.prototype.rewardCloseAction = function() {
                    a.default.getInstance().play("button_click"), this.CloseRewardFailed()
                }, e.prototype.OpenRewardFailed = function() {
                    this.safeArea.active = !0
                }, e.prototype.CloseRewardFailed = function() {
                    this.safeArea &amp;&amp; (this.safeArea.active = !1)
                }, r([s], e)
            }(cc.Component));
        n.default = l, cc._RF.pop()
    }, {
        "../Helper/AudioManager": "AudioManager"
    }],
    Scaler: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "06c21oIzxxC3Ii0nc5OGek6", "Scaler");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            c = a.ccclass,
            s = a.property,
            l = function(t) {
                function e() {
                    var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                    return e.Zoom = null, e.Delete = null, e.Minscale = .5, e.Maxscale = 1.5, e.rotation = 0, e.canMove = !1, e
                }
                return i(e, t), e.prototype.onLoad = function() {}, e.prototype.start = function() {
                    this.node.on(cc.Node.EventType.TOUCH_START, this.TouchStart, this), this.node.on(cc.Node.EventType.TOUCH_MOVE, this.TouchMove, this), this.node.on(cc.Node.EventType.TOUCH_END, this.TouchEnd, this), this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEnd, this)
                }, e.prototype.TouchStart = function(t) {
                    var e = t.getLocation();
                    if (this.Zoom.getBoundingBoxToWorld().contains(e)) {
                        this.canMove = !0, this.node.opacity = 254;
                        var n = this.node.parent.convertToWorldSpaceAR(this.node.position),
                            o = t.getLocation();
                        this.rotation = this.node.parent.angle - this.angle(n.x, n.y, o.x, o.y)
                    } else this.Delete.getBoundingBoxToWorld().contains(e) &amp;&amp; this.node.parent.removeFromParent()
                }, e.prototype.TouchMove = function(t) {
                    if (this.canMove) {
                        var e = t.getLocation(),
                            n = this.node.parent.convertToWorldSpaceAR(this.node.position),
                            o = t.getLocation();
                        this.node.parent.angle = this.rotation + this.angle(n.x, n.y, o.x, o.y);
                        var i = this.getDistance(n.x, n.y, e.x, e.y) / 100;
                        i &gt; this.Minscale &amp;&amp; i &lt; this.Maxscale &amp;&amp; (this.node.parent.scale = i)
                    }
                }, e.prototype.TouchEnd = function() {
                    this.canMove = !1, this.node.opacity = 255
                }, e.prototype.getDistance = function(t, e, n, o) {
                    var i = n - t,
                        r = o - e;
                    return Math.sqrt(r * r + i * i)
                }, e.prototype.angle = function(t, e, n, o) {
                    var i = o - e,
                        r = n - t,
                        a = Math.atan2(i, r);
                    return (a *= 180 / Math.PI) &lt; 0 &amp;&amp; (a = 360 + a), a
                }, e.prototype.update = function() {
                    this.Delete.angle = -this.node.parent.angle, this.Delete.scale = this.node.scale &gt; 1 ? 1 - this.node.scale : this.node.scale + (1 - this.node.scale), this.Zoom.scale = this.node.scale &gt; 1 ? 1 - this.node.scale : this.node.scale + (1 - this.node.scale)
                }, e.prototype.showFrame = function() {
                    this.node.active = !0
                }, e.prototype.hideFrame = function() {
                    this.node.active = !1
                }, r([s(cc.Node)], e.prototype, "Zoom", void 0), r([s(cc.Node)], e.prototype, "Delete", void 0), r([s], e.prototype, "Minscale", void 0), r([s], e.prototype, "Maxscale", void 0), r([c], e)
            }(cc.Component);
        n.default = l, cc._RF.pop()
    }, {}],
    SessionStorageHelper: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "53cd3d1si5Lmoi+9Wy1x3L/", "SessionStorageHelper");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            c = a.ccclass,
            s = (a.property, function(t) {
                function e() {
                    var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                    return e.Items = [], e
                }
                var n;
                return i(e, t), n = e, e.getInstace = function() {
                    return null == n.instance &amp;&amp; (n.instance = new n), n.instance
                }, e.prototype.setItem = function(t, e) {
                    for (var n = !1, o = 0; o &lt; this.Items.length; o++)
                        if (this.Items[o].Key == t) {
                            n = !0, this.Items[o].Value = e;
                            break
                        }
                    0 == n &amp;&amp; this.Items.push({
                        Key: t,
                        Value: e
                    })
                }, e.prototype.getItem = function(t) {
                    for (var e = 0; e &lt; this.Items.length; e++)
                        if (this.Items[e].Key == t) return this.Items[e].Value
                }, e.prototype.removeItem = function(t) {
                    for (var e = 0; e &lt; this.Items.length; e++)
                        if (this.Items[e].Key == t) {
                            this.Items.splice(e, 1);
                            break
                        }
                }, e.prototype.removeAllKeys = function() {
                    this.Items.splice(0, this.Items.length)
                }, e.instance = null, n = r([c], e)
            }(cc.Component));
        n.default = s, cc._RF.pop()
    }, {}],
    SpineHelper: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "fde95czI4BDfostmW9ymarY", "SpineHelper");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = t("./CocosHelper"),
            c = cc._decorator,
            s = c.ccclass,
            l = c.property,
            u = function(t) {
                function e() {
                    var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                    return e.Texture = null, e.Skeleton = null, e.OriginalTextureSize = null, e.Canvas = null, e.Context = null, e
                }
                return i(e, t), e.prototype.onLoad = function() {
                    this.Skeleton = this.node.getComponent(sp.Skeleton), this.OriginalTextureSize = a.getTextureSize(this.Skeleton), this.Canvas = document.createElement("canvas"), this.Context = this.Canvas.getContext("2d"), this.Canvas.width = this.OriginalTextureSize.width, this.Canvas.height = this.OriginalTextureSize.height;
                    var t = new cc.Texture2D,
                        e = new cc.SpriteFrame,
                        n = new Image,
                        o = this;
                    console.log(this.Skeleton), a.PrintAllRegion(this.Skeleton);
                    var i = this.Skeleton.getAttachment("glasses", "colthes/glasses/cloth000");
                    console.log(i.region.renderObject), n.onload = function() {
                        o.Context.drawImage(n, 0, 0), t.initWithData(o.Context.getImageData(0, 0, o.OriginalTextureSize.width, o.OriginalTextureSize.height), cc.Texture2D.PixelFormat.RGBA8888, o.OriginalTextureSize.width, o.OriginalTextureSize.height), e.setTexture(t), o.Skeleton.skeletonData.textures[0].nativeUrl = o.Canvas.toDataURL("image/png")
                    }, n.src = this.Skeleton.skeletonData.textures[0].nativeUrl
                }, e.prototype.start = function() {}, e.prototype.ChangeTexture = function(t, e) {
                    var n = a.getRegion(this.Skeleton, t),
                        o = (a.getTextureSize(this.Skeleton), new Image),
                        i = this,
                        r = new cc.Texture2D;
                    o.onload = function() {
                        i.Context.drawImage(o, n.x, n.y), r.initWithData(i.Context.getImageData(0, 0, i.OriginalTextureSize.width, i.OriginalTextureSize.height), cc.Texture2D.PixelFormat.RGBA8888, i.OriginalTextureSize.width, i.OriginalTextureSize.height), i.Skeleton.skeletonData.textures[0] = r, console.log(i.Canvas.toDataURL())
                    }, o.src = e
                }, r([l(cc.SpriteFrame)], e.prototype, "Texture", void 0), r([s], e)
            }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./CocosHelper": "CocosHelper"
    }],
    StickerHelper: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "b2071SGriVE6Ixq58m+AMJd", "StickerHelper");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = cc._decorator,
            c = a.ccclass,
            s = a.property,
            l = function(t) {
                function e() {
                    var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                    return e.isEnable = !0, e.scalerNode = null, e.MoveNode = null, e.Minscale = .5, e.Maxscale = 1.5, e.rotation = 0, e.canMove = !1, e.Zoom = null, e.Delete = null, e.DestinationNode = null, e
                }
                var n;
                return i(e, t), n = e, e.prototype.onLoad = function() {
                    this.Zoom = cc.find("Zoom", this.scalerNode), this.Delete = cc.find("Delete", this.scalerNode)
                }, e.prototype.start = function() {
                    this.OnEvent()
                }, e.prototype.OffEvent = function() {
                    cc.find("Canvas").off(cc.Node.EventType.TOUCH_START, this.TouchStart, this), cc.find("Canvas").off(cc.Node.EventType.TOUCH_MOVE, this.TouchMove, this), cc.find("Canvas").off(cc.Node.EventType.TOUCH_END, this.TouchEnd, this), cc.find("Canvas").off(cc.Node.EventType.TOUCH_CANCEL, this.TouchEnd, this)
                }, e.prototype.OnEvent = function() {
                    cc.find("Canvas").on(cc.Node.EventType.TOUCH_START, this.TouchStart, this), cc.find("Canvas").on(cc.Node.EventType.TOUCH_MOVE, this.TouchMove, this), cc.find("Canvas").on(cc.Node.EventType.TOUCH_END, this.TouchEnd, this), cc.find("Canvas").on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEnd, this)
                }, e.prototype.TouchStart = function(t) {
                    var e = t.getLocation();
                    if (this.DestinationNode)
                        if (this.Zoom &amp;&amp; this.Zoom.getBoundingBoxToWorld().contains(e)) {
                            this.canMove = !0;
                            var o = this.DestinationNode.parent.convertToWorldSpaceAR(this.DestinationNode.position),
                                i = t.getLocation();
                            this.rotation = this.DestinationNode.angle - this.angle(o.x, o.y, i.x, i.y)
                        } else this.Delete.getBoundingBoxToWorld().contains(e) &amp;&amp; (this.DestinationNode.removeFromParent(), this.hideFrame(), this.DestinationNode = null);
                    if (0 == this.canMove)
                        for (var r = n.Tag; r &gt;= 1e3; r--) {
                            var a = cc.find(r.toString(), this.node);
                            if (a &amp;&amp; a.getBoundingBoxToWorld().contains(t.getLocation())) {
                                this.MoveNode = a, this.DestinationNode = this.MoveNode, this.MoveNode = a, this.MoveNode.zIndex = 1, this.MoveNode.parent = cc.find("Canvas/StickersMove"), this.showFrame();
                                break
                            }
                        }
                }, e.prototype.TouchMove = function(t) {
                    var e = t.getLocation();
                    if (this.canMove &amp;&amp; this.DestinationNode) {
                        var n = this.DestinationNode.parent.convertToWorldSpaceAR(this.DestinationNode.position);
                        this.DestinationNode.angle = this.rotation + this.angle(n.x, n.y, e.x, e.y);
                        var o = this.getDistance(n.x, n.y, e.x, e.y) / 100;
                        o &gt; this.Minscale &amp;&amp; o &lt; this.Maxscale &amp;&amp; (this.DestinationNode.scale = o)
                    } else this.MoveNode &amp;&amp; (this.MoveNode.position = cc.v3(cc.find("Canvas/StickersMove").convertToNodeSpaceAR(e)))
                }, e.prototype.TouchEnd = function() {
                    var t = this;
                    null === this.MoveNode &amp;&amp; 0 == this.canMove &amp;&amp; this.hideFrame(), this.MoveNode &amp;&amp; (this.MoveNode.zIndex = 0, this.MoveNode.name = n.Tag.toString(), this.MoveNode.parent = this.node, this.MoveNode = null, n.Tag++), this.canMove = !1, this.MoveNode = null, cc.find("Canvas/StickersMove").childrenCount &gt; 0 &amp;&amp; cc.find("Canvas/StickersMove").children.forEach(function(e) {
                        e.parent = t.node
                    })
                }, e.prototype.updateIndex = function(t) {
                    t.name = n.Tag.toString(), n.Tag++, this.showFrame(), this.DestinationNode = t
                }, e.prototype.getDistance = function(t, e, n, o) {
                    var i = n - t,
                        r = o - e;
                    return Math.sqrt(r * r + i * i)
                }, e.prototype.angle = function(t, e, n, o) {
                    var i = o - e,
                        r = n - t,
                        a = Math.atan2(i, r);
                    return (a *= 180 / Math.PI) &lt; 0 &amp;&amp; (a = 360 + a), a
                }, e.prototype.update = function() {
                    if (this.DestinationNode &amp;&amp; (this.scalerNode.position = this.DestinationNode.position), this.DestinationNode) {
                        var t = this.scalerNode.scale &gt; 1 ? 1 - (this.scalerNode.scale - 1) : this.DestinationNode.scale + (1 - this.scalerNode.scale);
                        this.Delete.scale = t, this.Zoom.scale = t, this.scalerNode.scale = this.DestinationNode.scale, this.scalerNode.angle = this.DestinationNode.angle, this.Delete.angle = -this.scalerNode.angle
                    }
                }, e.prototype.showFrame = function() {
                    this.scalerNode.active = !0
                }, e.prototype.hideFrame = function() {
                    this.scalerNode.active = !1, this.DestinationNode = null
                }, e.Tag = 1e3, r([s], e.prototype, "isEnable", void 0), r([s(cc.Node)], e.prototype, "scalerNode", void 0), r([s], e.prototype, "Minscale", void 0), r([s], e.prototype, "Maxscale", void 0), n = r([c], e)
            }(cc.Component);
        n.default = l, cc._RF.pop()
    }, {}],
    SuperstarFamilyDressUp: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "eef3epsm0lI3o9kabiuxARs", "SuperstarFamilyDressUp");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            },
            a = this &amp;&amp; this.__awaiter || function(t, e, n, o) {
                return new(n || (n = Promise))(function(i, r) {
                    function a(t) {
                        try {
                            s(o.next(t))
                        } catch (e) {
                            r(e)
                        }
                    }

                    function c(t) {
                        try {
                            s(o.throw(t))
                        } catch (e) {
                            r(e)
                        }
                    }

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

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

                function s(r) {
                    if (n) throw new TypeError("Generator is already executing.");
                    for (; a;) try {
                        if (n = 1, o &amp;&amp; (i = 2 &amp; r[0] ? o.return : r[0] ? o.throw || ((i = o.return) &amp;&amp; i.call(o), 0) : o.next) &amp;&amp; !(i = i.call(o, r[1])).done) return i;
                        switch (o = 0, i &amp;&amp; (r = [2 &amp; r[0], i.value]), r[0]) {
                            case 0:
                            case 1:
                                i = r;
                                break;
                            case 4:
                                return a.label++, {
                                    value: r[1],
                                    done: !1
                                };
                            case 5:
                                a.label++, o = r[1], r = [0];
                                continue;
                            case 7:
                                r = a.ops.pop(), a.trys.pop();
                                continue;
                            default:
                                if (!(i = (i = a.trys).length &gt; 0 &amp;&amp; i[i.length - 1]) &amp;&amp; (6 === r[0] || 2 === r[0])) {
                                    a = 0;
                                    continue
                                }
                                if (3 === r[0] &amp;&amp; (!i || r[1] &gt; i[0] &amp;&amp; r[1] &lt; i[3])) {
                                    a.label = r[1];
                                    break
                                }
                                if (6 === r[0] &amp;&amp; a.label &lt; i[1]) {
                                    a.label = i[1], i = r;
                                    break
                                }
                                if (i &amp;&amp; a.label &lt; i[2]) {
                                    a.label = i[2], a.ops.push(r);
                                    break
                                }
                                i[2] &amp;&amp; a.ops.pop(), a.trys.pop();
                                continue
                        }
                        r = e.call(t, a)
                    } catch (c) {
                        r = [6, c], o = 0
                    } finally {
                        n = i = 0
                    }
                    if (5 &amp; r[0]) throw r[1];
                    return {
                        value: r[0] ? r[1] : void 0,
                        done: !0
                    }
                }
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.capturePhoto = void 0;
        var s = t("../../../Script/Helper/AudioManager"),
            l = t("../../../Script/Helper/GlobalData"),
            u = t("../../../Script/Helper/HelperTools"),
            h = t("../../../Script/Promotion/AdManager"),
            p = cc._decorator,
            d = p.ccclass,
            f = p.property,
            g = function(t) {
                function e() {
                    var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                    return e.MainPanul = null, e.SubPanul = null, e.ItemPerent = null, e.ChrecrterI = [], e.PanalFalse = [], e.Loder = null, e.Zoom = !1, e.SlectItem = null, e.selectSubitem = null, e.Percent = 1, e.Delet = null, e.BtnZoom = null, e.isComplete = [!1, !1, !1, !1, !1], e.BtnClick = 0, e
                }
                return i(e, t), e.prototype.onLoad = function() {
                    s.default.getInstance().add("music", cc.find("Canvas/music").getComponent(cc.AudioSource).clip)
                }, e.prototype.start = function() {
                    if (0 == l.GlobalData.data.flags.Sound) {
                        var t = cc.find("Canvas/SafeArea/Panul_Button/Sound");
                        cc.audioEngine.setEffectsVolume(0), cc.audioEngine.setMusicVolume(0), t.opacity = 150
                    } else cc.audioEngine.setEffectsVolume(.5), cc.audioEngine.setMusicVolume(.5);
                    s.default.getInstance().playMusic("music", !0), this.SlectItem = "Dad", this.selectSubitem = this.SubPanul.getChildByName(this.SlectItem).getChildByName("0"), this.BtnZoom = cc.find("Canvas/SafeArea/Panul_Button/ZoomBtn/Zoom"), this.AddButton()
                }, e.prototype.scalePanelItems = function(t) {
                    var e = t.children[0],
                        n = t.getChildByName("Ads");
                    n &amp;&amp; n.setPosition(15, -13), e &amp;&amp; e != n &amp;&amp; (e.width &gt; e.height ? e.scale = 50 / e.width : e.scale = 50 / e.height)
                }, e.prototype.AddButton = function() {
                    var t = this;
                    this.MainPanul.children.forEach(function(e) {
                        cc.find("view/" + e.name, e).children.forEach(function(e) {
                            u.addButtonEvent(e, t.node, "SuperstarFamilyDressUp", "MainAction", !1)
                        })
                    }), this.SubPanul.children[0].children.forEach(function(e) {
                        cc.find("view/" + e.name, e).children.forEach(function(e) {
                            t.scalePanelItems(e), u.addButtonEvent(e, t.node, "SuperstarFamilyDressUp", "DadItem", !1)
                        })
                    }), this.SubPanul.children[1].children.forEach(function(e) {
                        cc.find("view/" + e.name, e).children.forEach(function(e) {
                            t.scalePanelItems(e), u.addButtonEvent(e, t.node, "SuperstarFamilyDressUp", "BoyItem", !1)
                        })
                    }), this.SubPanul.children[2].children.forEach(function(e) {
                        cc.find("view/" + e.name, e).children.forEach(function(e) {
                            t.scalePanelItems(e), u.addButtonEvent(e, t.node, "SuperstarFamilyDressUp", "girlItem", !1)
                        })
                    }), this.SubPanul.children[3].children.forEach(function(e) {
                        cc.find("view/" + e.name, e).children.forEach(function(e) {
                            t.scalePanelItems(e), u.addButtonEvent(e, t.node, "SuperstarFamilyDressUp", "MomItem", !1)
                        })
                    }), this.ItemPerent.children.forEach(function(e) {
                        "Dad" == e.name ? e.children.forEach(function(e) {
                            var n = Number(e.name);
                            (n &gt; 8 || 6 == n) &amp;&amp; e.children.forEach(function(e) {
                                u.addButtonEvent(e, t.node, "SuperstarFamilyDressUp", "MoveTobing", !1)
                            })
                        }) : "Boy" == e.name ? e.children.forEach(function(e) {
                            var n = Number(e.name);
                            (n &gt; 7 || 5 == n) &amp;&amp; e.children.forEach(function(e) {
                                u.addButtonEvent(e, t.node, "SuperstarFamilyDressUp", "MoveTobing", !1)
                            })
                        }) : "Girl" == e.name ? e.children.forEach(function(e) {
                            var n = Number(e.name);
                            (n &gt; 9 || 6 == n || 8 == n) &amp;&amp; e.children.forEach(function(e) {
                                u.addButtonEvent(e, t.node, "SuperstarFamilyDressUp", "MoveTobing", !1)
                            })
                        }) : "Mom" == e.name &amp;&amp; e.children.forEach(function(e) {
                            var n = Number(e.name);
                            (n &gt; 7 || 6 == n) &amp;&amp; e.children.forEach(function(e) {
                                u.addButtonEvent(e, t.node, "SuperstarFamilyDressUp", "MoveTobing", !1)
                            })
                        })
                    })
                }, e.prototype.SoundOnOff = function() {
                    var t = cc.find("Canvas/SafeArea/Panul_Button/Sound");
                    1 == l.GlobalData.data.flags.Sound ? (l.GlobalData.data.flags.Sound = !1, cc.audioEngine.setEffectsVolume(0), cc.audioEngine.setMusicVolume(0), t.opacity = 150) : 0 == l.GlobalData.data.flags.Sound &amp;&amp; (l.GlobalData.data.flags.Sound = !0, cc.audioEngine.setEffectsVolume(1), cc.audioEngine.setMusicVolume(1), t.opacity = 250)
                }, e.prototype.PopUp = function(t) {
                    var e = t.target;
                    "No" == e.name ? (this.SoundPaly("button"), cc.find("Canvas/SafeArea/PopUp").active = !1) : "Yes" == e.name &amp;&amp; (this.SoundPaly("107896_Drop_wet"), this.SetFrame(this.Delet.parent.parent, this.Delet.parent.name, this.Delet.parent.parent.name), cc.find("Canvas/SafeArea/PopUp").active = !1)
                }, e.prototype.MoveTobing = function(t) {
                    var e = t.target;
                    console.log(e.name), this.Delet = e, cc.find("Canvas/SafeArea/PopUp/Frame").getComponent(cc.Sprite).spriteFrame = e.getComponent(cc.Sprite).spriteFrame, cc.find("Canvas/SafeArea/PopUp/Frame").scale = this.setScale(e), cc.find("Canvas/SafeArea/PopUp").active = !0
                }, e.prototype.SelectCharacter = function(t) {
                    var e = this,
                        n = t.target;
                    console.log(n.name), this.SoundPaly("button"), this.MainPanul.getChildByName(this.SlectItem).active = !1, this.SubPanul.getChildByName(this.SlectItem).active = !1, n.parent.getChildByName(this.SlectItem).color = cc.color(255, 255, 255, 255), this.SlectItem = n.name, this.Percent = 1, n.color = cc.color(255, 170, 255, 255), this.MainPanul.getChildByName(this.SlectItem).active = !0, this.SubPanul.getChildByName(this.SlectItem).active = !0, this.selectSubitem = this.SubPanul.getChildByName(this.SlectItem).getChildByName("0"), this.SubPanul.getChildByName(this.SlectItem).children.forEach(function(t) {
                        t.active = !1
                    }), this.BtnZoom.active = !0, cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(0, 0, 0),
                        scale: 1
                    }).call(function() {}).start(), this.MainPanul.children.forEach(function(t) {
                        t.getComponent(cc.ScrollView).scrollToTop(0), cc.find("view/" + t.name, t).children.forEach(function(t) {
                            "0" == t.name ? t.getComponent(cc.Sprite).spriteFrame = e.Loder.getChildByName(e.SlectItem).getChildByName("1").getComponent(cc.Sprite).spriteFrame : t.getComponent(cc.Sprite).spriteFrame = e.Loder.getChildByName(e.SlectItem).getChildByName("0").getComponent(cc.Sprite).spriteFrame
                        })
                    }), this.SubPanul.getChildByName(this.SlectItem).getChildByName("0").active = !0
                }, e.prototype.MainAction = function(t) {
                    var e = this,
                        n = t.target;
                    console.log(n.name), this.SoundPaly("button");
                    var o = Number(n.name);
                    "Dad" == this.SlectItem ? (console.log(o), this.ChrecrterI[0].getChildByName(n.name).getChildByName("1"), o &gt; 1 &amp;&amp; o &lt; 9 &amp;&amp; 1 != this.Zoom ? (cc.Tween.stopAllByTarget(this.ItemPerent), this.BtnZoom.active = !1, cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(416, -255, 0),
                        scale: 2
                    }).call(function() {}).start()) : (cc.Tween.stopAllByTarget(this.ItemPerent), this.BtnZoom.active = !0, cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(0, 0, 0),
                        scale: 1
                    }).call(function() {}).start())) : "Boy" == this.SlectItem ? o &gt; 1 &amp;&amp; o &lt; 7 &amp;&amp; 1 != this.Zoom ? (cc.Tween.stopAllByTarget(this.ItemPerent), this.BtnZoom.active = !1, cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(242.699, -204, 0),
                        scale: 2.5
                    }).call(function() {}).start()) : (cc.Tween.stopAllByTarget(this.ItemPerent), this.BtnZoom.active = !0, cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(0, 0, 0),
                        scale: 1
                    }).call(function() {}).start()) : "Girl" == this.SlectItem ? o &gt; 1 &amp;&amp; o &lt; 10 &amp;&amp; 1 != this.Zoom ? (cc.Tween.stopAllByTarget(this.ItemPerent), this.BtnZoom.active = !1, cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(-33, -252, 0),
                        scale: 2.5
                    }).call(function() {}).start()) : (cc.Tween.stopAllByTarget(this.ItemPerent), this.BtnZoom.active = !0, cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(0, 0, 0),
                        scale: 1
                    }).call(function() {}).start()) : "Mom" == this.SlectItem &amp;&amp; (o &gt; 1 &amp;&amp; o &lt; 8 &amp;&amp; 1 != this.Zoom ? (cc.Tween.stopAllByTarget(this.ItemPerent), this.BtnZoom.active = !1, cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(-351.396, -292, 0),
                        scale: 2
                    }).call(function() {}).start()) : (cc.Tween.stopAllByTarget(this.ItemPerent), this.BtnZoom.active = !0, cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(0, 0, 0),
                        scale: 1
                    }).call(function() {}).start())), n.parent.children.forEach(function(t) {
                        t.getComponent(cc.Sprite).spriteFrame = e.Loder.getChildByName(e.SlectItem).getChildByName("0").getComponent(cc.Sprite).spriteFrame
                    }), this.SubPanul.getChildByName(n.parent.name).children.forEach(function(t) {
                        t.active = !1
                    }), n.getComponent(cc.Sprite).spriteFrame = this.Loder.getChildByName(this.SlectItem).getChildByName("1").getComponent(cc.Sprite).spriteFrame, this.selectSubitem = this.SubPanul.getChildByName(n.parent.name).getChildByName(n.name), this.selectSubitem.active = !0
                }, e.prototype.ZoomButton = function(t) {
                    var e = t.target;
                    "Zoom" == e.name ? (e.active = !1, "Dad" == this.SlectItem ? (cc.Tween.stopAllByTarget(this.ItemPerent), cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(416, -255, 0),
                        scale: 2
                    }).call(function() {}).start()) : "Boy" == this.SlectItem ? (cc.Tween.stopAllByTarget(this.ItemPerent), cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(242.699, -204, 0),
                        scale: 2.5
                    }).call(function() {}).start()) : "Girl" == this.SlectItem ? (cc.Tween.stopAllByTarget(this.ItemPerent), cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(-33, -252, 0),
                        scale: 2.5
                    }).call(function() {}).start()) : "Mom" == this.SlectItem &amp;&amp; (cc.Tween.stopAllByTarget(this.ItemPerent), cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(-351.396, -292, 0),
                        scale: 2
                    }).call(function() {}).start())) : "ZoomOut" == e.name &amp;&amp; (this.BtnZoom.active = !0, cc.Tween.stopAllByTarget(this.ItemPerent), cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(0, 0, 0),
                        scale: 1
                    }).call(function() {}).start())
                }, e.prototype.PanulScroll = function(t) {
                    var e = t.target;
                    "M2" == e.name ? (this.Percent &lt; .9 &amp;&amp; (this.Percent += .2), this.MainPanul.getChildByName(this.SlectItem).getComponent(cc.ScrollView).scrollToPercentVertical(this.Percent, .2, !0)) : "M1" == e.name ? (this.Percent &gt; .1 &amp;&amp; (this.Percent -= .2), this.MainPanul.getChildByName(this.SlectItem).getComponent(cc.ScrollView).scrollToPercentVertical(this.Percent, .2, !0)) : "S1" == e.name ? this.selectSubitem.getComponent(cc.ScrollView).scrollToBottom(.1) : "S2" == e.name &amp;&amp; this.selectSubitem.getComponent(cc.ScrollView).scrollToTop(.1)
                }, e.prototype.DadItem = function(t) {
                    return a(this, void 0, void 0, function() {
                        var e, n, o, i, r = this;
                        return c(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return (e = t.target).getChildByName("Ads") ? [4, h.default.getInstance().requestRewardAds(e.getChildByName("Ads"))] : [3, 2];
                                case 1:
                                    if (!a.sent()) return [2];
                                    a.label = 2;
                                case 2:
                                    return n = this.ChrecrterI[0], o = Number(e.parent.name), i = n.getChildByName(e.parent.name).getChildByName(e.name), "0" != e.parent.name &amp;&amp; 255 == e.parent.opacity &amp;&amp; this.BtnClick &lt; 5 &amp;&amp; (e.parent.opacity = 254, this.isComplete[this.BtnClick] = !0, this.BtnClick++, 5 == this.BtnClick &amp;&amp; (console.log("Done Activ true"), cc.find("Canvas/SafeArea/Done").active = !0)), e.parent.children.forEach(function(t) {
                                        t.getComponent(cc.Sprite).spriteFrame = r.Loder.getChildByName("0").getComponent(cc.Sprite).spriteFrame
                                    }), 1 == i.active &amp;&amp; o &gt; 5 ? i.active = !1 : (n.getChildByName(e.parent.name).children.forEach(function(t) {
                                        t.active = !1
                                    }), 13 != o &amp;&amp; 12 != o || (this.SetFrame(n, 13, "Dad"), this.SetFrame(n, 12, "Dad")), 8 == o &amp;&amp; (1 == n.getChildByName("7").getChildByName("1").active || 1 == n.getChildByName("7").getChildByName("3").active || this.SetFrame(n, 7, "Dad")), 7 == o &amp;&amp; "1" != e.name &amp;&amp; "3" != e.name &amp;&amp; this.SetFrame(n, 8, "Dad"), e.getComponent(cc.Sprite).spriteFrame = this.Loder.getChildByName("1").getComponent(cc.Sprite).spriteFrame, i.active = !0, o &gt; 8 &amp;&amp; this.Partical(i), this.SoundPaly("Success")), [2]
                            }
                        })
                    })
                }, e.prototype.BoyItem = function(t) {
                    return a(this, void 0, void 0, function() {
                        var e, n, o, i, r = this;
                        return c(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return (e = t.target).getChildByName("Ads") ? [4, h.default.getInstance().requestRewardAds(e.getChildByName("Ads"))] : [3, 2];
                                case 1:
                                    if (!a.sent()) return [2];
                                    a.label = 2;
                                case 2:
                                    return n = this.ChrecrterI[1], o = Number(e.parent.name), i = n.getChildByName(e.parent.name).getChildByName(e.name), "0" != e.parent.name &amp;&amp; 255 == e.parent.opacity &amp;&amp; this.BtnClick &lt; 5 &amp;&amp; (e.parent.opacity = 254, this.isComplete[this.BtnClick] = !0, this.BtnClick++, 5 == this.BtnClick &amp;&amp; (console.log("Done Activ true"), cc.find("Canvas/SafeArea/Done").active = !0)), 1 == i.active &amp;&amp; o &gt; 4 &amp;&amp; 6 != o ? (i.active = !1, e.getComponent(cc.Sprite).spriteFrame = this.Loder.getChildByName("0").getComponent(cc.Sprite).spriteFrame) : (7 != o &amp;&amp; (e.parent.children.forEach(function(t) {
                                        t.getComponent(cc.Sprite).spriteFrame = r.Loder.getChildByName("0").getComponent(cc.Sprite).spriteFrame
                                    }), n.getChildByName(e.parent.name).children.forEach(function(t) {
                                        t.active = !1
                                    })), 11 != o &amp;&amp; 12 != o || (this.SetFrame(n, 11, "Boy"), this.SetFrame(n, 12, "Boy")), e.getComponent(cc.Sprite).spriteFrame = this.Loder.getChildByName("1").getComponent(cc.Sprite).spriteFrame, i.active = !0, o &gt; 6 &amp;&amp; this.Partical(i), this.SoundPaly("Success")), [2]
                            }
                        })
                    })
                }, e.prototype.MomItem = function(t) {
                    return a(this, void 0, void 0, function() {
                        var e, n, o, i, r = this;
                        return c(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return (e = t.target).getChildByName("Ads") ? [4, h.default.getInstance().requestRewardAds(e.getChildByName("Ads"))] : [3, 2];
                                case 1:
                                    if (!a.sent()) return [2];
                                    a.label = 2;
                                case 2:
                                    return n = this.ChrecrterI[3], o = Number(e.parent.name), i = n.getChildByName(e.parent.name).getChildByName(e.name), "0" != e.parent.name &amp;&amp; 255 == e.parent.opacity &amp;&amp; this.BtnClick &lt; 5 &amp;&amp; (e.parent.opacity = 254, this.isComplete[this.BtnClick] = !0, this.BtnClick++, 5 == this.BtnClick &amp;&amp; (console.log("Done Activ true"), cc.find("Canvas/SafeArea/Done").active = !0)), e.parent.children.forEach(function(t) {
                                        t.getComponent(cc.Sprite).spriteFrame = r.Loder.getChildByName("0").getComponent(cc.Sprite).spriteFrame
                                    }), 1 == i.active &amp;&amp; o &gt; 5 ? i.active = !1 : (n.getChildByName(e.parent.name).children.forEach(function(t) {
                                        t.active = !1
                                    }), 10 != o &amp;&amp; 12 != o &amp;&amp; 17 != o || (this.SetFrame(n, 10, "Mom"), this.SetFrame(n, 12, "Mom"), this.SetFrame(n, 17, "Mom"), 17 == o &amp;&amp; this.SetFrame(n, 13, "Mom"), 12 == o &amp;&amp; (this.SetFrame(n, 13, "Mom"), this.SetFrame(n, 15, "Mom"), this.SetFrame(n, 16, "Mom"))), 13 != o &amp;&amp; 15 != o &amp;&amp; 16 != o || (this.SetFrame(n, 13, "Mom"), this.SetFrame(n, 15, "Mom"), this.SetFrame(n, 16, "Mom"), this.SetFrame(n, 12, "Mom"), 13 == o &amp;&amp; this.SetFrame(n, 17, "Mom")), e.getComponent(cc.Sprite).spriteFrame = this.Loder.getChildByName("1").getComponent(cc.Sprite).spriteFrame, i.active = !0, o &gt; 7 &amp;&amp; this.Partical(i), this.SoundPaly("Success")), [2]
                            }
                        })
                    })
                }, e.prototype.girlItem = function(t) {
                    return a(this, void 0, void 0, function() {
                        var e, n, o, i, r = this;
                        return c(this, function(a) {
                            switch (a.label) {
                                case 0:
                                    return (e = t.target).getChildByName("Ads") ? [4, h.default.getInstance().requestRewardAds(e.getChildByName("Ads"))] : [3, 2];
                                case 1:
                                    if (!a.sent()) return [2];
                                    a.label = 2;
                                case 2:
                                    return n = this.ChrecrterI[2], o = Number(e.parent.name), i = n.getChildByName(e.parent.name).getChildByName(e.name), "0" != e.parent.name &amp;&amp; 255 == e.parent.opacity &amp;&amp; this.BtnClick &lt; 5 &amp;&amp; (e.parent.opacity = 254, this.isComplete[this.BtnClick] = !0, this.BtnClick++, 5 == this.BtnClick &amp;&amp; (console.log("Done Activ true"), cc.find("Canvas/SafeArea/Done").active = !0)), 1 == i.active &amp;&amp; o &gt; 5 ? (i.active = !1, e.getComponent(cc.Sprite).spriteFrame = this.Loder.getChildByName("0").getComponent(cc.Sprite).spriteFrame) : (9 != o &amp;&amp; (e.parent.children.forEach(function(t) {
                                        t.getComponent(cc.Sprite).spriteFrame = r.Loder.getChildByName("0").getComponent(cc.Sprite).spriteFrame
                                    }), n.getChildByName(e.parent.name).children.forEach(function(t) {
                                        t.active = !1
                                    })), 11 != o &amp;&amp; 12 != o &amp;&amp; 18 != o || (this.SetFrame(n, 11, "Girl"), this.SetFrame(n, 12, "Girl"), this.SetFrame(n, 18, "Girl"), 18 == o &amp;&amp; this.SetFrame(n, 13, "Girl"), 11 == o &amp;&amp; (this.SetFrame(n, 13, "Girl"), this.SetFrame(n, 16, "Girl"), this.SetFrame(n, 17, "Girl"))), 13 != o &amp;&amp; 16 != o &amp;&amp; 17 != o || (this.SetFrame(n, 13, "Girl"), this.SetFrame(n, 16, "Girl"), this.SetFrame(n, 17, "Girl"), this.SetFrame(n, 11, "Girl"), 13 == o &amp;&amp; this.SetFrame(n, 18, "Girl")), 25 == o &amp;&amp; 1 == n.getChildByName("26").getChildByName("5").active &amp;&amp; this.SetFrame(n, 26, "Girl"), 26 == o &amp;&amp; "5" == e.name &amp;&amp; this.SetFrame(n, 25, "Girl"), 18 == o &amp;&amp; 1 == n.getChildByName("17").getChildByName("1").active &amp;&amp; this.SetFrame(n, 17, "Girl"), 17 == o &amp;&amp; "1" == e.name &amp;&amp; this.SetFrame(n, 18, "Girl"), e.getComponent(cc.Sprite).spriteFrame = this.Loder.getChildByName("1").getComponent(cc.Sprite).spriteFrame, i.active = !0, o &gt; 9 &amp;&amp; this.Partical(i), this.SoundPaly("Success")), [2]
                            }
                        })
                    })
                }, e.prototype.Partical = function(t) {
                    if ("0" != t.parent.name) {
                        var e = cc.find("Canvas/SafeArea/Partical/Particle");
                        e.setPosition(e.parent.convertToNodeSpaceAR(t.parent.convertToWorldSpaceAR(t.position))), e.getComponent(cc.ParticleSystem).resetSystem()
                    }
                }, e.prototype.setScale = function(t) {
                    return cc.find(t.parent.parent.name + "/" + t.parent.name + "/view/" + t.parent.name, this.SubPanul).getChildByName(t.name).children[0].scale
                }, e.prototype.SetFrame = function(t, e, n) {
                    var o = this;
                    cc.find(n + "/" + e + "/view/" + e, this.SubPanul).children.forEach(function(t) {
                        t.getComponent(cc.Sprite).spriteFrame = o.Loder.getChildByName("0").getComponent(cc.Sprite).spriteFrame
                    }), t.getChildByName(e + "").children.forEach(function(t) {
                        t.active = !1
                    })
                }, e.prototype.ClickPhoto = function(t) {
                    var e = t.target;
                    "Close" == e.name ? (this.SoundPaly("button"), cc.find("Canvas/SafeArea/CameraPopUp").active = !1) : "Camera" == e.name &amp;&amp; (this.SoundPaly("camera_shutter"), this.PanalFalse.forEach(function(t) {
                        t.active = !1
                    }), m(cc.find("Canvas/SafeArea/CameraPopUp/Mask/Photo")), this.PanalFalse.forEach(function(t) {
                        t.active = !0
                    }), cc.find("Canvas/SafeArea/CameraPopUp").active = !0)
                }, e.prototype.DoneButton = function(t) {
                    t.target, cc.tween(this.ItemPerent).to(.5, {
                        position: cc.v3(0, 0, 0),
                        scale: 1
                    }).call(function() {}).start(), this.PanalFalse.forEach(function(t) {
                        t.active = !1
                    }), cc.find("Canvas/promotion").position = cc.v3(0, 0, 0)
                }, e.prototype.SoundPaly = function(t) {
                    s.default.getInstance().play(t)
                }, r([f(cc.Node)], e.prototype, "MainPanul", void 0), r([f(cc.Node)], e.prototype, "SubPanul", void 0), r([f(cc.Node)], e.prototype, "ItemPerent", void 0), r([f(cc.Node)], e.prototype, "ChrecrterI", void 0), r([f(cc.Node)], e.prototype, "PanalFalse", void 0), r([f(cc.Node)], e.prototype, "Loder", void 0), r([d], e)
            }(cc.Component);

        function m(t) {
            var e = new cc.Node;
            e.parent = cc.director.getScene();
            var n = e.addComponent(cc.Camera);
            e.position = new cc.Vec3(400, 252, 0), n.cullingMask = 4294967295;
            var o = new cc.RenderTexture;
            o.initWithSize(800, 504, cc.RenderTexture.DepthStencilFormat.RB_FMT_S8), n.targetTexture = o, n.render();
            var i = o.readPixels(),
                r = document.createElement("canvas"),
                a = r.getContext("2d"),
                c = r.width = o.width,
                s = r.height = o.height;
            r.width = o.width, r.height = o.height;
            for (var l = 4 * c, u = 0; u &lt; s; u++) {
                for (var h = s - 1 - u, p = a.createImageData(c, 1), d = h * c * 4, f = 0; f &lt; l; f++) p.data[f] = i[d + f];
                a.putImageData(p, 0, u)
            }
            a.getImageData(0, 0, 800, 504);
            var g = r.toDataURL("image/png"),
                m = document.createElement("img");
            m.src = g, m.onload = function() {
                a.clearRect(0, 0, 800, 504), a.drawImage(m, 0, 0);
                var e = new cc.Texture2D,
                    n = new cc.SpriteFrame;
                e.initWithData(a.getImageData(0, 0, 800, 504), cc.Texture2D.PixelFormat.RGBA8888, 800, 504), n.setTexture(e), t.getComponent(cc.Sprite).spriteFrame = n
            }
        }
        n.default = g, n.capturePhoto = m, cc._RF.pop()
    }, {
        "../../../Script/Helper/AudioManager": "AudioManager",
        "../../../Script/Helper/GlobalData": "GlobalData",
        "../../../Script/Helper/HelperTools": "HelperTools",
        "../../../Script/Promotion/AdManager": "AdManager"
    }],
    ToolMoveMaster: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "0c396lhNe1MmoAVPVZlMw1M", "ToolMoveMaster");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        });
        var a = t("./AudioManager"),
            c = t("./UserDrawing"),
            s = cc._decorator,
            l = s.ccclass,
            u = s.property,
            h = cc.Enum({
                Began: 1,
                Move: 2,
                End: 3
            }),
            p = function(t) {
                function e() {
                    var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                    return e.isTouchActive = !0, e.ToolEndMoveTime = .5, e.ToolID = 0, e.MoveItem = null, e.destinationNode = null, e.drawing = [], e.MethodOnCalled = 2, e.BeganAction = null, e.MoveAction = null, e.EndAction = null, e.Hint = [], e.ClipName = "", e.isLoopOnBegan = !0, e.isEndMoveEnable = !0, e.isPositionChanged = !1, e.initPosition = null, e.MoveinitPosition = null, e.DefaultinitPosition = null, e.DestinitPosition = null, e.TapinitPosition = null, e.isTapObject = !1, e.isExitTool = !1, e.isPlaySound = !1, e.isSwipe = !1, e.BeganPoint = 1e4, e.Offset = 3, e
                }
                return i(e, t), e.prototype.onLoad = function() {
                    this.initPosition = this.node.position, this.DefaultinitPosition = this.node.position, this.MoveItem &amp;&amp; (this.MoveinitPosition = this.MoveItem.position), this.destinationNode &amp;&amp; (this.DestinitPosition = this.destinationNode.position), this.registerEvents(), cc.sys.isMobile &amp;&amp; (this.Offset = 1.5)
                }, e.prototype.start = function() {}, e.prototype.registerEvents = function() {
                    this.node.on(cc.Node.EventType.TOUCH_START, this.TouchStart, this), this.node.on(cc.Node.EventType.TOUCH_MOVE, this.TouchMove, this), this.node.on(cc.Node.EventType.TOUCH_END, this.TouchEnd, this), this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEnd, this)
                }, e.prototype.BeganActionOnTouch = function(t) {
                    if (this.drawing)
                        for (var e = 0; e &lt; this.drawing.length; e++) this.drawing[e].setActiveDrawing(!0);
                    this.MoveItem &amp;&amp; (this.node.opacity = 0, this.MoveItem.opacity = 255, this.MoveItem.active = !0, this.MoveItem.position = cc.v3(this.MoveItem.parent.convertToNodeSpaceAR(t.getLocation())), this.TapinitPosition = this.MoveItem.position), cc.Tween.stopAllByTarget(this.node), this.MoveAction &amp;&amp; this.MethodOnCalled == h.Began ? this.MoveAction.emit([this.node, this.ToolID, t.getLocation(), this.MoveItem]) : (this.BeganAction &amp;&amp; this.BeganAction.emit([this.node, this.ToolID, t.getLocation(), this.MoveItem]), this.isLoopOnBegan &amp;&amp; this.ClipName &amp;&amp; this.ClipName.length &gt; 0 &amp;&amp; a.default.getInstance().play(this.ClipName, !0))
                }, e.prototype.TouchStart = function(t) {
                    this.isTouchActive &amp;&amp; this.node.active &amp;&amp; 255 == this.node.opacity &amp;&amp; (this.isPositionChanged = !0, this.node.zIndex = 0, this.isTapObject = !0, this.isSwipe = !1, this.BeganPoint = t.getLocationX(), this.isLoopOnBegan &amp;&amp; this.ClipName &amp;&amp; 0 == this.ClipName.length &amp;&amp; a.default.getInstance().play("FrButton"), this.BeganActionOnTouch(t))
                }, e.prototype.TouchMove = function(t, e) {
                    if (0 != this.isTapObject &amp;&amp; (0 != this.isSwipe || null != this.MoveItem) &amp;&amp; this.isTouchActive) {
                        if (null == this.MoveItem) return;
                        this.MoveItem.position = cc.v3(this.MoveItem.parent.convertToNodeSpaceAR(t.getLocation())), this.MoveAction &amp;&amp; this.MethodOnCalled == h.Move &amp;&amp; this.MoveAction.emit([this.node, this.ToolID, t.getLocation(), this.MoveItem]);
                        var n = !1;
                        if (this.drawing)
                            for (var o = 0; o &lt; this.drawing.length; o++) this.drawing[o].touchMove(t, e), this.drawing[o].DrawNode.getBoundingBoxToWorld().intersects(this.MoveItem.getBoundingBoxToWorld()) &amp;&amp; (n = !0);
                        0 == this.isLoopOnBegan &amp;&amp; (n &amp;&amp; 0 == this.isPlaySound ? (this.isPlaySound = !0, a.default.getInstance().play(this.ClipName, !0)) : 0 == n &amp;&amp; this.isPlaySound &amp;&amp; (this.isPlaySound = !1, a.default.getInstance().stop(this.ClipName)))
                    }
                }, e.prototype.TouchEnd = function(t) {
                    var e = this;
                    if (0 != this.isTapObject &amp;&amp; null != this.MoveItem) {
                        if (this.drawing)
                            for (var n = 0; n &lt; this.drawing.length; n++) this.drawing[n].setActiveDrawing(!1);
                        if (this.destinationNode &amp;&amp; this.destinationNode.getBoundingBoxToWorld().contains(t.getLocation()) &amp;&amp; (this.destinationNode.active = !0, this.MoveItem.active = !1, this.isTapObject = !1, this.isTouchActive = !1), this.ClipName &amp;&amp; this.ClipName.length &gt; 0 &amp;&amp; a.default.getInstance().stop(this.ClipName), this.isTapObject = !1, this.MoveAction &amp;&amp; this.MethodOnCalled == h.End ? this.MoveAction.emit([this.node, this.ToolID, t.getLocation(), this.MoveItem]) : this.EndAction &amp;&amp; this.EndAction.emit([this.node, this.ToolID, t.getLocation(), this.MoveItem]), this.isTouchActive &amp;&amp; this.isPositionChanged) {
                            this.isPositionChanged = !1;
                            var o = this;
                            cc.tween(this.MoveItem).to(this.ToolEndMoveTime, {
                                position: this.TapinitPosition
                            }).call(function() {
                                a.default.getInstance().play("FrEffect6"), o.node.zIndex = 0, o.MoveItem.active = !1, o.MoveItem.position = e.MoveinitPosition, o.node.active = !0, o.node.opacity = 255
                            }).start()
                        }
                    }
                }, e.prototype.UpdateOffset = function(t) {
                    if (this.drawing)
                        for (var e = 0; e &lt; this.drawing.length; e++) this.drawing[e].setDrawingOffset(t.width, t.height)
                }, e.prototype.UpdateBrushSize = function(t) {
                    if (this.drawing)
                        for (var e = 0; e &lt; this.drawing.length; e++) this.drawing[e].setBrushSize(t)
                }, e.prototype.resetComponent = function() {
                    this.MoveItem &amp;&amp; (this.MoveItem.active = !1), this.isTapObject = !1, this.node.opacity = 255, this.node.active = !0, this.node.position = this.DefaultinitPosition, this.MoveItem &amp;&amp; (this.MoveItem.position = this.MoveinitPosition), this.isTouchActive = !0
                }, e.prototype.setActive = function(t) {
                    this.node.opacity = t ? 255 : 254
                }, e.prototype.ToolDoneAction = function() {
                    if (this.drawing.length &gt; 0)
                        for (var t = 0; t &lt; this.drawing.length; t++) this.drawing[t].isErase ? (this.drawing[t].clearPicture(), this.drawing[t].isUpdateTexture = !0) : this.drawing[t].FillFullTexture()
                }, e.prototype.resetTexture = function() {
                    if (this.drawing.length &gt; 0)
                        for (var t = 0; t &lt; this.drawing.length; t++) this.drawing[t].resetPicture()
                }, e.prototype.isToolDone = function() {
                    if (this.drawing.length &gt; 0) {
                        for (var t = !0, e = 0; e &lt; this.drawing.length; e++)
                            if (this.drawing[e].isErase) {
                                if (this.drawing[e].getDrawingPercentage() &gt; 10) {
                                    t = !1;
                                    break
                                }
                            } else if (this.drawing[e].getDrawingPercentage() &lt; 90) {
                            t = !1;
                            break
                        }
                        return t
                    }
                    return !1
                }, r([u()], e.prototype, "isTouchActive", void 0), r([u()], e.prototype, "ToolEndMoveTime", void 0), r([u()], e.prototype, "ToolID", void 0), r([u(cc.Node)], e.prototype, "MoveItem", void 0), r([u(cc.Node)], e.prototype, "destinationNode", void 0), r([u([c.default])], e.prototype, "drawing", void 0), r([u({
                    type: h
                })], e.prototype, "MethodOnCalled", void 0), r([u(cc.Component.EventHandler)], e.prototype, "BeganAction", void 0), r([u(cc.Component.EventHandler)], e.prototype, "MoveAction", void 0), r([u(cc.Component.EventHandler)], e.prototype, "EndAction", void 0), r([u([cc.Node])], e.prototype, "Hint", void 0), r([u(cc.String)], e.prototype, "ClipName", void 0), r([u(cc.Boolean)], e.prototype, "isLoopOnBegan", void 0), r([u(cc.Boolean)], e.prototype, "isEndMoveEnable", void 0), r([l], e)
            }(cc.Component);
        n.default = p, cc._RF.pop()
    }, {
        "./AudioManager": "AudioManager",
        "./UserDrawing": "UserDrawing"
    }],
    UserDrawing: [function(t, e, n) {
        "use strict";
        cc._RF.push(e, "7423cdpXoxPF6EiCt9QdLYC", "UserDrawing");
        var o, i = this &amp;&amp; this.__extends || (o = function(t, e) {
                return (o = Object.setPrototypeOf || {
                        __proto__: []
                    }
                    instanceof Array &amp;&amp; function(t, e) {
                        t.__proto__ = e
                    } || function(t, e) {
                        for (var n in e) Object.prototype.hasOwnProperty.call(e, n) &amp;&amp; (t[n] = e[n])
                    })(t, e)
            }, function(t, e) {
                function n() {
                    this.constructor = t
                }
                o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }),
            r = this &amp;&amp; this.__decorate || function(t, e, n, o) {
                var i, r = arguments.length,
                    a = r &lt; 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o);
                else
                    for (var c = t.length - 1; c &gt;= 0; c--)(i = t[c]) &amp;&amp; (a = (r &lt; 3 ? i(a) : r &gt; 3 ? i(e, n, a) : i(e, n)) || a);
                return r &gt; 3 &amp;&amp; a &amp;&amp; Object.defineProperty(e, n, a), a
            };
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.USEREVENT = void 0;
        var a = t("./DrawingManager"),
            c = cc._decorator,
            s = c.ccclass,
            l = c.property;
        (n.USEREVENT || (n.USEREVENT = {})).UPDATEDRAWING = "UpdateDrawing";
        var u = function(t) {
            function e() {
                var e = null !== t &amp;&amp; t.apply(this, arguments) || this;
                return e.isActiveDrawing = !0, e.brush = null, e.brushsize = 30, e.isErase = !1, e.isRepeatPattern = !1, e.DrawingOffset = cc.v2(0, 0), e.DrawingTexture = [], e.DefaultTexture = null, e.selectedPattern = 0, e.isUpdateTexture = !1, e.Drawing = null, e
            }
            return i(e, t), e.prototype.onLoad = function() {
                this.init(), this.Drawing = new a.default, this.Drawing.initWithData(this.node), this.DefaultTexture &amp;&amp; this.Drawing.loadTextureFrame(this.DefaultTexture.getTexture().nativeUrl, 0, this.isRepeatPattern);
                for (var t = 0; t &lt; this.DrawingTexture.length; t++) this.Drawing.loadTextureFrame(this.DrawingTexture[t].getTexture().nativeUrl, t + 1, this.isRepeatPattern);
                this.setEraseOn(this.isErase)
            }, e.prototype.start = function() {
                this.setActiveDrawing(this.isActiveDrawing)
            }, e.prototype.init = function() {
                this.DrawNode = this.node, this.UserCanvas = document.createElement("canvas"), this.UserContext = this.UserCanvas.getContext("2d"), this.UserCanvas.width = this.node.width, this.UserCanvas.height = this.node.height, this.CanvasWidth = this.node.width, this.CanvasHeight = this.node.height, this.UserContext.clearRect(0, 0, this.CanvasWidth, this.CanvasHeight), this.BrushImage = new Image, this.BrushImage.onload = function() {}, this.BrushImage.src = this.brush.getTexture().nativeUrl
            }, e.prototype.touchMove = function(t) {
                var e = t.getLocation(),
                    n = t.getPreviousLocation();
                e.x = e.x - this.DrawingOffset.x, n.x = n.x - this.DrawingOffset.x, e.y = e.y - this.DrawingOffset.y, n.y = n.y - this.DrawingOffset.y;
                var o = this.DrawNode.convertToNodeSpaceAR(e),
                    i = this.DrawNode.getContentSize();
                e = cc.v2(o.x + i.width / 2, i.height - (o.y + i.height / 2));
                var r = this.DrawNode.convertToNodeSpaceAR(n);
                n = cc.v2(r.x + i.width / 2, i.height - (r.y + i.height / 2));
                for (var a = Math.sqrt(Math.pow(n.x - e.x, 2) + Math.pow(n.y - e.y, 2)), c = 0; c &lt; a; c += 1) {
                    var s = n.x - e.x,
                        l = n.y - e.y,
                        u = c / a,
                        h = cc.v2(e.x + s * u, e.y + l * u);
                    0 == this.brushsize ? this.UserContext.drawImage(this.BrushImage, h.x - this.brushsize / 2, h.y - this.brushsize / 2) : this.UserContext.drawImage(this.BrushImage, h.x - this.brushsize / 2, h.y - this.brushsize / 2, this.brushsize, this.brushsize)
                }
                this.isUpdateTexture = !0
            }, e.prototype.setActiveDrawing = function(t) {
                this.isActiveDrawing != t &amp;&amp; (this.isActiveDrawing = t, this.isActiveDrawing ? (this.node.on(cc.Node.EventType.TOUCH_MOVE, this.touchMove, this), this.node.on(cc.Node.EventType.TOUCH_START, this.touchMove, this)) : (this.node.off(cc.Node.EventType.TOUCH_MOVE), this.node.off(cc.Node.EventType.TOUCH_START)))
            }, e.prototype.clearRect = function() {
                this.UserContext.clearRect(0, 0, this.CanvasWidth, this.CanvasHeight), this.Drawing.updateCanvas(this.selectedPattern, this.getImageData())
            }, e.prototype.clearPicture = function() {
                this.Drawing.clearAll()
            }, e.prototype.FillFullTexture = function() {
                this.UserContext.drawImage(this.BrushImage, 0, 0, 1e3, 1e3), this.UserContext.beginPath(), this.UserContext.rect(0, 0, this.CanvasWidth, this.CanvasHeight), this.UserContext.fillStyle = "red", this.UserContext.fill(), this.isUpdateTexture = !0
            }, e.prototype.resetPicture = function() {
                this.Drawing.resetTextureFrame(this.selectedPattern)
            }, e.prototype.setDrawingOffset = function(t, e) {
                this.DrawingOffset = cc.v2(t, e)
            }, e.prototype.getImageData = function() {
                return this.UserContext.getImageData(0, 0, this.CanvasWidth, this.CanvasHeight)
            }, e.prototype.setBrushSize = function(t) {
                this.brushsize = t
            }, e.prototype.setEraseOn = function(t) {
                this.Drawing.setEraseOn(t), this.isErase = t
            }, e.prototype.setPatternIndex = function(t) {
                t &gt; this.DrawingTexture.length ? alert("Index must spriteframe Range") : (console.log("index", t), this.selectedPattern = t)
            }, e.prototype.getDrawingPercentage = function() {
                return this.Drawing.getPercentage(this.selectedPattern)
            }, e.prototype.update = function() {
                this.isUpdateTexture &amp;&amp; (this.Drawing.updateCanvas(this.selectedPattern, this.getImageData()), this.isUpdateTexture = !1, this.clearRect())
            }, r([l()], e.prototype, "isActiveDrawing", void 0), r([l(cc.SpriteFrame)], e.prototype, "brush", void 0), r([l()], e.prototype, "brushsize", void 0), r([l()], e.prototype, "isErase", void 0), r([l()], e.prototype, "isRepeatPattern", void 0), r([l(cc.Vec2)], e.prototype, "DrawingOffset", void 0), r([l([cc.SpriteFrame])], e.prototype, "DrawingTexture", void 0), r([l(cc.SpriteFrame)], e.prototype, "DefaultTexture", void 0), r([l()], e.prototype, "selectedPattern", void 0), r([s], e)
        }(cc.Component);
        n.default = u, cc._RF.pop()
    }, {
        "./DrawingManager": "DrawingManager"
    }]
}, {}, ["SuperstarFamilyDressUp", "AudioManager", "CanvasManager", "CocosHelper", "DragonHelper", "DrawingManager", "GlobalData", "HelperTools", "Scaler", "SessionStorageHelper", "SpineHelper", "StickerHelper", "ToolMoveMaster", "UserDrawing", "AdManager", "Promotion", "RewardFailed"]);

initAdsGame("GameCanvas","3y9o1w5m3dsuac90ln6o8mds9iyod850")</pre></body></html>