window.__require = function t(e, n, o) {
function i(a, c) {
if (!n[a]) {
if (!e[a]) {
var s = a.split("/");
s = s[s.length - 1];
if (!e[s]) {
var l = "function" == typeof __require && __require;
if (!c && 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 && __require, a = 0; a < o.length; a++) i(o[a]);
return i;
}({
ATAndroidBannerJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "373b2sCOFlCLZeomt863XyC", "ATAndroidBannerJS");
var n = "com/anythink/cocosjs/ATBannerJSBridge", o = o || {
loadBanner: function(t, e) {
cc.log("Android-loadBanner:" + e);
jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
setAdListener: function(t) {
cc.log("Android-setAdListener");
jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
},
hasAdReady: function(t) {
cc.log("Android-hasAdReady");
return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
},
checkAdStatus: function(t) {
cc.log("Android-checkAdStatus:" + t);
return jsb.reflection.callStaticMethod(n, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", t);
},
showAdInPosition: function(t, e) {
cc.log("Android-showAdInPosistion");
jsb.reflection.callStaticMethod(n, "showWithPosition", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, "");
},
showAdInPositionAndScenario: function(t, e, o) {
cc.log("Android-showAdInPositionAndScenario");
jsb.reflection.callStaticMethod(n, "showWithPosition", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, o);
},
showAdInRectangle: function(t, e) {
cc.log("Android-showAdInRectangle");
jsb.reflection.callStaticMethod(n, "showWithRect", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, "");
},
showAdInRectangleAndScenario: function(t, e, o) {
cc.log("Android-showAdInRectangleAndScenario");
jsb.reflection.callStaticMethod(n, "showWithRect", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, o);
},
removeAd: function(t) {
cc.log("Android-removeAd");
jsb.reflection.callStaticMethod(n, "remove", "(Ljava/lang/String;)V", t);
},
reShowAd: function(t) {
cc.log("Android-reShowAd");
jsb.reflection.callStaticMethod(n, "reshow", "(Ljava/lang/String;)V", t);
},
hideAd: function(t) {
cc.log("Android-hideAd");
jsb.reflection.callStaticMethod(n, "hide", "(Ljava/lang/String;)V", t);
}
};
e.exports = o;
cc._RF.pop();
}, {} ],
ATAndroidInterstitialJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "f073foYdLdPM6Yr1ntb2lMg", "ATAndroidInterstitialJS");
var n = "com/anythink/cocosjs/ATInterstitialJSBridge", o = o || {
loadInterstitial: function(t, e) {
cc.log("Android-loadInterstitial");
jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
setAdListener: function(t) {
cc.log("Android-setAdListener");
jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
},
hasAdReady: function(t) {
cc.log("Android-hasAdReady");
return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
},
checkAdStatus: function(t) {
cc.log("Android-checkAdStatus:" + t);
return jsb.reflection.callStaticMethod(n, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", t);
},
showAd: function(t) {
cc.log("Android-showAd:" + t);
jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;)V", t);
},
showAdInScenario: function(t, e) {
cc.log("Android-showAdInScenario:" + t + "---" + e);
jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
}
};
e.exports = o;
cc._RF.pop();
}, {} ],
ATAndroidJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "85a5eThP61PK65Y4yGwBvE8", "ATAndroidJS");
var n = "com/anythink/cocosjs/ATJSBridge", o = o || {
printJsLog: function(t) {
null != t && null != t && jsb.reflection.callStaticMethod("android/util/Log", "i", "(Ljava/lang/String;Ljava/lang/String;)I", "AT-Cocos-JS", t);
},
initSDK: function(t, e) {
jsb.reflection.callStaticMethod(n, "initSDK", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
initCustomMap: function(t) {
jsb.reflection.callStaticMethod(n, "initCustomMap", "(Ljava/lang/String;)V", t);
},
setPlacementCustomMap: function(t, e) {
jsb.reflection.callStaticMethod(n, "setPlacementCustomMap", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
setGDPRLevel: function(t) {
jsb.reflection.callStaticMethod(n, "setGDPRLevel", "(I)V", t);
},
getGDPRLevel: function() {
return jsb.reflection.callStaticMethod(n, "getGDPRLevel", "()I");
},
getUserLocation: function(t) {
jsb.reflection.callStaticMethod(n, "getUserLocation", "(Ljava/lang/String;)V", t);
},
showGDPRAuth: function() {
jsb.reflection.callStaticMethod(n, "showGDPRAuth", "()V");
},
setLogDebug: function(t) {
jsb.reflection.callStaticMethod(n, "setLogDebug", "(Z)V", t);
},
deniedUploadDeviceInfo: function(t) {
jsb.reflection.callStaticMethod(n, "deniedUploadDeviceInfo", "(Ljava/lang/String;)V", t);
}
};
e.exports = o;
cc._RF.pop();
}, {} ],
ATAndroidNativeJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "c7e28/V0ltGuaVkyssLml95", "ATAndroidNativeJS");
var n = "com/anythink/cocosjs/ATNativeJSBridge", o = o || {
loadNative: function(t, e) {
cc.log("Android-loadNative");
jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
setAdListener: function(t) {
cc.log("Android-setAdListener");
jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
},
hasAdReady: function(t) {
cc.log("Android-hasAdReady");
return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
},
checkAdStatus: function(t) {
cc.log("Android-checkAdStatus:" + t);
return jsb.reflection.callStaticMethod(n, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", t);
},
showAd: function(t, e) {
cc.log("Android-showAd");
jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, "");
},
showAdInScenario: function(t, e, o) {
cc.log("Android-showAdInScenario");
jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, o);
},
removeAd: function(t) {
cc.log("Android-removeAd");
jsb.reflection.callStaticMethod(n, "remove", "(Ljava/lang/String;)V", t);
}
};
e.exports = o;
cc._RF.pop();
}, {} ],
ATAndroidRewardedVideoJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "0e16ckjW85NZIXjxXyQ2xem", "ATAndroidRewardedVideoJS");
var n = "com/anythink/cocosjs/ATRewardedVideoJSBridge", o = o || {
loadRewardedVideo: function(t, e) {
cc.log("Android-loadRewardedVideo");
jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
setAdListener: function(t) {
cc.log("Android-setAdListener");
jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
},
hasAdReady: function(t) {
cc.log("Android-hasAdReady");
return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
},
checkAdStatus: function(t) {
cc.log("Android-checkAdStatus:" + t);
return jsb.reflection.callStaticMethod(n, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", t);
},
showAd: function(t) {
cc.log("Android-rv_showAd:" + t);
jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;)V", t);
},
showAdInScenario: function(t, e) {
cc.log("Android-rv_showAdInScenario:" + t + "---" + e);
jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
}
};
e.exports = o;
cc._RF.pop();
}, {} ],
ATBannerJSSDK: [ function(t, e) {
"use strict";
cc._RF.push(e, "fed33eJy/VKD6bSJh4Cejc1", "ATBannerJSSDK");
var n = t("./Android/ATAndroidBannerJS"), o = t("./iOS/ATiOSBannerJS"), i = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, r = r || {
kATBannerAdLoadingExtraBannerAdSizeStruct: "banner_ad_size_struct",
kATBannerAdShowingPositionTop: "top",
kATBannerAdShowingPositionBottom: "bottom",
kATBannerAdInlineAdaptiveWidth: "inline_adaptive_width",
kATBannerAdInlineAdaptiveOrientation: "inline_adaptive_orientation",
kATBannerAdInlineAdaptiveOrientationCurrent: 0,
kATBannerAdInlineAdaptiveOrientationPortrait: 1,
kATBannerAdInlineAdaptiveOrientationLandscape: 2,
kATBannerAdAdaptiveWidth: "adaptive_width",
kATBannerAdAdaptiveOrientation: "adaptive_orientation",
kATBannerAdAdaptiveOrientationCurrent: 0,
kATBannerAdAdaptiveOrientationPortrait: 1,
kATBannerAdAdaptiveOrientationLandscape: 2,
ATBannerListener: {
developerCallback: null,
onBannerAdLoaded: function(t) {
null != this.developerCallback && null != this.developerCallback.onBannerAdLoaded && null != this.developerCallback.onBannerAdLoaded && this.developerCallback.onBannerAdLoaded(t);
},
onBannerAdLoadFail: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdLoadFail && null != this.developerCallback.onBannerAdLoadFail && this.developerCallback.onBannerAdLoadFail(t, e);
},
onBannerAdShow: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdShow && null != this.developerCallback.onBannerAdShow && this.developerCallback.onBannerAdShow(t, e);
},
onBannerAdClick: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdClick && null != this.developerCallback.onBannerAdClick && this.developerCallback.onBannerAdClick(t, e);
},
onBannerAdAutoRefresh: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdAutoRefresh && null != this.developerCallback.onBannerAdAutoRefresh && this.developerCallback.onBannerAdAutoRefresh(t, e);
},
onBannerAdAutoRefreshFail: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdAutoRefreshFail && null != this.developerCallback.onBannerAdAutoRefreshFail && this.developerCallback.onBannerAdAutoRefreshFail(t, e);
},
onBannerAdCloseButtonTapped: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdCloseButtonTapped && null != this.developerCallback.onBannerAdCloseButtonTapped && this.developerCallback.onBannerAdCloseButtonTapped(t, e);
}
},
loadBanner: function(t, e) {
void 0 === e && (e = {});
if (null != i && null != i) {
if (e.hasOwnProperty(r.kATBannerAdLoadingExtraBannerAdSizeStruct)) {
var n = e[r.kATBannerAdLoadingExtraBannerAdSizeStruct];
e.width = n.width;
e.height = n.height;
}
i.loadBanner(t, JSON.stringify(e));
} else cc.log("You must run on Android or iOS.");
},
setAdListener: function(t) {
var e = {};
e[a] = "ATBannerJSSDK.ATBannerListener.onBannerAdLoaded", e[c] = "ATBannerJSSDK.ATBannerListener.onBannerAdLoadFail", 
e[s] = "ATBannerJSSDK.ATBannerListener.onBannerAdCloseButtonTapped", e[l] = "ATBannerJSSDK.ATBannerListener.onBannerAdClick", 
e[u] = "ATBannerJSSDK.ATBannerListener.onBannerAdShow", e[p] = "ATBannerJSSDK.ATBannerListener.onBannerAdAutoRefresh", 
e[d] = "ATBannerJSSDK.ATBannerListener.onBannerAdAutoRefreshFail";
null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
this.ATBannerListener.developerCallback = t;
},
hasAdReady: function(t) {
if (null != i && null != i) return i.hasAdReady(t);
cc.log("You must run on Android or iOS.");
return !1;
},
checkAdStatus: function(t) {
if (null != i && null != i) return i.checkAdStatus(t);
cc.log("You must run on Android or iOS.");
return "";
},
showAdInPosition: function(t, e) {
null != i && null != i ? i.showAdInPosition(t, e) : cc.log("You must run on Android or iOS.");
},
showAdInPositionAndScenario: function(t, e, n) {
null != i && null != i ? i.showAdInPosition(t, e, n) : cc.log("You must run on Android or iOS.");
},
showAdInRectangle: function(t, e) {
null != i && null != i ? i.showAdInRectangle(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
},
showAdInRectangleAndScenario: function(t, e, n) {
null != i && null != i ? i.showAdInRectangle(t, JSON.stringify(e), n) : cc.log("You must run on Android or iOS.");
},
removeAd: function(t) {
null != i && null != i ? i.removeAd(t) : cc.log("You must run on Android or iOS.");
},
reShowAd: function(t) {
null != i && null != i ? i.reShowAd(t) : cc.log("You must run on Android or iOS.");
},
hideAd: function(t) {
null != i && null != i ? i.hideAd(t) : cc.log("You must run on Android or iOS.");
},
createLoadAdSize: function(t, e) {
var n = {};
n.width = t;
n.height = e;
return n;
},
createShowAdRect: function(t, e, n, o) {
var i = {};
i.x = t;
i.y = e;
i.width = n;
i.height = o;
return i;
}
}, a = "BannerLoaded", c = "BannerLoadFail", s = "BannerCloseButtonTapped", l = "BannerClick", u = "BannerShow", p = "BannerRefresh", d = "BannerRefreshFail";
window.ATBannerJSSDK = r;
cc._RF.pop();
}, {
"./Android/ATAndroidBannerJS": "ATAndroidBannerJS",
"./iOS/ATiOSBannerJS": "ATiOSBannerJS"
} ],
ATBannerJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "e39ee3D06VH2JIOKTRndSVl", "ATBannerJS");
t("./AnyThinkAds/ATBannerJSSDK");
t("./AnyThinkAds/ATJSSDK");
var n = cc.Class({
name: "ATBannerJS",
proxy: null,
ctor: function() {},
init: function() {
ATBannerJSSDK.setAdListener(this);
},
placementID: function() {
return this.proxy.placementID();
},
loadBanner: function() {
var t = cc.view.getFrameSize().height;
if (!(t < 1400)) {
var e = {}, n = t / 1334 * 115;
e[ATBannerJSSDK.kATBannerAdLoadingExtraBannerAdSizeStruct] = ATBannerJSSDK.createLoadAdSize(cc.view.getFrameSize().width, n);
e[ATBannerJSSDK.kATBannerAdInlineAdaptiveWidth] = cc.view.getFrameSize().width;
e[ATBannerJSSDK.kATBannerAdInlineAdaptiveOrientation] = ATBannerJSSDK.kATBannerAdInlineAdaptiveOrientationCurrent;
ATBannerJSSDK.loadBanner(this.placementID(), e);
}
},
checkBannerReady: function() {
return !!ATBannerJSSDK.hasAdReady(this.placementID());
},
showBanner: function() {
this.bannerIsShow || ATBannerJSSDK.showAdInPosition(this.placementID(), ATBannerJSSDK.kATBannerAdShowingPositionBottom);
},
destroyBanner: function() {
if (this.bannerIsShow) {
ATBannerJSSDK.removeAd(this.placementID());
this.bannerIsShow = !1;
this.loadBanner();
}
},
onBannerAdLoaded: function(t) {
null != this.proxy && this.proxy.onBannerAdLoaded(t);
},
onBannerAdLoadFail: function(t, e) {
null != this.proxy && this.proxy.onBannerAdLoadFail(t, e);
},
onBannerAdShow: function(t, e) {
this.bannerIsShow = !0;
null != this.proxy && this.proxy.onBannerAdShow(t, e);
},
onBannerAdClick: function(t, e) {
null != this.proxy && this.proxy.onBannerAdClick(t, e);
},
onBannerAdAutoRefresh: function() {
this.proxy;
},
onBannerAdAutoRefreshFail: function() {
this.proxy;
},
onBannerAdCloseButtonTapped: function() {
this.proxy;
}
});
e.exports = n;
cc.ATBannerJS || (cc.ATBannerJS = new n());
cc._RF.pop();
}, {
"./AnyThinkAds/ATBannerJSSDK": void 0,
"./AnyThinkAds/ATJSSDK": void 0
} ],
ATBanner: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "180ddxdu85IXYjxFMMG+Rz5", "ATBanner");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
var r = t("../../zgSingleton"), a = t("./ATSDKMgr"), c = function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.init = function() {
cc.ATBannerJS.proxy = this;
console.log("cc[ATBannerJS]", cc.ATBannerJS);
console.log("window[ATBannerJS]", window.ATBannerJS);
cc.ATBannerJS.init();
this.loadBanner();
};
e.prototype.placementID = function() {
return cc.sys.os === cc.sys.OS_IOS ? a.default.topon_banner_placementId : cc.sys.os === cc.sys.OS_ANDROID ? a.default.topon_banner_placementId : void 0;
};
e.prototype.loadBanner = function() {
cc.ATBannerJS.loadBanner();
};
e.prototype.showBanner = function() {
cc.ATBannerJS.showBanner();
};
e.prototype.destroyBanner = function() {
cc.ATBannerJS.destroyBanner();
};
e.prototype.onBannerAdLoaded = function() {};
e.prototype.onBannerAdLoadFail = function() {};
e.prototype.onBannerAdShow = function() {};
e.prototype.onBannerAdClick = function() {};
e.prototype.onBannerAdAutoRefresh = function() {};
e.prototype.onBannerAdAutoRefreshFail = function() {};
e.prototype.onBannerAdCloseButtonTapped = function() {};
return e;
}(r.zgSingleton);
n.default = c;
cc._RF.pop();
}, {
"../../zgSingleton": "zgSingleton",
"./ATSDKMgr": "ATSDKMgr"
} ],
ATInterstitialJSSDK: [ function(t, e) {
"use strict";
cc._RF.push(e, "778c3M0uDdLZKCU1iwGn6T6", "ATInterstitialJSSDK");
var n = t("./iOS/ATiOSInterstitialJS"), o = t("./Android/ATAndroidInterstitialJS"), i = cc.sys.os === cc.sys.OS_IOS ? n : cc.sys.os === cc.sys.OS_ANDROID ? o : void 0, r = r || {
UseRewardedVideoAsInterstitial: "UseRewardedVideoAsInterstitial",
ATInterstitialListener: {
developerCallback: null,
onInterstitialAdLoaded: function(t) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdLoaded && null != this.developerCallback.onInterstitialAdLoaded && this.developerCallback.onInterstitialAdLoaded(t);
},
onInterstitialAdLoadFail: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdLoadFail && null != this.developerCallback.onInterstitialAdLoadFail && this.developerCallback.onInterstitialAdLoadFail(t, e);
},
onInterstitialAdShow: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdShow && null != this.developerCallback.onInterstitialAdShow && this.developerCallback.onInterstitialAdShow(t, e);
},
onInterstitialAdStartPlayingVideo: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdStartPlayingVideo && null != this.developerCallback.onInterstitialAdStartPlayingVideo && this.developerCallback.onInterstitialAdStartPlayingVideo(t, e);
},
onInterstitialAdEndPlayingVideo: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdEndPlayingVideo && null != this.developerCallback.onInterstitialAdEndPlayingVideo && this.developerCallback.onInterstitialAdEndPlayingVideo(t, e);
},
onInterstitialAdFailedToPlayVideo: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdFailedToPlayVideo && null != this.developerCallback.onInterstitialAdFailedToPlayVideo && this.developerCallback.onInterstitialAdFailedToPlayVideo(t, e);
},
onInterstitialAdFailedToShow: function(t) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdFailedToShow && null != this.developerCallback.onInterstitialAdFailedToShow && this.developerCallback.onInterstitialAdFailedToShow(t);
},
onInterstitialAdClose: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdClose && null != this.developerCallback.onInterstitialAdClose && this.developerCallback.onInterstitialAdClose(t, e);
},
onInterstitialAdClick: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdClick && null != this.developerCallback.onInterstitialAdClick && this.developerCallback.onInterstitialAdClick(t, e);
}
},
loadInterstitial: function(t, e) {
void 0 === e && (e = {});
null != i && null != i ? i.loadInterstitial(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
},
setAdListener: function(t) {
var e = {};
e[a] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdLoaded", e[c] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdLoadFail", 
e[s] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdStartPlayingVideo", 
e[l] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdEndPlayingVideo", 
e[u] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdFailedToPlayVideo", 
e[p] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdClose", e[d] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdClick", 
e[h] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdShow", e[f] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdFailedToShow";
null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
this.ATInterstitialListener.developerCallback = t;
},
hasAdReady: function(t) {
if (null != i && null != i) return i.hasAdReady(t);
cc.log("You must run on Android or iOS.");
return !1;
},
checkAdStatus: function(t) {
if (null != i && null != i) return i.checkAdStatus(t);
cc.log("You must run on Android or iOS.");
return "";
},
showAd: function(t) {
null != i && null != i ? i.showAd(t) : cc.log("You must run on Android or iOS.");
},
showAdInScenario: function(t, e) {
void 0 === e && (e = "");
null != i && null != i ? i.showAdInScenario(t, e) : cc.log("You must run on Android or iOS.");
}
}, a = "InterstitialLoaded", c = "InterstitialLoadFail", s = "InterstitialPlayStart", l = "InterstitialPlayEnd", u = "InterstitialPlayFail", p = "InterstitialClose", d = "InterstitialClick", h = "InterstitialAdShow", f = "InterstitialAdShowFail";
window.ATInterstitialJSSDK = r;
cc._RF.pop();
}, {
"./Android/ATAndroidInterstitialJS": "ATAndroidInterstitialJS",
"./iOS/ATiOSInterstitialJS": "ATiOSInterstitialJS"
} ],
ATInterstitialJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "834cdg0rj5K4bBXLVG4XyXv", "ATInterstitialJS");
t("./AnyThinkAds/ATInterstitialJSSDK");
t("./AnyThinkAds/ATJSSDK");
var n = cc.Class({
name: "ATInterstitialJS",
proxy: null,
interType: 0,
ctor: function() {},
init: function() {
ATBannerJSSDK.setAdListener(this);
},
placementID: function() {
return this.proxy.placementID(this.interType);
},
loadInter: function(t) {
var e = {};
e[ATInterstitialJSSDK.UseRewardedVideoAsInterstitial] = !1;
this.interType = t;
ATInterstitialJSSDK.setAdListener(this);
0 == this.interType ? ATInterstitialJSSDK.loadInterstitial(this.placementID(), e) : 1 == this.interType && ATInterstitialJSSDK.loadInterstitial(this.placementID(), e);
},
checkInterReady: function(t) {
if (null != this.proxy) return 0 == t ? !!ATInterstitialJSSDK.hasAdReady(this.placementID()) : 1 == t ? !!ATInterstitialJSSDK.hasAdReady(this.placementID()) : void 0;
},
showInter: function(t) {
0 == t ? ATInterstitialJSSDK.showAd(this.placementID()) : 1 == t && ATInterstitialJSSDK.showAd(this.placementID());
},
onInterstitialAdLoaded: function(t) {
null != this.proxy && this.proxy.onInterstitialAdLoaded(t);
},
onInterstitialAdLoadFail: function(t, e) {
null != this.proxy && this.proxy.onInterstitialAdLoadFail(t, e);
},
onInterstitialAdShow: function(t, e) {
null != this.proxy && this.proxy.onInterstitialAdShow(t, e);
},
onInterstitialAdStartPlayingVideo: function() {},
onInterstitialAdEndPlayingVideo: function() {},
onInterstitialAdFailedToPlayVideo: function() {},
onInterstitialAdFailedToShow: function() {},
onInterstitialAdClose: function(t, e) {
null != this.proxy && this.proxy.onInterstitialAdClose(t, e);
},
onInterstitialAdClick: function(t, e) {
null != this.proxy && this.proxy.onInterstitialAdClick(t, e);
}
});
e.exports = n;
cc.ATInterstitialJS || (cc.ATInterstitialJS = new n());
cc._RF.pop();
}, {
"./AnyThinkAds/ATInterstitialJSSDK": void 0,
"./AnyThinkAds/ATJSSDK": void 0
} ],
ATInterstitial: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3adb122h/VGgJKlIXmsxvCD", "ATInterstitial");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
var r = t("../../zgSingleton"), a = t("./ATSDKMgr"), c = function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.init = function() {
this.ATInterstitialJS = cc.ATInterstitialJS;
this.ATInterstitialJS.proxy = this;
this.ATInterstitialJS.init();
this.loadInter(0);
};
e.prototype.placementID = function(t) {
if (0 == t) {
if (cc.sys.os === cc.sys.OS_IOS) return a.default.topon_inter_placementId;
if (cc.sys.os === cc.sys.OS_ANDROID) return a.default.topon_inter_placementId;
} else {
if (cc.sys.os === cc.sys.OS_IOS) return a.default.topon_fullinter_placementId;
if (cc.sys.os === cc.sys.OS_ANDROID) return a.default.topon_fullinter_placementId;
}
};
e.prototype.loadInter = function(t) {
this.ATInterstitialJS.loadInter(t);
};
e.prototype.showInter = function() {
this.ATInterstitialJS.showInter(0);
};
e.prototype.onInterstitialAdLoaded = function() {};
e.prototype.onInterstitialAdLoadFail = function() {};
e.prototype.onInterstitialAdShow = function() {};
e.prototype.onInterstitialAdClick = function() {};
e.prototype.onInterstitialAdClose = function() {};
return e;
}(r.zgSingleton);
n.default = c;
cc._RF.pop();
}, {
"../../zgSingleton": "zgSingleton",
"./ATSDKMgr": "ATSDKMgr"
} ],
ATJSSDK: [ function(t, e) {
"use strict";
cc._RF.push(e, "bac5aDDxNxEn6rH1N8w46KW", "ATJSSDK");
var n = t("./Android/ATAndroidJS"), o = t("./iOS/ATiOSJS"), i = !1, r = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, a = a || {
kATUserLocationUnknown: 0,
kATUserLocationInEU: 1,
kATUserLocationOutOfEU: 2,
PERSONALIZED: 0,
NONPERSONALIZED: 1,
UNKNOWN: 2,
OS_VERSION_NAME: "os_vn",
OS_VERSION_CODE: "os_vc",
APP_PACKAGE_NAME: "package_name",
APP_VERSION_NAME: "app_vn",
APP_VERSION_CODE: "app_vc",
BRAND: "brand",
MODEL: "model",
DEVICE_SCREEN_SIZE: "screen",
MNC: "mnc",
MCC: "mcc",
LANGUAGE: "language",
TIMEZONE: "timezone",
USER_AGENT: "ua",
ORIENTATION: "orient",
NETWORK_TYPE: "network_type",
INSTALLER: "it_src",
ANDROID_ID: "android_id",
GAID: "gaid",
MAC: "mac",
IMEI: "imei",
OAID: "oaid",
IDFA: "idfa",
IDFV: "idfv",
ATSDKListener: {
userLocationCallback: null,
getUserLocationCallback: function(t) {
null != this.userLocationCallback && null != this.userLocationCallback && this.userLocationCallback(t);
}
},
initSDK: function(t, e) {
null != r && null != r ? r.initSDK(t, e) : cc.log("You must run on Android or iOS.");
},
initCustomMap: function(t) {
null != r && null != r ? null != t && null != t && r.initCustomMap(JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
},
setPlacementCustomMap: function(t, e) {
null != r && null != r ? null != e && null != e && r.setPlacementCustomMap(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
},
setGDPRLevel: function(t) {
null != r && null != r ? r.setGDPRLevel(t) : cc.log("You must run on Android or iOS.");
},
getGDPRLevel: function() {
if (null != r && null != r) return r.getGDPRLevel();
cc.log("You must run on Android or iOS.");
return this.UNKNOWN;
},
getUserLocation: function(t) {
this.ATSDKListener.userLocationCallback = t;
null != r && null != r ? r.getUserLocation(c) : cc.log("You must run on Android or iOS.");
},
showGDPRAuth: function() {
null != r && null != r ? r.showGDPRAuth() : cc.log("You must run on Android or iOS.");
},
setLogDebug: function(t) {
i = t;
null != r && null != r ? r.setLogDebug(t) : cc.log("You must run on Android or iOS.");
},
printLog: function(t) {
null != t && null != t && i && null != r && (null != r && null != r ? r.printJsLog(t) : cc.log("You must run on Android or iOS."));
},
deniedUploadDeviceInfo: function(t) {
if (null != r && null != r) {
if (null != t) {
for (var e = t.length, n = "", o = 0; o < e; o++) {
var i = t[o];
n = 0 == o ? i : n + "," + i;
}
cc.log("test__" + n);
r.deniedUploadDeviceInfo(n);
}
} else cc.log("You must run on Android or iOS.");
}
}, c = "ATJSSDK.ATSDKListener.getUserLocationCallback";
window.ATJSSDK = a;
cc._RF.pop();
}, {
"./Android/ATAndroidJS": "ATAndroidJS",
"./iOS/ATiOSJS": "ATiOSJS"
} ],
ATNativeJSSDK: [ function(t, e) {
"use strict";
cc._RF.push(e, "39725wDOBhDQYIM5/T7cLXZ", "ATNativeJSSDK");
var n = t("./Android/ATAndroidNativeJS"), o = t("./iOS/ATiOSNativeJS"), i = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, r = r || {
ATNativeListener: {
developerCallback: null,
onNativeAdLoaded: function(t) {
null != this.developerCallback && null != this.developerCallback.onNativeAdLoaded && null != this.developerCallback.onNativeAdLoaded && this.developerCallback.onNativeAdLoaded(t);
},
onNativeAdLoadFail: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onNativeAdLoadFail && null != this.developerCallback.onNativeAdLoadFail && this.developerCallback.onNativeAdLoadFail(t, e);
},
onNativeAdShow: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onNativeAdShow && null != this.developerCallback.onNativeAdShow && this.developerCallback.onNativeAdShow(t, e);
},
onNativeAdClick: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onNativeAdClick && null != this.developerCallback.onNativeAdClick && this.developerCallback.onNativeAdClick(t, e);
},
onNativeAdVideoStart: function(t) {
null != this.developerCallback && null != this.developerCallback.onNativeAdVideoStart && null != this.developerCallback.onNativeAdVideoStart && this.developerCallback.onNativeAdVideoStart(t);
},
onNativeAdVideoEnd: function(t) {
null != this.developerCallback && null != this.developerCallback.onNativeAdVideoEnd && null != this.developerCallback.onNativeAdVideoEnd && this.developerCallback.onNativeAdVideoEnd(t);
},
onNativeAdCloseButtonTapped: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onNativeAdCloseButtonTapped && null != this.developerCallback.onNativeAdCloseButtonTapped && this.developerCallback.onNativeAdCloseButtonTapped(t, e);
}
},
loadNative: function(t, e) {
void 0 === e && (e = {});
null != i && null != i ? i.loadNative(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
},
setAdListener: function(t) {
var e = {};
e[a] = "ATNativeJSSDK.ATNativeListener.onNativeAdLoaded", e[c] = "ATNativeJSSDK.ATNativeListener.onNativeAdLoadFail", 
e[s] = "ATNativeJSSDK.ATNativeListener.onNativeAdCloseButtonTapped", e[l] = "ATNativeJSSDK.ATNativeListener.onNativeAdClick", 
e[u] = "ATNativeJSSDK.ATNativeListener.onNativeAdShow", e[p] = "ATNativeJSSDK.ATNativeListener.onNativeAdVideoStart", 
e[d] = "ATNativeJSSDK.ATNativeListener.onNativeAdVideoEnd";
null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
this.ATNativeListener.developerCallback = t;
},
hasAdReady: function(t) {
if (null != i && null != i) return i.hasAdReady(t);
cc.log("You must run on Android or iOS.");
return !1;
},
checkAdStatus: function(t) {
if (null != i && null != i) return i.checkAdStatus(t);
cc.log("You must run on Android or iOS.");
return "";
},
showAd: function(t, e) {
null != i && null != i ? i.showAd(t, JSON.stringify(e.getAdViewProperty())) : cc.log("You must run on Android or iOS.");
},
showAdInScenario: function(t, e, n) {
void 0 === n && (n = "");
null != i && null != i ? i.showAdInScenario(t, JSON.stringify(e.getAdViewProperty()), n) : cc.log("You must run on Android or iOS.");
},
removeAd: function(t) {
null != i && null != i ? i.removeAd(t) : cc.log("You must run on Android or iOS.");
},
createLoadAdSize: function(t, e) {
var n = {};
n.width = t;
n.height = e;
return n;
},
AdViewProperty: cc.Class({
parent: null,
appIcon: null,
mainImage: null,
title: null,
desc: null,
adLogo: null,
cta: null,
rating: null,
dislike: null,
createItemViewProperty: function(t, e, n, o, i, r, a, c) {
void 0 === c && (c = !1);
var s = {};
s.x = t;
s.y = e;
s.width = n;
s.height = o;
s.backgroundColor = i;
s.textColor = r;
s.textSize = a;
s.isCustomClick = c;
return s;
},
getAdViewProperty: function() {
var t = {};
null != this.parent && (t.parent = this.parent);
null != this.appIcon && (t.icon = this.appIcon);
null != this.mainImage && (t.mainImage = this.mainImage);
null != this.title && (t.title = this.title);
null != this.desc && (t.desc = this.desc);
null != this.adLogo && (t.adLogo = this.adLogo);
null != this.cta && (t.cta = this.cta);
null != this.rating && (t.rating = this.rating);
null != this.dislike && (t.dislike = this.dislike);
return t;
}
})
}, a = "NativeLoaded", c = "NativeLoadFail", s = "NativeCloseButtonTapped", l = "NativeClick", u = "NativeShow", p = "NativeVideoStart", d = "NativeVideoEnd";
window.ATNativeJSSDK = r;
cc._RF.pop();
}, {
"./Android/ATAndroidNativeJS": "ATAndroidNativeJS",
"./iOS/ATiOSNativeJS": "ATiOSNativeJS"
} ],
ATNativeJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "632566KI5RGZ7SH/rUdPBiO", "ATNativeJS");
t("./AnyThinkAds/ATRewardedVideoJSSDK");
t("./AnyThinkAds/ATJSSDK");
t("./AnyThinkAds/ATInterstitialJSSDK");
t("./AnyThinkAds/ATNativeJSSDK");
var n = cc.Class({
name: "ATNativeJS",
proxy: null,
frameWidth: 0,
frameHeight: 0,
nativeIsShow: !1,
nativeType: 0,
nativeShow: !1,
nativeIsLoad: !1,
nativeIsLoading: !1,
ctor: function() {},
init: function() {
ATNativeJSSDK.setAdListener(this);
},
placementID: function() {
return this.proxy.placementID();
},
loadNative: function(t, e) {
void 0 === t && (t = 0);
void 0 === e && (e = !1);
this.nativeType = t;
this.nativeShow = e;
this.nativeIsLoading = !0;
var n = cc.view.getFrameSize();
this.frameWidth = n.width;
this.frameHeight = n.height;
var o = this.frameWidth / 750, i = 656 * o, r = 440 * o;
if (2 == this.nativeType) {
this.destroyNative(!1);
i *= .9;
r *= .8;
} else if (3 == this.nativeType) {
this.destroyNative(!1);
i *= .9;
r *= .75;
} else {
i *= .9;
r *= .75;
}
ATNativeJSSDK.loadNative(this.placementID(), ATNativeJSSDK.createLoadAdSize(i, r));
},
destroyNative: function(t) {
void 0 === t && (t = !0);
ATNativeJSSDK.removeAd(this.placementID());
this.nativeIsLoad = !1;
this.nativeIsShow = !1;
t && this.loadNative();
},
showNative: function(t) {
if (this.nativeIsLoading) {
this.nativeType = t;
this.nativeShow = !0;
} else if (this.nativeIsLoad) {
if (!this.nativeIsShow) {
this.nativeIsShow = !0;
var e = this.frameWidth / 750, n = 656 * e, o = 440 * e, i = 12, r = new ATNativeJSSDK.AdViewProperty(), a = 0;
if (0 == t) a = .45 * this.frameHeight; else if (1 == t) a = .625 * this.frameHeight; else if (2 == t) {
a = .595 * this.frameHeight;
n *= .9;
o *= .8;
i = 8;
} else if (3 == t) {
a = .69 * this.frameHeight;
n *= .9;
o *= .75;
i = 8;
} else if (4 == t) {
a = .75 * this.frameHeight;
n *= 1.1;
}
var c = .5 * (this.frameWidth - n);
r.parent = r.createItemViewProperty(c, a, n, o, "#ffffff", "", 0);
r.mainImage = r.createItemViewProperty(0, 0, n, o, "#ffffff", "#ffffff", i);
ATNativeJSSDK.showAd(this.placementID(), r);
}
} else this.loadNative(t, !0);
},
onNativeAdLoaded: function() {
this.nativeIsLoad = !0;
this.nativeIsLoading = !1;
if (this.nativeShow) {
this.nativeIsShow = !1;
this.showNative(this.nativeType);
}
},
onNativeAdLoadFail: function() {
this.nativeIsLoading = !1;
this.nativeIsLoad = !1;
},
onNativeAdShow: function(t, e) {
null != this.proxy && this.proxy.onNativeAdShow(t, e);
},
onNativeAdClick: function() {},
onNativeAdVideoStart: function() {},
onNativeAdVideoEnd: function() {},
onNativeAdCloseButtonTapped: function() {}
});
e.exports = n;
cc.ATNativeJS || (cc.ATNativeJS = new n());
cc._RF.pop();
}, {
"./AnyThinkAds/ATInterstitialJSSDK": void 0,
"./AnyThinkAds/ATJSSDK": void 0,
"./AnyThinkAds/ATNativeJSSDK": void 0,
"./AnyThinkAds/ATRewardedVideoJSSDK": void 0
} ],
ATNative: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6935cecX45IioFawvWRaxhk", "ATNative");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ATNative = void 0;
var r = t("../../zgSingleton"), a = t("./ATSDKMgr"), c = function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.init = function() {
this.ATNativeJS = cc.ATNativeJS;
this.ATNativeJS.proxy = this;
this.ATNativeJS.init();
this.loadNative();
};
e.prototype.placementID = function() {
return cc.sys.os === cc.sys.OS_IOS ? a.default.topon_native_placementId : cc.sys.os === cc.sys.OS_ANDROID ? a.default.topon_native_placementId : void 0;
};
e.prototype.loadNative = function(t, e) {
void 0 === t && (t = 4);
void 0 === e && (e = !1);
this.ATNativeJS.loadNative(t, e);
};
e.prototype.showNative = function(t) {
this.ATNativeJS.showNative(t);
};
e.prototype.onNativeAdShow = function() {};
e.prototype.destroyNative = function() {
this.ATNativeJS.destroyNative();
};
e.prototype.getIsNativeShow = function() {
return this.ATNativeJS.nativeShow;
};
return e;
}(r.zgSingleton);
n.ATNative = c;
cc._RF.pop();
}, {
"../../zgSingleton": "zgSingleton",
"./ATSDKMgr": "ATSDKMgr"
} ],
ATRewardVideoJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "7a311dQIK5HyqkCe/o7a1dk", "ATRewardVideoJS");
t("./AnyThinkAds/ATRewardedVideoJSSDK");
t("./AnyThinkAds/ATJSSDK");
var n = cc.Class({
name: "ATRewardVideoJS",
proxy: null,
ctor: function() {
console.log("ATRewardVideoJS.js created! ");
},
init: function() {
ATRewardedVideoJSSDK.setAdListener(this);
},
placementID: function() {
return this.proxy.placementID();
},
loadAd: function(t, e) {
var n = {};
n[ATRewardedVideoJSSDK.userIdKey] = t;
n[ATRewardedVideoJSSDK.userDataKey] = e;
ATRewardedVideoJSSDK.loadRewardedVideo(this.placementID(), n);
},
showAd: function() {
ATRewardedVideoJSSDK.showAdInScenario(this.placementID(), "");
},
checkReady: function() {
ATJSSDK.printLog("AnyThinkRewardedVideo::checkReady()   " + (ATRewardedVideoJSSDK.hasAdReady(this.placementID()) ? "Ready" : "No"));
if (null != this.proxy) return !!ATRewardedVideoJSSDK.hasAdReady(this.placementID());
},
onRewardedVideoAdLoaded: function(t) {
ATJSSDK.printLog("AnyThinkRewardedVideo::onRewardedVideoAdLoaded(" + t + ")");
null != this.proxy && this.proxy.onRewardedVideoAdLoaded(t);
},
onRewardedVideoAdFailed: function(t, e) {
ATJSSDK.printLog("AnyThinkRewardedVideo::onRewardedVideoAdFailed(" + t + ", " + e + ")");
null != this.proxy && this.proxy.onRewardedVideoAdFailed(t, e);
},
onRewardedVideoAdPlayStart: function(t, e) {
ATJSSDK.printLog("AnyThinkRewardedVideo::onRewardedVideoAdPlayStart(" + t + ", " + e + ")");
null != this.proxy && this.proxy.onRewardedVideoAdPlayStart(t, e);
},
onRewardedVideoAdPlayEnd: function(t, e) {
ATJSSDK.printLog("AnyThinkRewardedVideo::onRewardedVideoAdPlayEnd(" + t + ", " + e + ")");
null != this.proxy && this.proxy.onRewardedVideoAdPlayEnd(t, e);
},
onRewardedVideoAdPlayFailed: function(t, e, n) {
ATJSSDK.printLog("AnyThinkRewardedVideo::onRewardedVideoAdPlayFailed(" + t + ", " + e + ", " + n + ")");
null != this.proxy && this.proxy.onRewardedVideoAdPlayFailed(t, e, n);
},
onRewardedVideoAdClosed: function(t, e) {
ATJSSDK.printLog("AnyThinkRewardedVideo::onRewardedVideoAdClosed(" + t + ", " + e + ")");
null != this.proxy && this.proxy.onRewardedVideoAdClosed(t, e);
},
onRewardedVideoAdPlayClicked: function(t, e) {
null != this.proxy && this.proxy.onRewardedVideoAdPlayClicked(t, e);
},
onReward: function(t, e) {
null != this.proxy && this.proxy.onReward(t, e);
}
});
e.exports = n;
cc.ATRewardVideoJS || (cc.ATRewardVideoJS = new n());
cc._RF.pop();
}, {
"./AnyThinkAds/ATJSSDK": void 0,
"./AnyThinkAds/ATRewardedVideoJSSDK": void 0
} ],
ATRewardVideo: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ee3a8fFEl1HTb/Gl6EilBAf", "ATRewardVideo");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
n.RewardAdLoadState = n.ATRewardVideo = void 0;
var r, a = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.reawardAdState = 0;
e.ifLoadShow = !1;
e.ifWatchEnd = !1;
return e;
}
e.prototype.init = function() {
cc.ATRewardVideoJS.proxy = this;
cc.ATRewardVideoJS.init();
this.ifWatchEnd = !1;
this.reawardAdState == r.Unload && this.loadAd();
};
e.prototype.placementID = function() {
return cc.sys.os === cc.sys.OS_IOS ? c.default.topon_rewardVideo_placementId : cc.sys.os === cc.sys.OS_ANDROID ? c.default.topon_rewardVideo_placementId : void 0;
};
e.prototype.loadAd = function() {
console.log("anythink === 加载激励视频广告", r[this.reawardAdState]);
if (this.reawardAdState != r.Loading) {
this.reawardAdState = r.Loading;
cc.ATRewardVideoJS.loadAd("userIdKey", "userDataKey");
}
};
e.prototype.showAd = function() {
if (this.reawardAdState == r.LoadSuccess) cc.ATRewardVideoJS.showAd(); else {
this.loadAd();
this.ifLoadShow = !0;
}
};
e.prototype.checkReady = function() {
return cc.ATRewardVideoJS.checkReady();
};
e.prototype.onRewardedVideoAdLoaded = function() {
console.log("anythink === 加载激励视频广告成功", this.checkReady(), r[this.reawardAdState]);
this.reawardAdState = r.LoadSuccess;
if (this.ifLoadShow) {
this.showAd();
this.ifLoadShow = !1;
}
};
e.prototype.onRewardedVideoAdFailed = function() {
console.log("anythink === 加载激励视频广告失败", r[this.reawardAdState]);
this.reawardAdState = r.LoadFail;
};
e.prototype.onRewardedVideoAdPlayStart = function(t, e) {
var n = JSON.parse(e);
gData.adData.updateData(t, n);
this.reawardAdState = r.Unload;
};
e.prototype.onRewardedVideoAdPlayEnd = function() {
this.ifWatchEnd = !0;
};
e.prototype.onRewardedVideoAdPlayFailed = function() {
c.default.getInstance().watchVideoAdCallBack(c.AdPlayStateType.PlayFail);
};
e.prototype.onRewardedVideoAdClosed = function() {
this.ifWatchEnd ? c.default.getInstance().watchVideoAdCallBack(c.AdPlayStateType.WatchEnd) : c.default.getInstance().watchVideoAdCallBack(c.AdPlayStateType.Cancel);
this.ifWatchEnd = !1;
this.loadAd();
};
e.prototype.onRewardedVideoAdPlayClicked = function() {};
e.prototype.onReward = function() {
this.ifWatchEnd = !0;
};
return e;
}(a.zgSingleton);
n.ATRewardVideo = s;
(function(t) {
t[t.Unload = 0] = "Unload";
t[t.Loading = 1] = "Loading";
t[t.LoadSuccess = 2] = "LoadSuccess";
t[t.LoadFail = 3] = "LoadFail";
t[t.PlayEnd = 4] = "PlayEnd";
})(r = n.RewardAdLoadState || (n.RewardAdLoadState = {}));
cc._RF.pop();
}, {
"../../zgSingleton": "zgSingleton",
"./ATSDKMgr": "ATSDKMgr"
} ],
ATRewardedVideoJSSDK: [ function(t, e) {
"use strict";
cc._RF.push(e, "8ac0a0yhkxIB7Ga0FkDttBs", "ATRewardedVideoJSSDK");
var n = t("./Android/ATAndroidRewardedVideoJS"), o = t("./iOS/ATiOSRewardedVideoJS"), i = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, r = r || {
userIdKey: "userID",
userDataKey: "media_ext",
ATRewardedVideoListener: {
developerCallback: null,
onRewardedVideoAdLoaded: function(t) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdLoaded(" + t + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdLoaded && null != this.developerCallback.onRewardedVideoAdLoaded && this.developerCallback.onRewardedVideoAdLoaded(t);
},
onRewardedVideoAdFailed: function(t, e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdFailed(" + t + ", " + e + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdFailed && null != this.developerCallback.onRewardedVideoAdFailed && this.developerCallback.onRewardedVideoAdFailed(t, e);
},
onRewardedVideoAdPlayStart: function(t, e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayStart(" + t + ", " + e + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayStart && null != this.developerCallback.onRewardedVideoAdPlayStart && this.developerCallback.onRewardedVideoAdPlayStart(t, e);
},
onRewardedVideoAdPlayEnd: function(t, e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayEnd(" + t + ", " + e + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayEnd && null != this.developerCallback.onRewardedVideoAdPlayEnd && this.developerCallback.onRewardedVideoAdPlayEnd(t, e);
},
onRewardedVideoAdPlayFailed: function(t, e, n) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayFailed(" + t + ", " + n + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayFailed && null != this.developerCallback.onRewardedVideoAdPlayFailed && this.developerCallback.onRewardedVideoAdPlayFailed(t, e, n);
},
onRewardedVideoAdClosed: function(t, e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdClosed(" + t + ", " + e + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdClosed && null != this.developerCallback.onRewardedVideoAdClosed && this.developerCallback.onRewardedVideoAdClosed(t, e);
},
onRewardedVideoAdPlayClicked: function(t, e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayClicked(" + t + ", " + e + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayClicked && null != this.developerCallback.onRewardedVideoAdPlayClicked && this.developerCallback.onRewardedVideoAdPlayClicked(t, e);
},
onReward: function(t, e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onReward(" + t + ", " + e + ")");
null != this.developerCallback && null != this.developerCallback.onReward && null != this.developerCallback.onReward && this.developerCallback.onReward(t, e);
}
},
loadRewardedVideo: function(t, e) {
void 0 === e && (e = {});
null != i && null != i ? i.loadRewardedVideo(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
},
setAdListener: function(t) {
var e = {};
e[a] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdLoaded", e[c] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdFailed", 
e[s] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayStart", 
e[l] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayEnd", 
e[u] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayFailed", 
e[p] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdClosed", e[d] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayClicked", 
e[h] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onReward";
null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
this.ATRewardedVideoListener.developerCallback = t;
},
hasAdReady: function(t) {
if (null != i && null != i) return i.hasAdReady(t);
cc.log("You must run on Android or iOS.");
return !1;
},
checkAdStatus: function(t) {
if (null != i && null != i) return i.checkAdStatus(t);
cc.log("You must run on Android or iOS.");
return "";
},
showAd: function(t) {
null != i && null != i ? i.showAd(t) : cc.log("You must run on Android or iOS.");
},
showAdInScenario: function(t, e) {
void 0 === e && (e = "");
null != i && null != i ? i.showAdInScenario(t, e) : cc.log("You must run on Android or iOS.");
}
}, a = "RewardedVideoLoaded", c = "RewardedVideoLoadFail", s = "RewardedVideoPlayStart", l = "RewardedVideoPlayEnd", u = "RewardedVideoPlayFail", p = "RewardedVideoClose", d = "RewardedVideoClick", h = "RewardedVideoReward";
window.ATRewardedVideoJSSDK = r;
cc._RF.pop();
}, {
"./Android/ATAndroidRewardedVideoJS": "ATAndroidRewardedVideoJS",
"./iOS/ATiOSRewardedVideoJS": "ATiOSRewardedVideoJS"
} ],
ATSDKMgrJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "f54e6FGCLdB06BaS25A0bWv", "ATSDKMgrJS");
t("./AnyThinkAds/ATJSSDK");
var n = cc.Class({
name: "ATSDKMgrJS",
proxy: null,
ctor: function() {
console.log("ATSDKMgrJS.js created! ");
},
initATJSSDK: function(t, e) {
ATJSSDK.setLogDebug(!0);
ATJSSDK.initCustomMap({
appCustomKey1: "appCustomValue1",
appCustomKey2: "appCustomValue2"
});
ATJSSDK.setPlacementCustomMap(this.placementID(), {
placementCustomKey1: "placementCustomValue1",
placementCustomKey2: "placementCustomValue2"
});
ATJSSDK.getGDPRLevel();
cc.sys.os === cc.sys.OS_IOS ? ATJSSDK.initSDK(t, e) : cc.sys.os === cc.sys.OS_ANDROID && ATJSSDK.initSDK(t, e);
ATJSSDK.getUserLocation(function(t) {
t === ATJSSDK.kATUserLocationInEU && ATJSSDK.getGDPRLevel() === ATJSSDK.UNKNOWN && ATJSSDK.showGDPRAuth();
});
},
placementID: function() {
console.log("this.proxy", this);
console.log("this.proxy", this.proxy);
return this.proxy.placementID();
}
});
e.exports = n;
cc.ATSDKMgrJS || (cc.ATSDKMgrJS = new n());
cc._RF.pop();
}, {
"./AnyThinkAds/ATJSSDK": void 0
} ],
ATSDKMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ae75dW/PnBNZp5nLfdPDYa5", "ATSDKMgr");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AdPlayStateType = void 0;
var a, c = t("../../../../system/JsbSystem"), s = t("../../zgSingleton"), l = t("./ATBanner"), u = t("./ATInterstitial"), p = t("./ATNative"), d = t("./ATRewardVideo"), h = cc._decorator, f = h.ccclass, y = (h.property, 
function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
n = e;
e.prototype.initSDK = function() {
if (cc.sys.isNative) {
this.getAdvertiseChannel();
cc.ATSDKMgrJS.proxy = this;
cc.ATSDKMgrJS.initATJSSDK(n.topon_android_appId, n.topon_android_appSecret);
d.ATRewardVideo.getInstance().init();
p.ATNative.getInstance().init();
u.default.getInstance().init();
l.default.getInstance().init();
}
};
e.prototype.placementID = function() {
return cc.sys.os === cc.sys.OS_IOS ? n.topon_rewardVideo_placementId : cc.sys.os === cc.sys.OS_ANDROID ? n.topon_rewardVideo_placementId : void 0;
};
e.prototype.getAdvertiseChannel = function() {
var t = c.default.getAdvertisingChannel();
t || (t = "1,a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313");
console.log("getAdvertiseChannel..." + t);
var e = t.split(",");
e[0];
n.topon_android_appId = e[1];
n.topon_android_appSecret = e[2];
n.topon_rewardVideo_placementId = e[3];
n.topon_inter_placementId = e[4];
n.topon_native_placementId = e[5];
n.topon_fullinter_placementId = e[6];
n.topon_banner_placementId = e[7];
};
e.prototype.showVideoAd = function() {
d.ATRewardVideo.getInstance().showAd();
};
e.prototype.watchVideoAdCallBack = function(t) {
switch (t) {
case a.WatchEnd:
mk.ad.wacthAdSuccess();
break;

case a.PlayFail:
case a.Cancel:
mk.ad.watchAdFail();
}
};
e.prototype.showInterAd = function() {};
e.prototype.loadNativeAd = function(t, e) {
p.ATNative.getInstance().loadNative(t, e);
};
e.prototype.destroyNativeAd = function() {
p.ATNative.getInstance().destroyNative();
};
e.prototype.showBannerAd = function() {
l.default.getInstance().showBanner();
};
e.prototype.destoryBanner = function() {
l.default.getInstance().destroyBanner();
};
e.prototype.showInter = function() {
u.default.getInstance().showInter(0);
};
var n;
e.topon_android_appId = "a5f8fa5f10c661";
e.topon_android_appSecret = "66b742dd0e502b64d783d9c66a9d30c4";
e.topon_rewardVideo_placementId = "b5f8fa6673e180";
e.topon_inter_placementId = "b5f8fa77aa5262";
e.topon_native_placementId = "b5f8fa77aa5262";
e.topon_fullinter_placementId = "b5f8fa77aa5262";
e.topon_banner_placementId = "b5f8fa77aa5262";
return n = r([ f ], e);
}(s.zgSingleton));
n.default = y;
(function(t) {
t[t.WatchEnd = 0] = "WatchEnd";
t[t.PlayFail = 1] = "PlayFail";
t[t.Cancel = 2] = "Cancel";
})(a = n.AdPlayStateType || (n.AdPlayStateType = {}));
cc._RF.pop();
}, {
"../../../../system/JsbSystem": "JsbSystem",
"../../zgSingleton": "zgSingleton",
"./ATBanner": "ATBanner",
"./ATInterstitial": "ATInterstitial",
"./ATNative": "ATNative",
"./ATRewardVideo": "ATRewardVideo"
} ],
ATiOSBannerJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "47c24W1IvZAuqKINopNo+IW", "ATiOSBannerJS");
var n = t("ATiOSJS"), o = o || {
loadBanner: function(t, e) {
n.printJsLog("ATiOSBannerJS::loadBanner(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "loadBannerWithPlacementID:extra:", t, e);
},
setAdListener: function(t) {
n.printJsLog("ATiOSBannerJS::setAdListener(" + t + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "setDelegates:", t);
},
hasAdReady: function(t) {
n.printJsLog("ATiOSBannerJS::hasAdReady(" + t + ")");
return jsb.reflection.callStaticMethod("ATBannerAdWrapper", "bannerReadyForPlacementID:", t);
},
checkAdStatus: function(t) {
n.printJsLog("ATiOSBannerJS::checkAdStatus(" + t + ")");
return jsb.reflection.callStaticMethod("ATBannerAdWrapper", "bannerCheckAdStatusForPlacementID:", t);
},
showAdInPosition: function(t, e) {
n.printJsLog("ATiOSBannerJS::showAdInPosition(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:position:", t, null, e);
},
showAdInPositionAndScenario: function(t, e, o) {
n.printJsLog("ATiOSBannerJS::showAdInPositionAndScenario(" + t + ", " + e + ", " + o + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:position:", t, o, e);
},
showAdInRectangle: function(t, e) {
n.printJsLog("ATiOSBannerJS::showAdInRectangle(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:rect:", t, null, e);
},
showAdInRectangleAndScenario: function(t, e, o) {
n.printJsLog("ATiOSBannerJS::showAdInRectangleAndScenario(" + t + ", " + e + ", " + o + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:rect:", t, o, e);
},
removeAd: function(t) {
n.printJsLog("ATiOSBannerJS::removeAd(" + t + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "removeAd:", t);
},
reShowAd: function(t) {
n.printJsLog("ATiOSBannerJS::reShowAd(" + t + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "reShowAd:", t);
},
hideAd: function(t) {
n.printJsLog("ATiOSBannerJS::hideAd(" + t + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "hideAd:", t);
}
};
e.exports = o;
cc._RF.pop();
}, {
ATiOSJS: "ATiOSJS"
} ],
ATiOSInterstitialJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "ddd933gNJFDEICb4s6+4eu5", "ATiOSInterstitialJS");
var n = t("ATiOSJS"), o = "ATInterstitialAdWrapper", i = i || {
loadInterstitial: function(t, e) {
n.printJsLog("ATiOSInterstitialJS::loadInterstitial(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod(o, "loadInterstitialWithPlacementID:extra:", t, e);
},
setAdListener: function(t) {
n.printJsLog("ATiOSInterstitialJS::setAdListener(" + t + ")");
jsb.reflection.callStaticMethod(o, "setDelegates:", t);
},
hasAdReady: function(t) {
n.printJsLog("ATiOSInterstitialJS::hasAdReady(" + t + ")");
return jsb.reflection.callStaticMethod(o, "interstitialReadyForPlacementID:", t);
},
checkAdStatus: function(t) {
n.printJsLog("ATiOSInterstitialJS::checkAdStatus(" + t + ")");
return jsb.reflection.callStaticMethod(o, "checkAdStatus:", t);
},
setUserData: function() {
cc.log("Android-setUserData");
},
showAd: function(t) {
n.printJsLog("ATiOSInterstitialJS::showAd(" + t + ")");
return jsb.reflection.callStaticMethod(o, "showInterstitialWithPlacementID:scene:", t, null);
},
showAdInScenario: function(t, e) {
n.printJsLog("ATiOSInterstitialJS::showAd(" + t + ", " + e + ")");
return jsb.reflection.callStaticMethod(o, "showInterstitialWithPlacementID:scene:", t, e);
}
};
e.exports = i;
cc._RF.pop();
}, {
ATiOSJS: "ATiOSJS"
} ],
ATiOSJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "f0cfbKk/aJOh7Arcces8e2L", "ATiOSJS");
var n = n || {
initSDK: function(t, e) {
this.printJsLog("ATiOSJS::initSDK(" + t + "," + e + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "startWithAppID:appKey:", t, e);
},
initCustomMap: function(t) {
this.printJsLog("ATiOSJS::initCustomMap(" + t + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "setCustomData:", t);
},
setPlacementCustomMap: function(t, e) {
this.printJsLog("ATiOSJS::setPlacementCustomMap(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "setCustomData:forPlacementID:", e, t);
},
setGDPRLevel: function(t) {
this.printJsLog("ATiOSJS::setGDPRLevel(" + t + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "setDataConsent:", t);
},
getGDPRLevel: function() {
this.printJsLog("ATiOSJS::getGDPRLevel()");
return jsb.reflection.callStaticMethod("ATSDKManager", "dataConsent");
},
getUserLocation: function(t) {
this.printJsLog("ATiOSJS::getUserLocation(" + t + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "getUserLocationWithCallback:", t);
},
showGDPRAuth: function() {
this.printJsLog("ATiOSJS::showGDPRAuth()");
jsb.reflection.callStaticMethod("ATSDKManager", "presentDataConsentDialog");
},
setLogDebug: function(t) {
this.printJsLog("ATiOSJS::setLogDebug(" + t + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "setDebugLog:", t);
},
printJsLog: function(t) {
null != t && null != t && jsb.reflection.callStaticMethod("ATJSBridge", "log:", t);
},
deniedUploadDeviceInfo: function(t) {
this.printJsLog("ATiOSJS::deniedUploadDeviceInfo(" + t + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "deniedUploadDeviceInfo:", t);
}
};
e.exports = n;
cc._RF.pop();
}, {} ],
ATiOSNativeJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "2aa642BjFFKhJ2kRi8CNM1Z", "ATiOSNativeJS");
var n = t("ATiOSJS"), o = o || {
loadNative: function(t, e) {
n.printJsLog("ATiOSBannerJS::loadNative(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "loadNativeWithPlacementID:extra:", t, e);
},
setAdListener: function(t) {
n.printJsLog("ATiOSNativeJS::setAdListener(" + t + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "setDelegates:", t);
},
hasAdReady: function(t) {
n.printJsLog("ATiOSNativeJS::hasAdReady(" + t + ")");
return jsb.reflection.callStaticMethod("ATNativeAdWrapper", "nativeReadyForPlacementID:", t);
},
checkAdStatus: function(t) {
n.printJsLog("ATiOSNativeJS::checkAdStatus(" + t + ")");
return jsb.reflection.callStaticMethod("ATNativeAdWrapper", "nativeCheckAdStatusForPlacementID:", t);
},
showAd: function(t, e) {
n.printJsLog("ATiOSNativeJS::showAd(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "showNativeWithPlacementID:scene:metrics:", t, null, e);
},
showAdInScenario: function(t, e, o) {
n.printJsLog("ATiOSNativeJS::showAdInScenario(" + t + ", " + e + ", " + o + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "showNativeWithPlacementID:scene:metrics:", t, o, e);
},
removeAd: function(t) {
n.printJsLog("ATiOSNativeJS::removeAd(" + t + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "removeNativeWithPlacementID:", t);
}
};
e.exports = o;
cc._RF.pop();
}, {
ATiOSJS: "ATiOSJS"
} ],
ATiOSRewardedVideoJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "f7d79fQ7d5M5KoEWeXdUNsV", "ATiOSRewardedVideoJS");
var n = t("ATiOSJS"), o = o || {
loadRewardedVideo: function(t, e) {
n.printJsLog("ATiOSRewardedVideoJS::loadRewardedVideo(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "loadRewardedVideoWithPlacementID:extra:", t, e);
},
setAdListener: function(t) {
n.printJsLog("ATiOSRewardedVideoJS::setAdListener(" + t + ")");
jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "setDelegates:", t);
},
hasAdReady: function(t) {
n.printJsLog("ATiOSRewardedVideoJS::hasAdReady(" + t + ")");
return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "rewardedVideoReadyForPlacementID:", t);
},
checkAdStatus: function(t) {
n.printJsLog("ATiOSRewardedVideoJS::checkAdStatus(" + t + ")");
return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "checkAdStatus:", t);
},
setUserData: function() {
cc.log("Android-setUserData");
},
showAd: function(t) {
n.printJsLog("ATiOSRewardedVideoJS::showAd(" + t + ")");
return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "showRewardedVideoWithPlacementID:scene:", t, null);
},
showAdInScenario: function(t, e) {
n.printJsLog("ATiOSRewardedVideoJS::showAdInScenario(" + t + ", " + e + ")");
return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "showRewardedVideoWithPlacementID:scene:", t, e);
}
};
e.exports = o;
cc._RF.pop();
}, {
ATiOSJS: "ATiOSJS"
} ],
AdData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "751e2dfcNBG6piUAOBYgaGw", "AdData");
var o = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, i = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AdFun = n.AdData = void 0;
var r = function() {
function t() {
this.placementId = "";
this.adunit_format = "";
this.network_type = "";
this.network_placement_id = "";
this.network_firm_id = "";
this.adsource_id = "";
this.adsource_index = "";
this.adsource_price = "100";
this.adsource_isheaderbidding = "";
this.publisher_revenue = "";
this.precision = "";
this.ecpm_level = "";
this.adType = 1;
}
t.prototype.init = function() {
this.datas = [ , gData.reward, gData.reward, gData.reward, gData.turnable, gData.sign, gData.blessingBag ];
};
t.prototype.updateData = function(t, e) {
mk.console.logSingle("updateADData:" + t, e);
this.placementId = t;
this.adunit_format = e.adunit_format;
this.network_type = e.network_type;
this.network_placement_id = e.network_placement_id;
this.network_firm_id = e.network_firm_id;
this.adsource_id = e.adsource_id;
this.adsource_index = e.adsource_index;
this.adsource_price = e.adsource_price;
this.adsource_isheaderbidding = e.adsource_isheaderbidding;
this.publisher_revenue = e.publisher_revenue;
this.precision = e.precision;
this.ecpm_level = e.ecpm_level;
};
t.prototype.watchVideo = function(t) {
return o(this, void 0, void 0, function() {
var e, n;
return i(this, function(o) {
switch (o.label) {
case 0:
this.ad_subType = t;
e = {
imei: gData.appData.machineInfo.imei,
idfa: gData.appData.machineInfo.idfa,
oaid: gData.appData.machineInfo.oaid,
uin: gData.loginData.uin,
version: gData.appData.appVersion,
tf_channel: gData.appData.tfChannel,
destoon_ad_place: this.placementId,
ad_type: 1,
adunit_format: this.adunit_format,
network_type: this.network_type,
network_placement_id: this.network_placement_id,
network_firm_id: this.network_firm_id,
adsource_id: this.adsource_id,
adsource_index: this.adsource_index,
adsource_price: this.adsource_price,
adsource_isheaderbidding: this.adsource_isheaderbidding,
publisher_revenue: this.publisher_revenue,
precision_ecpm: this.precision,
ecpm_level: this.ecpm_level,
cfg_version: gData.appData.version,
adsource_ecpm: gData.gameData.adShowConfig.average_ecpm,
ad_sbuType: this.ad_subType
};
mk.console.logSingle("updateVideoData:", e);
return [ 4, mk.http.sendData("updateVideo", e) ];

case 1:
if (0 != (n = o.sent()).errcode) return [ 2 ];
this.datas[this.ad_subType] && this.datas[this.ad_subType].setAdData(n.data);
return [ 2 ];
}
});
});
};
return t;
}();
n.AdData = r;
(function(t) {
t[t.bubble = 1] = "bubble";
t[t.checkpoint = 2] = "checkpoint";
t[t.settlement = 3] = "settlement";
t[t.turntable = 4] = "turntable";
t[t.sign = 5] = "sign";
t[t.bigCash = 6] = "bigCash";
})(n.AdFun || (n.AdFun = {}));
cc._RF.pop();
}, {} ],
AdSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "1466aRVSRRPbZv+MJLJVOZg", "AdSystem");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t(t) {
this.adSdk = null;
this.ifShowAd = !0;
this.videoAdcallBack = null;
this.last_time_stamp = 0;
this.adSdk = t;
}
t.prototype.init = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.ifShowAd = !0 : this.ifShowAd = !1;
this.adSdk.initSDK();
};
t.prototype.watchAd = function(t) {
if (!this.isAdCooling()) {
this.videoAdcallBack = t;
this.ifShowAd ? cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.showVideoAd() : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("AppController", "showVideo", "")) : this.wacthAdSuccess();
}
};
t.prototype.watchAdFail = function() {
mk.console.log("=== watchAdFail");
this.videoAdcallBack(!1);
};
t.prototype.watchAdCancel = function() {
mk.console.log("=== watchAdCancel");
this.videoAdcallBack(!1);
};
t.prototype.wacthAdSuccess = function(t) {
void 0 === t && (t = "");
mk.console.log("=== wacthAdSuccess");
this.videoAdcallBack(!0);
this.initLastTimeStamp();
};
t.prototype.showNativeAd = function(t, e) {
void 0 === t && (t = 0);
void 0 === e && (e = !0);
cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.loadNativeAd(t, e) : (cc.sys.os, 
cc.sys.OS_IOS));
};
t.prototype.destroyNativeAd = function() {
cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.destroyNativeAd() : (cc.sys.os, 
cc.sys.OS_IOS));
};
t.prototype.initLastTimeStamp = function() {
var t = new Date();
this.last_time_stamp = t.getTime();
};
t.prototype.isAdCooling = function() {
var t = new Date().getTime() - this.last_time_stamp;
if (t <= 5e3) {
var e = 6 - Math.ceil(t / 1e3);
mk.tip.pop("当前看视频太频繁了，请" + e + "秒后再试");
return !0;
}
return !1;
};
t.prototype.showBannerAd = function() {
this.ifShowAd && this.adSdk.showBannerAd();
};
t.prototype.showInterAd = function() {
this.ifShowAd && this.adSdk.showInter();
};
t.prototype.checkShowInterByChance = function() {
Math.random() < .5 && this.showInterAd(0);
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
AniFinishDestroy: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "042aabubkFC6JdQ3E4GwCQf", "AniFinishDestroy");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = (c.property, 
function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.ani = null;
e.callBack = null;
return e;
}
e.prototype.onLoad = function() {
this.ani = this.node.getComponent(cc.Animation);
this.ani.on("finished", this.onAniPlayFinished, this);
};
e.prototype.start = function() {};
e.prototype.init = function(t) {
void 0 === t && (t = null);
if (!this.ani) {
this.ani = this.node.getComponent(cc.Animation);
this.ani.on("finished", this.onAniPlayFinished, this);
}
this.callBack = t;
this.ani.play();
};
e.prototype.onAniPlayFinished = function() {
this.callBack && this.callBack();
this.recycle();
};
e.prototype.recycle = function() {
a.default.Inst.recyclePoolPrefab(a.NODEPOOLPREFABTYPE[this.node.name], this.node);
};
return r([ s ], e);
}(cc.Component));
n.default = l;
cc._RF.pop();
}, {
"../../mgr/PoolMgr": "PoolMgr"
} ],
AniOpenPanel: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "398dfTzxmpCYpSvJaKpkFk+", "AniOpenPanel");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, c = a.ccclass, s = (a.property, function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.onEnable = function() {
this.node.scale = 0;
cc.tween(this.node).to(.3, {
scale: 1
}, {
easing: "backOut"
}).start();
};
return r([ c ], e);
}(cc.Component));
n.default = s;
cc._RF.pop();
}, {} ],
AppData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e27c7/NPlhBwKw/xsEzZINE", "AppData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AppData = void 0;
var o = function() {
function t() {
this.getDeviceInfoCompelete = !1;
this.appNameBugly = "3xiao";
this.appVersion = "";
this.tfChannel = "";
this.version = "1.0.0";
this.appId = "wxcf31f0e54f7fefda";
this.umengChannel = "";
this.deviceType = "";
this.androidVersion = "";
this.mac = "c9:24:e2:12:b3:23,f6:60:e4:1a:b7:27";
this.machineInfo = {
android_id: "",
idfa: "",
imei: "",
mac: "",
oaid: "",
umid: ""
};
}
t.prototype.updateDeviceInfo = function(t) {
var e = t.split("#");
this.machineInfo.android_id = e[0];
this.machineInfo.idfa = e[1];
this.machineInfo.imei = e[2];
this.machineInfo.mac = this.mac = e[3];
this.machineInfo.oaid = e[4];
this.machineInfo.umid = e[5];
this.tfChannel = e[6];
this.appVersion = e[7];
this.umengChannel = e[8];
this.deviceType = e[9];
this.androidVersion = e[10];
this.getDeviceInfoCompelete = !0;
};
t.prototype.init = function() {};
return t;
}();
n.AppData = o;
cc._RF.pop();
}, {} ],
ArtNum: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b818cn3ZlhCA589MCaalmqs", "ArtNum");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ARTNUM = void 0;
var a, c = cc._decorator, s = c.ccclass, l = c.property;
(function(t) {
t[t.Null = 0] = "Null";
t[t.LevelNum = 1] = "LevelNum";
t[t.TargetScore = 2] = "TargetScore";
t[t.GetScore = 3] = "GetScore";
t[t.EliminateScore = 4] = "EliminateScore";
t.Test = "sdasdsadasds";
t.you = "asdadsadsadasdsadsada";
})(a = n.ARTNUM || (n.ARTNUM = {}));
var u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.artNum = null;
e.url = "artNum/";
return e;
}
e.prototype.start = function() {};
e.prototype.init = function(t) {
this.url = "game/texture/artNum/" + a[this.artNum] + "/";
var e = t.toString().split(""), n = this.node.children;
if (e.length > this.node.childrenCount) for (var o = 0; o < e.length; o++) {
var i = e[o];
if (c = n[o]) {
0 == c.active && (c.active = !0);
var r = c.getComponent(cc.Sprite);
this.loadSprite("" + this.url + i, r);
} else {
r = (c = new cc.Node()).addComponent(cc.Sprite);
this.loadSprite("" + this.url + i, r);
this.node.addChild(c);
}
} else for (o = 0; o < n.length; o++) {
var c = n[o];
if (o < e.length) {
i = e[o];
if (c) {
0 == c.active && (c.active = !0);
r = c.getComponent(cc.Sprite);
this.loadSprite("" + this.url + i, r);
} else {
r = (c = new cc.Node()).addComponent(cc.Sprite);
this.loadSprite("" + this.url + i, r);
this.node.addChild(c);
}
} else c && (c.active = !1);
}
};
e.prototype.loadSprite = function(t, e) {
mk.loader.load(t, cc.SpriteFrame).then(function(t) {
e.spriteFrame = t;
});
};
r([ l({
type: cc.Enum(a),
displayName: "艺术字类型",
tooltip: "需要选择的艺术字类型",
serializable: !0
}) ], e.prototype, "artNum", void 0);
return r([ s ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {} ],
AudioSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "23fb49P+89BR4lApOFB9Q88", "AudioSystem");
var o = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, i = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var r = function() {
function t() {
this._switchMusic = !0;
this._switchEffect = !0;
this._effectVolume = 1;
this._musicVolume = 1;
this._map_audio = new Map();
}
t.prototype.init = function() {
this._switchEffect = !("false" == cc.sys.localStorage.getItem("switchEffect"));
this._switchMusic = !("false" == cc.sys.localStorage.getItem("switchMusic"));
};
t.prototype.playMusic = function(t, e) {
void 0 === e && (e = !0);
return o(this, void 0, void 0, function() {
var n;
return i(this, function(o) {
switch (o.label) {
case 0:
if (!this._switchMusic) return [ 2 ];
if (this._bg_audio) return [ 3, 2 ];
n = this;
return [ 4, mk.loader.load(a + t, cc.AudioClip) ];

case 1:
n._bg_audio = o.sent();
o.label = 2;

case 2:
cc.audioEngine.playMusic(this._bg_audio, e);
return [ 2 ];
}
});
});
};
t.prototype.playEffect = function(t, e) {
void 0 === e && (e = !1);
return o(this, void 0, void 0, function() {
var n;
return i(this, function(o) {
switch (o.label) {
case 0:
return this._switchEffect ? (n = this._map_audio.get(t)) ? [ 3, 2 ] : [ 4, mk.loader.load(a + t, cc.AudioClip) ] : [ 3, 3 ];

case 1:
n = o.sent();
this._map_audio.set(t, n);
o.label = 2;

case 2:
return [ 2, cc.audioEngine.playEffect(n, e) ];

case 3:
return [ 2, null ];
}
});
});
};
t.prototype.stopEffect = function(t) {
cc.audioEngine.stopEffect(t);
};
t.prototype.switchEffectFunc = function() {
this._switchEffect = !this._switchEffect;
this._switchEffect || this.setStopAllEffect();
cc.sys.localStorage.setItem("switchEffect", this._switchEffect.toString());
};
t.prototype.getSwitchEffect = function() {
return this._switchEffect;
};
t.prototype.setEffectVolume = function(t) {
this._effectVolume = t;
cc.audioEngine.setEffectsVolume(t);
cc.sys.localStorage.setItem("audio", JSON.stringify({
effect: this._effectVolume,
music: this._musicVolume
}));
};
t.prototype.getEffectVolume = function() {
return cc.audioEngine.getEffectsVolume();
};
t.prototype.setResumeAllEffect = function() {
this._switchEffect && cc.audioEngine.resumeAllEffects();
};
t.prototype.setStopAllEffect = function() {
cc.audioEngine.stopAllEffects();
};
t.prototype.switchMusicFunc = function() {
this._switchMusic = !this._switchMusic;
this._switchMusic ? this.setResumeMusic() : this.setPauseMusic();
cc.sys.localStorage.setItem("switchMusic", this._switchMusic.toString());
};
t.prototype.getSwitchMusic = function() {
return this._switchMusic;
};
t.prototype.setPauseMusic = function() {
cc.audioEngine.pauseMusic();
};
t.prototype.setResumeMusic = function() {
this._switchMusic && cc.audioEngine.resumeMusic();
};
t.prototype.stopMusic = function() {
cc.audioEngine.stopMusic();
};
t.prototype.setMusicVolume = function(t) {
this._musicVolume = t;
cc.audioEngine.setMusicVolume(t);
cc.sys.localStorage.setItem("audio", JSON.stringify({
effect: this._effectVolume,
music: this._musicVolume
}));
};
t.prototype.getMusicVolume = function() {
return cc.audioEngine.getMusicVolume();
};
t.prototype.isMusicPlaying = function() {
return cc.audioEngine.isMusicPlaying();
};
t.prototype.releaseAudio = function(t) {
t ? cc.audioEngine.uncache(t) : cc.error("【音频】资源" + t + "不存在， 释放失败");
};
t.prototype.stopAllAudio = function() {
cc.audioEngine.stopAll();
};
t.prototype.releaseAllAudio = function() {
cc.audioEngine.uncacheAll();
};
return t;
}();
n.default = r;
var a = "music/";
cc._RF.pop();
}, {} ],
BangsFit: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "173866Ll/lFN6TBCxDmQuqC", "BangsFit");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, c = a.ccclass, s = (a.property, function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.onLoad = function() {
this._AdaptLeftAndRight();
};
e.prototype._AdaptLeftAndRight = function() {
var t = this.node.getComponent(cc.Widget);
if (t && this.IsBigScreenRatio()) {
t.top = 50;
t.bottom = 50;
}
};
e.prototype.IsBigScreenRatio = function() {
return this.GetWinHeightWidthRatio() >= 1.86;
};
e.prototype.GetWinHeightWidthRatio = function() {
return cc.winSize.height >= cc.winSize.width ? cc.winSize.height / cc.winSize.width : cc.winSize.width / cc.winSize.height;
};
return r([ c ], e);
}(cc.Component));
n.default = s;
cc._RF.pop();
}, {} ],
BlessingBagData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a2b69L/oGRH25IYL5gdm97o", "BlessingBagData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, a = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.BlessingBagData = void 0;
var c = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e._videoRbData = null;
e.isPlayAniUpdate = !1;
e.init_videoRbData = !1;
e.rbType = 0;
e.rbNum = 0;
e.init_openRb = !1;
e.bigRbNum = 0;
e.taskRbId = 0;
e.taskRbNum = 0;
e.adsource_id_value = "";
return e;
}
Object.defineProperty(e.prototype, "videoRbData", {
get: function() {
return this._videoRbData;
},
set: function(t) {
this._videoRbData = t;
this.init_videoRbData = !0;
},
enumerable: !1,
configurable: !0
});
e.prototype.init = function() {
this.isPlayAniUpdate = !1;
this.videoRbData = gData.gameData.gameData.userTuCaoInfo;
console.log("----------------\x3e", this.videoRbData);
};
e.prototype.setAdData = function(e) {
t.prototype.setAdData.call(this, e);
this.UpdateVideoProgress(e);
};
e.prototype.OpenTaskRbPanel = function(t, e, n, o) {
this.taskRbId = e;
this.taskRbNum = t;
this.rbType = n;
this.rbNum = o;
this.init_openRb = !0;
};
e.prototype.UpdateVideoProgress = function(t) {
return r(this, void 0, void 0, function() {
return a(this, function(e) {
switch (e.label) {
case 0:
return [ 4, mk.time.WaitForSeconds(.5) ];

case 1:
e.sent();
this.isPlayAniUpdate = !0;
this.videoRbData = t.data;
return [ 2 ];
}
});
});
};
e.prototype.HttpNoAdProgress = function() {
return r(this, void 0, void 0, function() {
var t, e;
return a(this, function(n) {
switch (n.label) {
case 0:
t = {};
return [ 4, mk.http.sendData("tuCaoRedMoney/noNeedVideo", t) ];

case 1:
if (0 != (e = n.sent()).errcode) return [ 2 ];
this.isPlayAniUpdate = !0;
this.videoRbData = e.data.UserRedMoneyInfo;
return [ 2 ];
}
});
});
};
e.prototype.HttpCashBig = function() {
return r(this, void 0, void 0, function() {
var t, e;
return a(this, function(n) {
switch (n.label) {
case 0:
t = {};
return [ 4, mk.http.sendData("redMoneyVideoCash", t) ];

case 1:
if (0 != (e = n.sent()).errcode) return [ 2, null ];
this.isPlayAniUpdate = !1;
this.videoRbData = e.data.UserRedMoneyInfo;
return [ 2, e ];
}
});
});
};
e.prototype.HttpCashTask = function() {
return r(this, void 0, void 0, function() {
var t, e;
return a(this, function(n) {
switch (n.label) {
case 0:
t = {
redMoneyId: this.taskRbId
};
return [ 4, mk.http.sendData("tuCaoRedMoney/gearCash", t) ];

case 1:
if (0 != (e = n.sent()).errcode) return [ 2, null ];
this.isPlayAniUpdate = !1;
this.videoRbData = e.data.UserRedMoneyInfo;
return [ 2, e ];
}
});
});
};
e.prototype.HttpInitAdRbData = function() {
return r(this, void 0, void 0, function() {
var t, e;
return a(this, function(n) {
switch (n.label) {
case 0:
t = {};
return [ 4, mk.http.sendData("tuCaoRedMoney/initUserInfo", t) ];

case 1:
if (0 != (e = n.sent()).errcode) return [ 2 ];
this.isPlayAniUpdate = !1;
this.videoRbData = e.data.UserRedMoneyInfo;
return [ 2 ];
}
});
});
};
return e;
}(t("../../../mk/data/Data").Data);
n.BlessingBagData = c;
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data"
} ],
BlessingBagItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b6615dqhWxFXJgvv1DTd49O", "BlessingBagItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.txtNum = null;
e.txtTip = null;
e.txtSlider = null;
e.slider = null;
e.btnCashed = null;
e.btnCanCash = null;
e.btnNoFinish = null;
e.data = null;
e.lastNum = 0;
e.totalTime = 0;
e.deltaTime = 0;
e.delta = 0;
e.curValue = 0;
e.curTime = 0;
e.isPlayAni = !1;
return e;
}
e.prototype.setItemData = function(t) {
return a(this, void 0, void 0, function() {
return c(this, function() {
this.Init(t.data, t.isPlayAniUpdate, t.isPlayInitAni);
return [ 2 ];
});
});
};
e.prototype.Init = function(t, e, n) {
var o = this;
void 0 === e && (e = !1);
void 0 === n && (n = !1);
this.data = t;
this.txtNum.string = t.redMoney + "元";
this.txtTip.string = "<outline color=#8C1010 width=4><color=#FFE00C>" + t.redMoney + "元</c>提现进度</outline>";
this.btnCashed.active = 2 == t.status;
this.btnCanCash.active = 1 == t.status;
this.btnNoFinish.active = 0 == t.status;
if (e) this.scheduleOnce(function() {
o.PlayNumAni(.3);
cc.tween(o.txtSlider.node).to(.15, {
scale: 1.2
}).to(.15, {
scale: 1
}).start();
}, .3); else if (n) this.scheduleOnce(function() {
o.PlayInitNumAni(.2);
cc.tween(o.txtSlider.node).to(.1, {
scale: 1.2
}).to(.1, {
scale: 1
}).start();
}, .3); else {
this.txtSlider.string = t.progressRate + "%";
this.slider.fillRange = .01 * t.progressRate;
this.lastNum = t.progressRate;
}
};
e.prototype.update = function(t) {
this.UpdateAniFrame(t);
};
e.prototype.PlayNumAni = function(t) {
this.totalTime = t;
this.delta = (this.data.progressRate - this.lastNum) / t;
this.deltaTime = t / (this.data.progressRate - this.lastNum);
this.curValue = this.lastNum;
this.curTime = 0;
this.isPlayAni = !0;
};
e.prototype.PlayInitNumAni = function(t) {
this.totalTime = t;
this.delta = (this.data.progressRate - 0) / t;
this.deltaTime = t / (this.data.progressRate - 0);
this.curValue = 0;
this.curTime = 0;
this.isPlayAni = !0;
};
e.prototype.UpdateAni = function() {
if (this.curTime < this.totalTime) {
this.curTime += this.deltaTime;
this.curValue += this.delta * this.deltaTime;
this.curValue >= this.data.progressRate && (this.curValue = this.data.progressRate);
} else {
this.curTime = this.totalTime;
this.unschedule(this.UpdateAni);
this.curValue = this.data.progressRate;
this.lastNum = this.data.progressRate;
}
this.txtSlider.string = this.curValue.toFixed(2) + "%";
this.slider.fillRange = .01 * this.curValue;
};
e.prototype.UpdateAniFrame = function(t) {
if (this.isPlayAni) {
if (this.curTime < this.totalTime) {
this.curTime += t;
this.curValue += this.delta * t;
if (this.curValue >= this.data.progressRate) {
this.isPlayAni = !1;
this.curValue = this.data.progressRate;
this.lastNum = this.data.progressRate;
}
} else {
this.isPlayAni = !1;
this.curTime = this.totalTime;
this.curValue = this.data.progressRate;
this.lastNum = this.data.progressRate;
}
this.txtSlider.string = this.curValue.toFixed(2) + "%";
this.slider.fillRange = .01 * this.curValue;
}
};
e.prototype.OnExit = function() {
this.txtSlider.string = "0.00%";
this.slider.fillRange = 0;
};
e.prototype.Click_CashedBtn = function() {
mk.audio.playEffect("button");
console.log("clicked cashed");
mk.tip.pop("该红包已提现");
};
e.prototype.Click_CanCashBtn = function() {
mk.audio.playEffect("button");
console.log("clicked canCash");
gData.blessingBag.OpenTaskRbPanel(this.data.redMoney, this.data.redMoneyId, 2, this.data.redMoney);
};
e.prototype.Click_NoFinishBtn = function() {
mk.audio.playEffect("button");
console.log("clicked noFinish");
mk.tip.pop("提现进度不足");
};
r([ u(cc.Label) ], e.prototype, "txtNum", void 0);
r([ u(cc.RichText) ], e.prototype, "txtTip", void 0);
r([ u(cc.Label) ], e.prototype, "txtSlider", void 0);
r([ u(cc.Sprite) ], e.prototype, "slider", void 0);
r([ u(cc.Node) ], e.prototype, "btnCashed", void 0);
r([ u(cc.Node) ], e.prototype, "btnCanCash", void 0);
r([ u(cc.Node) ], e.prototype, "btnNoFinish", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
BlessingBag: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "bb002IlT3tILa3522JfGQ79", "BlessingBag");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = t("../../../mk/system/JsbSystem"), l = t("../../data/AdData"), u = t("../../data/module/CashProData"), p = cc._decorator, d = p.ccclass, h = p.property, f = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.txtBigNum = null;
e.txtAddEft = null;
e.txtTipAd = null;
e.txtBigDelta = null;
e.txtBigTask = null;
e.txtRemaindAdNum = null;
e.blassingBagItem = null;
e.itemContent = null;
e.btnCash = null;
e.btnAd = null;
e.aniBigAdBtn = null;
e.adIcon = null;
e.aniBtnAd = null;
e.rbOpenBtn = null;
e.nodeRb = null;
e.txtRbNum = null;
e.testNode = null;
e.inputBox = null;
e.rbPanelType = 0;
e.adrbArray = [];
e.isPlayInitAni = !0;
e.isPlayAni = !1;
e.targetProgress = 0;
e.delta = 0;
e.curValue = 0;
e.curTime = 0;
e.totalTime = 0;
e.lastNum = 0;
e.canOpen = !0;
return e;
}
e.prototype.onLoad = function() {
this.testNode.active = 1 == gData.gameData.configs.ServerConfig.VideoRedBagEmpty;
};
e.prototype.onEnable = function() {
this.isPlayAni = !1;
this.isPlayInitAni = !0;
gData.blessingBag.isPlayAniUpdate = !1;
gData.blessingBag.init_videoRbData = !0;
};
e.prototype.update = function(t) {
this.PlayMoneyAniUpdate(t);
gData.blessingBag.init_videoRbData && this.UpdateInfo();
gData.blessingBag.init_openRb && this.OpenRbPanel(gData.blessingBag.rbType, gData.blessingBag.rbNum);
};
e.prototype.lateUpdate = function() {
gData.blessingBag.init_videoRbData = !1;
gData.blessingBag.init_openRb = !1;
};
e.prototype.UpdateInfo = function() {
var t = this, e = gData.blessingBag.videoRbData;
if (e) {
this.targetProgress = e.cumulativeAmount;
this.txtBigDelta.node.active = 1 != e.showTask;
this.txtBigTask.node.active = 1 == e.showTask;
this.txtTipAd.string = 1 == e.showTask ? "提现中..." : "<b>满<color=#FFE00C>" + e.requestAmount + "元</color>可提现</b>";
this.txtBigDelta.string = "<outline color=#8C1010 width=4><b>每次视频额外奖励<color=#FFE00C>" + e.videoAmountPerTime + "元</color></b></outline>";
this.txtBigTask.string = "<outline color=#8C1010 width=4>金额已达标，完成<color=#4EB7FF>观看视频</color>任务可到账\n观看视频次数：<color=#FFE00C>" + e.taskVideoWatchTime + "/" + e.taskVideoTime + "</color>，连续观看天数：<color=#FFE00C>" + e.taskVideoWatchDay + "/" + e.taskVideoDay + "</color></outline>";
this.txtRemaindAdNum.string = "<b>今日剩余次数：<color=#B02D29>" + e.videoTime + "</color></b>";
this.adIcon.active = 1 == e.needToWatchTheVideo;
if (gData.blessingBag.isPlayAniUpdate) if (this.lastNum < e.cumulativeAmount) {
var n = this.btnCash.parent.convertToWorldSpaceAR(this.btnCash.getPosition());
mk.fly.PlayCoinAnim(1, 10, this.btnAd.getPosition(), n, function() {
t.aniBigAdBtn.setCurrentTime(0);
t.aniBigAdBtn.play();
});
this.txtAddEft.node.setPosition(cc.v2(0, 380));
this.txtAddEft.string = "+" + e.videoAmountPerTime + "元";
this.txtAddEft.node.stopAllActions();
this.txtAddEft.node.scale = 0;
this.txtAddEft.node.opacity = 255;
this.txtAddEft.node.active = !0;
var o = cc.delayTime(.8), i = cc.sequence(cc.scaleTo(.15, 1.2), cc.scaleTo(.15, 1)), r = cc.spawn(cc.moveBy(.3, cc.v2(0, 30)), i), a = cc.delayTime(.5), c = cc.fadeOut(.15), s = cc.callFunc(function() {
t.PlayMoneyAni(.2);
t.txtAddEft.node.active = !1;
});
this.txtAddEft.node.runAction(cc.sequence(o, r, a, c, s));
} else {
this.txtBigNum.string = e.cumulativeAmount.toFixed(2) + "元";
this.lastNum = e.cumulativeAmount;
} else {
this.txtBigNum.string = e.cumulativeAmount.toFixed(2) + "元";
this.lastNum = e.cumulativeAmount;
}
if (this.adrbArray.length < 4) {
this.adrbArray = [];
for (var l = 0; l < e.redMonies.length; l++) {
var u = {
data: e.redMonies[l],
isPlayAniUpdate: gData.blessingBag.isPlayAniUpdate,
isPlayInitAni: this.isPlayInitAni
};
this.adrbArray.push(u);
}
this.itemContent.emit("srollview-init", this.adrbArray);
} else {
this.adrbArray = [];
for (l = 0; l < e.redMonies.length; l++) {
u = {
data: e.redMonies[l],
isPlayAniUpdate: gData.blessingBag.isPlayAniUpdate,
isPlayInitAni: this.isPlayInitAni
};
this.adrbArray.push(u);
}
this.itemContent.emit("srollview-update", this.adrbArray);
}
this.isPlayInitAni = !1;
gData.blessingBag.isPlayAniUpdate = !1;
}
};
e.prototype.PlayMoneyAni = function(t) {
this.totalTime = t;
this.delta = (this.targetProgress - this.lastNum) / t;
this.curValue = this.lastNum;
this.curTime = 0;
console.log("---\x3eUpdate Time: " + t + " delta: " + this.delta + " curValue: " + this.curValue + " lastNum: " + this.lastNum);
this.isPlayAni = !0;
};
e.prototype.PlayMoneyAniUpdate = function(t) {
if (this.isPlayAni) {
if (this.curTime < this.totalTime) {
this.curTime += t;
this.curValue += this.delta * t;
if (this.curValue >= this.targetProgress) {
this.isPlayAni = !1;
this.curValue = this.targetProgress;
this.lastNum = this.targetProgress;
}
console.log("--\x3eCurValue:" + this.curValue);
} else {
this.isPlayAni = !1;
this.curTime = this.totalTime;
this.curValue = this.targetProgress;
this.lastNum = this.targetProgress;
}
this.txtBigNum.string = this.curValue.toFixed(2) + "元";
}
};
e.prototype.Click_AdProgressBtn = function() {
mk.audio.playEffect("button");
if (gData.loginData.isAuth) {
1 != gData.blessingBag.videoRbData.needToWatchTheVideo ? gData.blessingBag.HttpNoAdProgress() : gData.blessingBag.videoRbData.videoTime > 0 ? mk.ad.watchAd(function(t) {
mk.console.log("watchAD:" + t);
t && gData.adData.watchVideo(l.AdFun.bigCash);
}) : mk.tip.pop("今日观看次数已用完");
mk.audio.playEffect("button");
console.log("---\x3eYou Click AdProgressBtn  ", gData.blessingBag.videoRbData);
} else s.default.WxAuth();
};
e.prototype.OpenRbPanel = function(t, e) {
this.rbPanelType = t;
this.txtRbNum.string = e + "元";
this.nodeRb.active = !0;
this.rbOpenBtn.active = !0;
};
e.prototype.CheckCashRedCode = function() {
var t = gData.blessingBag.videoRbData;
if (t.redMoneyCode.length > 0) for (var e = 0; e < t.redMoneyCode.length; e++) if (t.preLargeAmountCashId == t.redMoneyCode[e].RedMoneyId) {
"" != t.redMoneyCode[e].RedMoneyCode ? gData.redCodeData.openRedCode(t.redMoneyCode[e].VideoCashBig, t.redMoneyCode[e].RedMoneyCode) : mk.tip.pop("提现成功");
return;
}
mk.tip.pop("请先完成提现任务");
};
e.prototype.Click_CashBtn = function() {
return a(this, void 0, void 0, function() {
var t;
return c(this, function(e) {
switch (e.label) {
case 0:
console.log("---\x3eYou Click CashBtn");
mk.audio.playEffect("button");
return gData.blessingBag.videoRbData.cumulativeAmount >= gData.blessingBag.videoRbData.requestAmount ? [ 4, gData.blessingBag.HttpCashBig() ] : [ 3, 2 ];

case 1:
(t = e.sent()) && 1 == t.data.code ? this.CheckCashRedCode() : mk.tip.pop("请先完成提现任务");
return [ 3, 3 ];

case 2:
mk.tip.pop("累计到" + gData.blessingBag.videoRbData.requestAmount + "元才可提现");
e.label = 3;

case 3:
return [ 2 ];
}
});
});
};
e.prototype.Click_CashOpenBtn = function() {
return a(this, void 0, void 0, function() {
var t = this;
return c(this, function() {
mk.audio.playEffect("button");
if (!this.canOpen) return [ 2 ];
this.canOpen = !1;
if (1 == this.rbPanelType) gData.cashPro.openCashPro(u.cashProType.blessing_bigCash, gData.blessingBag.bigRbNum); else {
this.rbOpenBtn.active = !1;
this.aniBtnAd.node.active = !0;
this.aniBtnAd.setCurrentTime(0);
this.aniBtnAd.play();
setTimeout(function() {
t.aniBtnAd.stop();
t.aniBtnAd.node.active = !1;
t.rbOpenBtn.active = !0;
t.nodeRb.active = !1;
gData.cashPro.openCashPro(u.cashProType.blessing_taskCash, gData.blessingBag.taskRbNum);
t.canOpen = !0;
}, 1e3);
}
return [ 2 ];
});
});
};
e.prototype.clickHelpCallBack = function() {
gData.help.des = "1、观看大量视频可以快速增加提现进度。\n\n2、提现进度到100%，可以提现对应档位的红包。\n\n3、余额累计满一定金额，可以申请大额提现。";
};
e.prototype.Click_InitData = function() {
mk.audio.playEffect("button");
gData.blessingBag.HttpInitAdRbData();
};
e.prototype.EditBox_End = function() {
console.log("--\x3eInput：", this.inputBox.string);
gData.blessingBag.adsource_id_value = this.inputBox.string;
};
e.prototype.onClickClose = function() {
mk.ad.checkShowInterByChance();
};
r([ h(cc.Label) ], e.prototype, "txtBigNum", void 0);
r([ h(cc.Label) ], e.prototype, "txtAddEft", void 0);
r([ h(cc.RichText) ], e.prototype, "txtTipAd", void 0);
r([ h(cc.RichText) ], e.prototype, "txtBigDelta", void 0);
r([ h(cc.RichText) ], e.prototype, "txtBigTask", void 0);
r([ h(cc.RichText) ], e.prototype, "txtRemaindAdNum", void 0);
r([ h(cc.Prefab) ], e.prototype, "blassingBagItem", void 0);
r([ h(cc.Node) ], e.prototype, "itemContent", void 0);
r([ h(cc.Node) ], e.prototype, "btnCash", void 0);
r([ h(cc.Node) ], e.prototype, "btnAd", void 0);
r([ h(cc.Animation) ], e.prototype, "aniBigAdBtn", void 0);
r([ h(cc.Node) ], e.prototype, "adIcon", void 0);
r([ h(cc.Animation) ], e.prototype, "aniBtnAd", void 0);
r([ h(cc.Node) ], e.prototype, "rbOpenBtn", void 0);
r([ h(cc.Node) ], e.prototype, "nodeRb", void 0);
r([ h(cc.Label) ], e.prototype, "txtRbNum", void 0);
r([ h(cc.Node) ], e.prototype, "testNode", void 0);
r([ h(cc.EditBox) ], e.prototype, "inputBox", void 0);
return r([ d ], e);
}(cc.Component);
n.default = f;
cc._RF.pop();
}, {
"../../../mk/system/JsbSystem": "JsbSystem",
"../../data/AdData": "AdData",
"../../data/module/CashProData": "CashProData"
} ],
BonusTip: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "12093ka2vhBWbXFfMq5uVm7", "BonusTip");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = (c.property, 
function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.curBonusNum = 0;
return e;
}
e.prototype.start = function() {};
e.prototype.init = function(t) {
var e = this;
this.node.getComponent(cc.Sprite).enabled = !1;
if (this.curBonusNum != t) {
this.curBonusNum = t;
var n = t - 4 + 1;
mk.loader.load("game/texture/tip/" + n, cc.SpriteFrame).then(function(t) {
e.node.getComponent(cc.Sprite).spriteFrame = t;
e.node.getComponent(cc.Sprite).enabled = !0;
});
} else this.node.getComponent(cc.Sprite).enabled = !0;
this.node.opacity = 255;
this.node.scaleX = this.node.scaleY = .8;
this.node.setPosition(0, 0);
cc.tween(this.node).to(.3, {
scale: 1.2
}, {
easing: "smooth"
}).to(.1, {
scale: 1
}, {
easing: "smooth"
}).delay(.2).to(.2, {
scale: 2,
opacity: 0
}, {
easing: "smooth"
}).call(function() {
a.default.Inst.recyclePoolPrefab(a.NODEPOOLPREFABTYPE.BonusTip, e.node);
}).start();
};
return r([ s ], e);
}(cc.Component));
n.default = l;
cc._RF.pop();
}, {
"../../mgr/PoolMgr": "PoolMgr"
} ],
BtnClosePanel: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "cdc50kCRVVBa5gcp4XXxVO+", "BtnClosePanel");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_panel = null;
e.transition_type = cc.Button.Transition.NONE;
e.onComplete = [];
e.block_click = !1;
return e;
}
e.prototype.onLoad = function() {
this.node.getComponent(cc.Button) || (this.node.addComponent(cc.Button).transition = this.transition_type);
};
e.prototype.start = function() {
this.node.on("click", this.closePanel, this);
};
e.prototype.closePanel = function() {
return a(this, void 0, void 0, function() {
var t, e;
return c(this, function() {
mk.audio.playEffect("button");
if (this.block_click) return [ 2 ];
this.node_panel && mk.ui.closePanel(this.node_panel.name);
t = this.onComplete.length;
for (e = 0; e < t; e++) this.onComplete[e].handler && this.onComplete[e].emit([]);
return [ 2 ];
});
});
};
r([ u({
displayName: "关闭界面",
tooltip: "",
type: cc.Node
}) ], e.prototype, "node_panel", void 0);
r([ u({
displayName: "点击效果",
tooltip: "仅支持 NONE 和 SCALE",
type: cc.Enum(cc.Button.Transition)
}) ], e.prototype, "transition_type", void 0);
r([ u({
displayName: "完成回调",
tooltip: "面板打开完成后触发",
type: cc.Component.EventHandler
}) ], e.prototype, "onComplete", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
BtnMoreGame: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "9ab36AQuiJKw67bq+KV3Yrw", "BtnMoreGame");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.sp_moregame = null;
e.lab_moregame = null;
return e;
}
e.prototype.update = function() {
gData.moreGame.init_moreGameList && this.setMoreGameSp(gData.moreGame.moreGameList.normal);
};
e.prototype.lateUpdate = function() {
gData.moreGame.init_moreGameList = !1;
};
e.prototype.setMoreGameSp = function(t) {
var e = this, n = t.length, o = mk.math.random(0, n - 1), i = t[o];
this.showMoreGameSp(i);
this.schedule(function() {
o++;
i = t[o %= n];
e.showMoreGameSp(i);
}, 10);
};
e.prototype.showMoreGameSp = function(t) {
var e = this;
cc.sys.os != cc.sys.OS_WINDOWS && cc.loader.load(t.icon, function(t, n) {
if (t) console.log("err:", t); else if (e.sp_moregame) {
var o = n;
e.sp_moregame.spriteFrame = new cc.SpriteFrame(o);
}
});
this.lab_moregame.string = t.title;
};
r([ s(cc.Sprite) ], e.prototype, "sp_moregame", void 0);
r([ s(cc.Label) ], e.prototype, "lab_moregame", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
BtnOpenPanel: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b8d2cnq+GZLFK30xbLDqr/m", "BtnOpenPanel");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = cc._decorator, l = s.ccclass, u = s.property, p = t("../../mk/system/UISystem"), d = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.panel_name = "";
e.open_type = p.OpenActionType.normal;
e.transition_type = cc.Button.Transition.NONE;
e.onComplete = [];
return e;
}
e.prototype.onLoad = function() {
this.node.getComponent(cc.Button) || (this.node.addComponent(cc.Button).transition = this.transition_type);
};
e.prototype.start = function() {
this.node.on("click", this.openPanel, this);
};
e.prototype.openPanel = function() {
return a(this, void 0, void 0, function() {
var t, e;
return c(this, function(n) {
switch (n.label) {
case 0:
mk.audio.playEffect("button");
return this.panel_name ? [ 4, mk.ui.openPanel(this.panel_name, this.open_type) ] : [ 2 ];

case 1:
n.sent();
t = this.onComplete.length;
for (e = 0; e < t; e++) this.onComplete[e].handler && this.onComplete[e].emit([]);
mk.console.log("open->" + this.panel_name);
return [ 2 ];
}
});
});
};
r([ u({
displayName: "预制体路径",
tooltip: "对应路径：resources/"
}) ], e.prototype, "panel_name", void 0);
r([ u({
displayName: "打开类型",
tooltip: "normal不操作，closeOther关闭其他，closeLast关闭上一个",
type: cc.Enum(p.OpenActionType)
}) ], e.prototype, "open_type", void 0);
r([ u({
displayName: "点击效果",
tooltip: "仅支持 NONE 和 SCALE",
type: cc.Enum(cc.Button.Transition)
}) ], e.prototype, "transition_type", void 0);
r([ u({
displayName: "完成回调",
tooltip: "面板打开完成后触发",
type: cc.Component.EventHandler
}) ], e.prototype, "onComplete", void 0);
return r([ l ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {
"../../mk/system/UISystem": "UISystem"
} ],
BuglySDK: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "5e14aAR8aVDF4pkk/9JmRhW", "BuglySDK");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {
this.initELKHandler();
}
t.prototype.initBugly = function() {};
t.prototype.initELKHandler = function() {
if (cc.sys.isNative) {
var e;
window.__errorHandler && (e = window.__errorHandler);
window.__errorHandler = function() {
for (var n = [], o = 0; o < arguments.length; o++) n[o] = arguments[o];
console.log("游戏报错,原生系统");
t.handleError.apply(t, n);
e && e.apply(void 0, n);
};
}
};
t.handleError = function() {
for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
for (var o = "", i = 0; i < e.length; i++) if ("string" == typeof e[i] && e[i].length > 20) o += e[i] + "\n"; else if (e[i] instanceof Array) for (var r = 0; r < e[i].length; r++) o += e[i][r];
-1 != o.indexOf("TypeError") && (o = o.slice(o.indexOf("TypeError") + "TypeError".length + 2));
for (var a = [ 0, "", "", "", "[]@" ], c = a[0], s = a[1], l = a[2], u = a[3], p = a[4]; c < o.length; ) {
u = o.charAt(c);
if (-1 != p.indexOf(u)) {
if ("" == s) s = u; else if ("[" == s && "]" == u || "@" == s && "]" == u) {
s = "";
l += " | ";
}
} else "" == s && (l += u);
c++;
}
l.length > 120 && (l = l.slice(0, 120));
var d = new Date().getTime();
if (!(-1 != t.lastSendErrors.indexOf(l) && d - t.lastSendErrorTime < 3e4)) {
t.lastSendErrors.push(l);
t.lastSendErrorTime = d;
t.lastSendErrors.length > 5 && (t.lastSendErrors = t.lastSendErrors.slice(t.lastSendErrors.length - 5));
var h = gData.httpData.serverType + ":" + gData.loginData.uin, f = {
level: "error",
game: gData.appData.appNameBugly + ":" + h,
message: l
}, y = new XMLHttpRequest();
y.responseType = "text";
var _ = "https://elktest.duiweize.com/api/logs/record";
y.open("POST", _);
y.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
y.onerror = function(t) {
console.log("handleError.onError:", t);
};
var g = JSON.stringify(f);
g = mk.encrypt.rsaEncrypt(g);
y.send(g);
}
};
t.lastSendErrorTime = new Date().getTime();
t.lastSendErrors = [];
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
Button: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c7d0chvBRhPlY0rJFlDFnON", "Button");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_normal = null;
e.node_pressed = null;
e.node_disabled = null;
e.onClick = [];
return e;
}
e.prototype.onLoad = function() {
this.touchEnd();
};
e.prototype.start = function() {
this.node.getComponent(cc.Button) || this.node.addComponent(cc.Button);
this.node.on(cc.Node.EventType.TOUCH_START, this.touchStart, this);
this.node.on(cc.Node.EventType.TOUCH_END, this.touchEnd, this);
this.node.on("click", this.click, this);
};
e.prototype.touchStart = function() {
this.node_normal && (this.node_normal.active = !1);
this.node_pressed && (this.node_pressed.active = !0);
this.node_disabled && (this.node_disabled.active = !1);
};
e.prototype.touchEnd = function() {
this.node_normal && (this.node_normal.active = !0);
this.node_pressed && (this.node_pressed.active = !1);
this.node_disabled && (this.node_disabled.active = !1);
};
e.prototype.click = function() {
mk.audio.playEffect("button");
for (var t = this.onClick.length, e = 0; e < t; e++) this.onClick[e].handler && this.onClick[e].emit([]);
};
e.prototype.onDestroy = function() {
this.node.off(cc.Node.EventType.TOUCH_START, this.touchStart, this);
this.node.off(cc.Node.EventType.TOUCH_END, this.touchEnd, this);
this.node.off("click", this.click, this);
this.onClick = [];
};
r([ s({
type: cc.Node,
displayName: "正常"
}) ], e.prototype, "node_normal", void 0);
r([ s({
type: cc.Node,
displayName: "按下"
}) ], e.prototype, "node_pressed", void 0);
r([ s({
type: cc.Node,
displayName: "禁用"
}) ], e.prototype, "node_disabled", void 0);
r([ s({
displayName: "点击函数",
type: cc.Component.EventHandler
}) ], e.prototype, "onClick", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
CashNormalData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "64bb4P2NvJGZqPbCEhv7Ir/", "CashNormalData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, a = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ECashType = n.CashNormalData = void 0;
var c = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.list_data = [];
e.init_rmb_style = !0;
e._receip_total_rmb = 0;
e.cash_type = [ "", "BOSS提现", "每日提现", "夺宝提现", "钱庄提现", "招募任务提现", "每日招募提现", "累计招募提现", "", "彩蛋提现", "福袋提现", "福袋提现" ];
return e;
}
e.prototype.init = function() {
this.getRecord();
};
e.prototype.getRecord = function() {
return r(this, void 0, void 0, function() {
var t;
return a(this, function(e) {
switch (e.label) {
case 0:
return [ 4, mk.http.sendData("getCashRecord", {}) ];

case 1:
if (0 != (t = e.sent()).errcode) return [ 2 ];
console.log(t.data);
if (t.data.CashStatusList) {
t.data.CashStatusList.forEach(function(t) {
for (var e in t) t[e] = parseInt(t[e]);
});
this.list_data = t.data.CashStatusList;
}
return [ 2 ];
}
});
});
};
Object.defineProperty(e.prototype, "receip_total_rmb", {
get: function() {
return this._receip_total_rmb;
},
set: function(t) {
this._receip_total_rmb = t;
this.init_rmb_style = !0;
},
enumerable: !1,
configurable: !0
});
e.prototype.initTestData = function() {
for (var t = 0; t < 30; t++) {
var e = {
cashType: mk.math.random(1, 10),
applyTime: 1623399160,
amount: 10 * t,
remain: 1e3 * t,
CashMode: t % 2,
withdrawalCode: "AABBC" + t
};
this.list_data.push(e);
}
};
e.prototype.getListDataHavCode = function() {
for (var t = [], e = this.list_data.length, n = 0; n < e; n++) this.list_data[n].withdrawalCode && t.push(this.list_data[n]);
return t;
};
return e;
}(t("../../../mk/data/Data").Data);
n.CashNormalData = c;
(function(t) {
t[t.assss = 1] = "assss";
})(n.ECashType || (n.ECashType = {}));
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data"
} ],
CashNormalItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "32077nk5NlGLqPEuyJfau+t", "CashNormalItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.lbl_cash_type = null;
e.lbl_cash_time = null;
e.lbl_red_ma = null;
e.lbl_rmb_value = null;
return e;
}
e.prototype.setItemData = function(t) {
return a(this, void 0, void 0, function() {
return c(this, function(e) {
switch (e.label) {
case 0:
return [ 4, this.initStyle(t) ];

case 1:
e.sent();
return [ 2 ];
}
});
});
};
e.prototype.initStyle = function(t) {
this.lbl_cash_type.string = gData.cashNormal.cash_type[t.cashType];
this.lbl_cash_time.string = mk.time.getNowDayString(1e3 * t.applyTime);
this.lbl_red_ma.string = t.withdrawalCode ? "红包码：" + t.withdrawalCode : "";
this.lbl_rmb_value.string = "￥" + t.amount + "元";
};
r([ u({
displayName: "lbl提现类型",
type: cc.Label
}) ], e.prototype, "lbl_cash_type", void 0);
r([ u({
displayName: "lbl提现时间",
type: cc.Label
}) ], e.prototype, "lbl_cash_time", void 0);
r([ u({
displayName: "lbl红包码",
type: cc.Label
}) ], e.prototype, "lbl_red_ma", void 0);
r([ u({
displayName: "lbl毛币数量",
type: cc.Label
}) ], e.prototype, "lbl_rmb_value", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
CashNormal: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "94e2ahhWT5CDo8XnPR+e9Lu", "CashNormal");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.scroll_view = null;
e.lbl_rmb_total = null;
e.lbl_none = null;
return e;
}
e.prototype.start = function() {
this.initTotal();
this.initScrollView();
this.initNoneItem();
};
e.prototype.initScrollView = function() {
this.scroll_view.node.emit("srollview-init", gData.cashNormal.list_data);
};
e.prototype.initTotal = function() {
this.lbl_rmb_total.string = "￥" + gData.cashNormal.receip_total_rmb + "元";
};
e.prototype.initNoneItem = function() {
var t = gData.cashNormal.list_data.length;
this.lbl_none.node.active = !t;
};
r([ s({
displayName: "滚动视图",
type: cc.ScrollView
}) ], e.prototype, "scroll_view", void 0);
r([ s({
displayName: "lbl累计提现",
type: cc.Label
}) ], e.prototype, "lbl_rmb_total", void 0);
r([ s({
displayName: "lbl暂无提现",
type: cc.Label
}) ], e.prototype, "lbl_none", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
CashPigData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6dd05FLpy1EvLk2V3PwPYId", "CashPigData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
n.CashPigData = void 0;
var r = function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
return e;
}(t("../../../mk/data/Data").Data);
n.CashPigData = r;
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data"
} ],
CashProData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "592b3w/pF1M+K/8UI878v9k", "CashProData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, a = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.cashProType = void 0;
var c, s = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.init_data = !1;
e.cashPro_money = 0;
e.init_success = !1;
e.init_fail = !1;
return e;
}
e.prototype.openCashPro = function(t, e) {
this.cashPro_type = t;
this.cashPro_money = e;
this.init_data = !0;
mk.ui.openPanel("module/cashPro/cashPro");
};
e.prototype.onCash = function() {
return r(this, void 0, void 0, function() {
var t;
return a(this, function(e) {
switch (e.label) {
case 0:
t = null;
switch (this.cashPro_type) {
case c.blessing_bigCash:
return [ 3, 1 ];

case c.blessing_taskCash:
return [ 3, 3 ];
}
return [ 3, 5 ];

case 1:
return [ 4, gData.blessingBag.HttpCashBig() ];

case 2:
(t = e.sent()) && 1 == t.data.code ? gData.cashPro.init_success = !0 : gData.cashPro.init_fail = !0;
return [ 3, 5 ];

case 3:
return [ 4, gData.blessingBag.HttpCashTask() ];

case 4:
(t = e.sent()) && 1 == t.data.code ? gData.cashPro.init_success = !0 : gData.cashPro.init_fail = !0;
return [ 3, 5 ];

case 5:
return [ 2 ];
}
});
});
};
return e;
}(t("../../../mk/data/Data").Data);
n.default = s;
(function(t) {
t[t.blessing_bigCash = 0] = "blessing_bigCash";
t[t.blessing_taskCash = 1] = "blessing_taskCash";
})(c = n.cashProType || (n.cashProType = {}));
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data"
} ],
CashPro: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "7c96b8wPgBPeLS+KI5YpgFP", "CashPro");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.loadPart = null;
e.loadAni = null;
e.moneyPart = null;
e.labRedMoney = null;
e.btnTixian = null;
e.btnAuth = null;
e.cashPro = null;
e.labMoney = null;
e.money = 0;
e.hasTap = !1;
return e;
}
e.prototype.update = function() {
gData.cashPro.init_data && this.init(gData.cashPro.cashPro_money);
gData.cashPro.init_success && this.tixianSuccess();
gData.cashPro.init_fail && this.tixianFail();
};
e.prototype.lateUpdate = function() {
gData.cashPro.init_data = !1;
gData.cashPro.init_success = !1;
gData.cashPro.init_fail = !1;
};
e.prototype.init = function(t) {
this.money = t;
this.loadPart.active = !1;
this.cashPro.active = !1;
if (gData.loginData.isAuth) {
this.btnAuth.active = !1;
this.btnTixian.active = !0;
} else {
this.btnAuth.active = !0;
this.btnTixian.active = !1;
}
};
e.prototype.showLoad = function() {
this.loadPart.active = !0;
this.loadAni.play("load", 0);
};
e.prototype.tixianSuccess = function() {
this.loadPart.active = !1;
this.showCashPro();
};
e.prototype.showCashPro = function() {
this.cashPro.active = !0;
mk.tween.move(this.cashPro, .3, cc.v2(1e3, 0), cc.v2(0, 0), null, "elasticIn");
this.labMoney.string = "¥" + this.money;
};
e.prototype.tixianFail = function() {
console.log("tixianFail  ");
this.loadPart.active = !1;
mk.ui.closePanel("module/cashPro/cashPro");
};
e.prototype.authBack = function() {
this.btnAuth.active = !1;
this.btnTixian.active = !0;
};
e.prototype.clickCash = function() {
mk.audio.playEffect("button");
this.showLoad();
gData.cashPro.onCash();
};
e.prototype.clickAuth = function() {
var t = this;
mk.audio.playEffect("button");
if (!this.hasTap) {
this.hasTap = !0;
this.scheduleOnce(function() {
t.hasTap = !1;
}, 3);
}
};
r([ s(cc.Node) ], e.prototype, "loadPart", void 0);
r([ s(cc.Animation) ], e.prototype, "loadAni", void 0);
r([ s(cc.Node) ], e.prototype, "moneyPart", void 0);
r([ s(cc.Label) ], e.prototype, "labRedMoney", void 0);
r([ s(cc.Node) ], e.prototype, "btnTixian", void 0);
r([ s(cc.Node) ], e.prototype, "btnAuth", void 0);
r([ s(cc.Node) ], e.prototype, "cashPro", void 0);
r([ s(cc.Label) ], e.prototype, "labMoney", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
CellItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "0eddale281LjITR1VBVSkdJ", "CellItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../GamePlay"), c = t("../../data/Enum"), s = t("../../util/GameLogic"), l = t("../../mgr/PoolMgr"), u = t("../../data/GameConst"), p = t("../../util/common/AniFinishDestroy"), d = t("../effect/EliminateScore"), h = t("../effect/ScoreEnergy"), f = t("../../../game/data/GameData"), y = cc._decorator, _ = y.ccclass, g = y.property, m = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.ani_cellItem = null;
e.spr_cellItemIcon = null;
e.spr_redPackIcon = null;
e.x = 0;
e.y = 0;
e.type = 0;
e.ifRemoved = !1;
e.ifRedPacket = !1;
return e;
}
e.prototype.start = function() {
this.node.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
};
e.prototype.init = function(t, e) {
this.x = t;
this.y = e;
this.ifRemoved = !1;
var n = this.getEndPos();
this.node.x = n.x;
this.node.y = .5 * cc.winSize.height + this.node.height + 50;
this.ani_cellItem.play();
this.setType();
cc.tween(this.node).delay(.2).to(.3, {
y: n.y
}).call(function() {}).start();
};
e.prototype.getEndPos = function() {
var t = this.x * this.node.width + .5 * this.node.width - .5 * a.default.Inst.node_content.width, e = -(this.y * this.node.height + .5 * this.node.height) + .5 * a.default.Inst.node_content.height;
return new cc.Vec2(t, e);
};
e.prototype.setType = function(t) {
var e = this;
void 0 === t && (t = null);
this.node.opacity = 255;
var n = this.type;
if (t) {
this.ani_cellItem.play("cellItem_reset");
this.type = t;
} else {
var o = null, i = gData.gameData.getProp(f.GameProp.levelNum);
null != i && null != i && (o = u.default.config_level[i][this.y][this.x]);
this.type = o || Math.floor(5 * Math.random()) + 1;
}
this.spr_cellItemIcon.node.width = 75;
this.spr_cellItemIcon.node.height = 75;
n && n == this.type || mk.loader.load("game/texture/cellItemIcon/" + u.default.iconIndex + "/" + this.type, cc.SpriteFrame).then(function(t) {
e.spr_cellItemIcon.spriteFrame = t;
});
};
e.prototype.reset = function() {
this.ani_cellItem.play("cellItem_reset");
var t = Math.floor(5 * Math.random()) + 1;
this.setType(t);
};
e.prototype.onClick = function() {
if (a.default.Inst.ifCouldClick) {
a.default.Inst.ifCouldClick = !1;
a.default.Inst.intervalShowGuide();
a.default.Inst.intervalShowInter();
a.default.Inst.node_changeCellItemUI.active && (a.default.Inst.node_changeCellItemUI.active = !1);
a.default.Inst.cleanedVecArr = [];
a.default.Inst.cleanXIndexArr = [];
if (a.default.Inst.curPropType != c.PROPTYPE.Change) {
if (a.default.Inst.curPropType == c.PROPTYPE.Hammer) {
a.default.Inst.curPropType = c.PROPTYPE.Null;
a.default.Inst.curSelectCellItem = this;
if (s.default.getAroundSameType(this.x, this.y, this.type, !1).length <= 0) {
mk.console.log("周围没有相同的Item ----------------------------------------");
a.default.Inst.cleanedVecArr.push(new cc.Vec2(this.x, this.y));
}
}
a.default.Inst.curClickCellItem = this;
s.default.getCleanedVecList(this.x, this.y, this.type);
a.default.Inst.cleanCellItemByVecList();
} else {
a.default.Inst.curPropType = c.PROPTYPE.Null;
a.default.Inst.curSelectCellItem = this;
a.default.Inst.showChangeCellItemUI();
this.node.opacity = 150;
}
}
};
e.prototype.moveDown = function(t, e, n, o) {
var i = this;
void 0 === o && (o = !1);
if (this.y != e) {
var r = e - this.y;
a.default.Inst.cellItemDic[this.x][this.y] = null;
this.x = t;
this.y = e;
a.default.Inst.cellItemDic[this.x][this.y] = this;
var c = -(this.y * this.node.height + .5 * this.node.height) + .5 * a.default.Inst.node_content.height, s = .03 * n, l = .12 * r;
cc.tween(this.node).delay(s).call(function() {
i.ani_cellItem.play("cellItem_down1");
}).to(l, {
y: c
}).call(function() {
i.ani_cellItem.play("cellItem_down2");
if (o) {
mk.console.log("【CellItem】检测是否能消除 移动完毕最后一个");
a.default.Inst.checkMoveLeftCellItem();
}
}).start();
} else o && a.default.Inst.checkMoveLeftCellItem();
};
e.prototype.moveLeft = function(t, e, n) {
void 0 === n && (n = !1);
if (this.x != t) {
a.default.Inst.cellItemDic[this.x][this.y] = null;
this.x = t;
this.y = e;
a.default.Inst.cellItemDic[this.x][this.y] = this;
var o = t * this.node.width + .5 * this.node.width - .5 * a.default.Inst.node_content.width;
cc.tween(this.node).to(.2, {
x: o
}).call(function() {
if (n) {
mk.console.log("检测是否能消除！！！！！！！！！！！！！！！！！！！！！！！！！！最后移除");
a.default.Inst.checkIfEliminate();
a.default.Inst.ifCouldClick = !0;
}
}).start();
}
};
e.prototype.shake = function() {
this.ani_cellItem.play("cellItem_shake");
};
e.prototype.normal = function() {
this.node.opacity = 255;
this.ani_cellItem.play();
};
e.prototype.showRedPacket = function() {
this.spr_redPackIcon.node.active = !0;
};
e.prototype.recycle = function(t, e, n) {
void 0 === t && (t = !1);
void 0 === e && (e = !1);
void 0 === n && (n = !0);
a.default.Inst.cellItemDic[this.x][this.y] = null;
var o = this.node.x + a.default.Inst.node_content.x, i = this.node.y + a.default.Inst.node_content.y;
if (a.default.Inst.curSelectCellItem == this) {
a.default.Inst.curSelectCellItem = null;
if (a.default.Inst.curPropType == c.PROPTYPE.Hammer) {
a.default.Inst.curPropType = null;
var r = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.Hammer);
r.setPosition(o, i);
a.default.Inst.node_effectUI.addChild(r);
}
}
if (n) {
var s = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.Baozha);
s.x = o;
s.y = i;
a.default.Inst.node_effectUI.addChild(s);
s.getComponent(p.default).init();
var u = 10 + 5 * a.default.Inst.cleanedVecArr.length, f = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.EliminateScore), y = this.node.x + a.default.Inst.node_content.x, _ = this.node.y + a.default.Inst.node_content.y + 30;
f.getComponent(d.default).init(new cc.Vec2(y, _), u);
a.default.Inst.node_effectUI.addChild(f);
if (t) {
a.default.Inst.curGetScore += u;
a.default.Inst.finalGetScore += u;
a.default.Inst.initScore();
} else {
var g = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.ScoreEnergy);
g.getComponent(h.default).init(y, _, u);
a.default.Inst.node_effectUI.addChild(g);
if (this.spr_redPackIcon.node.active && a.default.Inst.finalGetScore < a.default.Inst.targetScore) {
gData.reward.subType = 2;
mk.ui.openPanel("module/reward/rewardLuck");
}
}
}
this.spr_redPackIcon.node.active && (this.spr_redPackIcon.node.active = !1);
l.default.Inst.recyclePoolPrefab(l.NODEPOOLPREFABTYPE.CellItem, this.node);
};
r([ g(cc.Animation) ], e.prototype, "ani_cellItem", void 0);
r([ g(cc.Sprite) ], e.prototype, "spr_cellItemIcon", void 0);
r([ g(cc.Sprite) ], e.prototype, "spr_redPackIcon", void 0);
return r([ _ ], e);
}(cc.Component);
n.default = m;
cc._RF.pop();
}, {
"../../../game/data/GameData": "GameData",
"../../GamePlay": "GamePlay",
"../../data/Enum": "Enum",
"../../data/GameConst": "GameConst",
"../../mgr/PoolMgr": "PoolMgr",
"../../util/GameLogic": "GameLogic",
"../../util/common/AniFinishDestroy": "AniFinishDestroy",
"../effect/EliminateScore": "EliminateScore",
"../effect/ScoreEnergy": "ScoreEnergy"
} ],
ChangeCellItemUI: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "efea2M6SlRODL/dJnf1ISCC", "ChangeCellItemUI");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../GamePlay"), c = t("./uiItem/SelectCellItemBtn"), s = t("../data/GameConst"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.layout_selectCellItemBtn = null;
e.node_closeBtn = null;
e.prefab_selectCellItemBtn = null;
e.curIconIndex = null;
return e;
}
e.prototype.onEnable = function() {
if (this.curIconIndex != s.default.iconIndex) {
this.initSelectCellItemBtn();
this.curIconIndex = s.default.iconIndex;
}
};
e.prototype.onDisable = function() {
a.default.Inst.ifCouldClick = !0;
a.default.Inst.curSelectCellItem && (a.default.Inst.curSelectCellItem.node.opacity = 255);
};
e.prototype.start = function() {
this.node_closeBtn.on(cc.Node.EventType.TOUCH_END, this.onClickClose, this);
};
e.prototype.initSelectCellItemBtn = function() {
if (this.layout_selectCellItemBtn.node.childrenCount > 0) for (var t = 1; t <= this.layout_selectCellItemBtn.node.childrenCount; t++) {
mk.console.log(" node_selectCellItemBtn i", t);
(e = this.layout_selectCellItemBtn.node.children[t - 1]).getComponent(c.default).init(t);
} else for (t = 1; t <= 6; t++) {
var e = cc.instantiate(this.prefab_selectCellItemBtn);
mk.console.log("初始化选择按钮！！！！！！！！！！！！！！！！！！！！", t);
e.getComponent(c.default).init(t);
this.layout_selectCellItemBtn.node.addChild(e);
}
};
e.prototype.onClickClose = function() {
this.node.active = !1;
};
r([ p(cc.Layout) ], e.prototype, "layout_selectCellItemBtn", void 0);
r([ p(cc.Node) ], e.prototype, "node_closeBtn", void 0);
r([ p(cc.Prefab) ], e.prototype, "prefab_selectCellItemBtn", void 0);
return r([ u ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {
"../GamePlay": "GamePlay",
"../data/GameConst": "GameConst",
"./uiItem/SelectCellItemBtn": "SelectCellItemBtn"
} ],
ClickMoveBy: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b4358yRD11LPLNtDbsZ2TsK", "ClickMoveBy");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a, c = cc._decorator, s = c.ccclass, l = c.property;
(function(t) {
t[t.out = 0] = "out";
t[t.moving = 1] = "moving";
t[t.back = 2] = "back";
})(a || (a = {}));
var u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.vec_move = cc.Vec2.ZERO;
e.state = a.out;
e.is_back = !1;
return e;
}
e.prototype.onLoad = function() {
this.node.on("click", this.StartMoveBy, this);
};
e.prototype.start = function() {
this.node.getComponent(cc.Button) || this.node.addComponent(cc.Button);
};
e.prototype.StartMoveBy = function() {
var t = this;
if (this.state !== a.moving) {
var e = 0, n = cc.Vec2.ZERO;
if (this.state === a.out) {
n = this.vec_move;
e = a.back;
} else if (this.state === a.back) {
n.x = -this.vec_move.x;
n.y = -this.vec_move.y;
e = a.out;
}
this.state = a.moving;
var o = cc.tween().by(.5, {
position: {
value: n,
easing: "backOut"
}
}), i = cc.tween().call(function() {
t.state = e;
});
cc.tween(this.node).then(o).then(i).start();
}
};
r([ l({
tooltip: "要移动的距离"
}) ], e.prototype, "vec_move", void 0);
return r([ s ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {} ],
DataMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "71647LOZdNAoIjqx+oDJW1W", "DataMgr");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../data/PlayerConst"), c = t("./StorageMgr"), s = t("../data/Enum"), l = t("../GamePlay"), u = t("../../game/data/GameData"), p = cc._decorator, d = p.ccclass, h = (p.property, 
function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
n = e;
Object.defineProperty(e, "Inst", {
get: function() {
n.instance || (n.instance = new n());
return n.instance;
},
enumerable: !1,
configurable: !0
});
e.prototype.initStorageData = function() {
var t = c.default.Inst.getStorage(a.DATA_STORAGE_KEY.ifJuliangApiApiActivie);
t && (a.default.ifJuliangApiApiActivie = t);
var e = c.default.Inst.getStorage(a.DATA_STORAGE_KEY.ifJuliangApiSencondActivie);
e && (a.default.ifJuliangApiSencondActivie = e);
var n = c.default.Inst.getStorage(a.DATA_STORAGE_KEY.average_ecpm);
n && (a.default.average_ecpm = n);
};
e.prototype.updatePropNum = function(t, e, n) {
void 0 === n && (n = 1);
mk.console.log("更新道具数据", e, n);
switch (e) {
case s.PROPTYPE.Hammer:
var o = gData.gameData.getProp(u.GameProp.hammerPropNum);
0 == t || (o += n);
gData.gameData.setProp(u.GameProp.hammerPropNum, o);
l.default.Inst && l.default.Inst.initHammerPropNum();
break;

case s.PROPTYPE.Change:
var i = gData.gameData.getProp(u.GameProp.changePropNum);
0 == t || (i += n);
gData.gameData.setProp(u.GameProp.changePropNum, i);
l.default.Inst && l.default.Inst.initChanegPropNum();
break;

case s.PROPTYPE.Reset:
var r = gData.gameData.getProp(u.GameProp.resetPropNum);
0 == t || (r += n);
gData.gameData.setProp(u.GameProp.resetPropNum, r);
l.default.Inst && l.default.Inst.initResetPropNum();
}
};
e.prototype.updateJuliangApi = function() {
a.default.ifJuliangApiApiActivie ? !a.default.ifJuliangApiSencondActivie && a.default.loginDay > 1 && this.updateJuliangApiSecondActive(!0) : this.updateJuliangApiActive(!0);
};
e.prototype.updateJuliangApiActive = function() {
a.default.ifJuliangApiApiActivie = !0;
c.default.Inst.setStorage(a.DATA_STORAGE_KEY.ifJuliangApiApiActivie, a.default.ifJuliangApiApiActivie);
};
e.prototype.updateJuliangApiSecondActive = function() {
a.default.ifJuliangApiSencondActivie = !0;
c.default.Inst.setStorage(a.DATA_STORAGE_KEY.ifJuliangApiSencondActivie, a.default.ifJuliangApiSencondActivie);
};
var n;
e.instance = null;
return n = r([ d ], e);
}(cc.Component));
n.default = h;
cc._RF.pop();
}, {
"../../game/data/GameData": "GameData",
"../GamePlay": "GamePlay",
"../data/Enum": "Enum",
"../data/PlayerConst": "PlayerConst",
"./StorageMgr": "StorageMgr"
} ],
DataSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ee2e153hZxNt7jVksyo3b8q", "DataSystem");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.default = function() {};
cc._RF.pop();
}, {} ],
Data: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "d713eV0hrtAOLYRFa34h1Rf", "Data");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Data = void 0;
var o = function() {
function t() {}
t.prototype.init = function() {};
t.prototype.setAdData = function(t) {
this.adData = t;
};
return t;
}();
n.Data = o;
cc._RF.pop();
}, {} ],
EffectMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "640fee877ZCf7bhGdpndfbK", "EffectMgr");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.TIP_SPRITEITEM_TYPE = void 0;
var a = t("./PoolMgr"), c = t("../view/uiItem/TipItemUI"), s = t("../view/effect/TipSpriteItemUI"), l = cc._decorator, u = l.ccclass, p = (l.property, 
function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
n = e;
Object.defineProperty(e, "Inst", {
get: function() {
n.instance || (n.instance = new n());
return n.instance;
},
enumerable: !1,
configurable: !0
});
e.prototype.addTip = function(t) {
a.default.Inst.getPoolPrefab(a.NODEPOOLPREFABTYPE.TipItemUI).getComponent(c.default).init(t);
};
e.prototype.addSpriteTip = function(t) {
a.default.Inst.getPoolPrefab(a.NODEPOOLPREFABTYPE.TipSpriteItemUI).getComponent(s.default).init(t);
};
var n;
e.instance = null;
return n = r([ u ], e);
}(cc.Component));
n.default = p;
(function(t) {
t.NormalPass = "NormalPass";
t.PerfectPass = "PerfectPass";
})(n.TIP_SPRITEITEM_TYPE || (n.TIP_SPRITEITEM_TYPE = {}));
cc._RF.pop();
}, {
"../view/effect/TipSpriteItemUI": "TipSpriteItemUI",
"../view/uiItem/TipItemUI": "TipItemUI",
"./PoolMgr": "PoolMgr"
} ],
EffectOpenAndClose: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ac053zwqaRD6IJmTlQWmefZ", "EffectOpenAndClose");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a, c = cc._decorator, s = c.ccclass, l = c.property, u = c.executeInEditMode, p = c.playOnFocus;
(function(t) {
t[t.none = 0] = "none";
t[t.scale = 1] = "scale";
t[t.scaleToPoint = 2] = "scaleToPoint";
t[t.centerUnfolding = 3] = "centerUnfolding";
t[t.rightIn = 4] = "rightIn";
})(a || (a = {}));
var d = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.effect_par = null;
e.open_effect = a.scale;
e.close_effect = a.scale;
e.close_toPoint = "";
e._play_open = !1;
e._play_close = !1;
return e;
}
Object.defineProperty(e.prototype, "play_open", {
get: function() {
if (this._play_open) {
this.showEffect();
this._play_open = !1;
}
return this._play_open;
},
set: function(t) {
this._play_open = t;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "play_close", {
get: function() {
if (this._play_close) {
this.effect_par.scale = 1;
this.hideEffect();
this._play_close = !1;
}
return this._play_close;
},
set: function(t) {
this._play_close = t;
},
enumerable: !1,
configurable: !0
});
e.prototype.onLoad = function() {};
e.prototype.start = function() {
this.showEffect();
};
e.prototype.showEffect = function() {
if (this.effect_par) switch (this.open_effect) {
case a.none:
break;

case a.scale:
mk.tween.scale(this.effect_par, .3, void 0, void 0, void 0, "backOut");
break;

case a.centerUnfolding:
mk.tween.scaleX(this.effect_par, .3, void 0, void 0, void 0, "backOut");
break;

case a.rightIn:
this.effect_par.active = !0;
this.effect_par.x = 1e3;
cc.tween(this.effect_par).to(.3, {
x: 0
}, cc.easeOut(3)).start();
}
};
e.prototype.hideEffect = function(t) {
var e = this;
if (this.effect_par) switch (this.close_effect) {
case a.none:
t && t();
break;

case a.scale:
mk.tween.scale(this.effect_par, .15, 1, 0, t);
break;

case a.scaleToPoint:
if ("" == this.close_toPoint) console.error("需要配置缩小到终点节点路径"); else {
var n = this.close_toPoint, o = cc.find(n);
if (o) {
var i = o.parent.convertToWorldSpaceAR(o.getPosition()), r = this.effect_par.parent.convertToNodeSpaceAR(i);
mk.tween.scaleParallelMove(this.effect_par, .3, 1, 0, r, t);
} else {
t && t();
cc.error("关闭时动画节点未找到，请检查！！！！！");
}
}
break;

case a.rightIn:
mk.tween.move(this.effect_par, .3, this.effect_par.getPosition(), new cc.Vec2(this.effect_par.x, 1e3), function() {
e.effect_par.active = !1;
t && t();
}, "sineOut");
} else t && t();
};
r([ l({
type: cc.Node,
displayName: "动画节点"
}) ], e.prototype, "effect_par", void 0);
r([ l({
type: cc.Enum(a),
displayName: "打开动画节点效果",
visible: function() {
return this.effect_par;
}
}) ], e.prototype, "open_effect", void 0);
r([ l({
type: cc.Enum(a),
displayName: "关闭动画节点效果",
visible: function() {
return this.effect_par;
}
}) ], e.prototype, "close_effect", void 0);
r([ l({
displayName: "关闭节点缩小到此节点坐标",
visible: function() {
return this.close_effect == a.scaleToPoint;
}
}) ], e.prototype, "close_toPoint", void 0);
r([ l({
displayName: "预览开"
}) ], e.prototype, "play_open", null);
r([ l({
displayName: "预览关"
}) ], e.prototype, "play_close", null);
return r([ s, u(), p() ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {} ],
EliminateScore: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "820115PJExHeYx7Jije+u+b", "EliminateScore");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../mgr/PoolMgr"), c = t("../../util/common/ArtNum"), s = cc._decorator, l = s.ccclass, u = (s.property, 
function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.start = function() {};
e.prototype.init = function(t, e) {
var n = this;
this.getComponent(c.default).init(e);
this.node.opacity = 255;
this.node.scaleX = this.node.scaleY = 2;
this.node.setPosition(t.x, t.y);
var o = this.node.y + 50;
cc.tween(this.node).to(.2, {
scale: 1
}, {
easing: "smooth"
}).to(.5, {
y: o,
opacity: 0
}, {
easing: "smooth"
}).call(function() {
a.default.Inst.recyclePoolPrefab(a.NODEPOOLPREFABTYPE.EliminateScore, n.node);
}).start();
};
return r([ l ], e);
}(cc.Component));
n.default = u;
cc._RF.pop();
}, {
"../../mgr/PoolMgr": "PoolMgr",
"../../util/common/ArtNum": "ArtNum"
} ],
EncryptUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "4dd7c+x4MRMUpC9k5xzhEUq", "EncryptUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.EncryptUtil = void 0;
var o = t("./encrypt/hmacSha256"), i = t("./encrypt/aes.js"), r = function() {
function t() {
this.options = {
default_key_size: 2048,
default_public_exponent: new Uint8Array([ 1, 0, 1 ])
};
}
t.prototype.randomString = function(t) {
void 0 === t && (t = 32);
for (var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnoprstuvwxyz123456789", n = e.length, o = "", i = 0; i < t; i++) o += e.charAt(Math.floor(Math.random() * n));
return o;
};
t.prototype.encrypt = function(t, e, n, r) {
void 0 === r && (r = !0);
var a = e.substr(0, 16), c = "";
c = r ? a + t + n : a + t + "\r\n" + n;
var s = i.enc.Utf8.parse(e), l = i.enc.Utf8.parse(a);
c = i.enc.Utf8.parse(c);
var u = i.AES.encrypt(c, s, {
iv: l,
mode: i.mode.CBC,
padding: i.pad.Pkcs7
});
u = u.toString();
var p = o.hmacSha256.Instance.hex_hmac_sha256(e, u);
return i.enc.Base64.stringify(i.enc.Utf8.parse(a + u + p));
};
t.prototype.decrypt = function(t, e, n, o) {
void 0 === o && (o = !0);
var r = i.enc.Base64.parse(t).toString(i.enc.Utf8).substr(16), a = r.substr(0, r.length - 64), c = i.enc.Utf8.parse(e), s = i.enc.Utf8.parse(e.substr(0, 16)), l = i.AES.decrypt(a, c, {
iv: s,
mode: i.mode.CBC,
padding: i.pad.Pkcs7
}), u = i.enc.Utf8.stringify(l);
u = u.toString();
return o ? u.slice(16).replace(new RegExp("(.*)" + n), "$1") : u.slice(16).split("\r\n")[0];
};
t.prototype.rsaEncrypt = function(t, e) {
void 0 === e && (e = !1);
var n = new window.JSEncrypt(this.options);
n.setPublicKey("-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuwz5V8wt525dMS+A9wOd\nNAjvKgxdyoXYuZSlAJEXLhvJlaXwFCKEsUg/qBBeo4nrRnwaFAjG7ItqbCWR9Ozv\n6oY5tMYQnFFK82XkMGbKm1gG0z9vYKhcNYgHZHi+QKAw4tLLWXWO/QBTGelEXptD\nazlNmdM+8wHOknTcMuIyjc9Yo5qCoNsCJpA465vnREiBezBbKB3rSw+LmrRcZcFk\ns8hmGtjpabcQ8sCxco7mRzVh6/DomNWfNm7hUP6shrrJirwjQtaS51grlScj8KhN\nh+kBoiI4Ad0Xz0GHasK5hAMf3sXDsN61r0An8KTfa/nsYSJDwogPIKkeKAsmw9Df\nEQIDAQAB\n-----END PUBLIC KEY-----");
return e ? n.encryptLong(t) : n.encrypt(t);
};
t.prototype.pack = function(t) {
var e = new ArrayBuffer(4);
new DataView(e).setUint32(0, t);
return this.ab2str(e);
};
t.prototype.utf8ArrayToStr = function(t) {
var e, n, o, i, r, a;
e = "";
o = t.length;
n = 0;
for (;n < o; ) switch ((i = t[n++]) >> 4) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
e += String.fromCharCode(i);
break;

case 12:
case 13:
r = t[n++];
e += String.fromCharCode((31 & i) << 6 | 63 & r);
break;

case 14:
r = t[n++];
a = t[n++];
e += String.fromCharCode((15 & i) << 12 | (63 & r) << 6 | (63 & a) << 0);
}
return e;
};
t.prototype.utf16ToUtf8 = function(t) {
if (t) {
var e, n, o = [], i = t.length;
for (e = 0; e < i; e++) (n = t.charCodeAt(e)) > 0 && n <= 127 ? o.push(t.charAt(e)) : n >= 128 && n <= 2047 ? o.push(String.fromCharCode(192 | n >> 6 & 31), String.fromCharCode(128 | 63 & n)) : n >= 2048 && n <= 65535 && o.push(String.fromCharCode(224 | n >> 12 & 15), String.fromCharCode(128 | n >> 6 & 63), String.fromCharCode(128 | 63 & n));
return o.join("");
}
};
t.prototype.utf8ToUtf16 = function(t) {
if (t) {
var e, n, o, i = [], r = t.length;
for (e = 0; e < r; e++) {
(n = []).push(t.charCodeAt(e));
if (0 == (n[0] >> 7 & 255)) i.push(t.charAt(e)); else if (6 == (n[0] >> 5 & 255)) {
n.push(t.charCodeAt(++e));
(o = []).push(31 & n[0]);
o.push(63 & n[1]);
i.push(String.fromCharCode(o[0] << 6 | o[1]));
} else if (14 == (n[0] >> 4 & 255)) {
n.push(t.charCodeAt(++e));
n.push(t.charCodeAt(++e));
(o = []).push(n[0] << 4 | n[1] >> 2 & 15);
o.push((3 & n[1]) << 6 | 63 & n[2]);
i.push(String.fromCharCode(o[0] << 8 | o[1]));
}
}
return i.join("");
}
};
t.prototype.ab2str = function(t) {
return String.fromCharCode.apply(null, new Uint8Array(t));
};
t.prototype.uint8ArrayToString = function(t) {
for (var e = "", n = 0; n < t.length; n++) e += String.fromCharCode(t[n]);
return e;
};
t.prototype.stringToUint8Array = function(t) {
for (var e = [], n = 0, o = t.length; n < o; ++n) e.push(t.charCodeAt(n));
return new Uint8Array(e);
};
t.prototype.str2ab = function(t) {
for (var e = new ArrayBuffer(t.length), n = new Uint8Array(e), o = 0, i = t.length; o < i; o++) n[o] = t.charCodeAt(o);
return e;
};
return t;
}();
n.EncryptUtil = r;
cc._RF.pop();
}, {
"./encrypt/aes.js": "aes",
"./encrypt/hmacSha256": "hmacSha256"
} ],
Enum: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "90742o/tMhL2L7YJHTjsfH+", "Enum");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SURPRISETASKTYPE = n.VIDEOADSTATE = n.VIDEOTYPE = n.PROPTYPE = n.CHECKDIR = void 0;
var a = cc._decorator, c = a.ccclass, s = (a.property, function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
return r([ c ], e);
}(cc.Component));
n.default = s;
(function(t) {
t[t.Above = 0] = "Above";
t[t.Below = 1] = "Below";
t[t.Left = 2] = "Left";
t[t.Right = 2] = "Right";
})(n.CHECKDIR || (n.CHECKDIR = {}));
(function(t) {
t.Null = "null";
t.Hammer = "10001";
t.Reset = "10002";
t.Change = "10003";
})(n.PROPTYPE || (n.PROPTYPE = {}));
(function(t) {
t[t.Null = 0] = "Null";
t[t.GetStrength = 1] = "GetStrength";
t[t.LevelRedPacket = 2] = "LevelRedPacket";
t[t.PassRedPacket = 3] = "PassRedPacket";
t[t.GetProp = 4] = "GetProp";
t[t.OpenRedPacket = 5] = "OpenRedPacket";
t[t.Turnplate = 6] = "Turnplate";
})(n.VIDEOTYPE || (n.VIDEOTYPE = {}));
(function(t) {
t[t.LoadFail = 0] = "LoadFail";
})(n.VIDEOADSTATE || (n.VIDEOADSTATE = {}));
(function(t) {
t[t.Null = 0] = "Null";
t[t.Prop = 1] = "Prop";
t[t.EliminateCell = 2] = "EliminateCell";
t[t.ContinuousEliminateCell = 3] = "ContinuousEliminateCell";
t[t.VideoNum = 4] = "VideoNum";
t[t.LevelRedPacket = 5] = "LevelRedPacket";
t[t.DoubleLevelRedPacket = 6] = "DoubleLevelRedPacket";
t[t.Score = 7] = "Score";
})(n.SURPRISETASKTYPE || (n.SURPRISETASKTYPE = {}));
cc._RF.pop();
}, {} ],
EventSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "aab27lcX9pAz5SQ16UkErbh", "EventSystem");
var o = this && this.__spreadArrays || function() {
for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
var o = Array(t), i = 0;
for (e = 0; e < n; e++) for (var r = arguments[e], a = 0, c = r.length; a < c; a++, 
i++) o[i] = r[a];
return o;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = function() {
function t() {
this.listeners = {};
}
t.prototype.register = function(t, e, n) {
this.listeners[t] || (this.listeners[t] = []);
for (var o = this.listeners[t], i = o.length, a = 0; a < i; a++) if (o[a].compare(n)) {
console.warn("[EventMgr]重复添加监听,请检查事件:", t);
return;
}
this.listeners[t].push(new r(e, n));
};
t.prototype.remove = function(t, e, n) {
var o = this.listeners[t];
if (o) {
for (var i = o.length, r = 0; r < i; r++) if (o[r].compare(n)) {
o.splice(r, 1);
break;
}
0 == o.length && delete this.listeners[t];
}
};
t.prototype.emit = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
var i = this.listeners[t];
if (i) {
for (var r = i.concat(), a = r.length, c = 0; c < a; c++) {
var s = r[c];
s.notify.apply(s, o(e, [ t ]));
}
r = null;
}
};
return t;
}();
n.default = i;
var r = function() {
function t(t, e) {
this.callback = null;
this.target = null;
this.callback = t;
this.target = e;
}
t.prototype.notify = function() {
for (var t, e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
var i = this;
(t = i.callback).call.apply(t, o([ i.target ], e));
};
t.prototype.compare = function(t) {
return t == this.target;
};
return t;
}();
cc._RF.pop();
}, {} ],
FileUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "169f6jrZC1DK61LjHa0l1kK", "FileUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o, i = function() {
function t() {}
t.prototype.openLocalFile = function(t, e) {
var n = document.getElementById("file_input");
if (!n) {
(n = document.createElement("input")).id = "file_input";
n.setAttribute("id", "file_input");
n.setAttribute("type", "file");
n.setAttribute("class", "fileToUpload");
n.style.opacity = "0";
n.style.position = "absolute";
n.setAttribute("left", "-999px");
document.body.appendChild(n);
}
t = t || ".*";
n.setAttribute("accept", t);
n.onchange = function() {
var t = n.files;
if (t && t.length > 0) {
var o = t[0];
e && e(o);
}
};
n.click();
};
t.prototype.readLocalFile = function(t, e, n) {
var i = new FileReader();
i.onload = function() {
n && (i.readyState == FileReader.DONE ? n(i.result) : n(null));
};
switch (e) {
case o.DATA_URL:
i.readAsDataURL(t);
break;

case o.TEXT:
i.readAsText(t);
break;

case o.BINARY:
i.readAsBinaryString(t);
break;

case o.ARRAYBUFFER:
i.readAsArrayBuffer(t);
}
};
t.prototype.saveForBrowser = function(t, e) {
if (cc.sys.isBrowser) {
console.log("浏览器");
var n = new Blob([ e ], {
type: "application/json"
}), o = document.createElement("a");
o.download = t;
o.innerHTML = "Download File";
if (null != window.webkitURL) o.href = window.webkitURL.createObjectURL(n); else {
o.href = window.URL.createObjectURL(n);
o.style.display = "none";
document.body.appendChild(o);
}
o.click();
}
};
return t;
}();
n.default = i;
(function(t) {
t[t.DATA_URL = 0] = "DATA_URL";
t[t.TEXT = 1] = "TEXT";
t[t.BINARY = 2] = "BINARY";
t[t.ARRAYBUFFER = 3] = "ARRAYBUFFER";
})(o || (o = {}));
cc._RF.pop();
}, {} ],
FissionData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "38c620VyHFONacULG888Cay", "FissionData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
n.FissionData = void 0;
var r = function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
return e;
}(t("../../../mk/data/Data").Data);
n.FissionData = r;
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data"
} ],
FlyNode: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "fa881XikspIl7sX7YCTSOCC", "FlyNode");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.start_move_time = .1;
e.end_move_time = .3;
e.item_count = 10;
e.fly_data = {
node_p: null,
item_count: e.item_count,
item_scale: [ .3, 1 ],
item_sf: null,
start_pos: cc.Vec2.ZERO,
end_pos: cc.Vec2.ZERO,
complete_call: null
};
e.node_fly = null;
e.arr_item = [];
return e;
}
e.prototype.onLoad = function() {
this.node.on("ui-fly-node", this.getNodeProgress, this);
};
e.prototype.getNodeProgress = function(t) {
t.node_p && (this.fly_data.node_p = t.node_p);
t.item_count && (this.fly_data.item_count = t.item_count);
t.item_scale && (this.fly_data.item_scale = t.item_scale);
t.item_sf && (this.fly_data.item_sf = t.item_sf);
t.start_pos && (this.fly_data.start_pos = t.start_pos);
t.end_pos && (this.fly_data.end_pos = t.end_pos);
t.complete_call && (this.fly_data.complete_call = t.complete_call);
var e = this.fly_data.node_p, n = this.fly_data.item_count, o = this.fly_data.item_scale, i = this.fly_data.item_sf, r = this.fly_data.start_pos;
if (!this.node_fly) {
this.node_fly = new cc.Node("node_fly");
this.node_fly.parent = e;
}
for (var a = 0; a < n; a++) {
var c = this.arr_item.shift();
if (!c || c && c.parent) {
c = new cc.Node("node_item");
this.arr_item.push(c);
}
c.stopAllActions();
c.parent = this.node_fly;
c.setPosition(r);
c.angle = this.range(-45, 45, !0);
var s = this.range(o[0], o[1], !1);
c.scale = s;
var l = cc.v2(this.range(-1, 1, !1), this.range(-1, 1, !1));
l = l.normalize();
var u = cc.v2(this.range(10, 80, !1) * l.x, this.range(10, 80, !1) * l.y), p = r.add(u);
(c.getComponent(cc.Sprite) || c.addComponent(cc.Sprite)).spriteFrame = i;
this.movePos(c, p);
}
};
e.prototype.movePos = function(t, e) {
var n = this, o = this.range(.3, 1, !1), i = cc.tween().to(o, {
position: new cc.Vec2(e)
}, {
easing: "sineOut"
}), r = cc.tween().delay(1.5 * this.start_move_time), a = cc.tween().to(this.end_move_time, {
position: this.fly_data.end_pos
}, {
easing: "sineOut"
}), c = cc.tween().to(this.end_move_time, {
scale: 1
}), s = cc.tween().to(this.end_move_time, {
angle: 0
}), l = cc.tween().parallel(a, c, s), u = cc.tween().call(function() {
n.fly_data.complete_call && n.fly_data.complete_call();
n.fly_data.complete_call = null;
n.arr_item.push(t);
t.removeFromParent();
});
cc.tween(t).then(i).then(r).then(l).then(u).start();
};
e.prototype.range = function(t, e, n) {
void 0 === n && (n = !0);
var o = e - t;
if (o > 0) {
var i = t + 16777215 * Math.random() % o;
return n ? Math.floor(i) : i;
}
return t;
};
e.prototype.onDestroy = function() {
for (var t = this.arr_item.length, e = 0; e < t; e++) if (cc.isValid(this.arr_item[0])) {
this.arr_item[0].destroy();
this.arr_item.shift();
}
};
r([ s({
displayName: "起始阶段消耗时间"
}) ], e.prototype, "start_move_time", void 0);
r([ s({
displayName: "结束阶段消耗时间"
}) ], e.prototype, "end_move_time", void 0);
r([ s({
displayName: "item默认数量"
}) ], e.prototype, "item_count", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
FlySystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6ac05b5UF5BP4yjhbw+c0f0", "FlySystem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = cc._decorator.ccclass, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.is_new_cb = !0;
return e;
}
e.prototype.onLoad = function() {
mk.fly = this;
};
e.prototype.PlayCoinAnim = function(t, e, n, o, i) {
void 0 === t && (t = 0);
void 0 === i && (i = null);
return a(this, void 0, void 0, function() {
var r, a, s, l, u, p, d;
return c(this, function(c) {
switch (c.label) {
case 0:
r = 0;
c.label = 1;

case 1:
return r < e ? [ 4, mk.pool.getPrefab("game/prefab/coin") ] : [ 3, 5 ];

case 2:
a = c.sent();
s = "game/texture/coin/" + t;
return [ 4, mk.loader.load(s, cc.SpriteFrame) ];

case 3:
l = c.sent();
a.getComponent(cc.Sprite).spriteFrame = l;
a.setParent(this.node);
a.scale = mk.math.random(.56, .84, !1);
a.angle = mk.math.random(-45, 45, !1);
u = (u = cc.v2(mk.math.random(-1, 1, !1), mk.math.random(-1, 1, !1))).normalize();
p = cc.v2(mk.math.random(10, 160, !1) * u.x, mk.math.random(10, 160, !1) * u.y);
d = n.add(p);
a.setPosition(n);
this.FlyIn(t, a, d, o, i);
c.label = 4;

case 4:
r++;
return [ 3, 1 ];

case 5:
this.is_new_cb = !0;
return [ 2 ];
}
});
});
};
e.prototype.FlyIn = function(t, e, n, o, i) {
var r = this;
void 0 === o && (o = null);
void 0 === i && (i = null);
cc.tween(e).to(mk.math.random(.3, .6, !1), {
position: cc.v3(n)
}, cc.easeSineInOut()).call(function() {
r.FlyOut(t, e, o, i);
}).start();
};
e.prototype.FlyOut = function(t, e, n, o) {
var i = this;
void 0 === o && (o = null);
var r = mk.math.random(.3, 1, !1);
cc.tween(e).to(r, {
scale: .8
}).start();
var a = null, c = null;
if ("string" == typeof n) {
var s = (c = cc.find(n)).parent.convertToWorldSpaceAR(c.getPosition());
a = this.node.convertToNodeSpaceAR(s);
} else a = this.node.convertToNodeSpaceAR(n);
cc.tween(e).to(r, {
position: cc.v3(a)
}, cc.easeSineOut()).call(function() {
console.log("end_pos  ", e.position);
mk.pool.return("game/prefab/coin", e);
c && cc.tween(c).to(.1, {
scale: 1.2
}).to(.05, {
scale: 1
}).start();
if (null != o) {
i.is_new_cb && o();
i.is_new_cb = !1;
}
i.iconScale(t);
}).start();
};
e.prototype.iconScale = function(t) {
var e;
1 === t ? e = gData.gameData.gameStyle.icon_hb : 3 === t && (e = gData.gameData.gameStyle.icon_zb);
if (e) {
var n = cc.tween().to(.05, {
scale: .9
}), o = cc.tween().to(.05, {
scale: 1
}), i = cc.tween().sequence(n, o);
cc.tween(e).then(i).repeat(2).start();
}
};
return r([ s ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
FrameAnimation: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "efc323JaDlLPYgh9HsZn0PL", "FrameAnimation");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, c = a.ccclass, s = a.property, l = a.executeInEditMode, u = a.playOnFocus, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.images = [];
e.frameTime = .1;
e.playTimes = 0;
e.reverse = !1;
e.autoPlayOnLoad = !0;
e.autoDestroy = !1;
e.onFrameCall = new cc.Component.EventHandler();
e.onCompleteCall = new cc.Component.EventHandler();
e._edit_play = !1;
e.edit_playing = !1;
e.frameNum = 0;
e.frameIndex = 0;
e.nextFrameIndex = 0;
e.running = !0;
e.time = 0;
e.currentTimes = 0;
return e;
}
Object.defineProperty(e.prototype, "edit_play", {
get: function() {
if (this._edit_play && !this.edit_playing) {
this.edit_playing = !0;
this.play();
}
this.running = this._edit_play;
return this._edit_play;
},
set: function(t) {
this._edit_play = t;
},
enumerable: !1,
configurable: !0
});
e.prototype.onLoad = function() {
this.comp_spr = this.getComponent(cc.Sprite);
};
e.prototype.start = function() {
0 != this.images.length && (this.frameNum = this.images.length);
if (this.reverse) {
this.frameIndex = this.frameNum - 1;
this.nextFrameIndex = this.frameNum - 1;
}
this.running = this.autoPlayOnLoad;
};
e.prototype.update = function(t) {
if (this.running && 0 != this.images.length) if (0 != this.playTimes && this.currentTimes > this.playTimes) this.running = !1; else {
this.time -= t;
if (this.time <= 0) {
this.time = this.frameTime;
if (this.reverse) {
this.frameIndex = (this.nextFrameIndex + this.frameNum) % this.frameNum;
this.nextFrameIndex = this.frameIndex - 1;
} else {
this.frameIndex = this.nextFrameIndex % this.frameNum;
this.nextFrameIndex = this.frameIndex + 1;
}
this.playing();
0 == this.frameIndex && this.playEnd();
}
}
};
e.prototype.playing = function() {
this.comp_spr.spriteFrame = this.images[this.frameIndex];
if (this.comp_spr.spriteFrame) {
var t = this.comp_spr.spriteFrame.getRect();
this.node.width = t.width;
this.node.height = t.height;
}
this.onFrameCall.emit([]);
null != this.frameCallback && this.frameCallback(this.frameIndex);
};
e.prototype.playEnd = function() {
this.currentTimes++;
this.node.emit("completeTimes", this.currentTimes);
null != this.completeTimesCallback && this.completeTimesCallback(this.currentTimes);
if (0 != this.playTimes && this.currentTimes > this.playTimes) {
this.node.emit("complete");
this.onCompleteCall.emit([]);
null != this.completeCallback && this.completeCallback();
this.autoDestroy && this.node.destroy();
this._edit_play = !1;
this.edit_playing = !1;
}
};
e.prototype.play = function(t, e) {
void 0 === t && (t = null);
void 0 === e && (e = null);
this.frameCallback = t;
this.completeCallback = e;
this.running = !0;
this.frameIndex = 0;
this.currentTimes = 0;
this.time = this.frameTime;
if (0 != this.images.length) {
this.frameNum = this.images.length;
if (this.reverse) {
this.frameIndex = this.frameNum - 1;
this.nextFrameIndex = this.frameNum - 1;
}
}
this.comp_spr || (this.comp_spr = this.getComponent(cc.Sprite));
this.comp_spr && (this.comp_spr.spriteFrame = this.images[0]);
if (this.comp_spr.spriteFrame) {
var n = this.comp_spr.spriteFrame.getRect();
this.node.width = n.width;
this.node.height = n.height;
}
};
e.prototype.gotoAndPlay = function(t) {
this.comp_spr || (this.comp_spr = this.getComponent(cc.Sprite));
this.running = !0;
this.frameIndex = t;
this.nextFrameIndex = t;
this.currentTimes = 0;
};
e.prototype.stop = function() {
this.running = !1;
};
e.prototype.gotoAndStop = function(t) {
this.frameIndex = t;
this.frameIndex < 0 && (this.frameIndex = 0);
this.frameIndex > this.images.length - 1 && (this.frameIndex = this.images.length - 1);
this.comp_spr || (this.comp_spr = this.getComponent(cc.Sprite));
this.comp_spr.spriteFrame = this.images[this.frameIndex];
if (this.comp_spr.spriteFrame) {
var e = this.comp_spr.spriteFrame.getRect();
this.node.width = e.width;
this.node.height = e.height;
}
this.running = !1;
};
e.prototype.isPlayEnd = function() {
return this.frameIndex == this.frameNum;
};
r([ s({
displayName: "精灵纹理",
type: cc.SpriteFrame
}) ], e.prototype, "images", void 0);
r([ s({
displayName: "每帧间隔"
}) ], e.prototype, "frameTime", void 0);
r([ s({
displayName: "播放次数"
}) ], e.prototype, "playTimes", void 0);
r([ s({
displayName: "是否倒播",
tooltip: "勾选，倒着播放，不钩，顺序播放"
}) ], e.prototype, "reverse", void 0);
r([ s({
displayName: "自动播放"
}) ], e.prototype, "autoPlayOnLoad", void 0);
r([ s({
displayName: "自动销毁",
tooltip: "播完自动销毁"
}) ], e.prototype, "autoDestroy", void 0);
r([ s({
displayName: "每帧回调",
type: cc.Component.EventHandler
}) ], e.prototype, "onFrameCall", void 0);
r([ s({
displayName: "结束回调",
type: cc.Component.EventHandler
}) ], e.prototype, "onCompleteCall", void 0);
r([ s({
displayName: "编辑器预览"
}) ], e.prototype, "edit_play", null);
return r([ c, l(), u() ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
FunBtns: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3bf10Wxox5IQLcQoa17hGCb", "FunBtns");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.btn1 = null;
e.btn2 = null;
e.btn3 = null;
e.btn4 = null;
e.btn5 = null;
e.btn6 = null;
e.btn7 = null;
e.btn_redeem = null;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {};
e.prototype.init = function() {
for (var t = gData.gameData.funOpenData, e = 0; e < t.length; e++) this["btn" + (e + 1)].active = "1" == t[e];
this.updateRedeem();
};
e.prototype.updateRedeem = function() {
this.btn_redeem.active = gData.redeem.showBtn;
};
e.prototype.update = function() {
if (gData.redeem.init_btnChange) {
this.updateRedeem();
gData.redeem.init_btnChange = !1;
}
};
r([ s({
type: cc.Node,
displayName: "互推"
}) ], e.prototype, "btn1", void 0);
r([ s({
type: cc.Node,
displayName: "转盘"
}) ], e.prototype, "btn2", void 0);
r([ s({
type: cc.Node,
displayName: "裂变"
}) ], e.prototype, "btn3", void 0);
r([ s({
type: cc.Node,
displayName: "存钱罐"
}) ], e.prototype, "btn4", void 0);
r([ s({
type: cc.Node,
displayName: "福袋"
}) ], e.prototype, "btn5", void 0);
r([ s({
type: cc.Node,
displayName: "签到"
}) ], e.prototype, "btn6", void 0);
r([ s({
type: cc.Node,
displayName: "常规提现"
}) ], e.prototype, "btn7", void 0);
r([ s({
type: cc.Node,
displayName: "福利礼包"
}) ], e.prototype, "btn_redeem", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
GData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c968fZ1+W1BDIpoLXI/0qsN", "GData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Fun = void 0;
var o, i = t("./AppData"), r = t("./GameData"), a = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), u = t("./module/HelpData"), p = t("./module/PigBankData"), d = t("./module/TurnableData"), h = t("./module/SignData"), f = t("./module/FissionData"), y = t("./AdData"), _ = t("./module/RewardData"), g = t("./module/CashNormalData"), m = t("./module/ReceiptNoticeData"), v = t("./module/BlessingBagData"), b = t("./module/CashProData"), S = t("./module/RedBagCashData"), A = t("./module/RedCodeData"), w = t("./module/RedeemData"), D = t("./module/MoreGameData"), P = t("./module/SettingData"), O = t("./module/GuideData"), I = function() {
function t() {
this.init();
}
t.prototype.init = function() {
this.appData = new i.AppData();
this.loginData = new c.LoginData();
this.gameData = new r.GameData();
this.wechatData = new l.WechatData();
this.httpData = new a.HttpData();
this.adData = new y.AdData();
this.storageData = new s.StorageData();
this.guideData = new O.GuideData();
this.reward = new _.RewardData();
this.help = new u.HelpData();
this.turnable = new d.TurnableData();
this.fission = new f.FissionData();
this.pigbank = new p.PigBankData();
this.sign = new h.SignData();
this.receiptNotice = new m.ReceiptNoticeData();
this.redBagCash = new S.RedBagCashData();
this.cashNormal = new g.CashNormalData();
this.setting = new P.SettingData();
this.moreGame = new D.MoreGameData();
this.blessingBag = new v.BlessingBagData();
this.cashPro = new b.default();
this.redCodeData = new A.default();
this.redeem = new w.default();
this.moduleData = new Map();
this.moduleData.set(o.moreGame, this.moreGame);
this.moduleData.set(o.turnable, this.turnable);
this.moduleData.set(o.fission, this.fission);
this.moduleData.set(o.pigbank, this.pigbank);
this.moduleData.set(o.blessingBag, this.blessingBag);
this.moduleData.set(o.sign, this.sign);
this.moduleData.set(o.cashNormal, this.cashNormal);
this.moduleData.set(o.redBagCash, this.redBagCash);
this.moduleData.set(o.redeem, this.redeem);
};
return t;
}();
(function(t) {
t[t.moreGame = 1] = "moreGame";
t[t.turnable = 2] = "turnable";
t[t.fission = 3] = "fission";
t[t.pigbank = 4] = "pigbank";
t[t.blessingBag = 5] = "blessingBag";
t[t.sign = 6] = "sign";
t[t.cashNormal = 7] = "cashNormal";
t[t.redBagCash = 8] = "redBagCash";
t[t.redeem = 9] = "redeem";
})(o = n.Fun || (n.Fun = {}));
window.gData = new I();
cc._RF.pop();
}, {
"./AdData": "AdData",
"./AppData": "AppData",
"./GameData": "GameData",
"./HttpData": "HttpData",
"./LoginData": "LoginData",
"./StorageData": "StorageData",
"./WechatData": "WechatData",
"./module/BlessingBagData": "BlessingBagData",
"./module/CashNormalData": "CashNormalData",
"./module/CashProData": "CashProData",
"./module/FissionData": "FissionData",
"./module/GuideData": "GuideData",
"./module/HelpData": "HelpData",
"./module/MoreGameData": "MoreGameData",
"./module/PigBankData": "PigBankData",
"./module/ReceiptNoticeData": "ReceiptNoticeData",
"./module/RedBagCashData": "RedBagCashData",
"./module/RedCodeData": "RedCodeData",
"./module/RedeemData": "RedeemData",
"./module/RewardData": "RewardData",
"./module/SettingData": "SettingData",
"./module/SignData": "SignData",
"./module/TurnableData": "TurnableData"
} ],
GameConst: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ed7fdH7Y8NJRYSt7QROjbfx", "GameConst");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, c = a.ccclass, s = (a.property, function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
n = e;
e.loadConfig = function() {
return new Promise(function(t) {
n.res_dirArr.forEach(function(e) {
cc.resources.loadDir(e, function() {}, function() {
n.config_common = cc.resources.get("game/config/common").json;
n.config_clockIn = cc.resources.get("game/config/clockIn").json;
n.config_level = cc.resources.get("game/config/level").json;
n.config_cashOut = cc.resources.get("game/config/cashOut").json;
console.log("GameConst.config_common", n.config_common);
t(null);
});
});
});
};
e.getConfig = function() {};
e.getAppid = function() {
cc.sys.platform == cc.sys.WECHAT_GAME ? n.appid = n.miniGame_wx_appid : cc.sys.os == cc.sys.OS_ANDROID ? n.appid = n.app_wx_appid : (cc.sys.os, 
cc.sys.OS_IOS);
};
e.updateDeviceInfo = function(t) {
var e = t.split("#");
n.android_id = e[0];
n.idfa = e[1];
n.imei = e[2];
n.mac = e[3];
n.oaid = e[4];
n.umid = e[5];
n.tf_channel = e[6];
n.appVersion = e[7];
n.umengChannel = e[8];
n.deviceType = e[9];
n.androidVersion = e[10];
mk.console.log("updateDeviceInf：\n                     android_id=" + n.android_id + "; idf=" + n.idfa + "; imei=" + n.imei + ";mac=" + n.mac + ";oaid=" + n.oaid + ";\n                     umid=" + n.umid + ";tf_channel=" + this.tf_channel + ";appVersion=" + this.appVersion + ";umengChannel=" + this.umengChannel + ";\n                     deviceType=" + this.deviceType + ";androidVersion=" + this.androidVersion);
n.deviceInfo = {
android_id: n.android_id,
idfa: n.idfa,
imei: n.imei,
mac: n.mac,
oaid: n.oaid,
umid: n.umid
};
};
var n;
e.ifShowAd = !0;
e.ifConnectService = !0;
e.ifSendEvent = !0;
e.ifShowLog = !0;
e.appid = "wx28356dc7c541ea76";
e.app_wx_appid = "wx28356dc7c541ea76";
e.miniGame_wx_appid = "";
e.wxCode = "";
e.url_service = " https://xx.duiweize.com";
e.url_sharePic = "";
e.res_dirArr = [ "game/config" ];
e.url_resOss = "";
e.ifLoginFinished = !1;
e.isNew = !0;
e.isAuth = !1;
e.localEncryptKey = "mzmNr2s358irB3WQC3AmGaWMFkMx2HQs";
e.randomKey = "abcdefghijklopqrstuvwxyzabcdefgh";
e.randomKey_new = "";
e.uin = "";
e.tmp_uin = "";
e.session_key = "";
e.login_ticket = "";
e.config_common = null;
e.config_clockIn = null;
e.config_level = null;
e.config_cashOut = null;
e.iconIndex = 6;
e.maxIconIndex = 2;
e.col_num = 8;
e.row_num = 8;
e.advertisingChannel = 1;
e.android_id = "";
e.idfa = "";
e.imei = "";
e.mac = "";
e.oaid = "";
e.umid = "";
e.umengChannel = "ttaxx_juliang";
e.deviceType = "Android";
e.androidVersion = "";
e.appVersion = "";
e.tf_channel = "juliang";
e.deviceInfo = null;
return n = r([ c ], e);
}(cc.Component));
n.default = s;
cc._RF.pop();
}, {} ],
GameData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "0d160Vl85tFfpeQsIi4Jddb", "GameData");
var o = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, i = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.StorageKey = n.EVENT_TYPE = n.AUDIO_TYPE = n.RewardType = n.RewardState = n.GameProp = n.GameData = void 0;
var r, a = function() {
function t() {
this.dataFinish = !1;
this.savePropFinish = !1;
this.savePropsFinish = !1;
this.getPropsFnish = !1;
this.configs = {};
this.funOpenData = [];
this.gameData = null;
this.init_coin = !1;
this.init_head = !1;
this.props = new Map();
this.pools = [ {
url: "game/prefab/tips",
num: 20
}, {
url: "game/prefab/coin",
num: 20
} ];
this.gameStyle = null;
}
t.prototype.init = function() {
return o(this, void 0, void 0, function() {
var t, e;
return i(this, function(n) {
switch (n.label) {
case 0:
t = {
versionCode: gData.appData.version
};
return [ 4, mk.http.sendData("getAllConfigInfo", t) ];

case 1:
if (0 != (e = n.sent()).errcode) {
-10003 != e.errcode && -20003 != e.errcode || gData.loginData.reload();
return [ 2 ];
}
mk.console.logSingle("getAllConfigInfo", e.data);
this.initConfigs(e.data);
t = {};
return [ 4, mk.http.sendData("getInfoCrypt", t) ];

case 2:
if (0 != (e = n.sent()).errcode) return [ 2 ];
mk.console.logSingle("getInfoCrypt", e.data);
this.initPlayerProp(e.data);
this.initProps(e.data.gameUserData);
gData.moduleData.forEach(function(t) {
t.init();
});
t = {};
return [ 4, mk.http.sendData("user/adShowConfig", t) ];

case 3:
if (0 != (e = n.sent()).errcode) return [ 2 ];
this.adShowConfig = e.data;
mk.console.logSingle("user/adShowConfig", e.data);
this.dataFinish = !0;
return [ 2 ];
}
});
});
};
t.prototype.initConfigs = function(t) {
this.configs = t;
this.funOpenData = this.configs.ServerConfig.Functionswitch.split(",");
};
t.prototype.initPlayerProp = function(t) {
this.gameData = new c();
this.gameData.cashIndex = t.cashIndex;
this.gameData.gameUserData = t.gameUserData;
this.gameData.isSignInToday = t.isSignInToday;
this.gameData.isWithdrawable = t.isWithdrawable;
this.gameData.lastTime = t.lastTime;
this.gameData.loginDays = t.loginDays;
this.gameData.newPlayer = t.newPlayer;
this.gameData.piggyBank = t.piggyBank;
this.gameData.piggyBankCashTimes = t.piggyBankCashTimes;
this.gameData.redMoney = t.redMoney;
this.gameData.signInDay = t.signInDay;
this.gameData.totalPiggyBankCashTimes = t.totalPiggyBankCashTimes;
this.gameData.turntableTimes = t.turntableTimes;
this.gameData.userTuCaoInfo = t.userTuCaoInfo;
this.gameData.versioncfg = t.versioncfg;
};
t.prototype.setProp = function(t, e) {
return o(this, void 0, void 0, function() {
var n;
return i(this, function(o) {
switch (o.label) {
case 0:
n = {
key: t + "",
value: e + ""
};
this.props.set(t, e);
return [ 4, mk.http.sendData("savePlayerProp", n) ];

case 1:
o.sent();
this.savePropFinish = !0;
return [ 2 ];
}
});
});
};
t.prototype.setProps = function(t) {
return o(this, void 0, void 0, function() {
var e, n, o;
return i(this, function(i) {
switch (i.label) {
case 0:
e = {};
for (o = 0; o < t.length; o++) e[t[o].key + ""] = t[o].value + "";
n = {
needProp: e
};
for (o = 0; o < t.length; o++) this.props.set(t[o].key, t[o].value);
return [ 4, mk.http.sendData("saveAllPlayerProp", n) ];

case 1:
i.sent();
this.savePropsFinish = !0;
return [ 2 ];
}
});
});
};
t.prototype.getProp = function(t) {
if (null == this.props) return 0;
var e = this.props.get(t);
return null == e ? 0 : e;
};
t.prototype.getAllProps = function() {
return o(this, void 0, void 0, function() {
var t;
return i(this, function(e) {
switch (e.label) {
case 0:
return [ 4, mk.http.sendData("getAllPlayerProp", {}) ];

case 1:
if (0 != (t = e.sent()).errcode) return [ 2 ];
this.initProps(t.data);
this.getPropsFnish = !0;
return [ 2 ];
}
});
});
};
t.prototype.initProps = function(t) {
if (null != t) for (var e in t) this.props.set(parseInt(e), JSON.parse(t[e]));
};
t.prototype.resetProps = function() {
var t = [];
t.push({
key: r.sign_can,
value: 1
});
this.setProps(t);
};
t.prototype.isNewPlayer = function() {
return 0 == this.getProp(r.newPlayer);
};
return t;
}();
n.GameData = a;
(function(t) {
t[t.newPlayer = 1] = "newPlayer";
t[t.guideID = 2] = "guideID";
t[t.levelNum = 10] = "levelNum";
t[t.hammerPropNum = 1001] = "hammerPropNum";
t[t.resetPropNum = 1002] = "resetPropNum";
t[t.changePropNum = 1003] = "changePropNum";
t[t.turnable_leftTimes = 20] = "turnable_leftTimes";
t[t.sign_last_bar = 120] = "sign_last_bar";
t[t.sign_can = 121] = "sign_can";
t[t.redBag_cash_bar = 220] = "redBag_cash_bar";
})(r = n.GameProp || (n.GameProp = {}));
var c = function() {
function t() {
this.gameUserData = 0;
this._isSignInToday = 0;
this._piggyBank = 0;
this._isWithdrawable = 0;
this.piggyBankCashTimes = 0;
this.totalPiggyBankCashTimes = 0;
this.cashIndex = 0;
this.lastTime = 0;
this.loginDays = 0;
this.newPlayer = 0;
this._redMoney = 0;
this._signInDay = 0;
this.turntableTimes = 0;
this.versioncfg = 0;
this.userTuCaoInfo = 0;
this.levelNum = 0;
this.hammerPropNum = 0;
this.resetPropNum = 0;
this.changePropNum = 0;
}
Object.defineProperty(t.prototype, "isSignInToday", {
get: function() {
return this._isSignInToday;
},
set: function(t) {
this._isSignInToday = t;
gData.sign.init_data = !0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "piggyBank", {
get: function() {
return this._piggyBank;
},
set: function(t) {
this._piggyBank = t;
gData.gameData.init_coin = !0;
gData.pigbank.init_data = !0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "isWithdrawable", {
get: function() {
return this._isWithdrawable;
},
set: function(t) {
if (this._isWithdrawable != t) {
this._isWithdrawable = t;
gData.pigbank.init_data = !0;
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "redMoney", {
get: function() {
return this._redMoney;
},
set: function(t) {
this._redMoney = t;
gData.gameData.init_coin = !0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "signInDay", {
get: function() {
return this._signInDay;
},
set: function(t) {
this._signInDay = t;
gData.sign.init_data = !0;
},
enumerable: !1,
configurable: !0
});
return t;
}();
(function(t) {
t[t.none = 1] = "none";
t[t.lock = 2] = "lock";
t[t.unlock = 3] = "unlock";
})(n.RewardState || (n.RewardState = {}));
(function(t) {
t[t.redBag = 1] = "redBag";
t[t.rmb = 2] = "rmb";
t[t.pigRmb = 3] = "pigRmb";
})(n.RewardType || (n.RewardType = {}));
(function(t) {
t.bgm = "bgm";
t.pigBank = "pigBank";
t.missionBg = "missionBg";
t.rewardClose = "rewardClose";
t.rewardOpen = "rewardOpen";
t.reward = "reward";
t.receiptNotice = "receiptNotice";
t.button = "button";
t.turnableplay = "turnableplay";
t.turnplateDrawEnd = "turnplateDrawEnd";
t.music_startBg = "music_startBg";
t.music_gameBg = "music_gameBg";
t.ef_button_click = "ef_button_click";
t.ef_redPacket_open = "ef_redPacket_open";
t.ef_redPacket_come = "ef_redPacket_come";
t.ef_bonus4 = "ef_bonus4";
t.ef_bonus5 = "ef_bonus5";
t.ef_bonus6 = "ef_bonus6";
t.ef_bonus7 = "ef_bonus7";
t.ef_bonus8 = "ef_bonus8";
t.ef_eliminate = "ef_eliminate";
t.ef_eliminate_bonus = "ef_eliminate_bonus";
t.ef_win = "ef_win";
t.ef_change = "ef_change";
t.ef_refresh = "ef_refresh";
t.ef_fly = "ef_fly";
})(n.AUDIO_TYPE || (n.AUDIO_TYPE = {}));
(function(t) {
t.BACK_WxAuth = "BACK_WxAuth";
t.UPDATE_CashNum = "UPDATE_CashNum";
})(n.EVENT_TYPE || (n.EVENT_TYPE = {}));
n.StorageKey || (n.StorageKey = {});
cc._RF.pop();
}, {} ],
GameLogic: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a5c2byFYkxCtII644LTIGSH", "GameLogic");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../data/Enum"), c = t("../GamePlay"), s = t("../data/GameConst"), l = cc._decorator, u = l.ccclass, p = (l.property, 
function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
n = e;
e.loadHeadImg = function(t, e, n) {
mk.console.log("[LoaderUtil] loadHeadImg ----------------------------------- ", t);
mk.loader.loadRemote(t + '+"?aaa=aa.jpg"', null).then(function(t) {
var o = t;
e.spriteFrame = new cc.SpriteFrame(o);
e.node.setContentSize(n, n);
});
};
e.getWorldPos = function(t) {
for (var e = t.x, n = t.y, o = t; o.parent; ) {
var i = o.parent;
mk.console.log("GameUtil", o.parent.name);
if ("Canvas" == i.name) break;
e += i.x;
n += i.y;
o = i;
}
mk.console.log("GameUtil", e, n);
return new cc.Vec2(e, n);
};
e.prototype.checkAroundCellItem = function(t, e, n, o, i) {
var r = 0, l = 0;
switch (t) {
case a.CHECKDIR.Above:
if (n <= 0) return null;
r = e;
l = n - 1;
break;

case a.CHECKDIR.Below:
if (n >= s.default.row_num - 1) return null;
r = e;
l = n + 1;
break;

case a.CHECKDIR.Left:
if (e <= 0) return null;
r = e - 1;
l = n;
break;

case a.CHECKDIR.Right:
if (e >= s.default.col_num - 1) return null;
r = e + 1;
l = n;
}
var u = c.default.Inst.cellItemDic[r][l];
if (u && 0 == u.ifRemoved && u.type === o) {
i && (u.ifRemoved = !0);
return new cc.Vec2(r, l);
}
return null;
};
e.checkAboveCellItem = function(t, e, n, o) {
if (c.default.Inst && c.default.Inst.cellItemDic) {
if (e <= 0) return null;
var i = c.default.Inst.cellItemDic[t][e - 1];
if (i && 0 == i.ifRemoved && i.type === n) {
o && (i.ifRemoved = !0);
return new cc.Vec2(t, e - 1);
}
return null;
}
};
e.checkBelowCellItem = function(t, e, n, o) {
if (c.default.Inst && c.default.Inst.cellItemDic) {
if (e >= s.default.row_num - 1) return null;
var i = c.default.Inst.cellItemDic[t][e + 1];
if (i && 0 == i.ifRemoved && i.type === n) {
o && (i.ifRemoved = !0);
return new cc.Vec2(t, e + 1);
}
return null;
}
};
e.checkLeftCellItem = function(t, e, n, o) {
if (c.default.Inst && c.default.Inst.cellItemDic) {
if (t <= 0) return null;
var i = c.default.Inst.cellItemDic[t - 1][e];
if (i && 0 == i.ifRemoved && i.type === n) {
o && (i.ifRemoved = !0);
return new cc.Vec2(t - 1, e);
}
return null;
}
};
e.checkRightCellItem = function(t, e, n, o) {
if (t >= s.default.col_num - 1) return null;
if (c.default.Inst && c.default.Inst.cellItemDic && c.default.Inst.cellItemDic[t + 1]) {
var i = c.default.Inst.cellItemDic[t + 1][e];
if (i && 0 == i.ifRemoved && i.type === n) {
o && (i.ifRemoved = !0);
return new cc.Vec2(t + 1, e);
}
return null;
}
};
e.getAroundSameType = function(t, e, o, i) {
void 0 === i && (i = !1);
return [ n.checkAboveCellItem(t, e, o, i), n.checkBelowCellItem(t, e, o, i), n.checkLeftCellItem(t, e, o, i), n.checkRightCellItem(t, e, o, i) ].filter(function(t) {
return null != t;
});
};
e.getCleanedVecList = function(t, e, n, o) {
var i = this;
void 0 === o && (o = !0);
this.getAroundSameType(t, e, n, o).forEach(function(t) {
if (-1 == c.default.Inst.cleanedVecArr.indexOf(t)) {
c.default.Inst.cleanedVecArr.push(t);
i.getCleanedVecList(t.x, t.y, n, o);
}
});
};
e.getCouldCleanVecList = function(t, e, n, o) {
var i = this;
void 0 === o && (o = !0);
this.getAroundSameType(t, e, n, o).forEach(function(t) {
if (-1 == c.default.Inst.couldCleanVecArr.indexOf(t)) {
c.default.Inst.couldCleanVecArr.push(t);
i.getCouldCleanVecList(t.x, t.y, n, o);
}
});
};
e.getCouldCleanVec = function() {
for (var t = Object.keys(c.default.Inst.cellItemDic), e = 0; e < t.length; e++) {
var n = Number(t[e]), o = c.default.Inst.cellItemDic[n];
if (o) for (var i = 0; i < o.length; i++) {
var r = o[i];
if (r) {
this.getCouldCleanVecList(r.x, r.y, r.type, !0);
if (c.default.Inst.couldCleanVecArr.length > 0) {
for (e = 0; e < c.default.Inst.couldCleanVecArr.length; e++) {
var a = c.default.Inst.couldCleanVecArr[e];
if (c.default.Inst.cellItemDic[a.x]) {
var s = c.default.Inst.cellItemDic[a.x][a.y];
s && (s.ifRemoved = !1);
}
}
return;
}
}
}
}
};
e.getAllCleanXIndex = function(t) {
for (var e = [], n = 0; n < t.length; n++) {
for (var o = t[n], i = c.default.Inst.cellItemDic[o], r = !0, a = s.default.row_num - 1; a >= 0; a--) if (i[a]) {
r = !1;
break;
}
r && e.push(o);
}
e.sort();
return e;
};
e.getLeftXIndexArr = function() {
for (var t = [], e = 0; e < s.default.col_num; e++) c.default.Inst.cellItemDic[e].filter(function(t) {
return null != t;
}).length > 0 && t.push(e);
return t;
};
var n;
return n = r([ u ], e);
}(cc.Component));
n.default = p;
cc._RF.pop();
}, {
"../GamePlay": "GamePlay",
"../data/Enum": "Enum",
"../data/GameConst": "GameConst"
} ],
GameMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "8ff5f761lpDwKWjOpqklSHG", "GameMgr");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.UIITEM_NAME = n.UI_NAME = void 0;
var a = t("../data/GameConst"), c = cc._decorator, s = c.ccclass, l = (c.property, 
function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
n = e;
Object.defineProperty(e, "Inst", {
get: function() {
n.instance || (n.instance = new n());
return n.instance;
},
enumerable: !1,
configurable: !0
});
e.prototype.start = function() {};
e.prototype.sendEvent = function() {};
e.prototype.sendEventCp = function() {
a.default.ifSendEvent;
};
var n;
e.instance = null;
return n = r([ s ], e);
}(cc.Component));
n.default = l;
(function(t) {
t.Loading = "Loading";
t.Start = "Start";
t.Game = "Game";
t.DailyCashOutUI = "DailyCashOutUI";
t.GameOverUI = "GameOverUI";
t.GetEnergyUI = "GetEnergyUI";
t.GetPropUI = "GetPropUI";
t.GuideAuthUI = "GuideAuthUI";
t.PauseUI = "PauseUI";
t.PlayerInfoUI = "PlayerInfoUI";
t.RedPacketUI = "RedPacketUI";
t.SettingUI = "SettingUI";
t.ShopUI = "ShopUI";
t.ShopActivityUI = "ShopActivityUI";
t.SurpriseTaskUI = "SurpriseTaskUI";
t.AdressUI = "AdressUI";
})(n.UI_NAME || (n.UI_NAME = {}));
(function(t) {
t.CashOutItem = "CashOutItem";
t.ClockInItem = "ClockInItem";
t.LevelRedPacketItem = "LevelRedPacketItem";
t.ShopGoodItem = "ShopGoodItem";
t.ShopRedPacketItem = "ShopRedPacketItem";
t.ShopPropItem = "ShopPropItem";
t.ShopActivityItem = "ShopActivityItem";
})(n.UIITEM_NAME || (n.UIITEM_NAME = {}));
cc._RF.pop();
}, {
"../data/GameConst": "GameConst"
} ],
GamePlay: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a2b96K4aRpIurudLqdatOeW", "GamePlay");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("./view/uiItem/CellItem"), c = t("./data/Enum"), s = t("./mgr/PoolMgr"), l = t("./data/GameConst"), u = t("./util/GameLogic"), p = t("./view/effect/BonusTip"), d = t("./mgr/DataMgr"), h = t("./mgr/EffectMgr"), f = t("./mgr/GameMgr"), y = t("../game/data/GameData"), _ = cc._decorator, g = _.ccclass, m = _.property, v = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_bg = null;
e.node_top = null;
e.label_level = null;
e.node_redPacketIcon = null;
e.btn_gameGetRed1 = null;
e.btn_gameGetRed2 = null;
e.btn_gameGetRed3 = null;
e.btn_gameGetRed4 = null;
e.node_content = null;
e.node_cellBg = null;
e.node_pauseBtn = null;
e.node_progressUI = null;
e.spr_progress = null;
e.node_resetBtn = null;
e.label_resetPropNum = null;
e.node_hammerBtn = null;
e.label_hammerPropNum = null;
e.node_changeBtn = null;
e.label_changePropNum = null;
e.node_changeCellItemUI = null;
e.node_effectUI = null;
e.node_levelRedPacketUI = null;
e.node_touchListenMask = null;
e.curProgressScore = 0;
e.curGetScore = 0;
e.targetScore = 1e5;
e.finalGetScore = 0;
e.addScoreSpeed = 4;
e.cellItemDic = {};
e.cellItemArr = [];
e.cleanedVecArr = [];
e.couldCleanVecArr = [];
e.cleanXIndexArr = [];
e.allCleanedXArr = [];
e.leftXIndexArr = [];
e.curSelectCellItem = null;
e.curClickCellItem = null;
e.curSelectPropBtn = null;
e.ifCouldClick = !0;
e.ifPass = !1;
e.ifGetPass = !1;
e.addCellItemFuc = null;
e.curXIndex = 0;
e.curYIndex = 7;
e.timeout_pass = 0;
e.interval_ShowGuide = null;
e.interval_ShowInter = null;
return e;
}
n = e;
Object.defineProperty(e.prototype, "curPropType", {
get: function() {
return this._curPropType;
},
set: function(t) {
var e = null;
if (this.curSelectPropBtn) {
mk.console.log("this.curSelectPropBtn", this.curSelectPropBtn);
e = this.curSelectPropBtn.children[1].getComponent(cc.Animation);
}
if (t == c.PROPTYPE.Null) {
e && e.play("ani_normalBtn");
this.setPropBtnNormalTip(this.curSelectPropBtn);
} else {
e && e.play("ani_selectBtn");
this.setPropBtnSelectTip(this.curSelectPropBtn);
}
this._curPropType = t;
},
enumerable: !1,
configurable: !0
});
e.prototype.onLoad = function() {
n.Inst = this;
};
e.prototype.start = function() {
var t = this;
s.default.Inst.initPoolPrefab();
l.default.loadConfig().then(function() {
t.adapt();
mk.audio.playMusic("music_gameBg");
t.initView();
t.initEvent();
t.intervalShowGuide();
t.intervalShowInter();
cc.tween(t.btn_gameGetRed1).delay(.2).to(1, {
y: 60
}, {
easing: ""
}).to(1, {
y: 0
}, {
easing: ""
}).union().repeatForever().start();
cc.tween(t.btn_gameGetRed2).delay(.4).to(1, {
y: 60
}, {
easing: ""
}).to(1, {
y: 0
}, {
easing: ""
}).union().repeatForever().start();
cc.tween(t.btn_gameGetRed3).delay(.2).to(1, {
y: 60
}, {
easing: ""
}).to(1, {
y: 0
}, {
easing: ""
}).union().repeatForever().start();
cc.tween(t.btn_gameGetRed4).delay(.4).to(1, {
y: 60
}, {
easing: ""
}).to(1, {
y: 0
}, {
easing: ""
}).union().repeatForever().start();
}).catch();
};
e.prototype.onEnable = function() {
mk.console.log("PROPTYPE[PROPTYPE.Change]", c.PROPTYPE.Change);
f.default.Inst.sendEvent(f.UI_NAME.Game, "进入游戏界面");
};
e.prototype.onDisable = function() {
this.curPropType = c.PROPTYPE.Null;
this.curSelectCellItem && this.curSelectCellItem.normal();
(this.node_changeCellItemUI.active = !0) && (this.node_changeCellItemUI.active = !1);
};
e.prototype.adapt = function() {
mk.console.log("进行适配！！！！！！！！！！！！！！！！");
this.node_bg.setContentSize(new cc.Size(cc.winSize.width, cc.winSize.height));
var t = gData.gameData.gameStyle.node_top_ui.parent.convertToWorldSpaceAR(gData.gameData.gameStyle.node_top_ui.getPosition()), e = this.node_top.parent.convertToNodeSpaceAR(t);
this.node_top.y = e.y - 40;
};
e.prototype.update = function() {
if (this.curProgressScore >= this.curGetScore) 0 == this.curProgressScore && (this.spr_progress.fillRange = 0); else if (this.curProgressScore >= this.targetScore) {
this.curProgressScore = this.curGetScore;
this.initScore();
} else {
var t = this.curProgressScore + this.addScoreSpeed;
if (this.curProgressScore < n.Inst.targetScore && t >= n.Inst.targetScore) {
var e = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.GetTargetScoreTip);
n.Inst.node_effectUI.addChild(e);
}
this.curProgressScore = t;
this.curProgressScore >= this.curGetScore && (this.curProgressScore = this.curGetScore);
this.initScore();
}
};
e.prototype.initView = function() {
this.initLevel();
this.initTotalScore();
this.initScore();
this.initProgress();
this.initHammerPropNum();
this.setPropBtnNormalTip(this.node_hammerBtn);
this.initResetPropNum();
this.setPropBtnNormalTip(this.node_resetBtn);
this.initChanegPropNum();
this.setPropBtnNormalTip(this.node_changeBtn);
this.initCellBg();
this.initCell();
};
e.prototype.initEvent = function() {
this.node_pauseBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
this.node_resetBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
this.node_hammerBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
this.node_changeBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
this.node_redPacketIcon.on(cc.Node.EventType.TOUCH_END, this.onClickRedPacketIcon, this);
l.default.isAuth || mk.event.register(y.EVENT_TYPE.BACK_WxAuth, this.onWxAuthBack, this);
};
e.prototype.initLevel = function() {
mk.console.log("[Game] levelNum", gData.gameData.getProp(y.GameProp.levelNum));
var t = gData.gameData.getProp(y.GameProp.levelNum);
this.label_level.string = "第" + (t + 1) + "关";
};
e.prototype.initTotalScore = function() {
var t = gData.gameData.getProp(y.GameProp.levelNum);
this.targetScore = 450 + t * (5 + Math.floor(15 * Math.random()));
this.addScoreSpeed = 2 * Math.floor(this.targetScore / 400) + 4;
mk.console.log("this.addScoreSpeed", this.addScoreSpeed);
};
e.prototype.initScore = function() {
this.initProgress();
};
e.prototype.initProgress = function() {
var t = this.curProgressScore / this.targetScore;
t = t > 1 ? 1 : t;
this.spr_progress.fillRange = t;
if (t >= 1) {
this.pass();
mk.ui.openPanel("module/reward/rewardMission");
}
};
e.prototype.initPropNum = function() {
this.initHammerPropNum();
this.initResetPropNum();
this.initChanegPropNum();
};
e.prototype.initHammerPropNum = function() {
var t = gData.gameData.getProp(y.GameProp.hammerPropNum);
this.label_hammerPropNum.string = t ? t.toString() : "+";
};
e.prototype.initResetPropNum = function() {
var t = gData.gameData.getProp(y.GameProp.resetPropNum);
this.label_resetPropNum.string = t ? t.toString() : "+";
};
e.prototype.initChanegPropNum = function() {
var t = gData.gameData.getProp(y.GameProp.changePropNum);
this.label_changePropNum.string = t ? t.toString() : "+";
};
e.prototype.initCellBg = function() {
for (var t = 0; t < l.default.col_num; t++) for (var e = 0; e < l.default.row_num; e++) {
var n = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.CellBg), o = cc.instantiate(n);
this.node_cellBg.addChild(o);
}
};
e.prototype.initCell = function() {
var t = this;
this.addCellItemFuc = function() {
t.addCellItem();
};
this.schedule(this.addCellItemFuc, .05);
};
e.prototype.addCellItem = function() {
mk.console.log("addCellItem!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
this.addColCellItem();
this.curXIndex++;
if (this.curXIndex >= l.default.col_num) {
this.unschedule(this.addCellItemFuc);
this.getStartRedPacketCellItem();
}
};
e.prototype.addColCellItem = function() {
this.cellItemDic[this.curXIndex] = [];
for (var t = l.default.row_num - 1; t >= 0; t--) {
var e = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.CellItem), n = cc.instantiate(e), o = n.getComponent(a.default);
o.init(this.curXIndex, t);
this.cellItemDic[this.curXIndex][t] = o;
this.cellItemArr.push(o);
this.node_content.addChild(n);
}
};
e.prototype.onClickBtn = function(t) {
this.intervalShowGuide();
this.intervalShowInter();
if (this.ifPass) h.default.Inst.addTip("通关结算啦,请稍后操作哈"); else {
mk.audio.playEffect("button");
switch (t.currentTarget) {
case this.node_pauseBtn:
this.onClickPauseBtn();
break;

case this.node_hammerBtn:
this.onClickHammerBtn();
break;

case this.node_changeBtn:
this.onClickChangeBtn();
break;

case this.node_resetBtn:
this.onClickResetBtn();
}
}
};
e.prototype.onClickPauseBtn = function() {
f.default.Inst.sendEvent(f.UI_NAME.Game, "点击暂停按钮");
mk.ui.openPanel("game/prefab/uiPanel/PauseUI");
};
e.prototype.onClickResetBtn = function() {
f.default.Inst.sendEvent(f.UI_NAME.Game, "点击重置道具按钮");
this.setCurSelectPropBtn(this.node_resetBtn);
this.curPropType = c.PROPTYPE.Reset;
var t = gData.gameData.getProp(y.GameProp.resetPropNum);
if (!t || t <= 0) mk.ui.openPanel("game/prefab/uiPanel/GetPropUI"); else {
mk.audio.playEffect("ef_refresh");
for (var e = Object.keys(this.cellItemDic), o = 0; o < e.length; o++) for (var i = Number(e[o]), r = this.cellItemDic[i], a = 0; a < r.length; a++) {
var s = r[a];
s && s.reset();
}
d.default.Inst.updatePropNum(2, n.Inst.curPropType, -1);
this.curPropType = c.PROPTYPE.Null;
}
};
e.prototype.onClickHammerBtn = function() {
f.default.Inst.sendEvent(f.UI_NAME.Game, "点击消除锤道具按钮");
this.setCurSelectPropBtn(this.node_hammerBtn);
this.curPropType = c.PROPTYPE.Hammer;
var t = gData.gameData.getProp(y.GameProp.hammerPropNum);
!t || t <= 0 ? mk.ui.openPanel("game/prefab/uiPanel/GetPropUI") : d.default.Inst.updatePropNum(2, n.Inst.curPropType, -1);
};
e.prototype.onClickChangeBtn = function() {
f.default.Inst.sendEvent(f.UI_NAME.Game, "点击变化方块按钮");
this.setCurSelectPropBtn(this.node_changeBtn);
this.curPropType = c.PROPTYPE.Change;
var t = gData.gameData.getProp(y.GameProp.changePropNum);
!t || t <= 0 ? mk.ui.openPanel("game/prefab/uiPanel/GetPropUI") : d.default.Inst.updatePropNum(2, n.Inst.curPropType, -1);
};
e.prototype.changeCellItemType = function(t) {
var e = this.curSelectCellItem.node.x + n.Inst.node_content.x, o = this.curSelectCellItem.node.y + n.Inst.node_content.y, i = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.Change);
i.setPosition(e, o);
n.Inst.node_effectUI.addChild(i);
this.curSelectCellItem.setType(t);
mk.audio.playEffect("ef_change");
this.curSelectCellItem = null;
};
e.prototype.setCurSelectPropBtn = function(t) {
if (this.curSelectPropBtn) {
var e = this.curSelectPropBtn.children[1];
if (e) {
var n = e.getComponent(cc.Animation);
n && n.play("ani_normalBtn");
}
this.setPropBtnNormalTip(this.curSelectPropBtn);
}
this.curSelectPropBtn = t;
};
e.prototype.setPropBtnNormalTip = function(t) {
if (t) {
var e = t.children[2];
if (e) {
var n = null;
switch (t) {
case this.node_hammerBtn:
n = this.label_hammerPropNum;
break;

case this.node_resetBtn:
n = this.label_resetPropNum;
break;

case this.node_changeBtn:
n = this.label_changePropNum;
}
var o = n.string, i = Number(o), r = e.getComponent(cc.Label);
mk.console.log("propBtn.name", t.name);
mk.console.log("num", i);
r.string = i && i >= 1 ? "" : "点我领取";
}
}
};
e.prototype.setPropBtnSelectTip = function(t) {
if (t) {
var e = t.children[2];
e && (e.getComponent(cc.Label).string = "道具使用中");
}
};
e.prototype.showChangeCellItemUI = function() {
var t = this.curSelectCellItem;
n.Inst.node_changeCellItemUI.active = !0;
n.Inst.node_changeCellItemUI.y = t.node.y + .5 * t.node.height + .5 * n.Inst.node_changeCellItemUI.height + 20;
};
e.prototype.onClickRedPacketIcon = function() {
1 == this.spr_progress.fillRange ? h.default.Inst.addTip("已达成目标啦,过关发放哦") : h.default.Inst.addTip("达到目标分数,才能领取哦");
};
e.prototype.getStartRedPacketCellItem = function() {
for (var t = this, e = this.cellItemArr.concat(), n = [], o = 0; o < e.length; o++) {
var i = e[o];
if (i) {
u.default.getCouldCleanVecList(i.x, i.y, i.type, !0);
console.log("largeCellItemVec.length", n.length);
n.length < this.couldCleanVecArr.length && (n = this.couldCleanVecArr);
this.couldCleanVecArr.forEach(function(n) {
var o = l.default.col_num * n.x + (l.default.row_num - 1 - n.y);
e[o] = null;
t.cellItemDic[n.x][n.y].ifRemoved = !1;
});
this.couldCleanVecArr = [];
}
}
console.log("FC------------------------------------------------------------");
var r = n[mk.math.random(0, n.length - 1)], a = this.cellItemDic[r.x][r.y];
a.showRedPacket();
return a;
};
e.prototype.onWxAuthBack = function() {
if (this.node.active) {
this.restart(!1);
mk.ui.getCurOnPanel("RedPacketUI") && mk.ui.closePanel("RedPacketUI");
}
this.initLevel();
this.initTotalScore();
this.initPropNum();
mk.event.remove(y.EVENT_TYPE.BACK_WxAuth, this.onWxAuthBack, this);
};
e.prototype.cleanCellItemByVecList = function() {
var t = this;
if (n.Inst.cleanedVecArr.length <= 0) {
this.ifCouldClick = !0;
h.default.Inst.addTip("点击两个或以上消除哦");
} else {
n.Inst.cleanedVecArr.length >= 4 ? mk.audio.playEffect("ef_eliminate_bonus") : mk.audio.playEffect("ef_eliminate");
mk.audio.playEffect("ef_fly");
for (var e = 0; e < n.Inst.cleanedVecArr.length; e++) {
var o = n.Inst.cleanedVecArr[e];
if (e == n.Inst.cleanedVecArr.length - 1) {
this.checkBonusNum(n.Inst.cleanedVecArr.length);
n.Inst.cellItemDic[o.x][o.y].recycle(!1, !0);
} else n.Inst.cellItemDic[o.x][o.y].recycle();
-1 == this.cleanXIndexArr.indexOf(o.x) && this.cleanXIndexArr.push(o.x);
}
this.cleanXIndexArr.sort();
this.allCleanedXArr = u.default.getAllCleanXIndex(this.cleanXIndexArr);
this.scheduleOnce(function() {
t.checkMoveDownCellItem();
}, .2);
}
};
e.prototype.checkMoveDownCellItem = function() {
mk.console.log("this.cleanXIndexArr", this.cleanXIndexArr);
for (var t = 0; t < this.cleanXIndexArr.length; t++) {
var e = this.cleanXIndexArr[t];
this.moveYCellItem(e);
}
};
e.prototype.moveYCellItem = function(t) {
var e = 0, o = 0, i = -1 != this.allCleanedXArr.indexOf(t), r = t == this.cleanXIndexArr[this.cleanXIndexArr.length - 1], a = n.Inst.cellItemDic[t], c = null;
if (r) {
this.cleanedVecArr.filter(function(e) {
return e.x == t;
}).sort()[0].y;
for (var s = 0; s < l.default.row_num; s++) if (a && (u = a[s])) {
c = u.y;
break;
}
}
if (r && i) this.checkMoveLeftCellItem(); else for (s = l.default.row_num - 1; s >= 0; s--) if (a) {
var u;
if (u = a[s]) {
r && s == c ? u.moveDown(t, s + o, e, !0) : u.moveDown(t, s + o, e);
e++;
} else o += 1;
}
};
e.prototype.checkMoveLeftCellItem = function() {
if (this.allCleanedXArr.length <= 0) {
n.Inst.ifCouldClick = !0;
n.Inst.checkIfEliminate();
} else {
var t = u.default.getLeftXIndexArr(), e = t[t.length - 1];
if (t.length <= 0) this.checkIfEliminate(); else {
mk.console.log("leftXIndexArr", t);
for (var o = 0, i = 0; i < l.default.col_num; i++) {
var r = n.Inst.cellItemDic[i];
if (-1 == this.allCleanedXArr.indexOf(i)) {
var a = r.filter(function(t) {
return null != t;
});
if (o > 0) for (var c = 0; c < r.length; c++) {
var s = r[c];
if (s) if (i == e && c == a[0].y) {
mk.console.log("i,j,intervalNum", i, c, o);
s.moveLeft(i - o, c, !0);
} else s.moveLeft(i - o, c);
} else if (i == e) {
n.Inst.ifCouldClick = !0;
n.Inst.checkIfEliminate();
}
} else o += 1;
}
}
}
};
e.prototype.checkIfEliminate = function() {
var t = this;
mk.console.log("开始检测是否还能够消除！！！！！！！！！！！！！！！！！！！！！");
u.default.getCouldCleanVec();
if (this.couldCleanVecArr.length <= 0 && !this.ifPass) {
this.ifPass = !0;
h.default.Inst.addSpriteTip(h.TIP_SPRITEITEM_TYPE.NormalPass);
var e = setTimeout(function() {
t.pass();
clearTimeout(e);
}, 1500);
}
};
e.prototype.getCouldCleanCellItem = function() {
for (var t = 0; this.cellItemArr.length; t++) {
var e = this.cellItemArr[t];
if (u.default.getAroundSameType(e.x, e.y, e.type, !1).length > 0) return;
}
this.pass();
};
e.prototype.restart = function(t) {
void 0 === t && (t = !1);
mk.console.log("restart！！！！！！！！！！！！！！！");
this.refreshGame();
};
e.prototype.nextLevel = function(t) {
void 0 === t && (t = !1);
mk.console.log("nextLevel！！！！！！！！！！！！！！！");
this.refreshGame();
};
e.prototype.refreshGame = function() {
this.recycleAllCellItem();
this.ifPass = !1;
this.ifGetPass = !1;
this.ifCouldClick = !0;
this.initLevel();
this.initTotalScore();
this.curProgressScore = 0;
this.curGetScore = 0;
this.finalGetScore = 0;
this.initScore();
};
e.prototype.recycleAllCellItem = function() {
for (var t = 0; t < l.default.col_num; t++) for (var e = 0; e < l.default.row_num; e++) {
var n = this.cellItemDic[t][e];
n && n.recycle(!0, !1, !1);
}
this.cellItemArr = [];
this.cellItemDic = {};
this.curXIndex = 0;
this.curYIndex = l.default.row_num - 1;
this.initCell();
};
e.prototype.pass = function() {
if (0 != n.Inst.node.active && !this.ifPass) {
this.ifPass = !0;
n.Inst.ifGetPass = !1;
var t = gData.gameData.getProp(y.GameProp.levelNum);
mk.console.log("[Game]pass passLevelNum", t);
n.Inst.ifGetPass = !0;
gData.gameData.setProp(y.GameProp.levelNum, ++t);
this.gameCount();
console.log("gData.gameData.getProp(GameProp.levelNum)", gData.gameData.getProp(y.GameProp.levelNum));
}
};
e.prototype.gameCount = function() {
mk.ui.getCurOnPanel("GetPropUI") && mk.ui.closePanel("GetPropUI");
mk.ui.getCurOnPanel("rewardLuck") && mk.ui.closePanel("rewardLuck");
this.gameOver();
};
e.prototype.gameOver = function() {
mk.ui.openPanel("module/reward/rewardMission");
};
e.prototype.checkBonusNum = function(t) {
if (t >= 4) {
var e = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.BonusTip), n = e.getComponent(p.default);
if (4 == t) {
n.init(4);
mk.audio.playEffect("ef_bonus4");
} else if (5 == t) {
n.init(5);
mk.audio.playEffect("ef_bonus5");
} else if (6 == t) {
n.init(6);
mk.audio.playEffect("ef_bonus6");
} else if (7 == t) {
n.init(7);
mk.audio.playEffect("ef_bonus7");
} else if (8 == t) {
n.init(8);
mk.audio.playEffect("ef_bonus8");
} else {
n.init(8);
mk.audio.playEffect("ef_bonus8");
}
this.node_effectUI.addChild(e);
}
};
e.prototype.checkAddLevelRedPacket = function(t) {
var e = .2 * (t - 3);
return Math.random() < e;
};
e.prototype.intervalShowGuide = function() {
var t = this;
this.cancelShowCouldCleanCellItem();
this.interval_ShowGuide = setInterval(function() {
t.showCouldCleanCellItem();
}, 1e4);
};
e.prototype.showCouldCleanCellItem = function() {
if (!mk.ui.getCurOnPanel("RedPacketUI") && !mk.ui.getCurOnPanel("GameOverUI") && this.couldCleanVecArr && this.cellItemDic) {
this.couldCleanVecArr.length <= 0 && u.default.getCouldCleanVec();
if (this.couldCleanVecArr.length > 0) for (var t = 0; t < this.couldCleanVecArr.length; t++) {
var e = this.couldCleanVecArr[t];
if (this.cellItemDic[e.x]) {
var n = this.cellItemDic[e.x][e.y];
n && n.shake();
}
}
}
};
e.prototype.cancelShowCouldCleanCellItem = function() {
if (this.interval_ShowGuide) {
clearInterval(this.interval_ShowGuide);
this.interval_ShowGuide = null;
if (this.couldCleanVecArr.length > 0) for (var t = 0; t < this.couldCleanVecArr.length; t++) {
var e = this.couldCleanVecArr[t], n = this.cellItemDic[e.x][e.y];
n && n.normal();
}
this.couldCleanVecArr = [];
}
};
e.prototype.intervalShowInter = function() {
this.cancelShowInter();
this.interval_ShowGuide = setInterval(function() {
mk.ad.showInterAd(0);
}, 15e3);
};
e.prototype.cancelShowInter = function() {
this.interval_ShowGuide && clearInterval(this.interval_ShowGuide);
};
var n;
e.Inst = null;
r([ m(cc.Node) ], e.prototype, "node_bg", void 0);
r([ m(cc.Node) ], e.prototype, "node_top", void 0);
r([ m(cc.Label) ], e.prototype, "label_level", void 0);
r([ m(cc.Node) ], e.prototype, "node_redPacketIcon", void 0);
r([ m({
type: cc.Node,
displayName: "气泡红包1"
}) ], e.prototype, "btn_gameGetRed1", void 0);
r([ m({
type: cc.Node,
displayName: "气泡红包2"
}) ], e.prototype, "btn_gameGetRed2", void 0);
r([ m({
type: cc.Node,
displayName: "气泡红包3"
}) ], e.prototype, "btn_gameGetRed3", void 0);
r([ m({
type: cc.Node,
displayName: "气泡红包3"
}) ], e.prototype, "btn_gameGetRed4", void 0);
r([ m(cc.Node) ], e.prototype, "node_content", void 0);
r([ m(cc.Node) ], e.prototype, "node_cellBg", void 0);
r([ m(cc.Node) ], e.prototype, "node_pauseBtn", void 0);
r([ m(cc.Node) ], e.prototype, "node_progressUI", void 0);
r([ m(cc.Sprite) ], e.prototype, "spr_progress", void 0);
r([ m(cc.Node) ], e.prototype, "node_resetBtn", void 0);
r([ m(cc.Label) ], e.prototype, "label_resetPropNum", void 0);
r([ m(cc.Node) ], e.prototype, "node_hammerBtn", void 0);
r([ m(cc.Label) ], e.prototype, "label_hammerPropNum", void 0);
r([ m(cc.Node) ], e.prototype, "node_changeBtn", void 0);
r([ m(cc.Label) ], e.prototype, "label_changePropNum", void 0);
r([ m(cc.Node) ], e.prototype, "node_changeCellItemUI", void 0);
r([ m(cc.Node) ], e.prototype, "node_effectUI", void 0);
r([ m(cc.Node) ], e.prototype, "node_levelRedPacketUI", void 0);
r([ m(cc.Node) ], e.prototype, "node_touchListenMask", void 0);
return n = r([ g ], e);
}(cc.Component);
n.default = v;
cc._RF.pop();
}, {
"../game/data/GameData": "GameData",
"./data/Enum": "Enum",
"./data/GameConst": "GameConst",
"./mgr/DataMgr": "DataMgr",
"./mgr/EffectMgr": "EffectMgr",
"./mgr/GameMgr": "GameMgr",
"./mgr/PoolMgr": "PoolMgr",
"./util/GameLogic": "GameLogic",
"./view/effect/BonusTip": "BonusTip",
"./view/uiItem/CellItem": "CellItem"
} ],
GameUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "784499zQZlE5LGQ/AOAWZqR", "GameUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {}
t.prototype.getWinSize = function() {
return cc.winSize;
};
t.prototype.enablePhysics = function() {
cc.director.getPhysicsManager().enabled = !0;
};
t.prototype.debugDrawPhysicsFlag = function(t) {
void 0 === t && (t = !1);
cc.director.getPhysicsManager().debugDrawFlags = t ? cc.PhysicsManager.DrawBits.e_aabbBit | cc.PhysicsManager.DrawBits.e_jointBit | cc.PhysicsManager.DrawBits.e_shapeBit : 0;
};
t.prototype.getWorldPos = function(t) {
for (var e = t.x, n = t.y, o = t; o.parent; ) {
var i = o.parent;
if ("Canvas" == i.name) break;
e += i.x;
n += i.y;
o = i;
}
return new cc.Vec2(e, n);
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
Game: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "8760dQYasROwLaLe1idTS07", "Game");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = t("../../mk/system/JsbSystem"), l = t("./FunBtns"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_gameplay = null;
e.node_btn = null;
e.img_head = null;
e.lbl_redMoney = null;
e.lbl_rmb = null;
e.btn_cashOutNormal = null;
e.btn_cashOutGold = null;
e.btn_getRed1 = null;
e.btn_getRed2 = null;
e.btn_getRed3 = null;
e.btn_start = null;
e.icon_hb = null;
e.icon_zb = null;
e.node_top_ui = null;
return e;
}
e.prototype.onLoad = function() {
gData.gameData.gameStyle = this;
mk.ui.closePanel("login");
};
e.prototype.start = function() {
this.initMusic();
this.initBtns();
this.initQiPaos();
this.initInfo();
};
e.prototype.initGuide = function() {
mk.guide.open(1);
};
e.prototype.update = function() {
gData.gameData.init_coin && this.changeInfo();
gData.gameData.init_head && this.initHead();
};
e.prototype.lateUpdate = function() {
gData.gameData.init_head = !1;
};
e.prototype.initMusic = function() {
mk.audio.playMusic("bgm");
};
e.prototype.initBtns = function() {
this.node_btn.getComponent(l.default).init();
};
e.prototype.initQiPaos = function() {
mk.tween.scale(this.btn_getRed1, .6, 0, 1, null, "backOut");
mk.tween.scale(this.btn_getRed2, .6, 0, 1, null, "backOut");
mk.tween.scale(this.btn_getRed3, .6, 0, 1, null, "backOut");
cc.tween(this.btn_getRed1).to(1.2, {
y: 100
}, {
easing: ""
}).to(1.2, {
y: 50
}, {
easing: ""
}).union().repeatForever().start();
cc.tween(this.btn_getRed2).delay(.2).to(1.5, {
y: 125
}, {
easing: ""
}).to(1.5, {
y: 50
}, {
easing: ""
}).union().repeatForever().start();
cc.tween(this.btn_getRed3).delay(.4).to(1, {
y: 10
}, {
easing: ""
}).to(1, {
y: -50
}, {
easing: ""
}).union().repeatForever().start();
};
e.prototype.initInfo = function() {
this.lbl_redMoney.string = gData.gameData.gameData.redMoney + "";
var t = gData.gameData.gameData.piggyBank / 100;
this.lbl_rmb.string = t.toFixed(2);
gData.gameData.init_coin = !1;
};
e.prototype.changeInfo = function() {
this.lbl_redMoney.node.getComponent("NumberAnim").setValue(gData.gameData.gameData.redMoney);
var t = gData.gameData.gameData.piggyBank / 100;
this.lbl_rmb.node.getComponent("NumberAnim").setValue(t.toFixed(2), 2);
gData.gameData.init_coin = !1;
};
e.prototype.initHead = function() {
return a(this, void 0, void 0, function() {
var t;
return c(this, function(e) {
switch (e.label) {
case 0:
return [ 4, mk.loader.loadRemote(gData.wechatData.avatar + "?aaa=aa.jpg", null) ];

case 1:
t = e.sent();
this.img_head.spriteFrame = new cc.SpriteFrame(t);
return [ 2 ];
}
});
});
};
e.prototype.testFly = function() {
mk.fly.PlayCoinAnim(1, 20, cc.v2(0, -300), cc.v2(0, 0));
};
e.prototype.onClickStart = function() {
this.node_gameplay.active = !0;
};
e.prototype.onClickShare = function() {
gData.loginData.isAuth ? s.default.sharePic() : mk.tip.pop("请先点击头像,在设置界面授权");
};
r([ d({
type: cc.Node,
displayName: "游戏核心玩法"
}) ], e.prototype, "node_gameplay", void 0);
r([ d({
type: cc.Node,
displayName: "功能按钮"
}) ], e.prototype, "node_btn", void 0);
r([ d({
type: cc.Sprite,
displayName: "头像"
}) ], e.prototype, "img_head", void 0);
r([ d({
type: cc.Label,
displayName: "红包币"
}) ], e.prototype, "lbl_redMoney", void 0);
r([ d({
type: cc.Label,
displayName: "金猪币"
}) ], e.prototype, "lbl_rmb", void 0);
r([ d({
type: cc.Sprite,
displayName: "红包提现"
}) ], e.prototype, "btn_cashOutNormal", void 0);
r([ d({
type: cc.Sprite,
displayName: "金猪提现"
}) ], e.prototype, "btn_cashOutGold", void 0);
r([ d({
type: cc.Node,
displayName: "气泡红包1"
}) ], e.prototype, "btn_getRed1", void 0);
r([ d({
type: cc.Node,
displayName: "气泡红包2"
}) ], e.prototype, "btn_getRed2", void 0);
r([ d({
type: cc.Node,
displayName: "气泡红包3"
}) ], e.prototype, "btn_getRed3", void 0);
r([ d({
type: cc.Button,
displayName: "开始游戏"
}) ], e.prototype, "btn_start", void 0);
r([ d({
type: cc.Node,
displayName: "红包币图标"
}) ], e.prototype, "icon_hb", void 0);
r([ d({
type: cc.Node,
displayName: "金猪币图标"
}) ], e.prototype, "icon_zb", void 0);
r([ d({
type: cc.Node,
displayName: "顶部ui组"
}) ], e.prototype, "node_top_ui", void 0);
return r([ p ], e);
}(cc.Component);
n.default = h;
cc._RF.pop();
}, {
"../../mk/system/JsbSystem": "JsbSystem",
"./FunBtns": "FunBtns"
} ],
GetPropUI: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "0d1dfPo/XpIf6tmqB2x020S", "GetPropUI");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../data/Enum"), c = t("../GamePlay"), s = t("../mgr/DataMgr"), l = t("../mgr/EffectMgr"), u = t("../mgr/GameMgr"), p = cc._decorator, d = p.ccclass, h = p.property, f = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_rectBg = null;
e.node_closeBtn = null;
e.node_getBtn = null;
e.node_prop = null;
return e;
}
e.prototype.start = function() {
this.adapt();
this.initEvent();
};
e.prototype.onEnable = function() {
u.default.Inst.sendEvent(u.UI_NAME.GetPropUI, "进入获取道具界面");
this.init();
};
e.prototype.onDisable = function() {
c.default.Inst.curPropType = a.PROPTYPE.Null;
};
e.prototype.adapt = function() {
this.node_rectBg.setContentSize(cc.winSize.width, cc.winSize.height);
};
e.prototype.init = function() {
for (var t = 0; t < this.node_prop.childrenCount; t++) {
var e = this.node_prop.children[t];
(e.children[0] ? e.children[0].name : "") == c.default.Inst.curPropType ? e.active = !0 : e.active = !1;
}
};
e.prototype.initEvent = function() {
this.node_getBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
this.node_closeBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
};
e.prototype.onClick = function(t) {
mk.audio.playEffect("button");
switch (t.currentTarget) {
case this.node_getBtn:
this.onClickGet();
break;

case this.node_closeBtn:
this.onClickClose();
}
};
e.prototype.onClickClose = function() {
u.default.Inst.sendEvent(u.UI_NAME.GetPropUI, "点击关闭按钮");
mk.ui.closePanel("GetPropUI");
};
e.prototype.onClickGet = function() {
var t = this;
u.default.Inst.sendEvent(u.UI_NAME.GetPropUI, "点击" + c.default.Inst.curPropType + "按钮");
c.default.Inst.cancelShowInter();
mk.ad.watchAd(function(e) {
t.watchCallBack(e);
});
};
e.prototype.watchCallBack = function(t) {
void 0 === t && (t = !1);
if (t) {
this.scheduleOnce(function() {
mk.tip.pop("观看成功，获取奖励");
}, 0);
this.watchSuccess();
} else {
this.scheduleOnce(function() {
mk.tip.pop("观看失败，无法领取奖励哦");
}, 0);
this.watchFailed();
}
};
e.prototype.watchSuccess = function() {
u.default.Inst.sendEvent(u.UI_NAME.GetPropUI, "视频获取" + c.default.Inst.curPropType + "道具成功");
l.default.Inst.addTip("观看视频成功,获得道具");
s.default.Inst.updatePropNum(1, c.default.Inst.curPropType, 1);
};
e.prototype.watchFailed = function() {
u.default.Inst.sendEvent(u.UI_NAME.GetPropUI, "视频获取" + c.default.Inst.curPropType + "道具失败");
};
r([ h(cc.Node) ], e.prototype, "node_rectBg", void 0);
r([ h(cc.Node) ], e.prototype, "node_closeBtn", void 0);
r([ h(cc.Node) ], e.prototype, "node_getBtn", void 0);
r([ h(cc.Node) ], e.prototype, "node_prop", void 0);
return r([ d ], e);
}(cc.Component);
n.default = f;
cc._RF.pop();
}, {
"../GamePlay": "GamePlay",
"../data/Enum": "Enum",
"../mgr/DataMgr": "DataMgr",
"../mgr/EffectMgr": "EffectMgr",
"../mgr/GameMgr": "GameMgr"
} ],
GetScore: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "120e0v0LJFFvYtxAK0pYTrx", "GetScore");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../mgr/PoolMgr"), c = t("../../util/common/ArtNum"), s = cc._decorator, l = s.ccclass, u = (s.property, 
function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.start = function() {};
e.prototype.init = function(t, e) {
var n = this;
this.getComponent(c.default).init(e);
this.node.opacity = 255;
this.node.scaleX = this.node.scaleY = 2;
this.node.setPosition(t.x, t.y);
var o = this.node.y + 50;
cc.tween(this.node).to(.2, {
scale: 1
}, {
easing: "smooth"
}).to(.5, {
y: o,
opacity: 0
}, {
easing: "smooth"
}).call(function() {
a.default.Inst.recyclePoolPrefab(a.NODEPOOLPREFABTYPE.GetScore, n.node);
}).start();
};
return r([ l ], e);
}(cc.Component));
n.default = u;
cc._RF.pop();
}, {
"../../mgr/PoolMgr": "PoolMgr",
"../../util/common/ArtNum": "ArtNum"
} ],
GetTargetScoreTip: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "0bd9bSBwW1HpIUDEAb3E2/3", "GetTargetScoreTip");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = (c.property, 
function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.start = function() {};
e.prototype.onEnable = function() {
var t = this;
this.node.scaleX = this.node.scaleY = 0;
cc.tween(this.node).to(.5, {
scale: 1
}, {
easing: "backOut"
}).delay(.5).to(.1, {
scale: 1.2
}).to(.2, {
scale: 0
}).call(function() {
a.default.Inst.recyclePoolPrefab(a.NODEPOOLPREFABTYPE.GetTargetScoreTip, t.node);
}).start();
};
return r([ s ], e);
}(cc.Component));
n.default = l;
cc._RF.pop();
}, {
"../../mgr/PoolMgr": "PoolMgr"
} ],
GetUI: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "4d3c29ZYOpMsaN6w6SJrYaq", "GetUI");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_rectBg = null;
e.spr_icon = null;
e.label_name = null;
e.node_getBtn = null;
return e;
}
e.prototype.start = function() {
this.node_rectBg.setContentSize(cc.winSize.width, cc.winSize.height);
this.node_getBtn.on(cc.Node.EventType.TOUCH_END, this.onClickGetBtn, this);
};
e.prototype.init = function(t, e, n, o) {
var i = this;
void 0 === o && (o = 1);
mk.loader.load(t, cc.SpriteFrame).then(function(t) {
i.spr_icon.spriteFrame = t;
});
this.label_name.string = 1 == o ? " " + e + " x" + n : " " + e + " x" + o;
};
e.prototype.onClickGetBtn = function() {
mk.audio.playEffect("button");
mk.ui.closePanel("GetUI");
};
r([ s(cc.Node) ], e.prototype, "node_rectBg", void 0);
r([ s(cc.Sprite) ], e.prototype, "spr_icon", void 0);
r([ s(cc.Label) ], e.prototype, "label_name", void 0);
r([ s(cc.Node) ], e.prototype, "node_getBtn", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
GuideAuthUI: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "92fc2BBUkxIV7OFqykahuEp", "GuideAuthUI");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_rectBg = null;
e.node_bottom = null;
e.node_authBtn = null;
return e;
}
e.prototype.start = function() {
this.node_rectBg.setContentSize(cc.winSize.width, cc.winSize.height);
this.initEvent();
};
e.prototype.onEnable = function() {
this.node_bottom.y = .5 * -cc.winSize.height - .5 * this.node_bottom.height - 10;
cc.winSize.height, this.node_bottom.height;
};
e.prototype.initEvent = function() {
this.node_rectBg.on(cc.Node.EventType.TOUCH_END, this.onClickAuthBtn, this);
this.node_authBtn.on(cc.Node.EventType.TOUCH_END, this.onClickAuthBtn, this);
};
e.prototype.onClickBg = function() {
mk.ui.closePanel("GuideAuthUI");
};
e.prototype.onClickAuthBtn = function() {
mk.ui.closePanel("GuideAuthUI");
};
r([ s(cc.Node) ], e.prototype, "node_rectBg", void 0);
r([ s(cc.Node) ], e.prototype, "node_bottom", void 0);
r([ s(cc.Node) ], e.prototype, "node_authBtn", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
GuideData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e5757KUWwBMCLANLScrrZEc", "GuideData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.GuideVO = n.GuideData = void 0;
var o = function() {
function t() {
this.crtID = null;
}
t.prototype.init = function(t) {
this.data = new Map();
for (var e = [], n = 1, o = 0; o < t.length; o++) {
var i = {}, r = t[o], a = r.id.split("_");
i.id = parseInt(a[0]);
i.step = parseInt(a[1]);
i.trigger = r.trigger;
i.tr_num = r.tr_num;
i.tr_form = r.tr_form;
i.dialog = r.dialog;
i.display_rect = r.display_rect;
i.click_rect = r.click_rect;
i.finger = r.finger;
i.lag_next = r.lag_next;
if (n != i.id) {
this.data.set(n, e);
e = [];
n = i.id;
}
e.push(i);
}
this.data.set(n, e);
};
t.prototype.getGuidesByID = function(t) {
return this.data.get(t);
};
return t;
}();
n.GuideData = o;
n.GuideVO = function() {};
cc._RF.pop();
}, {} ],
GuideSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ccad7HVXppOw6s55udVONoH", "GuideSystem");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = t("../../game/data/GameData"), i = function() {
function t() {}
t.prototype.open = function(t) {
this.crtGuideID = gData.gameData.getProp(o.GameProp.guideID);
if (9999 != t) if (t >= this.crtGuideID && this.crtGuideID > 0) mk.console.log("当前引导已做过：" + t); else {
gData.guideData.crtID = t;
this.crtGuideID = t;
mk.ui.openPanel("module/guide/guide");
} else mk.console.log("新手引导已做完");
};
t.prototype.close = function() {
this.crtGuideID++;
null == gData.guideData.getGuidesByID(this.crtGuideID) && (this.crtGuideID = 9999);
gData.gameData.setProp(o.GameProp.guideID, this.crtGuideID);
};
return t;
}();
n.default = i;
cc._RF.pop();
}, {
"../../game/data/GameData": "GameData"
} ],
Guide: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "cc77atmGeBM4bPWFiQFl7H6", "Guide");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_display = null;
e.node_click = null;
e.node_bg = null;
e.node_finger = null;
e.node_head = null;
e.node_person = null;
e.rich_dialog = null;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {
if (null != gData.guideData.crtID) {
this.guides = gData.guideData.getGuidesByID(gData.guideData.crtID);
this.crtStep = -1;
this.nextStep();
} else this.node.destroy();
};
e.prototype.nextStep = function() {
this.crtStep++;
this.crtGuide = this.guides[this.crtStep];
this.updateGuide();
};
e.prototype.updateGuide = function() {
if (null == this.crtGuide) this.close(); else {
this.targetNode = null;
this.event_name = null;
if ("all" == this.crtGuide.click_rect) {
this.node_display.width = 0;
this.node_display.height = 0;
this.node_click.x = 0;
this.node_click.y = 0;
this.node_click.width = this.node.width;
this.node_click.height = this.node.height;
} else if (-1 != this.crtGuide.click_rect.indexOf("event")) {
this.event_name = "event_guide_" + this.crtGuide.id + "_" + this.crtStep;
var t = this.crtGuide.display_rect.split(":");
this.node_display.x = this.node_click.x = parseInt(t[0]);
this.node_display.y = this.node_click.y = parseInt(t[1]);
this.node_display.width = this.node_click.width = parseInt(t[2]);
this.node_display.height = this.node_click.height = parseInt(t[3]);
} else {
this.targetNode = cc.find("Canvas/" + this.crtGuide.click_rect);
this.node_display.width = this.targetNode.width;
this.node_display.height = this.targetNode.height;
var e = mk.game.getWorldPos(this.targetNode);
this.node_display.setPosition(e);
}
if ("" == this.crtGuide.finger) this.node_finger.node.active = !1; else {
this.node_finger.node.active = !0;
t = this.crtGuide.finger.split(":");
this.node_finger.node.x = this.node_display.x + parseInt(t[0]);
this.node_finger.node.y = this.node_display.y + parseInt(t[1]);
}
if (1 == this.crtGuide.tr_form) {
this.node_head.node.active = !0;
this.node_person.node.active = !1;
} else {
this.node_head.node.active = !1;
this.node_person.node.active = !0;
}
this.node_bg.x = -this.node_display.x;
this.node_bg.y = -this.node_display.y;
this.rich_dialog.string = "<color=#000000>" + this.crtGuide.dialog + "</color>";
}
};
e.prototype.clickNodeClick = function() {
return a(this, void 0, void 0, function() {
return c(this, function(t) {
switch (t.label) {
case 0:
console.log("clickNodeClick");
this.targetNode && this.targetNode.getComponent(cc.Button).clickEvents[0].emit([]);
this.event_name && mk.event.emit(this.event_name);
return this.crtGuide.lag_next > 0 ? [ 4, mk.time.WaitForSeconds(this.crtGuide.lag_next) ] : [ 3, 2 ];

case 1:
t.sent();
t.label = 2;

case 2:
this.nextStep();
return [ 2 ];
}
});
});
};
e.prototype.close = function() {
mk.guide.close();
this.node.destroy();
};
r([ u({
type: cc.Node,
displayName: "显示区域"
}) ], e.prototype, "node_display", void 0);
r([ u({
type: cc.Node,
displayName: "点击区域"
}) ], e.prototype, "node_click", void 0);
r([ u({
type: cc.Node,
displayName: "背景"
}) ], e.prototype, "node_bg", void 0);
r([ u({
type: cc.Sprite,
displayName: "手指"
}) ], e.prototype, "node_finger", void 0);
r([ u({
type: cc.Sprite,
displayName: "头像"
}) ], e.prototype, "node_head", void 0);
r([ u({
type: cc.Sprite,
displayName: "形象"
}) ], e.prototype, "node_person", void 0);
r([ u({
type: cc.RichText,
displayName: "对话内容"
}) ], e.prototype, "rich_dialog", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
HelpData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "aaac0t3/iZIuY4huYMhWUJL", "HelpData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.HelpData = void 0;
var o = function() {
function t() {
this.init_desc_name = !1;
this._des = "";
}
Object.defineProperty(t.prototype, "des", {
get: function() {
return this._des;
},
set: function(t) {
this._des = t;
this.init_desc_name = !0;
},
enumerable: !1,
configurable: !0
});
return t;
}();
n.HelpData = o;
cc._RF.pop();
}, {} ],
Help: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "7626bHemEpG267E801XmW+W", "Help");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.lbl_desc = null;
return e;
}
e.prototype.start = function() {
mk.ad.showNativeAd(4);
};
e.prototype.update = function() {
gData.help.init_desc_name && (this.lbl_desc.string = gData.help.des);
};
e.prototype.lateUpdate = function() {
gData.help.init_desc_name = !1;
};
e.prototype.onClickClose = function() {
mk.ad.destroyNativeAd();
};
r([ s({
type: cc.Label,
displayName: "文字说明"
}) ], e.prototype, "lbl_desc", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
HttpData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f4687XIHE1PXpP56AhrXtMn", "HttpData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ServerUrl = n.HttpData = void 0;
var o, i = function() {
function t() {
this.serverType = 0;
}
t.prototype.getServerUrl = function() {
switch (this.serverType) {
case 0:
return o.test;

case 1:
return o.formal;

case 2:
return o.liyang;

case 3:
return o.hanguo;
}
return o.formal;
};
return t;
}();
n.HttpData = i;
(function(t) {
t.test = "https://cutfruitage-test.duiweize.com/";
t.formal = "";
t.liyang = "http://172.16.15.231:9162/";
t.hanguo = "http://172.16.15.167:9162/";
})(o = n.ServerUrl || (n.ServerUrl = {}));
cc._RF.pop();
}, {} ],
HttpSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "fe015tjuNVJ1rKouaAn8VvC", "HttpSystem");
var o = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, i = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var r = function() {
function t() {}
t.prototype.sendData = function(t, e, n) {
void 0 === n && (n = !0);
return o(this, void 0, void 0, function() {
var o, r, a;
return i(this, function(i) {
switch (i.label) {
case 0:
e.timestamp = Math.floor(new Date().getTime() / 1e3);
e.appVersion = gData.appData.appVersion;
e.tfChannel = gData.appData.tfChannel;
e.versioncfg = gData.appData.version;
o = mk.encrypt.encrypt(JSON.stringify(e), gData.loginData.sessionKey, gData.appData.appId);
r = {
uin: gData.loginData.uin,
encrypt: o
};
return [ 4, this.sendRequest(t, "POST", JSON.stringify(r), !1, n) ];

case 1:
a = i.sent();
return [ 2, this.checkData(a) ];
}
});
});
};
t.prototype.sendRequest = function(t, e, n, o, i) {
void 0 === e && (e = "POST");
void 0 === n && (n = null);
void 0 === o && (o = !0);
void 0 === i && (i = !0);
t = gData.httpData.getServerUrl() + t;
return new Promise(function(r, a) {
var c = 0, s = new XMLHttpRequest(), l = function() {
s.open(e, t, i);
s.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
o && null != n && (n = mk.encrypt.rsaEncrypt(n));
s.send(n);
};
s.onreadystatechange = function() {
if (4 === s.readyState) if (200 === s.status) {
var e = s.responseText, n = JSON.parse(e);
mk.console.logSingle("response:" + t, n);
r(n);
} else {
mk.console.error("httpRequest.status", s.status);
a({
errcode: 1,
errmsg: "status..." + s.status
});
}
};
s.ontimeout = function() {
if (++c >= 3) {
mk.console.error("http.ontimeout", t);
a({
errcode: 1,
errmsg: "ontimeout"
});
} else l();
};
s.onerror = function() {
mk.console.error("http.onerror", t);
a({
errcode: 1,
errmsg: "onerror"
});
};
l();
});
};
t.prototype.checkData = function(t, e) {
void 0 === e && (e = !1);
var n = null;
if (e) n = t.data; else if (t.encrypt) {
n = mk.encrypt.decrypt(t.encrypt, gData.loginData.sessionKey, gData.appData.appId);
n = JSON.parse(n);
} else t.data && (n = t.data);
t.data = n;
return t;
};
return t;
}();
n.default = r;
cc._RF.pop();
}, {} ],
IADSDKMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "9f951Bz1DdFSbFZXOe4weSR", "IADSDKMgr");
Object.defineProperty(n, "__esModule", {
value: !0
});
cc._RF.pop();
}, {} ],
JsbSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "144031h5xRBsa+umFGEHyuG", "JsbSystem");
var o = this && this.__spreadArrays || function() {
for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
var o = Array(t), i = 0;
for (e = 0; e < n; e++) for (var r = arguments[e], a = 0, c = r.length; a < c; a++, 
i++) o[i] = r[a];
return o;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = function() {
function t() {}
t.isFileExist = function(t) {
if (cc.sys.os == cc.sys.OS_WINDOWS) return !0;
var e = this.getWritablePath() + t + ".apk";
return jsb.fileUtils.isFileExist(e);
};
t.getWritablePath = function() {
return jsb.fileUtils.getWritablePath();
};
t.callStaticMethod = function(t, e, n) {
for (var i, r = [], a = 3; a < arguments.length; a++) r[a - 3] = arguments[a];
(i = jsb.reflection).callStaticMethod.apply(i, o([ t, e, n ], r));
};
t.backTest = function() {};
t.updateDeviceInfo = function(t) {
mk.console.log("updateDeviceInfo" + cc.sys.os, t);
cc.sys.os == cc.sys.OS_ANDROID ? gData.appData.updateDeviceInfo(t) : (cc.sys.os, 
cc.sys.OS_IOS);
};
t.getDeviceInfo = function() {
mk.console.log("getDeviceInfo", cc.sys.os);
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "getDeviceInfo", "()V") : cc.sys.os == cc.sys.OS_IOS ? this.callStaticMethod(this._JSB_IOS_PATH, "getDeviceInfo", "") : gData.appData.getDeviceInfoCompelete = !0;
};
t.getPackageName = function() {
var t = "";
cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getPackageName", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("CsjAdReward", "getPackageName", ""));
return t;
};
t.getWxAppId = function() {
var t = "";
cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getWxAppId", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("CsjAdReward", "getWxAppId", ""));
return t;
};
t.getAdvertisingChannel = function() {
var t = "";
cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getAdvertisingChannel", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("CsjAdReward", "AdvertisingChannel", ""));
return t;
};
t.setClipboard = function(t) {
if (cc.sys.os == cc.sys.OS_ANDROID) this.callStaticMethod(this._JSB_ANDROID_PATH, "setClipboard", "(Ljava/lang/String;)V", t); else if (cc.sys.os == cc.sys.OS_IOS) ; else if (cc.sys.isBrowser) {
var e = t, n = document.createElement("textarea");
n.value = e;
n.setAttribute("readonly", "");
n.style.contain = "strict";
n.style.position = "absolute";
n.style.left = "-9999px";
n.style.fontSize = "12pt";
var o = getSelection(), i = !1;
o.rangeCount > 0 && (i = o.getRangeAt(0));
document.body.appendChild(n);
n.select();
n.selectionStart = 0;
n.selectionEnd = e.length;
var r = !1;
try {
r = document.execCommand("copy");
} catch (t) {}
document.body.removeChild(n);
if (i) {
o.removeAllRanges();
o.addRange(i);
}
return r;
}
};
t.requestPermission = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "requestPermission", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "requestPermission", "");
};
t.getAppVersion = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "getAppVersion", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "getAppVersion", "");
};
t.setAppVersion = function() {
cc.sys.os == cc.sys.OS_ANDROID || (cc.sys.os, cc.sys.OS_IOS);
};
t.installApk = function(t) {
var e = this.getWritablePath() + t;
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "installApk", "(Ljava/lang/String;)V", e) : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("GameConfig", "installApk:", "");
};
t.ifCanStartGame = function(t, e) {
var n = !1;
cc.sys.os == cc.sys.OS_ANDROID ? n = this.callStaticMethod(this._JSB_ANDROID_PATH, "isStartGame", "(Ljava/lang/String;Z)Z", t, e) : cc.sys.os == cc.sys.OS_IOS && (n = this.callStaticMethod("GameConfig", "installApk:", ""));
return n;
};
t.setTAEventRegister = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "setTAEventRegister", "()V") : (cc.sys.os, 
cc.sys.OS_IOS);
};
t.sendEvent = function(t, e) {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "sendEvent", "(Ljava/lang/String;Ljava/lang/String;)V", t, e) : (cc.sys.os, 
cc.sys.OS_IOS);
};
t.WxAuth = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "WxAuth", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
};
t.onGetWxAccessCode = function(t) {
gData.wechatData.code = t;
console.log("=== gData.wechatData.code", gData.wechatData.code);
gData.loginData.wxLogin();
};
t.OpenMiniGame = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "OpenMiniGame", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
};
t.ShareToMiniGame = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "ShareToMiniGame", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
};
t.sharePic = function() {
cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod(this._JSB_ANDROID_PATH, "sharePic", "()V") : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("GameConfig", "sharePic:", ""));
};
t.downFile2Local = function(t, e, n, o, i) {
var r = jsb.fileUtils.getWritablePath() + e;
if (jsb) {
var a = new jsb.Downloader();
a.setOnFileTaskSuccess(function() {
console.log("DownLoadM setOnFileTaskSuccess", "");
if (n) {
console.log("DownLoadM result... ", jsb.fileUtils.isFileExist(r));
console.log("DownLoadM setOnFileTaskSuccess fullPath...", r);
n(r);
}
});
a.setOnTaskError(function(t, e, n, i) {
console.log("DownLoadM setOnTaskError", e + " ; " + n + " ; " + i);
o && o(r);
});
a.setOnTaskProgress(function(t, e, n, o) {
console.log("DownLoadM", e + " ; " + n + " ; " + o);
i && i(e, n, o);
});
a.createDownloadFileTask(t, r);
return a;
}
};
t._JSB_ANDROID_PATH = "org/cocos2dx/javascript/thirdSdk/ThirdSdkMgr";
t._JSB_IOS_PATH = "ThirdSdkMgr";
return t;
}();
n.default = i;
window.JsbMgr = i;
cc._RF.pop();
}, {} ],
LoadResUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "027abfHullEcrlQpxOvHVc5", "LoadResUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {}
t.prototype.preload = function(t, e) {
return new Promise(function(n, o) {
cc.resources.preload(t, e, function() {}, function(t, e) {
void 0 === t && (t = null);
t ? o(t) : n(e);
});
});
};
t.prototype.load = function(t, e) {
return new Promise(function(n, o) {
cc.resources.load(t, e, function() {}, function(t, e) {
void 0 === t && (t = null);
t ? o(t) : n(e);
});
});
};
t.prototype.preloadDir = function(t, e) {
return new Promise(function(n, o) {
cc.resources.preloadDir(t, e, function() {}, function(t, e) {
void 0 === t && (t = null);
t ? o(t) : n(e);
});
});
};
t.prototype.loadDir = function(t, e) {
return new Promise(function(n, o) {
cc.resources.loadDir(t, e, function() {}, function(t, e) {
void 0 === t && (t = null);
t ? o(t) : n(e);
});
});
};
t.prototype.loadRemote = function(t, e) {
return new Promise(function(n, o) {
cc.assetManager.loadRemote(t, e, function(t, e) {
void 0 === t && (t = null);
t ? o(t) : n(e);
});
});
};
t.prototype.preloadScene = function(t, e) {
return new Promise(function(n, o) {
cc.resources.preloadScene(t, e, function() {}, function(t) {
void 0 === t && (t = null);
t ? o(t) : n();
});
});
};
t.prototype.loadScene = function(t, e) {
return new Promise(function(n, o) {
cc.resources.loadScene(t, e, function() {}, function(t, e) {
void 0 === t && (t = null);
t ? o(t) : n(e);
});
});
};
t._logTag = "[LoadResUtil]";
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
LoadingBar: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "1e65dZ40OtGzJi5szN4XMZR", "LoadingBar");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.bar = null;
return e;
}
e.prototype.onLoad = function() {
this.len = this.bar.node.width;
this.bar.node.x = -this.len;
};
e.prototype.setProgress = function(t) {
this.bar.node.x = -this.len + t / 100 * this.len;
};
r([ s({
type: cc.Sprite,
displayName: "进度条"
}) ], e.prototype, "bar", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
LogUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a2461HsfJZEfZb/Xlwzf0Nx", "LogUtil");
var o = this && this.__spreadArrays || function() {
for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
var o = Array(t), i = 0;
for (e = 0; e < n; e++) for (var r = arguments[e], a = 0, c = r.length; a < c; a++, 
i++) o[i] = r[a];
return o;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LogTagColor = void 0;
var i, r = function() {
function t() {
this.ifShowLog = !0;
this._tagChar = "...";
this._frontChar = "    ";
this._keyValueChar = " = ";
}
t.prototype.log = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
if (this.ifShowLog) {
var i = t + this._tagChar;
console.log.apply(console, o([ i ], e));
}
};
t.prototype.logWithColor = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
if (this.ifShowLog) {
var r = t + this._tagChar;
console.log.apply(console, o([ "%c " + r, "color: " + i.skyblue ], e));
}
};
t.prototype.warn = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
if (this.ifShowLog) {
var r = t + this._tagChar;
console.warn.apply(console, o([ "%c " + r, "color: " + i.orange ], e));
}
};
t.prototype.error = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
if (this.ifShowLog) {
var r = t + this._tagChar;
console.warn.apply(console, o([ "%c " + r, "color: " + i.red ], e));
}
};
t.prototype.logSingle = function(t, e, n) {
void 0 === n && (n = 0);
if (cc.sys.os == cc.sys.OS_ANDROID) {
if (this.ifShowLog && null != e && null != e) if ("number" == typeof e || "string" == typeof e || "boolean" == typeof e) this.log("" + this.getFrontStr(n) + t, e); else for (var o = Object.keys(e), i = 0, r = o; i < r.length; i++) {
var a = r[i];
if (e.hasOwnProperty(a)) {
var c = o.indexOf(a);
if ("object" == typeof e[a]) {
this.log("" + this.getFrontStr(n), a, ": ");
this.logSingle(t, e[a], n + 1);
} else n || 0 !== c ? this.log("" + this.getFrontStr(n), a, this._keyValueChar, e[a]) : this.log("" + this.getFrontStr(n) + t + "\n", a, this._keyValueChar, e[a]);
}
}
} else this.log(t, e);
};
t.prototype.getMessage = function() {
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
for (var n = "", o = 0; o < t.length; o++) {
for (var i = t[o], r = "", a = 0; a < i.length; a++) {
var c = i[a];
r += c;
}
n += r;
}
return n;
};
t.prototype.getFrontStr = function(t) {
var e = "";
if (t > 0) {
for (var n = 0; n < t; n++) e += this._frontChar;
return e;
}
return e;
};
return t;
}();
n.default = r;
(function(t) {
t.red = "red;font-weight:bold";
t.white = "white;font-weight:bold";
t.yellow = "yellow;font-weight:bold";
t.green = "green;font-weight:bold";
t.bule = "blue;font-weight:bold";
t.skyblue = "#3DB2EF;font-weight:bold";
t.orange = "orange;font-weight:bold";
t.black = "black;font-weight:bold";
})(i = n.LogTagColor || (n.LogTagColor = {}));
cc._RF.pop();
}, {} ],
LoginData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "7d48aywt1tPXI2eRhRzXwYP", "LoginData");
var o = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, i = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LoginData = void 0;
var r = t("./StorageData"), a = function() {
function t() {
this.loadResCompelete = !1;
this.isLogin = !1;
this.sessionKey = "";
this.randomKey = "abcdefghijklopqrstuvwxyzabcdefgh";
this.uin = "";
this.tempUin = "";
this.loginTicket = "";
}
t.prototype.loadLocalRes = function() {
return o(this, void 0, void 0, function() {
var t;
return i(this, function(e) {
switch (e.label) {
case 0:
return [ 4, mk.loader.load("data/rule_data", cc.JsonAsset) ];

case 1:
if ((t = e.sent()) && t.json) {
this.rule_data = t.json.server;
this.privacy_data = t.json.privacy;
}
return [ 4, mk.loader.load("data/guide_data", cc.JsonAsset) ];

case 2:
if ((t = e.sent()) && t.json) {
gData.guideData.init(t.json);
this.loadResCompelete = !0;
}
return [ 2 ];
}
});
});
};
t.prototype.init = function() {
var t = mk.storage.getStorage(r.StorageKey.uin);
this.uin = t || "";
var e = mk.storage.getStorage(r.StorageKey.sessionKey);
this.sessionKey = e || "";
};
t.prototype.login = function() {
return o(this, void 0, void 0, function() {
return i(this, function() {
if ("" != this.sessionKey && "" != this.uin) {
console.log("=== login 有登录记录直接跳转到登录流程最后一步");
this.getAccountInfo();
return [ 2 ];
}
console.log("=== login 无登录记录");
this.connect();
return [ 2 ];
});
});
};
t.prototype.connect = function() {
return o(this, void 0, void 0, function() {
var t, e;
return i(this, function(n) {
switch (n.label) {
case 0:
this.randomKey = mk.encrypt.randomString();
t = {
mac: gData.appData.mac,
psk: this.randomKey,
appId: gData.appData.appId
};
return [ 4, mk.http.sendRequest("connectTest", "POST", JSON.stringify(t)) ];

case 1:
if (0 != (e = n.sent()).errcode) return [ 2 ];
t = mk.encrypt.decrypt(e.encrypt, this.randomKey, gData.appData.appId);
console.log("[FC]connectTest decryptData", t);
this.tempUin = JSON.parse(t).tmp_uin;
mk.storage.setStorage(r.StorageKey.uin, this.tempUin);
this.wxLogin();
return [ 2 ];
}
});
});
};
t.prototype.wxLogin = function() {
return o(this, void 0, void 0, function() {
var t, e, n;
return i(this, function(o) {
switch (o.label) {
case 0:
if (null != gData.wechatData.code) {
e = mk.encrypt.encrypt(JSON.stringify({
code: gData.wechatData.code
}), this.sessionKey, gData.appData.appId);
t = {
uin: this.uin,
encrypt: e
};
} else {
e = mk.encrypt.encrypt(JSON.stringify({
code: ""
}), this.randomKey, gData.appData.appId);
t = {
uin: this.tempUin,
encrypt: e
};
}
return [ 4, mk.http.sendRequest("wxlogin", "POST", JSON.stringify(t), !1, !1) ];

case 1:
if (0 != (n = o.sent()).errcode) {
-10003 != n.errcode && -20003 != n.errcode || this.reload();
return [ 2 ];
}
t = null != gData.wechatData.code ? mk.encrypt.decrypt(n.encrypt, this.sessionKey, gData.appData.appId) : mk.encrypt.decrypt(n.encrypt, this.randomKey, gData.appData.appId);
t = JSON.parse(t);
this.loginTicket = t.login_ticket;
console.log("[FC]wxLoginTest decrypt", t);
mk.storage.setStorage(r.StorageKey.loginTicket, this.loginTicket);
if (null == mk.storage.getStorage(r.StorageKey.isFirstIn)) {
this.isFirstIn = !0;
mk.storage.setStorage(r.StorageKey.isFirstIn, 1);
}
if (this.uin != t.uin) {
this.uin = t.uin;
this.isNew = !1;
} else this.isNew = !0;
mk.storage.setStorage(r.StorageKey.uin, this.uin);
this.checkLogin();
return [ 2 ];
}
});
});
};
t.prototype.checkLogin = function() {
return o(this, void 0, void 0, function() {
var t, e, n, o, a;
return i(this, function(i) {
switch (i.label) {
case 0:
t = "";
t = null != gData.wechatData.code ? this.sessionKey : mk.encrypt.randomString();
e = {
tmp_key: t,
uin: this.uin,
login_ticket: this.loginTicket,
appId: gData.appData.appId
};
return [ 4, mk.http.sendRequest("checklogin", "POST", JSON.stringify(e)) ];

case 1:
if (0 != (n = i.sent()).errcode) return [ 2 ];
o = null != gData.wechatData.code ? mk.encrypt.decrypt(n.encrypt, this.sessionKey, gData.appData.appId) : mk.encrypt.decrypt(n.encrypt, t, gData.appData.appId);
a = JSON.parse(o);
this.sessionKey = a.session_key;
console.log("[FC]checkLogin decrypt", a);
mk.storage.setStorage(r.StorageKey.sessionKey, this.sessionKey);
this.getUserInfo();
return [ 2 ];
}
});
});
};
t.prototype.getUserInfo = function() {
return o(this, void 0, void 0, function() {
return i(this, function() {
this.getAccountInfo();
return [ 2 ];
});
});
};
t.prototype.getAccountInfo = function() {
return o(this, void 0, void 0, function() {
var t, e, n;
return i(this, function(o) {
switch (o.label) {
case 0:
t = {
uin: this.uin,
login_ticket: this.loginTicket
};
e = {
uin: this.uin,
encrypt: mk.encrypt.encrypt(JSON.stringify(t), this.sessionKey, gData.appData.appId)
};
return [ 4, mk.http.sendRequest("user", "POST", JSON.stringify(e), !1, !1) ];

case 1:
if (0 != (n = o.sent()).errcode) {
-10003 != n.errcode && -20003 != n.errcode || this.reload();
return [ 2 ];
}
n = mk.http.checkData(n, !0);
e = n.data;
mk.console.logSingle("[FC] getAccountInfo decrypt", e);
this.isAuth = e.is_auth;
if (this.isAuth) {
gData.wechatData.nickName = e.nickname;
gData.wechatData.avatar = e.headimgurl;
gData.wechatData.unionid = this.uin;
gData.gameData.init_head = !0;
mk.storage.setStorage(r.StorageKey.isAuth, 1);
mk.storage.setStorage(r.StorageKey.nickname, gData.wechatData.nickName, !1);
mk.storage.setStorage(r.StorageKey.avatar, gData.wechatData.avatar, !1);
}
gData.gameData.init();
return [ 2 ];
}
});
});
};
t.prototype.reload = function() {
var t = cc.sys.localStorage.getItem("HotUpdateSearchPaths");
gData.storageData.clear();
cc.sys.localStorage.setItem("HotUpdateSearchPaths", t);
cc.audioEngine.stopAll();
cc.game.restart();
};
return t;
}();
n.LoginData = a;
cc._RF.pop();
}, {
"./StorageData": "StorageData"
} ],
Login: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6dba2tWf41JpYkegatfLoGC", "Login");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../../mk/system/JsbSystem"), c = t("../../component/LoadingBar"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.bar = null;
e.lbl_progress = null;
e.lbl_server = null;
e.lbl_privacy = null;
e.process = 0;
return e;
}
e.prototype.onLoad = function() {
this.setProgress(0);
};
e.prototype.start = function() {
a.default.getWxAppId() && (gData.appData.appId = a.default.getWxAppId());
a.default.getDeviceInfo();
};
e.prototype.setProgress = function(t) {
this.bar.setProgress(t);
this.lbl_progress.string = "加载不消耗流量 " + t + "%";
};
e.prototype.update = function() {
if (this.process < 100) {
this.process += 2;
this.setProgress(this.process);
}
if (gData.loginData.loadResCompelete) {
if (gData.appData.getDeviceInfoCompelete) {
this.login();
gData.appData.getDeviceInfoCompelete = !1;
} else if (gData.gameData.dataFinish) {
gData.gameData.isNewPlayer() ? mk.ui.openPanel("module/agreementTip/agreementTip") : mk.ui.openPanel("game/prefab/game");
gData.gameData.dataFinish = !1;
}
} else gData.loginData.loadLocalRes();
};
e.prototype.login = function() {
mk.pool.init(gData.gameData.pools);
mk.ad.init();
gData.appData.init();
gData.adData.init();
gData.loginData.init();
console.log("[FC] gData.appData.appId", gData.appData.appId);
gData.loginData.login();
};
r([ u(c.default) ], e.prototype, "bar", void 0);
r([ u({
displayName: "加载文字",
type: cc.Label
}) ], e.prototype, "lbl_progress", void 0);
r([ u({
displayName: "服务协议",
type: cc.Label
}) ], e.prototype, "lbl_server", void 0);
r([ u({
displayName: "隐私协议",
type: cc.Label
}) ], e.prototype, "lbl_privacy", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {
"../../../mk/system/JsbSystem": "JsbSystem",
"../../component/LoadingBar": "LoadingBar"
} ],
MKSwitch: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a0fd9gYXhZMJ46ArqYj2wBy", "MKSwitch");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.ifShowAd = !1;
return e;
}
r([ s({
displayName: "是否显示广告",
tooltip: "",
serializable: !0
}) ], e.prototype, "ifShowAd", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
MKSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f0038hKHC9Nf5+ipaUV9rc5", "MKSystem");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = t("../sdk/BuglySDK"), i = t("../utils/FileUtil"), r = t("../utils/TimeUtil"), a = t("./DataSystem"), c = t("./HttpSystem"), s = t("../utils/LoadResUtil"), l = t("../utils/LogUtil"), u = t("../utils/EncryptUtil"), p = t("../utils/GameUtil"), d = t("../utils/StorageUtil"), h = t("./TimerSystem"), f = t("./EventSystem"), y = t("../utils/MathUtil"), _ = t("./AdSystem"), g = t("./JsbSystem"), m = t("../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr"), v = t("./AudioSystem"), b = t("./PoolSystem"), S = t("../utils/TweenUtil"), A = t("./GuideSystem"), w = function() {
function t() {}
Object.defineProperty(t.prototype, "time", {
get: function() {
return this._time || (this._time = new r.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "file", {
get: function() {
return this._file || (this._file = new i.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "encrypt", {
get: function() {
return this._encrypt || (this._encrypt = new u.EncryptUtil());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "console", {
get: function() {
return this._console || (this._console = new l.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "game", {
get: function() {
return this._game || (this._game = new p.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "loader", {
get: function() {
return this._loader || (this._loader = new s.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "storage", {
get: function() {
return this._storage || (this._storage = new d.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "math", {
get: function() {
return this._math || (this._math = new y.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "tween", {
get: function() {
return this._tween || (this._tween = new S.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "bugly", {
get: function() {
return this._bugly || (this._bugly = new o.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "data", {
get: function() {
return this._data || (this._data = new a.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "ad", {
get: function() {
return this._ad || (this._ad = new _.default(m.default.getInstance()));
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "jsb", {
get: function() {
return this._jsb || (this._jsb = new g.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "http", {
get: function() {
return this._http || (this._http = new c.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "audio", {
get: function() {
return this._audio || (this._audio = new v.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "timer", {
get: function() {
return this._timer || (this._timer = new h.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "event", {
get: function() {
return this._event || (this._event = new f.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "pool", {
get: function() {
return this._pool || (this._pool = new b.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "guide", {
get: function() {
return this._guide || (this._guide = new A.default());
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "ui", {
get: function() {
return this._ui;
},
set: function(t) {
this._ui = t;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "tip", {
get: function() {
return this._tip;
},
set: function(t) {
this._tip = t;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "fly", {
get: function() {
return this._fly;
},
set: function(t) {
this._fly = t;
},
enumerable: !1,
configurable: !0
});
return t;
}();
window.mk = new w();
cc._RF.pop();
}, {
"../sdk/BuglySDK": "BuglySDK",
"../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr": "ATSDKMgr",
"../utils/EncryptUtil": "EncryptUtil",
"../utils/FileUtil": "FileUtil",
"../utils/GameUtil": "GameUtil",
"../utils/LoadResUtil": "LoadResUtil",
"../utils/LogUtil": "LogUtil",
"../utils/MathUtil": "MathUtil",
"../utils/StorageUtil": "StorageUtil",
"../utils/TimeUtil": "TimeUtil",
"../utils/TweenUtil": "TweenUtil",
"./AdSystem": "AdSystem",
"./AudioSystem": "AudioSystem",
"./DataSystem": "DataSystem",
"./EventSystem": "EventSystem",
"./GuideSystem": "GuideSystem",
"./HttpSystem": "HttpSystem",
"./JsbSystem": "JsbSystem",
"./PoolSystem": "PoolSystem",
"./TimerSystem": "TimerSystem"
} ],
Main: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ca47c5VYotGv4F867baLZGr", "Main");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.mainfestUrl = null;
return e;
}
e.prototype.start = function() {
mk.ui.openPanel("module/login/login");
};
r([ s({
type: cc.Asset
}) ], e.prototype, "mainfestUrl", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
MathUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "2e942sG6JJJpaWgvlGJiuOO", "MathUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {
this.numUnit = {
4: "万",
8: "亿",
12: "兆",
16: "万兆",
20: "亿兆",
24: "兆兆",
28: "万兆兆",
32: "亿兆兆",
36: "兆兆兆"
};
}
t.prototype.dis = function(t, e, n, o) {
return Math.sqrt(Math.pow(t - n, 2) + Math.pow(e - o, 2));
};
t.prototype.random = function(t, e, n) {
void 0 === n && (n = !0);
return n ? Math.floor(Math.random() * (e - t + 1) + t) : Math.random() * (e - t) + t;
};
t.prototype.randomByWeight = function(t, e, n) {
void 0 === e && (e = 100);
void 0 === n && (n = !0);
if (100 != e) {
e = 0;
for (var o = 0; o < t.length; o++) e += t[o];
}
var i = Math.random() * e, r = t.concat(i), a = (r = r.sort(function(t, e) {
return n ? t - e : e - t;
})).indexOf(i);
return Math.min(a, t.length - 1);
};
t.prototype.addition = function(t, e) {
for (var n = "", o = 0, i = t.split(".")[0].split(""), r = e.split(".")[0].split(""); i.length || r.length || o; ) {
n = (o += ~~i.pop() + ~~r.pop()) % 10 + n;
o = o > 9;
}
return n.replace(/^0+/, "");
};
t.prototype.subtraction = function(t, e) {
t = t.split(".")[0].split("");
e = e.split(".")[0].split("");
var n = t.length > e.length;
if (t.length == e.length) for (var o = 0, i = t.length; o < i; o++) if (t[o] != e[o]) {
n = t[o] > e[o];
break;
}
n || (t = [ e, e = t ][0]);
for (var r = ""; t.length; ) {
var a = parseInt(t.pop()) - parseInt(e.pop() || 0);
if (a >= 0) r = a + r; else {
r = a + 10 + r;
t[t.length - 1]--;
}
}
"-" == (r = (n ? "" : "-") + r.replace(/^0*/g, "")) && (r = "0");
return r;
};
t.prototype.contrastNumber = function(t, e) {
t = t.split(".")[0].split("");
e = e.split(".")[0].split("");
var n = t.length > e.length;
if (t.length == e.length) for (var o = 0, i = t.length; o < i; o++) if (t[o] != e[o]) {
n = t[o] > e[o];
break;
}
n || (t = [ e, e = t ][0]);
for (var r = ""; t.length; ) {
var a = parseInt(t.pop()) - parseInt(e.pop() || 0);
if (a >= 0) r = a + r; else {
r = a + 10 + r;
t[t.length - 1]--;
}
}
return t === e || Boolean(n);
};
t.prototype.accMuls = function(t, e) {
var n = t.split("").reverse(), o = e.split("").reverse(), i = n.length, r = o.length, a = Array(i + r + 1).join("0").split("");
n.map(function(t, e) {
o.map(function(n, o) {
a[e + o] = +a[e + o] + t * n;
});
});
a.map(function(t, e) {
if (t >= 10) {
a[e + 1] = ~~a[e + 1] + ~~(a[e] / 10);
a[e] %= 10;
}
});
return a.reverse().join("").replace(/^0+/, "");
};
t.prototype.accMul = function(t, e) {
var n = 0, o = t.toString(), i = e.toString();
try {
n += o.split(".")[1].length;
} catch (t) {}
try {
n += i.split(".")[1].length;
} catch (t) {}
var r = this.accMuls(o.replace(".", ""), i.replace(".", ""));
return this.accDiv(r, Math.pow(10, n).toString());
};
t.prototype.toNonExponential = function(t) {
return t.toLocaleString().replace(/[,]/g, "");
};
t.prototype.accDiv = function(t, e) {
var n, o, i = 0, r = 0, a = 0;
try {
i = t.toString().split(".")[1].length;
} catch (t) {}
try {
r = e.toString().split(".")[1].length;
} catch (t) {}
n = Number(t.toString().replace(".", ""));
if (0 == (o = Number(e.toString().replace(".", "")))) return "0";
var c = String(n / o);
try {
a = c.toString().split(".")[1].length;
} catch (t) {}
var s = r - i - a;
if (s < 0) {
c = c.replace(".", "");
for (;c.length <= Math.abs(s); ) c = "0" + c;
var l = c.substring(0, c.length + s), u = c.substring(c.length + s, c.length);
c = l + "." + u;
return this.toNonExponential(Number(c));
}
if (s > 0) {
c = c.replace(".", "");
for (;c.length <= Math.abs(s); ) c += "0";
return this.toNonExponential(Number(c));
}
return this.toNonExponential(Number(c.replace(".", "")));
};
t.prototype.format = function(t, e) {
void 0 === e && (e = !0);
var n, o = t.split(".")[0];
for (var i in this.numUnit) {
var r = Number(i);
if (o.length - 1 >= r) if (e) {
var a = o.slice(o.length - r, o.length - r + 1);
n = Number(a) >= 1 ? o.slice(0, o.length - r) + "." + a + this.numUnit[r] : o.slice(0, o.length - r) + this.numUnit[r];
} else n = o.slice(0, o.length - r) + this.numUnit[r];
}
return n || o;
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
MoreGameBanner: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "00a05wQTulPn6XITPp4d5KX", "MoreGameBanner");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = t("./MoreGamePicItem"), l = t("./PointItem"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.dragArea = null;
e.item1 = null;
e.item2 = null;
e.pointPrefab = null;
e.pointLy = null;
e.btnLeft = null;
e.btnRight = null;
e.startX = 0;
e.coolTime = !1;
e.curSelDownItem = null;
e.preDownItem = null;
e.curIndex = 0;
e.bannerDatas = null;
e.curSelPoint = null;
e.hasClick = !1;
return e;
}
e.prototype.start = function() {
this.dragArea.on(cc.Node.EventType.TOUCH_START, this.onDragStart, this);
this.dragArea.on(cc.Node.EventType.TOUCH_END, this.onDragEnd, this);
};
e.prototype.onDisable = function() {
this.dragArea.off(cc.Node.EventType.TOUCH_START, this.onDragStart, this);
this.dragArea.off(cc.Node.EventType.TOUCH_END, this.onDragEnd, this);
};
e.prototype.setItemData = function(t) {
return a(this, void 0, void 0, function() {
var e, n;
return c(this, function() {
this.bannerDatas = t.item_data;
if (this.bannerDatas && this.bannerDatas.length > 0) for (e = 0; e < this.bannerDatas.length; e++) {
(n = cc.instantiate(this.pointPrefab)).name = e.toString();
this.pointLy.addChild(n);
}
this.onOpenBigPicNode(0);
return [ 2 ];
});
});
};
e.prototype.onOpenBigPicNode = function(t) {
var e = this;
this.curIndex = t;
var n = this.bannerDatas[this.curIndex];
this.curSelDownItem = this.item1;
this.curSelDownItem.getComponent(s.default).init(n);
this.curSelDownItem.x = 0;
this.curSelDownItem.active = !0;
this.item2.x = 750;
this.curSelPoint = this.pointLy.getChildByName(this.curIndex.toString());
this.curSelPoint.getComponent(l.default).setSel(!0);
this.hasClick = !1;
if (this.bannerDatas.length > 1) this.schedule(function() {
e.hasClick || e.onSelDown(1);
}, 3, cc.macro.REPEAT_FOREVER, 7); else {
this.btnLeft.active = !1;
this.btnRight.active = !1;
}
};
e.prototype.onLeft = function() {
mk.audio.playEffect("button");
this.hasClick = !0;
this.onSelDown(2);
};
e.prototype.onRight = function() {
mk.audio.playEffect("button");
this.hasClick = !0;
this.onSelDown(1);
};
e.prototype.onSelDown = function(t) {
var e = this;
if (!this.coolTime) {
var n, o = -750;
if (1 == t) {
this.curIndex + 1 > this.bannerDatas.length - 1 ? this.curIndex = 0 : this.curIndex++;
n = this.bannerDatas[this.curIndex];
if (this.curSelDownItem == this.item1) {
this.curSelDownItem = this.item2;
this.preDownItem = this.item1;
} else {
this.curSelDownItem = this.item1;
this.preDownItem = this.item2;
}
this.curSelDownItem.getComponent(s.default).init(n);
this.curSelDownItem.x = 750;
o = -750;
} else if (2 == t) {
this.curIndex - 1 < 0 ? this.curIndex = this.bannerDatas.length - 1 : this.curIndex--;
n = this.bannerDatas[this.curIndex];
if (this.curSelDownItem == this.item1) {
this.curSelDownItem = this.item2;
this.preDownItem = this.item1;
} else {
this.curSelDownItem = this.item1;
this.preDownItem = this.item2;
}
this.curSelDownItem.getComponent(s.default).init(n);
this.curSelDownItem.x = -750;
o = 750;
}
this.coolTime = !0;
cc.tween(this.preDownItem).to(.4, {
x: o
}, cc.easeInOut(1)).start();
cc.tween(this.curSelDownItem).to(.4, {
x: 0
}, cc.easeInOut(1)).call(function() {
e.onSelPoint();
e.coolTime = !1;
}).start();
}
};
e.prototype.onDragStart = function(t) {
this.hasClick = !0;
this.startX = t.touch._point.x;
};
e.prototype.onDragEnd = function(t) {
var e = t.touch._point.x - this.startX;
Math.abs(e) > 20 && (e > 0 ? this.onSelDown(2) : this.onSelDown(1));
};
e.prototype.onSelPoint = function() {
this.curSelPoint && this.curSelPoint.getComponent(l.default).setSel(!1);
this.curSelPoint = this.pointLy.getChildByName(this.curIndex.toString());
this.curSelPoint.getComponent(l.default).setSel(!0);
};
r([ d(cc.Node) ], e.prototype, "dragArea", void 0);
r([ d(cc.Node) ], e.prototype, "item1", void 0);
r([ d(cc.Node) ], e.prototype, "item2", void 0);
r([ d(cc.Prefab) ], e.prototype, "pointPrefab", void 0);
r([ d(cc.Node) ], e.prototype, "pointLy", void 0);
r([ d(cc.Node) ], e.prototype, "btnLeft", void 0);
r([ d(cc.Node) ], e.prototype, "btnRight", void 0);
return r([ p ], e);
}(cc.Component);
n.default = h;
cc._RF.pop();
}, {
"./MoreGamePicItem": "MoreGamePicItem",
"./PointItem": "PointItem"
} ],
MoreGameData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ecbc8fNcjZNNYvilAODW4lX", "MoreGameData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, a = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.MoreGameData = void 0;
var c = t("../../../mk/data/Data"), s = t("../../../mk/system/JsbSystem"), l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e._moreGameList = null;
e.init_moreGameList = !1;
e.testData = {
normal: [ {
nebulaAppId: "wxd2e694c55d457ded",
title: "爱上切水果",
introduction: "切水果、切水果、切、切、切！",
downloadUrl: "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/haocheyijia/hutui/CutFruit.apk",
packageName: "com.aries.asqsg.mz",
icon: "https://oss.duiweize.com/fission/5vp7CPeadkABlgIe.png",
banner: "https://oss.duiweize.com/fission/EXrqiYF6BkC1ZsZf.png"
}, {
nebulaAppId: "wx74fee17e08a29836",
title: "炮火掠夺",
introduction: "大炮一响，黄金万两！",
downloadUrl: "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/haocheyijia/hutui/FirePillage.apk",
packageName: "com.aries.firepillage.mz",
icon: "https://oss.duiweize.com/fission/BZ9ZUicxgCbWb33D.png",
banner: "https://oss.duiweize.com/fission/vGPWCE2tuGZwLSJH.png"
} ],
banner: [ {
nebulaAppId: "wx07895e2f78748daf",
title: "豪车大富翁",
introduction: "豪车、金钱、美女，你要的这里都有！",
downloadUrl: "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/haocheyijia/hutui/HundredsOfMillions.apk",
packageName: "org.cocos2d.hundredsofmillion.mk.mz",
icon: "https://oss.duiweize.com/fission/fviQN9OpUmmqpTjU.png",
banner: "https://oss.duiweize.com/fission/eWUxr3OySHIohqtB.png",
banner2: "https://oss.duiweize.com/fission/eWUxr3OySHIohqtB.png"
}, {
nebulaAppId: "wx22b3f0f8005f0e51",
title: "航海传奇",
introduction: " 战舰、短裙、红包，你想要的都有！",
downloadUrl: "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/haocheyijia/hutui/LegendOfNavigation.apk",
packageName: "com.aries.hhcq.mz",
icon: "https://oss.duiweize.com/fission/ZqDsgbj9PT94RcG0.png",
banner: "https://oss.duiweize.com/fission/goS05API8LtqB0QH.png",
banner2: "https://oss.duiweize.com/fission/goS05API8LtqB0QH.png"
} ]
};
return e;
}
Object.defineProperty(e.prototype, "moreGameList", {
get: function() {
return this._moreGameList;
},
set: function(t) {
this._moreGameList = t;
this.init_moreGameList = !0;
},
enumerable: !1,
configurable: !0
});
e.prototype.init = function() {
this.sendRecommendList();
};
e.prototype.sendRecommendList = function() {
return r(this, void 0, void 0, function() {
var t, e;
return a(this, function(n) {
switch (n.label) {
case 0:
if (null != this._moreGameList && null != this._moreGameList) return [ 3, 2 ];
t = {};
return [ 4, mk.http.sendData("/fission/recommendList", t) ];

case 1:
if (0 != (e = n.sent()).errcode) return [ 2 ];
this.moreGameList = e.data;
return [ 3, 3 ];

case 2:
this.init_moreGameList = !0;
n.label = 3;

case 3:
return [ 2 ];
}
});
});
};
e.prototype.sendAppDownloadLog = function(t) {
var e = {
downloadAppId: t
};
mk.http.sendRequest("/fission/appDownloadLog", "POST", JSON.stringify(e));
};
e.prototype.createNewTask = function(t) {
var n = this, o = t.nebulaAppId + ".apk", i = t.downloadUrl, r = t.packageName;
if ("" != r && s.default.ifCanStartGame(r, !0)) return null;
if (s.default.isFileExist(o)) {
s.default.installApk(o);
return null;
}
if (e.downLoadTaskMap[t.nebulaAppId]) {
mk.tip.pop("正在下载中...");
return null;
}
mk.tip.pop("开始下载...");
var a = new u(0, 0, t.nebulaAppId, null), c = s.default.downFile2Local(i, t.nebulaAppId + ".apk", function() {
a.progress = -2;
n.sendAppDownloadLog(t.nebulaAppId);
setTimeout(function() {
s.default.installApk(o);
}, 1);
}, function() {
a.progress = -1;
e.downLoadTaskMap[t.nebulaAppId] = null;
mk.tip.pop("下载失败，请稍后再试");
}, function(t, e, n) {
a.progress = e;
a.totalBytesReceives = n;
});
a.downloadTask = c;
e.downLoadTaskMap[t.nebulaAppId] = a;
return a;
};
e.prototype.getTaskInfo = function(t) {
return e.downLoadTaskMap[t];
};
e.prototype.getRandomSteam = function() {
if (!this.moreGameList) return null;
var t = mk.math.random(0, this.moreGameList.stream.length - 1);
return this.moreGameList.stream[t];
};
e.prototype.getRandomNormal = function() {
if (!this.moreGameList) return null;
var t = mk.math.random(0, this.moreGameList.normal.length - 1);
return this.moreGameList.normal[t];
};
e.prototype.popMoreGamePopNode = function() {
Math.random() <= gData.gameData.configs.globalCfg.popMoreGame && mk.ui.openPanel("module/moreGame/moreGamePopNode");
};
e.downLoadTaskMap = new Map();
return e;
}(c.Data);
n.MoreGameData = l;
var u = function() {
function t(t, e, n, o) {
this._progress = 0;
this._totalBytesReceives = 0;
this._nebulaAppId = "";
this._downloadTask = null;
this._progress = t;
this._totalBytesReceives = e;
this._nebulaAppId = n;
this._downloadTask = o;
}
Object.defineProperty(t.prototype, "progress", {
get: function() {
return this._progress;
},
set: function(t) {
this._progress = t;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "totalBytesReceives", {
get: function() {
return this._totalBytesReceives;
},
set: function(t) {
this._totalBytesReceives = t;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "downloadTask", {
get: function() {
return this._downloadTask;
},
set: function(t) {
this._downloadTask = t;
},
enumerable: !1,
configurable: !0
});
return t;
}();
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data",
"../../../mk/system/JsbSystem": "JsbSystem"
} ],
MoreGameNormalItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a4ff7XTiXVGfZP42F1bBIEa", "MoreGameNormalItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = t("../../../mk/system/JsbSystem"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.iconNode = null;
e.progressLabel = null;
e.btnDown = null;
e.btnOpen = null;
e.labName = null;
e.labDes = null;
e.spRed = null;
e.data = null;
e.cool = !1;
return e;
}
e.prototype.setItemData = function(t) {
return a(this, void 0, void 0, function() {
var e = this;
return c(this, function() {
this.data = t.item_data;
cc.sys.os != cc.sys.OS_WINDOWS && cc.loader.load(this.data.icon, function(t, n) {
if (t) console.log("err:", t); else if (cc.isValid(e.iconNode)) {
var o = n;
e.iconNode.spriteFrame = new cc.SpriteFrame(o);
}
});
this.labName.string = this.data.title;
this.labDes.string = this.data.introduction;
this.spRed.active = !1;
if (s.default.ifCanStartGame(this.data.packageName, !1)) {
this.btnDown.active = !1;
this.btnOpen.active = !0;
} else if (s.default.isFileExist(this.data.nebulaAppId + ".apk")) {
this.btnDown.active = !1;
this.btnOpen.active = !0;
} else {
this.btnDown.active = !0;
this.btnOpen.active = !1;
null != gData.moreGame.getTaskInfo(this.data.nebulaAppId) ? this.schedule(function() {
e.showDownloadProgress();
}, .5) : this.progressLabel.string = "下载";
}
return [ 2 ];
});
});
};
e.prototype.creatorDownLoadTask = function() {
var t = this;
mk.audio.playEffect("button");
if (!this.cool) {
this.cool = !0;
this.scheduleOnce(function() {
t.cool = !1;
}, 3);
null != gData.moreGame.createNewTask(this.data) ? this.schedule(function() {
t.showDownloadProgress();
}, .5) : this.progressLabel.string = "";
}
};
e.prototype.showDownloadProgress = function() {
var t = gData.moreGame.getTaskInfo(this.data.nebulaAppId);
null != t && t.progress >= 0 ? this.progressLabel.string = (t.progress / t.totalBytesReceives * 100).toFixed(1) + "%" : this.setItemData(this.data);
};
r([ p(cc.Sprite) ], e.prototype, "iconNode", void 0);
r([ p(cc.Label) ], e.prototype, "progressLabel", void 0);
r([ p(cc.Node) ], e.prototype, "btnDown", void 0);
r([ p(cc.Node) ], e.prototype, "btnOpen", void 0);
r([ p(cc.Label) ], e.prototype, "labName", void 0);
r([ p(cc.Label) ], e.prototype, "labDes", void 0);
r([ p(cc.Node) ], e.prototype, "spRed", void 0);
return r([ u ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {
"../../../mk/system/JsbSystem": "JsbSystem"
} ],
MoreGamePicItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c2dd8WpPO5EiLR+yLbWHUHD", "MoreGamePicItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../../mk/system/JsbSystem"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.banner = null;
e.spRed = null;
e.spPro = null;
e.labPro = null;
e.btnStart = null;
e.data = null;
e.cool = !1;
return e;
}
e.prototype.init = function(t) {
var e = this;
this.data = t;
cc.sys.os != cc.sys.OS_WINDOWS && cc.loader.load(t.banner2, function(t, n) {
if (t) console.log("err:", t); else if (e.banner) {
var o = n;
e.banner.spriteFrame = new cc.SpriteFrame(o);
}
});
this.spPro.node.active = !1;
this.btnStart.active = !1;
this.labPro.string = "";
if (a.default.ifCanStartGame(t.packageName, !1)) {
this.spRed.active = !1;
this.btnStart.active = !0;
} else if (a.default.isFileExist(t.nebulaAppId + ".apk")) {
this.spRed.active = !1;
this.btnStart.active = !0;
} else this.spRed.active = !0;
};
e.prototype.creatorDownLoadTask = function() {
var t = this;
if (!this.cool) {
this.cool = !0;
this.scheduleOnce(function() {
t.cool = !1;
}, 3);
null != gData.moreGame.createNewTask(this.data) && this.schedule(function() {
t.showDownloadProgress();
}, .5);
}
};
e.prototype.showDownloadProgress = function() {
var t = gData.moreGame.getTaskInfo(this.data.nebulaAppId);
if (null != t) if (t.progress >= 0) {
this.spPro.node.active = !0;
var e = t.progress / t.totalBytesReceives, n = (100 * e).toFixed(1);
this.spPro.fillRange = 1 - e;
this.labPro.string = n + "%";
} else this.init(this.data); else this.init(this.data);
};
r([ l(cc.Sprite) ], e.prototype, "banner", void 0);
r([ l(cc.Node) ], e.prototype, "spRed", void 0);
r([ l(cc.Sprite) ], e.prototype, "spPro", void 0);
r([ l(cc.Label) ], e.prototype, "labPro", void 0);
r([ l(cc.Node) ], e.prototype, "btnStart", void 0);
return r([ s ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {
"../../../mk/system/JsbSystem": "JsbSystem"
} ],
MoreGamePopNode: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "cd58fkToeZLvKuTEPhUbrbO", "MoreGamePopNode");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../../mk/system/JsbSystem"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.icon = null;
e.labName = null;
e.data = null;
e.cool = !1;
return e;
}
e.prototype.start = function() {
gData.moreGame.init_moreGameList = !0;
};
e.prototype.update = function() {
gData.moreGame.init_moreGameList && this.init();
};
e.prototype.lateUpdate = function() {
gData.moreGame.init_moreGameList = !1;
};
e.prototype.init = function() {
var t = this;
this.data = gData.moreGame.getRandomNormal();
if (this.data) {
cc.sys.os != cc.sys.OS_WINDOWS && cc.loader.load(this.data.icon, function(e, n) {
if (e) console.log("err:", e); else {
var o = n;
t.icon.spriteFrame = new cc.SpriteFrame(o);
}
});
this.labName.string = this.data.title;
}
};
e.prototype.creatorDownLoadTask = function() {
mk.audio.playEffect("button");
if (!this.cool) {
this.cool = !0;
a.default.ifCanStartGame(this.data.packageName, !0) || gData.moreGame.createNewTask(this.data);
}
};
e.prototype.onClosePanel = function() {
mk.tip.pop("红包币+300");
mk.fly.PlayCoinAnim(1, 20, cc.v2(0, -300), cc.v2(0, 0));
};
r([ l(cc.Sprite) ], e.prototype, "icon", void 0);
r([ l(cc.Label) ], e.prototype, "labName", void 0);
return r([ s ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {
"../../../mk/system/JsbSystem": "JsbSystem"
} ],
MoreGame: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a6705qKu8tPpoRd4ECt6v+E", "MoreGame");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_sv = null;
e.moreGameNormalNode = null;
e.normalDatas = null;
return e;
}
e.prototype.start = function() {
this.node.setContentSize(cc.winSize);
gData.moreGame.init();
};
e.prototype.update = function() {
gData.moreGame.init_moreGameList && this.initView();
};
e.prototype.lateUpdate = function() {
gData.moreGame.init_moreGameList = !1;
};
e.prototype.initView = function() {
this.normalDatas = gData.moreGame.moreGameList.normal;
for (var t = [], e = this.normalDatas.length, n = 0; n < e; n++) {
var o = 0, i = {
item_data: this.normalDatas[n],
pfbType: o
};
t.push(i);
if (1 == n) {
o = 1;
var r = {
item_data: gData.moreGame.moreGameList.banner,
pfbType: o
};
t.push(r);
}
}
this.node_sv.emit("srollview-init", t);
};
e.prototype.onClickClose = function() {
mk.ad.checkShowInterByChance();
};
r([ s(cc.Node) ], e.prototype, "node_sv", void 0);
r([ s(cc.Prefab) ], e.prototype, "moreGameNormalNode", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
NumberAnim: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "88626F5Zl9BIKjmKaYlyRWH", "NumberAnim");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, c = a.ccclass, s = (a.property, function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.lbl_count = null;
e.targetProgress = 0;
e.delta = 0;
e.curValue = 0;
e.curTime = 0;
e.totalTime = 0;
e.lastNum = 0;
e.isPlayAni = !1;
e.len_target = 0;
e.toFixed = 0;
return e;
}
e.prototype.onLoad = function() {
this.lbl_count = this.node.getComponent(cc.Label) || this.node.addComponent(cc.Label);
};
e.prototype.setValue = function(t, e) {
void 0 === e && (e = 0);
this.toFixed = e;
this.len_target = t.toString().length;
this.targetProgress = t;
this.PlayMoneyAni(.3);
};
e.prototype.PlayMoneyAni = function(t) {
this.totalTime = t;
this.delta = (this.targetProgress - this.lastNum) / t;
this.curValue = this.lastNum;
this.curTime = 0;
this.isPlayAni = !0;
};
e.prototype.PlayMoneyAniUpdate = function(t) {
if (this.isPlayAni) {
if (this.curTime < this.totalTime) {
this.curTime += t;
this.curValue += this.delta * t;
if (this.curValue >= this.targetProgress) {
this.isPlayAni = !1;
this.curValue = this.targetProgress;
this.lastNum = this.targetProgress;
}
} else {
this.isPlayAni = !1;
this.curTime = this.totalTime;
this.curValue = this.targetProgress;
this.lastNum = this.targetProgress;
}
this.curValue == this.targetProgress ? this.lbl_count.string = "" + this.targetProgress : this.lbl_count.string = "" + this.curValue.toFixed(this.toFixed);
}
};
e.prototype.update = function(t) {
this.PlayMoneyAniUpdate(t);
};
return r([ c ], e);
}(cc.Component));
n.default = s;
cc._RF.pop();
}, {} ],
PageView: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "bf07comJ2RKTIq+nuMXZ4/m", "PageView");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, c = a.ccclass, s = (a.property, function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.comp_page_view = null;
e.arr_node_item = [];
return e;
}
e.prototype.onLoad = function() {
this.comp_page_view = this.node.getComponent(cc.PageView);
this.node.on("ui-init", this.init, this);
this.node.on("ui-clearItem", this.clearItem, this);
this.node.on("ui-backCurPage", this.backCurPage, this);
};
e.prototype.start = function() {};
e.prototype.init = function(t, e, n) {
void 0 === n && (n = 0);
var o = t.length;
if (o) {
for (c = 0; c < o; c++) {
var i = this.arr_node_item[c];
if (!i) {
i = cc.instantiate(e);
this.arr_node_item.push(i);
}
this.comp_page_view.addPage(i);
i.getComponent(i.name).setItemData(t[c]);
}
this.comp_page_view.setCurrentPageIndex(n);
var r = this.arr_node_item.length;
if (o > r) for (c = o; c < r; c++) {
this.comp_page_view.removePageAtIndex(c);
this.arr_node_item.splice(c, 1);
}
} else for (var a = this.arr_node_item.length, c = 0; c < a; c++) {
this.comp_page_view.removePageAtIndex(c);
this.arr_node_item.splice(c, 1);
}
};
e.prototype.backCurPage = function() {
var t = this.comp_page_view.getCurrentPageIndex();
this.comp_page_view.setCurrentPageIndex(t);
};
e.prototype.clearItem = function(t) {
void 0 === t && (t = !1);
};
return r([ c ], e);
}(cc.Component));
n.default = s;
cc._RF.pop();
}, {} ],
PauseUI: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "2eadbxluUNDrI8Zr+YfUTg/", "PauseUI");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../GamePlay"), c = t("../mgr/GameMgr"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_bg = null;
e.node_closeBtn = null;
e.node_musicSwitch = null;
e.node_music_on = null;
e.node_music_off = null;
e.node_effectSwitch = null;
e.node_effect_on = null;
e.node_effect_off = null;
e.node_restartBtn = null;
e.node_exitBtn = null;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {
mk.ad.showNativeAd(4);
this.node_bg.setContentSize(cc.winSize.width, cc.winSize.height);
this.initEvent();
};
e.prototype.onEnable = function() {
c.default.Inst.sendEvent(c.UI_NAME.PauseUI, "进入暂停界面");
this.initMsuicSwitchState();
this.initEffectSwitchState();
};
e.prototype.onDisable = function() {};
e.prototype.init = function() {};
e.prototype.initMsuicSwitchState = function() {
this.node_music_on.active = mk.audio.getSwitchMusic();
this.node_music_off.active = !this.node_music_on.active;
};
e.prototype.initEffectSwitchState = function() {
this.node_effect_on.active = mk.audio.getSwitchEffect();
this.node_effect_off.active = !this.node_effect_on.active;
};
e.prototype.initEvent = function() {
this.node_closeBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
this.node_musicSwitch.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
this.node_effectSwitch.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
this.node_restartBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
this.node_exitBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
};
e.prototype.onClickBtn = function(t) {
mk.audio.playEffect("button");
switch (t.currentTarget) {
case this.node_closeBtn:
this.onClickClose();
break;

case this.node_musicSwitch:
this.onClickMusicSwitch();
break;

case this.node_effectSwitch:
this.onClickEffectSwitch();
break;

case this.node_exitBtn:
this.onClickExitBtn();
break;

case this.node_restartBtn:
this.onClickRestartBtn();
}
};
e.prototype.onClickClose = function() {
console.log("点击关闭按钮", this.node.name);
mk.ui.closePanel(this.node.name);
mk.ad.destroyNativeAd();
};
e.prototype.onClickMusicSwitch = function() {
mk.audio.switchMusicFunc();
this.initMsuicSwitchState();
};
e.prototype.onClickEffectSwitch = function() {
mk.audio.switchEffectFunc();
this.initEffectSwitchState();
};
e.prototype.onClickRestartBtn = function() {
a.default.Inst.restart();
mk.ui.closePanel(this.node.name);
};
e.prototype.onClickExitBtn = function() {
c.default.Inst.sendEvent(c.UI_NAME.PauseUI, "点击退出按钮");
mk.ui.closePanel("PauseUI");
a.default.Inst.restart(!1);
a.default.Inst.node.active = !1;
mk.ad.destroyNativeAd();
};
r([ u(cc.Node) ], e.prototype, "node_bg", void 0);
r([ u(cc.Node) ], e.prototype, "node_closeBtn", void 0);
r([ u(cc.Node) ], e.prototype, "node_musicSwitch", void 0);
r([ u(cc.Node) ], e.prototype, "node_music_on", void 0);
r([ u(cc.Node) ], e.prototype, "node_music_off", void 0);
r([ u(cc.Node) ], e.prototype, "node_effectSwitch", void 0);
r([ u(cc.Node) ], e.prototype, "node_effect_on", void 0);
r([ u(cc.Node) ], e.prototype, "node_effect_off", void 0);
r([ u(cc.Node) ], e.prototype, "node_restartBtn", void 0);
r([ u(cc.Node) ], e.prototype, "node_exitBtn", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {
"../GamePlay": "GamePlay",
"../mgr/GameMgr": "GameMgr"
} ],
PigBankData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b959eKbqF5NcI74STkMo2lM", "PigBankData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, a = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.PigBankData = void 0;
var c = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.init_data = !0;
e.cash_min_limit = .3;
return e;
}
e.prototype.init = function() {};
e.prototype.cashOP = function() {
return r(this, void 0, void 0, function() {
var t, e;
return a(this, function(n) {
switch (n.label) {
case 0:
t = {};
return [ 4, mk.http.sendRequest("piggyBankCash", "POST", JSON.stringify(t)) ];

case 1:
if (0 != (e = n.sent()).errcode) {
mk.tip.pop("系统异常");
return [ 2 ];
}
if (0 == e.CashMode) {
gData.receiptNotice.receip_rmb = gData.gameData.gameData.piggyBank;
gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
mk.ui.openPanel("module/receiptNotice/receiptNotice");
} else e.CashMode;
gData.gameData.gameData.isWithdrawable = 0;
return [ 2 ];
}
});
});
};
return e;
}(t("../../../mk/data/Data").Data);
n.PigBankData = c;
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data"
} ],
PigBank: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b7b79eT6/VPr5yd7mCH4hR7", "PigBank");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = t("../../../mk/system/JsbSystem"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.lbl_get_desc = null;
e.lbl_deposit = null;
e.node_tip_anim = null;
e.anim_btn_cash = null;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {
this.initCashDesc();
mk.audio.playEffect("pigBank", !1);
};
e.prototype.update = function() {
gData.pigbank.init_data && this.initCashDesc();
gData.pigbank.adData && cc.log("存钱罐提现", gData.pigbank.adData);
};
e.prototype.lateUpdate = function() {
gData.pigbank.init_data = !1;
gData.pigbank.adData = null;
};
e.prototype.initCashDesc = function() {
if (gData.gameData.gameData.isWithdrawable) {
this.lbl_get_desc.string = "直接提现";
this.node_tip_anim.active = !1;
this.anim_btn_cash.play();
} else {
gData.gameData.gameData.piggyBank >= gData.pigbank.cash_min_limit ? this.lbl_get_desc.string = "明日可提现" : this.lbl_get_desc.string = "满" + gData.pigbank.cash_min_limit + "元可提";
this.node_tip_anim.active = !0;
this.anim_btn_cash.stop();
this.anim_btn_cash.node.scale = 1;
}
this.initDeposit();
};
e.prototype.initDeposit = function() {
var t = gData.gameData.gameData.piggyBank / 100;
this.lbl_deposit.string = t.toFixed(2) + "元";
};
e.prototype.clickCashOP = function() {
mk.audio.playEffect("button");
if (gData.gameData.gameData.isWithdrawable) if (gData.gameData.gameData.piggyBank < gData.pigbank.cash_min_limit) mk.tip.pop("满" + gData.pigbank.cash_min_limit + "元可提现"); else if (gData.loginData.isAuth) {
gData.pigbank.cashOP();
mk.ui.closePanel(this.node.name);
} else s.default.WxAuth(); else mk.tip.pop("明日可提现");
};
e.prototype.clickOpenHelpCall = function() {
return a(this, void 0, void 0, function() {
return c(this, function() {
gData.help.des = "1、游戏内观看任意视频，都会获得现金。\n\n2、存款达到0.3元后，次日登陆，可无门槛提现。\n\n3、提现后，存款清零，可重新开始。";
return [ 2 ];
});
});
};
e.prototype.onClickClose = function() {
mk.ad.checkShowInterByChance();
};
r([ p({
type: cc.Label,
displayName: "按钮描述"
}) ], e.prototype, "lbl_get_desc", void 0);
r([ p({
type: cc.Label,
displayName: "存款数量"
}) ], e.prototype, "lbl_deposit", void 0);
r([ p({
type: cc.Node,
displayName: "提示动画"
}) ], e.prototype, "node_tip_anim", void 0);
r([ p({
type: cc.Animation,
displayName: "提现动画"
}) ], e.prototype, "anim_btn_cash", void 0);
return r([ u ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {
"../../../mk/system/JsbSystem": "JsbSystem"
} ],
PlayerConst: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "37532KV5gVBNpKplMKqz9q7", "PlayerConst");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.DATA_STORAGE_KEY = void 0;
var a = cc._decorator, c = a.ccclass, s = (a.property, function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.videoNum = 0;
e.ifJuliangApiApiActivie = !1;
e.ifJuliangApiSencondActivie = !1;
e.average_ecpm = 0;
return r([ c ], e);
}(cc.Component));
n.default = s;
(function(t) {
t.cashNum = "cashNum";
t.shopScoreNum = "shopScoreNum";
t.levelNum = "levelNum";
t.energyNum = "energyNum";
t.energyChangeTime = "energyChangeTime";
t.leftEnergyRecoverTime = "leftEnergyRecoverTime";
t.login_ticket = "login_ticket";
t.uin = "uin";
t.session_key = "session_key";
t.isAuth = "isAuth";
t.nickname = "nickname";
t.todayPassRedPacketNum = "todayPassRedPacketNum";
t.watchVideoNum = "watchVideoNum";
t.onlineTime = "onlineTime";
t.passNum = "passTime";
t.ifJuliangApiApiActivie = "ifJuliangApiApiActivie";
t.ifJuliangApiSencondActivie = "ifJuliangApiSencondActivie";
t.adress = "adress";
t.average_ecpm = "average_ecpm";
})(n.DATA_STORAGE_KEY || (n.DATA_STORAGE_KEY = {}));
cc._RF.pop();
}, {} ],
PlayerInfoUI: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "d20beorF3VGEoLUufBApCs7", "PlayerInfoUI");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../game/data/GameData"), c = t("../data/GameConst"), s = t("../mgr/GameMgr"), l = t("../util/GameLogic"), u = t("../util/Util"), p = cc._decorator, d = p.ccclass, h = p.property, f = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_rectBg = null;
e.node_closeBtn = null;
e.spr_head = null;
e.label_nickName = null;
e.label_inviteCode = null;
e.node_copyInviteCodeBtn = null;
e.node_inputInviteCodeBtn = null;
e.label_cashNum = null;
e.node_caseOutBtn = null;
e.node_inviteBtn = null;
e.node_serviceBookBtn = null;
e.node_privacyRuleBtn = null;
e.node_gameRuleBtn = null;
e.node_contactBtn = null;
e.node_serviceBookUI = null;
e.node_privacyRuleUI = null;
e.node_gameRuleUI = null;
e.node_contactUI = null;
e.label_version = null;
return e;
}
e.prototype.start = function() {
this.addapt();
this.initView();
this.initEvent();
};
e.prototype.onEnable = function() {
s.default.Inst.sendEvent(s.UI_NAME.PlayerInfoUI, "进入玩家信息界面");
this.initCaseNum();
this.initHead();
this.initNickName();
};
e.prototype.onDisable = function() {};
e.prototype.addapt = function() {
this.node_rectBg.setContentSize(cc.winSize.width, cc.winSize.height);
};
e.prototype.initView = function() {
this.initHead();
this.initNickName();
this.initInviteCode();
this.label_version.string = "v" + c.default.appVersion;
};
e.prototype.initEvent = function() {
this.node_closeBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
this.node_copyInviteCodeBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
this.node_inputInviteCodeBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
this.node_caseOutBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
this.node_inviteBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
this.node_serviceBookBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
this.node_privacyRuleBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
this.node_gameRuleBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
this.node_contactBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
c.default.isAuth || mk.event.register(a.EVENT_TYPE.BACK_WxAuth, this.onWxAuthBack, this);
};
e.prototype.onClick = function(t) {
mk.audio.playEffect("button");
switch (t.currentTarget) {
case this.node_closeBtn:
this.onClickCloseBtn();
break;

case this.node_copyInviteCodeBtn:
this.onClickCopyInviteCodeBtn();
break;

case this.node_inviteBtn:
this.onClickInviteBtn();
break;

case this.node_serviceBookBtn:
this.onClickServiceBookBtn();
break;

case this.node_privacyRuleBtn:
this.onClickPrivacyRuleBtn();
break;

case this.node_gameRuleBtn:
this.onClickGameRuleBtn();
break;

case this.node_contactBtn:
this.onClickContactBtn();
}
};
e.prototype.initHead = function() {
l.default.loadHeadImg("?aaa=aa.jpg", this.spr_head, 95);
};
e.prototype.initNickName = function() {
this.label_nickName.string = "PlayerConst.nickName";
};
e.prototype.initInviteCode = function() {
this.label_inviteCode.string = u.default.cutStr(c.default.uin, 8);
};
e.prototype.initCaseNum = function() {};
e.prototype.onClickCloseBtn = function() {
s.default.Inst.sendEvent(s.UI_NAME.PlayerInfoUI, "点击关闭按钮");
mk.ui.closePanel("PlayerInfoUI");
};
e.prototype.onClickCopyInviteCodeBtn = function() {};
e.prototype.onClickInviteBtn = function() {};
e.prototype.onClickServiceBookBtn = function() {
this.node_serviceBookUI.active = !0;
};
e.prototype.onClickPrivacyRuleBtn = function() {
this.node_privacyRuleUI.active = !0;
};
e.prototype.onClickGameRuleBtn = function() {
this.node_gameRuleBtn.active = !0;
};
e.prototype.onClickContactBtn = function() {
this.node_contactBtn.active = !0;
};
e.prototype.onWxAuthBack = function() {
this.initHead();
this.initNickName();
mk.event.remove(a.EVENT_TYPE.BACK_WxAuth, this.onWxAuthBack, this);
};
r([ h(cc.Node) ], e.prototype, "node_rectBg", void 0);
r([ h(cc.Node) ], e.prototype, "node_closeBtn", void 0);
r([ h(cc.Sprite) ], e.prototype, "spr_head", void 0);
r([ h(cc.Label) ], e.prototype, "label_nickName", void 0);
r([ h(cc.Label) ], e.prototype, "label_inviteCode", void 0);
r([ h(cc.Node) ], e.prototype, "node_copyInviteCodeBtn", void 0);
r([ h(cc.Node) ], e.prototype, "node_inputInviteCodeBtn", void 0);
r([ h(cc.Label) ], e.prototype, "label_cashNum", void 0);
r([ h(cc.Node) ], e.prototype, "node_caseOutBtn", void 0);
r([ h(cc.Node) ], e.prototype, "node_inviteBtn", void 0);
r([ h(cc.Node) ], e.prototype, "node_serviceBookBtn", void 0);
r([ h(cc.Node) ], e.prototype, "node_privacyRuleBtn", void 0);
r([ h(cc.Node) ], e.prototype, "node_gameRuleBtn", void 0);
r([ h(cc.Node) ], e.prototype, "node_contactBtn", void 0);
r([ h(cc.Node) ], e.prototype, "node_serviceBookUI", void 0);
r([ h(cc.Node) ], e.prototype, "node_privacyRuleUI", void 0);
r([ h(cc.Node) ], e.prototype, "node_gameRuleUI", void 0);
r([ h(cc.Node) ], e.prototype, "node_contactUI", void 0);
r([ h(cc.Label) ], e.prototype, "label_version", void 0);
return r([ d ], e);
}(cc.Component);
n.default = f;
cc._RF.pop();
}, {
"../../game/data/GameData": "GameData",
"../data/GameConst": "GameConst",
"../mgr/GameMgr": "GameMgr",
"../util/GameLogic": "GameLogic",
"../util/Util": "Util"
} ],
PointItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "7f35a5ygDNPXrh2GhRTPUJK", "PointItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.sel = null;
return e;
}
e.prototype.setSel = function(t) {
this.sel.active = t;
};
r([ s(cc.Node) ], e.prototype, "sel", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
PoolMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f89e1fOWjNL55PuZpHvYSJY", "PoolMgr");
var o = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.NODEPOOLPREFABTYPE = void 0;
var i, r = cc._decorator, a = r.ccclass, c = (r.property, function() {
function t() {
this.nodePoolDir = "game/prefab/nodepool/";
this.className = "";
this.prefabDic = {};
this.nodePoolDic = {};
}
e = t;
Object.defineProperty(t, "Inst", {
get: function() {
e.instance || (e.instance = new e());
return e.instance;
},
enumerable: !1,
configurable: !0
});
t.prototype.onLoad = function() {};
t.prototype.start = function() {};
t.prototype.initPoolPrefab = function() {
var t = this;
t.className = t.__proto__.constructor.name;
for (var e = function() {
var e = Object.keys(i)[o];
i[e];
if (Number(e) || 0 == Number(e)) return "continue";
t.nodePoolDic[e] || (t.nodePoolDic[e] = new cc.NodePool());
cc.loader.loadRes("" + n.nodePoolDir + e, function(n, o) {
if (n) mk.console.log("[" + t.className + "]加载预制体失败：" + e, n); else {
t.prefabDic[e] = o;
var i = cc.instantiate(o);
t.nodePoolDic[e].put(i);
}
}.bind(n));
}, n = this, o = 0; o < Object.keys(i).length; o++) e();
};
t.prototype.initPoolPrefabByNum = function(t, e) {
for (var n = i[t], o = this.prefabDic[n], r = 0; r < e; ++r) {
var a = cc.instantiate(o);
this.nodePoolDic[n].put(a);
}
};
t.prototype.getPoolPrefab = function(t) {
var e = i[t], n = null, o = this.prefabDic[e];
if (o) {
var r = this.nodePoolDic[e];
return n = r.size() > 0 ? r.get() : cc.instantiate(o);
}
var a = i[t];
mk.console.log("poolPrefabType", t, a);
cc.loader.loadRes("" + this.nodePoolDir + a, function(t, e) {
if (!t) {
n = cc.instantiate(e);
mk.console.log(" nodePoolPrefab ", n);
return n;
}
mk.console.log("加载预制体失败level", t);
}.bind(this));
};
t.prototype.recyclePoolPrefab = function(t, e) {
var n = i[t];
this.nodePoolDic[n].put(e);
};
var e;
t.instance = null;
return e = o([ a ], t);
}());
n.default = c;
(function(t) {
t[t.CellItem = 0] = "CellItem";
t[t.SelectCellItemBtn = 1] = "SelectCellItemBtn";
t[t.Baozha = 2] = "Baozha";
t[t.CellBg = 3] = "CellBg";
t[t.EliminateScore = 4] = "EliminateScore";
t[t.BonusTip = 5] = "BonusTip";
t[t.ScoreEnergy = 6] = "ScoreEnergy";
t[t.Hammer = 7] = "Hammer";
t[t.Change = 8] = "Change";
t[t.TipItemUI = 10] = "TipItemUI";
t[t.GetTargetScoreTip = 11] = "GetTargetScoreTip";
t[t.GetScore = 13] = "GetScore";
t[t.TipSpriteItemUI = 14] = "TipSpriteItemUI";
})(i = n.NODEPOOLPREFABTYPE || (n.NODEPOOLPREFABTYPE = {}));
cc._RF.pop();
}, {} ],
PoolSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "13087MgZKJLaZXibA/Ne8Bq", "PoolSystem");
var o = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, i = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var r = function() {
function t() {}
t.prototype.init = function(t) {
return o(this, void 0, void 0, function() {
var e, n, o, r, a, c, s;
return i(this, function(i) {
switch (i.label) {
case 0:
this.poolList = new Map();
e = 0;
i.label = 1;

case 1:
if (!(e < t.length)) return [ 3, 4 ];
n = t[e];
return [ 4, mk.loader.load(n.url, cc.Prefab) ];

case 2:
if (!(o = i.sent())) {
console.log("没有找到该prefab", n.url);
return [ 3, 3 ];
}
r = new cc.NodePool();
for (a = 0; a < n.num; ++a) {
c = cc.instantiate(o);
r.put(c);
}
s = n.url.split("/");
this.poolList.set(s[s.length - 1], r);
i.label = 3;

case 3:
e++;
return [ 3, 1 ];

case 4:
return [ 2 ];
}
});
});
};
t.prototype.getPrefab = function(t) {
return o(this, void 0, void 0, function() {
var e, n, o, r, a;
return i(this, function(i) {
switch (i.label) {
case 0:
e = t.split("/");
n = e[e.length - 1];
o = this.poolList.get(n);
r = null;
if (!(o && o.size() > 0)) return [ 3, 1 ];
r = o.get();
return [ 3, 3 ];

case 1:
return [ 4, mk.loader.load(t, cc.Prefab) ];

case 2:
a = i.sent();
r = cc.instantiate(a);
o && o.put(r);
i.label = 3;

case 3:
return [ 2, r ];
}
});
});
};
t.prototype.return = function(t, e) {
e.removeFromParent();
var n = this.poolList[t];
n && n.put(e);
};
t.prototype.clearPool = function(t) {
this.poolList[t] && this.poolList[t].clear();
};
return t;
}();
n.default = r;
cc._RF.pop();
}, {} ],
PushData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c05b7aPhFJMQ4K7me7B6h6k", "PushData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
n.PushData = void 0;
var r = function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
return e;
}(t("../../../mk/data/Data").Data);
n.PushData = r;
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data"
} ],
ReceiptNoticeData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "470a4q7nJxBGq7QE5zAi+fg", "ReceiptNoticeData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ReceiptNoticeData = void 0;
var r = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.init_style = !0;
e._receip_rmb = 0;
return e;
}
Object.defineProperty(e.prototype, "receip_rmb", {
get: function() {
return this._receip_rmb;
},
set: function(t) {
this._receip_rmb = t;
this.init_style = !0;
},
enumerable: !1,
configurable: !0
});
return e;
}(t("../../../mk/data/Data").Data);
n.ReceiptNoticeData = r;
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data"
} ],
ReceiptNotice: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "99444HkDZpKyIj1SS34tIOi", "ReceiptNotice");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.lbl_receipt_rmb = null;
e.lbl_rmb_total = null;
e.lbl_user_name = null;
return e;
}
e.prototype.start = function() {
mk.audio.playEffect("receiptNotice");
};
e.prototype.update = function() {
if (gData.receiptNotice.init_style) {
gData.receiptNotice.init_style = !1;
this.initStyle();
}
};
e.prototype.initStyle = function() {
this.lbl_receipt_rmb.string = "￥" + Math.floor(gData.receiptNotice.receip_rmb / 100) + "元";
this.lbl_rmb_total.string = "￥" + Math.floor(gData.cashNormal.receip_total_rmb / 100) + "元";
this.lbl_user_name.string = gData.wechatData.nickName || "";
};
r([ s({
displayName: "lbl收款金额",
type: cc.Label
}) ], e.prototype, "lbl_receipt_rmb", void 0);
r([ s({
displayName: "lbl累计提现",
type: cc.Label
}) ], e.prototype, "lbl_rmb_total", void 0);
r([ s({
displayName: "lbl用户名",
type: cc.Label
}) ], e.prototype, "lbl_user_name", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
Recycle: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3f14aLW4zpID5nBzl+n0501", "Recycle");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.label = null;
e.text = "hello";
return e;
}
e.prototype.start = function() {};
r([ s(cc.Label) ], e.prototype, "label", void 0);
r([ s ], e.prototype, "text", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
RedBagCashData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "8b9fdpewwhGE6vSMYtQEvJ4", "RedBagCashData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, a = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.RedBagCashData = void 0;
var c = t("../../../mk/data/Data"), s = t("../../../mk/system/JsbSystem"), l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.init_list = !1;
e.c_data = [];
e._cash_bar = 0;
return e;
}
e.prototype.init = function() {
this.cash_bar = gData.gameData.gameData.cashIndex;
if (gData.gameData.configs.CashCfg) {
gData.gameData.configs.CashCfg.forEach(function(t) {
for (var e in t) t[e] = parseInt(t[e]);
});
this.c_data = gData.gameData.configs.CashCfg;
this.sortList();
this.init_list = !0;
}
};
Object.defineProperty(e.prototype, "cash_bar", {
get: function() {
return this._cash_bar;
},
set: function(t) {
this._cash_bar = t;
this.init_list = !0;
},
enumerable: !1,
configurable: !0
});
e.prototype.cashOP = function() {
return r(this, void 0, void 0, function() {
var t, e, n, o;
return a(this, function(i) {
switch (i.label) {
case 0:
if (!gData.loginData.isAuth) {
s.default.WxAuth();
return [ 2 ];
}
t = this.cash_bar;
e = {
index: t
};
return [ 4, mk.http.sendData("cashUsual", e) ];

case 1:
if (0 != (n = i.sent()).errcode) {
mk.tip.pop(n.errmsg);
return [ 2 ];
}
this.cash_bar++;
gData.gameData.gameData.cashIndex++;
this.sortList();
o = this.getItemDataByIndex(t);
gData.gameData.gameData.redMoney -= o.type_value;
gData.receiptNotice.receip_rmb = o.money;
gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
mk.ui.openPanel("module/receiptNotice/receiptNotice");
return [ 2 ];
}
});
});
};
e.prototype.sortList = function() {
for (var t = this.c_data.length, e = 0, n = 0; n < t; n++) {
if (this.c_data[e].index <= gData.redBagCash.cash_bar) {
var o = this.c_data.splice(e, 1);
this.c_data.push(o[0]);
e--;
}
e++;
}
};
e.prototype.getItemDataByIndex = function(t) {
for (var e = this.c_data.length, n = 0; n < e; n++) if (this.c_data[n].index === t) return this.c_data[n];
};
e.prototype.initCData = function() {
for (var t = 0; t < 20; t++) {
var e = t + 1, n = {
index: e,
money: e,
type_value: 1e3 * e,
time: e,
directVideoTime: e,
delayVideoTimes: e,
money_type: e,
num: e,
moneyshow: e,
summoney: e
};
this.c_data.push(n);
}
this.init_list = !0;
};
return e;
}(c.Data);
n.RedBagCashData = l;
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data",
"../../../mk/system/JsbSystem": "JsbSystem"
} ],
RedBagCashItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "822d4j21VlIxbq9rYxSGSQQ", "RedBagCashItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_none = null;
e.node_lock = null;
e.node_unlock = null;
e.lbl_red_value = null;
e.lbl_rmb_value = null;
e.item_data = null;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {};
e.prototype.setItemData = function(t) {
return a(this, void 0, void 0, function() {
return c(this, function(e) {
switch (e.label) {
case 0:
return [ 4, this.initStyle(t) ];

case 1:
e.sent();
return [ 2 ];
}
});
});
};
e.prototype.initStyle = function(t) {
this.item_data = t;
this.lbl_red_value.string = "" + this.item_data.type_value;
var e = this.item_data.money / 100;
e = e > 1 ? e : parseFloat(e.toFixed(2));
this.lbl_rmb_value.string = e + "元";
if (this.item_data.index <= gData.redBagCash.cash_bar) {
this.node_none.active = !0;
this.node_lock.active = !1;
this.node_unlock.active = !1;
} else if (gData.gameData.gameData.redMoney >= this.item_data.type_value) {
this.node_none.active = !1;
this.node_lock.active = !1;
this.node_unlock.active = !0;
} else {
this.node_none.active = !1;
this.node_lock.active = !0;
this.node_unlock.active = !1;
}
};
e.prototype.clickCashOP = function() {
if (this.item_data.index > gData.redBagCash.cash_bar + 1) mk.tip.pop("请按顺序提现"); else {
gData.redBagCash.cashOP();
cc.log("红包现成功");
}
};
r([ u({
displayName: "已领取",
type: cc.Node
}) ], e.prototype, "node_none", void 0);
r([ u({
displayName: "未达成",
type: cc.Node
}) ], e.prototype, "node_lock", void 0);
r([ u({
displayName: "可领取",
type: cc.Node
}) ], e.prototype, "node_unlock", void 0);
r([ u({
displayName: "红包数量",
type: cc.Label
}) ], e.prototype, "lbl_red_value", void 0);
r([ u({
displayName: "毛币数量",
type: cc.Label
}) ], e.prototype, "lbl_rmb_value", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
RedBagCash: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e7d9eMVnCBChaITA71Rl9/B", "RedBagCash");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.sroll_view = null;
e.node_content = null;
e.lbl_redbag = null;
e.lbl_rmb = null;
e.tableview = null;
return e;
}
e.prototype.onLoad = function() {
this.tableview = this.sroll_view.getComponent("TableView");
};
e.prototype.start = function() {
gData.redBagCash.init_list = !0;
};
e.prototype.update = function() {
if (gData.redBagCash.init_list) {
this.initScrollView();
this.initMoney();
}
};
e.prototype.lateUpdate = function() {
gData.redBagCash.init_list = !1;
};
e.prototype.initScrollView = function() {
var t = this;
this.sroll_view.node.emit("srollview-init", gData.redBagCash.c_data);
this.scheduleOnce(function() {
t.itemAnim();
}, 0);
};
e.prototype.itemAnim = function() {
for (var t = this.node_content.children, e = this.node_content.childrenCount, n = new cc.Vec2(0, -this.sroll_view.node.height), o = function(e) {
var o = t[e], r = o.getPosition();
o.y = n.y;
i.scheduleOnce(function() {
mk.tween.move(o, .6, n, r, null, "backOut");
}, .1 * e);
}, i = this, r = 0; r < e; r++) o(r);
};
e.prototype.initMoney = function() {
this.lbl_redbag.string = "" + gData.gameData.gameData.redMoney;
var t = gData.gameData.gameData.redMoney / 1e4;
t = t > 1 ? Math.floor(t) : parseFloat(t.toFixed(2));
this.lbl_rmb.string = "" + t;
};
r([ s({
displayName: "滚动视图",
type: cc.ScrollView
}) ], e.prototype, "sroll_view", void 0);
r([ s({
displayName: "条目容器",
type: cc.Node
}) ], e.prototype, "node_content", void 0);
r([ s({
displayName: "lbl红包数量",
type: cc.Label
}) ], e.prototype, "lbl_redbag", void 0);
r([ s({
displayName: "lbl毛币数量",
type: cc.Label
}) ], e.prototype, "lbl_rmb", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
RedBagCodeItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "8a473ReImNJJonKxV9mTpIL", "RedBagCodeItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = t("../../../mk/system/JsbSystem"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.lbl_code = null;
e.lbl_time = null;
e.lbl_rmb = null;
e.item_data = null;
return e;
}
e.prototype.setItemData = function(t) {
return a(this, void 0, void 0, function() {
return c(this, function(e) {
switch (e.label) {
case 0:
return [ 4, this.initItem(t) ];

case 1:
e.sent();
return [ 2 ];
}
});
});
};
e.prototype.initItem = function(t) {
this.item_data = t;
this.lbl_rmb.string = t.amount + "元";
this.lbl_time.string = mk.time.getNowDayString(1e3 * t.applyTime);
this.lbl_code.string = t.withdrawalCode ? "红包码：" + t.withdrawalCode : "";
};
e.prototype.clickCopy = function() {
s.default.setClipboard(this.item_data.withdrawalCode);
mk.tip.pop("复制成功");
};
r([ p({
displayName: "lbl红包码",
type: cc.Label
}) ], e.prototype, "lbl_code", void 0);
r([ p({
displayName: "lbl时间",
type: cc.Label
}) ], e.prototype, "lbl_time", void 0);
r([ p({
displayName: "lbl毛币",
type: cc.Label
}) ], e.prototype, "lbl_rmb", void 0);
return r([ u ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {
"../../../mk/system/JsbSystem": "JsbSystem"
} ],
RedBagCode: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f7616rh8MtO1ZZziaU2Xf1w", "RedBagCode");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.scroll_view = null;
e.lbl_none = null;
e.videoPre = null;
e.coolTime = !1;
e.videoNode = null;
return e;
}
e.prototype.start = function() {
this.initList();
};
e.prototype.initList = function() {
var t = gData.cashNormal.getListDataHavCode();
this.scroll_view.node.emit("srollview-init", t);
this.initNoneItem(t);
};
e.prototype.initNoneItem = function(t) {
var e = t.length;
this.lbl_none.node.active = !e;
};
e.prototype.clickTeach = function() {
mk.audio.playEffect("button");
if (!this.coolTime) {
this.coolTime = !0;
gData.redCodeData.teachVideoType = 1;
console.log("clickTeach");
this.videoNode = cc.instantiate(this.videoPre);
this.videoNode.getChildByName("video").on("completed", this.onCompleted, this);
this.node.addChild(this.videoNode);
}
};
e.prototype.onCompleted = function() {
this.videoNode.getChildByName("video").off("completed", this.onCompleted, this);
this.videoNode.destroy();
mk.audio.setResumeMusic();
this.coolTime = !1;
};
r([ s({
type: cc.ScrollView,
displayName: "滚动视图"
}) ], e.prototype, "scroll_view", void 0);
r([ s({
displayName: "lbl暂无提现",
type: cc.Label
}) ], e.prototype, "lbl_none", void 0);
r([ s(cc.Prefab) ], e.prototype, "videoPre", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
RedCodeData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "04852gTGntFzLZT6/tJUeSA", "RedCodeData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../../mk/data/Data"), c = cc._decorator.ccclass, s = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.init_data = !1;
e.money = 0;
e.code = "";
e.teachVideoType = 1;
return e;
}
e.prototype.openRedCode = function(t, e) {
this.money = t;
this.code = e;
this.init_data = !0;
};
return r([ c ], e);
}(a.Data);
n.default = s;
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data"
} ],
RedCode: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c41b5+3RSVEG7N5eu3qKlqZ", "RedCode");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../../mk/system/JsbSystem"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.labOfficial = null;
e.labRed = null;
e.labMoney = null;
e.labRedCode = null;
e.parNode = null;
e.videoPre = null;
e.videoNode = null;
e.officialStr = "白羊游戏社";
e.redCodeStr = "领红包";
e.code = "";
e.coolTime = !1;
return e;
}
e.prototype.start = function() {
mk.ad.showNativeAd(4);
this.coolTime = !1;
this.labOfficial.string = "“" + this.officialStr + "”";
this.labRed.string = "“" + this.redCodeStr + "”";
};
e.prototype.update = function() {
gData.redCodeData.init_data && this.init(gData.redCodeData.money, gData.redCodeData.code);
};
e.prototype.lateUpdate = function() {
gData.redCodeData.init_data = !1;
};
e.prototype.init = function(t, e) {
this.labMoney.string = t.toFixed(2) + "元";
this.code = e;
this.labRedCode.string = "提现红包码：" + this.code;
};
e.prototype.clickCopyOfficial = function() {
mk.audio.playEffect("button");
a.default.setClipboard(this.officialStr);
};
e.prototype.clickTeach = function() {
mk.audio.playEffect("button");
if (!this.coolTime) {
this.coolTime = !0;
gData.redCodeData.teachVideoType = 1;
console.log("clickTeach");
this.videoNode = cc.instantiate(this.videoPre);
this.videoNode.getChildByName("video").on("completed", this.onCompleted, this);
this.node.addChild(this.videoNode);
}
};
e.prototype.onCompleted = function() {
this.videoNode.getChildByName("video").off("completed", this.onCompleted, this);
this.videoNode.destroy();
mk.audio.setResumeMusic();
this.coolTime = !1;
};
e.prototype.clickCopyRedCode = function() {
mk.audio.playEffect("button");
a.default.setClipboard(this.code);
};
e.prototype.closeCallBack = function() {
mk.audio.playEffect("button");
mk.audio.setResumeMusic();
};
e.prototype.onClickClose = function() {
mk.ad.destroyNativeAd();
};
r([ l(cc.Label) ], e.prototype, "labOfficial", void 0);
r([ l(cc.Label) ], e.prototype, "labRed", void 0);
r([ l(cc.Label) ], e.prototype, "labMoney", void 0);
r([ l(cc.Label) ], e.prototype, "labRedCode", void 0);
r([ l(cc.Node) ], e.prototype, "parNode", void 0);
r([ l(cc.Prefab) ], e.prototype, "videoPre", void 0);
return r([ s ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {
"../../../mk/system/JsbSystem": "JsbSystem"
} ],
RedeemData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "eac1eb1LzpDVby7tKxQi4wj", "RedeemData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, a = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var c = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.init_redeemData = !1;
e._redeemData = null;
e.init_btnChange = !1;
e.showBtn = !0;
return e;
}
Object.defineProperty(e.prototype, "redeemData", {
get: function() {
return this._redeemData;
},
set: function(t) {
this._redeemData = t;
this.init_redeemData = !0;
this.showBtn = 1 == this.redeemData.code;
this.init_btnChange = !0;
},
enumerable: !1,
configurable: !0
});
e.prototype.init = function() {
this.redeemGetRedemption();
};
e.prototype.redeemExchange = function(t) {
return r(this, void 0, void 0, function() {
var e, n;
return a(this, function(o) {
switch (o.label) {
case 0:
e = {
code: t
};
return [ 4, mk.http.sendData("redemption/exchange", e) ];

case 1:
return 0 != (n = o.sent()).errcode ? [ 2 ] : [ 2, n ];
}
});
});
};
e.prototype.redeemGetRedemption = function() {
return r(this, void 0, void 0, function() {
var t, e;
return a(this, function(n) {
switch (n.label) {
case 0:
t = {};
return [ 4, mk.http.sendData("redemption/getRedemption", t) ];

case 1:
if (0 != (e = n.sent()).errcode) return [ 2 ];
this.redeemData = e.data;
return [ 2, e ];
}
});
});
};
return e;
}(t("../../../mk/data/Data").Data);
n.default = c;
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data"
} ],
RedeemNode: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "040b1TUzGlJj5hHtE/7jGBR", "RedeemNode");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = t("../../../mk/system/JsbSystem"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.txtGiftName = null;
e.videoPre = null;
e.rds = [];
e.rd_imgs = [];
e.rd_txts = [];
e.inputBox = null;
e.suc_node = null;
e.suc_node_panel = null;
e.suc_rds = [];
e.suc_rd_imgs = [];
e.suc_rd_txts = [];
e.videoNode = null;
e.rewardData = null;
e.coolTime = !1;
return e;
}
e.prototype.onEnable = function() {
gData.redeem.init_redeemData = !0;
};
e.prototype.update = function() {
gData.redeem.init_redeemData && this.InitData();
};
e.prototype.lateUpdate = function() {
gData.redeem.init_redeemData = !1;
};
e.prototype.InitData = function() {
var t = this, e = gData.redeem.redeemData.redemption;
if (e.content) {
this.txtGiftName.string = e.title;
this.rewardData = e.content;
for (var n = 0, o = this.rds; n < o.length; n++) o[n].active = !1;
for (var i = 0, r = this.suc_rds; i < r.length; i++) r[i].active = !1;
for (var a = function(e) {
c.rds[e].active = !0;
c.suc_rds[e].active = !0;
cc.loader.loadRes("game/texture/coin/" + c.rewardData[e].type, cc.SpriteFrame, function(n, o) {
n && console.log("img load err:" + JSON.stringify(n));
t.rd_imgs[e].spriteFrame = o;
t.suc_rd_imgs[e].spriteFrame = o;
});
c.rd_txts[e].string = mk.math.format(c.rewardData[e].count);
c.suc_rd_txts[e].string = mk.math.format(c.rewardData[e].count);
}, c = this, s = 0; s < this.rewardData.length; s++) a(s);
} else mk.ui.closePanel("module/redeem/RedeemNode");
};
e.prototype.Click_RedeemBtn = function() {
return a(this, void 0, void 0, function() {
var t;
return c(this, function(e) {
switch (e.label) {
case 0:
console.log("---RedeemCode: " + this.inputBox.string);
return "" == this.inputBox.string ? [ 3, 2 ] : [ 4, gData.redeem.redeemExchange(this.inputBox.string) ];

case 1:
if ((t = e.sent()) && 1 == t.data.code) {
console.log("兑换成功");
this.suc_node_panel.scale = 0;
this.suc_node.active = !0;
cc.tween(this.suc_node_panel).to(.2, {
scale: 1
}, {
easing: "backOut"
}).start();
} else mk.tip.pop(t.data.msg);
return [ 3, 3 ];

case 2:
mk.tip.pop("请输入兑换码");
e.label = 3;

case 3:
return [ 2 ];
}
});
});
};
e.prototype.Click_TeachBtn = function() {
return a(this, void 0, void 0, function() {
return c(this, function() {
mk.audio.playEffect("button");
if (this.coolTime) return [ 2 ];
this.coolTime = !0;
console.log("clickTeach");
gData.redCodeData.teachVideoType = 2;
this.videoNode = cc.instantiate(this.videoPre);
this.videoNode.getChildByName("video").on("completed", this.onCompleted, this);
this.node.addChild(this.videoNode);
return [ 2 ];
});
});
};
e.prototype.onCompleted = function() {
this.videoNode.getChildByName("video").off("completed", this.onCompleted, this);
this.videoNode.destroy();
this.coolTime = !1;
};
e.prototype.clickCopyOfficial = function() {
mk.audio.playEffect("button");
s.default.setClipboard("白羊游戏社");
};
e.prototype.Click_GetBtn = function() {
return a(this, void 0, void 0, function() {
var t;
return c(this, function(e) {
switch (e.label) {
case 0:
this.suc_node.active = !1;
for (t = 0; t < this.rewardData.length; t++) {
mk.audio.playEffect("rewardClose");
mk.fly.PlayCoinAnim(this.rewardData[t].type, 5, cc.v2(0, -300), cc.v2(0, 0));
}
return [ 4, gData.redeem.redeemGetRedemption() ];

case 1:
e.sent();
return [ 2 ];
}
});
});
};
r([ p(cc.Label) ], e.prototype, "txtGiftName", void 0);
r([ p(cc.Prefab) ], e.prototype, "videoPre", void 0);
r([ p(cc.Node) ], e.prototype, "rds", void 0);
r([ p(cc.Sprite) ], e.prototype, "rd_imgs", void 0);
r([ p(cc.Label) ], e.prototype, "rd_txts", void 0);
r([ p(cc.EditBox) ], e.prototype, "inputBox", void 0);
r([ p(cc.Node) ], e.prototype, "suc_node", void 0);
r([ p(cc.Node) ], e.prototype, "suc_node_panel", void 0);
r([ p(cc.Node) ], e.prototype, "suc_rds", void 0);
r([ p(cc.Sprite) ], e.prototype, "suc_rd_imgs", void 0);
r([ p(cc.Label) ], e.prototype, "suc_rd_txts", void 0);
return r([ u ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {
"../../../mk/system/JsbSystem": "JsbSystem"
} ],
RewardData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "28b82uc1lxM/rQfcspoYwyD", "RewardData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
n.RewardData = void 0;
var r = t("../../../mk/data/Data"), a = t("../GameData"), c = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.add_redbag_value = 0;
e._data = [];
e.subType = 1;
return e;
}
Object.defineProperty(e.prototype, "data", {
get: function() {
return this._data;
},
set: function(t) {
this._data = t;
},
enumerable: !1,
configurable: !0
});
e.prototype.addReward = function() {
for (var t = gData.reward.data.length, e = 0; e < t; e++) gData.reward.data[e].rewardType == a.RewardType.redBag ? gData.gameData.gameData.redMoney += gData.reward.data[e].rewardNum : gData.reward.data[e].rewardType == a.RewardType.rmb || gData.reward.data[e].rewardType == a.RewardType.pigRmb && (gData.gameData.gameData.piggyBank += gData.reward.data[e].rewardNum);
gData.reward.data = [];
};
e.prototype.flyCoinAnim = function() {
var t = this;
if (gData.reward.data && gData.reward.data.length) for (var e = gData.reward.data.length, n = 0; n < e; n++) {
var o = gData.gameData.gameStyle.icon_hb;
gData.reward.data[n].rewardType == a.RewardType.redBag ? o = gData.gameData.gameStyle.icon_hb : gData.reward.data[n].rewardType == a.RewardType.rmb || gData.reward.data[n].rewardType == a.RewardType.pigRmb && (o = gData.gameData.gameStyle.icon_zb);
var i = o.parent.convertToWorldSpaceAR(o.getPosition()), r = (gData.gameData.gameStyle.node.parent.convertToNodeSpaceAR(i), 
new cc.Vec2(0, -300));
mk.fly.PlayCoinAnim(gData.reward.data[n].rewardType, 10, r, i, function() {
t.addReward();
});
}
};
return e;
}(r.Data);
n.RewardData = c;
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data",
"../GameData": "GameData"
} ],
Reward: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "43f3akkA71HA76UhTj/R19X", "Reward");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s, l = t("../../../before/GamePlay"), u = t("../../data/AdData"), p = t("../../data/GameData"), d = cc._decorator, h = d.ccclass, f = d.property;
(function(t) {
t[t.none = 0] = "none";
t[t.luck = 1] = "luck";
t[t.mission = 2] = "mission";
})(s || (s = {}));
var y = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.lid_type = s.none;
e.node_luck = null;
e.node_mission = null;
e.anim_open_redbag = null;
e.btn_watch_video = null;
e.node_coin = null;
e.lbl_reward_value = null;
e.hb_star = null;
e.spr_cash_out = null;
e.lbl_cash_out = null;
e.lbl_cash = null;
e.cur_stage = s.none;
return e;
}
e.prototype.onLoad = function() {
this.hb_star.active = !1;
this.lbl_reward_value.string = "0";
};
e.prototype.start = function() {
mk.ad.showBannerAd();
mk.ad.checkShowInterByChance();
this.initLid();
this.initCashOutStyle(gData.gameData.gameData.redMoney);
};
e.prototype.update = function() {
gData.reward.add_redbag_value && this.initCashOutStyle(gData.gameData.gameData.redMoney + gData.reward.add_redbag_value);
gData.reward.adData && this.watchVideoCall();
};
e.prototype.lateUpdate = function() {
gData.reward.add_redbag_value = 0;
gData.reward.adData = null;
};
e.prototype.initLid = function() {
if (this.lid_type === s.none) {
this.node_luck.active = !1;
this.node_mission.active = !1;
this.btn_watch_video.node.active = !1;
this.watchVideoCall();
} else if (this.lid_type === s.luck) {
this.node_luck.active = !0;
this.node_mission.active = !1;
this.btn_watch_video.node.active = !0;
this.cur_stage = s.luck;
mk.audio.playEffect("reward");
} else if (this.lid_type === s.mission) {
this.node_luck.active = !1;
this.node_mission.active = !0;
this.btn_watch_video.node.active = !0;
this.cur_stage = s.mission;
mk.audio.playEffect("reward");
}
};
e.prototype.initCashOutStyle = function(t) {
void 0 === t && (t = 0);
var e = gData.redBagCash.cash_bar, n = gData.redBagCash.getItemDataByIndex(e);
if (n) {
var o = t > n.type_value ? n.type_value : t;
this.lbl_cash.string = n.money / 100 + "元";
this.lbl_cash_out.string = o + "/" + n.type_value;
var i = o / n.type_value >= 1 ? 1 : o / n.type_value;
cc.tween(this.spr_cash_out).to(i, {
fillRange: i
}).start();
}
};
e.prototype.clickWatchVideo = function() {
cc.log("看广告请求");
this.lid_type === s.mission ? mk.ad.watchAd(function(t) {
mk.console.log("watchAD:" + t);
t && gData.adData.watchVideo(u.AdFun.settlement);
}) : mk.ad.watchAd(function(t) {
mk.console.log("watchAD:" + t);
if (t) {
gData.adData.watchVideo(2 === gData.reward.subType ? u.AdFun.checkpoint : u.AdFun.bubble);
gData.reward.subType = null;
}
});
};
e.prototype.watchVideoCall = function() {
return a(this, void 0, void 0, function() {
var t, e, n, o, i, r;
return c(this, function(a) {
switch (a.label) {
case 0:
gData.reward.adData && (gData.reward.data = gData.reward.adData.videoRedMoney.videoRewardList);
if (!gData.reward.data || !gData.reward.data.length) return [ 2 ];
mk.audio.playEffect("rewardOpen");
this.hb_star.active = !0;
this.cur_stage = s.none;
if ((t = gData.reward.data.length) >= 2) for (e = 0; e < t; e++) if (gData.reward.data[e].rewardType === p.RewardType.redBag) {
n = gData.reward.data.splice(e, 1);
gData.reward.data.unshift(n[0]);
break;
}
if (gData.reward.data[0].rewardType !== p.RewardType.redBag) return [ 3, 2 ];
o = this.node_coin;
return [ 4, mk.loader.load("game/texture/coin/" + p.RewardType.redBag, cc.SpriteFrame) ];

case 1:
o.spriteFrame = a.sent();
return [ 3, 4 ];

case 2:
i = this.node_coin;
return [ 4, mk.loader.load("game/texture/coin/" + gData.reward.data[0].rewardType, cc.SpriteFrame) ];

case 3:
i.spriteFrame = a.sent();
a.label = 4;

case 4:
r = gData.reward.data[0].rewardNum || 0;
this.lbl_reward_value.string = "" + r;
this.anim_open_redbag.play();
this.node_luck.active = !1;
this.node_mission.active = !1;
this.btn_watch_video.node.active = !1;
gData.reward.data[0].rewardType === p.RewardType.redBag && (gData.reward.add_redbag_value = gData.reward.data[0].rewardNum);
return [ 2 ];
}
});
});
};
e.prototype.clickGetReward = function() {
cc.log("获取奖励：", gData.reward.data);
gData.reward.flyCoinAnim();
};
e.prototype.clickCashOut = function() {
mk.ui.openPanel("module/redBagCash/redBagCash");
};
e.prototype.clickNextMission = function() {
l.default.Inst.nextLevel();
};
e.prototype.clickBack = function() {
l.default.Inst.restart(!1);
l.default.Inst.node.active = !1;
};
e.prototype.onDestroy = function() {
this.cur_stage === s.none && mk.audio.playEffect("rewardClose");
};
e.prototype.onClickClose = function() {
mk.ad.destroyNativeAd();
mk.ad.checkShowInterByChance();
};
r([ f({
displayName: "红包类型",
type: cc.Enum(s),
tooltip: "none无类型，luck幸运红包，mission通关红包"
}) ], e.prototype, "lid_type", void 0);
r([ f({
displayName: "幸运红包",
type: cc.Node
}) ], e.prototype, "node_luck", void 0);
r([ f({
displayName: "通关红包",
type: cc.Node
}) ], e.prototype, "node_mission", void 0);
r([ f({
displayName: "开红包动画",
type: cc.Animation
}) ], e.prototype, "anim_open_redbag", void 0);
r([ f({
displayName: "按钮看视频",
type: cc.Button
}) ], e.prototype, "btn_watch_video", void 0);
r([ f({
displayName: "货币图标",
type: cc.Sprite
}) ], e.prototype, "node_coin", void 0);
r([ f({
displayName: "奖励数量",
type: cc.Label
}) ], e.prototype, "lbl_reward_value", void 0);
r([ f({
displayName: "星星闪闪效果",
type: cc.Node
}) ], e.prototype, "hb_star", void 0);
r([ f({
displayName: "spr提现进度",
type: cc.Sprite
}) ], e.prototype, "spr_cash_out", void 0);
r([ f({
displayName: "lbl提现进度",
type: cc.Label
}) ], e.prototype, "lbl_cash_out", void 0);
r([ f({
displayName: "提现金额",
type: cc.Label
}) ], e.prototype, "lbl_cash", void 0);
return r([ h ], e);
}(cc.Component);
n.default = y;
cc._RF.pop();
}, {
"../../../before/GamePlay": "GamePlay",
"../../data/AdData": "AdData",
"../../data/GameData": "GameData"
} ],
RopeSwung: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "93753AIt45HwoqU8o6Vee0w", "RopeSwung");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, c = a.ccclass, s = a.property, l = a.executeInEditMode, u = a.playOnFocus, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.angle = 15;
e.time = 1;
e._edit_play = !1;
e.edit_playing = !1;
return e;
}
Object.defineProperty(e.prototype, "edit_play", {
get: function() {
this._edit_play && !this.edit_playing && this.initShakeSlow();
this.edit_playing = this._edit_play;
return this._edit_play;
},
set: function(t) {
this._edit_play = t;
t || this.stop();
},
enumerable: !1,
configurable: !0
});
e.prototype.onLoad = function() {};
e.prototype.start = function() {
this.initShakeSlow();
};
e.prototype.initShakeSlow = function() {
var t = this.node, e = cc.tween().to(this.time, {
angle: {
value: this.angle,
easing: "sineOut"
}
}), n = cc.tween().to(this.time, {
angle: {
value: 0,
easing: "sineIn"
}
}), o = cc.tween().to(this.time, {
angle: {
value: -this.angle,
easing: "sineOut"
}
}), i = cc.tween().to(this.time, {
angle: {
value: 0,
easing: "sineIn"
}
}), r = cc.tween().sequence(e, n, o, i);
cc.tween(t).then(r).repeatForever().start();
};
e.prototype.stop = function() {
this.node.stopAllActions();
};
r([ s({
displayName: "摆动角度"
}) ], e.prototype, "angle", void 0);
r([ s({
displayName: "摆动时间",
tooltip: "摆动1/4距离消耗的时间"
}) ], e.prototype, "time", void 0);
r([ s({
displayName: "编辑器预览"
}) ], e.prototype, "edit_play", null);
return r([ c, l(), u() ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
RotateAround: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "74eaeUz5/xGSZ3xJR1/kJQo", "RotateAround");
var o, i, r = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Axis = void 0;
(function(t) {
t[t.positiveX = 0] = "positiveX";
t[t.positiveY = 1] = "positiveY";
t[t.negativeX = 2] = "negativeX";
t[t.negativeY = 3] = "negativeY";
})(i = n.Axis || (n.Axis = {}));
var c = cc._decorator, s = c.ccclass, l = c.property, u = c.executeInEditMode, p = c.playOnFocus, d = function(t) {
r(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.target = null;
e.clockwise = !0;
e.timePerRound = 10;
e.faceToTarget = !1;
e.faceAxis = i.negativeY;
e.auto_start = !1;
e._edit_play = !1;
e.angle = 0;
e.radius = 0;
e.isRotating = !1;
return e;
}
Object.defineProperty(e.prototype, "edit_play", {
get: function() {
this._edit_play && !this.radius && this.run();
this.isRotating = this._edit_play;
return this._edit_play;
},
set: function(t) {
this._edit_play = t;
},
enumerable: !1,
configurable: !0
});
e.prototype.start = function() {
this.auto_start && this.run();
};
e.prototype.update = function(t) {
if (this.isRotating && this.target) {
var e = Math.PI / 180 * this.angle;
this.node.x = this.target.x + this.radius * Math.cos(e);
this.node.y = this.target.y + this.radius * Math.sin(e);
if (this.faceToTarget) switch (this.faceAxis) {
case i.positiveX:
this.node.angle = this.angle + 180;
break;

case i.positiveY:
this.node.angle = this.angle + 90;
break;

case i.negativeX:
this.node.angle = this.angle;
break;

case i.negativeY:
this.node.angle = this.angle - 90;
}
var n = t * (360 / this.timePerRound);
this.clockwise ? this.angle -= n : this.angle += n;
this.angle >= 360 ? this.angle %= 360 : this.angle <= -360 && (this.angle %= -360);
}
};
e.prototype.run = function(t, e, n, o, i) {
t && (this.target = t);
e && (this.clockwise = e);
n && (this.timePerRound = n);
o && (this.faceToTarget = o);
i && (this.faceAxis = i);
if (!this.target) return cc.log("No target!");
if (!this.isRotating) {
this.angle = this.getAngle(this.target.getPosition(), this.node.getPosition());
this.radius = this.getDistance(this.target.getPosition(), this.node.getPosition());
this.isRotating = !0;
}
};
e.prototype.stop = function() {
this.isRotating = !1;
};
e.prototype.getAngle = function(t, e) {
return Math.atan((e.y - t.y) / (e.x - t.x));
};
e.prototype.getDistance = function(t, e) {
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
};
a([ l({
type: cc.Node,
tooltip: "围绕旋转的目标"
}) ], e.prototype, "target", void 0);
a([ l({
tooltip: "顺时针旋转"
}) ], e.prototype, "clockwise", void 0);
a([ l({
tooltip: "旋转一圈花费的时间"
}) ], e.prototype, "timePerRound", void 0);
a([ l({
tooltip: "是否始终面向目标节点"
}) ], e.prototype, "faceToTarget", void 0);
a([ l({
type: cc.Enum(i),
tooltip: "面向目标节点的轴：\n- PositiveX：正 X 轴\n- PositiveY：正 Y 轴\n- NegativeX：负 X 轴\n- NegativeY：负 Y 轴",
visible: function() {
return this.faceToTarget;
}
}) ], e.prototype, "faceAxis", void 0);
a([ l({
tooltip: "自动开始旋转"
}) ], e.prototype, "auto_start", void 0);
a([ l({
displayName: "编辑器预览"
}) ], e.prototype, "edit_play", null);
return a([ s, u(), p() ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {} ],
Rule: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3785cT9t0BKM73CkHfOQdMj", "Rule");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.scrollView = null;
e.lbl_content = null;
e.btn_close = null;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.update = function() {
gData.setting.init_rule_tyle && this.setContent(gData.setting.rule_type);
};
e.prototype.lateUpdate = function() {
gData.setting.init_rule_tyle = !1;
};
e.prototype.setContent = function(t) {
void 0 === t && (t = 0);
for (var e = t ? gData.loginData.privacy_data : gData.loginData.rule_data, n = "", o = 0; o < e.length; o++) n += e[o] + "\n";
this.lbl_content.string = n;
this.scrollView.scrollToTop();
};
r([ s({
type: cc.ScrollView,
displayName: "滚动条"
}) ], e.prototype, "scrollView", void 0);
r([ s({
type: cc.Label,
displayName: "内容"
}) ], e.prototype, "lbl_content", void 0);
r([ s({
type: cc.Button,
displayName: "关闭"
}) ], e.prototype, "btn_close", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
ScoreEnergy: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "fd61c/SDq9JW7QhxHiM8Ykg", "ScoreEnergy");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../GamePlay"), c = t("../../mgr/PoolMgr"), s = cc._decorator, l = s.ccclass, u = (s.property, 
function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.score = 0;
return e;
}
e.prototype.start = function() {};
e.prototype.update = function() {
if (a.default.Inst.ifGetPass) {
mk.console.log("[到达位置]过关啦11111", this.node.x, this.node.y);
c.default.Inst.recyclePoolPrefab(c.NODEPOOLPREFABTYPE.ScoreEnergy, this.node);
var t = a.default.Inst.curGetScore + this.score;
a.default.Inst.curGetScore = t;
}
};
e.prototype.init = function(t, e, n) {
var o = this;
this.node.getComponent(cc.ParticleSystem).resetSystem();
this.node.x = t;
this.node.y = e;
var i = a.default.Inst.node_progressUI.x, r = a.default.Inst.node_progressUI.y + a.default.Inst.node_redPacketIcon.y;
a.default.Inst.finalGetScore += n;
cc.tween(this.node).to(1, {
x: i,
y: r
}, {
easing: "smooth"
}).call(function() {
c.default.Inst.recyclePoolPrefab(c.NODEPOOLPREFABTYPE.ScoreEnergy, o.node);
if (!a.default.Inst.ifGetPass) {
var t = a.default.Inst.curGetScore + n;
a.default.Inst.curGetScore = t;
}
}).start();
};
return r([ l ], e);
}(cc.Component));
n.default = u;
cc._RF.pop();
}, {
"../../GamePlay": "GamePlay",
"../../mgr/PoolMgr": "PoolMgr"
} ],
SelectCellItemBtn: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e8b95pOPehKPZhmoQnbaZAT", "SelectCellItemBtn");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../GamePlay"), c = t("../../data/GameConst"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.spr_icon = null;
e.type = 0;
return e;
}
e.prototype.start = function() {
this.node.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
};
e.prototype.init = function(t) {
var e = this;
this.type = t;
this.spr_icon.node.width = 70;
this.spr_icon.node.height = 70;
mk.loader.load("game/texture/cellItemIcon/" + c.default.iconIndex + "/" + this.type, cc.SpriteFrame).then(function(t) {
e.spr_icon.spriteFrame = t;
});
};
e.prototype.onClick = function() {
a.default.Inst.node_changeCellItemUI.active = !1;
a.default.Inst.changeCellItemType(this.type);
};
r([ u(cc.Sprite) ], e.prototype, "spr_icon", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {
"../../GamePlay": "GamePlay",
"../../data/GameConst": "GameConst"
} ],
SelectSceneItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "9d3b6Lu9dhMg7Y4yEuxQFkw", "SelectSceneItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.spr_selectScene = null;
e.sceneIndex = null;
return e;
}
e.prototype.start = function() {};
e.prototype.init = function(t) {
var e = this;
void 0 === t && (t = null);
this.sceneIndex = t;
mk.loader.load("selectScene/" + this.sceneIndex, cc.SpriteFrame).then(function(t) {
e.spr_selectScene = t;
});
};
r([ s(cc.Sprite) ], e.prototype, "spr_selectScene", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
SetGray: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f67a9SEPlBL8rHHpVX6g1ZW", "SetGray");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.normal = null;
e.gray = null;
e.grayState = !1;
e.lastState = !1;
e.spArr = null;
e.btnArr = null;
e.labArr = null;
e.labArrC = [];
e.outLineArr = null;
e.outLineArrC = [];
e.labRichArr = null;
e.labRichArrC = [];
e.grayColor = new cc.Color(166, 166, 166, 255);
e.grayOutLineColor = new cc.Color(230, 230, 230, 255);
e.skeArr = null;
return e;
}
e.prototype.onLoad = function() {
this.spArr = this.node.getComponentsInChildren(cc.Sprite);
this.btnArr = this.node.getComponentsInChildren(cc.Button);
this.labArr = this.node.getComponentsInChildren(cc.Label);
this.outLineArr = this.node.getComponentsInChildren(cc.LabelOutline);
this.labRichArr = this.node.getComponentsInChildren(cc.RichText);
this.skeArr = this.node.getComponentsInChildren(sp.Skeleton);
this.setGray(this.grayState);
};
e.prototype.setGray = function(t) {
if (this.lastState != t) {
this.lastState = t;
if (t) {
for (var e = this.spArr.length, n = 0; n < e; n++) this.spArr[n].setMaterial(0, this.gray);
for (var o = this.btnArr.length, i = 0; i < o; i++) {
this.btnArr[i].enableAutoGrayEffect = !0;
this.btnArr[i].grayMaterial = this.gray;
this.btnArr[i].interactable = !1;
}
for (var r = this.labArr.length, a = 0; a < r; a++) {
this.labArrC[a] = this.labArr[a].node.color;
this.labArr[a].node.color = this.grayColor;
}
for (var c = this.outLineArr.length, s = 0; s < c; s++) {
this.outLineArrC[s] = this.outLineArr[s].color;
this.outLineArr[s].color = this.grayOutLineColor;
}
for (var l = this.labRichArr.length, u = 0; u < l; u++) {
this.labRichArrC[u] = this.labRichArr[u].node.color;
this.labRichArr[u].node.color = this.grayColor;
}
} else {
for (e = this.spArr.length, n = 0; n < e; n++) this.spArr[n].setMaterial(0, this.normal);
for (o = this.btnArr.length, i = 0; i < o; i++) this.btnArr[i].interactable = !0;
for (r = this.labArr.length, a = 0; a < r; a++) this.labArr[a].node.color = this.labArrC[a];
for (c = this.outLineArr.length, s = 0; s < c; s++) this.outLineArr[s].color = this.outLineArrC[s];
for (l = this.labRichArr.length, u = 0; u < l; u++) this.labRichArr[u].node.color = this.labRichArrC[u];
}
} else console.log("和上次设置相同");
};
r([ s(cc.Material) ], e.prototype, "normal", void 0);
r([ s(cc.Material) ], e.prototype, "gray", void 0);
r([ s({
type: !1,
displayName: "是否置灰"
}) ], e.prototype, "grayState", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
SettingData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3d0224MBK1EGqKYUAV3jFQF", "SettingData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SettingData = void 0;
var o = function() {
function t() {
this.init_rule_tyle = null;
this._rule_type = 0;
}
Object.defineProperty(t.prototype, "rule_type", {
get: function() {
return this._rule_type;
},
set: function(t) {
this._rule_type = t;
this.init_rule_tyle = !0;
},
enumerable: !1,
configurable: !0
});
return t;
}();
n.SettingData = o;
cc._RF.pop();
}, {} ],
Setting: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6cec48K3X9GK6QSjqp7IWnc", "Setting");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = t("../../../mk/system/JsbSystem"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.img_head = null;
e.lbl_nickname = null;
e.lbl_id = null;
e.img_music = null;
e.img_effect = null;
e.lbl_version = null;
e.node_rule = null;
return e;
}
e.prototype.onLoad = function() {
this.initData();
};
e.prototype.start = function() {
mk.ad.showNativeAd(4);
};
e.prototype.initData = function() {
return a(this, void 0, void 0, function() {
var t, e, n, o, i;
return c(this, function(r) {
switch (r.label) {
case 0:
console.log("=== gData.wechatData.unionid", gData.wechatData.unionid);
console.log("=== gData.wechatData.nickName", gData.wechatData.nickName);
this.lbl_id.string = "ID:" + gData.wechatData.unionid;
this.lbl_nickname.string = gData.wechatData.nickName;
t = "module/setting/texture/" + (mk.audio.getSwitchMusic() ? "on" : "off");
e = "module/setting/texture/" + (mk.audio.getSwitchEffect() ? "on" : "off");
n = this.img_music;
return [ 4, mk.loader.load(t, cc.SpriteFrame) ];

case 1:
n.spriteFrame = r.sent();
o = this.img_effect;
return [ 4, mk.loader.load(e, cc.SpriteFrame) ];

case 2:
o.spriteFrame = r.sent();
console.log("=== gData.wechatData.avatar", gData.wechatData.avatar);
return [ 4, mk.loader.loadRemote(gData.wechatData.avatar + "?aaa=aa.jpg", null) ];

case 3:
i = r.sent();
this.img_head.spriteFrame = new cc.SpriteFrame(i);
console.log("=== loadHead:", i);
return [ 2 ];
}
});
});
};
e.prototype.clickCopy = function() {
mk.audio.playEffect("button");
s.default.setClipboard(gData.wechatData.unionid);
mk.tip.pop("复制成功");
};
e.prototype.clickMusic = function() {
return a(this, void 0, void 0, function() {
var t, e;
return c(this, function(n) {
switch (n.label) {
case 0:
mk.audio.switchMusicFunc();
mk.audio.playEffect("button");
t = "module/setting/texture/" + (mk.audio.getSwitchMusic() ? "on" : "off");
e = this.img_music;
return [ 4, mk.loader.load(t, cc.SpriteFrame) ];

case 1:
e.spriteFrame = n.sent();
return [ 2 ];
}
});
});
};
e.prototype.clickEffect = function() {
return a(this, void 0, void 0, function() {
var t, e;
return c(this, function(n) {
switch (n.label) {
case 0:
mk.audio.switchEffectFunc();
mk.audio.playEffect("button");
t = "module/setting/texture/" + (mk.audio.getSwitchEffect() ? "on" : "off");
e = this.img_effect;
return [ 4, mk.loader.load(t, cc.SpriteFrame) ];

case 1:
e.spriteFrame = n.sent();
return [ 2 ];
}
});
});
};
e.prototype.clickUpdate = function() {};
e.prototype.onClickWxAuth = function() {
if (!gData.loginData.isAuth) {
mk.ui.closePanel(this.node.name);
s.default.WxAuth();
}
};
e.prototype.clickRule = function(t) {
return a(this, void 0, void 0, function() {
return c(this, function() {
gData.setting.rule_type = parseInt(t);
return [ 2 ];
});
});
};
e.prototype.update = function() {};
e.prototype.onDestroy = function() {};
e.prototype.onClickClose = function() {
mk.ad.destroyNativeAd();
mk.ad.checkShowInterByChance();
};
r([ p({
type: cc.Sprite,
displayName: "头像"
}) ], e.prototype, "img_head", void 0);
r([ p({
type: cc.Label,
displayName: "昵称"
}) ], e.prototype, "lbl_nickname", void 0);
r([ p({
type: cc.Label,
displayName: "ID"
}) ], e.prototype, "lbl_id", void 0);
r([ p({
type: cc.Sprite,
displayName: "音乐开关"
}) ], e.prototype, "img_music", void 0);
r([ p({
type: cc.Sprite,
displayName: "音效开关"
}) ], e.prototype, "img_effect", void 0);
r([ p({
type: cc.Label,
displayName: "版本号"
}) ], e.prototype, "lbl_version", void 0);
return r([ u ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {
"../../../mk/system/JsbSystem": "JsbSystem"
} ],
SignData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b2ee58BiJFGUom3EJKNupVS", "SignData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, a = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SignData = void 0;
var c = t("../../../mk/data/Data"), s = t("../GameData"), l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.init_data = !1;
e._c_sign = [];
e.list_data = [];
return e;
}
e.prototype.init = function() {
if (gData.gameData.configs.SignIn) {
gData.gameData.configs.SignIn.forEach(function(t) {
for (var e in t) t[e] = parseInt(t[e]);
});
this.c_sign = gData.gameData.configs.SignIn;
}
};
Object.defineProperty(e.prototype, "c_sign", {
get: function() {
return this._c_sign;
},
set: function(t) {
this._c_sign = t;
this.init_data = !0;
},
enumerable: !1,
configurable: !0
});
e.prototype.initListData = function() {
for (var t = [], e = 0; e < 30; ) {
for (var n = [], o = 0; o < 3; o++) {
var i = this.c_sign[e];
n.push(i);
e++;
}
t.push(n);
}
this.list_data = t;
};
e.prototype.getStateByDay = function(t) {
return t <= gData.gameData.gameData.signInDay ? s.RewardState.none : 0 == gData.gameData.gameData.isSignInToday && t == gData.gameData.gameData.signInDay + 1 ? s.RewardState.unlock : s.RewardState.lock;
};
e.prototype.haveSignDay = function() {
return !(gData.gameData.gameData.signInDay >= this.c_sign.length);
};
e.prototype.signComplete = function() {
return r(this, void 0, void 0, function() {
var t, e, n;
return a(this, function(o) {
switch (o.label) {
case 0:
gData.gameData.gameData.signInDay++;
gData.gameData.gameData.isSignInToday = 1;
if ((t = this.c_sign[gData.gameData.gameData.signInDay - 1]).rewardType !== s.RewardType.redBag) return [ 3, 1 ];
gData.reward.data = [ t ];
mk.ui.openPanel("module/reward/reward");
return [ 3, 4 ];

case 1:
if (t.rewardType !== s.RewardType.rmb) return [ 3, 3 ];
e = {};
return [ 4, mk.http.sendRequest("readyCash", "POST", JSON.stringify(e)) ];

case 2:
if (0 != (n = o.sent()).errcode) {
mk.tip.pop("系统异常");
return [ 2 ];
}
if (0 == n.CashMode) {
gData.receiptNotice.receip_rmb = t.rewardNum;
gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
mk.ui.openPanel("module/receiptNotice/receiptNotice");
} else n.CashMode;
return [ 3, 4 ];

case 3:
if (t.rewardType === s.RewardType.pigRmb) {
gData.reward.data = [ {
rewardNum: t.rewardNum,
rewardType: t.rewardType
} ];
mk.ui.openPanel("module/reward/reward");
}
o.label = 4;

case 4:
return [ 2 ];
}
});
});
};
e.prototype.getItemIndexByCanSign = function() {
for (var t = 0, e = this.list_data.length, n = 0; n < e; n++) for (var o = this.list_data[n].length, i = 0; i < o; i++) {
var r = this.getStateByDay(this.list_data[n][i].loginDay);
if (0 == gData.gameData.gameData.isSignInToday) {
if (r === s.RewardState.unlock) return n;
} else if (r === s.RewardState.lock) return n;
}
return t;
};
return e;
}(c.Data);
n.SignData = l;
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data",
"../GameData": "GameData"
} ],
SignIconItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "233bfi4S/FHSYKyekkgMW0Z", "SignIconItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s, l = t("../../data/GameData"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_cash = null;
e.node_redbag = null;
e.node_money = null;
e.lbl_day = null;
e.node_mask = null;
e.node_gou = null;
e.icon_data = {
id: 0,
rewardType: 0,
rewardNum: 0,
loginDay: 0,
videoNum: 0
};
return e;
}
e.prototype.setItemData = function(t) {
return a(this, void 0, void 0, function() {
return c(this, function(e) {
switch (e.label) {
case 0:
return [ 4, this.initIcon(t) ];

case 1:
e.sent();
return [ 2 ];
}
});
});
};
e.prototype.initIcon = function(t) {
this.icon_data = t;
if (this.icon_data) {
this.lbl_day.string = "第" + this.icon_data.loginDay + "天";
if (this.icon_data.rewardType == l.RewardType.rmb || this.icon_data.rewardType == l.RewardType.pigRmb) {
this.node_cash.active = !0;
this.node_redbag.active = !1;
this.lbl_day.node.getComponent(cc.LabelOutline).color = cc.color(s.cash);
} else {
this.node_cash.active = !1;
this.node_redbag.active = !0;
this.lbl_day.node.getComponent(cc.LabelOutline).color = cc.color(s.red_bag);
}
var e = gData.sign.getStateByDay(this.icon_data.loginDay);
if (e == l.RewardState.none) {
this.node_mask.active = !0;
this.node_gou.active = !0;
this.node_money.active = !1;
} else if (e == l.RewardState.unlock) {
this.node_mask.active = !1;
this.node_gou.active = !1;
} else if (e == l.RewardState.lock) {
this.node_mask.active = !1;
this.node_gou.active = !1;
}
} else this.node.active = !1;
};
r([ d({
displayName: "提现样式",
type: cc.Node
}) ], e.prototype, "node_cash", void 0);
r([ d({
displayName: "红包样式",
type: cc.Node
}) ], e.prototype, "node_redbag", void 0);
r([ d({
displayName: "现金提示",
type: cc.Node
}) ], e.prototype, "node_money", void 0);
r([ d({
displayName: "天数",
type: cc.Label
}) ], e.prototype, "lbl_day", void 0);
r([ d({
displayName: "蒙版",
type: cc.Node
}) ], e.prototype, "node_mask", void 0);
r([ d({
displayName: "勾",
type: cc.Node
}) ], e.prototype, "node_gou", void 0);
return r([ p ], e);
}(cc.Component);
n.default = h;
(function(t) {
t[t.red_bag = "#EB3A0E"] = "red_bag";
t[t.cash = "#2AB718"] = "cash";
})(s || (s = {}));
cc._RF.pop();
}, {
"../../data/GameData": "GameData"
} ],
SignItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "64cb2tAChJMy5muSxd7Pi4r", "SignItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.sign_icon_pos = [];
e.pre_icon = null;
e.arr_icon = [];
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {};
e.prototype.setItemData = function(t) {
return a(this, void 0, void 0, function() {
return c(this, function(e) {
switch (e.label) {
case 0:
return [ 4, this.initItem(t) ];

case 1:
e.sent();
return [ 2 ];
}
});
});
};
e.prototype.initItem = function(t) {
for (var e = this.sign_icon_pos.length, n = 0; n < e; n++) {
var o = t[n], i = this.arr_icon[n];
if (!i) {
(i = cc.instantiate(this.pre_icon)).parent = this.node;
i.setPosition(this.sign_icon_pos[n].getPosition());
this.arr_icon[n] = i;
}
i.getComponent("SignIconItem").setItemData(o);
}
};
r([ u({
type: cc.Node,
displayName: "位置组件"
}) ], e.prototype, "sign_icon_pos", void 0);
r([ u({
type: cc.Prefab
}) ], e.prototype, "pre_icon", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
Sign: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "92c1epESLhJSLrId9Dkn6Wd", "Sign");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../../mk/system/JsbSystem"), c = t("../../data/AdData"), s = t("../../data/GameData"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.scroll_view = null;
e.anim_btn = null;
e.tableview = null;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {
mk.ad.showNativeAd(4);
gData.sign.initListData();
gData.sign.init_data = !0;
this.initScollView();
};
e.prototype.initScollView = function() {
var t = gData.sign.list_data;
this.scroll_view.node.emit("srollview-init", t);
this.tableview = this.scroll_view.node.getComponent("TableView");
var e = gData.sign.getItemIndexByCanSign();
this.tableview.contentMoveByIndex(e);
};
e.prototype.update = function() {
gData.sign.init_data ? this.initBtnStyle() : gData.sign.adData && this.getReward();
};
e.prototype.lateUpdate = function() {
gData.sign.init_data = !1;
gData.sign.adData = null;
};
e.prototype.clickReceiveReward = function() {
mk.audio.playEffect("button");
if (1 != gData.gameData.gameData.isSignInToday && gData.sign.haveSignDay()) {
var t = gData.sign.getItemIndexByCanSign();
gData.sign.c_sign[t].rewardType !== s.RewardType.rmb || gData.loginData.isAuth ? mk.ad.watchAd(function(t) {
mk.console.log("watchAD:" + t);
t && gData.adData.watchVideo(c.AdFun.sign);
}) : a.default.WxAuth();
}
};
e.prototype.getReward = function() {
var t = gData.sign.getItemIndexByCanSign();
gData.sign.signComplete();
this.tableview.resetItemData(t, gData.sign.list_data[t]);
};
e.prototype.initBtnStyle = function() {
if (0 == gData.gameData.gameData.isSignInToday && gData.sign.haveSignDay()) {
this.anim_btn.play();
this.anim_btn.getComponent("SetGray").setGray(!1);
} else {
this.anim_btn.stop();
this.anim_btn.node.scale = 1;
this.anim_btn.getComponent("SetGray").setGray(!0);
}
};
e.prototype.onClickClose = function() {
mk.ad.destroyNativeAd();
mk.ad.checkShowInterByChance();
};
r([ p({
type: cc.ScrollView,
displayName: "滚动视图"
}) ], e.prototype, "scroll_view", void 0);
r([ p({
type: cc.Animation,
displayName: "按钮_动画"
}) ], e.prototype, "anim_btn", void 0);
return r([ u ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {
"../../../mk/system/JsbSystem": "JsbSystem",
"../../data/AdData": "AdData",
"../../data/GameData": "GameData"
} ],
SpineEffectPlay: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "d2a29T/kkBHZbkhAfjHhUby", "SpineEffectPlay");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.spine = null;
e.ifLoop = !1;
e.curAniName = "";
e.spineAniEndCallBack = null;
e.nodePoolPrefabType = 0;
return e;
}
e.prototype.start = function() {};
e.prototype.onEnable = function() {
var t = this;
this.spine = this.getComponent(sp.Skeleton);
if (this.spine) {
this.spine.setAnimation(0, this.spine.animation, !1);
this.spine.setCompleteListener(function() {
t.spineLoopAniComplete();
});
} else mk.console.error("SpineEffectPlay 绑定的节点没有spine");
};
e.prototype.playSpineAni = function(t, e, n) {
void 0 === e && (e = !1);
void 0 === n && (n = null);
if (t) {
this.curAniName = t;
this.spine.setAnimation(0, t, e);
}
this.spineAniEndCallBack = n;
};
e.prototype.spineLoopAniComplete = function() {
this.spineAniEndCallBack && this.spineAniEndCallBack();
this.ifLoop || a.default.Inst.recyclePoolPrefab(this.nodePoolPrefabType, this.node);
};
e.prototype.clearLoopAniCompleteCallBack = function() {
this.spineAniEndCallBack = null;
};
r([ l({
type: cc.Enum(a.NODEPOOLPREFABTYPE),
serializable: !0
}) ], e.prototype, "nodePoolPrefabType", void 0);
return r([ s ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {
"../../mgr/PoolMgr": "PoolMgr"
} ],
StorageData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "714352IWzBOCowl9Oqo4DBk", "StorageData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.StorageKey = n.StorageData = void 0;
var o = function() {
function t() {
this.storageKey = "wewishyouamerrychristmaswithout996";
}
t.prototype.clear = function() {
mk.storage.clear();
};
return t;
}();
n.StorageData = o;
(function(t) {
t.loginTicket = "loginTicket";
t.isFirstIn = "isFirstIn";
t.uin = "uin";
t.sessionKey = "sessionKey";
t.nickname = "nickname";
t.isAuth = "isAuth";
t.avatar = "avatar";
})(n.StorageKey || (n.StorageKey = {}));
cc._RF.pop();
}, {} ],
StorageMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "8a8eesMu8pFOKcbgoWv4cHZ", "StorageMgr");
var o = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = cc._decorator, r = i.ccclass, a = (i.property, function() {
function t() {}
e = t;
Object.defineProperty(t, "Inst", {
get: function() {
null == this._instance && (this._instance = new e());
return this._instance;
},
enumerable: !1,
configurable: !0
});
t.prototype.getStorage = function(t) {
return cc.sys.localStorage.getItem(t) ? JSON.parse(cc.sys.localStorage.getItem(t)) : null;
};
t.prototype.setStorage = function(t, e) {
cc.sys.localStorage.setItem(t, JSON.stringify(e));
};
var e;
t._instance = null;
return e = o([ r ], t);
}());
n.default = a;
cc._RF.pop();
}, {} ],
StorageUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "897f9/OTe5ILpCRfzhdVQUi", "StorageUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {}
t.prototype.getStorage = function(t, e) {
void 0 === e && (e = !0);
var n = cc.sys.localStorage.getItem(t);
if (!n) return null;
try {
return JSON.parse(n);
} catch (t) {
return n;
}
};
t.prototype.setStorage = function(t, e, n) {
void 0 === n && (n = !0);
n && (e = mk.encrypt.encrypt(e, gData.storageData.storageKey, gData.appData.appId));
cc.sys.localStorage.setItem(t, JSON.stringify(e));
};
t.prototype.clear = function() {
cc.sys.localStorage.clear();
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
StringUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "4c029tekfZLEKj9xvuITEwf", "StringUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {
this.str_color = {
red1: "#be2c1d",
bro1: "#4E301B"
};
}
t.prototype.getTextByStringInData = function(t) {
for (var e, n, o, i, r, a, c = t, s = 0; s < t.length; ) {
e = t.indexOf("[", s);
n = t.indexOf("]", e);
if (-1 == e || -1 == n) break;
i = t.slice(e, n + 1);
a = t.slice(e + 1, e + 5);
var l = this.str_color[a];
if (l) {
o = t.slice(e + 6, n);
r = this.getColorStringColor(o, l);
c = c.replace(i, r);
}
s = n;
}
for (var u, p = 0, d = 0, h = 0; p < c.length; ) {
d = c.indexOf("{", p);
h = c.indexOf("}", d);
if (-1 == d || -1 == h) break;
u = c.slice(d, h + 1);
var f = c.slice(d + 1, d + 3), y = u.slice(4, u.length - 1);
if (y) {
var _ = "<size = " + f + ">" + y + "</color>";
c = c.replace(u, _);
}
p = h;
}
return c;
};
t.prototype.getColorStringColor = function(t, e) {
void 0 === t && (t = "#FFFFFF");
return "<color=" + e + ">" + t + "</color>";
};
t.prototype.arabicToChinese = function(t) {
var e = [ "", "万", "亿", "万亿", "亿亿" ], n = [ "", "十", "百", "千" ], o = [ "零", "一", "二", "三", "四", "五", "六", "七", "八", "九" ], i = 0, r = "", a = "", c = !1, s = function(t) {
for (var e = "", i = 0, r = !0; t > 0; ) {
var a = t % 10, c = "";
if (0 === a) {
if (!r) {
r = !0;
e = o[a] + e;
}
} else {
r = !1;
(1 !== i || t > 1) && (c = o[a]);
e = (c += n[i]) + e;
}
++i;
t = Math.floor(t / 10);
}
return e;
};
if (0 === t) return o[0];
for (;t > 0; ) {
var l = t % 1e4;
c && (a = o[0] + a);
r = s(l);
a = (r += 0 !== l ? e[i] : e[0]) + a;
c = l < 1e3 && l > 0;
t = Math.floor(t / 1e4);
++i;
}
return a;
};
t.prototype.getNewLimitStr = function(t, e) {
var n = t.split(""), o = "";
e = n.length >= e ? e : n.length;
for (var i = 0; i < e; i++) o += i == e - 1 ? "..." : n[i];
return o;
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
TabSwitching: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3087dH5gWhCfZNksqAzC+wm", "TabSwitching");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.arr_btn_tab = [];
e.tab_count = 0;
e.func = null;
return e;
}
e.prototype.onLoad = function() {
this.tab_count = this.arr_btn_tab.length;
this.initTabState();
this.initBtnEvent();
this.node.on("comp-cur-tab", this.curTabType, this);
this.node.on("comp-cur-click", this.onTabBtnClick, this);
};
e.prototype.start = function() {};
e.prototype.initBtnEvent = function() {
for (var t = 0; t < this.tab_count; t++) this.arr_btn_tab[t].node.on("click", this.onClockTabCall, this);
};
e.prototype.onClockTabCall = function(t, e) {
this.initTabState();
var n = t.node;
n.getChildByName("img_style_1").active = !0;
n.getChildByName("img_style_2").active = !1;
this.func && this.func(t, e);
};
e.prototype.onTabBtnClick = function(t, e) {
this.func = t.bind(e);
};
e.prototype.initTabState = function() {
for (var t = 0; t < this.tab_count; t++) {
this.arr_btn_tab[t].node.getChildByName("img_style_1").active = !1;
this.arr_btn_tab[t].node.getChildByName("img_style_2").active = !0;
}
};
e.prototype.curTabType = function(t) {
for (var e = 0; e < this.tab_count; e++) if (e === t) {
this.onClockTabCall(this.arr_btn_tab[e], e);
return;
}
};
r([ s({
type: cc.Button,
displayName: "页签组",
tooltip: "按钮target需要有值"
}) ], e.prototype, "arr_btn_tab", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
TableView: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "9a31drXM+9NCKYkF9D78zlF", "TableView");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.pre_item = [];
e.scr_item = [];
e.itemInterval = 0;
e.itemData = null;
e.scrollView = null;
e.item = null;
e.content = null;
e.layerHeight = null;
e.firstItemIndex = 0;
e.lastItemIndex = 0;
e.firstItemData = {};
e.lastItemData = {};
e.itemArr = [];
e.itemNode = [];
e.itemPosMap = new Map();
e.initItemData = !0;
e.count = 0;
e.itemCanMoveDown = null;
e.itemCanMoveUp = null;
e.lastResetItemInfoHeight = null;
e.lastResetItemIndex = null;
return e;
}
e.prototype.onLoad = function() {
this.initPro();
};
e.prototype.initPro = function() {
this.scrollView = this.node.getComponent(cc.ScrollView);
this.content = this.scrollView.content;
this.item = this.pre_item;
this.layerHeight = this.node.height;
for (var t = 0; t < this.item.length; t++) this.itemNode[t] = cc.instantiate(this.item[t]);
this.node.on("srollview-init", this.init, this);
this.node.on("srollview-update", this.updateList, this);
};
e.prototype.init = function(t, e) {
void 0 === e && (e = !1);
if (!t[0]) return !1;
this.clearItem();
this.itemData = t;
this.firstItemIndex = 0;
this.lastItemIndex = 0;
this.firstItemData = {};
this.lastItemData = {};
this.itemArr = [];
this.itemPosMap = new Map();
this.initItemData = !0;
this.count = 0;
if (!e) {
this.initItem();
this.initItemPos(0);
this.scrollView.node.on("scrolling", this.callback, this);
}
};
e.prototype.updateList = function(t) {
this.itemData = t;
for (var e = this.itemArr.length, n = 0; n < e; n++) if (this.itemData[n]) {
if (!this.itemArr[n]) {
var o = 0;
n > 0 && (o = this.itemArr[n - 1].y - this.itemArr[n - 1].height - this.itemInterval);
var i = this.addItemNode(n, o);
this.updateContentHeigh(this.itemArr[n].height - i.y);
}
var r = this.itemArr[n].getComponent(this.scr_item[this.itemData[n].pfbType || 0]);
r && r.setItemData(this.itemData[n], this);
} else {
this.itemArr[n].destroy();
this.itemArr[n] = null;
}
};
e.prototype.initItemPos = function(t) {
for (var e = this.itemData.length, n = t; n < e; n++) {
var o = {};
o.startPos = 0 === n ? 0 : this.itemPosMap.get(n - 1).endPos;
var i = this.itemData[n].pfbType || 0;
o.endPos = o.startPos + this.itemNode[i].height + this.itemInterval;
this.itemPosMap.set(n, o);
}
e > 0 && this.updateContentHeigh(this.itemPosMap.get(e - 1).endPos);
};
e.prototype.initItem = function() {
for (var t = 0, e = 0; e < this.itemData.length && !(this.content.height > this.layerHeight && ++t > 2); e++) {
var n = 0;
e > 0 && (n = this.itemArr[e - 1].y - this.itemArr[e - 1].height - this.itemInterval);
var o = this.addItemNode(e, n);
this.updateContentHeigh(this.itemArr[e].height - o.y);
}
};
e.prototype.addItemNode = function(t, e) {
var n = this.itemData[t].pfbType || 0, o = cc.instantiate(this.itemNode[n]);
o.parent = this.content;
o.pfbType = n;
o.index = t;
o.y = 0 === t ? 0 : e;
o.x = 0;
var i = o.getComponent(this.scr_item[n]);
i && i.setItemData(this.itemData[t], this);
this.itemArr.push(o);
return o;
};
e.prototype.updateContentHeigh = function(t) {
this.content.height = t > this.layerHeight ? t : this.layerHeight;
};
e.prototype.callback = function() {
if (this.content.height > this.layerHeight) {
var t = this.scrollView.getScrollOffset().y, e = t + this.layerHeight;
if (t < 0) return;
if (this.initItemData) {
this.initItemData = !1;
this.updateFirstItemIndex();
this.itemCanMoveDown = !0;
this.updateLastItemIndex();
this.itemCanMoveDown = !1;
}
if (t > this.firstItemData.endPos) {
this.lastItemIndex + 1 < this.itemData.length && this.updateFirstItemIndex();
this.count++;
}
if (e > this.lastItemData.endPos && this.lastItemIndex + 1 < this.itemData.length) {
this.itemCanMoveDown = !0;
this.updateLastItemIndex();
this.itemCanMoveDown = !1;
}
if (e < this.lastItemData.startPos) {
this.updateLastItemIndex();
this.count--;
}
if (t < this.firstItemData.startPos) {
this.itemCanMoveUp = !0;
this.updateFirstItemIndex();
this.itemCanMoveUp = !1;
}
}
};
e.prototype.updateFirstItemIndex = function() {
var t = this.firstItemIndex;
this.itemCanMoveUp && t > this.getItemIndex()[0] && t > 0 && this.itemMoveUp(this.firstItemIndex - 1);
this.updateItemIndex();
};
e.prototype.updateLastItemIndex = function() {
var t = this.lastItemIndex;
this.itemCanMoveDown && t < this.getItemIndex()[1] && t + 1 < this.itemData.length && this.itemMoveDown(this.lastItemIndex + 1);
this.updateItemIndex();
};
e.prototype.updateItemIndex = function() {};
e.prototype.getItemIndex = function() {
var t = this, e = this.scrollView.getScrollOffset().y, n = e + this.layerHeight, o = [];
this.itemPosMap.forEach(function(i, r) {
var a = i.startPos <= e && i.endPos > e, c = (i.startPos >= e && i.endPos, i.startPos <= n && i.endPos > n);
if (a) {
t.firstItemData.startPos = i.startPos;
t.firstItemData.endPos = i.endPos;
t.firstItemIndex = r;
o.push(r);
}
if (c) {
t.lastItemData.startPos = i.startPos;
t.lastItemData.endPos = i.endPos;
t.lastItemIndex = r;
o.push(r);
}
});
return o;
};
e.prototype.itemMoveUp = function(t) {
if (!(t < 0 || this.lastItemIndex + 1 < t || t + 1 > this.itemData.length)) {
this.hasItem(t) || this.itemMove(t, -this.itemPosMap.get(t).startPos);
t++;
return this.itemMoveUp(t);
}
};
e.prototype.itemMoveDown = function(t) {
if (!(t < 0 || this.firstItemIndex - 1 > t || t + 1 > this.itemData.length)) {
this.hasItem(t) || this.itemMove(t, -this.itemPosMap.get(t).startPos);
t--;
return this.itemMoveDown(t);
}
};
e.prototype.hasItem = function(t) {
for (var e = 0; e < this.itemArr.length; e++) if (this.itemArr[e].index === t) return !0;
return !1;
};
e.prototype.itemMove = function(t, e) {
for (var n = 0; n < this.itemArr.length; n++) {
var o = this.itemArr[n].index < this.firstItemIndex - 1, i = this.itemArr[n].index > this.lastItemIndex + 1, r = this.itemArr[n].pfbType === (this.itemData[t].pfbType || 0);
if (o && r || i && r) {
this.itemArr[n].index = t;
this.itemArr[n].y = e;
var a = this.itemArr[n].getComponent(this.scr_item[this.itemArr[n].pfbType]);
a && a.setItemData(this.itemData[t], this);
return;
}
}
this.addItemNode(t, e);
};
e.prototype.contentMoveByIndex = function(t) {
var e = this.itemPosMap.get(t).startPos;
this.scrollView.scrollToOffset(new cc.Vec2(this.content.x, e), .5);
};
e.prototype.getPosIndex = function(t) {
for (var e = 0, n = this.itemPosMap.entries(); e < n.length; e++) {
var o = n[e], i = o[0], r = o[1];
if (r.endPos > t && r.startPos <= t) return i;
}
};
e.prototype.addItem = function(t) {
this.itemData.push(t);
this.initItemPos(this.itemData.length - 1);
var e = this.itemPosMap.get(this.itemData.length - 1).endPos;
if (e - this.layerHeight > 0) {
for (var n = e - this.layerHeight, o = this.itemData.length - 1; o >= 0; o--) this.itemPosMap.get(o).endPos > n && this.itemPosMap.get(o).startPos <= n && (this.firstItemIndex = o);
this.scrollView.scrollToBottom();
this.lastItemIndex = this.itemData.length - 1;
var i = this.firstItemIndex - 1 > 0 ? this.firstItemIndex - 1 : 0;
this.itemMoveUp(i);
return !0;
}
this.firstItemIndex = 0;
this.lastItemIndex = this.itemData.length - 1;
this.itemMoveUp(this.firstItemIndex);
return !1;
};
e.prototype.clearItem = function() {
this.itemData = [];
this.itemPosMap.clear();
this.scrollView.scrollToTop();
this.content.height = 0;
for (var t in this.itemArr) this.itemArr[t].destroy();
};
e.prototype.deleteItem = function(t) {
this.itemData.splice(t, 1);
var e = this.itemData.length;
if (!(e <= 0)) {
this.initItemPos(e - 1);
for (var n = 0; n < this.itemArr.length; n++) {
if (this.itemArr[n].index === t) {
this.itemArr[n].index = -1;
this.itemArr[n].y = 3e3;
}
if (this.itemArr[n].index > t) {
var o = this.itemArr[n].index;
this.itemArr[n].y = -this.itemPosMap.get(o - 1).startPos;
this.itemArr[n].index = o - 1;
}
}
this.updateContentHeigh(this.itemPosMap.get(this.itemData.length - 1).endPos);
this.lastItemIndex || this.getItemIndex();
this.itemMoveUp(this.firstItemIndex);
}
};
e.prototype.resetItemData = function(t, e) {
for (var n = 0; n < this.itemArr.length; n++) if (this.itemArr[n].index === t) {
e && (this.itemData[n] = e);
var o = this.itemArr[n].getComponent(this.scr_item[this.itemArr[n].pfbType]);
o && o.setItemData(this.itemData[t], this);
break;
}
};
e.prototype.resetItemSize = function(t, e) {
var n = function(t, e) {
for (var n = 0; n < this.itemArr.length; n++) this.itemArr[n].index > t && (this.itemArr[n].y -= e);
for (var o = 0, i = this.itemPosMap.entries(); o < i.length; o++) {
var r = i[o], a = r[0], c = r[1];
a === t && (c.endPos += e);
if (a > t) {
c.endPos += e;
c.startPos += e;
}
}
this.lastResetItemInfoHeight = e;
this.lastResetItemIndex = t;
}.bind(this);
if (null !== this.lastResetItemIndex && this.lastResetItemInfoHeight) if (this.lastResetItemIndex === t) {
n(this.lastResetItemIndex, -this.lastResetItemInfoHeight);
this.lastResetItemIndex = null;
this.lastResetItemInfoHeight = 0;
} else {
n(this.lastResetItemIndex, -this.lastResetItemInfoHeight);
n(t, e);
} else n(t, e);
this.itemMoveUp(this.firstItemIndex);
this.updateContentHeigh(this.itemPosMap.get(this.itemData.length - 1).endPos);
};
r([ s({
displayName: "预制条目",
tooltip: "脚本必须实现 setItemData 方法用于接收数据！",
type: [ cc.Prefab ]
}) ], e.prototype, "pre_item", void 0);
r([ s({
displayName: "脚本名",
tooltip: "脚本必须实现 setItemData 方法用于接收数据！",
type: [ cc.String ]
}) ], e.prototype, "scr_item", void 0);
r([ s({
displayName: "间距"
}) ], e.prototype, "itemInterval", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
TimeUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c10efJfgPlIRqo2IRARi4q9", "TimeUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {
this.offTime = 0;
}
t.prototype.setServerTime = function(t) {
this.offTime = t - Math.ceil(new Date().getTime() / 1e3);
};
t.prototype.getServerTime = function() {
return Math.ceil(new Date().getTime() / 1e3 + this.offTime);
};
t.prototype.format = function(t, e) {
void 0 === e && (e = "h:m:s");
var n = Math.floor(t / 24 / 3600), o = Math.floor(t / 3600 % 24), i = Math.floor(t % 3600 / 60), r = t % 3600 % 60;
function a(t) {
var e = t.toString();
t < 10 && (e = "0" + t);
return e;
}
-1 != e.indexOf("d") ? e = e.replace(/d/g, a(n)) : o += 24 * n;
-1 != e.indexOf("h") ? e = e.replace(/h/g, a(o)) : i += 60 * o;
-1 != e.indexOf("m") ? e = e.replace(/m/g, a(i)) : -1 != e.indexOf("h") ? r += 60 * i : r = t;
-1 != e.indexOf("s") && (e = e.replace(/s/g, a(r)));
return e;
};
t.prototype.formatWithUnit = function(t, e) {
void 0 === e && (e = "天时分秒");
var n = Math.floor(t / 24 / 3600), o = Math.floor(t / 3600 % 24), i = Math.floor(t % 3600 / 60), r = t % 3600 % 60;
function a(t, e) {
var n = t.toString();
t < 10 && (n = "0" + t);
return n + e;
}
var c = "";
-1 != e.indexOf("天") ? c += n + "天" : o += 24 * n;
-1 != e.indexOf("时") ? c += a(o, "时") : i += 60 * o;
-1 != e.indexOf("分") ? c += a(i, "分") : r += 60 * i;
-1 != e.indexOf("秒") && (c += a(r, "秒"));
return c;
};
t.prototype.getDayInYear = function(t) {
var e = new Date(t), n = e.getMonth() + 1, o = e.getFullYear(), i = e.getDate(), r = 0, a = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ], c = [ 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ];
if (o % 400 == 0 || o % 4 == 0 && o % 100 != 0) {
for (var s = 0; s < n - 1; s++) r += c[s];
return r + i;
}
for (s = 0; s < n - 1; s++) r += a[s];
return r + i;
};
t.prototype.getSecondsInDay = function(t) {
return 3600 * t.getHours() + 60 * t.getMinutes() + t.getSeconds();
};
t.prototype.getNowDayString = function(t, e) {
void 0 === e && (e = "-");
var n = t ? new Date(t) : new Date();
return n.getFullYear() + e + (n.getMonth() + 1) + e + n.getDate();
};
t.prototype.WaitForSeconds = function(t) {
return new Promise(function(e) {
setTimeout(function() {
return e();
}, 1e3 * t);
});
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
TimerSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "70a463CEglFy49OGQWrGdoc", "TimerSystem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Timer = void 0;
var r = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.timerArr = [];
return e;
}
e.prototype.startTimer = function() {
var t = this;
this.schedule(function() {
t.runTimer();
}, 1);
};
e.prototype.runTimer = function() {
for (var t = 0; t < this.timerArr.length; t++) {
var e = this.timerArr[t], n = e.callBack, o = e.target;
e.curTime--;
if (e.curTime <= 0) {
e.curTime = e.totalTime;
n.call(o);
}
}
};
e.prototype.addTimer = function(t, e, n) {
if (!this.ifHasSameTimer(e, n)) {
var o = new a();
o.curTime = t;
o.totalTime = t;
o.callBack = e;
o.target = n;
this.timerArr.push(o);
}
};
e.prototype.ifHasSameTimer = function(t, e) {
return !!this.getTimer(t, e);
};
e.prototype.getTimer = function(t, e) {
for (var n = this.timerArr.length - 1; n >= 0; n--) {
var o = this.timerArr[n];
if (o.callBack == t && o.target == e) return o;
}
return null;
};
e.prototype.removeTimer = function(t, e) {
for (var n = this.timerArr.length - 1; n >= 0; n--) {
var o = this.timerArr[n];
if (o.callBack == t && o.target == e) {
this.timerArr.splice(n, 1);
return;
}
}
};
return e;
}(cc.Component);
n.default = r;
var a = function() {
this.curTime = 0;
this.totalTime = 0;
this.callBack = null;
this.target = null;
};
n.Timer = a;
cc._RF.pop();
}, {} ],
TipItemUI: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "02682tO1G9JJJVckOx01zuP", "TipItemUI");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_bg = null;
e.label_tip = null;
return e;
}
e.prototype.start = function() {};
e.prototype.init = function(t) {
var e = this;
this.node.y = 320;
this.node.opacity = 255;
this.label_tip.string = t;
cc.tween(this.node).to(.5, {
y: 420
}).delay(.5).to(.5, {
opacity: 0
}).call(function() {
a.default.Inst.recyclePoolPrefab(a.NODEPOOLPREFABTYPE.TipItemUI, e.node);
}).start();
};
r([ l(cc.Node) ], e.prototype, "node_bg", void 0);
r([ l(cc.Label) ], e.prototype, "label_tip", void 0);
return r([ s ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {
"../../mgr/PoolMgr": "PoolMgr"
} ],
TipSpriteItemUI: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "811eeoHLilJeKK80hcZnI05", "TipSpriteItemUI");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.spr_tipSpr = null;
return e;
}
e.prototype.start = function() {};
e.prototype.init = function(t) {
var e = this;
this.spr_tipSpr.node.active = !1;
var n = "game/texture/tip/" + t;
mk.loader.load(n, cc.SpriteFrame).then(function(t) {
e.spr_tipSpr.spriteFrame = t;
e.spr_tipSpr.node.active = !0;
e.move();
});
};
e.prototype.move = function() {
var t = this;
this.node.scaleX = this.node.scaleY = 0;
cc.tween(this.node).to(.5, {
scale: 1
}, {
easing: "backOut"
}).delay(.5).to(.1, {
scale: 1.2
}).to(.2, {
scale: 0
}).call(function() {
a.default.Inst.recyclePoolPrefab(a.NODEPOOLPREFABTYPE.TipSpriteItemUI, t.node);
}).start();
};
r([ l(cc.Sprite) ], e.prototype, "spr_tipSpr", void 0);
return r([ s ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {
"../../mgr/PoolMgr": "PoolMgr"
} ],
TipSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "5b808c7i9JMAJCR/OQTRrlG", "TipSystem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.tween_time = 1;
e.src_x = 0;
e.src_y = 0;
e.tar_x = 0;
e.tar_y = 200;
e.bg_opacity = 40;
e.bg_color = new cc.Color(200, 200, 200);
e.tip_color = new cc.Color(255, 255, 255);
e.tip_size = 40;
return e;
}
e.prototype.onLoad = function() {
mk.tip = this;
};
e.prototype.start = function() {};
e.prototype.pop = function(t) {
return a(this, void 0, void 0, function() {
var e, n, o, i;
return c(this, function(r) {
switch (r.label) {
case 0:
return [ 4, mk.pool.getPrefab("game/prefab/tips") ];

case 1:
e = r.sent();
n = e.getChildByName("bg");
o = e.getChildByName("lbl");
(i = o.getComponent(cc.Label)).fontSize = this.tip_size;
i.string = t;
n.width = o.width + 20 < 200 ? 200 : o.width + 20;
e.width = n.width;
n.height = o.height + 2;
e.parent = this.node;
e.x = this.src_x;
e.y = this.src_y;
cc.tween(e).to(this.tween_time, {
x: this.tar_x,
y: this.tar_y
}).call(function() {
mk.pool.return("tips", e);
}, this).start();
return [ 2 ];
}
});
});
};
r([ u({
type: cc.Integer,
displayName: "飘动时间"
}) ], e.prototype, "tween_time", void 0);
r([ u({
type: cc.Integer,
displayName: "开始坐标x"
}) ], e.prototype, "src_x", void 0);
r([ u({
type: cc.Integer,
displayName: "开始坐标y"
}) ], e.prototype, "src_y", void 0);
r([ u({
type: cc.Integer,
displayName: "目标坐标x"
}) ], e.prototype, "tar_x", void 0);
r([ u({
type: cc.Integer,
displayName: "目标坐标y"
}) ], e.prototype, "tar_y", void 0);
r([ u({
type: cc.Integer,
displayName: "背景透明度"
}) ], e.prototype, "bg_opacity", void 0);
r([ u({
displayName: "背景颜色"
}) ], e.prototype, "bg_color", void 0);
r([ u({
displayName: "文本颜色"
}) ], e.prototype, "tip_color", void 0);
r([ u({
type: cc.Integer,
displayName: "文本字体"
}) ], e.prototype, "tip_size", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
TouchHelper: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "207f5IvRwZGGbOudGF4bfk4", "TouchHelper");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.TouchHelper = void 0;
var a = cc._decorator, c = a.ccclass, s = a.property, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.canTouch = !0;
e.onInPolygon = new cc.Component.EventHandler();
e.onOutPolygon = new cc.Component.EventHandler();
e.onTouchTap = new cc.Component.EventHandler();
e.needPolygon = !1;
e.points = [];
e.isMoved = !1;
return e;
}
e.prototype.start = function() {
this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this);
this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchCancel, this);
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
};
e.prototype.onTouchEnd = function(t) {
if (this.canTouch && this.needPolygon && this.points.length >= 3) {
var e = t.getLocation(), n = this.node.convertToNodeSpaceAR(new cc.Vec2(e.x, e.y)), o = this.pointInPoly(n, this.points);
this.isMoved || (o ? this.canTouch && this.onInPolygon && this.onInPolygon.emit([]) : this.canTouch && this.onOutPolygon && this.onOutPolygon.emit([]));
}
this.canTouch && (this.isMoved || this.canTouch && this.onTouchTap && this.onTouchTap.emit([]));
this.isMoved = !1;
};
e.prototype.onTouchMove = function(t) {
t.getTouches().length > 1 ? this.isMoved = !0 : this.isMoved = cc.Vec2.distance(t.getStartLocation(), t.getLocation()) > 20;
};
e.prototype.onTouchCancel = function() {
this.isMoved = !1;
};
e.prototype.pointInPoly = function(t, e) {
for (var n = !1, o = -1, i = e.length, r = i - 1; ++o < i; r = o) (e[o].y <= t.y && t.y < e[r].y || e[r].y <= t.y && t.y < e[o].y) && t.x < (e[r].x - e[o].x) * (t.y - e[o].y) / (e[r].y - e[o].y) + e[o].x && (n = !n);
return n;
};
r([ s({
tooltip: "是否可以点击"
}) ], e.prototype, "canTouch", void 0);
r([ s({
tooltip: "在多边形范围内产生点击",
type: cc.Component.EventHandler
}) ], e.prototype, "onInPolygon", void 0);
r([ s({
tooltip: "在多边形范围外产生点击",
type: cc.Component.EventHandler
}) ], e.prototype, "onOutPolygon", void 0);
r([ s({
tooltip: "在节点范围内产生点击",
type: cc.Component.EventHandler
}) ], e.prototype, "onTouchTap", void 0);
r([ s({
tooltip: "是否与需要多边形检查"
}) ], e.prototype, "needPolygon", void 0);
r([ s({
type: [ cc.Vec2 ],
tooltip: "多边形定点位置信息（局部坐标，至少3个点）"
}) ], e.prototype, "points", void 0);
return r([ c ], e);
}(cc.Component);
n.TouchHelper = l;
cc._RF.pop();
}, {} ],
TurnableData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "43e37VirRBM1p39LUEjYTSH", "TurnableData");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, a = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.TurnableData = void 0;
var c = t("../../../mk/data/Data"), s = t("../AdData"), l = t("../GameData"), u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.requestFinish = !1;
e.leftTimes = 0;
return e;
}
e.prototype.init = function() {
this.config = gData.gameData.configs.TurntableCfg;
this.leftTimes = null == gData.gameData.gameData.turntableTimes ? 0 : gData.gameData.gameData.turntableTimes;
};
e.prototype.requestData = function() {
return r(this, void 0, void 0, function() {
var t;
return a(this, function(e) {
switch (e.label) {
case 0:
return [ 4, mk.http.sendData("initialTurntable", {}) ];

case 1:
if (0 != (t = e.sent()).errcode) return [ 2 ];
this.leftTimes = t.data.turntableTimes;
this.requestFinish = !0;
return [ 2 ];
}
});
});
};
e.prototype.setAdData = function(e) {
t.prototype.setAdData.call(this, e);
this.leftTimes = this.leftTimes < 1 ? 0 : this.leftTimes - 1;
gData.gameData.setProp(l.GameProp.turnable_leftTimes, this.leftTimes);
};
e.prototype.draw = function() {
mk.ad.watchAd(function(t) {
mk.console.log("watchAD:" + t);
t && gData.adData.watchVideo(s.AdFun.turntable);
});
};
return e;
}(c.Data);
n.TurnableData = u;
cc._RF.pop();
}, {
"../../../mk/data/Data": "Data",
"../AdData": "AdData",
"../GameData": "GameData"
} ],
TurnableItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "2df9fpSWF1G1a/os2Ev7z5Y", "TurnableItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.icon = null;
e.lbl_name = null;
return e;
}
e.prototype.initData = function(t) {
return a(this, void 0, void 0, function() {
var e;
return c(this, function(n) {
switch (n.label) {
case 0:
e = this.icon;
return [ 4, mk.loader.load("module/turnable/texture/hb" + t, cc.SpriteFrame) ];

case 1:
e.spriteFrame = n.sent();
this.lbl_name.string = 1 == t ? "少量红包" : 2 == t ? "中量红包" : "大量红包";
return [ 2 ];
}
});
});
};
r([ u(cc.Sprite) ], e.prototype, "icon", void 0);
r([ u(cc.Label) ], e.prototype, "lbl_name", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
Turnable: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c5972Si4H1MMp7ugnferq77", "Turnable");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = t("../../component/BtnClosePanel"), l = t("../../data/AdData"), u = t("./TurnableItem"), p = cc._decorator, d = p.ccclass, h = p.property, f = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_turn = null;
e.node_items = [];
e.btn_draw = null;
e.btn_close = null;
e.lbl_left = null;
e.starAni = null;
e.baozhaAni = null;
e.endAngle = 0;
e.startDraw = !1;
e.slowDis = 720;
e.slowAngle = 0;
e.perAdd = 10;
e.perMinus = 0;
return e;
}
e.prototype.onLoad = function() {
this.baozhaAni.node.active = !1;
this.initData();
};
e.prototype.initData = function() {
this.rewardWeights = [ 0, 0, 0 ];
if (gData.turnable.config) for (var t = 0; t < gData.turnable.config.length; t++) {
var e = this.node_items[t].getComponent(u.default), n = parseInt(gData.turnable.config[t].type);
this.rewardWeights[n - 1]++;
e.initData(n);
}
gData.turnable.requestData();
this.updateLeftTimes();
};
e.prototype.clickDraw = function() {
gData.turnable.leftTimes > 0 && mk.ad.watchAd(function(t) {
mk.console.log("watchAD:" + t);
t && gData.adData.watchVideo(l.AdFun.turntable);
});
};
e.prototype.play = function(t) {
return a(this, void 0, void 0, function() {
var e, n, o;
return c(this, function(i) {
switch (i.label) {
case 0:
e = this;
return [ 4, mk.audio.playEffect("turnableplay", !0) ];

case 1:
e.audioId = i.sent();
this.btn_close.getComponent(s.default).block_click = !0;
this.perAdd = 10;
this.node_turn.angle += 1800;
n = 0;
o = 0;
for (;o < this.rewardWeights.length - 1; ) {
if (!(o < t - 1)) {
n += Math.floor(Math.random() * this.rewardWeights[o]);
break;
}
n += this.rewardWeights[o];
o++;
}
this.endAngle = -60 * n;
this.slowAngle = this.endAngle + this.slowDis;
this.perMinus = this.perAdd / (this.slowDis / (.5 * this.perAdd));
this.startDraw = !0;
this.starAni.resetSystem();
this.starAni.node.active = !0;
return [ 2 ];
}
});
});
};
e.prototype.playOver = function() {
return a(this, void 0, void 0, function() {
return c(this, function(t) {
switch (t.label) {
case 0:
mk.audio.stopEffect(this.audioId);
this.btn_close.getComponent(s.default).block_click = !1;
mk.audio.playEffect("turnplateDrawEnd");
this.updateLeftTimes();
return [ 4, mk.time.WaitForSeconds(.7) ];

case 1:
t.sent();
mk.ui.openPanel("module/reward/reward");
return [ 2 ];
}
});
});
};
e.prototype.updateLeftTimes = function() {
this.lbl_left.string = "剩余：<color=#FFED99>" + gData.turnable.leftTimes + "</color>次";
};
e.prototype.update = function() {
if (gData.turnable.requestFinish) {
this.updateLeftTimes();
gData.turnable.requestFinish = !1;
}
if (gData.turnable.adData) {
if (gData.turnable.adData && gData.turnable.adData.videoRedMoney) {
var t = gData.turnable.adData.videoRedMoney.redMoneyType;
this.play(t);
gData.reward.data = gData.turnable.adData.videoRedMoney.videoRewardList;
}
gData.turnable.adData = null;
}
if (this.startDraw) {
this.node_turn.angle -= this.perAdd;
this.node_turn.angle <= this.slowAngle && (this.perAdd <= 4 * this.perMinus ? this.perAdd -= .01 * this.perMinus : this.perAdd -= this.perMinus);
if (this.node_turn.angle <= this.endAngle) {
this.startDraw = !1;
this.starAni.node.active = !1;
this.baozhaAni.node.active = !0;
this.baozhaAni.setAnimation(0, "animation", !1);
this.playOver();
}
}
};
e.prototype.onDestroy = function() {};
e.prototype.onClickClose = function() {
mk.ad.checkShowInterByChance();
};
r([ h(cc.Node) ], e.prototype, "node_turn", void 0);
r([ h(cc.Node) ], e.prototype, "node_items", void 0);
r([ h(cc.Node) ], e.prototype, "btn_draw", void 0);
r([ h(cc.Sprite) ], e.prototype, "btn_close", void 0);
r([ h(cc.RichText) ], e.prototype, "lbl_left", void 0);
r([ h(cc.ParticleSystem) ], e.prototype, "starAni", void 0);
r([ h(sp.Skeleton) ], e.prototype, "baozhaAni", void 0);
return r([ d ], e);
}(cc.Component);
n.default = f;
cc._RF.pop();
}, {
"../../component/BtnClosePanel": "BtnClosePanel",
"../../data/AdData": "AdData",
"./TurnableItem": "TurnableItem"
} ],
TweenCast: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "289ef0dnVFATL0DOb4NWYwm", "TweenCast");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.rich_text = null;
e.display_time = 5;
e.move_speed = 3;
e.wait_time = 10;
e.names = [ "拒绝寂寞", "孽緣", "祗為与妳相爱", "羙男", "浅蓝", "腊笔小东", "卡布奇诺", "苊狠幸福", "埋葬回忆", "早已该放手", "白兎", "豿疍疍", "宿命", "渗透的葬礼", "全都是虚假", "俄侑伱-直", "隱裑", "你不配我", "非主流网名", "剧终", "如果沵走了", "續雪", "默默然", "大白痴", "衮开", "越长大越不安", "寶疍疍", "爱笑的眼睛", "暧昧", "午夜", "我继续坚强", "冷温柔", "蹲在脚落", "喲妞你赞", "满足沵", "泪流", "听风在唱歌", "假装", "海岸线丶", "流年换ノ", "细数惭愧", "寂寞别说爱╮", "疯男人", "Darling", "伤狠痛", "留的住我不要", "静静的思念", "涐愿化作飞蛾", "欲", "提苏米拉", "夜凄凉", "一种矜持", "哼，涐呸", "贪婪", "一败涂地", "美如此多娇", "暧昧已落幕", "地平线" ];
e.moneys = [ .5, .8, 1, 2, 5, 10, 20, 100 ];
e.weights = [ 40, 20, 10, 10, 10, 5, 3, 2 ];
return e;
}
e.prototype.getContent = function() {
var t = this.names.length, e = Math.floor(mk.math.random(0, t, !1)), n = this.names[e];
t = this.moneys.length;
e = mk.math.randomByWeight(this.weights, 100, !1);
return "<outline color=#000000 width=1><color=#19F7FF>" + n + "</color>成功提现了<color=#FCE300>" + this.moneys[e] + "元</color></outline>";
};
e.prototype.onLoad = function() {
this.play();
};
e.prototype.play = function() {
this.reset();
cc.tween(this.node).delay(this.wait_time).call(this.rickPlay.bind(this)).start();
};
e.prototype.rickPlay = function() {
this.node.active = !0;
cc.tween(this.rich_text.node).to(this.move_speed, {
x: 16
}).delay(this.display_time).to(this.move_speed, {
x: -450
}).call(this.play.bind(this)).start();
};
e.prototype.reset = function() {
this.node.active = !1;
this.rich_text.node.x = 450;
this.rich_text.string = this.getContent();
};
r([ s({
type: cc.RichText,
displayName: "公告内容"
}) ], e.prototype, "rich_text", void 0);
r([ s({
displayName: "显示时间"
}) ], e.prototype, "display_time", void 0);
r([ s({
displayName: "进出速度"
}) ], e.prototype, "move_speed", void 0);
r([ s({
displayName: "等待时间"
}) ], e.prototype, "wait_time", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
TweenEasing: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "7d939H2Xm5K75ITQ9wq0tFT", "TweenEasing");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.TweenEasing = void 0;
(function(t) {
t[t.linear = 0] = "linear";
t[t.smooth = 1] = "smooth";
t[t.fade = 2] = "fade";
t[t.quadIn = 3] = "quadIn";
t[t.quadOut = 4] = "quadOut";
t[t.quadInOut = 5] = "quadInOut";
t[t.quadOutIn = 6] = "quadOutIn";
t[t.cubicIn = 7] = "cubicIn";
t[t.cubicOut = 8] = "cubicOut";
t[t.cubicInOut = 9] = "cubicInOut";
t[t.cubicOutIn = 10] = "cubicOutIn";
t[t.quartIn = 11] = "quartIn";
t[t.quartOut = 12] = "quartOut";
t[t.quartInOut = 13] = "quartInOut";
t[t.quartOutIn = 14] = "quartOutIn";
t[t.quintIn = 15] = "quintIn";
t[t.quintOut = 16] = "quintOut";
t[t.quintInOut = 17] = "quintInOut";
t[t.quintOutIn = 18] = "quintOutIn";
t[t.sineIn = 19] = "sineIn";
t[t.sineOut = 20] = "sineOut";
t[t.sineInOut = 21] = "sineInOut";
t[t.sineOutIn = 22] = "sineOutIn";
t[t.expoIn = 23] = "expoIn";
t[t.expoOut = 24] = "expoOut";
t[t.expoInOut = 25] = "expoInOut";
t[t.expoOutIn = 26] = "expoOutIn";
t[t.circIn = 27] = "circIn";
t[t.circOut = 28] = "circOut";
t[t.circInOut = 29] = "circInOut";
t[t.circOutIn = 30] = "circOutIn";
t[t.elasticIn = 31] = "elasticIn";
t[t.elasticOut = 32] = "elasticOut";
t[t.elasticInOut = 33] = "elasticInOut";
t[t.elasticOutIn = 34] = "elasticOutIn";
t[t.backIn = 35] = "backIn";
t[t.backOut = 36] = "backOut";
t[t.backInOut = 37] = "backInOut";
t[t.backOutIn = 38] = "backOutIn";
t[t.bounceIn = 39] = "bounceIn";
t[t.bounceOut = 40] = "bounceOut";
t[t.bounceInOut = 41] = "bounceInOut";
t[t.bounceOutIn = 42] = "bounceOutIn";
})(n.TweenEasing || (n.TweenEasing = {}));
cc._RF.pop();
}, {} ],
TweenUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6679cLfL3BDsJz4U/E3dV8e", "TweenUtil");
var o = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var i, r = cc._decorator, a = r.ccclass, c = (r.property, function() {
function t() {
this.easing = i;
}
t.prototype.scale = function(t, e, n, o, i, r) {
void 0 === e && (e = .15);
void 0 === n && (n = 0);
void 0 === o && (o = 1);
t.scale = n;
var a = cc.tween().to(e, {
scale: o
}, {
easing: r
}), c = cc.tween().call(function() {
"function" == typeof i && i();
});
cc.tween(t).then(a).then(c).start();
};
t.prototype.scaleX = function(t, e, n, o, i, r) {
void 0 === e && (e = .15);
void 0 === n && (n = 0);
void 0 === o && (o = 1);
t.scaleX = n;
var a = cc.tween().to(e, {
scaleX: o
}, {
easing: r
}), c = cc.tween().call(function() {
"function" == typeof i && i();
});
cc.tween(t).then(a).then(c).start();
};
t.prototype.scaleParallelMove = function(t, e, n, o, i, r) {
void 0 === e && (e = .15);
void 0 === n && (n = 0);
void 0 === o && (o = 1);
void 0 === i && (i = cc.Vec2.ZERO);
t.scale = n;
var a = cc.tween().to(e, {
scale: o
}), c = cc.tween().to(e, {
position: new cc.Vec3(i.x, i.y, 0)
}), s = cc.tween().call(function() {
"function" == typeof r && r();
}), l = cc.tween().parallel(a, c);
cc.tween(t).then(l).then(s).start();
};
t.prototype.move = function(t, e, n, o, i, r) {
void 0 === e && (e = .15);
void 0 === n && (n = cc.Vec2.ZERO);
void 0 === o && (o = cc.Vec2.ZERO);
t.setPosition(n);
var a = cc.tween().to(e, {
position: new cc.Vec3(o.x, o.y, 0)
}, {
easing: r
}), c = cc.tween().call(function() {
"function" == typeof i && i();
});
cc.tween(t).then(a).then(c).start();
};
return o([ a ], t);
}());
n.default = c;
(function(t) {
t[t.linear = 0] = "linear";
t[t.smooth = 1] = "smooth";
t[t.fade = 2] = "fade";
t[t.quadIn = 3] = "quadIn";
t[t.quadOut = 4] = "quadOut";
t[t.quadInOut = 5] = "quadInOut";
t[t.quadOutIn = 6] = "quadOutIn";
t[t.cubicIn = 7] = "cubicIn";
t[t.cubicOut = 8] = "cubicOut";
t[t.cubicInOut = 9] = "cubicInOut";
t[t.cubicOutIn = 10] = "cubicOutIn";
t[t.quartIn = 11] = "quartIn";
t[t.quartOut = 12] = "quartOut";
t[t.quartInOut = 13] = "quartInOut";
t[t.quartOutIn = 14] = "quartOutIn";
t[t.quintIn = 15] = "quintIn";
t[t.quintOut = 16] = "quintOut";
t[t.quintInOut = 17] = "quintInOut";
t[t.quintOutIn = 18] = "quintOutIn";
t[t.sineIn = 19] = "sineIn";
t[t.sineOut = 20] = "sineOut";
t[t.sineInOut = 21] = "sineInOut";
t[t.sineOutIn = 22] = "sineOutIn";
t[t.expoIn = 23] = "expoIn";
t[t.expoOut = 24] = "expoOut";
t[t.expoInOut = 25] = "expoInOut";
t[t.expoOutIn = 26] = "expoOutIn";
t[t.circIn = 27] = "circIn";
t[t.circOut = 28] = "circOut";
t[t.circInOut = 29] = "circInOut";
t[t.circOutIn = 30] = "circOutIn";
t[t.elasticIn = 31] = "elasticIn";
t[t.elasticOut = 32] = "elasticOut";
t[t.elasticInOut = 33] = "elasticInOut";
t[t.elasticOutIn = 34] = "elasticOutIn";
t[t.backIn = 35] = "backIn";
t[t.backOut = 36] = "backOut";
t[t.backInOut = 37] = "backInOut";
t[t.backOutIn = 38] = "backOutIn";
t[t.bounceIn = 39] = "bounceIn";
t[t.bounceOut = 40] = "bounceOut";
t[t.bounceInOut = 41] = "bounceInOut";
t[t.bounceOutIn = 42] = "bounceOutIn";
})(i || (i = {}));
cc._RF.pop();
}, {} ],
UIBG: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "58495/rJOBNGoxELFSp8G2a", "UIBG");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.color = new cc.Color(0, 0, 0, 180);
e.design_block_node = null;
e.bClickClose = !1;
e.node_bg = null;
return e;
}
e.prototype.onLoad = function() {
this.initBG();
};
e.prototype.initBG = function() {
var t = mk.game.getWinSize().width, e = mk.game.getWinSize().height;
this.node_bg = this.drawColorRect(new cc.Rect(-t / 2, -e / 2, t, e));
this.node_bg.parent = this.node;
this.node_bg.zIndex = -1e4;
this.node_bg.addComponent(cc.Button);
this.node_bg.on("click", this.initClick, this);
this.design_block_node && this.design_block_node.addComponent(cc.BlockInputEvents);
};
e.prototype.initClick = function() {
this.bClickClose && this.onClickClose();
};
e.prototype.onClickClose = function() {
mk.ui.closePanel(this.node.name);
};
e.prototype.drawColorRect = function(t) {
var e = new cc.Node("colorRect");
e.setContentSize(t);
var n = e.addComponent(cc.Graphics);
n.fillColor = this.color;
n.fillRect(t.x, t.y, t.width, t.height);
return e;
};
r([ s({
displayName: "背景颜色"
}) ], e.prototype, "color", void 0);
r([ s({
displayName: "自定义屏蔽节点",
type: cc.Node
}) ], e.prototype, "design_block_node", void 0);
r([ s({
displayName: "点击关闭"
}) ], e.prototype, "bClickClose", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
UISystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "d0ea1+IO0BKJoZMInS6d9dy", "UISystem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.OpenActionType = void 0;
var a, c = cc._decorator, s = c.ccclass, l = (c.property, function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.panelParent = null;
e.isPanelOpening = !1;
e.isPanelClosing = !1;
e.curOnPanelDic = {};
e.lastOpenPanelName = "";
return e;
}
e.prototype.onLoad = function() {
mk.ui = this;
};
e.prototype.start = function() {
this.panelParent || (this.panelParent = this.node);
};
e.prototype.openPanel = function(t, e) {
void 0 === e && (e = a.normal);
var n = t.split("/"), o = n[n.length - 1], i = this;
if (!i.isPanelOpening && !i.getCurOnPanel(o)) {
i.isPanelOpening = !0;
return new Promise(function(n, r) {
mk.loader.load("" + t, cc.Prefab).then(function(t) {
i.isPanelOpening = !1;
var r = cc.instantiate(t);
i.curOnPanelDic[o] = r;
i.panelParent && (i.panelParent = i.node);
if (i.panelParent) {
i.panelParent.addChild(r);
switch (e) {
case a.normal:
break;

case a.closeLast:
i.lastOpenPanelName && i.closePanel(i.lastOpenPanelName);
break;

case a.closeOther:
for (var c = Object.keys(i.curOnPanelDic).filter(function() {}), s = 0; s < c.length; s++) {
var l = c[s];
i.closePanel(l);
}
}
i.lastOpenPanelName = o;
n(r);
} else console.error("[UISystem] UI的父节点panelParent为null,请检查脚本挂载情况");
}).catch(function(t) {
i.isPanelOpening = !1;
r(t);
});
});
}
};
e.prototype.getCurOnPanel = function(t) {
return this.curOnPanelDic[t];
};
e.prototype.closePanel = function(t, e) {
void 0 === e && (e = null);
if (!this.isPanelClosing && this.getCurOnPanel(t)) {
this.isPanelClosing = !0;
var n = this.getCurOnPanel(t), o = n.getComponent("EffectOpenAndClose");
o ? o.hideEffect(this.destroyNode.bind(this, n, t, e)) : this.destroyNode(n, t, e);
}
};
e.prototype.destroyNode = function(t, e, n) {
t.destroy();
delete this.curOnPanelDic[e];
this.isPanelClosing = !1;
n && n();
};
return r([ s ], e);
}(cc.Component));
n.default = l;
(function(t) {
t[t.normal = 0] = "normal";
t[t.closeOther = 1] = "closeOther";
t[t.closeLast = 2] = "closeLast";
})(a = n.OpenActionType || (n.OpenActionType = {}));
cc._RF.pop();
}, {} ],
UITween: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a20d9E+N7FBiIV7z1whuT6J", "UITween");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.UITween = n.TweenData = n.PropsData = void 0;
var a = t("./TweenEasing"), c = cc._decorator, s = c.ccclass, l = c.property, u = c.executeInEditMode, p = c.playOnFocus, d = function() {
function t() {
this.position = cc.Vec2.ZERO;
this.angle = 0;
this.scale = 1;
}
r([ l({
displayName: "坐标"
}) ], t.prototype, "position", void 0);
r([ l({
displayName: "旋转"
}) ], t.prototype, "angle", void 0);
r([ l({
displayName: "缩放"
}) ], t.prototype, "scale", void 0);
return r([ s("PropsData") ], t);
}();
n.PropsData = d;
var h = function() {
function t() {
this.propsData = new d();
this.duration = .3;
this.delay = 0;
this.isOffset = !1;
this.onComplete = new cc.Component.EventHandler();
this.onStart = new cc.Component.EventHandler();
this.onUpdate = new cc.Component.EventHandler();
}
r([ l({
displayName: "属性数据",
type: d
}) ], t.prototype, "propsData", void 0);
r([ l({
displayName: "持续时间",
tooltip: "单位：秒"
}) ], t.prototype, "duration", void 0);
r([ l({
displayName: "延迟时间",
tooltip: "单位：秒"
}) ], t.prototype, "delay", void 0);
r([ l({
displayName: "是否为差值"
}) ], t.prototype, "isOffset", void 0);
r([ l({
displayName: "完成回调",
tooltip: "缓动完成时触发",
type: cc.Component.EventHandler
}) ], t.prototype, "onComplete", void 0);
r([ l({
displayName: "开始回调",
tooltip: "缓动启动时触发",
type: cc.Component.EventHandler
}) ], t.prototype, "onStart", void 0);
r([ l({
displayName: "过程回调",
tooltip: "缓动更新时触发",
type: cc.Component.EventHandler
}) ], t.prototype, "onUpdate", void 0);
return r([ s("TweenData") ], t);
}();
n.TweenData = h;
var f = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.fromData = new d();
e.targetData = [];
e.target = null;
e.tweenEasing = a.TweenEasing.linear;
e.repeat = 1;
e.onOneRepeatComplete = new cc.Component.EventHandler();
e.playOnLoad = !1;
e._edit_play = !1;
e.edit_playing = !1;
return e;
}
Object.defineProperty(e.prototype, "edit_play", {
get: function() {
if (this._edit_play && !this.edit_playing) {
this.edit_playing = !0;
this.play();
}
return this._edit_play;
},
set: function(t) {
this._edit_play = t;
this.target && t && this.target.stopAllActions();
t || (this.edit_playing = !1);
},
enumerable: !1,
configurable: !0
});
e.prototype.start = function() {
!this.target && (this.target = this.node);
this.target = this.target || this.node;
this.currentRepeat = this.repeat;
this.playOnLoad && this.play();
};
e.prototype.play = function() {
if (0 == this.repeat) {
this.t = cc.tween(this.target);
this.readyPlay();
this.t = this.t.call(this.play.bind(this));
this.t.start();
} else if (this.currentRepeat) {
this.t = cc.tween(this.target);
this.readyPlay();
this.t = this.t.call(this.play.bind(this));
this.currentRepeat--;
this.t.start();
} else this.t = null;
};
e.prototype.readyPlay = function() {
var t = this, e = this;
if (this.fromData) {
this.node.setPosition(this.fromData.position.clone());
this.node.scale = this.fromData.scale;
this.node.angle = this.fromData.angle;
}
if (this.targetData.length) for (var n = function(e) {
var n = o.targetData[e];
0 != n.delay && (o.t = o.t.delay(n.delay));
var i = {
position: n.propsData.position,
scale: n.propsData.scale,
angle: n.propsData.angle
};
if (n.isOffset) {
i.position = o.node.getPosition().add(n.propsData.position);
i.scale = o.node.scale + n.propsData.scale;
i.angle = o.node.angle + n.propsData.angle;
}
o.t = o.t.to(n.duration, i, {
easing: a.TweenEasing[o.tweenEasing],
onComplete: function(e) {
n.onComplete && n.onComplete.emit([ e ]);
t.edit_playing = !1;
t._edit_play = !1;
},
onStart: function(t) {
n.onStart && n.onStart.emit([ t ]);
},
onUpdate: function(t, e) {
n.onUpdate && n.onUpdate.emit([ t, e ]);
}
});
}, o = this, i = 0; i < this.targetData.length; i++) n(i);
this.onOneRepeatComplete && (this.t = this.t.call(function() {
e.onOneRepeatComplete.emit([ t, t.t ]);
}));
};
r([ l({
displayName: "节点初始属性",
type: d
}) ], e.prototype, "fromData", void 0);
r([ l({
displayName: "节点目标属性",
type: h
}) ], e.prototype, "targetData", void 0);
r([ l({
displayName: "缓动节点",
tooltip: "要播放缓动动画的目标，不填则是当前节点",
type: cc.Node
}) ], e.prototype, "target", void 0);
r([ l({
displayName: "缓动效果",
type: cc.Enum(a.TweenEasing)
}) ], e.prototype, "tweenEasing", void 0);
r([ l({
displayName: "执行次数",
tooltip: "为0则一直重复执行"
}) ], e.prototype, "repeat", void 0);
r([ l({
displayName: "单次完成回调",
tooltip: "单次缓动序列执行完毕时触发",
type: cc.Component.EventHandler
}) ], e.prototype, "onOneRepeatComplete", void 0);
r([ l({
displayName: "自动播放"
}) ], e.prototype, "playOnLoad", void 0);
r([ l({
displayName: "编辑器预览"
}) ], e.prototype, "edit_play", null);
return r([ s, u(), p() ], e);
}(cc.Component);
n.UITween = f;
cc._RF.pop();
}, {
"./TweenEasing": "TweenEasing"
} ],
Util: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "8b634eO2UZCOZzYnNvULwu+", "Util");
var o = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = cc._decorator, r = i.ccclass, a = (i.property, function() {
function t() {}
e = t;
t.Shuffle = function(t) {
for (var e = t.length, n = e - 1; n >= 0; n--) {
var o = Math.floor(Math.random() * e), i = t[n];
t[n] = t[o];
t[o] = i;
}
return t;
};
t.cutStr = function(t, e) {
var n, o = 0, i = "";
n = t.length;
for (var r = 0; r < n; r++) {
var a = t.charAt(r);
o++;
escape(a).length > 4 && o++;
i = i.concat(a);
if (o >= e) return i.concat("...");
}
if (o < e) return t;
};
t.rnd = function(t, e) {
return Math.floor(Math.random() * (e - t + 1) + t);
};
t.has = function(t, n) {
return e._hasOwnProperty.call(t, n);
};
t.defaultCompare = function(t, e) {
return t < e ? -1 : t === e ? 0 : 1;
};
t.objSortByKey = function(t, e) {
t.length ? t.sort(function(t, n) {
var o = t[e], i = n[e];
return o < i ? -1 : o === i ? 0 : 1;
}) : mk.console.log("该对象不是数组或者元素个数为零");
};
t.defaultToString = function(t) {
return null === t ? "COLLECTION_NULL" : e.isUndefined(t) ? "COLLECTION_UNDEFINED" : e.isString(t) ? "$s " + t : "$o " + t.toString();
};
t.makeString = function(t, n) {
void 0 === n && (n = ",");
if (null === t) return "COLLECTION_NULL";
if (e.isUndefined(t)) return "COLLECTION_UNDEFINED";
if (e.isString(t)) return t.toString();
var o = "{", i = !0;
for (var r in t) if (e.has(t, r)) {
i ? i = !1 : o += n;
o = o + r + ":" + t[r];
}
return o + "}";
};
t.isFunction = function(t) {
return "function" == typeof t;
};
t.isUndefined = function(t) {
return "undefined" == typeof t;
};
t.isString = function(t) {
return "[object String]" === Object.prototype.toString.call(t);
};
t.ParseTime2Format = function(t, e) {
void 0 === e && (e = "h:m:s");
var n = Math.floor(t / 24 / 3600), o = Math.floor(t / 3600 % 24), i = Math.floor(t % 3600 / 60), r = t % 3600 % 60;
function a(t) {
var e = t.toString();
t < 10 && (e = "0" + t);
return e;
}
-1 != e.indexOf("d") ? e = e.replace(/d/g, a(n)) : o += 24 * n;
-1 != e.indexOf("h") ? e = e.replace(/h/g, a(o)) : i += 60 * o;
-1 != e.indexOf("m") ? e = e.replace(/m/g, a(i)) : -1 != e.indexOf("h") ? r += 60 * i : r = t;
-1 != e.indexOf("s") && (e = e.replace(/s/g, a(r)));
return e;
};
t.countHuBetweenToPos = function(t, e) {
return Math.atan2(e.y - t.y, e.x - t.x);
};
t.parseTimestamp = function(t) {
return (t = new Date(t)).getFullYear() + "-" + (t.getMonth() + 1 < 10 ? "0" + (t.getMonth() + 1) : t.getMonth() + 1) + "-" + (t.getDate() < 10 ? "0" + t.getDate() : t.getDate());
};
t.timestampToTime = function(t) {
var e = new Date(1e3 * t);
return e.getFullYear() + "." + (e.getMonth() + 1 < 10 ? "0" + (e.getMonth() + 1) : e.getMonth() + 1) + "." + (e.getDate() < 10 ? "0" + e.getDate() : e.getDate()) + " " + (e.getHours() < 10 ? "0" + e.getHours() : e.getHours()) + ":" + (e.getMinutes() < 10 ? "0" + e.getMinutes() : e.getMinutes()) + ":" + (e.getSeconds() < 10 ? "0" + e.getSeconds() : e.getSeconds());
};
t.numberFixed = function(t, e) {
return Number(t.toFixed(e));
};
t.versionCompareHandle = function(t, e) {
console.log("JS Custom Version Compare: version A is " + t + ", version B is " + e);
for (var n = t.split("."), o = e.split("."), i = 0; i < n.length; ++i) {
var r = parseInt(n[i]), a = parseInt(o[i] || 0);
if (r !== a) return r - a;
}
return o.length > n.length ? -1 : 0;
};
t.checkHasApk = function(t) {
var e = jsb.fileUtils.getWritablePath() + t;
return jsb.fileUtils.isFileExist(e) ? e : "";
};
t.downFile2Local = function(t, e, n, o, i) {
var r = jsb.fileUtils.getWritablePath() + e;
if (jsb) {
var a = new jsb.Downloader();
a.setOnFileTaskSuccess(function() {
console.log("DownLoadM setOnFileTaskSuccess", "");
if (n) {
console.log("DownLoadM result... ", jsb.fileUtils.isFileExist(r));
console.log("DownLoadM setOnFileTaskSuccess fullPath...", r);
n(r);
}
});
a.setOnTaskError(function(t, e, n, i) {
console.log("DownLoadM setOnTaskError", e + " ; " + n + " ; " + i);
o && o(r);
});
a.setOnTaskProgress(function(t, e, n, o) {
console.log("DownLoadM", e + " ; " + n + " ; " + o);
i && i(e, n, o);
});
a.createDownloadFileTask(t, r);
return a;
}
};
var e;
t._hasOwnProperty = Object.prototype.hasOwnProperty;
return e = o([ r ], t);
}());
n.default = a;
cc._RF.pop();
}, {} ],
VideoNode: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "67f8fl/rQBNWohIi2HJ73Cg", "VideoNode");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && 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) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.videoPlayer = null;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {
this.videoPlayer.resourceType = cc.VideoPlayer.ResourceType.LOCAL;
var t;
t = 1 == gData.redCodeData.teachVideoType ? "video/AriesGameClub" : "video/Redeem";
this.playVideo(t);
};
e.prototype.playVideo = function(t) {
var e = this;
cc.loader.loadRes(t, cc.Asset, function(t, n) {
e.videoPlayer.clip = n;
e.scheduleOnce(function() {
e.videoPlayer.play();
mk.audio.setPauseMusic();
}, 1);
});
};
r([ s(cc.VideoPlayer) ], e.prototype, "videoPlayer", void 0);
return r([ c ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
WechatData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "0aab3VQlrZMjrgZBNpwRrMu", "WechatData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.WechatData = void 0;
n.WechatData = function() {
this.ifAuth = !1;
this.code = null;
this.unionid = "123456789";
this.nickName = "点我授权提现";
this.avatar = "";
this.shareSuccess = !1;
};
cc._RF.pop();
}, {} ],
ZPathFalling: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "082f6uNVupAbqC0Fkz1/TCB", "ZPathFalling");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, c = a.ccclass, s = a.property, l = a.executeInEditMode, u = a.playOnFocus, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.play_on_load = !0;
e.onComplete = new cc.Component.EventHandler();
e._edit_play = !1;
e.edit_playing = !1;
return e;
}
Object.defineProperty(e.prototype, "edit_play", {
get: function() {
if (this._edit_play && !this.edit_playing) {
this.edit_playing = !0;
this.play();
}
return this._edit_play;
},
set: function(t) {
this._edit_play = t;
t || this.stop();
},
enumerable: !1,
configurable: !0
});
e.prototype.onLoad = function() {};
e.prototype.start = function() {
this.play_on_load && this.play();
};
e.prototype.play = function() {
var t = this, e = this.node.getPosition(), n = this.node.getPosition(), o = this.node.getPosition();
if (this.node.x >= 0) {
e.x -= 3 * this.node.width;
n.x -= 1 * this.node.width;
o.x -= 2 * this.node.width;
} else {
e.x += 3 * this.node.width;
n.x += 1 * this.node.width;
o.x += 2 * this.node.width;
}
e.y -= this.node.height / 2;
n.y -= this.node.height;
o.y -= 1.2 * this.node.height;
var i = cc.tween().to(.5, {
position: e
}, {
easing: "cubicOut"
}), r = cc.tween().to(.5, {
position: n
}, {
easing: "cubicOut"
}), a = cc.tween().to(.5, {
position: o
}, {
easing: "cubicOut"
}), c = cc.tween().call(function() {
t.edit_playing = !1;
t.edit_play = !1;
t.onComplete.handler && t.onComplete.emit([ t.node ]);
});
cc.tween(this.node).then(i).then(r).then(a).then(c).start();
};
e.prototype.stop = function() {
this.edit_playing = !1;
this.node.stopAllActions();
};
r([ s({
displayName: "自动播放"
}) ], e.prototype, "play_on_load", void 0);
r([ s({
displayName: "完成回调",
type: cc.Component.EventHandler
}) ], e.prototype, "onComplete", void 0);
r([ s({
displayName: "编辑器预览"
}) ], e.prototype, "edit_play", null);
return r([ c, l(), u() ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
aes: [ function(t, e) {
"use strict";
cc._RF.push(e, "19ca92Vo+9AL7z4EqtukKt7", "aes");
var n, o, i = i || function(t) {
var e = {}, n = e.lib = {}, o = function() {}, i = n.Base = {
extend: function(t) {
o.prototype = this;
var e = new o();
t && e.mixIn(t);
e.hasOwnProperty("init") || (e.init = function() {
e.$super.init.apply(this, arguments);
});
e.init.prototype = e;
e.$super = this;
return e;
},
create: function() {
var t = this.extend();
t.init.apply(t, arguments);
return t;
},
init: function() {},
mixIn: function(t) {
for (var e in t) t.hasOwnProperty(e) && (this[e] = t[e]);
t.hasOwnProperty("toString") && (this.toString = t.toString);
},
clone: function() {
return this.init.prototype.extend(this);
}
}, r = n.WordArray = i.extend({
init: function(t, e) {
t = this.words = t || [];
this.sigBytes = null != e ? e : 4 * t.length;
},
toString: function(t) {
return (t || c).stringify(this);
},
concat: function(t) {
var e = this.words, n = t.words, o = this.sigBytes;
t = t.sigBytes;
this.clamp();
if (o % 4) for (var i = 0; i < t; i++) e[o + i >>> 2] |= (n[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 24 - (o + i) % 4 * 8; else if (65535 < n.length) for (i = 0; i < t; i += 4) e[o + i >>> 2] = n[i >>> 2]; else e.push.apply(e, n);
this.sigBytes += t;
return this;
},
clamp: function() {
var e = this.words, n = this.sigBytes;
e[n >>> 2] &= 4294967295 << 32 - n % 4 * 8;
e.length = t.ceil(n / 4);
},
clone: function() {
var t = i.clone.call(this);
t.words = this.words.slice(0);
return t;
},
random: function(e) {
for (var n = [], o = 0; o < e; o += 4) n.push(4294967296 * t.random() | 0);
return new r.init(n, e);
}
}), a = e.enc = {}, c = a.Hex = {
stringify: function(t) {
var e = t.words;
t = t.sigBytes;
for (var n = [], o = 0; o < t; o++) {
var i = e[o >>> 2] >>> 24 - o % 4 * 8 & 255;
n.push((i >>> 4).toString(16));
n.push((15 & i).toString(16));
}
return n.join("");
},
parse: function(t) {
for (var e = t.length, n = [], o = 0; o < e; o += 2) n[o >>> 3] |= parseInt(t.substr(o, 2), 16) << 24 - o % 8 * 4;
return new r.init(n, e / 2);
}
}, s = a.Latin1 = {
stringify: function(t) {
var e = t.words;
t = t.sigBytes;
for (var n = [], o = 0; o < t; o++) n.push(String.fromCharCode(e[o >>> 2] >>> 24 - o % 4 * 8 & 255));
return n.join("");
},
parse: function(t) {
for (var e = t.length, n = [], o = 0; o < e; o++) n[o >>> 2] |= (255 & t.charCodeAt(o)) << 24 - o % 4 * 8;
return new r.init(n, e);
}
}, l = a.Utf8 = {
stringify: function(t) {
try {
return decodeURIComponent(escape(s.stringify(t)));
} catch (t) {
throw Error("Malformed UTF-8 data");
}
},
parse: function(t) {
return s.parse(unescape(encodeURIComponent(t)));
}
}, u = n.BufferedBlockAlgorithm = i.extend({
reset: function() {
this._data = new r.init();
this._nDataBytes = 0;
},
_append: function(t) {
"string" == typeof t && (t = l.parse(t));
this._data.concat(t);
this._nDataBytes += t.sigBytes;
},
_process: function(e) {
var n = this._data, o = n.words, i = n.sigBytes, a = this.blockSize, c = i / (4 * a);
e = (c = e ? t.ceil(c) : t.max((0 | c) - this._minBufferSize, 0)) * a;
i = t.min(4 * e, i);
if (e) {
for (var s = 0; s < e; s += a) this._doProcessBlock(o, s);
s = o.splice(0, e);
n.sigBytes -= i;
}
return new r.init(s, i);
},
clone: function() {
var t = i.clone.call(this);
t._data = this._data.clone();
return t;
},
_minBufferSize: 0
});
n.Hasher = u.extend({
cfg: i.extend(),
init: function(t) {
this.cfg = this.cfg.extend(t);
this.reset();
},
reset: function() {
u.reset.call(this);
this._doReset();
},
update: function(t) {
this._append(t);
this._process();
return this;
},
finalize: function(t) {
t && this._append(t);
return this._doFinalize();
},
blockSize: 16,
_createHelper: function(t) {
return function(e, n) {
return new t.init(n).finalize(e);
};
},
_createHmacHelper: function(t) {
return function(e, n) {
return new p.HMAC.init(t, n).finalize(e);
};
}
});
var p = e.algo = {};
return e;
}(Math);
o = (n = i).lib.WordArray, n.enc.Base64 = {
stringify: function(t) {
var e = t.words, n = t.sigBytes, o = this._map;
t.clamp();
t = [];
for (var i = 0; i < n; i += 3) for (var r = (e[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (e[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | e[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, a = 0; 4 > a && i + .75 * a < n; a++) t.push(o.charAt(r >>> 6 * (3 - a) & 63));
if (e = o.charAt(64)) for (;t.length % 4; ) t.push(e);
return t.join("");
},
parse: function(t) {
var e = t.length, n = this._map;
(i = n.charAt(64)) && -1 != (i = t.indexOf(i)) && (e = i);
for (var i = [], r = 0, a = 0; a < e; a++) if (a % 4) {
var c = n.indexOf(t.charAt(a - 1)) << a % 4 * 2, s = n.indexOf(t.charAt(a)) >>> 6 - a % 4 * 2;
i[r >>> 2] |= (c | s) << 24 - r % 4 * 8;
r++;
}
return o.create(i, r);
},
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
};
(function(t) {
function e(t, e, n, o, i, r, a) {
return ((t = t + (e & n | ~e & o) + i + a) << r | t >>> 32 - r) + e;
}
function n(t, e, n, o, i, r, a) {
return ((t = t + (e & o | n & ~o) + i + a) << r | t >>> 32 - r) + e;
}
function o(t, e, n, o, i, r, a) {
return ((t = t + (e ^ n ^ o) + i + a) << r | t >>> 32 - r) + e;
}
function r(t, e, n, o, i, r, a) {
return ((t = t + (n ^ (e | ~o)) + i + a) << r | t >>> 32 - r) + e;
}
for (var a = i, c = (l = a.lib).WordArray, s = l.Hasher, l = a.algo, u = [], p = 0; 64 > p; p++) u[p] = 4294967296 * t.abs(t.sin(p + 1)) | 0;
l = l.MD5 = s.extend({
_doReset: function() {
this._hash = new c.init([ 1732584193, 4023233417, 2562383102, 271733878 ]);
},
_doProcessBlock: function(t, i) {
for (var a = 0; 16 > a; a++) {
var c = t[s = i + a];
t[s] = 16711935 & (c << 8 | c >>> 24) | 4278255360 & (c << 24 | c >>> 8);
}
a = this._hash.words;
var s = t[i + 0], l = (c = t[i + 1], t[i + 2]), p = t[i + 3], d = t[i + 4], h = t[i + 5], f = t[i + 6], y = t[i + 7], _ = t[i + 8], g = t[i + 9], m = t[i + 10], v = t[i + 11], b = t[i + 12], S = t[i + 13], A = t[i + 14], w = t[i + 15], D = e(D = a[0], I = a[1], O = a[2], P = a[3], s, 7, u[0]), P = e(P, D, I, O, c, 12, u[1]), O = e(O, P, D, I, l, 17, u[2]), I = e(I, O, P, D, p, 22, u[3]);
D = e(D, I, O, P, d, 7, u[4]), P = e(P, D, I, O, h, 12, u[5]), O = e(O, P, D, I, f, 17, u[6]), 
I = e(I, O, P, D, y, 22, u[7]), D = e(D, I, O, P, _, 7, u[8]), P = e(P, D, I, O, g, 12, u[9]), 
O = e(O, P, D, I, m, 17, u[10]), I = e(I, O, P, D, v, 22, u[11]), D = e(D, I, O, P, b, 7, u[12]), 
P = e(P, D, I, O, S, 12, u[13]), O = e(O, P, D, I, A, 17, u[14]), D = n(D, I = e(I, O, P, D, w, 22, u[15]), O, P, c, 5, u[16]), 
P = n(P, D, I, O, f, 9, u[17]), O = n(O, P, D, I, v, 14, u[18]), I = n(I, O, P, D, s, 20, u[19]), 
D = n(D, I, O, P, h, 5, u[20]), P = n(P, D, I, O, m, 9, u[21]), O = n(O, P, D, I, w, 14, u[22]), 
I = n(I, O, P, D, d, 20, u[23]), D = n(D, I, O, P, g, 5, u[24]), P = n(P, D, I, O, A, 9, u[25]), 
O = n(O, P, D, I, p, 14, u[26]), I = n(I, O, P, D, _, 20, u[27]), D = n(D, I, O, P, S, 5, u[28]), 
P = n(P, D, I, O, l, 9, u[29]), O = n(O, P, D, I, y, 14, u[30]), D = o(D, I = n(I, O, P, D, b, 20, u[31]), O, P, h, 4, u[32]), 
P = o(P, D, I, O, _, 11, u[33]), O = o(O, P, D, I, v, 16, u[34]), I = o(I, O, P, D, A, 23, u[35]), 
D = o(D, I, O, P, c, 4, u[36]), P = o(P, D, I, O, d, 11, u[37]), O = o(O, P, D, I, y, 16, u[38]), 
I = o(I, O, P, D, m, 23, u[39]), D = o(D, I, O, P, S, 4, u[40]), P = o(P, D, I, O, s, 11, u[41]), 
O = o(O, P, D, I, p, 16, u[42]), I = o(I, O, P, D, f, 23, u[43]), D = o(D, I, O, P, g, 4, u[44]), 
P = o(P, D, I, O, b, 11, u[45]), O = o(O, P, D, I, w, 16, u[46]), D = r(D, I = o(I, O, P, D, l, 23, u[47]), O, P, s, 6, u[48]), 
P = r(P, D, I, O, y, 10, u[49]), O = r(O, P, D, I, A, 15, u[50]), I = r(I, O, P, D, h, 21, u[51]), 
D = r(D, I, O, P, b, 6, u[52]), P = r(P, D, I, O, p, 10, u[53]), O = r(O, P, D, I, m, 15, u[54]), 
I = r(I, O, P, D, c, 21, u[55]), D = r(D, I, O, P, _, 6, u[56]), P = r(P, D, I, O, w, 10, u[57]), 
O = r(O, P, D, I, f, 15, u[58]), I = r(I, O, P, D, S, 21, u[59]), D = r(D, I, O, P, d, 6, u[60]), 
P = r(P, D, I, O, v, 10, u[61]), O = r(O, P, D, I, l, 15, u[62]), I = r(I, O, P, D, g, 21, u[63]);
a[0] = a[0] + D | 0;
a[1] = a[1] + I | 0;
a[2] = a[2] + O | 0;
a[3] = a[3] + P | 0;
},
_doFinalize: function() {
var e = this._data, n = e.words, o = 8 * this._nDataBytes, i = 8 * e.sigBytes;
n[i >>> 5] |= 128 << 24 - i % 32;
var r = t.floor(o / 4294967296);
n[15 + (i + 64 >>> 9 << 4)] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
n[14 + (i + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8);
e.sigBytes = 4 * (n.length + 1);
this._process();
n = (e = this._hash).words;
for (o = 0; 4 > o; o++) i = n[o], n[o] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8);
return e;
},
clone: function() {
var t = s.clone.call(this);
t._hash = this._hash.clone();
return t;
}
});
a.MD5 = s._createHelper(l);
a.HmacMD5 = s._createHmacHelper(l);
})(Math);
(function() {
var t, e = i, n = (t = e.lib).Base, o = t.WordArray, r = (t = e.algo).EvpKDF = n.extend({
cfg: n.extend({
keySize: 4,
hasher: t.MD5,
iterations: 1
}),
init: function(t) {
this.cfg = this.cfg.extend(t);
},
compute: function(t, e) {
for (var n = (c = this.cfg).hasher.create(), i = o.create(), r = i.words, a = c.keySize, c = c.iterations; r.length < a; ) {
s && n.update(s);
var s = n.update(t).finalize(e);
n.reset();
for (var l = 1; l < c; l++) s = n.finalize(s), n.reset();
i.concat(s);
}
i.sigBytes = 4 * a;
return i;
}
});
e.EvpKDF = function(t, e, n) {
return r.create(n).compute(t, e);
};
})();
i.lib.Cipher || function() {
var t = (h = i).lib, e = t.Base, n = t.WordArray, o = t.BufferedBlockAlgorithm, r = h.enc.Base64, a = h.algo.EvpKDF, c = t.Cipher = o.extend({
cfg: e.extend(),
createEncryptor: function(t, e) {
return this.create(this._ENC_XFORM_MODE, t, e);
},
createDecryptor: function(t, e) {
return this.create(this._DEC_XFORM_MODE, t, e);
},
init: function(t, e, n) {
this.cfg = this.cfg.extend(n);
this._xformMode = t;
this._key = e;
this.reset();
},
reset: function() {
o.reset.call(this);
this._doReset();
},
process: function(t) {
this._append(t);
return this._process();
},
finalize: function(t) {
t && this._append(t);
return this._doFinalize();
},
keySize: 4,
ivSize: 4,
_ENC_XFORM_MODE: 1,
_DEC_XFORM_MODE: 2,
_createHelper: function(t) {
return {
encrypt: function(e, n, o) {
return ("string" == typeof n ? f : d).encrypt(t, e, n, o);
},
decrypt: function(e, n, o) {
return ("string" == typeof n ? f : d).decrypt(t, e, n, o);
}
};
}
});
t.StreamCipher = c.extend({
_doFinalize: function() {
return this._process(!0);
},
blockSize: 1
});
var s = h.mode = {}, l = function(t, e, n) {
var o = this._iv;
o ? this._iv = void 0 : o = this._prevBlock;
for (var i = 0; i < n; i++) t[e + i] ^= o[i];
}, u = (t.BlockCipherMode = e.extend({
createEncryptor: function(t, e) {
return this.Encryptor.create(t, e);
},
createDecryptor: function(t, e) {
return this.Decryptor.create(t, e);
},
init: function(t, e) {
this._cipher = t;
this._iv = e;
}
})).extend();
u.Encryptor = u.extend({
processBlock: function(t, e) {
var n = this._cipher, o = n.blockSize;
l.call(this, t, e, o);
n.encryptBlock(t, e);
this._prevBlock = t.slice(e, e + o);
}
});
u.Decryptor = u.extend({
processBlock: function(t, e) {
var n = this._cipher, o = n.blockSize, i = t.slice(e, e + o);
n.decryptBlock(t, e);
l.call(this, t, e, o);
this._prevBlock = i;
}
});
s = s.CBC = u;
u = (h.pad = {}).Pkcs7 = {
pad: function(t, e) {
for (var o, i = (o = (o = 4 * e) - t.sigBytes % o) << 24 | o << 16 | o << 8 | o, r = [], a = 0; a < o; a += 4) r.push(i);
o = n.create(r, o);
t.concat(o);
},
unpad: function(t) {
t.sigBytes -= 255 & t.words[t.sigBytes - 1 >>> 2];
}
};
t.BlockCipher = c.extend({
cfg: c.cfg.extend({
mode: s,
padding: u
}),
reset: function() {
c.reset.call(this);
var t = (e = this.cfg).iv, e = e.mode;
if (this._xformMode == this._ENC_XFORM_MODE) var n = e.createEncryptor; else n = e.createDecryptor, 
this._minBufferSize = 1;
this._mode = n.call(e, this, t && t.words);
},
_doProcessBlock: function(t, e) {
this._mode.processBlock(t, e);
},
_doFinalize: function() {
var t = this.cfg.padding;
if (this._xformMode == this._ENC_XFORM_MODE) {
t.pad(this._data, this.blockSize);
var e = this._process(!0);
} else e = this._process(!0), t.unpad(e);
return e;
},
blockSize: 4
});
var p = t.CipherParams = e.extend({
init: function(t) {
this.mixIn(t);
},
toString: function(t) {
return (t || this.formatter).stringify(this);
}
}), d = (s = (h.format = {}).OpenSSL = {
stringify: function(t) {
var e = t.ciphertext;
return ((t = t.salt) ? n.create([ 1398893684, 1701076831 ]).concat(t).concat(e) : e).toString(r);
},
parse: function(t) {
var e = (t = r.parse(t)).words;
if (1398893684 == e[0] && 1701076831 == e[1]) {
var o = n.create(e.slice(2, 4));
e.splice(0, 4);
t.sigBytes -= 16;
}
return p.create({
ciphertext: t,
salt: o
});
}
}, t.SerializableCipher = e.extend({
cfg: e.extend({
format: s
}),
encrypt: function(t, e, n, o) {
o = this.cfg.extend(o);
var i = t.createEncryptor(n, o);
e = i.finalize(e);
i = i.cfg;
return p.create({
ciphertext: e,
key: n,
iv: i.iv,
algorithm: t,
mode: i.mode,
padding: i.padding,
blockSize: t.blockSize,
formatter: o.format
});
},
decrypt: function(t, e, n, o) {
o = this.cfg.extend(o);
e = this._parse(e, o.format);
return t.createDecryptor(n, o).finalize(e.ciphertext);
},
_parse: function(t, e) {
return "string" == typeof t ? e.parse(t, this) : t;
}
})), h = (h.kdf = {}).OpenSSL = {
execute: function(t, e, o, i) {
i || (i = n.random(8));
t = a.create({
keySize: e + o
}).compute(t, i);
o = n.create(t.words.slice(e), 4 * o);
t.sigBytes = 4 * e;
return p.create({
key: t,
iv: o,
salt: i
});
}
}, f = t.PasswordBasedCipher = d.extend({
cfg: d.cfg.extend({
kdf: h
}),
encrypt: function(t, e, n, o) {
n = (o = this.cfg.extend(o)).kdf.execute(n, t.keySize, t.ivSize);
o.iv = n.iv;
(t = d.encrypt.call(this, t, e, n.key, o)).mixIn(n);
return t;
},
decrypt: function(t, e, n, o) {
o = this.cfg.extend(o);
e = this._parse(e, o.format);
n = o.kdf.execute(n, t.keySize, t.ivSize, e.salt);
o.iv = n.iv;
return d.decrypt.call(this, t, e, n.key, o);
}
});
}();
(function() {
for (var t = i, e = t.lib.BlockCipher, n = t.algo, o = [], r = [], a = [], c = [], s = [], l = [], u = [], p = [], d = [], h = [], f = [], y = 0; 256 > y; y++) f[y] = 128 > y ? y << 1 : y << 1 ^ 283;
var _ = 0, g = 0;
for (y = 0; 256 > y; y++) {
var m = (m = g ^ g << 1 ^ g << 2 ^ g << 3 ^ g << 4) >>> 8 ^ 255 & m ^ 99;
o[_] = m;
r[m] = _;
var v = f[_], b = f[v], S = f[b], A = 257 * f[m] ^ 16843008 * m;
a[_] = A << 24 | A >>> 8;
c[_] = A << 16 | A >>> 16;
s[_] = A << 8 | A >>> 24;
l[_] = A;
A = 16843009 * S ^ 65537 * b ^ 257 * v ^ 16843008 * _;
u[m] = A << 24 | A >>> 8;
p[m] = A << 16 | A >>> 16;
d[m] = A << 8 | A >>> 24;
h[m] = A;
_ ? (_ = v ^ f[f[f[S ^ v]]], g ^= f[f[g]]) : _ = g = 1;
}
var w = [ 0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54 ];
n = n.AES = e.extend({
_doReset: function() {
for (var t = (n = this._key).words, e = n.sigBytes / 4, n = 4 * ((this._nRounds = e + 6) + 1), i = this._keySchedule = [], r = 0; r < n; r++) if (r < e) i[r] = t[r]; else {
var a = i[r - 1];
r % e ? 6 < e && 4 == r % e && (a = o[a >>> 24] << 24 | o[a >>> 16 & 255] << 16 | o[a >>> 8 & 255] << 8 | o[255 & a]) : (a = o[(a = a << 8 | a >>> 24) >>> 24] << 24 | o[a >>> 16 & 255] << 16 | o[a >>> 8 & 255] << 8 | o[255 & a], 
a ^= w[r / e | 0] << 24);
i[r] = i[r - e] ^ a;
}
t = this._invKeySchedule = [];
for (e = 0; e < n; e++) r = n - e, a = e % 4 ? i[r] : i[r - 4], t[e] = 4 > e || 4 >= r ? a : u[o[a >>> 24]] ^ p[o[a >>> 16 & 255]] ^ d[o[a >>> 8 & 255]] ^ h[o[255 & a]];
},
encryptBlock: function(t, e) {
this._doCryptBlock(t, e, this._keySchedule, a, c, s, l, o);
},
decryptBlock: function(t, e) {
var n = t[e + 1];
t[e + 1] = t[e + 3];
t[e + 3] = n;
this._doCryptBlock(t, e, this._invKeySchedule, u, p, d, h, r);
n = t[e + 1];
t[e + 1] = t[e + 3];
t[e + 3] = n;
},
_doCryptBlock: function(t, e, n, o, i, r, a, c) {
for (var s = this._nRounds, l = t[e] ^ n[0], u = t[e + 1] ^ n[1], p = t[e + 2] ^ n[2], d = t[e + 3] ^ n[3], h = 4, f = 1; f < s; f++) {
var y = o[l >>> 24] ^ i[u >>> 16 & 255] ^ r[p >>> 8 & 255] ^ a[255 & d] ^ n[h++], _ = o[u >>> 24] ^ i[p >>> 16 & 255] ^ r[d >>> 8 & 255] ^ a[255 & l] ^ n[h++], g = o[p >>> 24] ^ i[d >>> 16 & 255] ^ r[l >>> 8 & 255] ^ a[255 & u] ^ n[h++];
d = o[d >>> 24] ^ i[l >>> 16 & 255] ^ r[u >>> 8 & 255] ^ a[255 & p] ^ n[h++], l = y, 
u = _, p = g;
}
y = (c[l >>> 24] << 24 | c[u >>> 16 & 255] << 16 | c[p >>> 8 & 255] << 8 | c[255 & d]) ^ n[h++];
_ = (c[u >>> 24] << 24 | c[p >>> 16 & 255] << 16 | c[d >>> 8 & 255] << 8 | c[255 & l]) ^ n[h++];
g = (c[p >>> 24] << 24 | c[d >>> 16 & 255] << 16 | c[l >>> 8 & 255] << 8 | c[255 & u]) ^ n[h++];
d = (c[d >>> 24] << 24 | c[l >>> 16 & 255] << 16 | c[u >>> 8 & 255] << 8 | c[255 & p]) ^ n[h++];
t[e] = y;
t[e + 1] = _;
t[e + 2] = g;
t[e + 3] = d;
},
keySize: 8
});
t.AES = e._createHelper(n);
})();
e.exports = i;
cc._RF.pop();
}, {} ],
agreementTip: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "27e8eZbIM9ApIU8LRLiALwU", "agreementTip");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
s(o.next(t));
} catch (t) {
r(t);
}
}
function c(t) {
try {
s(o.throw(t));
} catch (t) {
r(t);
}
}
function s(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, c);
var e;
}
s((o = o.apply(t, e || [])).next());
});
}, c = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: c(0),
throw: c(1),
return: c(2)
}, "function" == typeof Symbol && (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 && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
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 = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var s = cc._decorator, l = s.ccclass, u = (s.property, function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.start = function() {};
e.prototype.clickRule = function(t) {
return a(this, void 0, void 0, function() {
return c(this, function() {
gData.setting.rule_type = parseInt(t);
return [ 2 ];
});
});
};
e.prototype.clickClose = function() {
mk.ui.closePanel(this.node.name);
};
return r([ l ], e);
}(cc.Component));
n.default = u;
cc._RF.pop();
}, {} ],
base64: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "46dba/4JnZL8LqBzMYhW9lP", "base64");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {
this._keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
this._utf8_encode = function(t) {
t = t.replace(/\r\n/g, "\n");
for (var e = "", n = 0; n < t.length; n++) {
var o = t.charCodeAt(n);
if (o < 128) e += String.fromCharCode(o); else if (o > 127 && o < 2048) {
e += String.fromCharCode(o >> 6 | 192);
e += String.fromCharCode(63 & o | 128);
} else {
e += String.fromCharCode(o >> 12 | 224);
e += String.fromCharCode(o >> 6 & 63 | 128);
e += String.fromCharCode(63 & o | 128);
}
}
return e;
};
this._utf8_decode = function(t) {
for (var e = "", n = 0, o = 0, i = 0, r = 0; n < t.length; ) if ((o = t.charCodeAt(n)) < 128) {
e += String.fromCharCode(o);
n++;
} else if (o > 191 && o < 224) {
i = t.charCodeAt(n + 1);
e += String.fromCharCode((31 & o) << 6 | 63 & i);
n += 2;
} else {
i = t.charCodeAt(n + 1);
r = t.charCodeAt(n + 2);
e += String.fromCharCode((15 & o) << 12 | (63 & i) << 6 | 63 & r);
n += 3;
}
return e;
};
}
Object.defineProperty(t, "Instance", {
get: function() {
this.instance || (this.instance = new t());
return this.instance;
},
enumerable: !1,
configurable: !0
});
t.prototype.encode = function(t) {
for (var e, n, o, i, r, a, c, s = "", l = 0, u = this._utf8_encode(t); l < u.length; ) {
i = (e = u.charCodeAt(l++)) >> 2;
r = (3 & e) << 4 | (n = u.charCodeAt(l++)) >> 4;
a = (15 & n) << 2 | (o = u.charCodeAt(l++)) >> 6;
c = 63 & o;
isNaN(n) ? a = c = 64 : isNaN(o) && (c = 64);
s = s + this._keyStr.charAt(i) + this._keyStr.charAt(r) + this._keyStr.charAt(a) + this._keyStr.charAt(c);
}
return s;
};
t.prototype.decode = function(t) {
for (var e, n, o, i, r, a, c = "", s = 0, l = t.replace(/[^A-Za-z0-9\+\/\=]/g, ""); s < l.length; ) {
e = this._keyStr.indexOf(l.charAt(s++)) << 2 | (i = this._keyStr.indexOf(l.charAt(s++))) >> 4;
n = (15 & i) << 4 | (r = this._keyStr.indexOf(l.charAt(s++))) >> 2;
o = (3 & r) << 6 | (a = this._keyStr.indexOf(l.charAt(s++)));
c += String.fromCharCode(e);
64 != r && (c += String.fromCharCode(n));
64 != a && (c += String.fromCharCode(o));
}
return this._utf8_decode(c);
};
t.instance = null;
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
hmacSha256: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ab38aGoq49Irq9jzitxW0Z3", "hmacSha256");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.hmacSha256 = void 0;
var o = function() {
function t() {
this.hexcase = 0;
this.b64pad = "";
this.sha256_K = new Array(1116352408, 1899447441, -1245643825, -373957723, 961987163, 1508970993, -1841331548, -1424204075, -670586216, 310598401, 607225278, 1426881987, 1925078388, -2132889090, -1680079193, -1046744716, -459576895, -272742522, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, -1740746414, -1473132947, -1341970488, -1084653625, -958395405, -710438585, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, -2117940946, -1838011259, -1564481375, -1474664885, -1035236496, -949202525, -778901479, -694614492, -200395387, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, -2067236844, -1933114872, -1866530822, -1538233109, -1090935817, -965641998);
}
Object.defineProperty(t, "Instance", {
get: function() {
this.instance || (this.instance = new t());
return this.instance;
},
enumerable: !1,
configurable: !0
});
t.prototype.hex_sha256 = function(t) {
return this.rstr2hex(this.rstr_sha256(this.str2rstr_utf8(t)));
};
t.prototype.b64_sha256 = function(t) {
return this.rstr2b64(this.rstr_sha256(this.str2rstr_utf8(t)));
};
t.prototype.any_sha256 = function(t, e) {
return this.rstr2any(this.rstr_sha256(this.str2rstr_utf8(t)), e);
};
t.prototype.hex_hmac_sha256 = function(t, e) {
return this.rstr2hex(this.rstr_hmac_sha256(this.str2rstr_utf8(t), this.str2rstr_utf8(e)));
};
t.prototype.b64_hmac_sha256 = function(t, e) {
return this.rstr2b64(this.rstr_hmac_sha256(this.str2rstr_utf8(t), this.str2rstr_utf8(e)));
};
t.prototype.any_hmac_sha256 = function(t, e, n) {
return this.rstr2any(this.rstr_hmac_sha256(this.str2rstr_utf8(t), this.str2rstr_utf8(e)), n);
};
t.prototype.sha256_vm_test = function() {
return "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" == this.hex_sha256("abc").toLowerCase();
};
t.prototype.rstr_sha256 = function(t) {
return this.binb2rstr(this.binb_sha256(this.rstr2binb(t), 8 * t.length));
};
t.prototype.rstr_hmac_sha256 = function(t, e) {
var n = this.rstr2binb(t);
n.length > 16 && (n = this.binb_sha256(n, 8 * t.length));
for (var o = Array(16), i = Array(16), r = 0; r < 16; r++) {
o[r] = 909522486 ^ n[r];
i[r] = 1549556828 ^ n[r];
}
var a = this.binb_sha256(o.concat(this.rstr2binb(e)), 512 + 8 * e.length);
return this.binb2rstr(this.binb_sha256(i.concat(a), 768));
};
t.prototype.rstr2hex = function(t) {
try {
this.hexcase;
} catch (t) {
this.hexcase = 0;
}
for (var e, n = this.hexcase ? "0123456789ABCDEF" : "0123456789abcdef", o = "", i = 0; i < t.length; i++) {
e = t.charCodeAt(i);
o += n.charAt(e >>> 4 & 15) + n.charAt(15 & e);
}
return o;
};
t.prototype.rstr2b64 = function(t) {
try {
this.b64pad;
} catch (t) {
this.b64pad = "";
}
for (var e = "", n = t.length, o = 0; o < n; o += 3) for (var i = t.charCodeAt(o) << 16 | (o + 1 < n ? t.charCodeAt(o + 1) << 8 : 0) | (o + 2 < n ? t.charCodeAt(o + 2) : 0), r = 0; r < 4; r++) 8 * o + 6 * r > 8 * t.length ? e += this.b64pad : e += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i >>> 6 * (3 - r) & 63);
return e;
};
t.prototype.rstr2any = function(t, e) {
var n, o, i, r, a = e.length, c = Array(), s = Array(Math.ceil(t.length / 2));
for (n = 0; n < s.length; n++) s[n] = t.charCodeAt(2 * n) << 8 | t.charCodeAt(2 * n + 1);
for (;s.length > 0; ) {
r = Array();
i = 0;
for (n = 0; n < s.length; n++) {
i = (i << 16) + s[n];
i -= (o = Math.floor(i / a)) * a;
(r.length > 0 || o > 0) && (r[r.length] = o);
}
c[c.length] = i;
s = r;
}
var l = "";
for (n = c.length - 1; n >= 0; n--) l += e.charAt(c[n]);
var u = Math.ceil(8 * t.length / (Math.log(e.length) / Math.log(2)));
for (n = l.length; n < u; n++) l = e[0] + l;
return l;
};
t.prototype.str2rstr_utf8 = function(t) {
for (var e, n, o = "", i = -1; ++i < t.length; ) {
e = t.charCodeAt(i);
n = i + 1 < t.length ? t.charCodeAt(i + 1) : 0;
if (55296 <= e && e <= 56319 && 56320 <= n && n <= 57343) {
e = 65536 + ((1023 & e) << 10) + (1023 & n);
i++;
}
e <= 127 ? o += String.fromCharCode(e) : e <= 2047 ? o += String.fromCharCode(192 | e >>> 6 & 31, 128 | 63 & e) : e <= 65535 ? o += String.fromCharCode(224 | e >>> 12 & 15, 128 | e >>> 6 & 63, 128 | 63 & e) : e <= 2097151 && (o += String.fromCharCode(240 | e >>> 18 & 7, 128 | e >>> 12 & 63, 128 | e >>> 6 & 63, 128 | 63 & e));
}
return o;
};
t.prototype.str2rstr_utf16le = function(t) {
for (var e = "", n = 0; n < t.length; n++) e += String.fromCharCode(255 & t.charCodeAt(n), t.charCodeAt(n) >>> 8 & 255);
return e;
};
t.prototype.str2rstr_utf16be = function(t) {
for (var e = "", n = 0; n < t.length; n++) e += String.fromCharCode(t.charCodeAt(n) >>> 8 & 255, 255 & t.charCodeAt(n));
return e;
};
t.prototype.rstr2binb = function(t) {
for (var e = Array(t.length >> 2), n = 0; n < e.length; n++) e[n] = 0;
for (n = 0; n < 8 * t.length; n += 8) e[n >> 5] |= (255 & t.charCodeAt(n / 8)) << 24 - n % 32;
return e;
};
t.prototype.binb2rstr = function(t) {
for (var e = "", n = 0; n < 32 * t.length; n += 8) e += String.fromCharCode(t[n >> 5] >>> 24 - n % 32 & 255);
return e;
};
t.prototype.sha256_S = function(t, e) {
return t >>> e | t << 32 - e;
};
t.prototype.sha256_R = function(t, e) {
return t >>> e;
};
t.prototype.sha256_Ch = function(t, e, n) {
return t & e ^ ~t & n;
};
t.prototype.sha256_Maj = function(t, e, n) {
return t & e ^ t & n ^ e & n;
};
t.prototype.sha256_Sigma0256 = function(t) {
return this.sha256_S(t, 2) ^ this.sha256_S(t, 13) ^ this.sha256_S(t, 22);
};
t.prototype.sha256_Sigma1256 = function(t) {
return this.sha256_S(t, 6) ^ this.sha256_S(t, 11) ^ this.sha256_S(t, 25);
};
t.prototype.sha256_Gamma0256 = function(t) {
return this.sha256_S(t, 7) ^ this.sha256_S(t, 18) ^ this.sha256_R(t, 3);
};
t.prototype.sha256_Gamma1256 = function(t) {
return this.sha256_S(t, 17) ^ this.sha256_S(t, 19) ^ this.sha256_R(t, 10);
};
t.prototype.sha256_Sigma0512 = function(t) {
return this.sha256_S(t, 28) ^ this.sha256_S(t, 34) ^ this.sha256_S(t, 39);
};
t.prototype.sha256_Sigma1512 = function(t) {
return this.sha256_S(t, 14) ^ this.sha256_S(t, 18) ^ this.sha256_S(t, 41);
};
t.prototype.sha256_Gamma0512 = function(t) {
return this.sha256_S(t, 1) ^ this.sha256_S(t, 8) ^ this.sha256_R(t, 7);
};
t.prototype.sha256_Gamma1512 = function(t) {
return this.sha256_S(t, 19) ^ this.sha256_S(t, 61) ^ this.sha256_R(t, 6);
};
t.prototype.binb_sha256 = function(t, e) {
var n, o, i, r, a, c, s, l, u, p, d, h, f = new Array(1779033703, -1150833019, 1013904242, -1521486534, 1359893119, -1694144372, 528734635, 1541459225), y = new Array(64);
t[e >> 5] |= 128 << 24 - e % 32;
t[15 + (e + 64 >> 9 << 4)] = e;
for (u = 0; u < t.length; u += 16) {
n = f[0];
o = f[1];
i = f[2];
r = f[3];
a = f[4];
c = f[5];
s = f[6];
l = f[7];
for (p = 0; p < 64; p++) {
y[p] = p < 16 ? t[p + u] : this.safe_add(this.safe_add(this.safe_add(this.sha256_Gamma1256(y[p - 2]), y[p - 7]), this.sha256_Gamma0256(y[p - 15])), y[p - 16]);
d = this.safe_add(this.safe_add(this.safe_add(this.safe_add(l, this.sha256_Sigma1256(a)), this.sha256_Ch(a, c, s)), this.sha256_K[p]), y[p]);
h = this.safe_add(this.sha256_Sigma0256(n), this.sha256_Maj(n, o, i));
l = s;
s = c;
c = a;
a = this.safe_add(r, d);
r = i;
i = o;
o = n;
n = this.safe_add(d, h);
}
f[0] = this.safe_add(n, f[0]);
f[1] = this.safe_add(o, f[1]);
f[2] = this.safe_add(i, f[2]);
f[3] = this.safe_add(r, f[3]);
f[4] = this.safe_add(a, f[4]);
f[5] = this.safe_add(c, f[5]);
f[6] = this.safe_add(s, f[6]);
f[7] = this.safe_add(l, f[7]);
}
return f;
};
t.prototype.safe_add = function(t, e) {
var n = (65535 & t) + (65535 & e);
return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
};
t.instance = null;
return t;
}();
n.hmacSha256 = o;
cc._RF.pop();
}, {} ],
md5: [ function(t, e) {
"use strict";
cc._RF.push(e, "45a9cfK7ZRGsb06t/E4+mjC", "md5");
var n = 0, o = 8;
function i(t, e) {
t[e >> 5] |= 128 << e % 32;
t[14 + (e + 64 >>> 9 << 4)] = e;
for (var n = 1732584193, o = -271733879, i = -1732584194, r = 271733878, p = 0; p < t.length; p += 16) {
var d = n, h = o, f = i, y = r;
n = a(n, o, i, r, t[p + 0], 7, -680876936);
r = a(r, n, o, i, t[p + 1], 12, -389564586);
i = a(i, r, n, o, t[p + 2], 17, 606105819);
o = a(o, i, r, n, t[p + 3], 22, -1044525330);
n = a(n, o, i, r, t[p + 4], 7, -176418897);
r = a(r, n, o, i, t[p + 5], 12, 1200080426);
i = a(i, r, n, o, t[p + 6], 17, -1473231341);
o = a(o, i, r, n, t[p + 7], 22, -45705983);
n = a(n, o, i, r, t[p + 8], 7, 1770035416);
r = a(r, n, o, i, t[p + 9], 12, -1958414417);
i = a(i, r, n, o, t[p + 10], 17, -42063);
o = a(o, i, r, n, t[p + 11], 22, -1990404162);
n = a(n, o, i, r, t[p + 12], 7, 1804603682);
r = a(r, n, o, i, t[p + 13], 12, -40341101);
i = a(i, r, n, o, t[p + 14], 17, -1502002290);
n = c(n, o = a(o, i, r, n, t[p + 15], 22, 1236535329), i, r, t[p + 1], 5, -165796510);
r = c(r, n, o, i, t[p + 6], 9, -1069501632);
i = c(i, r, n, o, t[p + 11], 14, 643717713);
o = c(o, i, r, n, t[p + 0], 20, -373897302);
n = c(n, o, i, r, t[p + 5], 5, -701558691);
r = c(r, n, o, i, t[p + 10], 9, 38016083);
i = c(i, r, n, o, t[p + 15], 14, -660478335);
o = c(o, i, r, n, t[p + 4], 20, -405537848);
n = c(n, o, i, r, t[p + 9], 5, 568446438);
r = c(r, n, o, i, t[p + 14], 9, -1019803690);
i = c(i, r, n, o, t[p + 3], 14, -187363961);
o = c(o, i, r, n, t[p + 8], 20, 1163531501);
n = c(n, o, i, r, t[p + 13], 5, -1444681467);
r = c(r, n, o, i, t[p + 2], 9, -51403784);
i = c(i, r, n, o, t[p + 7], 14, 1735328473);
n = s(n, o = c(o, i, r, n, t[p + 12], 20, -1926607734), i, r, t[p + 5], 4, -378558);
r = s(r, n, o, i, t[p + 8], 11, -2022574463);
i = s(i, r, n, o, t[p + 11], 16, 1839030562);
o = s(o, i, r, n, t[p + 14], 23, -35309556);
n = s(n, o, i, r, t[p + 1], 4, -1530992060);
r = s(r, n, o, i, t[p + 4], 11, 1272893353);
i = s(i, r, n, o, t[p + 7], 16, -155497632);
o = s(o, i, r, n, t[p + 10], 23, -1094730640);
n = s(n, o, i, r, t[p + 13], 4, 681279174);
r = s(r, n, o, i, t[p + 0], 11, -358537222);
i = s(i, r, n, o, t[p + 3], 16, -722521979);
o = s(o, i, r, n, t[p + 6], 23, 76029189);
n = s(n, o, i, r, t[p + 9], 4, -640364487);
r = s(r, n, o, i, t[p + 12], 11, -421815835);
i = s(i, r, n, o, t[p + 15], 16, 530742520);
n = l(n, o = s(o, i, r, n, t[p + 2], 23, -995338651), i, r, t[p + 0], 6, -198630844);
r = l(r, n, o, i, t[p + 7], 10, 1126891415);
i = l(i, r, n, o, t[p + 14], 15, -1416354905);
o = l(o, i, r, n, t[p + 5], 21, -57434055);
n = l(n, o, i, r, t[p + 12], 6, 1700485571);
r = l(r, n, o, i, t[p + 3], 10, -1894986606);
i = l(i, r, n, o, t[p + 10], 15, -1051523);
o = l(o, i, r, n, t[p + 1], 21, -2054922799);
n = l(n, o, i, r, t[p + 8], 6, 1873313359);
r = l(r, n, o, i, t[p + 15], 10, -30611744);
i = l(i, r, n, o, t[p + 6], 15, -1560198380);
o = l(o, i, r, n, t[p + 13], 21, 1309151649);
n = l(n, o, i, r, t[p + 4], 6, -145523070);
r = l(r, n, o, i, t[p + 11], 10, -1120210379);
i = l(i, r, n, o, t[p + 2], 15, 718787259);
o = l(o, i, r, n, t[p + 9], 21, -343485551);
n = u(n, d);
o = u(o, h);
i = u(i, f);
r = u(r, y);
}
return Array(n, o, i, r);
}
function r(t, e, n, o, i, r) {
return u((a = u(u(e, t), u(o, r))) << (c = i) | a >>> 32 - c, n);
var a, c;
}
function a(t, e, n, o, i, a, c) {
return r(e & n | ~e & o, t, e, i, a, c);
}
function c(t, e, n, o, i, a, c) {
return r(e & o | n & ~o, t, e, i, a, c);
}
function s(t, e, n, o, i, a, c) {
return r(e ^ n ^ o, t, e, i, a, c);
}
function l(t, e, n, o, i, a, c) {
return r(n ^ (e | ~o), t, e, i, a, c);
}
function u(t, e) {
var n = (65535 & t) + (65535 & e);
return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
}
function p(t) {
for (var e = Array(), n = (1 << o) - 1, i = 0; i < t.length * o; i += o) e[i >> 5] |= (t.charCodeAt(i / o) & n) << i % 32;
return e;
}
function d(t) {
for (var e = n ? "0123456789ABCDEF" : "0123456789abcdef", o = "", i = 0; i < 4 * t.length; i++) o += e.charAt(t[i >> 2] >> i % 4 * 8 + 4 & 15) + e.charAt(t[i >> 2] >> i % 4 * 8 & 15);
return o;
}
e.exports = {
hex_md5: function(t) {
return d(i(p(t), t.length * o));
}
};
cc._RF.pop();
}, {} ],
sha1: [ function(t, e) {
"use strict";
cc._RF.push(e, "7bba9WhEiZI5aaSIPCE1/Ng", "sha1");
var n = 0, o = 8;
function i(t, e) {
t[e >> 5] |= 128 << 24 - e % 32;
t[15 + (e + 64 >> 9 << 4)] = e;
for (var n = Array(80), o = 1732584193, i = -271733879, l = -1732584194, u = 271733878, p = -1009589776, d = 0; d < t.length; d += 16) {
for (var h = o, f = i, y = l, _ = u, g = p, m = 0; m < 80; m++) {
n[m] = m < 16 ? t[d + m] : s(n[m - 3] ^ n[m - 8] ^ n[m - 14] ^ n[m - 16], 1);
var v = c(c(s(o, 5), r(m, i, l, u)), c(c(p, n[m]), a(m)));
p = u;
u = l;
l = s(i, 30);
i = o;
o = v;
}
o = c(o, h);
i = c(i, f);
l = c(l, y);
u = c(u, _);
p = c(p, g);
}
return Array(o, i, l, u, p);
}
function r(t, e, n, o) {
return t < 20 ? e & n | ~e & o : t < 40 ? e ^ n ^ o : t < 60 ? e & n | e & o | n & o : e ^ n ^ o;
}
function a(t) {
return t < 20 ? 1518500249 : t < 40 ? 1859775393 : t < 60 ? -1894007588 : -899497514;
}
function c(t, e) {
var n = (65535 & t) + (65535 & e);
return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
}
function s(t, e) {
return t << e | t >>> 32 - e;
}
function l(t) {
for (var e = Array(), n = (1 << o) - 1, i = 0; i < t.length * o; i += o) e[i >> 5] |= (t.charCodeAt(i / o) & n) << 24 - i % 32;
return e;
}
function u(t) {
for (var e = n ? "0123456789ABCDEF" : "0123456789abcdef", o = "", i = 0; i < 4 * t.length; i++) o += e.charAt(t[i >> 2] >> 8 * (3 - i % 4) + 4 & 15) + e.charAt(t[i >> 2] >> 8 * (3 - i % 4) & 15);
return o;
}
e.exports = {
hex_sha1: function(t) {
return u(i(l(t), t.length * o));
}
};
cc._RF.pop();
}, {} ],
zgSingleton: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ef0c4TA8utMIpuCAX/anO0Q", "zgSingleton");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.zgSingleton = void 0;
var o = function() {
function t() {}
t.getInstance = function() {
this.instance || (this.instance = new this());
return this.instance;
};
return t;
}();
n.zgSingleton = o;
cc._RF.pop();
}, {} ]
}, {}, [ "Main", "GamePlay", "Enum", "GameConst", "PlayerConst", "DataMgr", "EffectMgr", "GameMgr", "PoolMgr", "StorageMgr", "GameLogic", "Util", "AniFinishDestroy", "AniOpenPanel", "ArtNum", "Recycle", "SpineEffectPlay", "ChangeCellItemUI", "GetPropUI", "GetUI", "GuideAuthUI", "PauseUI", "PlayerInfoUI", "BonusTip", "EliminateScore", "GetScore", "GetTargetScoreTip", "ScoreEnergy", "TipSpriteItemUI", "CellItem", "SelectCellItemBtn", "SelectSceneItem", "TipItemUI", "BangsFit", "BtnClosePanel", "BtnOpenPanel", "Button", "LoadingBar", "NumberAnim", "PageView", "SetGray", "TabSwitching", "TableView", "TouchHelper", "UIBG", "ClickMoveBy", "EffectOpenAndClose", "FlyNode", "FrameAnimation", "RopeSwung", "RotateAround", "TweenCast", "TweenEasing", "UITween", "ZPathFalling", "AdData", "AppData", "GData", "GameData", "HttpData", "LoginData", "StorageData", "WechatData", "BlessingBagData", "CashNormalData", "CashPigData", "CashProData", "FissionData", "GuideData", "HelpData", "MoreGameData", "PigBankData", "PushData", "ReceiptNoticeData", "RedBagCashData", "RedCodeData", "RedeemData", "RewardData", "SettingData", "SignData", "TurnableData", "FunBtns", "Game", "agreementTip", "BlessingBag", "BlessingBagItem", "CashNormal", "CashNormalItem", "CashPro", "Guide", "Help", "Login", "BtnMoreGame", "MoreGame", "MoreGameBanner", "MoreGameNormalItem", "MoreGamePicItem", "MoreGamePopNode", "PointItem", "PigBank", "ReceiptNotice", "RedBagCash", "RedBagCashItem", "RedBagCode", "RedBagCodeItem", "RedCode", "VideoNode", "RedeemNode", "Reward", "Rule", "Setting", "Sign", "SignIconItem", "SignItem", "Turnable", "TurnableItem", "MKSwitch", "Data", "BuglySDK", "IADSDKMgr", "ATBanner", "ATBannerJS", "ATInterstitial", "ATInterstitialJS", "ATNative", "ATNativeJS", "ATRewardVideo", "ATRewardVideoJS", "ATSDKMgr", "ATSDKMgrJS", "ATBannerJSSDK", "ATInterstitialJSSDK", "ATJSSDK", "ATNativeJSSDK", "ATRewardedVideoJSSDK", "ATAndroidBannerJS", "ATAndroidInterstitialJS", "ATAndroidJS", "ATAndroidNativeJS", "ATAndroidRewardedVideoJS", "ATiOSBannerJS", "ATiOSInterstitialJS", "ATiOSJS", "ATiOSNativeJS", "ATiOSRewardedVideoJS", "zgSingleton", "AdSystem", "AudioSystem", "DataSystem", "EventSystem", "FlySystem", "GuideSystem", "HttpSystem", "JsbSystem", "MKSystem", "PoolSystem", "TimerSystem", "TipSystem", "UISystem", "EncryptUtil", "FileUtil", "GameUtil", "LoadResUtil", "LogUtil", "MathUtil", "StorageUtil", "StringUtil", "TimeUtil", "TweenUtil", "aes", "base64", "hmacSha256", "md5", "sha1" ]);