Created
May 3, 2018 18:16
-
-
Save hiroto-takatoshi/d1d7a7bb05d95a8eeb035e5b4caec2d3 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| webpackJsonp([3], [function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(109), | |
| a = r(i), | |
| o = n(165), | |
| s = r(o), | |
| l = n(909), | |
| u = r(l), | |
| c = n(161), | |
| f = r(c), | |
| d = n(168), | |
| p = r(d), | |
| h = n(110), | |
| y = r(h), | |
| m = n(14), | |
| _ = r(m), | |
| g = n(988), | |
| b = r(g), | |
| v = n(115), | |
| w = r(v), | |
| k = n(989), | |
| S = r(k), | |
| I = n(990), | |
| E = r(I), | |
| A = n(991), | |
| x = r(A), | |
| C = n(251), | |
| T = r(C), | |
| P = n(421), | |
| O = r(P), | |
| N = n(23), | |
| M = r(N), | |
| R = n(282), | |
| D = r(R), | |
| F = n(993), | |
| B = r(F), | |
| j = n(24), | |
| L = r(j), | |
| U = n(116), | |
| H = r(U), | |
| G = n(422), | |
| z = r(G), | |
| V = n(22), | |
| K = r(V), | |
| W = n(997), | |
| q = r(W), | |
| X = n(57), | |
| Y = r(X), | |
| J = n(998), | |
| Q = r(J), | |
| Z = n(111), | |
| $ = r(Z), | |
| ee = n(108), | |
| te = r(ee), | |
| ne = n(423), | |
| re = r(ne), | |
| ie = n(424), | |
| ae = r(ie), | |
| oe = n(253), | |
| se = r(oe), | |
| le = n(1e3), | |
| ue = r(le), | |
| ce = n(1001), | |
| fe = r(ce), | |
| de = n(250), | |
| pe = r(de); | |
| t.default = { | |
| INCREASE_FONT_COLOR: 16199014, | |
| DECREASE_FONT_COLOR: 43263, | |
| advHelper: a.default, | |
| commonUiHelper: s.default, | |
| CommonPartsLayer: u.default, | |
| createDialogOverlay: f.default, | |
| CancelButton: p.default, | |
| DecideButton: y.default, | |
| Dialog: _.default, | |
| dotLine: b.default, | |
| Gauge: w.default, | |
| ImageLabel: S.default, | |
| InteractionBox: E.default, | |
| graphics: x.default, | |
| MovingBg: T.default, | |
| MuteVideo: O.default, | |
| ParticleSystem: M.default, | |
| playParticle: D.default, | |
| receiveRewardDialogFactory: B.default, | |
| ScrollBar: L.default, | |
| ScrollBarBase: H.default, | |
| ScrollMap: z.default, | |
| ScrollRect: K.default, | |
| SelectButton: q.default, | |
| Spine: Y.default, | |
| ToggleButton: Q.default, | |
| TransitionFadeLayer: $.default, | |
| TransitionPageTurn: te.default, | |
| TransitionProduceEvent: re.default, | |
| TransitionSupportSkillEvent: ae.default, | |
| TipsPage: se.default, | |
| platform: ue.default, | |
| LoadingIndicator: fe.default, | |
| LoadingLayer: pe.default | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(81), | |
| a = r(i), | |
| o = n(106), | |
| s = r(o), | |
| l = n(807), | |
| u = r(l), | |
| c = n(808), | |
| f = r(c), | |
| d = n(42), | |
| p = r(d), | |
| h = n(809), | |
| y = r(h); | |
| t.default = { | |
| app: a.default, | |
| asset: s.default, | |
| bg: u.default, | |
| bgm: f.default, | |
| env: p.default, | |
| tips: y.default, | |
| SCREEN_WIDTH: 1136, | |
| SCREEN_HEIGHT: 640, | |
| SCREEN_CENTER: { | |
| x: 568, | |
| y: 320 | |
| } | |
| } | |
| }, function (e, t, n) { | |
| var r = n(11), | |
| i = n(59), | |
| a = n(46), | |
| o = n(47), | |
| s = n(53), | |
| l = function (e, t, n) { | |
| var u, c, f, d, p = e & l.F, | |
| h = e & l.G, | |
| y = e & l.S, | |
| m = e & l.P, | |
| _ = e & l.B, | |
| g = h ? r : y ? r[t] || (r[t] = {}) : (r[t] || {}).prototype, | |
| b = h ? i : i[t] || (i[t] = {}), | |
| v = b.prototype || (b.prototype = {}); | |
| h && (n = t); | |
| for (u in n) c = !p && g && void 0 !== g[u], f = (c ? g : n)[u], d = _ && c ? s(f, r) : m && "function" == typeof f ? s(Function.call, f) : f, g && o(g, u, f, e & l.U), b[u] != f && a(b, u, d), m && v[u] != f && (v[u] = f) | |
| }; | |
| r.core = i, l.F = 1, l.G = 2, l.S = 4, l.P = 8, l.B = 16, l.W = 32, l.U = 64, l.R = 128, e.exports = l | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = n(841), | |
| l = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(s), | |
| u = function (e) { | |
| function t() { | |
| r(this, t); | |
| var e = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); | |
| return e._locale = "ja", e._polyglot = null, e | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "init", | |
| value: function (e) { | |
| var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null; | |
| if (this._polyglot) throw new Error("Polyglot already exist"); | |
| t = t || this._locale, this._polyglot = new l.default({ | |
| phrases: e, | |
| locale: t | |
| }) | |
| } | |
| }, { | |
| key: "t", | |
| value: function (e) { | |
| var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; | |
| if (!this._polyglot) throw new Error("Polyglot dont exist"); | |
| return this._polyglot.t(e, t) | |
| } | |
| }]), t | |
| }(aoba.utils.EventEmitter), | |
| c = new u; | |
| t.default = c | |
| }, function (e, t, n) { | |
| var r, i; | |
| // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | |
| // Underscore may be freely distributed under the MIT license. | |
| (function () { | |
| function n(e) { | |
| function t(t, n, r, i, a, o) { | |
| for (; a >= 0 && a < o; a += e) { | |
| var s = i ? i[a] : a; | |
| r = n(r, t[s], s, t) | |
| } | |
| return r | |
| } | |
| return function (n, r, i, a) { | |
| r = S(r, a, 4); | |
| var o = !P(n) && k.keys(n), | |
| s = (o || n).length, | |
| l = e > 0 ? 0 : s - 1; | |
| return arguments.length < 3 && (i = n[o ? o[l] : l], l += e), t(n, r, i, o, l, s) | |
| } | |
| } | |
| function a(e) { | |
| return function (t, n, r) { | |
| n = I(n, r); | |
| for (var i = T(t), a = e > 0 ? 0 : i - 1; a >= 0 && a < i; a += e) | |
| if (n(t[a], a, t)) return a; | |
| return -1 | |
| } | |
| } | |
| function o(e, t, n) { | |
| return function (r, i, a) { | |
| var o = 0, | |
| s = T(r); | |
| if ("number" == typeof a) e > 0 ? o = a >= 0 ? a : Math.max(a + s, o) : s = a >= 0 ? Math.min(a + 1, s) : a + s + 1; | |
| else if (n && a && s) return a = n(r, i), r[a] === i ? a : -1; | |
| if (i !== i) return a = t(h.call(r, o, s), k.isNaN), a >= 0 ? a + o : -1; | |
| for (a = e > 0 ? o : s - 1; a >= 0 && a < s; a += e) | |
| if (r[a] === i) return a; | |
| return -1 | |
| } | |
| } | |
| function s(e, t) { | |
| var n = D.length, | |
| r = e.constructor, | |
| i = k.isFunction(r) && r.prototype || f, | |
| a = "constructor"; | |
| for (k.has(e, a) && !k.contains(t, a) && t.push(a); n--;)(a = D[n]) in e && e[a] !== i[a] && !k.contains(t, a) && t.push(a) | |
| } | |
| var l = this, | |
| u = l._, | |
| c = Array.prototype, | |
| f = Object.prototype, | |
| d = Function.prototype, | |
| p = c.push, | |
| h = c.slice, | |
| y = f.toString, | |
| m = f.hasOwnProperty, | |
| _ = Array.isArray, | |
| g = Object.keys, | |
| b = d.bind, | |
| v = Object.create, | |
| w = function () {}, | |
| k = function (e) { | |
| return e instanceof k ? e : this instanceof k ? void(this._wrapped = e) : new k(e) | |
| }; | |
| void 0 !== e && e.exports && (t = e.exports = k), t._ = k, k.VERSION = "1.8.3"; | |
| var S = function (e, t, n) { | |
| if (void 0 === t) return e; | |
| switch (null == n ? 3 : n) { | |
| case 1: | |
| return function (n) { | |
| return e.call(t, n) | |
| }; | |
| case 2: | |
| return function (n, r) { | |
| return e.call(t, n, r) | |
| }; | |
| case 3: | |
| return function (n, r, i) { | |
| return e.call(t, n, r, i) | |
| }; | |
| case 4: | |
| return function (n, r, i, a) { | |
| return e.call(t, n, r, i, a) | |
| } | |
| } | |
| return function () { | |
| return e.apply(t, arguments) | |
| } | |
| }, | |
| I = function (e, t, n) { | |
| return null == e ? k.identity : k.isFunction(e) ? S(e, t, n) : k.isObject(e) ? k.matcher(e) : k.property(e) | |
| }; | |
| k.iteratee = function (e, t) { | |
| return I(e, t, 1 / 0) | |
| }; | |
| var E = function (e, t) { | |
| return function (n) { | |
| var r = arguments.length; | |
| if (r < 2 || null == n) return n; | |
| for (var i = 1; i < r; i++) | |
| for (var a = arguments[i], o = e(a), s = o.length, l = 0; l < s; l++) { | |
| var u = o[l]; | |
| t && void 0 !== n[u] || (n[u] = a[u]) | |
| } | |
| return n | |
| } | |
| }, | |
| A = function (e) { | |
| if (!k.isObject(e)) return {}; | |
| if (v) return v(e); | |
| w.prototype = e; | |
| var t = new w; | |
| return w.prototype = null, t | |
| }, | |
| x = function (e) { | |
| return function (t) { | |
| return null == t ? void 0 : t[e] | |
| } | |
| }, | |
| C = Math.pow(2, 53) - 1, | |
| T = x("length"), | |
| P = function (e) { | |
| var t = T(e); | |
| return "number" == typeof t && t >= 0 && t <= C | |
| }; | |
| k.each = k.forEach = function (e, t, n) { | |
| t = S(t, n); | |
| var r, i; | |
| if (P(e)) | |
| for (r = 0, i = e.length; r < i; r++) t(e[r], r, e); | |
| else { | |
| var a = k.keys(e); | |
| for (r = 0, i = a.length; r < i; r++) t(e[a[r]], a[r], e) | |
| } | |
| return e | |
| }, k.map = k.collect = function (e, t, n) { | |
| t = I(t, n); | |
| for (var r = !P(e) && k.keys(e), i = (r || e).length, a = Array(i), o = 0; o < i; o++) { | |
| var s = r ? r[o] : o; | |
| a[o] = t(e[s], s, e) | |
| } | |
| return a | |
| }, k.reduce = k.foldl = k.inject = n(1), k.reduceRight = k.foldr = n(-1), k.find = k.detect = function (e, t, n) { | |
| var r; | |
| if (void 0 !== (r = P(e) ? k.findIndex(e, t, n) : k.findKey(e, t, n)) && -1 !== r) return e[r] | |
| }, k.filter = k.select = function (e, t, n) { | |
| var r = []; | |
| return t = I(t, n), k.each(e, function (e, n, i) { | |
| t(e, n, i) && r.push(e) | |
| }), r | |
| }, k.reject = function (e, t, n) { | |
| return k.filter(e, k.negate(I(t)), n) | |
| }, k.every = k.all = function (e, t, n) { | |
| t = I(t, n); | |
| for (var r = !P(e) && k.keys(e), i = (r || e).length, a = 0; a < i; a++) { | |
| var o = r ? r[a] : a; | |
| if (!t(e[o], o, e)) return !1 | |
| } | |
| return !0 | |
| }, k.some = k.any = function (e, t, n) { | |
| t = I(t, n); | |
| for (var r = !P(e) && k.keys(e), i = (r || e).length, a = 0; a < i; a++) { | |
| var o = r ? r[a] : a; | |
| if (t(e[o], o, e)) return !0 | |
| } | |
| return !1 | |
| }, k.contains = k.includes = k.include = function (e, t, n, r) { | |
| return P(e) || (e = k.values(e)), ("number" != typeof n || r) && (n = 0), k.indexOf(e, t, n) >= 0 | |
| }, k.invoke = function (e, t) { | |
| var n = h.call(arguments, 2), | |
| r = k.isFunction(t); | |
| return k.map(e, function (e) { | |
| var i = r ? t : e[t]; | |
| return null == i ? i : i.apply(e, n) | |
| }) | |
| }, k.pluck = function (e, t) { | |
| return k.map(e, k.property(t)) | |
| }, k.where = function (e, t) { | |
| return k.filter(e, k.matcher(t)) | |
| }, k.findWhere = function (e, t) { | |
| return k.find(e, k.matcher(t)) | |
| }, k.max = function (e, t, n) { | |
| var r, i, a = -1 / 0, | |
| o = -1 / 0; | |
| if (null == t && null != e) { | |
| e = P(e) ? e : k.values(e); | |
| for (var s = 0, l = e.length; s < l; s++)(r = e[s]) > a && (a = r) | |
| } else t = I(t, n), k.each(e, function (e, n, r) { | |
| ((i = t(e, n, r)) > o || i === -1 / 0 && a === -1 / 0) && (a = e, o = i) | |
| }); | |
| return a | |
| }, k.min = function (e, t, n) { | |
| var r, i, a = 1 / 0, | |
| o = 1 / 0; | |
| if (null == t && null != e) { | |
| e = P(e) ? e : k.values(e); | |
| for (var s = 0, l = e.length; s < l; s++)(r = e[s]) < a && (a = r) | |
| } else t = I(t, n), k.each(e, function (e, n, r) { | |
| ((i = t(e, n, r)) < o || i === 1 / 0 && a === 1 / 0) && (a = e, o = i) | |
| }); | |
| return a | |
| }, k.shuffle = function (e) { | |
| for (var t, n = P(e) ? e : k.values(e), r = n.length, i = Array(r), a = 0; a < r; a++) t = k.random(0, a), t !== a && (i[a] = i[t]), i[t] = n[a]; | |
| return i | |
| }, k.sample = function (e, t, n) { | |
| return null == t || n ? (P(e) || (e = k.values(e)), e[k.random(e.length - 1)]) : k.shuffle(e).slice(0, Math.max(0, t)) | |
| }, k.sortBy = function (e, t, n) { | |
| return t = I(t, n), k.pluck(k.map(e, function (e, n, r) { | |
| return { | |
| value: e, | |
| index: n, | |
| criteria: t(e, n, r) | |
| } | |
| }).sort(function (e, t) { | |
| var n = e.criteria, | |
| r = t.criteria; | |
| if (n !== r) { | |
| if (n > r || void 0 === n) return 1; | |
| if (n < r || void 0 === r) return -1 | |
| } | |
| return e.index - t.index | |
| }), "value") | |
| }; | |
| var O = function (e) { | |
| return function (t, n, r) { | |
| var i = {}; | |
| return n = I(n, r), k.each(t, function (r, a) { | |
| var o = n(r, a, t); | |
| e(i, r, o) | |
| }), i | |
| } | |
| }; | |
| k.groupBy = O(function (e, t, n) { | |
| k.has(e, n) ? e[n].push(t) : e[n] = [t] | |
| }), k.indexBy = O(function (e, t, n) { | |
| e[n] = t | |
| }), k.countBy = O(function (e, t, n) { | |
| k.has(e, n) ? e[n]++ : e[n] = 1 | |
| }), k.toArray = function (e) { | |
| return e ? k.isArray(e) ? h.call(e) : P(e) ? k.map(e, k.identity) : k.values(e) : [] | |
| }, k.size = function (e) { | |
| return null == e ? 0 : P(e) ? e.length : k.keys(e).length | |
| }, k.partition = function (e, t, n) { | |
| t = I(t, n); | |
| var r = [], | |
| i = []; | |
| return k.each(e, function (e, n, a) { | |
| (t(e, n, a) ? r : i).push(e) | |
| }), [r, i] | |
| }, k.first = k.head = k.take = function (e, t, n) { | |
| if (null != e) return null == t || n ? e[0] : k.initial(e, e.length - t) | |
| }, k.initial = function (e, t, n) { | |
| return h.call(e, 0, Math.max(0, e.length - (null == t || n ? 1 : t))) | |
| }, k.last = function (e, t, n) { | |
| if (null != e) return null == t || n ? e[e.length - 1] : k.rest(e, Math.max(0, e.length - t)) | |
| }, k.rest = k.tail = k.drop = function (e, t, n) { | |
| return h.call(e, null == t || n ? 1 : t) | |
| }, k.compact = function (e) { | |
| return k.filter(e, k.identity) | |
| }; | |
| var N = function (e, t, n, r) { | |
| for (var i = [], a = 0, o = r || 0, s = T(e); o < s; o++) { | |
| var l = e[o]; | |
| if (P(l) && (k.isArray(l) || k.isArguments(l))) { | |
| t || (l = N(l, t, n)); | |
| var u = 0, | |
| c = l.length; | |
| for (i.length += c; u < c;) i[a++] = l[u++] | |
| } else n || (i[a++] = l) | |
| } | |
| return i | |
| }; | |
| k.flatten = function (e, t) { | |
| return N(e, t, !1) | |
| }, k.without = function (e) { | |
| return k.difference(e, h.call(arguments, 1)) | |
| }, k.uniq = k.unique = function (e, t, n, r) { | |
| k.isBoolean(t) || (r = n, n = t, t = !1), null != n && (n = I(n, r)); | |
| for (var i = [], a = [], o = 0, s = T(e); o < s; o++) { | |
| var l = e[o], | |
| u = n ? n(l, o, e) : l; | |
| t ? (o && a === u || i.push(l), a = u) : n ? k.contains(a, u) || (a.push(u), i.push(l)) : k.contains(i, l) || i.push(l) | |
| } | |
| return i | |
| }, k.union = function () { | |
| return k.uniq(N(arguments, !0, !0)) | |
| }, k.intersection = function (e) { | |
| for (var t = [], n = arguments.length, r = 0, i = T(e); r < i; r++) { | |
| var a = e[r]; | |
| if (!k.contains(t, a)) { | |
| for (var o = 1; o < n && k.contains(arguments[o], a); o++); | |
| o === n && t.push(a) | |
| } | |
| } | |
| return t | |
| }, k.difference = function (e) { | |
| var t = N(arguments, !0, !0, 1); | |
| return k.filter(e, function (e) { | |
| return !k.contains(t, e) | |
| }) | |
| }, k.zip = function () { | |
| return k.unzip(arguments) | |
| }, k.unzip = function (e) { | |
| for (var t = e && k.max(e, T).length || 0, n = Array(t), r = 0; r < t; r++) n[r] = k.pluck(e, r); | |
| return n | |
| }, k.object = function (e, t) { | |
| for (var n = {}, r = 0, i = T(e); r < i; r++) t ? n[e[r]] = t[r] : n[e[r][0]] = e[r][1]; | |
| return n | |
| }, k.findIndex = a(1), k.findLastIndex = a(-1), k.sortedIndex = function (e, t, n, r) { | |
| n = I(n, r, 1); | |
| for (var i = n(t), a = 0, o = T(e); a < o;) { | |
| var s = Math.floor((a + o) / 2); | |
| n(e[s]) < i ? a = s + 1 : o = s | |
| } | |
| return a | |
| }, k.indexOf = o(1, k.findIndex, k.sortedIndex), k.lastIndexOf = o(-1, k.findLastIndex), k.range = function (e, t, n) { | |
| null == t && (t = e || 0, e = 0), n = n || 1; | |
| for (var r = Math.max(Math.ceil((t - e) / n), 0), i = Array(r), a = 0; a < r; a++, e += n) i[a] = e; | |
| return i | |
| }; | |
| var M = function (e, t, n, r, i) { | |
| if (!(r instanceof t)) return e.apply(n, i); | |
| var a = A(e.prototype), | |
| o = e.apply(a, i); | |
| return k.isObject(o) ? o : a | |
| }; | |
| k.bind = function (e, t) { | |
| if (b && e.bind === b) return b.apply(e, h.call(arguments, 1)); | |
| if (!k.isFunction(e)) throw new TypeError("Bind must be called on a function"); | |
| var n = h.call(arguments, 2), | |
| r = function () { | |
| return M(e, r, t, this, n.concat(h.call(arguments))) | |
| }; | |
| return r | |
| }, k.partial = function (e) { | |
| var t = h.call(arguments, 1), | |
| n = function () { | |
| for (var r = 0, i = t.length, a = Array(i), o = 0; o < i; o++) a[o] = t[o] === k ? arguments[r++] : t[o]; | |
| for (; r < arguments.length;) a.push(arguments[r++]); | |
| return M(e, n, this, this, a) | |
| }; | |
| return n | |
| }, k.bindAll = function (e) { | |
| var t, n, r = arguments.length; | |
| if (r <= 1) throw new Error("bindAll must be passed function names"); | |
| for (t = 1; t < r; t++) n = arguments[t], e[n] = k.bind(e[n], e); | |
| return e | |
| }, k.memoize = function (e, t) { | |
| var n = function (r) { | |
| var i = n.cache, | |
| a = "" + (t ? t.apply(this, arguments) : r); | |
| return k.has(i, a) || (i[a] = e.apply(this, arguments)), i[a] | |
| }; | |
| return n.cache = {}, n | |
| }, k.delay = function (e, t) { | |
| var n = h.call(arguments, 2); | |
| return setTimeout(function () { | |
| return e.apply(null, n) | |
| }, t) | |
| }, k.defer = k.partial(k.delay, k, 1), k.throttle = function (e, t, n) { | |
| var r, i, a, o = null, | |
| s = 0; | |
| n || (n = {}); | |
| var l = function () { | |
| s = !1 === n.leading ? 0 : k.now(), o = null, a = e.apply(r, i), o || (r = i = null) | |
| }; | |
| return function () { | |
| var u = k.now(); | |
| s || !1 !== n.leading || (s = u); | |
| var c = t - (u - s); | |
| return r = this, i = arguments, c <= 0 || c > t ? (o && (clearTimeout(o), o = null), s = u, a = e.apply(r, i), o || (r = i = null)) : o || !1 === n.trailing || (o = setTimeout(l, c)), a | |
| } | |
| }, k.debounce = function (e, t, n) { | |
| var r, i, a, o, s, l = function () { | |
| var u = k.now() - o; | |
| u < t && u >= 0 ? r = setTimeout(l, t - u) : (r = null, n || (s = e.apply(a, i), r || (a = i = null))) | |
| }; | |
| return function () { | |
| a = this, i = arguments, o = k.now(); | |
| var u = n && !r; | |
| return r || (r = setTimeout(l, t)), u && (s = e.apply(a, i), a = i = null), s | |
| } | |
| }, k.wrap = function (e, t) { | |
| return k.partial(t, e) | |
| }, k.negate = function (e) { | |
| return function () { | |
| return !e.apply(this, arguments) | |
| } | |
| }, k.compose = function () { | |
| var e = arguments, | |
| t = e.length - 1; | |
| return function () { | |
| for (var n = t, r = e[t].apply(this, arguments); n--;) r = e[n].call(this, r); | |
| return r | |
| } | |
| }, k.after = function (e, t) { | |
| return function () { | |
| if (--e < 1) return t.apply(this, arguments) | |
| } | |
| }, k.before = function (e, t) { | |
| var n; | |
| return function () { | |
| return --e > 0 && (n = t.apply(this, arguments)), e <= 1 && (t = null), n | |
| } | |
| }, k.once = k.partial(k.before, 2); | |
| var R = !{ | |
| toString: null | |
| }.propertyIsEnumerable("toString"), | |
| D = ["valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"]; | |
| k.keys = function (e) { | |
| if (!k.isObject(e)) return []; | |
| if (g) return g(e); | |
| var t = []; | |
| for (var n in e) k.has(e, n) && t.push(n); | |
| return R && s(e, t), t | |
| }, k.allKeys = function (e) { | |
| if (!k.isObject(e)) return []; | |
| var t = []; | |
| for (var n in e) t.push(n); | |
| return R && s(e, t), t | |
| }, k.values = function (e) { | |
| for (var t = k.keys(e), n = t.length, r = Array(n), i = 0; i < n; i++) r[i] = e[t[i]]; | |
| return r | |
| }, k.mapObject = function (e, t, n) { | |
| t = I(t, n); | |
| for (var r, i = k.keys(e), a = i.length, o = {}, s = 0; s < a; s++) r = i[s], o[r] = t(e[r], r, e); | |
| return o | |
| }, k.pairs = function (e) { | |
| for (var t = k.keys(e), n = t.length, r = Array(n), i = 0; i < n; i++) r[i] = [t[i], e[t[i]]]; | |
| return r | |
| }, k.invert = function (e) { | |
| for (var t = {}, n = k.keys(e), r = 0, i = n.length; r < i; r++) t[e[n[r]]] = n[r]; | |
| return t | |
| }, k.functions = k.methods = function (e) { | |
| var t = []; | |
| for (var n in e) k.isFunction(e[n]) && t.push(n); | |
| return t.sort() | |
| }, k.extend = E(k.allKeys), k.extendOwn = k.assign = E(k.keys), k.findKey = function (e, t, n) { | |
| t = I(t, n); | |
| for (var r, i = k.keys(e), a = 0, o = i.length; a < o; a++) | |
| if (r = i[a], t(e[r], r, e)) return r | |
| }, k.pick = function (e, t, n) { | |
| var r, i, a = {}, | |
| o = e; | |
| if (null == o) return a; | |
| k.isFunction(t) ? (i = k.allKeys(o), r = S(t, n)) : (i = N(arguments, !1, !1, 1), r = function (e, t, n) { | |
| return t in n | |
| }, o = Object(o)); | |
| for (var s = 0, l = i.length; s < l; s++) { | |
| var u = i[s], | |
| c = o[u]; | |
| r(c, u, o) && (a[u] = c) | |
| } | |
| return a | |
| }, k.omit = function (e, t, n) { | |
| if (k.isFunction(t)) t = k.negate(t); | |
| else { | |
| var r = k.map(N(arguments, !1, !1, 1), String); | |
| t = function (e, t) { | |
| return !k.contains(r, t) | |
| } | |
| } | |
| return k.pick(e, t, n) | |
| }, k.defaults = E(k.allKeys, !0), k.create = function (e, t) { | |
| var n = A(e); | |
| return t && k.extendOwn(n, t), n | |
| }, k.clone = function (e) { | |
| return k.isObject(e) ? k.isArray(e) ? e.slice() : k.extend({}, e) : e | |
| }, k.tap = function (e, t) { | |
| return t(e), e | |
| }, k.isMatch = function (e, t) { | |
| var n = k.keys(t), | |
| r = n.length; | |
| if (null == e) return !r; | |
| for (var i = Object(e), a = 0; a < r; a++) { | |
| var o = n[a]; | |
| if (t[o] !== i[o] || !(o in i)) return !1 | |
| } | |
| return !0 | |
| }; | |
| var F = function (e, t, n, r) { | |
| if (e === t) return 0 !== e || 1 / e == 1 / t; | |
| if (null == e || null == t) return e === t; | |
| e instanceof k && (e = e._wrapped), t instanceof k && (t = t._wrapped); | |
| var i = y.call(e); | |
| if (i !== y.call(t)) return !1; | |
| switch (i) { | |
| case "[object RegExp]": | |
| case "[object String]": | |
| return "" + e == "" + t; | |
| case "[object Number]": | |
| return +e != +e ? +t != +t : 0 == +e ? 1 / +e == 1 / t : +e == +t; | |
| case "[object Date]": | |
| case "[object Boolean]": | |
| return +e == +t | |
| } | |
| var a = "[object Array]" === i; | |
| if (!a) { | |
| if ("object" != typeof e || "object" != typeof t) return !1; | |
| var o = e.constructor, | |
| s = t.constructor; | |
| if (o !== s && !(k.isFunction(o) && o instanceof o && k.isFunction(s) && s instanceof s) && "constructor" in e && "constructor" in t) return !1 | |
| } | |
| n = n || [], r = r || []; | |
| for (var l = n.length; l--;) | |
| if (n[l] === e) return r[l] === t; | |
| if (n.push(e), r.push(t), a) { | |
| if ((l = e.length) !== t.length) return !1; | |
| for (; l--;) | |
| if (!F(e[l], t[l], n, r)) return !1 | |
| } else { | |
| var u, c = k.keys(e); | |
| if (l = c.length, k.keys(t).length !== l) return !1; | |
| for (; l--;) | |
| if (u = c[l], !k.has(t, u) || !F(e[u], t[u], n, r)) return !1 | |
| } | |
| return n.pop(), r.pop(), !0 | |
| }; | |
| k.isEqual = function (e, t) { | |
| return F(e, t) | |
| }, k.isEmpty = function (e) { | |
| return null == e || (P(e) && (k.isArray(e) || k.isString(e) || k.isArguments(e)) ? 0 === e.length : 0 === k.keys(e).length) | |
| }, k.isElement = function (e) { | |
| return !(!e || 1 !== e.nodeType) | |
| }, k.isArray = _ || function (e) { | |
| return "[object Array]" === y.call(e) | |
| }, k.isObject = function (e) { | |
| var t = typeof e; | |
| return "function" === t || "object" === t && !!e | |
| }, k.each(["Arguments", "Function", "String", "Number", "Date", "RegExp", "Error"], function (e) { | |
| k["is" + e] = function (t) { | |
| return y.call(t) === "[object " + e + "]" | |
| } | |
| }), k.isArguments(arguments) || (k.isArguments = function (e) { | |
| return k.has(e, "callee") | |
| }), "function" != typeof /./ && "object" != typeof Int8Array && (k.isFunction = function (e) { | |
| return "function" == typeof e || !1 | |
| }), k.isFinite = function (e) { | |
| return isFinite(e) && !isNaN(parseFloat(e)) | |
| }, k.isNaN = function (e) { | |
| return k.isNumber(e) && e !== +e | |
| }, k.isBoolean = function (e) { | |
| return !0 === e || !1 === e || "[object Boolean]" === y.call(e) | |
| }, k.isNull = function (e) { | |
| return null === e | |
| }, k.isUndefined = function (e) { | |
| return void 0 === e | |
| }, k.has = function (e, t) { | |
| return null != e && m.call(e, t) | |
| }, k.noConflict = function () { | |
| return l._ = u, this | |
| }, k.identity = function (e) { | |
| return e | |
| }, k.constant = function (e) { | |
| return function () { | |
| return e | |
| } | |
| }, k.noop = function () {}, k.property = x, k.propertyOf = function (e) { | |
| return null == e ? function () {} : function (t) { | |
| return e[t] | |
| } | |
| }, k.matcher = k.matches = function (e) { | |
| return e = k.extendOwn({}, e), | |
| function (t) { | |
| return k.isMatch(t, e) | |
| } | |
| }, k.times = function (e, t, n) { | |
| var r = Array(Math.max(0, e)); | |
| t = S(t, n, 1); | |
| for (var i = 0; i < e; i++) r[i] = t(i); | |
| return r | |
| }, k.random = function (e, t) { | |
| return null == t && (t = e, e = 0), e + Math.floor(Math.random() * (t - e + 1)) | |
| }, k.now = Date.now || function () { | |
| return (new Date).getTime() | |
| }; | |
| var B = { | |
| "&": "&", | |
| "<": "<", | |
| ">": ">", | |
| '"': """, | |
| "'": "'", | |
| "`": "`" | |
| }, | |
| j = k.invert(B), | |
| L = function (e) { | |
| var t = function (t) { | |
| return e[t] | |
| }, | |
| n = "(?:" + k.keys(e).join("|") + ")", | |
| r = RegExp(n), | |
| i = RegExp(n, "g"); | |
| return function (e) { | |
| return e = null == e ? "" : "" + e, r.test(e) ? e.replace(i, t) : e | |
| } | |
| }; | |
| k.escape = L(B), k.unescape = L(j), k.result = function (e, t, n) { | |
| var r = null == e ? void 0 : e[t]; | |
| return void 0 === r && (r = n), k.isFunction(r) ? r.call(e) : r | |
| }; | |
| var U = 0; | |
| k.uniqueId = function (e) { | |
| var t = ++U + ""; | |
| return e ? e + t : t | |
| }, k.templateSettings = { | |
| evaluate: /<%([\s\S]+?)%>/g, | |
| interpolate: /<%=([\s\S]+?)%>/g, | |
| escape: /<%-([\s\S]+?)%>/g | |
| }; | |
| var H = /(.)^/, | |
| G = { | |
| "'": "'", | |
| "\\": "\\", | |
| "\r": "r", | |
| "\n": "n", | |
| "\u2028": "u2028", | |
| "\u2029": "u2029" | |
| }, | |
| z = /\\|'|\r|\n|\u2028|\u2029/g, | |
| V = function (e) { | |
| return "\\" + G[e] | |
| }; | |
| k.template = function (e, t, n) { | |
| !t && n && (t = n), t = k.defaults({}, t, k.templateSettings); | |
| var r = RegExp([(t.escape || H).source, (t.interpolate || H).source, (t.evaluate || H).source].join("|") + "|$", "g"), | |
| i = 0, | |
| a = "__p+='"; | |
| e.replace(r, function (t, n, r, o, s) { | |
| return a += e.slice(i, s).replace(z, V), i = s + t.length, n ? a += "'+\n((__t=(" + n + "))==null?'':_.escape(__t))+\n'" : r ? a += "'+\n((__t=(" + r + "))==null?'':__t)+\n'" : o && (a += "';\n" + o + "\n__p+='"), t | |
| }), a += "';\n", t.variable || (a = "with(obj||{}){\n" + a + "}\n"), a = "var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n" + a + "return __p;\n"; | |
| try { | |
| var o = new Function(t.variable || "obj", "_", a) | |
| } catch (e) { | |
| throw e.source = a, e | |
| } | |
| var s = function (e) { | |
| return o.call(this, e, k) | |
| }; | |
| return s.source = "function(" + (t.variable || "obj") + "){\n" + a + "}", s | |
| }, k.chain = function (e) { | |
| var t = k(e); | |
| return t._chain = !0, t | |
| }; | |
| var K = function (e, t) { | |
| return e._chain ? k(t).chain() : t | |
| }; | |
| k.mixin = function (e) { | |
| k.each(k.functions(e), function (t) { | |
| var n = k[t] = e[t]; | |
| k.prototype[t] = function () { | |
| var e = [this._wrapped]; | |
| return p.apply(e, arguments), K(this, n.apply(k, e)) | |
| } | |
| }) | |
| }, k.mixin(k), k.each(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], function (e) { | |
| var t = c[e]; | |
| k.prototype[e] = function () { | |
| var n = this._wrapped; | |
| return t.apply(n, arguments), "shift" !== e && "splice" !== e || 0 !== n.length || delete n[0], K(this, n) | |
| } | |
| }), k.each(["concat", "join", "slice"], function (e) { | |
| var t = c[e]; | |
| k.prototype[e] = function () { | |
| return K(this, t.apply(this._wrapped, arguments)) | |
| } | |
| }), k.prototype.value = function () { | |
| return this._wrapped | |
| }, k.prototype.valueOf = k.prototype.toJSON = k.prototype.value, k.prototype.toString = function () { | |
| return "" + this._wrapped | |
| }, r = [], void 0 !== (i = function () { | |
| return k | |
| }.apply(t, r)) && (e.exports = i) | |
| }).call(this) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e) { | |
| if (Array.isArray(e)) { | |
| for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t]; | |
| return n | |
| } | |
| return Array.from(e) | |
| } | |
| function a(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function o(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function s(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var l = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| u = n(0), | |
| c = r(u), | |
| f = n(250), | |
| d = r(f), | |
| p = n(397), | |
| h = r(p), | |
| y = n(14), | |
| m = r(y), | |
| _ = n(3), | |
| g = r(_), | |
| b = n(1), | |
| v = r(b), | |
| w = n(1018), | |
| k = r(w), | |
| S = n(66), | |
| I = r(S), | |
| E = n(1019), | |
| A = r(E), | |
| x = n(67), | |
| C = r(x), | |
| T = n(42), | |
| P = r(T), | |
| O = function (e) { | |
| function t() { | |
| a(this, t); | |
| var e = o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); | |
| return e.interactive = !0, e._tapEffectLayer = k.default.new(), e._loadingLayer = null, e.on("tap", e._showTapEffect, e), e.on("removed", e._onRemoved, e), e.on("enter", e.onEnter, e), e.on("exit", e._onExit, e), I.default.isAndroid() && I.default.isChrome() && e.once("tap", A.default), e | |
| } | |
| return s(t, e), l(t, [{ | |
| key: "_onRemoved", | |
| value: function () {} | |
| }, { | |
| key: "onEnter", | |
| value: function () {} | |
| }, { | |
| key: "_onExit", | |
| value: function () { | |
| this.hideLoadingLayer() | |
| } | |
| }, { | |
| key: "addHeader", | |
| value: function (e) { | |
| return c.default.commonUiHelper.createHeader(e).addTo(this) | |
| } | |
| }, { | |
| key: "addGlobalMenuButton", | |
| value: function () { | |
| return h.default.new().addTo(this) | |
| } | |
| }, { | |
| key: "addBackButton", | |
| value: function (e) { | |
| return c.default.CancelButton.new("back_button.png").addTo(this, 51, 589).on("tap", e) | |
| } | |
| }, { | |
| key: "showLoadingLayer", | |
| value: function () { | |
| var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; | |
| return this._loadingLayer && this.hideLoadingLayer(), this._loadingLayer = d.default.new().addTo(this), e.transparent ? this._loadingLayer.alpha = 0 : this._loadingLayer.fadeIn(), this._loadingLayer | |
| } | |
| }, { | |
| key: "hideLoadingLayer", | |
| value: function () { | |
| if (this._loadingLayer) { | |
| var e = this._loadingLayer; | |
| this._loadingLayer = null, e.fadeOut().then(function () { | |
| e.destroy({ | |
| children: !0 | |
| }), e = null | |
| }) | |
| } | |
| } | |
| }, { | |
| key: "showRecommendLandscapeOrientationDialog", | |
| value: function () { | |
| var e = this; | |
| this._landscapeDialog || (this._landscapeDialog = m.default.new({ | |
| size: "s", | |
| title: g.default.t("landscapeDialog.title"), | |
| text: g.default.t("landscapeDialog.text"), | |
| type: "close" | |
| }).on("closeEnd", function () { | |
| e._landscapeDialog = null | |
| }).addTo(this), this._landscapeDialog.open()) | |
| } | |
| }, { | |
| key: "showErrorDialog", | |
| value: function (e) { | |
| var t = void 0, | |
| n = void 0; | |
| e.response && e.response.body && (t = e.response.body.requestId, n = e.response.body.status); | |
| var r = void 0, | |
| i = v.default.app.SERVER_ERROR_TYPES; | |
| switch (e.type) { | |
| case i.FORBIDDEN: | |
| r = v.default.app.FORBIDDEN_ERRROR_STATUS; | |
| break; | |
| case i.TIMEOUT: | |
| r = v.default.app.TIMEOUT_ERRROR_STATUS; | |
| break; | |
| case i.OTHER: | |
| r = v.default.app.DEFAULT_ERROR_STATUS; | |
| break; | |
| case i.BAD_REQUEST: | |
| r = v.default.app.BAD_REQUEST_STATUSES.find(function (e) { | |
| return e.code === n | |
| }), r || (r = v.default.app.DEFAULT_ERROR_STATUS); | |
| break; | |
| default: | |
| r = v.default.app.DEFAULT_ERROR_STATUS | |
| } | |
| m.default.new({ | |
| size: "s", | |
| title: g.default.t(r.dialogTitleKey), | |
| text: g.default.t(r.dialogContentKey, { | |
| requestId: t, | |
| errorCode: n | |
| }), | |
| buttons: [{ | |
| type: "close", | |
| image: "to_title_button.png" | |
| }] | |
| }).on("closeEnd", function () { | |
| window.location.replace("/") | |
| }).addTo(this).open(), this.hideLoadingLayer() | |
| } | |
| }, { | |
| key: "showMaintenanceDialog", | |
| value: function (e) { | |
| this.hideLoadingLayer(), m.default.new({ | |
| size: "l", | |
| title: g.default.t("maintenance.title"), | |
| text: e.text.replace(/\\n/g, "\n") || g.default.t("maintenance.defaultMessage"), | |
| buttons: [{ | |
| type: "submit", | |
| image: "inquiry_button_l.png" | |
| }], | |
| height: 200, | |
| textAnchorY: .5, | |
| isCenter: !0 | |
| }).on("closeEnd", function () { | |
| window.location.replace("/") | |
| }).on("submit", function () { | |
| P.default.PF_URI && C.default.ui.showInquiryDialog() | |
| }).addTo(this).open() | |
| } | |
| }, { | |
| key: "_showTapEffect", | |
| value: function (e) { | |
| this._tapEffectLayer.addTo(this), this._tapEffectLayer.play(e.data.global) | |
| } | |
| }], [{ | |
| key: "request", | |
| value: function () { | |
| return Promise.resolve() | |
| } | |
| }, { | |
| key: "importModuleAsync", | |
| value: function () { | |
| return Promise.resolve() | |
| } | |
| }, { | |
| key: "getContentResources", | |
| value: function (e) { | |
| return [] | |
| } | |
| }, { | |
| key: "getRequiredBgmResourceNames", | |
| value: function () { | |
| return [] | |
| } | |
| }, { | |
| key: "getResourceList", | |
| value: function (e) { | |
| return [].concat(i(this.uiResources), i(this.getContentResources(e))) | |
| } | |
| }, { | |
| key: "uiResources", | |
| get: function () { | |
| return [] | |
| } | |
| }]), t | |
| }(aoba.Scene); | |
| t.default = O | |
| }, function (e, t) { | |
| "function" == typeof Object.create ? e.exports = function (e, t) { | |
| e.super_ = t, e.prototype = Object.create(t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }) | |
| } : e.exports = function (e, t) { | |
| e.super_ = t; | |
| var n = function () {}; | |
| n.prototype = t.prototype, e.prototype = new n, e.prototype.constructor = e | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = { | |
| transition: { | |
| maskIn: "sounds/se/028a.m4a", | |
| maskOut: "sounds/se/028b.m4a" | |
| }, | |
| ui: { | |
| typeText: "sounds/se/002.m4a", | |
| decide: "sounds/se/003.m4a", | |
| cancel: "sounds/se/004.m4a", | |
| select: "sounds/se/005.m4a", | |
| scroll: "sounds/se/011.m4a", | |
| stamp: "sounds/se/335.m4a", | |
| popup: "sounds/se/215.m4a" | |
| } | |
| } | |
| }, function (e, t, n) { | |
| var r = n(17); | |
| e.exports = function (e) { | |
| if (!r(e)) throw TypeError(e + " is not an object!"); | |
| return e | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(129), | |
| a = r(i), | |
| o = n(4), | |
| s = r(o), | |
| l = n(42), | |
| u = r(l), | |
| c = n(81), | |
| f = r(c), | |
| d = n(229), | |
| p = r(d), | |
| h = n(359), | |
| y = r(h), | |
| m = f.default.SERVER_ERROR_TYPES, | |
| _ = function (e) { | |
| return new Promise(function (t) { | |
| setTimeout(function () { | |
| t() | |
| }, e) | |
| }) | |
| }, | |
| g = !1; | |
| t.default = { | |
| _defaultHeaders: {}, | |
| _errorEvent: null, | |
| addHeader: function (e, t) { | |
| this._defaultHeaders[e] = t | |
| }, | |
| setErrorEvent: function (e) { | |
| this._errorEvent = e | |
| }, | |
| get: function (e, t, n) { | |
| return this.request("get", e, { | |
| query: t, | |
| headers: n | |
| }) | |
| }, | |
| post: function (e, t, n) { | |
| return this.request("post", e, { | |
| params: t, | |
| headers: n | |
| }) | |
| }, | |
| put: function (e, t, n) { | |
| return this.request("put", e, { | |
| params: t, | |
| headers: n | |
| }) | |
| }, | |
| patch: function (e, t, n) { | |
| return this.request("PATCH", e, { | |
| params: t, | |
| headers: n | |
| }) | |
| }, | |
| delete: function (e, t, n) { | |
| return this.request("delete", e, { | |
| params: t, | |
| headers: n | |
| }) | |
| }, | |
| request: function (e, t, n) { | |
| var r = this; | |
| return g ? _(80).then(function () { | |
| return r.request(e, t, n) | |
| }) : (g = !0, this._request({ | |
| method: e, | |
| path: t, | |
| options: n | |
| }).then(function (e) { | |
| if (!e) return g = !1, Promise.reject(); | |
| if (e.text && e.text.length > 0) { | |
| var t = e.text, | |
| n = e.header["x-sessionid"] || ""; | |
| e.text = decodeURIComponent(escape(y.default.decodeResponse(t, n))), e.body = JSON.parse(e.text) | |
| } | |
| return r.addHeader("x-sessionid", e.header["x-sessionid"]), g = !1, e.header["x-maintenance"] ? (r._handleMaintenance(decodeURIComponent(escape(e.header["x-maintenance-text"] || ""))), Promise.reject()) : Promise.resolve(e) | |
| })) | |
| }, | |
| _encryptRequest: function (e) { | |
| var t = e.method, | |
| n = e.path, | |
| r = e.headers, | |
| i = e.options, | |
| o = [t.toUpperCase(), "/" + n, "HTTP/1.1\r\n"].join(" "); | |
| if ("get" !== t && (o += "Content-Type: application/json\r\n"), Object.keys(r).forEach(function (e) { | |
| var t = e + ": " + r[e] + "\r\n"; | |
| o += t | |
| }), i.params) { | |
| var s = JSON.stringify(i.params); | |
| o += "Content-Length: " + s.length + "\r\n", o += "\r\n" + s | |
| } else o += "\r\n"; | |
| var l = (0, a.default)("POST", u.default.API_ROOT).timeout(3e4); | |
| return l.type("application/json"), l.send(y.default.encodeRequest(o)) | |
| }, | |
| _request: function (e) { | |
| var t = this, | |
| n = e.method, | |
| r = e.path, | |
| i = e.options, | |
| a = i.headers ? s.default.extend(i.headers, this._defaultHeaders) : this._defaultHeaders; | |
| return this.addHeader("x-version", u.default.X_VERSION), this._encryptRequest({ | |
| method: n, | |
| path: r, | |
| headers: a, | |
| options: i | |
| }).catch(function (e) { | |
| return t._handleError(e) | |
| }) | |
| }, | |
| _handleMaintenance: function (e) { | |
| this._errorEvent.emit("maintenance", { | |
| text: e | |
| }) | |
| }, | |
| _handleError: function (e) { | |
| if (g = !1, e) { | |
| if (e.timeout) return void this._errorEvent.emit("error", { | |
| type: m.TIMEOUT | |
| }); | |
| if (403 === e.status) return void this._errorEvent.emit("error", { | |
| type: m.FORBIDDEN | |
| }); | |
| var t = e.response; | |
| if (t && this.addHeader("x-sessionid", t.header["x-sessionid"]), p.default.removePreUrlFromStorage(), e.status >= 400 && e.status < 500) return void(t && t.body ? this._errorEvent.emit("error", { | |
| type: m.BAD_REQUEST, | |
| response: t.body | |
| }) : this._errorEvent.emit("error", { | |
| type: m.OTHER | |
| })); | |
| this._errorEvent.emit("error", { | |
| type: m.OTHER | |
| }) | |
| } | |
| } | |
| } | |
| }, function (e, t) { | |
| e.exports = function (e) { | |
| return null == e ? "" : "" + e | |
| } | |
| }, function (e, t) { | |
| var n = e.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); | |
| "number" == typeof __g && (__g = n) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(21), | |
| a = r(i), | |
| o = n(812), | |
| s = r(o), | |
| l = n(107), | |
| u = r(l), | |
| c = n(357), | |
| f = r(c), | |
| d = n(42), | |
| p = r(d), | |
| h = n(353), | |
| y = r(h), | |
| m = n(229), | |
| _ = r(m), | |
| g = n(1006), | |
| b = r(g), | |
| v = n(114), | |
| w = r(v), | |
| k = n(97), | |
| S = r(k), | |
| I = n(66), | |
| E = r(I), | |
| A = aoba, | |
| x = A.game, | |
| C = A.loader, | |
| T = A.Sound, | |
| P = A.soundManager, | |
| O = A.sceneManager, | |
| N = !1, | |
| M = !1, | |
| R = function () { | |
| var e = !0, | |
| t = function t() { | |
| if (e) { | |
| E.default.isChrome() && aoba.utils.audioContext.resume(); | |
| var n = new T("sounds/se/002.m4a"); | |
| n.play(), n.volume = 0, n.stop(), e = !1, document.body.removeEventListener("touchend", t), document.body.removeEventListener("mouseup", t) | |
| } | |
| }; | |
| document.body.addEventListener("touchend", t), document.body.addEventListener("mouseup", t) | |
| }, | |
| D = function (e) { | |
| if (!M) return void(M = !0); | |
| history.pushState("", "", e) | |
| }, | |
| F = function (e) { | |
| D(e), e.split("/")[1] && "/login" !== e && _.default.setPreUrlToStorage(), aoba.utils.isMobile.any && "" !== document.referrer && S.default.isExternalReferrer() && S.default.isScreenPortraitOrientation() && setTimeout(function () { | |
| aoba.sceneManager.currentScene.showRecommendLandscapeOrientationDialog() | |
| }, 2e3) | |
| }, | |
| B = function (e) { | |
| var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; | |
| if (N) return Promise.resolve(); | |
| N = !0; | |
| var n = f.default[e]; | |
| if (E.default.webViewInApp() && "/" !== e && "" !== e) return window.location.replace(window.location.href), N = !1, new Promise(function (e, t) {}); | |
| var r = void 0; | |
| return "function" == typeof n ? (t.request = !1 !== t.request, r = n(t)) : r = a.default.loadSceneAsync(n, t), r.then(function () { | |
| var n = t.path || e; | |
| F(n), N = !1 | |
| }) | |
| }, | |
| j = function () { | |
| var e = []; | |
| return e.push(new Promise(function (e) { | |
| return C.add(y.default).load(e) | |
| })), e.push((0, b.default)()), Promise.all(e) | |
| }, | |
| L = function (e, t) { | |
| if (x.running) return void window.location.reload(); | |
| j().then(function () { | |
| return R(), (0, s.default)(P), O.loadScene("loading", {}, !0), x.run(), u.default.start(x), "/_event/:category/:id" === e || "_video" === e ? void B(e, { | |
| sceneParams: t.params, | |
| path: t.path | |
| }) : "" === p.default.PF_URI && null === localStorage.getItem("userId") || "/login" === e ? void B("/login") : void(0, w.default)().then(function (n) { | |
| var r = n.body; | |
| Object.assign(t.params, r, n.headers), r.isCreated ? B(e, { | |
| sceneParams: t.params, | |
| path: t.path | |
| }) : B("/", { | |
| request: !1, | |
| sceneParams: t.params | |
| }) | |
| }) | |
| }) | |
| }; | |
| t.default = { | |
| loadCommonAssets: j, | |
| onLoadScene: F, | |
| directTo: B, | |
| updateHashState: D, | |
| init: L | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| /* | |
| * Underscore.string | |
| * (c) 2010 Esa-Matti Suuronen <esa-matti aet suuronen dot org> | |
| * Underscore.string is freely distributable under the terms of the MIT license. | |
| * Documentation: https://github.com/epeli/underscore.string | |
| * Some code is borrowed from MooTools and Alexandru Marasteanu. | |
| * Version '3.3.4' | |
| * @preserve | |
| */ | |
| function r(e) { | |
| if (!(this instanceof r)) return new r(e); | |
| this._wrapped = e | |
| } | |
| function i(e, t) { | |
| "function" == typeof t && (r.prototype[e] = function () { | |
| var e = [this._wrapped].concat(Array.prototype.slice.call(arguments)), | |
| n = t.apply(null, e); | |
| return "string" == typeof n ? new r(n) : n | |
| }) | |
| } | |
| r.VERSION = "3.3.4", r.isBlank = n(383), r.stripTags = n(860), r.capitalize = n(233), r.decapitalize = n(384), r.chop = n(861), r.trim = n(75), r.clean = n(862), r.cleanDiacritics = n(386), r.count = n(863), r.chars = n(235), r.swapCase = n(864), r.escapeHTML = n(865), r.unescapeHTML = n(867), r.splice = n(387), r.insert = n(869), r.replaceAll = n(870), r.include = n(871), r.join = n(872), r.lines = n(873), r.dedent = n(874), r.reverse = n(875), r.startsWith = n(876), r.endsWith = n(877), r.pred = n(878), r.succ = n(879), r.titleize = n(880), r.camelize = n(390), r.underscored = n(391), r.dasherize = n(392), r.classify = n(881), r.humanize = n(882), r.ltrim = n(883), r.rtrim = n(236), r.truncate = n(884), r.prune = n(885), r.words = n(886), r.pad = n(166), r.lpad = n(887), r.rpad = n(888), r.lrpad = n(889), r.sprintf = n(890), r.vsprintf = n(891), r.toNumber = n(892), r.numberFormat = n(893), r.strRight = n(894), r.strRightBack = n(895), r.strLeft = n(896), r.strLeftBack = n(897), r.toSentence = n(395), r.toSentenceSerial = n(898), r.slugify = n(899), r.surround = n(396), r.quote = n(900), r.unquote = n(901), r.repeat = n(902), r.naturalCmp = n(903), r.levenshtein = n(904), r.toBoolean = n(905), r.exports = n(906), r.escapeRegExp = n(385), r.wrap = n(907), r.map = n(908), r.strip = r.trim, r.lstrip = r.ltrim, r.rstrip = r.rtrim, r.center = r.lrpad, r.rjust = r.lpad, r.ljust = r.rpad, r.contains = r.include, r.q = r.quote, r.toBool = r.toBoolean, r.camelcase = r.camelize, r.mapChars = r.map, r.prototype = { | |
| value: function () { | |
| return this._wrapped | |
| } | |
| }; | |
| for (var a in r) i(a, r[a]); | |
| i("tap", function (e, t) { | |
| return t(e) | |
| }); | |
| var o = ["toUpperCase", "toLowerCase", "split", "replace", "slice", "substring", "substr", "concat"]; | |
| for (var s in o) ! function (e) { | |
| i(e, function (t) { | |
| var n = Array.prototype.slice.call(arguments, 1); | |
| return String.prototype[e].apply(t, n) | |
| }) | |
| }(o[s]); | |
| e.exports = r | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| l = n(1), | |
| u = r(l), | |
| c = n(110), | |
| f = r(c), | |
| d = n(168), | |
| p = r(d), | |
| h = n(161), | |
| y = r(h), | |
| m = { | |
| fill: 5063497, | |
| fontFamily: "HummingStd-E", | |
| fontSize: 24 | |
| }, | |
| _ = { | |
| align: "center", | |
| fill: 5063497, | |
| fontFamily: "HummingStd-E", | |
| fontSize: 20 | |
| }, | |
| g = { | |
| 1: 0, | |
| 2: 30, | |
| 3: 10 | |
| }, | |
| b = function (e) { | |
| function t(e) { | |
| i(this, t); | |
| var n = e.size, | |
| r = void 0 === n ? "s" : n, | |
| o = e.title, | |
| s = e.type, | |
| l = e.buttons, | |
| c = void 0 === l ? [] : l, | |
| d = e.text, | |
| h = e.container, | |
| b = e.textAnchorY, | |
| v = void 0 === b ? 0 : b, | |
| w = e.height, | |
| k = void 0 === w ? null : w, | |
| S = e.isCenter, | |
| I = void 0 !== S && S, | |
| E = e.marginTop, | |
| A = void 0 === E ? 20 : E, | |
| x = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); | |
| x._overlay = (0, y.default)().addTo(x); | |
| var C = aoba.Container.new(), | |
| T = aoba.Sprite.new("pop_" + r + "_top.png"), | |
| P = aoba.Sprite.new("pop_" + r + "_middle.png"), | |
| O = aoba.Sprite.new("pop_" + r + "_bottom.png"), | |
| N = h || aoba.Container.new(), | |
| M = aoba.Container.new(); | |
| o && aoba.Text.new(o, m).addTo(T, 56, 18), d && aoba.Text.new(d, _).addTo(N, 0, 0, { | |
| anchor: aoba.p(.5, v) | |
| }), "close" === s && c.push({ | |
| type: "close", | |
| image: "close_button.png" | |
| }), "submit" === s && (c.push({ | |
| type: "close", | |
| image: "cancel_button.png" | |
| }), c.push({ | |
| type: "submit", | |
| image: "ok_button.png" | |
| })); | |
| var R = g[c.length]; | |
| c.forEach(function (e, t) { | |
| var n = e.buttonClass || ("close" === e.type ? p.default : f.default), | |
| r = n.new(e.image); | |
| if (r.addTo(M, (r.width + R) * t, 0, { | |
| anchor: .5 | |
| }), e.type ? r.on("tap", x[e.type], x) : e.callback && r.on("tap", function () { | |
| e.callback(x) | |
| }), e.grayFilter) { | |
| var i = new aoba.filters.ColorMatrixFilter; | |
| i.brightness(.6, !0), r.filters = [i], r.interactive = !1 | |
| } | |
| }), M.pivot.set(M.width / 2, 0); | |
| var D = k || N.height; | |
| P.height = D + M.height + 48, T.addTo(C), P.addTo(C, 0, T.height), O.addTo(C, 0, T.height + P.height), C.addTo(x, u.default.SCREEN_CENTER.x, u.default.SCREEN_CENTER.y, { | |
| pivot: .5 | |
| }); | |
| var F = C.width / 2, | |
| B = void 0; | |
| return B = I ? C.height / 2 : T.height + A, N.addTo(C, F, B), M.addTo(C, (C.width + M.children[0].width) / 2, C.height - 64), x._overlay.alpha = 0, x._top = T, x._base = C, x._main = N, x._buttons = M, x._base.scale.set(0), x | |
| } | |
| return o(t, e), s(t, [{ | |
| key: "submit", | |
| value: function () { | |
| this.emit("submit"), this.destroy({ | |
| children: !0 | |
| }) | |
| } | |
| }, { | |
| key: "open", | |
| value: function () { | |
| var e = this; | |
| if (arguments.length > 0 && void 0 !== arguments[0] && !arguments[0]) return this._overlay.alpha = 1, this._base.scale.set(1), void this.emit("openEnd"); | |
| aoba.Tween.new(this._overlay).to({ | |
| alpha: 1 | |
| }, 180), aoba.Tween.new(this._base).to({ | |
| scaleX: 1, | |
| scaleY: 1 | |
| }, 180, "easeOutBack").call(function () { | |
| e.emit("openEnd") | |
| }) | |
| } | |
| }, { | |
| key: "close", | |
| value: function () { | |
| var e = this; | |
| aoba.Tween.new(this._overlay).to({ | |
| alpha: 0 | |
| }, 180), aoba.Tween.new(this._base).to({ | |
| scaleX: 0, | |
| scaleY: 0 | |
| }, 180, "easeInBack").call(function () { | |
| e.emit("closeEnd"), e.destroy({ | |
| children: !0 | |
| }) | |
| }) | |
| } | |
| }, { | |
| key: "top", | |
| get: function () { | |
| return this._top | |
| } | |
| }, { | |
| key: "base", | |
| get: function () { | |
| return this._base | |
| } | |
| }, { | |
| key: "main", | |
| get: function () { | |
| return this._main | |
| } | |
| }, { | |
| key: "buttons", | |
| get: function () { | |
| return this._buttons | |
| } | |
| }, { | |
| key: "overlay", | |
| get: function () { | |
| return this._overlay | |
| } | |
| }]), t | |
| }(aoba.Container); | |
| t.default = b | |
| }, function (e, t) { | |
| e.exports = function (e) { | |
| try { | |
| return !!e() | |
| } catch (e) { | |
| return !0 | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| (function (e) { | |
| function r() { | |
| return a.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823 | |
| } | |
| function i(e, t) { | |
| if (r() < t) throw new RangeError("Invalid typed array length"); | |
| return a.TYPED_ARRAY_SUPPORT ? (e = new Uint8Array(t), e.__proto__ = a.prototype) : (null === e && (e = new a(t)), e.length = t), e | |
| } | |
| function a(e, t, n) { | |
| if (!(a.TYPED_ARRAY_SUPPORT || this instanceof a)) return new a(e, t, n); | |
| if ("number" == typeof e) { | |
| if ("string" == typeof t) throw new Error("If encoding is specified then the first argument must be a string"); | |
| return u(this, e) | |
| } | |
| return o(this, e, t, n) | |
| } | |
| function o(e, t, n, r) { | |
| if ("number" == typeof t) throw new TypeError('"value" argument must not be a number'); | |
| return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer ? d(e, t, n, r) : "string" == typeof t ? c(e, t, n) : p(e, t) | |
| } | |
| function s(e) { | |
| if ("number" != typeof e) throw new TypeError('"size" argument must be a number'); | |
| if (e < 0) throw new RangeError('"size" argument must not be negative') | |
| } | |
| function l(e, t, n, r) { | |
| return s(t), t <= 0 ? i(e, t) : void 0 !== n ? "string" == typeof r ? i(e, t).fill(n, r) : i(e, t).fill(n) : i(e, t) | |
| } | |
| function u(e, t) { | |
| if (s(t), e = i(e, t < 0 ? 0 : 0 | h(t)), !a.TYPED_ARRAY_SUPPORT) | |
| for (var n = 0; n < t; ++n) e[n] = 0; | |
| return e | |
| } | |
| function c(e, t, n) { | |
| if ("string" == typeof n && "" !== n || (n = "utf8"), !a.isEncoding(n)) throw new TypeError('"encoding" must be a valid string encoding'); | |
| var r = 0 | m(t, n); | |
| e = i(e, r); | |
| var o = e.write(t, n); | |
| return o !== r && (e = e.slice(0, o)), e | |
| } | |
| function f(e, t) { | |
| var n = t.length < 0 ? 0 : 0 | h(t.length); | |
| e = i(e, n); | |
| for (var r = 0; r < n; r += 1) e[r] = 255 & t[r]; | |
| return e | |
| } | |
| function d(e, t, n, r) { | |
| if (t.byteLength, n < 0 || t.byteLength < n) throw new RangeError("'offset' is out of bounds"); | |
| if (t.byteLength < n + (r || 0)) throw new RangeError("'length' is out of bounds"); | |
| return t = void 0 === n && void 0 === r ? new Uint8Array(t) : void 0 === r ? new Uint8Array(t, n) : new Uint8Array(t, n, r), a.TYPED_ARRAY_SUPPORT ? (e = t, e.__proto__ = a.prototype) : e = f(e, t), e | |
| } | |
| function p(e, t) { | |
| if (a.isBuffer(t)) { | |
| var n = 0 | h(t.length); | |
| return e = i(e, n), 0 === e.length ? e : (t.copy(e, 0, 0, n), e) | |
| } | |
| if (t) { | |
| if ("undefined" != typeof ArrayBuffer && t.buffer instanceof ArrayBuffer || "length" in t) return "number" != typeof t.length || Y(t.length) ? i(e, 0) : f(e, t); | |
| if ("Buffer" === t.type && Z(t.data)) return f(e, t.data) | |
| } | |
| throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.") | |
| } | |
| function h(e) { | |
| if (e >= r()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + r().toString(16) + " bytes"); | |
| return 0 | e | |
| } | |
| function y(e) { | |
| return +e != e && (e = 0), a.alloc(+e) | |
| } | |
| function m(e, t) { | |
| if (a.isBuffer(e)) return e.length; | |
| if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(e) || e instanceof ArrayBuffer)) return e.byteLength; | |
| "string" != typeof e && (e = "" + e); | |
| var n = e.length; | |
| if (0 === n) return 0; | |
| for (var r = !1;;) switch (t) { | |
| case "ascii": | |
| case "latin1": | |
| case "binary": | |
| return n; | |
| case "utf8": | |
| case "utf-8": | |
| case void 0: | |
| return V(e).length; | |
| case "ucs2": | |
| case "ucs-2": | |
| case "utf16le": | |
| case "utf-16le": | |
| return 2 * n; | |
| case "hex": | |
| return n >>> 1; | |
| case "base64": | |
| return q(e).length; | |
| default: | |
| if (r) return V(e).length; | |
| t = ("" + t).toLowerCase(), r = !0 | |
| } | |
| } | |
| function _(e, t, n) { | |
| var r = !1; | |
| if ((void 0 === t || t < 0) && (t = 0), t > this.length) return ""; | |
| if ((void 0 === n || n > this.length) && (n = this.length), n <= 0) return ""; | |
| if (n >>>= 0, t >>>= 0, n <= t) return ""; | |
| for (e || (e = "utf8");;) switch (e) { | |
| case "hex": | |
| return N(this, t, n); | |
| case "utf8": | |
| case "utf-8": | |
| return C(this, t, n); | |
| case "ascii": | |
| return P(this, t, n); | |
| case "latin1": | |
| case "binary": | |
| return O(this, t, n); | |
| case "base64": | |
| return x(this, t, n); | |
| case "ucs2": | |
| case "ucs-2": | |
| case "utf16le": | |
| case "utf-16le": | |
| return M(this, t, n); | |
| default: | |
| if (r) throw new TypeError("Unknown encoding: " + e); | |
| e = (e + "").toLowerCase(), r = !0 | |
| } | |
| } | |
| function g(e, t, n) { | |
| var r = e[t]; | |
| e[t] = e[n], e[n] = r | |
| } | |
| function b(e, t, n, r, i) { | |
| if (0 === e.length) return -1; | |
| if ("string" == typeof n ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, isNaN(n) && (n = i ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) { | |
| if (i) return -1; | |
| n = e.length - 1 | |
| } else if (n < 0) { | |
| if (!i) return -1; | |
| n = 0 | |
| } | |
| if ("string" == typeof t && (t = a.from(t, r)), a.isBuffer(t)) return 0 === t.length ? -1 : v(e, t, n, r, i); | |
| if ("number" == typeof t) return t &= 255, a.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? i ? Uint8Array.prototype.indexOf.call(e, t, n) : Uint8Array.prototype.lastIndexOf.call(e, t, n) : v(e, [t], n, r, i); | |
| throw new TypeError("val must be string, number or Buffer") | |
| } | |
| function v(e, t, n, r, i) { | |
| function a(e, t) { | |
| return 1 === o ? e[t] : e.readUInt16BE(t * o) | |
| } | |
| var o = 1, | |
| s = e.length, | |
| l = t.length; | |
| if (void 0 !== r && ("ucs2" === (r = String(r).toLowerCase()) || "ucs-2" === r || "utf16le" === r || "utf-16le" === r)) { | |
| if (e.length < 2 || t.length < 2) return -1; | |
| o = 2, s /= 2, l /= 2, n /= 2 | |
| } | |
| var u; | |
| if (i) { | |
| var c = -1; | |
| for (u = n; u < s; u++) | |
| if (a(e, u) === a(t, -1 === c ? 0 : u - c)) { | |
| if (-1 === c && (c = u), u - c + 1 === l) return c * o | |
| } else -1 !== c && (u -= u - c), c = -1 | |
| } else | |
| for (n + l > s && (n = s - l), u = n; u >= 0; u--) { | |
| for (var f = !0, d = 0; d < l; d++) | |
| if (a(e, u + d) !== a(t, d)) { | |
| f = !1; | |
| break | |
| } | |
| if (f) return u | |
| } | |
| return -1 | |
| } | |
| function w(e, t, n, r) { | |
| n = Number(n) || 0; | |
| var i = e.length - n; | |
| r ? (r = Number(r)) > i && (r = i) : r = i; | |
| var a = t.length; | |
| if (a % 2 != 0) throw new TypeError("Invalid hex string"); | |
| r > a / 2 && (r = a / 2); | |
| for (var o = 0; o < r; ++o) { | |
| var s = parseInt(t.substr(2 * o, 2), 16); | |
| if (isNaN(s)) return o; | |
| e[n + o] = s | |
| } | |
| return o | |
| } | |
| function k(e, t, n, r) { | |
| return X(V(t, e.length - n), e, n, r) | |
| } | |
| function S(e, t, n, r) { | |
| return X(K(t), e, n, r) | |
| } | |
| function I(e, t, n, r) { | |
| return S(e, t, n, r) | |
| } | |
| function E(e, t, n, r) { | |
| return X(q(t), e, n, r) | |
| } | |
| function A(e, t, n, r) { | |
| return X(W(t, e.length - n), e, n, r) | |
| } | |
| function x(e, t, n) { | |
| return 0 === t && n === e.length ? J.fromByteArray(e) : J.fromByteArray(e.slice(t, n)) | |
| } | |
| function C(e, t, n) { | |
| n = Math.min(e.length, n); | |
| for (var r = [], i = t; i < n;) { | |
| var a = e[i], | |
| o = null, | |
| s = a > 239 ? 4 : a > 223 ? 3 : a > 191 ? 2 : 1; | |
| if (i + s <= n) { | |
| var l, u, c, f; | |
| switch (s) { | |
| case 1: | |
| a < 128 && (o = a); | |
| break; | |
| case 2: | |
| l = e[i + 1], 128 == (192 & l) && (f = (31 & a) << 6 | 63 & l) > 127 && (o = f); | |
| break; | |
| case 3: | |
| l = e[i + 1], u = e[i + 2], 128 == (192 & l) && 128 == (192 & u) && (f = (15 & a) << 12 | (63 & l) << 6 | 63 & u) > 2047 && (f < 55296 || f > 57343) && (o = f); | |
| break; | |
| case 4: | |
| l = e[i + 1], u = e[i + 2], c = e[i + 3], 128 == (192 & l) && 128 == (192 & u) && 128 == (192 & c) && (f = (15 & a) << 18 | (63 & l) << 12 | (63 & u) << 6 | 63 & c) > 65535 && f < 1114112 && (o = f) | |
| } | |
| } | |
| null === o ? (o = 65533, s = 1) : o > 65535 && (o -= 65536, r.push(o >>> 10 & 1023 | 55296), o = 56320 | 1023 & o), r.push(o), i += s | |
| } | |
| return T(r) | |
| } | |
| function T(e) { | |
| var t = e.length; | |
| if (t <= $) return String.fromCharCode.apply(String, e); | |
| for (var n = "", r = 0; r < t;) n += String.fromCharCode.apply(String, e.slice(r, r += $)); | |
| return n | |
| } | |
| function P(e, t, n) { | |
| var r = ""; | |
| n = Math.min(e.length, n); | |
| for (var i = t; i < n; ++i) r += String.fromCharCode(127 & e[i]); | |
| return r | |
| } | |
| function O(e, t, n) { | |
| var r = ""; | |
| n = Math.min(e.length, n); | |
| for (var i = t; i < n; ++i) r += String.fromCharCode(e[i]); | |
| return r | |
| } | |
| function N(e, t, n) { | |
| var r = e.length; | |
| (!t || t < 0) && (t = 0), (!n || n < 0 || n > r) && (n = r); | |
| for (var i = "", a = t; a < n; ++a) i += z(e[a]); | |
| return i | |
| } | |
| function M(e, t, n) { | |
| for (var r = e.slice(t, n), i = "", a = 0; a < r.length; a += 2) i += String.fromCharCode(r[a] + 256 * r[a + 1]); | |
| return i | |
| } | |
| function R(e, t, n) { | |
| if (e % 1 != 0 || e < 0) throw new RangeError("offset is not uint"); | |
| if (e + t > n) throw new RangeError("Trying to access beyond buffer length") | |
| } | |
| function D(e, t, n, r, i, o) { | |
| if (!a.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance'); | |
| if (t > i || t < o) throw new RangeError('"value" argument is out of bounds'); | |
| if (n + r > e.length) throw new RangeError("Index out of range") | |
| } | |
| function F(e, t, n, r) { | |
| t < 0 && (t = 65535 + t + 1); | |
| for (var i = 0, a = Math.min(e.length - n, 2); i < a; ++i) e[n + i] = (t & 255 << 8 * (r ? i : 1 - i)) >>> 8 * (r ? i : 1 - i) | |
| } | |
| function B(e, t, n, r) { | |
| t < 0 && (t = 4294967295 + t + 1); | |
| for (var i = 0, a = Math.min(e.length - n, 4); i < a; ++i) e[n + i] = t >>> 8 * (r ? i : 3 - i) & 255 | |
| } | |
| function j(e, t, n, r, i, a) { | |
| if (n + r > e.length) throw new RangeError("Index out of range"); | |
| if (n < 0) throw new RangeError("Index out of range") | |
| } | |
| function L(e, t, n, r, i) { | |
| return i || j(e, t, n, 4, 3.4028234663852886e38, -3.4028234663852886e38), Q.write(e, t, n, r, 23, 4), n + 4 | |
| } | |
| function U(e, t, n, r, i) { | |
| return i || j(e, t, n, 8, 1.7976931348623157e308, -1.7976931348623157e308), Q.write(e, t, n, r, 52, 8), n + 8 | |
| } | |
| function H(e) { | |
| if (e = G(e).replace(ee, ""), e.length < 2) return ""; | |
| for (; e.length % 4 != 0;) e += "="; | |
| return e | |
| } | |
| function G(e) { | |
| return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "") | |
| } | |
| function z(e) { | |
| return e < 16 ? "0" + e.toString(16) : e.toString(16) | |
| } | |
| function V(e, t) { | |
| t = t || 1 / 0; | |
| for (var n, r = e.length, i = null, a = [], o = 0; o < r; ++o) { | |
| if ((n = e.charCodeAt(o)) > 55295 && n < 57344) { | |
| if (!i) { | |
| if (n > 56319) { | |
| (t -= 3) > -1 && a.push(239, 191, 189); | |
| continue | |
| } | |
| if (o + 1 === r) { | |
| (t -= 3) > -1 && a.push(239, 191, 189); | |
| continue | |
| } | |
| i = n; | |
| continue | |
| } | |
| if (n < 56320) { | |
| (t -= 3) > -1 && a.push(239, 191, 189), i = n; | |
| continue | |
| } | |
| n = 65536 + (i - 55296 << 10 | n - 56320) | |
| } else i && (t -= 3) > -1 && a.push(239, 191, 189); | |
| if (i = null, n < 128) { | |
| if ((t -= 1) < 0) break; | |
| a.push(n) | |
| } else if (n < 2048) { | |
| if ((t -= 2) < 0) break; | |
| a.push(n >> 6 | 192, 63 & n | 128) | |
| } else if (n < 65536) { | |
| if ((t -= 3) < 0) break; | |
| a.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128) | |
| } else { | |
| if (!(n < 1114112)) throw new Error("Invalid code point"); | |
| if ((t -= 4) < 0) break; | |
| a.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128) | |
| } | |
| } | |
| return a | |
| } | |
| function K(e) { | |
| for (var t = [], n = 0; n < e.length; ++n) t.push(255 & e.charCodeAt(n)); | |
| return t | |
| } | |
| function W(e, t) { | |
| for (var n, r, i, a = [], o = 0; o < e.length && !((t -= 2) < 0); ++o) n = e.charCodeAt(o), r = n >> 8, i = n % 256, a.push(i), a.push(r); | |
| return a | |
| } | |
| function q(e) { | |
| return J.toByteArray(H(e)) | |
| } | |
| function X(e, t, n, r) { | |
| for (var i = 0; i < r && !(i + n >= t.length || i >= e.length); ++i) t[i + n] = e[i]; | |
| return i | |
| } | |
| function Y(e) { | |
| return e !== e | |
| } | |
| /*! | |
| * The buffer module from node.js, for the browser. | |
| * | |
| * @author Feross Aboukhadijeh <[email protected]> <http://feross.org> | |
| * @license MIT | |
| */ | |
| var J = n(706), | |
| Q = n(707), | |
| Z = n(319); | |
| t.Buffer = a, t.SlowBuffer = y, t.INSPECT_MAX_BYTES = 50, a.TYPED_ARRAY_SUPPORT = void 0 !== e.TYPED_ARRAY_SUPPORT ? e.TYPED_ARRAY_SUPPORT : function () { | |
| try { | |
| var e = new Uint8Array(1); | |
| return e.__proto__ = { | |
| __proto__: Uint8Array.prototype, | |
| foo: function () { | |
| return 42 | |
| } | |
| }, 42 === e.foo() && "function" == typeof e.subarray && 0 === e.subarray(1, 1).byteLength | |
| } catch (e) { | |
| return !1 | |
| } | |
| }(), t.kMaxLength = r(), a.poolSize = 8192, a._augment = function (e) { | |
| return e.__proto__ = a.prototype, e | |
| }, a.from = function (e, t, n) { | |
| return o(null, e, t, n) | |
| }, a.TYPED_ARRAY_SUPPORT && (a.prototype.__proto__ = Uint8Array.prototype, a.__proto__ = Uint8Array, "undefined" != typeof Symbol && Symbol.species && a[Symbol.species] === a && Object.defineProperty(a, Symbol.species, { | |
| value: null, | |
| configurable: !0 | |
| })), a.alloc = function (e, t, n) { | |
| return l(null, e, t, n) | |
| }, a.allocUnsafe = function (e) { | |
| return u(null, e) | |
| }, a.allocUnsafeSlow = function (e) { | |
| return u(null, e) | |
| }, a.isBuffer = function (e) { | |
| return !(null == e || !e._isBuffer) | |
| }, a.compare = function (e, t) { | |
| if (!a.isBuffer(e) || !a.isBuffer(t)) throw new TypeError("Arguments must be Buffers"); | |
| if (e === t) return 0; | |
| for (var n = e.length, r = t.length, i = 0, o = Math.min(n, r); i < o; ++i) | |
| if (e[i] !== t[i]) { | |
| n = e[i], r = t[i]; | |
| break | |
| } | |
| return n < r ? -1 : r < n ? 1 : 0 | |
| }, a.isEncoding = function (e) { | |
| switch (String(e).toLowerCase()) { | |
| case "hex": | |
| case "utf8": | |
| case "utf-8": | |
| case "ascii": | |
| case "latin1": | |
| case "binary": | |
| case "base64": | |
| case "ucs2": | |
| case "ucs-2": | |
| case "utf16le": | |
| case "utf-16le": | |
| return !0; | |
| default: | |
| return !1 | |
| } | |
| }, a.concat = function (e, t) { | |
| if (!Z(e)) throw new TypeError('"list" argument must be an Array of Buffers'); | |
| if (0 === e.length) return a.alloc(0); | |
| var n; | |
| if (void 0 === t) | |
| for (t = 0, n = 0; n < e.length; ++n) t += e[n].length; | |
| var r = a.allocUnsafe(t), | |
| i = 0; | |
| for (n = 0; n < e.length; ++n) { | |
| var o = e[n]; | |
| if (!a.isBuffer(o)) throw new TypeError('"list" argument must be an Array of Buffers'); | |
| o.copy(r, i), i += o.length | |
| } | |
| return r | |
| }, a.byteLength = m, a.prototype._isBuffer = !0, a.prototype.swap16 = function () { | |
| var e = this.length; | |
| if (e % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits"); | |
| for (var t = 0; t < e; t += 2) g(this, t, t + 1); | |
| return this | |
| }, a.prototype.swap32 = function () { | |
| var e = this.length; | |
| if (e % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits"); | |
| for (var t = 0; t < e; t += 4) g(this, t, t + 3), g(this, t + 1, t + 2); | |
| return this | |
| }, a.prototype.swap64 = function () { | |
| var e = this.length; | |
| if (e % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits"); | |
| for (var t = 0; t < e; t += 8) g(this, t, t + 7), g(this, t + 1, t + 6), g(this, t + 2, t + 5), g(this, t + 3, t + 4); | |
| return this | |
| }, a.prototype.toString = function () { | |
| var e = 0 | this.length; | |
| return 0 === e ? "" : 0 === arguments.length ? C(this, 0, e) : _.apply(this, arguments) | |
| }, a.prototype.equals = function (e) { | |
| if (!a.isBuffer(e)) throw new TypeError("Argument must be a Buffer"); | |
| return this === e || 0 === a.compare(this, e) | |
| }, a.prototype.inspect = function () { | |
| var e = "", | |
| n = t.INSPECT_MAX_BYTES; | |
| return this.length > 0 && (e = this.toString("hex", 0, n).match(/.{2}/g).join(" "), this.length > n && (e += " ... ")), "<Buffer " + e + ">" | |
| }, a.prototype.compare = function (e, t, n, r, i) { | |
| if (!a.isBuffer(e)) throw new TypeError("Argument must be a Buffer"); | |
| if (void 0 === t && (t = 0), void 0 === n && (n = e ? e.length : 0), void 0 === r && (r = 0), void 0 === i && (i = this.length), t < 0 || n > e.length || r < 0 || i > this.length) throw new RangeError("out of range index"); | |
| if (r >= i && t >= n) return 0; | |
| if (r >= i) return -1; | |
| if (t >= n) return 1; | |
| if (t >>>= 0, n >>>= 0, r >>>= 0, i >>>= 0, this === e) return 0; | |
| for (var o = i - r, s = n - t, l = Math.min(o, s), u = this.slice(r, i), c = e.slice(t, n), f = 0; f < l; ++f) | |
| if (u[f] !== c[f]) { | |
| o = u[f], s = c[f]; | |
| break | |
| } | |
| return o < s ? -1 : s < o ? 1 : 0 | |
| }, a.prototype.includes = function (e, t, n) { | |
| return -1 !== this.indexOf(e, t, n) | |
| }, a.prototype.indexOf = function (e, t, n) { | |
| return b(this, e, t, n, !0) | |
| }, a.prototype.lastIndexOf = function (e, t, n) { | |
| return b(this, e, t, n, !1) | |
| }, a.prototype.write = function (e, t, n, r) { | |
| if (void 0 === t) r = "utf8", n = this.length, t = 0; | |
| else if (void 0 === n && "string" == typeof t) r = t, n = this.length, t = 0; | |
| else { | |
| if (!isFinite(t)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); | |
| t |= 0, isFinite(n) ? (n |= 0, void 0 === r && (r = "utf8")) : (r = n, n = void 0) | |
| } | |
| var i = this.length - t; | |
| if ((void 0 === n || n > i) && (n = i), e.length > 0 && (n < 0 || t < 0) || t > this.length) throw new RangeError("Attempt to write outside buffer bounds"); | |
| r || (r = "utf8"); | |
| for (var a = !1;;) switch (r) { | |
| case "hex": | |
| return w(this, e, t, n); | |
| case "utf8": | |
| case "utf-8": | |
| return k(this, e, t, n); | |
| case "ascii": | |
| return S(this, e, t, n); | |
| case "latin1": | |
| case "binary": | |
| return I(this, e, t, n); | |
| case "base64": | |
| return E(this, e, t, n); | |
| case "ucs2": | |
| case "ucs-2": | |
| case "utf16le": | |
| case "utf-16le": | |
| return A(this, e, t, n); | |
| default: | |
| if (a) throw new TypeError("Unknown encoding: " + r); | |
| r = ("" + r).toLowerCase(), a = !0 | |
| } | |
| }, a.prototype.toJSON = function () { | |
| return { | |
| type: "Buffer", | |
| data: Array.prototype.slice.call(this._arr || this, 0) | |
| } | |
| }; | |
| var $ = 4096; | |
| a.prototype.slice = function (e, t) { | |
| var n = this.length; | |
| e = ~~e, t = void 0 === t ? n : ~~t, e < 0 ? (e += n) < 0 && (e = 0) : e > n && (e = n), t < 0 ? (t += n) < 0 && (t = 0) : t > n && (t = n), t < e && (t = e); | |
| var r; | |
| if (a.TYPED_ARRAY_SUPPORT) r = this.subarray(e, t), r.__proto__ = a.prototype; | |
| else { | |
| var i = t - e; | |
| r = new a(i, void 0); | |
| for (var o = 0; o < i; ++o) r[o] = this[o + e] | |
| } | |
| return r | |
| }, a.prototype.readUIntLE = function (e, t, n) { | |
| e |= 0, t |= 0, n || R(e, t, this.length); | |
| for (var r = this[e], i = 1, a = 0; ++a < t && (i *= 256);) r += this[e + a] * i; | |
| return r | |
| }, a.prototype.readUIntBE = function (e, t, n) { | |
| e |= 0, t |= 0, n || R(e, t, this.length); | |
| for (var r = this[e + --t], i = 1; t > 0 && (i *= 256);) r += this[e + --t] * i; | |
| return r | |
| }, a.prototype.readUInt8 = function (e, t) { | |
| return t || R(e, 1, this.length), this[e] | |
| }, a.prototype.readUInt16LE = function (e, t) { | |
| return t || R(e, 2, this.length), this[e] | this[e + 1] << 8 | |
| }, a.prototype.readUInt16BE = function (e, t) { | |
| return t || R(e, 2, this.length), this[e] << 8 | this[e + 1] | |
| }, a.prototype.readUInt32LE = function (e, t) { | |
| return t || R(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3] | |
| }, a.prototype.readUInt32BE = function (e, t) { | |
| return t || R(e, 4, this.length), 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]) | |
| }, a.prototype.readIntLE = function (e, t, n) { | |
| e |= 0, t |= 0, n || R(e, t, this.length); | |
| for (var r = this[e], i = 1, a = 0; ++a < t && (i *= 256);) r += this[e + a] * i; | |
| return i *= 128, r >= i && (r -= Math.pow(2, 8 * t)), r | |
| }, a.prototype.readIntBE = function (e, t, n) { | |
| e |= 0, t |= 0, n || R(e, t, this.length); | |
| for (var r = t, i = 1, a = this[e + --r]; r > 0 && (i *= 256);) a += this[e + --r] * i; | |
| return i *= 128, a >= i && (a -= Math.pow(2, 8 * t)), a | |
| }, a.prototype.readInt8 = function (e, t) { | |
| return t || R(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e] | |
| }, a.prototype.readInt16LE = function (e, t) { | |
| t || R(e, 2, this.length); | |
| var n = this[e] | this[e + 1] << 8; | |
| return 32768 & n ? 4294901760 | n : n | |
| }, a.prototype.readInt16BE = function (e, t) { | |
| t || R(e, 2, this.length); | |
| var n = this[e + 1] | this[e] << 8; | |
| return 32768 & n ? 4294901760 | n : n | |
| }, a.prototype.readInt32LE = function (e, t) { | |
| return t || R(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24 | |
| }, a.prototype.readInt32BE = function (e, t) { | |
| return t || R(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3] | |
| }, a.prototype.readFloatLE = function (e, t) { | |
| return t || R(e, 4, this.length), Q.read(this, e, !0, 23, 4) | |
| }, a.prototype.readFloatBE = function (e, t) { | |
| return t || R(e, 4, this.length), Q.read(this, e, !1, 23, 4) | |
| }, a.prototype.readDoubleLE = function (e, t) { | |
| return t || R(e, 8, this.length), Q.read(this, e, !0, 52, 8) | |
| }, a.prototype.readDoubleBE = function (e, t) { | |
| return t || R(e, 8, this.length), Q.read(this, e, !1, 52, 8) | |
| }, a.prototype.writeUIntLE = function (e, t, n, r) { | |
| if (e = +e, t |= 0, n |= 0, !r) { | |
| D(this, e, t, n, Math.pow(2, 8 * n) - 1, 0) | |
| } | |
| var i = 1, | |
| a = 0; | |
| for (this[t] = 255 & e; ++a < n && (i *= 256);) this[t + a] = e / i & 255; | |
| return t + n | |
| }, a.prototype.writeUIntBE = function (e, t, n, r) { | |
| if (e = +e, t |= 0, n |= 0, !r) { | |
| D(this, e, t, n, Math.pow(2, 8 * n) - 1, 0) | |
| } | |
| var i = n - 1, | |
| a = 1; | |
| for (this[t + i] = 255 & e; --i >= 0 && (a *= 256);) this[t + i] = e / a & 255; | |
| return t + n | |
| }, a.prototype.writeUInt8 = function (e, t, n) { | |
| return e = +e, t |= 0, n || D(this, e, t, 1, 255, 0), a.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[t] = 255 & e, t + 1 | |
| }, a.prototype.writeUInt16LE = function (e, t, n) { | |
| return e = +e, t |= 0, n || D(this, e, t, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : F(this, e, t, !0), t + 2 | |
| }, a.prototype.writeUInt16BE = function (e, t, n) { | |
| return e = +e, t |= 0, n || D(this, e, t, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : F(this, e, t, !1), t + 2 | |
| }, a.prototype.writeUInt32LE = function (e, t, n) { | |
| return e = +e, t |= 0, n || D(this, e, t, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = 255 & e) : B(this, e, t, !0), t + 4 | |
| }, a.prototype.writeUInt32BE = function (e, t, n) { | |
| return e = +e, t |= 0, n || D(this, e, t, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : B(this, e, t, !1), t + 4 | |
| }, a.prototype.writeIntLE = function (e, t, n, r) { | |
| if (e = +e, t |= 0, !r) { | |
| var i = Math.pow(2, 8 * n - 1); | |
| D(this, e, t, n, i - 1, -i) | |
| } | |
| var a = 0, | |
| o = 1, | |
| s = 0; | |
| for (this[t] = 255 & e; ++a < n && (o *= 256);) e < 0 && 0 === s && 0 !== this[t + a - 1] && (s = 1), this[t + a] = (e / o >> 0) - s & 255; | |
| return t + n | |
| }, a.prototype.writeIntBE = function (e, t, n, r) { | |
| if (e = +e, t |= 0, !r) { | |
| var i = Math.pow(2, 8 * n - 1); | |
| D(this, e, t, n, i - 1, -i) | |
| } | |
| var a = n - 1, | |
| o = 1, | |
| s = 0; | |
| for (this[t + a] = 255 & e; --a >= 0 && (o *= 256);) e < 0 && 0 === s && 0 !== this[t + a + 1] && (s = 1), this[t + a] = (e / o >> 0) - s & 255; | |
| return t + n | |
| }, a.prototype.writeInt8 = function (e, t, n) { | |
| return e = +e, t |= 0, n || D(this, e, t, 1, 127, -128), a.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), this[t] = 255 & e, t + 1 | |
| }, a.prototype.writeInt16LE = function (e, t, n) { | |
| return e = +e, t |= 0, n || D(this, e, t, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : F(this, e, t, !0), t + 2 | |
| }, a.prototype.writeInt16BE = function (e, t, n) { | |
| return e = +e, t |= 0, n || D(this, e, t, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : F(this, e, t, !1), t + 2 | |
| }, a.prototype.writeInt32LE = function (e, t, n) { | |
| return e = +e, t |= 0, n || D(this, e, t, 4, 2147483647, -2147483648), a.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24) : B(this, e, t, !0), t + 4 | |
| }, a.prototype.writeInt32BE = function (e, t, n) { | |
| return e = +e, t |= 0, n || D(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), a.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : B(this, e, t, !1), t + 4 | |
| }, a.prototype.writeFloatLE = function (e, t, n) { | |
| return L(this, e, t, !0, n) | |
| }, a.prototype.writeFloatBE = function (e, t, n) { | |
| return L(this, e, t, !1, n) | |
| }, a.prototype.writeDoubleLE = function (e, t, n) { | |
| return U(this, e, t, !0, n) | |
| }, a.prototype.writeDoubleBE = function (e, t, n) { | |
| return U(this, e, t, !1, n) | |
| }, a.prototype.copy = function (e, t, n, r) { | |
| if (n || (n = 0), r || 0 === r || (r = this.length), t >= e.length && (t = e.length), t || (t = 0), r > 0 && r < n && (r = n), r === n) return 0; | |
| if (0 === e.length || 0 === this.length) return 0; | |
| if (t < 0) throw new RangeError("targetStart out of bounds"); | |
| if (n < 0 || n >= this.length) throw new RangeError("sourceStart out of bounds"); | |
| if (r < 0) throw new RangeError("sourceEnd out of bounds"); | |
| r > this.length && (r = this.length), e.length - t < r - n && (r = e.length - t + n); | |
| var i, o = r - n; | |
| if (this === e && n < t && t < r) | |
| for (i = o - 1; i >= 0; --i) e[i + t] = this[i + n]; | |
| else if (o < 1e3 || !a.TYPED_ARRAY_SUPPORT) | |
| for (i = 0; i < o; ++i) e[i + t] = this[i + n]; | |
| else Uint8Array.prototype.set.call(e, this.subarray(n, n + o), t); | |
| return o | |
| }, a.prototype.fill = function (e, t, n, r) { | |
| if ("string" == typeof e) { | |
| if ("string" == typeof t ? (r = t, t = 0, n = this.length) : "string" == typeof n && (r = n, n = this.length), 1 === e.length) { | |
| var i = e.charCodeAt(0); | |
| i < 256 && (e = i) | |
| } | |
| if (void 0 !== r && "string" != typeof r) throw new TypeError("encoding must be a string"); | |
| if ("string" == typeof r && !a.isEncoding(r)) throw new TypeError("Unknown encoding: " + r) | |
| } else "number" == typeof e && (e &= 255); | |
| if (t < 0 || this.length < t || this.length < n) throw new RangeError("Out of range index"); | |
| if (n <= t) return this; | |
| t >>>= 0, n = void 0 === n ? this.length : n >>> 0, e || (e = 0); | |
| var o; | |
| if ("number" == typeof e) | |
| for (o = t; o < n; ++o) this[o] = e; | |
| else { | |
| var s = a.isBuffer(e) ? e : V(new a(e, r).toString()), | |
| l = s.length; | |
| for (o = 0; o < n - t; ++o) this[o + t] = s[o % l] | |
| } | |
| return this | |
| }; | |
| var ee = /[^+\/0-9A-Za-z-_]/g | |
| }).call(t, n(44)) | |
| }, function (e, t) { | |
| e.exports = function (e) { | |
| return "object" == typeof e ? null !== e : "function" == typeof e | |
| } | |
| }, function (e, t, n) { | |
| function r(e, t) { | |
| for (var n in e) t[n] = e[n] | |
| } | |
| function i(e, t, n) { | |
| return o(e, t, n) | |
| } | |
| var a = n(16), | |
| o = a.Buffer; | |
| o.from && o.alloc && o.allocUnsafe && o.allocUnsafeSlow ? e.exports = a : (r(a, t), t.Buffer = i), r(o, i), i.from = function (e, t, n) { | |
| if ("number" == typeof e) throw new TypeError("Argument must not be a number"); | |
| return o(e, t, n) | |
| }, i.alloc = function (e, t, n) { | |
| if ("number" != typeof e) throw new TypeError("Argument must be a number"); | |
| var r = o(e); | |
| return void 0 !== t ? "string" == typeof n ? r.fill(t, n) : r.fill(t) : r.fill(0), r | |
| }, i.allocUnsafe = function (e) { | |
| if ("number" != typeof e) throw new TypeError("Argument must be a number"); | |
| return o(e) | |
| }, i.allocUnsafeSlow = function (e) { | |
| if ("number" != typeof e) throw new TypeError("Argument must be a number"); | |
| return a.SlowBuffer(e) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e) { | |
| var t = e.folderPath, | |
| n = e.interceptor, | |
| r = void 0 === n ? new PIXI.AEDataInterceptor({}) : n, | |
| i = e.fileName, | |
| a = void 0 === i ? "data.json" : i, | |
| o = l.default.join("/", c.default.asset.AFTER_EFFECTS_PATH, t, a), | |
| s = l.default.basename(o, l.default.extname(o)), | |
| u = l.default.join("/assets", h.default.encryptPath(o, s)); | |
| return new Promise(function (e, n) { | |
| d.default.get(u).end(function (i, a) { | |
| if (i) return n(i); | |
| var s = JSON.parse(decodeURIComponent(escape(h.default.decryptText(a.text)))); | |
| return s.assets.forEach(function (e) { | |
| if (void 0 !== e.p && void 0 !== e.u) { | |
| var n = l.default.join("/", c.default.asset.AFTER_EFFECTS_PATH, t, e.u, e.p), | |
| i = l.default.basename(n, l.default.extname(n)), | |
| a = l.default.join("/assets", h.default.encryptPath(n, i)); | |
| r.add(e.id, { | |
| imagePath: a | |
| }), e.imagePath = a | |
| } | |
| }), e(PIXI.AEDataLoader.load(s, o, r)) | |
| }) | |
| }) | |
| } | |
| function a(e, t) { | |
| e.forEach(function (e) { | |
| e.image ? e.image.blendMode = t : e.layers && a(e.layers, t) | |
| }) | |
| } | |
| function o(e) { | |
| var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : aoba.BLEND_MODES.NORMAL; | |
| e && e.layers && a(e.layers, t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.setBlendMode = t.loadAEData = void 0, t.default = function (e) { | |
| var t = e.folderPath, | |
| n = e.interceptor, | |
| r = e.fileName, | |
| a = void 0 === r ? "data.json" : r, | |
| s = e.blendMode, | |
| l = void 0 === s ? aoba.BLEND_MODES.NORMAL : s; | |
| return i({ | |
| folderPath: t, | |
| interceptor: n, | |
| fileName: a | |
| }).then(function (e) { | |
| if (e) { | |
| var t = new PIXI.AfterEffects.fromData(e); | |
| return l !== aoba.BLEND_MODES.NORMAL && o(t, l), Promise.resolve(t) | |
| } | |
| return Promise.resolve(null) | |
| }) | |
| }; | |
| var s = n(31), | |
| l = r(s), | |
| u = n(1), | |
| c = r(u), | |
| f = n(129), | |
| d = r(f), | |
| p = n(214), | |
| h = r(p); | |
| t.loadAEData = i, t.setBlendMode = o | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(31), | |
| a = r(i), | |
| o = n(13), | |
| s = r(o), | |
| l = n(1), | |
| u = r(l), | |
| c = u.default.asset, | |
| f = c.ADMIN_UPLOADED_FILE_PATH, | |
| d = c.CONTENT_IMAGE_PATH, | |
| p = c.MOVIE_PATH, | |
| h = c.SPINE_PATH, | |
| y = c.VOICE_PATH, | |
| m = c.ID_DIGIT_NUMBER, | |
| _ = c.IMAGE_EXTENSION, | |
| g = c.DEFAULT_IMAGE_EXTENSION, | |
| b = c.MOVIE_EXTENSION, | |
| v = c.SOUND_EXTENSION, | |
| w = c.HTML_EXTENSION, | |
| k = c.CONCERT_MUSIC_PATH, | |
| S = c.SPINE_FILE_NAME, | |
| I = function (e, t) { | |
| return s.default.pad(t, m[e], "0") | |
| }, | |
| E = function (e, t, n) { | |
| return "" + I(e, n) + (_[e] && _[e][t] || g) | |
| }, | |
| A = function (e, t) { | |
| return "" + I(e, t) + b | |
| }, | |
| x = function (e, t, n) { | |
| var r = I(e, t); | |
| return n ? r + "/" + n + v : "" + r + v | |
| }, | |
| C = { | |
| createImagePath: function (e, t, n) { | |
| return a.default.join(d, e, t, E(e, t, n)) | |
| }, | |
| createMoviePath: function (e, t, n) { | |
| return a.default.join(p, e, t, A(e, n)) | |
| }, | |
| createSpinePath: function (e, t, n) { | |
| return a.default.join(h, e, t, I(e, n), S) | |
| }, | |
| createVoicePath: function (e, t, n) { | |
| var r = [y, e, x(e, t, n)].filter(function (e) { | |
| return e | |
| }); | |
| return a.default.join.apply(null, r) | |
| }, | |
| createConcertMusicPath: function (e, t) { | |
| return a.default.join(k, e, "" + I("unit", t) + v) | |
| }, | |
| createAdminImagePath: function (e, t, n) { | |
| var r = a.default.join(f, e, I(e, t), "" + n + g); | |
| return r | |
| }, | |
| createAdminHTMLPath: function (e, t) { | |
| var n = a.default.join(f, e, I(e, t), "index" + w); | |
| return n | |
| } | |
| }; | |
| t.default = C | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(32), | |
| a = r(i), | |
| o = n(228), | |
| s = r(o), | |
| l = n(811), | |
| u = r(l), | |
| c = aoba, | |
| f = c.sceneManager, | |
| d = function () { | |
| var e = f.currentScene; | |
| return e.showLoadingLayer ? e.showLoadingLayer() : null | |
| }; | |
| t.default = { | |
| loadScene: function (e) { | |
| var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, | |
| n = { | |
| additive: !1, | |
| sceneParams: {} | |
| }, | |
| r = Object.assign({}, n, t), | |
| i = r.additive, | |
| a = r.sceneParams, | |
| o = r.transition, | |
| s = f.find(e); | |
| if (!s) throw new Error("sceneName " + e + " is not registered."); | |
| return (o ? o.addTo(aoba.sceneManager.currentScene).play() : Promise.resolve()).then(function () { | |
| o && o.remove(); | |
| var e = s.new(a); | |
| return i ? aoba.sceneManager.pushScene(e) : aoba.sceneManager.replaceScene(e), o && o.addTo(aoba.sceneManager.currentScene).disappear(), e | |
| }) | |
| }, | |
| loadSceneAsync: function (e) { | |
| var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, | |
| n = { | |
| additive: !1, | |
| request: !0, | |
| asset: !0, | |
| showLoading: !0, | |
| sceneParams: {}, | |
| requestParams: {} | |
| }, | |
| r = Object.assign({}, n, t), | |
| i = r.additive, | |
| o = r.request, | |
| l = r.asset, | |
| c = r.showLoading, | |
| p = r.sceneParams, | |
| h = r.requestParams, | |
| y = r.transition, | |
| m = void 0; | |
| c && (m = d()); | |
| var _ = f.find(e); | |
| if (!_) throw new Error("sceneName " + e + " not found."); | |
| return Promise.resolve().then(function () { | |
| return _.importModuleAsync() | |
| }).then(function () { | |
| return o ? _.request(h) : p | |
| }).then(function (e) { | |
| if (!l) return { | |
| params: e | |
| }; | |
| var t = _.getResourceList(e); | |
| return (0, a.default)(t).then(function () { | |
| return { | |
| params: e, | |
| resources: t | |
| } | |
| }) | |
| }).then(function (e) { | |
| var t = e.params, | |
| n = e.resources, | |
| r = Object.keys(p).length && !0 === o ? Object.assign({}, p, t) : t; | |
| return (y ? y.addTo(aoba.sceneManager.currentScene).play() : Promise.resolve()).then(function () { | |
| m && m.fadeOut(), y && y.remove(); | |
| var e = void 0; | |
| if (!i) { | |
| var t = n.concat(_.getRequiredBgmResourceNames()); | |
| e = s.default.extractUnnecessaryResourceNames(t) | |
| } | |
| var a = _.new(r); | |
| return i ? aoba.sceneManager.pushScene(a) : (aoba.sceneManager.replaceScene(a), (0, u.default)()), aoba.soundManager.removeByGroup("voice"), aoba.soundManager.removeByGroup("se"), e && s.default.releaseResources(e), y && y.addTo(aoba.sceneManager.currentScene).disappear(), a | |
| }) | |
| }).catch(function (e) {}) | |
| }, | |
| loadLoadingScene: function () { | |
| var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, | |
| t = e.transition; | |
| return (t ? t.addTo(aoba.sceneManager.currentScene).appear() : Promise.resolve()).then(function () { | |
| t && t.destroy(); | |
| var n = f.find("loading"), | |
| r = n.new(); | |
| if (aoba.sceneManager.replaceScene(r), e.releaseResources) { | |
| var i = s.default.extractUnnecessaryResourceNames(); | |
| s.default.releaseResources(i) | |
| } | |
| return r | |
| }) | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = aoba, | |
| l = s.Container, | |
| u = s.Graphics, | |
| c = function (e) { | |
| function t() { | |
| var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : { | |
| maskX: 0, | |
| maskY: 0 | |
| }; | |
| r(this, t); | |
| var n = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); | |
| return n.mask = u.new().beginFill(0), e.round ? n.mask.drawRoundedRect(e.maskX, e.maskY, e.width, e.height, e.round) : n.mask.drawRect(e.maskX, e.maskY, e.width, e.height), n.mask.addTo(n), n._container = e.container.addTo(n), n._scrollBarBase = e.scrollBarBase, n._scrollBar = e.scrollBar, n._overflow = 0, n._scrollOverflow = 0, n._time = 0, n._prevTime = 0, n._swiping = !1, n._prevPosition = null, n._diffPosition = null, n.interactive = !0, n._scrollBarBase && n._scrollBar && (n._scrollBar.parent && n._scrollBar.parent.removeChild(n._scrollBar), n._scrollBarBaseHeight = n._scrollBarBase.height, n._scrollBar.addTo(n._scrollBarBase, (n._scrollBarBase.width - n._scrollBar.width) / 2, 0), n._updateScrollBarTransform(), n._updateScrollBarPosition()), n.on("touchstart", n._onTouchStart, n), n.on("touchmove", n._onTouchMove, n), n.on("touchend", n._onTouchEnd, n), n.on("touchendoutside", n._onTouchEnd, n), n | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "_updateScrollBarPosition", | |
| value: function () { | |
| if (this._scrollBar) { | |
| var e = this._scrollBar.y, | |
| t = this._scrollBar.y + this._scrollOverflow; | |
| this._scrollBar.y = Math.max(this._scrollBar.y, e), this._scrollBar.y = Math.min(this._scrollBar.y, t), this._scrollOverflow > 0 && this._updateContainerWithPositionRate(this._scrollBar.y / this._scrollOverflow) | |
| } | |
| } | |
| }, { | |
| key: "_updateScrollBarTransform", | |
| value: function () { | |
| if (this._overflow = Math.max(0, this._container.height - this.mask.height), this._scrollBarBase && this._scrollBar) { | |
| this._scrollOverflow = this._scrollBarBaseHeight - this._scrollBar.height, this._scrollBarBase.visible = this._overflow > 0; | |
| var e = this._scrollBar.width, | |
| t = Math.min(1, this.mask.height / this._container.height), | |
| n = this._scrollBar.width, | |
| r = this._scrollBarBaseHeight * t, | |
| i = this._scrollBar.fillColor; | |
| this._scrollBar.updateMaxY(this._scrollBarBaseHeight - r), this._scrollBar.clear().beginFill(i).drawRoundedRect(0, 0, n, r, e / 2) | |
| } | |
| } | |
| }, { | |
| key: "_onTouchStart", | |
| value: function (e) { | |
| this._swiping || (this._diffPosition = null, this._swiping = !0, this._targetInitialPos = this._container.y, this._pointInitialPos = e.data.global.y, this._prevPosition = e.data.global.y, this._prevTime = this._time) | |
| } | |
| }, { | |
| key: "_onTouchMove", | |
| value: function (e) { | |
| if (this._swiping) { | |
| var t = this._targetInitialPos, | |
| n = this._pointInitialPos, | |
| r = e.data.global.y, | |
| i = n - r, | |
| a = this._time - this._prevTime; | |
| this._container.interactiveChildren && Math.abs(i) >= 8 && (this._container.interactiveChildren = !1), this._updateContainerPos(t - i), this._diffPosition = a > 0 ? (r - this._prevPosition) / a : 0, this._prevPosition = r, this._prevTime = this._time, this._checkBorder() | |
| } | |
| } | |
| }, { | |
| key: "_onTouchEnd", | |
| value: function () { | |
| this._swiping && (this._swiping = !1, this._container.interactiveChildren = !0) | |
| } | |
| }, { | |
| key: "_checkBorder", | |
| value: function () { | |
| this._container.y > 0 && this._updateContainerPos(0), this._container.y < -this._overflow && this._updateContainerPos(-this._overflow) | |
| } | |
| }, { | |
| key: "_updateContainerPos", | |
| value: function (e) { | |
| if (this._container.y = e, this._scrollBar) { | |
| var t = this._overflow > 0 ? -e / this._overflow : 0; | |
| this._scrollBar.y = this._scrollOverflow * t | |
| } | |
| } | |
| }, { | |
| key: "_updateContainerWithPositionRate", | |
| value: function (e) { | |
| this._container.y = -this._overflow * e | |
| } | |
| }, { | |
| key: "ezgUpdate", | |
| value: function (e) { | |
| if (this._time += e, this._updateScrollBarTransform(), this._updateScrollBarPosition(), !this._swiping && this._diffPosition) { | |
| var t = this._diffPosition; | |
| this._updateContainerPos(this._container.y + t * e), this._checkBorder(), t *= Math.pow(.92, e / (1e3 / 60)), Math.abs(t) < .02 && (t = null), this._diffPosition = t | |
| } | |
| } | |
| }, { | |
| key: "containerBottomY", | |
| get: function () { | |
| return -this._overflow | |
| } | |
| }]), t | |
| }(l); | |
| t.default = c | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = function e(t, n, r) { | |
| null === t && (t = Function.prototype); | |
| var i = Object.getOwnPropertyDescriptor(t, n); | |
| if (void 0 === i) { | |
| var a = Object.getPrototypeOf(t); | |
| return null === a ? void 0 : e(a, n, r) | |
| } | |
| if ("value" in i) return i.value; | |
| var o = i.get; | |
| if (void 0 !== o) return o.call(r) | |
| }, | |
| l = function (e) { | |
| function t() { | |
| return r(this, t), i(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments)) | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "destroy", | |
| value: function (e) { | |
| this.parent && this.parent.removeChild(this), s(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "destroy", this).call(this, e) | |
| } | |
| }]), t | |
| }(PIXI.Container), | |
| u = function (e) { | |
| function t(e, n) { | |
| var a = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : { | |
| autoDestroy: !0 | |
| }; | |
| r(this, t); | |
| var o = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); | |
| o._container = new l; | |
| var s = void 0, | |
| u = !1; | |
| return "string" == typeof e[0] ? s = e.map(function (e) { | |
| return aoba.Texture.fromImage(e) | |
| }) : (s = e.map(function (e) { | |
| var t = Object.assign({}, e); | |
| return t.textures = e.textures.map(function (e) { | |
| return aoba.Texture.fromImage(e) | |
| }), t | |
| }), u = !0), o._emitter = new pixiParticles.Emitter(o._container, s, aoba.loader.resources[n].data), u && (o._emitter.particleConstructor = pixiParticles.AnimatedParticle), a.autoDestroy && o._container.on("removed", o.destroy, o), o | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "setPosition", | |
| value: function (e, t) { | |
| this._emitter.updateSpawnPos(e, t) | |
| } | |
| }, { | |
| key: "setScale", | |
| value: function (e, t) { | |
| this._container.scale.set(e, t) | |
| } | |
| }, { | |
| key: "play", | |
| value: function () { | |
| var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, | |
| t = e.cb, | |
| n = e.startTime; | |
| this._emitter.playOnce(t), n && this._emitter.update(e.startTime) | |
| } | |
| }, { | |
| key: "playAndDestroy", | |
| value: function () { | |
| var e = this, | |
| t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, | |
| n = t.cb, | |
| r = t.startTime; | |
| this._emitter.playOnceAndDestroy(function () { | |
| n && n(), e.destroy() | |
| }), r && this._emitter.update(t.startTime) | |
| } | |
| }, { | |
| key: "stop", | |
| value: function () { | |
| this._emitter.emit = !1 | |
| } | |
| }, { | |
| key: "stopAndDestroy", | |
| value: function () { | |
| var e = this; | |
| this.stop(), setTimeout(function () { | |
| e.destroy() | |
| }, 1e3 * this.maxLifetime) | |
| } | |
| }, { | |
| key: "destroy", | |
| value: function () { | |
| this._emitter && (this._emitter.destroy(), this._emitter = null), this._container && (this._container.destroy(), this._container = null), this.emit("destroyed") | |
| } | |
| }, { | |
| key: "emitter", | |
| get: function () { | |
| return this._emitter | |
| } | |
| }, { | |
| key: "maxLifetime", | |
| get: function () { | |
| return this._emitter.maxLifetime | |
| } | |
| }, { | |
| key: "container", | |
| get: function () { | |
| return this._container | |
| } | |
| }, { | |
| key: "x", | |
| get: function () { | |
| return this._emitter.spawnPos.x | |
| }, | |
| set: function (e) { | |
| this._emitter.spawnPos.x = e | |
| } | |
| }, { | |
| key: "y", | |
| get: function () { | |
| return this._emitter.spawnPos.y | |
| }, | |
| set: function (e) { | |
| this._emitter.spawnPos.y = e | |
| } | |
| }, { | |
| key: "alpha", | |
| get: function () { | |
| return this._container.alpha | |
| }, | |
| set: function (e) { | |
| this._container.alpha = e | |
| } | |
| }]), t | |
| }(aoba.utils.EventEmitter); | |
| t.default = u | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = n(916), | |
| l = aoba, | |
| u = l.Graphics, | |
| c = function (e) { | |
| function t(e) { | |
| var n; | |
| r(this, t); | |
| var a = e.width; | |
| return (n = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this))).beginFill(16777215).drawRoundedRect(0, 0, a, 0, a / 2), n.filters = [new s.OutlineFilter(2, 6378598)], n._swiping = !1, n._prevPosition = null, n._diffPosition = null, n.interactive = !0, n.on("touchstart", n._onTouchStart, n), n.on("touchmove", n._onTouchMove, n), n.on("touchend", n._onTouchEnd, n), n.on("touchendoutside", n._onTouchEnd, n), n | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "updateMaxY", | |
| value: function (e) { | |
| this._maxY = e | |
| } | |
| }, { | |
| key: "_onTouchStart", | |
| value: function (e) { | |
| this._swiping || (this._swiping = !0, this._startY = this.y, this._pointerStartY = e.data.global.y) | |
| } | |
| }, { | |
| key: "_onTouchMove", | |
| value: function (e) { | |
| if (this._swiping) { | |
| var t = this._startY + (e.data.global.y - this._pointerStartY); | |
| t = Math.max(0, t), t = Math.min(this._maxY, t), this.y = t, this.emit("moved") | |
| } | |
| } | |
| }, { | |
| key: "_onTouchEnd", | |
| value: function () { | |
| this._swiping && (this._swiping = !1) | |
| } | |
| }]), t | |
| }(u); | |
| t.default = c | |
| }, function (e, t, n) { | |
| var r = n(141)("wks"), | |
| i = n(85), | |
| a = n(11).Symbol, | |
| o = "function" == typeof a; | |
| (e.exports = function (e) { | |
| return r[e] || (r[e] = o && a[e] || (o ? a : i)("Symbol." + e)) | |
| }).store = r | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = { | |
| ready: { | |
| start: "sounds/se/301.m4a" | |
| }, | |
| commu: { | |
| tensionUp: "sounds/se/206.m4a", | |
| tensionDown: "sounds/se/220.m4a", | |
| memoryUp: "sounds/se/210.m4a", | |
| statusUp: "sounds/se/219.m4a", | |
| answerSelect: "sounds/se/227.m4a", | |
| result: { | |
| normal: "sounds/se/207.m4a", | |
| good: "sounds/se/208.m4a", | |
| perfect: "sounds/se/209.m4a" | |
| }, | |
| promise: { | |
| agree: "sounds/se/231.m4a", | |
| disagree: "sounds/se/220.m4a" | |
| } | |
| }, | |
| tvShow: { | |
| fan: "sounds/se/260.m4a" | |
| }, | |
| activity: { | |
| statusRankUp: "sounds/se/259.m4a", | |
| friendshipPointUp: "sounds/se/222.m4a", | |
| stageLevelUp: "sounds/se/258.m4a", | |
| staminaRecover: "sounds/se/260.m4a", | |
| result: { | |
| cutIn: { | |
| success: "sounds/se/173.m4a", | |
| normal: "sounds/se/260.m4a", | |
| failure: "sounds/se/261.m4a", | |
| critical: "sounds/se/172.m4a", | |
| excellent: "sounds/se/175.m4a", | |
| perfectExcellent: "sounds/se/174.m4a" | |
| }, | |
| stage: { | |
| success: "sounds/se/221.m4a", | |
| failure: "sounds/se/220.m4a" | |
| } | |
| }, | |
| promiseResult: { | |
| success: "sounds/se/221.m4a", | |
| failure: "sounds/se/220.m4a" | |
| } | |
| }, | |
| idolRank: { | |
| fanCountUp: "sounds/se/223.m4a", | |
| fanCountStop: "sounds/se/236.m4a", | |
| fanCountMax: "sounds/se/224.m4a", | |
| rankUp: "sounds/se/225.m4a", | |
| rankUpEffect: "sounds/se/226.m4a" | |
| }, | |
| supportSkill: { | |
| cutIn: "sounds/se/262.m4a" | |
| } | |
| } | |
| }, function (e, t, n) { | |
| e.exports = !n(15)(function () { | |
| return 7 != Object.defineProperty({}, "a", { | |
| get: function () { | |
| return 7 | |
| } | |
| }).a | |
| }) | |
| }, function (e, t, n) { | |
| var r = n(8), | |
| i = n(285), | |
| a = n(60), | |
| o = Object.defineProperty; | |
| t.f = n(27) ? Object.defineProperty : function (e, t, n) { | |
| if (r(e), t = a(t, !0), r(n), i) try { | |
| return o(e, t, n) | |
| } catch (e) {} | |
| if ("get" in n || "set" in n) throw TypeError("Accessors not supported!"); | |
| return "value" in n && (e[t] = n.value), e | |
| } | |
| }, function (e, t, n) { | |
| var r = n(62), | |
| i = Math.min; | |
| e.exports = function (e) { | |
| return e > 0 ? i(r(e), 9007199254740991) : 0 | |
| } | |
| }, function (e, t, n) { | |
| (function (e) { | |
| ! function (e, t) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!e) throw new Error(t || "Assertion failed") | |
| } | |
| function i(e, t) { | |
| e.super_ = t; | |
| var n = function () {}; | |
| n.prototype = t.prototype, e.prototype = new n, e.prototype.constructor = e | |
| } | |
| function a(e, t, n) { | |
| if (a.isBN(e)) return e; | |
| this.negative = 0, this.words = null, this.length = 0, this.red = null, null !== e && ("le" !== t && "be" !== t || (n = t, t = 10), this._init(e || 0, t || 10, n || "be")) | |
| } | |
| function o(e, t, n) { | |
| for (var r = 0, i = Math.min(e.length, n), a = t; a < i; a++) { | |
| var o = e.charCodeAt(a) - 48; | |
| r <<= 4, r |= o >= 49 && o <= 54 ? o - 49 + 10 : o >= 17 && o <= 22 ? o - 17 + 10 : 15 & o | |
| } | |
| return r | |
| } | |
| function s(e, t, n, r) { | |
| for (var i = 0, a = Math.min(e.length, n), o = t; o < a; o++) { | |
| var s = e.charCodeAt(o) - 48; | |
| i *= r, i += s >= 49 ? s - 49 + 10 : s >= 17 ? s - 17 + 10 : s | |
| } | |
| return i | |
| } | |
| function l(e) { | |
| for (var t = new Array(e.bitLength()), n = 0; n < t.length; n++) { | |
| var r = n / 26 | 0, | |
| i = n % 26; | |
| t[n] = (e.words[r] & 1 << i) >>> i | |
| } | |
| return t | |
| } | |
| function u(e, t, n) { | |
| n.negative = t.negative ^ e.negative; | |
| var r = e.length + t.length | 0; | |
| n.length = r, r = r - 1 | 0; | |
| var i = 0 | e.words[0], | |
| a = 0 | t.words[0], | |
| o = i * a, | |
| s = 67108863 & o, | |
| l = o / 67108864 | 0; | |
| n.words[0] = s; | |
| for (var u = 1; u < r; u++) { | |
| for (var c = l >>> 26, f = 67108863 & l, d = Math.min(u, t.length - 1), p = Math.max(0, u - e.length + 1); p <= d; p++) { | |
| var h = u - p | 0; | |
| i = 0 | e.words[h], a = 0 | t.words[p], o = i * a + f, c += o / 67108864 | 0, f = 67108863 & o | |
| } | |
| n.words[u] = 0 | f, l = 0 | c | |
| } | |
| return 0 !== l ? n.words[u] = 0 | l : n.length--, n.strip() | |
| } | |
| function c(e, t, n) { | |
| n.negative = t.negative ^ e.negative, n.length = e.length + t.length; | |
| for (var r = 0, i = 0, a = 0; a < n.length - 1; a++) { | |
| var o = i; | |
| i = 0; | |
| for (var s = 67108863 & r, l = Math.min(a, t.length - 1), u = Math.max(0, a - e.length + 1); u <= l; u++) { | |
| var c = a - u, | |
| f = 0 | e.words[c], | |
| d = 0 | t.words[u], | |
| p = f * d, | |
| h = 67108863 & p; | |
| o = o + (p / 67108864 | 0) | 0, h = h + s | 0, s = 67108863 & h, o = o + (h >>> 26) | 0, i += o >>> 26, o &= 67108863 | |
| } | |
| n.words[a] = s, r = o, o = i | |
| } | |
| return 0 !== r ? n.words[a] = r : n.length--, n.strip() | |
| } | |
| function f(e, t, n) { | |
| return (new d).mulp(e, t, n) | |
| } | |
| function d(e, t) { | |
| this.x = e, this.y = t | |
| } | |
| function p(e, t) { | |
| this.name = e, this.p = new a(t, 16), this.n = this.p.bitLength(), this.k = new a(1).iushln(this.n).isub(this.p), this.tmp = this._tmp() | |
| } | |
| function h() { | |
| p.call(this, "k256", "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f") | |
| } | |
| function y() { | |
| p.call(this, "p224", "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001") | |
| } | |
| function m() { | |
| p.call(this, "p192", "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff") | |
| } | |
| function _() { | |
| p.call(this, "25519", "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed") | |
| } | |
| function g(e) { | |
| if ("string" == typeof e) { | |
| var t = a._prime(e); | |
| this.m = t.p, this.prime = t | |
| } else r(e.gtn(1), "modulus must be greater than 1"), this.m = e, this.prime = null | |
| } | |
| function b(e) { | |
| g.call(this, e), this.shift = this.m.bitLength(), this.shift % 26 != 0 && (this.shift += 26 - this.shift % 26), this.r = new a(1).iushln(this.shift), this.r2 = this.imod(this.r.sqr()), this.rinv = this.r._invmp(this.m), this.minv = this.rinv.mul(this.r).isubn(1).div(this.m), this.minv = this.minv.umod(this.r), this.minv = this.r.sub(this.minv) | |
| } | |
| "object" == typeof e ? e.exports = a : t.BN = a, a.BN = a, a.wordSize = 26; | |
| var v; | |
| try { | |
| v = n(747).Buffer | |
| } catch (e) {} | |
| a.isBN = function (e) { | |
| return e instanceof a || null !== e && "object" == typeof e && e.constructor.wordSize === a.wordSize && Array.isArray(e.words) | |
| }, a.max = function (e, t) { | |
| return e.cmp(t) > 0 ? e : t | |
| }, a.min = function (e, t) { | |
| return e.cmp(t) < 0 ? e : t | |
| }, a.prototype._init = function (e, t, n) { | |
| if ("number" == typeof e) return this._initNumber(e, t, n); | |
| if ("object" == typeof e) return this._initArray(e, t, n); | |
| "hex" === t && (t = 16), r(t === (0 | t) && t >= 2 && t <= 36), e = e.toString().replace(/\s+/g, ""); | |
| var i = 0; | |
| "-" === e[0] && i++, 16 === t ? this._parseHex(e, i) : this._parseBase(e, t, i), "-" === e[0] && (this.negative = 1), this.strip(), "le" === n && this._initArray(this.toArray(), t, n) | |
| }, a.prototype._initNumber = function (e, t, n) { | |
| e < 0 && (this.negative = 1, e = -e), e < 67108864 ? (this.words = [67108863 & e], this.length = 1) : e < 4503599627370496 ? (this.words = [67108863 & e, e / 67108864 & 67108863], this.length = 2) : (r(e < 9007199254740992), this.words = [67108863 & e, e / 67108864 & 67108863, 1], this.length = 3), "le" === n && this._initArray(this.toArray(), t, n) | |
| }, a.prototype._initArray = function (e, t, n) { | |
| if (r("number" == typeof e.length), e.length <= 0) return this.words = [0], this.length = 1, this; | |
| this.length = Math.ceil(e.length / 3), this.words = new Array(this.length); | |
| for (var i = 0; i < this.length; i++) this.words[i] = 0; | |
| var a, o, s = 0; | |
| if ("be" === n) | |
| for (i = e.length - 1, a = 0; i >= 0; i -= 3) o = e[i] | e[i - 1] << 8 | e[i - 2] << 16, this.words[a] |= o << s & 67108863, this.words[a + 1] = o >>> 26 - s & 67108863, (s += 24) >= 26 && (s -= 26, a++); | |
| else if ("le" === n) | |
| for (i = 0, a = 0; i < e.length; i += 3) o = e[i] | e[i + 1] << 8 | e[i + 2] << 16, this.words[a] |= o << s & 67108863, this.words[a + 1] = o >>> 26 - s & 67108863, (s += 24) >= 26 && (s -= 26, a++); | |
| return this.strip() | |
| }, a.prototype._parseHex = function (e, t) { | |
| this.length = Math.ceil((e.length - t) / 6), this.words = new Array(this.length); | |
| for (var n = 0; n < this.length; n++) this.words[n] = 0; | |
| var r, i, a = 0; | |
| for (n = e.length - 6, r = 0; n >= t; n -= 6) i = o(e, n, n + 6), this.words[r] |= i << a & 67108863, this.words[r + 1] |= i >>> 26 - a & 4194303, (a += 24) >= 26 && (a -= 26, r++); | |
| n + 6 !== t && (i = o(e, t, n + 6), this.words[r] |= i << a & 67108863, this.words[r + 1] |= i >>> 26 - a & 4194303), this.strip() | |
| }, a.prototype._parseBase = function (e, t, n) { | |
| this.words = [0], this.length = 1; | |
| for (var r = 0, i = 1; i <= 67108863; i *= t) r++; | |
| r--, i = i / t | 0; | |
| for (var a = e.length - n, o = a % r, l = Math.min(a, a - o) + n, u = 0, c = n; c < l; c += r) u = s(e, c, c + r, t), this.imuln(i), this.words[0] + u < 67108864 ? this.words[0] += u : this._iaddn(u); | |
| if (0 !== o) { | |
| var f = 1; | |
| for (u = s(e, c, e.length, t), c = 0; c < o; c++) f *= t; | |
| this.imuln(f), this.words[0] + u < 67108864 ? this.words[0] += u : this._iaddn(u) | |
| } | |
| }, a.prototype.copy = function (e) { | |
| e.words = new Array(this.length); | |
| for (var t = 0; t < this.length; t++) e.words[t] = this.words[t]; | |
| e.length = this.length, e.negative = this.negative, e.red = this.red | |
| }, a.prototype.clone = function () { | |
| var e = new a(null); | |
| return this.copy(e), e | |
| }, a.prototype._expand = function (e) { | |
| for (; this.length < e;) this.words[this.length++] = 0; | |
| return this | |
| }, a.prototype.strip = function () { | |
| for (; this.length > 1 && 0 === this.words[this.length - 1];) this.length--; | |
| return this._normSign() | |
| }, a.prototype._normSign = function () { | |
| return 1 === this.length && 0 === this.words[0] && (this.negative = 0), this | |
| }, a.prototype.inspect = function () { | |
| return (this.red ? "<BN-R: " : "<BN: ") + this.toString(16) + ">" | |
| }; | |
| var w = ["", "0", "00", "000", "0000", "00000", "000000", "0000000", "00000000", "000000000", "0000000000", "00000000000", "000000000000", "0000000000000", "00000000000000", "000000000000000", "0000000000000000", "00000000000000000", "000000000000000000", "0000000000000000000", "00000000000000000000", "000000000000000000000", "0000000000000000000000", "00000000000000000000000", "000000000000000000000000", "0000000000000000000000000"], | |
| k = [0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], | |
| S = [0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176]; | |
| a.prototype.toString = function (e, t) { | |
| e = e || 10, t = 0 | t || 1; | |
| var n; | |
| if (16 === e || "hex" === e) { | |
| n = ""; | |
| for (var i = 0, a = 0, o = 0; o < this.length; o++) { | |
| var s = this.words[o], | |
| l = (16777215 & (s << i | a)).toString(16); | |
| a = s >>> 24 - i & 16777215, n = 0 !== a || o !== this.length - 1 ? w[6 - l.length] + l + n : l + n, i += 2, i >= 26 && (i -= 26, o--) | |
| } | |
| for (0 !== a && (n = a.toString(16) + n); n.length % t != 0;) n = "0" + n; | |
| return 0 !== this.negative && (n = "-" + n), n | |
| } | |
| if (e === (0 | e) && e >= 2 && e <= 36) { | |
| var u = k[e], | |
| c = S[e]; | |
| n = ""; | |
| var f = this.clone(); | |
| for (f.negative = 0; !f.isZero();) { | |
| var d = f.modn(c).toString(e); | |
| f = f.idivn(c), n = f.isZero() ? d + n : w[u - d.length] + d + n | |
| } | |
| for (this.isZero() && (n = "0" + n); n.length % t != 0;) n = "0" + n; | |
| return 0 !== this.negative && (n = "-" + n), n | |
| } | |
| r(!1, "Base should be between 2 and 36") | |
| }, a.prototype.toNumber = function () { | |
| var e = this.words[0]; | |
| return 2 === this.length ? e += 67108864 * this.words[1] : 3 === this.length && 1 === this.words[2] ? e += 4503599627370496 + 67108864 * this.words[1] : this.length > 2 && r(!1, "Number can only safely store up to 53 bits"), 0 !== this.negative ? -e : e | |
| }, a.prototype.toJSON = function () { | |
| return this.toString(16) | |
| }, a.prototype.toBuffer = function (e, t) { | |
| return r(void 0 !== v), this.toArrayLike(v, e, t) | |
| }, a.prototype.toArray = function (e, t) { | |
| return this.toArrayLike(Array, e, t) | |
| }, a.prototype.toArrayLike = function (e, t, n) { | |
| var i = this.byteLength(), | |
| a = n || Math.max(1, i); | |
| r(i <= a, "byte array longer than desired length"), r(a > 0, "Requested array length <= 0"), this.strip(); | |
| var o, s, l = "le" === t, | |
| u = new e(a), | |
| c = this.clone(); | |
| if (l) { | |
| for (s = 0; !c.isZero(); s++) o = c.andln(255), c.iushrn(8), u[s] = o; | |
| for (; s < a; s++) u[s] = 0 | |
| } else { | |
| for (s = 0; s < a - i; s++) u[s] = 0; | |
| for (s = 0; !c.isZero(); s++) o = c.andln(255), c.iushrn(8), u[a - s - 1] = o | |
| } | |
| return u | |
| }, Math.clz32 ? a.prototype._countBits = function (e) { | |
| return 32 - Math.clz32(e) | |
| } : a.prototype._countBits = function (e) { | |
| var t = e, | |
| n = 0; | |
| return t >= 4096 && (n += 13, t >>>= 13), t >= 64 && (n += 7, t >>>= 7), t >= 8 && (n += 4, t >>>= 4), t >= 2 && (n += 2, t >>>= 2), n + t | |
| }, a.prototype._zeroBits = function (e) { | |
| if (0 === e) return 26; | |
| var t = e, | |
| n = 0; | |
| return 0 == (8191 & t) && (n += 13, t >>>= 13), 0 == (127 & t) && (n += 7, t >>>= 7), 0 == (15 & t) && (n += 4, t >>>= 4), 0 == (3 & t) && (n += 2, t >>>= 2), 0 == (1 & t) && n++, n | |
| }, a.prototype.bitLength = function () { | |
| var e = this.words[this.length - 1], | |
| t = this._countBits(e); | |
| return 26 * (this.length - 1) + t | |
| }, a.prototype.zeroBits = function () { | |
| if (this.isZero()) return 0; | |
| for (var e = 0, t = 0; t < this.length; t++) { | |
| var n = this._zeroBits(this.words[t]); | |
| if (e += n, 26 !== n) break | |
| } | |
| return e | |
| }, a.prototype.byteLength = function () { | |
| return Math.ceil(this.bitLength() / 8) | |
| }, a.prototype.toTwos = function (e) { | |
| return 0 !== this.negative ? this.abs().inotn(e).iaddn(1) : this.clone() | |
| }, a.prototype.fromTwos = function (e) { | |
| return this.testn(e - 1) ? this.notn(e).iaddn(1).ineg() : this.clone() | |
| }, a.prototype.isNeg = function () { | |
| return 0 !== this.negative | |
| }, a.prototype.neg = function () { | |
| return this.clone().ineg() | |
| }, a.prototype.ineg = function () { | |
| return this.isZero() || (this.negative ^= 1), this | |
| }, a.prototype.iuor = function (e) { | |
| for (; this.length < e.length;) this.words[this.length++] = 0; | |
| for (var t = 0; t < e.length; t++) this.words[t] = this.words[t] | e.words[t]; | |
| return this.strip() | |
| }, a.prototype.ior = function (e) { | |
| return r(0 == (this.negative | e.negative)), this.iuor(e) | |
| }, a.prototype.or = function (e) { | |
| return this.length > e.length ? this.clone().ior(e) : e.clone().ior(this) | |
| }, a.prototype.uor = function (e) { | |
| return this.length > e.length ? this.clone().iuor(e) : e.clone().iuor(this) | |
| }, a.prototype.iuand = function (e) { | |
| var t; | |
| t = this.length > e.length ? e : this; | |
| for (var n = 0; n < t.length; n++) this.words[n] = this.words[n] & e.words[n]; | |
| return this.length = t.length, this.strip() | |
| }, a.prototype.iand = function (e) { | |
| return r(0 == (this.negative | e.negative)), this.iuand(e) | |
| }, a.prototype.and = function (e) { | |
| return this.length > e.length ? this.clone().iand(e) : e.clone().iand(this) | |
| }, a.prototype.uand = function (e) { | |
| return this.length > e.length ? this.clone().iuand(e) : e.clone().iuand(this) | |
| }, a.prototype.iuxor = function (e) { | |
| var t, n; | |
| this.length > e.length ? (t = this, n = e) : (t = e, n = this); | |
| for (var r = 0; r < n.length; r++) this.words[r] = t.words[r] ^ n.words[r]; | |
| if (this !== t) | |
| for (; r < t.length; r++) this.words[r] = t.words[r]; | |
| return this.length = t.length, this.strip() | |
| }, a.prototype.ixor = function (e) { | |
| return r(0 == (this.negative | e.negative)), this.iuxor(e) | |
| }, a.prototype.xor = function (e) { | |
| return this.length > e.length ? this.clone().ixor(e) : e.clone().ixor(this) | |
| }, a.prototype.uxor = function (e) { | |
| return this.length > e.length ? this.clone().iuxor(e) : e.clone().iuxor(this) | |
| }, a.prototype.inotn = function (e) { | |
| r("number" == typeof e && e >= 0); | |
| var t = 0 | Math.ceil(e / 26), | |
| n = e % 26; | |
| this._expand(t), n > 0 && t--; | |
| for (var i = 0; i < t; i++) this.words[i] = 67108863 & ~this.words[i]; | |
| return n > 0 && (this.words[i] = ~this.words[i] & 67108863 >> 26 - n), this.strip() | |
| }, a.prototype.notn = function (e) { | |
| return this.clone().inotn(e) | |
| }, a.prototype.setn = function (e, t) { | |
| r("number" == typeof e && e >= 0); | |
| var n = e / 26 | 0, | |
| i = e % 26; | |
| return this._expand(n + 1), this.words[n] = t ? this.words[n] | 1 << i : this.words[n] & ~(1 << i), this.strip() | |
| }, a.prototype.iadd = function (e) { | |
| var t; | |
| if (0 !== this.negative && 0 === e.negative) return this.negative = 0, t = this.isub(e), this.negative ^= 1, this._normSign(); | |
| if (0 === this.negative && 0 !== e.negative) return e.negative = 0, t = this.isub(e), e.negative = 1, t._normSign(); | |
| var n, r; | |
| this.length > e.length ? (n = this, r = e) : (n = e, r = this); | |
| for (var i = 0, a = 0; a < r.length; a++) t = (0 | n.words[a]) + (0 | r.words[a]) + i, this.words[a] = 67108863 & t, i = t >>> 26; | |
| for (; 0 !== i && a < n.length; a++) t = (0 | n.words[a]) + i, this.words[a] = 67108863 & t, i = t >>> 26; | |
| if (this.length = n.length, 0 !== i) this.words[this.length] = i, this.length++; | |
| else if (n !== this) | |
| for (; a < n.length; a++) this.words[a] = n.words[a]; | |
| return this | |
| }, a.prototype.add = function (e) { | |
| var t; | |
| return 0 !== e.negative && 0 === this.negative ? (e.negative = 0, t = this.sub(e), e.negative ^= 1, t) : 0 === e.negative && 0 !== this.negative ? (this.negative = 0, t = e.sub(this), this.negative = 1, t) : this.length > e.length ? this.clone().iadd(e) : e.clone().iadd(this) | |
| }, a.prototype.isub = function (e) { | |
| if (0 !== e.negative) { | |
| e.negative = 0; | |
| var t = this.iadd(e); | |
| return e.negative = 1, t._normSign() | |
| } | |
| if (0 !== this.negative) return this.negative = 0, this.iadd(e), this.negative = 1, this._normSign(); | |
| var n = this.cmp(e); | |
| if (0 === n) return this.negative = 0, this.length = 1, this.words[0] = 0, this; | |
| var r, i; | |
| n > 0 ? (r = this, i = e) : (r = e, i = this); | |
| for (var a = 0, o = 0; o < i.length; o++) t = (0 | r.words[o]) - (0 | i.words[o]) + a, a = t >> 26, this.words[o] = 67108863 & t; | |
| for (; 0 !== a && o < r.length; o++) t = (0 | r.words[o]) + a, a = t >> 26, this.words[o] = 67108863 & t; | |
| if (0 === a && o < r.length && r !== this) | |
| for (; o < r.length; o++) this.words[o] = r.words[o]; | |
| return this.length = Math.max(this.length, o), r !== this && (this.negative = 1), this.strip() | |
| }, a.prototype.sub = function (e) { | |
| return this.clone().isub(e) | |
| }; | |
| var I = function (e, t, n) { | |
| var r, i, a, o = e.words, | |
| s = t.words, | |
| l = n.words, | |
| u = 0, | |
| c = 0 | o[0], | |
| f = 8191 & c, | |
| d = c >>> 13, | |
| p = 0 | o[1], | |
| h = 8191 & p, | |
| y = p >>> 13, | |
| m = 0 | o[2], | |
| _ = 8191 & m, | |
| g = m >>> 13, | |
| b = 0 | o[3], | |
| v = 8191 & b, | |
| w = b >>> 13, | |
| k = 0 | o[4], | |
| S = 8191 & k, | |
| I = k >>> 13, | |
| E = 0 | o[5], | |
| A = 8191 & E, | |
| x = E >>> 13, | |
| C = 0 | o[6], | |
| T = 8191 & C, | |
| P = C >>> 13, | |
| O = 0 | o[7], | |
| N = 8191 & O, | |
| M = O >>> 13, | |
| R = 0 | o[8], | |
| D = 8191 & R, | |
| F = R >>> 13, | |
| B = 0 | o[9], | |
| j = 8191 & B, | |
| L = B >>> 13, | |
| U = 0 | s[0], | |
| H = 8191 & U, | |
| G = U >>> 13, | |
| z = 0 | s[1], | |
| V = 8191 & z, | |
| K = z >>> 13, | |
| W = 0 | s[2], | |
| q = 8191 & W, | |
| X = W >>> 13, | |
| Y = 0 | s[3], | |
| J = 8191 & Y, | |
| Q = Y >>> 13, | |
| Z = 0 | s[4], | |
| $ = 8191 & Z, | |
| ee = Z >>> 13, | |
| te = 0 | s[5], | |
| ne = 8191 & te, | |
| re = te >>> 13, | |
| ie = 0 | s[6], | |
| ae = 8191 & ie, | |
| oe = ie >>> 13, | |
| se = 0 | s[7], | |
| le = 8191 & se, | |
| ue = se >>> 13, | |
| ce = 0 | s[8], | |
| fe = 8191 & ce, | |
| de = ce >>> 13, | |
| pe = 0 | s[9], | |
| he = 8191 & pe, | |
| ye = pe >>> 13; | |
| n.negative = e.negative ^ t.negative, n.length = 19, r = Math.imul(f, H), i = Math.imul(f, G), i = i + Math.imul(d, H) | 0, a = Math.imul(d, G); | |
| var me = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (me >>> 26) | 0, me &= 67108863, r = Math.imul(h, H), i = Math.imul(h, G), i = i + Math.imul(y, H) | 0, a = Math.imul(y, G), r = r + Math.imul(f, V) | 0, i = i + Math.imul(f, K) | 0, i = i + Math.imul(d, V) | 0, a = a + Math.imul(d, K) | 0; | |
| var _e = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (_e >>> 26) | 0, _e &= 67108863, r = Math.imul(_, H), i = Math.imul(_, G), i = i + Math.imul(g, H) | 0, a = Math.imul(g, G), r = r + Math.imul(h, V) | 0, i = i + Math.imul(h, K) | 0, i = i + Math.imul(y, V) | 0, a = a + Math.imul(y, K) | 0, r = r + Math.imul(f, q) | 0, i = i + Math.imul(f, X) | 0, i = i + Math.imul(d, q) | 0, a = a + Math.imul(d, X) | 0; | |
| var ge = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (ge >>> 26) | 0, ge &= 67108863, r = Math.imul(v, H), i = Math.imul(v, G), i = i + Math.imul(w, H) | 0, a = Math.imul(w, G), r = r + Math.imul(_, V) | 0, i = i + Math.imul(_, K) | 0, i = i + Math.imul(g, V) | 0, a = a + Math.imul(g, K) | 0, r = r + Math.imul(h, q) | 0, i = i + Math.imul(h, X) | 0, i = i + Math.imul(y, q) | 0, a = a + Math.imul(y, X) | 0, r = r + Math.imul(f, J) | 0, i = i + Math.imul(f, Q) | 0, i = i + Math.imul(d, J) | 0, a = a + Math.imul(d, Q) | 0; | |
| var be = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (be >>> 26) | 0, be &= 67108863, r = Math.imul(S, H), i = Math.imul(S, G), i = i + Math.imul(I, H) | 0, a = Math.imul(I, G), r = r + Math.imul(v, V) | 0, i = i + Math.imul(v, K) | 0, i = i + Math.imul(w, V) | 0, a = a + Math.imul(w, K) | 0, r = r + Math.imul(_, q) | 0, i = i + Math.imul(_, X) | 0, i = i + Math.imul(g, q) | 0, a = a + Math.imul(g, X) | 0, r = r + Math.imul(h, J) | 0, i = i + Math.imul(h, Q) | 0, i = i + Math.imul(y, J) | 0, a = a + Math.imul(y, Q) | 0, r = r + Math.imul(f, $) | 0, i = i + Math.imul(f, ee) | 0, i = i + Math.imul(d, $) | 0, a = a + Math.imul(d, ee) | 0; | |
| var ve = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (ve >>> 26) | 0, ve &= 67108863, r = Math.imul(A, H), i = Math.imul(A, G), i = i + Math.imul(x, H) | 0, a = Math.imul(x, G), r = r + Math.imul(S, V) | 0, i = i + Math.imul(S, K) | 0, i = i + Math.imul(I, V) | 0, a = a + Math.imul(I, K) | 0, r = r + Math.imul(v, q) | 0, i = i + Math.imul(v, X) | 0, i = i + Math.imul(w, q) | 0, a = a + Math.imul(w, X) | 0, r = r + Math.imul(_, J) | 0, i = i + Math.imul(_, Q) | 0, i = i + Math.imul(g, J) | 0, a = a + Math.imul(g, Q) | 0, r = r + Math.imul(h, $) | 0, i = i + Math.imul(h, ee) | 0, i = i + Math.imul(y, $) | 0, a = a + Math.imul(y, ee) | 0, r = r + Math.imul(f, ne) | 0, i = i + Math.imul(f, re) | 0, i = i + Math.imul(d, ne) | 0, a = a + Math.imul(d, re) | 0; | |
| var we = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (we >>> 26) | 0, we &= 67108863, r = Math.imul(T, H), i = Math.imul(T, G), i = i + Math.imul(P, H) | 0, a = Math.imul(P, G), r = r + Math.imul(A, V) | 0, i = i + Math.imul(A, K) | 0, i = i + Math.imul(x, V) | 0, a = a + Math.imul(x, K) | 0, r = r + Math.imul(S, q) | 0, i = i + Math.imul(S, X) | 0, i = i + Math.imul(I, q) | 0, a = a + Math.imul(I, X) | 0, r = r + Math.imul(v, J) | 0, i = i + Math.imul(v, Q) | 0, i = i + Math.imul(w, J) | 0, a = a + Math.imul(w, Q) | 0, r = r + Math.imul(_, $) | 0, i = i + Math.imul(_, ee) | 0, i = i + Math.imul(g, $) | 0, a = a + Math.imul(g, ee) | 0, r = r + Math.imul(h, ne) | 0, i = i + Math.imul(h, re) | 0, i = i + Math.imul(y, ne) | 0, a = a + Math.imul(y, re) | 0, r = r + Math.imul(f, ae) | 0, i = i + Math.imul(f, oe) | 0, i = i + Math.imul(d, ae) | 0, a = a + Math.imul(d, oe) | 0; | |
| var ke = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (ke >>> 26) | 0, ke &= 67108863, r = Math.imul(N, H), i = Math.imul(N, G), i = i + Math.imul(M, H) | 0, a = Math.imul(M, G), r = r + Math.imul(T, V) | 0, i = i + Math.imul(T, K) | 0, i = i + Math.imul(P, V) | 0, a = a + Math.imul(P, K) | 0, r = r + Math.imul(A, q) | 0, i = i + Math.imul(A, X) | 0, i = i + Math.imul(x, q) | 0, a = a + Math.imul(x, X) | 0, r = r + Math.imul(S, J) | 0, i = i + Math.imul(S, Q) | 0, i = i + Math.imul(I, J) | 0, a = a + Math.imul(I, Q) | 0, r = r + Math.imul(v, $) | 0, i = i + Math.imul(v, ee) | 0, i = i + Math.imul(w, $) | 0, a = a + Math.imul(w, ee) | 0, r = r + Math.imul(_, ne) | 0, i = i + Math.imul(_, re) | 0, i = i + Math.imul(g, ne) | 0, a = a + Math.imul(g, re) | 0, r = r + Math.imul(h, ae) | 0, i = i + Math.imul(h, oe) | 0, i = i + Math.imul(y, ae) | 0, a = a + Math.imul(y, oe) | 0, r = r + Math.imul(f, le) | 0, i = i + Math.imul(f, ue) | 0, i = i + Math.imul(d, le) | 0, a = a + Math.imul(d, ue) | 0; | |
| var Se = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (Se >>> 26) | 0, Se &= 67108863, r = Math.imul(D, H), i = Math.imul(D, G), i = i + Math.imul(F, H) | 0, a = Math.imul(F, G), r = r + Math.imul(N, V) | 0, i = i + Math.imul(N, K) | 0, i = i + Math.imul(M, V) | 0, a = a + Math.imul(M, K) | 0, r = r + Math.imul(T, q) | 0, i = i + Math.imul(T, X) | 0, i = i + Math.imul(P, q) | 0, a = a + Math.imul(P, X) | 0, r = r + Math.imul(A, J) | 0, i = i + Math.imul(A, Q) | 0, i = i + Math.imul(x, J) | 0, a = a + Math.imul(x, Q) | 0, r = r + Math.imul(S, $) | 0, i = i + Math.imul(S, ee) | 0, i = i + Math.imul(I, $) | 0, a = a + Math.imul(I, ee) | 0, r = r + Math.imul(v, ne) | 0, i = i + Math.imul(v, re) | 0, i = i + Math.imul(w, ne) | 0, a = a + Math.imul(w, re) | 0, r = r + Math.imul(_, ae) | 0, i = i + Math.imul(_, oe) | 0, i = i + Math.imul(g, ae) | 0, a = a + Math.imul(g, oe) | 0, r = r + Math.imul(h, le) | 0, i = i + Math.imul(h, ue) | 0, i = i + Math.imul(y, le) | 0, a = a + Math.imul(y, ue) | 0, r = r + Math.imul(f, fe) | 0, i = i + Math.imul(f, de) | 0, i = i + Math.imul(d, fe) | 0, a = a + Math.imul(d, de) | 0; | |
| var Ie = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (Ie >>> 26) | 0, Ie &= 67108863, r = Math.imul(j, H), i = Math.imul(j, G), i = i + Math.imul(L, H) | 0, a = Math.imul(L, G), r = r + Math.imul(D, V) | 0, i = i + Math.imul(D, K) | 0, i = i + Math.imul(F, V) | 0, a = a + Math.imul(F, K) | 0, r = r + Math.imul(N, q) | 0, i = i + Math.imul(N, X) | 0, i = i + Math.imul(M, q) | 0, a = a + Math.imul(M, X) | 0, r = r + Math.imul(T, J) | 0, i = i + Math.imul(T, Q) | 0, i = i + Math.imul(P, J) | 0, a = a + Math.imul(P, Q) | 0, r = r + Math.imul(A, $) | 0, i = i + Math.imul(A, ee) | 0, i = i + Math.imul(x, $) | 0, a = a + Math.imul(x, ee) | 0, r = r + Math.imul(S, ne) | 0, i = i + Math.imul(S, re) | 0, i = i + Math.imul(I, ne) | 0, a = a + Math.imul(I, re) | 0, r = r + Math.imul(v, ae) | 0, i = i + Math.imul(v, oe) | 0, i = i + Math.imul(w, ae) | 0, a = a + Math.imul(w, oe) | 0, r = r + Math.imul(_, le) | 0, i = i + Math.imul(_, ue) | 0, i = i + Math.imul(g, le) | 0, a = a + Math.imul(g, ue) | 0, r = r + Math.imul(h, fe) | 0, i = i + Math.imul(h, de) | 0, i = i + Math.imul(y, fe) | 0, a = a + Math.imul(y, de) | 0, r = r + Math.imul(f, he) | 0, i = i + Math.imul(f, ye) | 0, i = i + Math.imul(d, he) | 0, a = a + Math.imul(d, ye) | 0; | |
| var Ee = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (Ee >>> 26) | 0, Ee &= 67108863, r = Math.imul(j, V), i = Math.imul(j, K), i = i + Math.imul(L, V) | 0, a = Math.imul(L, K), r = r + Math.imul(D, q) | 0, i = i + Math.imul(D, X) | 0, i = i + Math.imul(F, q) | 0, a = a + Math.imul(F, X) | 0, r = r + Math.imul(N, J) | 0, i = i + Math.imul(N, Q) | 0, i = i + Math.imul(M, J) | 0, a = a + Math.imul(M, Q) | 0, r = r + Math.imul(T, $) | 0, i = i + Math.imul(T, ee) | 0, i = i + Math.imul(P, $) | 0, a = a + Math.imul(P, ee) | 0, r = r + Math.imul(A, ne) | 0, i = i + Math.imul(A, re) | 0, i = i + Math.imul(x, ne) | 0, a = a + Math.imul(x, re) | 0, r = r + Math.imul(S, ae) | 0, i = i + Math.imul(S, oe) | 0, i = i + Math.imul(I, ae) | 0, a = a + Math.imul(I, oe) | 0, r = r + Math.imul(v, le) | 0, i = i + Math.imul(v, ue) | 0, i = i + Math.imul(w, le) | 0, a = a + Math.imul(w, ue) | 0, r = r + Math.imul(_, fe) | 0, i = i + Math.imul(_, de) | 0, i = i + Math.imul(g, fe) | 0, a = a + Math.imul(g, de) | 0, r = r + Math.imul(h, he) | 0, i = i + Math.imul(h, ye) | 0, i = i + Math.imul(y, he) | 0, a = a + Math.imul(y, ye) | 0; | |
| var Ae = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (Ae >>> 26) | 0, Ae &= 67108863, r = Math.imul(j, q), i = Math.imul(j, X), i = i + Math.imul(L, q) | 0, a = Math.imul(L, X), r = r + Math.imul(D, J) | 0, i = i + Math.imul(D, Q) | 0, i = i + Math.imul(F, J) | 0, a = a + Math.imul(F, Q) | 0, r = r + Math.imul(N, $) | 0, i = i + Math.imul(N, ee) | 0, i = i + Math.imul(M, $) | 0, a = a + Math.imul(M, ee) | 0, r = r + Math.imul(T, ne) | 0, i = i + Math.imul(T, re) | 0, i = i + Math.imul(P, ne) | 0, a = a + Math.imul(P, re) | 0, r = r + Math.imul(A, ae) | 0, i = i + Math.imul(A, oe) | 0, i = i + Math.imul(x, ae) | 0, a = a + Math.imul(x, oe) | 0, r = r + Math.imul(S, le) | 0, i = i + Math.imul(S, ue) | 0, i = i + Math.imul(I, le) | 0, a = a + Math.imul(I, ue) | 0, r = r + Math.imul(v, fe) | 0, i = i + Math.imul(v, de) | 0, i = i + Math.imul(w, fe) | 0, a = a + Math.imul(w, de) | 0, r = r + Math.imul(_, he) | 0, i = i + Math.imul(_, ye) | 0, i = i + Math.imul(g, he) | 0, a = a + Math.imul(g, ye) | 0; | |
| var xe = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (xe >>> 26) | 0, xe &= 67108863, r = Math.imul(j, J), i = Math.imul(j, Q), i = i + Math.imul(L, J) | 0, a = Math.imul(L, Q), r = r + Math.imul(D, $) | 0, i = i + Math.imul(D, ee) | 0, i = i + Math.imul(F, $) | 0, a = a + Math.imul(F, ee) | 0, r = r + Math.imul(N, ne) | 0, i = i + Math.imul(N, re) | 0, i = i + Math.imul(M, ne) | 0, a = a + Math.imul(M, re) | 0, r = r + Math.imul(T, ae) | 0, i = i + Math.imul(T, oe) | 0, i = i + Math.imul(P, ae) | 0, a = a + Math.imul(P, oe) | 0, r = r + Math.imul(A, le) | 0, i = i + Math.imul(A, ue) | 0, i = i + Math.imul(x, le) | 0, a = a + Math.imul(x, ue) | 0, r = r + Math.imul(S, fe) | 0, i = i + Math.imul(S, de) | 0, i = i + Math.imul(I, fe) | 0, a = a + Math.imul(I, de) | 0, r = r + Math.imul(v, he) | 0, i = i + Math.imul(v, ye) | 0, i = i + Math.imul(w, he) | 0, a = a + Math.imul(w, ye) | 0; | |
| var Ce = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (Ce >>> 26) | 0, Ce &= 67108863, r = Math.imul(j, $), i = Math.imul(j, ee), i = i + Math.imul(L, $) | 0, a = Math.imul(L, ee), r = r + Math.imul(D, ne) | 0, i = i + Math.imul(D, re) | 0, i = i + Math.imul(F, ne) | 0, a = a + Math.imul(F, re) | 0, r = r + Math.imul(N, ae) | 0, i = i + Math.imul(N, oe) | 0, i = i + Math.imul(M, ae) | 0, a = a + Math.imul(M, oe) | 0, r = r + Math.imul(T, le) | 0, i = i + Math.imul(T, ue) | 0, i = i + Math.imul(P, le) | 0, a = a + Math.imul(P, ue) | 0, r = r + Math.imul(A, fe) | 0, i = i + Math.imul(A, de) | 0, i = i + Math.imul(x, fe) | 0, a = a + Math.imul(x, de) | 0, r = r + Math.imul(S, he) | 0, i = i + Math.imul(S, ye) | 0, i = i + Math.imul(I, he) | 0, a = a + Math.imul(I, ye) | 0; | |
| var Te = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (Te >>> 26) | 0, Te &= 67108863, r = Math.imul(j, ne), i = Math.imul(j, re), i = i + Math.imul(L, ne) | 0, a = Math.imul(L, re), r = r + Math.imul(D, ae) | 0, i = i + Math.imul(D, oe) | 0, i = i + Math.imul(F, ae) | 0, a = a + Math.imul(F, oe) | 0, r = r + Math.imul(N, le) | 0, i = i + Math.imul(N, ue) | 0, i = i + Math.imul(M, le) | 0, a = a + Math.imul(M, ue) | 0, r = r + Math.imul(T, fe) | 0, i = i + Math.imul(T, de) | 0, i = i + Math.imul(P, fe) | 0, a = a + Math.imul(P, de) | 0, r = r + Math.imul(A, he) | 0, i = i + Math.imul(A, ye) | 0, i = i + Math.imul(x, he) | 0, a = a + Math.imul(x, ye) | 0; | |
| var Pe = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (Pe >>> 26) | 0, Pe &= 67108863, r = Math.imul(j, ae), i = Math.imul(j, oe), i = i + Math.imul(L, ae) | 0, a = Math.imul(L, oe), r = r + Math.imul(D, le) | 0, i = i + Math.imul(D, ue) | 0, i = i + Math.imul(F, le) | 0, a = a + Math.imul(F, ue) | 0, r = r + Math.imul(N, fe) | 0, i = i + Math.imul(N, de) | 0, i = i + Math.imul(M, fe) | 0, a = a + Math.imul(M, de) | 0, r = r + Math.imul(T, he) | 0, i = i + Math.imul(T, ye) | 0, i = i + Math.imul(P, he) | 0, a = a + Math.imul(P, ye) | 0; | |
| var Oe = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (Oe >>> 26) | 0, Oe &= 67108863, r = Math.imul(j, le), i = Math.imul(j, ue), i = i + Math.imul(L, le) | 0, a = Math.imul(L, ue), r = r + Math.imul(D, fe) | 0, i = i + Math.imul(D, de) | 0, i = i + Math.imul(F, fe) | 0, a = a + Math.imul(F, de) | 0, r = r + Math.imul(N, he) | 0, i = i + Math.imul(N, ye) | 0, i = i + Math.imul(M, he) | 0, a = a + Math.imul(M, ye) | 0; | |
| var Ne = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (Ne >>> 26) | 0, Ne &= 67108863, r = Math.imul(j, fe), i = Math.imul(j, de), i = i + Math.imul(L, fe) | 0, a = Math.imul(L, de), r = r + Math.imul(D, he) | 0, i = i + Math.imul(D, ye) | 0, i = i + Math.imul(F, he) | 0, a = a + Math.imul(F, ye) | 0; | |
| var Me = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| u = (a + (i >>> 13) | 0) + (Me >>> 26) | 0, Me &= 67108863, r = Math.imul(j, he), i = Math.imul(j, ye), i = i + Math.imul(L, he) | 0, a = Math.imul(L, ye); | |
| var Re = (u + r | 0) + ((8191 & i) << 13) | 0; | |
| return u = (a + (i >>> 13) | 0) + (Re >>> 26) | 0, Re &= 67108863, l[0] = me, l[1] = _e, l[2] = ge, l[3] = be, l[4] = ve, l[5] = we, l[6] = ke, l[7] = Se, l[8] = Ie, l[9] = Ee, l[10] = Ae, l[11] = xe, l[12] = Ce, l[13] = Te, l[14] = Pe, l[15] = Oe, l[16] = Ne, l[17] = Me, l[18] = Re, 0 !== u && (l[19] = u, n.length++), n | |
| }; | |
| Math.imul || (I = u), a.prototype.mulTo = function (e, t) { | |
| var n = this.length + e.length; | |
| return 10 === this.length && 10 === e.length ? I(this, e, t) : n < 63 ? u(this, e, t) : n < 1024 ? c(this, e, t) : f(this, e, t) | |
| }, d.prototype.makeRBT = function (e) { | |
| for (var t = new Array(e), n = a.prototype._countBits(e) - 1, r = 0; r < e; r++) t[r] = this.revBin(r, n, e); | |
| return t | |
| }, d.prototype.revBin = function (e, t, n) { | |
| if (0 === e || e === n - 1) return e; | |
| for (var r = 0, i = 0; i < t; i++) r |= (1 & e) << t - i - 1, e >>= 1; | |
| return r | |
| }, d.prototype.permute = function (e, t, n, r, i, a) { | |
| for (var o = 0; o < a; o++) r[o] = t[e[o]], i[o] = n[e[o]] | |
| }, d.prototype.transform = function (e, t, n, r, i, a) { | |
| this.permute(a, e, t, n, r, i); | |
| for (var o = 1; o < i; o <<= 1) | |
| for (var s = o << 1, l = Math.cos(2 * Math.PI / s), u = Math.sin(2 * Math.PI / s), c = 0; c < i; c += s) | |
| for (var f = l, d = u, p = 0; p < o; p++) { | |
| var h = n[c + p], | |
| y = r[c + p], | |
| m = n[c + p + o], | |
| _ = r[c + p + o], | |
| g = f * m - d * _; | |
| _ = f * _ + d * m, m = g, n[c + p] = h + m, r[c + p] = y + _, n[c + p + o] = h - m, r[c + p + o] = y - _, p !== s && (g = l * f - u * d, d = l * d + u * f, f = g) | |
| } | |
| }, d.prototype.guessLen13b = function (e, t) { | |
| var n = 1 | Math.max(t, e), | |
| r = 1 & n, | |
| i = 0; | |
| for (n = n / 2 | 0; n; n >>>= 1) i++; | |
| return 1 << i + 1 + r | |
| }, d.prototype.conjugate = function (e, t, n) { | |
| if (!(n <= 1)) | |
| for (var r = 0; r < n / 2; r++) { | |
| var i = e[r]; | |
| e[r] = e[n - r - 1], e[n - r - 1] = i, i = t[r], t[r] = -t[n - r - 1], t[n - r - 1] = -i | |
| } | |
| }, d.prototype.normalize13b = function (e, t) { | |
| for (var n = 0, r = 0; r < t / 2; r++) { | |
| var i = 8192 * Math.round(e[2 * r + 1] / t) + Math.round(e[2 * r] / t) + n; | |
| e[r] = 67108863 & i, n = i < 67108864 ? 0 : i / 67108864 | 0 | |
| } | |
| return e | |
| }, d.prototype.convert13b = function (e, t, n, i) { | |
| for (var a = 0, o = 0; o < t; o++) a += 0 | e[o], n[2 * o] = 8191 & a, a >>>= 13, n[2 * o + 1] = 8191 & a, a >>>= 13; | |
| for (o = 2 * t; o < i; ++o) n[o] = 0; | |
| r(0 === a), r(0 == (-8192 & a)) | |
| }, d.prototype.stub = function (e) { | |
| for (var t = new Array(e), n = 0; n < e; n++) t[n] = 0; | |
| return t | |
| }, d.prototype.mulp = function (e, t, n) { | |
| var r = 2 * this.guessLen13b(e.length, t.length), | |
| i = this.makeRBT(r), | |
| a = this.stub(r), | |
| o = new Array(r), | |
| s = new Array(r), | |
| l = new Array(r), | |
| u = new Array(r), | |
| c = new Array(r), | |
| f = new Array(r), | |
| d = n.words; | |
| d.length = r, this.convert13b(e.words, e.length, o, r), this.convert13b(t.words, t.length, u, r), this.transform(o, a, s, l, r, i), this.transform(u, a, c, f, r, i); | |
| for (var p = 0; p < r; p++) { | |
| var h = s[p] * c[p] - l[p] * f[p]; | |
| l[p] = s[p] * f[p] + l[p] * c[p], s[p] = h | |
| } | |
| return this.conjugate(s, l, r), this.transform(s, l, d, a, r, i), this.conjugate(d, a, r), this.normalize13b(d, r), n.negative = e.negative ^ t.negative, n.length = e.length + t.length, n.strip() | |
| }, a.prototype.mul = function (e) { | |
| var t = new a(null); | |
| return t.words = new Array(this.length + e.length), this.mulTo(e, t) | |
| }, a.prototype.mulf = function (e) { | |
| var t = new a(null); | |
| return t.words = new Array(this.length + e.length), f(this, e, t) | |
| }, a.prototype.imul = function (e) { | |
| return this.clone().mulTo(e, this) | |
| }, a.prototype.imuln = function (e) { | |
| r("number" == typeof e), r(e < 67108864); | |
| for (var t = 0, n = 0; n < this.length; n++) { | |
| var i = (0 | this.words[n]) * e, | |
| a = (67108863 & i) + (67108863 & t); | |
| t >>= 26, t += i / 67108864 | 0, t += a >>> 26, this.words[n] = 67108863 & a | |
| } | |
| return 0 !== t && (this.words[n] = t, this.length++), this | |
| }, a.prototype.muln = function (e) { | |
| return this.clone().imuln(e) | |
| }, a.prototype.sqr = function () { | |
| return this.mul(this) | |
| }, a.prototype.isqr = function () { | |
| return this.imul(this.clone()) | |
| }, a.prototype.pow = function (e) { | |
| var t = l(e); | |
| if (0 === t.length) return new a(1); | |
| for (var n = this, r = 0; r < t.length && 0 === t[r]; r++, n = n.sqr()); | |
| if (++r < t.length) | |
| for (var i = n.sqr(); r < t.length; r++, i = i.sqr()) 0 !== t[r] && (n = n.mul(i)); | |
| return n | |
| }, a.prototype.iushln = function (e) { | |
| r("number" == typeof e && e >= 0); | |
| var t, n = e % 26, | |
| i = (e - n) / 26, | |
| a = 67108863 >>> 26 - n << 26 - n; | |
| if (0 !== n) { | |
| var o = 0; | |
| for (t = 0; t < this.length; t++) { | |
| var s = this.words[t] & a, | |
| l = (0 | this.words[t]) - s << n; | |
| this.words[t] = l | o, o = s >>> 26 - n | |
| } | |
| o && (this.words[t] = o, this.length++) | |
| } | |
| if (0 !== i) { | |
| for (t = this.length - 1; t >= 0; t--) this.words[t + i] = this.words[t]; | |
| for (t = 0; t < i; t++) this.words[t] = 0; | |
| this.length += i | |
| } | |
| return this.strip() | |
| }, a.prototype.ishln = function (e) { | |
| return r(0 === this.negative), this.iushln(e) | |
| }, a.prototype.iushrn = function (e, t, n) { | |
| r("number" == typeof e && e >= 0); | |
| var i; | |
| i = t ? (t - t % 26) / 26 : 0; | |
| var a = e % 26, | |
| o = Math.min((e - a) / 26, this.length), | |
| s = 67108863 ^ 67108863 >>> a << a, | |
| l = n; | |
| if (i -= o, i = Math.max(0, i), l) { | |
| for (var u = 0; u < o; u++) l.words[u] = this.words[u]; | |
| l.length = o | |
| } | |
| if (0 === o); | |
| else if (this.length > o) | |
| for (this.length -= o, u = 0; u < this.length; u++) this.words[u] = this.words[u + o]; | |
| else this.words[0] = 0, this.length = 1; | |
| var c = 0; | |
| for (u = this.length - 1; u >= 0 && (0 !== c || u >= i); u--) { | |
| var f = 0 | this.words[u]; | |
| this.words[u] = c << 26 - a | f >>> a, c = f & s | |
| } | |
| return l && 0 !== c && (l.words[l.length++] = c), 0 === this.length && (this.words[0] = 0, this.length = 1), this.strip() | |
| }, a.prototype.ishrn = function (e, t, n) { | |
| return r(0 === this.negative), this.iushrn(e, t, n) | |
| }, a.prototype.shln = function (e) { | |
| return this.clone().ishln(e) | |
| }, a.prototype.ushln = function (e) { | |
| return this.clone().iushln(e) | |
| }, a.prototype.shrn = function (e) { | |
| return this.clone().ishrn(e) | |
| }, a.prototype.ushrn = function (e) { | |
| return this.clone().iushrn(e) | |
| }, a.prototype.testn = function (e) { | |
| r("number" == typeof e && e >= 0); | |
| var t = e % 26, | |
| n = (e - t) / 26, | |
| i = 1 << t; | |
| return !(this.length <= n) && !!(this.words[n] & i) | |
| }, a.prototype.imaskn = function (e) { | |
| r("number" == typeof e && e >= 0); | |
| var t = e % 26, | |
| n = (e - t) / 26; | |
| if (r(0 === this.negative, "imaskn works only with positive numbers"), this.length <= n) return this; | |
| if (0 !== t && n++, this.length = Math.min(n, this.length), 0 !== t) { | |
| var i = 67108863 ^ 67108863 >>> t << t; | |
| this.words[this.length - 1] &= i | |
| } | |
| return this.strip() | |
| }, a.prototype.maskn = function (e) { | |
| return this.clone().imaskn(e) | |
| }, a.prototype.iaddn = function (e) { | |
| return r("number" == typeof e), r(e < 67108864), e < 0 ? this.isubn(-e) : 0 !== this.negative ? 1 === this.length && (0 | this.words[0]) < e ? (this.words[0] = e - (0 | this.words[0]), this.negative = 0, this) : (this.negative = 0, this.isubn(e), this.negative = 1, this) : this._iaddn(e) | |
| }, a.prototype._iaddn = function (e) { | |
| this.words[0] += e; | |
| for (var t = 0; t < this.length && this.words[t] >= 67108864; t++) this.words[t] -= 67108864, t === this.length - 1 ? this.words[t + 1] = 1 : this.words[t + 1]++; | |
| return this.length = Math.max(this.length, t + 1), this | |
| }, a.prototype.isubn = function (e) { | |
| if (r("number" == typeof e), r(e < 67108864), e < 0) return this.iaddn(-e); | |
| if (0 !== this.negative) return this.negative = 0, this.iaddn(e), this.negative = 1, this; | |
| if (this.words[0] -= e, 1 === this.length && this.words[0] < 0) this.words[0] = -this.words[0], this.negative = 1; | |
| else | |
| for (var t = 0; t < this.length && this.words[t] < 0; t++) this.words[t] += 67108864, this.words[t + 1] -= 1; | |
| return this.strip() | |
| }, a.prototype.addn = function (e) { | |
| return this.clone().iaddn(e) | |
| }, a.prototype.subn = function (e) { | |
| return this.clone().isubn(e) | |
| }, a.prototype.iabs = function () { | |
| return this.negative = 0, this | |
| }, a.prototype.abs = function () { | |
| return this.clone().iabs() | |
| }, a.prototype._ishlnsubmul = function (e, t, n) { | |
| var i, a = e.length + n; | |
| this._expand(a); | |
| var o, s = 0; | |
| for (i = 0; i < e.length; i++) { | |
| o = (0 | this.words[i + n]) + s; | |
| var l = (0 | e.words[i]) * t; | |
| o -= 67108863 & l, s = (o >> 26) - (l / 67108864 | 0), this.words[i + n] = 67108863 & o | |
| } | |
| for (; i < this.length - n; i++) o = (0 | this.words[i + n]) + s, s = o >> 26, this.words[i + n] = 67108863 & o; | |
| if (0 === s) return this.strip(); | |
| for (r(-1 === s), s = 0, i = 0; i < this.length; i++) o = -(0 | this.words[i]) + s, s = o >> 26, this.words[i] = 67108863 & o; | |
| return this.negative = 1, this.strip() | |
| }, a.prototype._wordDiv = function (e, t) { | |
| var n = this.length - e.length, | |
| r = this.clone(), | |
| i = e, | |
| o = 0 | i.words[i.length - 1]; | |
| 0 !== (n = 26 - this._countBits(o)) && (i = i.ushln(n), r.iushln(n), o = 0 | i.words[i.length - 1]); | |
| var s, l = r.length - i.length; | |
| if ("mod" !== t) { | |
| s = new a(null), s.length = l + 1, s.words = new Array(s.length); | |
| for (var u = 0; u < s.length; u++) s.words[u] = 0 | |
| } | |
| var c = r.clone()._ishlnsubmul(i, 1, l); | |
| 0 === c.negative && (r = c, s && (s.words[l] = 1)); | |
| for (var f = l - 1; f >= 0; f--) { | |
| var d = 67108864 * (0 | r.words[i.length + f]) + (0 | r.words[i.length + f - 1]); | |
| for (d = Math.min(d / o | 0, 67108863), r._ishlnsubmul(i, d, f); 0 !== r.negative;) d--, r.negative = 0, r._ishlnsubmul(i, 1, f), r.isZero() || (r.negative ^= 1); | |
| s && (s.words[f] = d) | |
| } | |
| return s && s.strip(), r.strip(), "div" !== t && 0 !== n && r.iushrn(n), { | |
| div: s || null, | |
| mod: r | |
| } | |
| }, a.prototype.divmod = function (e, t, n) { | |
| if (r(!e.isZero()), this.isZero()) return { | |
| div: new a(0), | |
| mod: new a(0) | |
| }; | |
| var i, o, s; | |
| return 0 !== this.negative && 0 === e.negative ? (s = this.neg().divmod(e, t), "mod" !== t && (i = s.div.neg()), "div" !== t && (o = s.mod.neg(), n && 0 !== o.negative && o.iadd(e)), { | |
| div: i, | |
| mod: o | |
| }) : 0 === this.negative && 0 !== e.negative ? (s = this.divmod(e.neg(), t), "mod" !== t && (i = s.div.neg()), { | |
| div: i, | |
| mod: s.mod | |
| }) : 0 != (this.negative & e.negative) ? (s = this.neg().divmod(e.neg(), t), "div" !== t && (o = s.mod.neg(), n && 0 !== o.negative && o.isub(e)), { | |
| div: s.div, | |
| mod: o | |
| }) : e.length > this.length || this.cmp(e) < 0 ? { | |
| div: new a(0), | |
| mod: this | |
| } : 1 === e.length ? "div" === t ? { | |
| div: this.divn(e.words[0]), | |
| mod: null | |
| } : "mod" === t ? { | |
| div: null, | |
| mod: new a(this.modn(e.words[0])) | |
| } : { | |
| div: this.divn(e.words[0]), | |
| mod: new a(this.modn(e.words[0])) | |
| } : this._wordDiv(e, t) | |
| }, a.prototype.div = function (e) { | |
| return this.divmod(e, "div", !1).div | |
| }, a.prototype.mod = function (e) { | |
| return this.divmod(e, "mod", !1).mod | |
| }, a.prototype.umod = function (e) { | |
| return this.divmod(e, "mod", !0).mod | |
| }, a.prototype.divRound = function (e) { | |
| var t = this.divmod(e); | |
| if (t.mod.isZero()) return t.div; | |
| var n = 0 !== t.div.negative ? t.mod.isub(e) : t.mod, | |
| r = e.ushrn(1), | |
| i = e.andln(1), | |
| a = n.cmp(r); | |
| return a < 0 || 1 === i && 0 === a ? t.div : 0 !== t.div.negative ? t.div.isubn(1) : t.div.iaddn(1) | |
| }, a.prototype.modn = function (e) { | |
| r(e <= 67108863); | |
| for (var t = (1 << 26) % e, n = 0, i = this.length - 1; i >= 0; i--) n = (t * n + (0 | this.words[i])) % e; | |
| return n | |
| }, a.prototype.idivn = function (e) { | |
| r(e <= 67108863); | |
| for (var t = 0, n = this.length - 1; n >= 0; n--) { | |
| var i = (0 | this.words[n]) + 67108864 * t; | |
| this.words[n] = i / e | 0, t = i % e | |
| } | |
| return this.strip() | |
| }, a.prototype.divn = function (e) { | |
| return this.clone().idivn(e) | |
| }, a.prototype.egcd = function (e) { | |
| r(0 === e.negative), r(!e.isZero()); | |
| var t = this, | |
| n = e.clone(); | |
| t = 0 !== t.negative ? t.umod(e) : t.clone(); | |
| for (var i = new a(1), o = new a(0), s = new a(0), l = new a(1), u = 0; t.isEven() && n.isEven();) t.iushrn(1), n.iushrn(1), ++u; | |
| for (var c = n.clone(), f = t.clone(); !t.isZero();) { | |
| for (var d = 0, p = 1; 0 == (t.words[0] & p) && d < 26; ++d, p <<= 1); | |
| if (d > 0) | |
| for (t.iushrn(d); d-- > 0;)(i.isOdd() || o.isOdd()) && (i.iadd(c), o.isub(f)), i.iushrn(1), o.iushrn(1); | |
| for (var h = 0, y = 1; 0 == (n.words[0] & y) && h < 26; ++h, y <<= 1); | |
| if (h > 0) | |
| for (n.iushrn(h); h-- > 0;)(s.isOdd() || l.isOdd()) && (s.iadd(c), l.isub(f)), s.iushrn(1), l.iushrn(1); | |
| t.cmp(n) >= 0 ? (t.isub(n), i.isub(s), o.isub(l)) : (n.isub(t), s.isub(i), l.isub(o)) | |
| } | |
| return { | |
| a: s, | |
| b: l, | |
| gcd: n.iushln(u) | |
| } | |
| }, a.prototype._invmp = function (e) { | |
| r(0 === e.negative), r(!e.isZero()); | |
| var t = this, | |
| n = e.clone(); | |
| t = 0 !== t.negative ? t.umod(e) : t.clone(); | |
| for (var i = new a(1), o = new a(0), s = n.clone(); t.cmpn(1) > 0 && n.cmpn(1) > 0;) { | |
| for (var l = 0, u = 1; 0 == (t.words[0] & u) && l < 26; ++l, u <<= 1); | |
| if (l > 0) | |
| for (t.iushrn(l); l-- > 0;) i.isOdd() && i.iadd(s), i.iushrn(1); | |
| for (var c = 0, f = 1; 0 == (n.words[0] & f) && c < 26; ++c, f <<= 1); | |
| if (c > 0) | |
| for (n.iushrn(c); c-- > 0;) o.isOdd() && o.iadd(s), o.iushrn(1); | |
| t.cmp(n) >= 0 ? (t.isub(n), i.isub(o)) : (n.isub(t), o.isub(i)) | |
| } | |
| var d; | |
| return d = 0 === t.cmpn(1) ? i : o, d.cmpn(0) < 0 && d.iadd(e), d | |
| }, a.prototype.gcd = function (e) { | |
| if (this.isZero()) return e.abs(); | |
| if (e.isZero()) return this.abs(); | |
| var t = this.clone(), | |
| n = e.clone(); | |
| t.negative = 0, n.negative = 0; | |
| for (var r = 0; t.isEven() && n.isEven(); r++) t.iushrn(1), n.iushrn(1); | |
| for (;;) { | |
| for (; t.isEven();) t.iushrn(1); | |
| for (; n.isEven();) n.iushrn(1); | |
| var i = t.cmp(n); | |
| if (i < 0) { | |
| var a = t; | |
| t = n, n = a | |
| } else if (0 === i || 0 === n.cmpn(1)) break; | |
| t.isub(n) | |
| } | |
| return n.iushln(r) | |
| }, a.prototype.invm = function (e) { | |
| return this.egcd(e).a.umod(e) | |
| }, a.prototype.isEven = function () { | |
| return 0 == (1 & this.words[0]) | |
| }, a.prototype.isOdd = function () { | |
| return 1 == (1 & this.words[0]) | |
| }, a.prototype.andln = function (e) { | |
| return this.words[0] & e | |
| }, a.prototype.bincn = function (e) { | |
| r("number" == typeof e); | |
| var t = e % 26, | |
| n = (e - t) / 26, | |
| i = 1 << t; | |
| if (this.length <= n) return this._expand(n + 1), this.words[n] |= i, this; | |
| for (var a = i, o = n; 0 !== a && o < this.length; o++) { | |
| var s = 0 | this.words[o]; | |
| s += a, a = s >>> 26, s &= 67108863, this.words[o] = s | |
| } | |
| return 0 !== a && (this.words[o] = a, this.length++), this | |
| }, a.prototype.isZero = function () { | |
| return 1 === this.length && 0 === this.words[0] | |
| }, a.prototype.cmpn = function (e) { | |
| var t = e < 0; | |
| if (0 !== this.negative && !t) return -1; | |
| if (0 === this.negative && t) return 1; | |
| this.strip(); | |
| var n; | |
| if (this.length > 1) n = 1; | |
| else { | |
| t && (e = -e), r(e <= 67108863, "Number is too big"); | |
| var i = 0 | this.words[0]; | |
| n = i === e ? 0 : i < e ? -1 : 1 | |
| } | |
| return 0 !== this.negative ? 0 | -n : n | |
| }, a.prototype.cmp = function (e) { | |
| if (0 !== this.negative && 0 === e.negative) return -1; | |
| if (0 === this.negative && 0 !== e.negative) return 1; | |
| var t = this.ucmp(e); | |
| return 0 !== this.negative ? 0 | -t : t | |
| }, a.prototype.ucmp = function (e) { | |
| if (this.length > e.length) return 1; | |
| if (this.length < e.length) return -1; | |
| for (var t = 0, n = this.length - 1; n >= 0; n--) { | |
| var r = 0 | this.words[n], | |
| i = 0 | e.words[n]; | |
| if (r !== i) { | |
| r < i ? t = -1 : r > i && (t = 1); | |
| break | |
| } | |
| } | |
| return t | |
| }, a.prototype.gtn = function (e) { | |
| return 1 === this.cmpn(e) | |
| }, a.prototype.gt = function (e) { | |
| return 1 === this.cmp(e) | |
| }, a.prototype.gten = function (e) { | |
| return this.cmpn(e) >= 0 | |
| }, a.prototype.gte = function (e) { | |
| return this.cmp(e) >= 0 | |
| }, a.prototype.ltn = function (e) { | |
| return -1 === this.cmpn(e) | |
| }, a.prototype.lt = function (e) { | |
| return -1 === this.cmp(e) | |
| }, a.prototype.lten = function (e) { | |
| return this.cmpn(e) <= 0 | |
| }, a.prototype.lte = function (e) { | |
| return this.cmp(e) <= 0 | |
| }, a.prototype.eqn = function (e) { | |
| return 0 === this.cmpn(e) | |
| }, a.prototype.eq = function (e) { | |
| return 0 === this.cmp(e) | |
| }, a.red = function (e) { | |
| return new g(e) | |
| }, a.prototype.toRed = function (e) { | |
| return r(!this.red, "Already a number in reduction context"), r(0 === this.negative, "red works only with positives"), e.convertTo(this)._forceRed(e) | |
| }, a.prototype.fromRed = function () { | |
| return r(this.red, "fromRed works only with numbers in reduction context"), this.red.convertFrom(this) | |
| }, a.prototype._forceRed = function (e) { | |
| return this.red = e, this | |
| }, a.prototype.forceRed = function (e) { | |
| return r(!this.red, "Already a number in reduction context"), this._forceRed(e) | |
| }, a.prototype.redAdd = function (e) { | |
| return r(this.red, "redAdd works only with red numbers"), this.red.add(this, e) | |
| }, a.prototype.redIAdd = function (e) { | |
| return r(this.red, "redIAdd works only with red numbers"), this.red.iadd(this, e) | |
| }, a.prototype.redSub = function (e) { | |
| return r(this.red, "redSub works only with red numbers"), this.red.sub(this, e) | |
| }, a.prototype.redISub = function (e) { | |
| return r(this.red, "redISub works only with red numbers"), this.red.isub(this, e) | |
| }, a.prototype.redShl = function (e) { | |
| return r(this.red, "redShl works only with red numbers"), this.red.shl(this, e) | |
| }, a.prototype.redMul = function (e) { | |
| return r(this.red, "redMul works only with red numbers"), this.red._verify2(this, e), this.red.mul(this, e) | |
| }, a.prototype.redIMul = function (e) { | |
| return r(this.red, "redMul works only with red numbers"), this.red._verify2(this, e), this.red.imul(this, e) | |
| }, a.prototype.redSqr = function () { | |
| return r(this.red, "redSqr works only with red numbers"), this.red._verify1(this), this.red.sqr(this) | |
| }, a.prototype.redISqr = function () { | |
| return r(this.red, "redISqr works only with red numbers"), this.red._verify1(this), this.red.isqr(this) | |
| }, a.prototype.redSqrt = function () { | |
| return r(this.red, "redSqrt works only with red numbers"), this.red._verify1(this), this.red.sqrt(this) | |
| }, a.prototype.redInvm = function () { | |
| return r(this.red, "redInvm works only with red numbers"), this.red._verify1(this), this.red.invm(this) | |
| }, a.prototype.redNeg = function () { | |
| return r(this.red, "redNeg works only with red numbers"), this.red._verify1(this), this.red.neg(this) | |
| }, a.prototype.redPow = function (e) { | |
| return r(this.red && !e.red, "redPow(normalNum)"), this.red._verify1(this), this.red.pow(this, e) | |
| }; | |
| var E = { | |
| k256: null, | |
| p224: null, | |
| p192: null, | |
| p25519: null | |
| }; | |
| p.prototype._tmp = function () { | |
| var e = new a(null); | |
| return e.words = new Array(Math.ceil(this.n / 13)), e | |
| }, p.prototype.ireduce = function (e) { | |
| var t, n = e; | |
| do { | |
| this.split(n, this.tmp), n = this.imulK(n), n = n.iadd(this.tmp), t = n.bitLength() | |
| } while (t > this.n); | |
| var r = t < this.n ? -1 : n.ucmp(this.p); | |
| return 0 === r ? (n.words[0] = 0, n.length = 1) : r > 0 ? n.isub(this.p) : n.strip(), n | |
| }, p.prototype.split = function (e, t) { | |
| e.iushrn(this.n, 0, t) | |
| }, p.prototype.imulK = function (e) { | |
| return e.imul(this.k) | |
| }, i(h, p), h.prototype.split = function (e, t) { | |
| for (var n = Math.min(e.length, 9), r = 0; r < n; r++) t.words[r] = e.words[r]; | |
| if (t.length = n, e.length <= 9) return e.words[0] = 0, void(e.length = 1); | |
| var i = e.words[9]; | |
| for (t.words[t.length++] = 4194303 & i, r = 10; r < e.length; r++) { | |
| var a = 0 | e.words[r]; | |
| e.words[r - 10] = (4194303 & a) << 4 | i >>> 22, i = a | |
| } | |
| i >>>= 22, e.words[r - 10] = i, 0 === i && e.length > 10 ? e.length -= 10 : e.length -= 9 | |
| }, h.prototype.imulK = function (e) { | |
| e.words[e.length] = 0, e.words[e.length + 1] = 0, e.length += 2; | |
| for (var t = 0, n = 0; n < e.length; n++) { | |
| var r = 0 | e.words[n]; | |
| t += 977 * r, e.words[n] = 67108863 & t, t = 64 * r + (t / 67108864 | 0) | |
| } | |
| return 0 === e.words[e.length - 1] && (e.length--, 0 === e.words[e.length - 1] && e.length--), e | |
| }, i(y, p), i(m, p), i(_, p), _.prototype.imulK = function (e) { | |
| for (var t = 0, n = 0; n < e.length; n++) { | |
| var r = 19 * (0 | e.words[n]) + t, | |
| i = 67108863 & r; | |
| r >>>= 26, e.words[n] = i, t = r | |
| } | |
| return 0 !== t && (e.words[e.length++] = t), e | |
| }, a._prime = function (e) { | |
| if (E[e]) return E[e]; | |
| var t; | |
| if ("k256" === e) t = new h; | |
| else if ("p224" === e) t = new y; | |
| else if ("p192" === e) t = new m; | |
| else { | |
| if ("p25519" !== e) throw new Error("Unknown prime " + e); | |
| t = new _ | |
| } | |
| return E[e] = t, t | |
| }, g.prototype._verify1 = function (e) { | |
| r(0 === e.negative, "red works only with positives"), r(e.red, "red works only with red numbers") | |
| }, g.prototype._verify2 = function (e, t) { | |
| r(0 == (e.negative | t.negative), "red works only with positives"), r(e.red && e.red === t.red, "red works only with red numbers") | |
| }, g.prototype.imod = function (e) { | |
| return this.prime ? this.prime.ireduce(e)._forceRed(this) : e.umod(this.m)._forceRed(this) | |
| }, g.prototype.neg = function (e) { | |
| return e.isZero() ? e.clone() : this.m.sub(e)._forceRed(this) | |
| }, g.prototype.add = function (e, t) { | |
| this._verify2(e, t); | |
| var n = e.add(t); | |
| return n.cmp(this.m) >= 0 && n.isub(this.m), n._forceRed(this) | |
| }, g.prototype.iadd = function (e, t) { | |
| this._verify2(e, t); | |
| var n = e.iadd(t); | |
| return n.cmp(this.m) >= 0 && n.isub(this.m), n | |
| }, g.prototype.sub = function (e, t) { | |
| this._verify2(e, t); | |
| var n = e.sub(t); | |
| return n.cmpn(0) < 0 && n.iadd(this.m), n._forceRed(this) | |
| }, g.prototype.isub = function (e, t) { | |
| this._verify2(e, t); | |
| var n = e.isub(t); | |
| return n.cmpn(0) < 0 && n.iadd(this.m), n | |
| }, g.prototype.shl = function (e, t) { | |
| return this._verify1(e), this.imod(e.ushln(t)) | |
| }, g.prototype.imul = function (e, t) { | |
| return this._verify2(e, t), this.imod(e.imul(t)) | |
| }, g.prototype.mul = function (e, t) { | |
| return this._verify2(e, t), this.imod(e.mul(t)) | |
| }, g.prototype.isqr = function (e) { | |
| return this.imul(e, e.clone()) | |
| }, g.prototype.sqr = function (e) { | |
| return this.mul(e, e) | |
| }, g.prototype.sqrt = function (e) { | |
| if (e.isZero()) return e.clone(); | |
| var t = this.m.andln(3); | |
| if (r(t % 2 == 1), 3 === t) { | |
| var n = this.m.add(new a(1)).iushrn(2); | |
| return this.pow(e, n) | |
| } | |
| for (var i = this.m.subn(1), o = 0; !i.isZero() && 0 === i.andln(1);) o++, i.iushrn(1); | |
| r(!i.isZero()); | |
| var s = new a(1).toRed(this), | |
| l = s.redNeg(), | |
| u = this.m.subn(1).iushrn(1), | |
| c = this.m.bitLength(); | |
| for (c = new a(2 * c * c).toRed(this); 0 !== this.pow(c, u).cmp(l);) c.redIAdd(l); | |
| for (var f = this.pow(c, i), d = this.pow(e, i.addn(1).iushrn(1)), p = this.pow(e, i), h = o; 0 !== p.cmp(s);) { | |
| for (var y = p, m = 0; 0 !== y.cmp(s); m++) y = y.redSqr(); | |
| r(m < h); | |
| var _ = this.pow(f, new a(1).iushln(h - m - 1)); | |
| d = d.redMul(_), f = _.redSqr(), p = p.redMul(f), h = m | |
| } | |
| return d | |
| }, g.prototype.invm = function (e) { | |
| var t = e._invmp(this.m); | |
| return 0 !== t.negative ? (t.negative = 0, this.imod(t).redNeg()) : this.imod(t) | |
| }, g.prototype.pow = function (e, t) { | |
| if (t.isZero()) return new a(1).toRed(this); | |
| if (0 === t.cmpn(1)) return e.clone(); | |
| var n = new Array(16); | |
| n[0] = new a(1).toRed(this), n[1] = e; | |
| for (var r = 2; r < n.length; r++) n[r] = this.mul(n[r - 1], e); | |
| var i = n[0], | |
| o = 0, | |
| s = 0, | |
| l = t.bitLength() % 26; | |
| for (0 === l && (l = 26), r = t.length - 1; r >= 0; r--) { | |
| for (var u = t.words[r], c = l - 1; c >= 0; c--) { | |
| var f = u >> c & 1; | |
| i !== n[0] && (i = this.sqr(i)), 0 !== f || 0 !== o ? (o <<= 1, o |= f, (4 === ++s || 0 === r && 0 === c) && (i = this.mul(i, n[o]), s = 0, o = 0)) : s = 0 | |
| } | |
| l = 26 | |
| } | |
| return i | |
| }, g.prototype.convertTo = function (e) { | |
| var t = e.umod(this.m); | |
| return t === e ? t.clone() : t | |
| }, g.prototype.convertFrom = function (e) { | |
| var t = e.clone(); | |
| return t.red = null, t | |
| }, a.mont = function (e) { | |
| return new b(e) | |
| }, i(b, g), b.prototype.convertTo = function (e) { | |
| return this.imod(e.ushln(this.shift)) | |
| }, b.prototype.convertFrom = function (e) { | |
| var t = this.imod(e.mul(this.rinv)); | |
| return t.red = null, t | |
| }, b.prototype.imul = function (e, t) { | |
| if (e.isZero() || t.isZero()) return e.words[0] = 0, e.length = 1, e; | |
| var n = e.imul(t), | |
| r = n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), | |
| i = n.isub(r).iushrn(this.shift), | |
| a = i; | |
| return i.cmp(this.m) >= 0 ? a = i.isub(this.m) : i.cmpn(0) < 0 && (a = i.iadd(this.m)), a._forceRed(this) | |
| }, b.prototype.mul = function (e, t) { | |
| if (e.isZero() || t.isZero()) return new a(0)._forceRed(this); | |
| var n = e.mul(t), | |
| r = n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), | |
| i = n.isub(r).iushrn(this.shift), | |
| o = i; | |
| return i.cmp(this.m) >= 0 ? o = i.isub(this.m) : i.cmpn(0) < 0 && (o = i.iadd(this.m)), o._forceRed(this) | |
| }, b.prototype.invm = function (e) { | |
| return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this) | |
| } | |
| }(void 0 === e || e, this) | |
| }).call(t, n(746)(e)) | |
| }, function (e, t, n) { | |
| (function (e) { // Copyright Joyent, Inc. and other Node contributors. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a | |
| // copy of this software and associated documentation files (the | |
| // "Software"), to deal in the Software without restriction, including | |
| // without limitation the rights to use, copy, modify, merge, publish, | |
| // distribute, sublicense, and/or sell copies of the Software, and to permit | |
| // persons to whom the Software is furnished to do so, subject to the | |
| // following conditions: | |
| // | |
| // The above copyright notice and this permission notice shall be included | |
| // in all copies or substantial portions of the Software. | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
| // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
| // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN | |
| // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | |
| // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | |
| // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | |
| // USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| function n(e, t) { | |
| for (var n = 0, r = e.length - 1; r >= 0; r--) { | |
| var i = e[r]; | |
| "." === i ? e.splice(r, 1) : ".." === i ? (e.splice(r, 1), n++) : n && (e.splice(r, 1), n--) | |
| } | |
| if (t) | |
| for (; n--; n) e.unshift(".."); | |
| return e | |
| } | |
| function r(e, t) { | |
| if (e.filter) return e.filter(t); | |
| for (var n = [], r = 0; r < e.length; r++) t(e[r], r, e) && n.push(e[r]); | |
| return n | |
| } | |
| var i = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/, | |
| a = function (e) { | |
| return i.exec(e).slice(1) | |
| }; | |
| t.resolve = function () { | |
| for (var t = "", i = !1, a = arguments.length - 1; a >= -1 && !i; a--) { | |
| var o = a >= 0 ? arguments[a] : e.cwd(); | |
| if ("string" != typeof o) throw new TypeError("Arguments to path.resolve must be strings"); | |
| o && (t = o + "/" + t, i = "/" === o.charAt(0)) | |
| } | |
| return t = n(r(t.split("/"), function (e) { | |
| return !!e | |
| }), !i).join("/"), (i ? "/" : "") + t || "." | |
| }, t.normalize = function (e) { | |
| var i = t.isAbsolute(e), | |
| a = "/" === o(e, -1); | |
| return e = n(r(e.split("/"), function (e) { | |
| return !!e | |
| }), !i).join("/"), e || i || (e = "."), e && a && (e += "/"), (i ? "/" : "") + e | |
| }, t.isAbsolute = function (e) { | |
| return "/" === e.charAt(0) | |
| }, t.join = function () { | |
| var e = Array.prototype.slice.call(arguments, 0); | |
| return t.normalize(r(e, function (e, t) { | |
| if ("string" != typeof e) throw new TypeError("Arguments to path.join must be strings"); | |
| return e | |
| }).join("/")) | |
| }, t.relative = function (e, n) { | |
| function r(e) { | |
| for (var t = 0; t < e.length && "" === e[t]; t++); | |
| for (var n = e.length - 1; n >= 0 && "" === e[n]; n--); | |
| return t > n ? [] : e.slice(t, n - t + 1) | |
| } | |
| e = t.resolve(e).substr(1), n = t.resolve(n).substr(1); | |
| for (var i = r(e.split("/")), a = r(n.split("/")), o = Math.min(i.length, a.length), s = o, l = 0; l < o; l++) | |
| if (i[l] !== a[l]) { | |
| s = l; | |
| break | |
| } | |
| for (var u = [], l = s; l < i.length; l++) u.push(".."); | |
| return u = u.concat(a.slice(s)), u.join("/") | |
| }, t.sep = "/", t.delimiter = ":", t.dirname = function (e) { | |
| var t = a(e), | |
| n = t[0], | |
| r = t[1]; | |
| return n || r ? (r && (r = r.substr(0, r.length - 1)), n + r) : "." | |
| }, t.basename = function (e, t) { | |
| var n = a(e)[2]; | |
| return t && n.substr(-1 * t.length) === t && (n = n.substr(0, n.length - t.length)), n | |
| }, t.extname = function (e) { | |
| return a(e)[3] | |
| }; | |
| var o = "b" === "ab".substr(-1) ? function (e, t, n) { | |
| return e.substr(t, n) | |
| } : function (e, t, n) { | |
| return t < 0 && (t = e.length + t), e.substr(t, n) | |
| } | |
| }).call(t, n(43)) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = n(4), | |
| i = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(r), | |
| a = aoba, | |
| o = a.loader, | |
| s = function (e) { | |
| var t = i.default.uniq(e, !1, function (e) { | |
| return e.name || e | |
| }), | |
| n = Object.keys(o.resources), | |
| r = t.filter(function (e) { | |
| return !n.includes(e.name || e) | |
| }); | |
| return i.default.uniq(r) | |
| }, | |
| l = function e(t, n) { | |
| var r = s(t); | |
| return 0 === r.length ? void n() : o.loading ? void o.onComplete.once(function () { | |
| e(r, n) | |
| }) : (o.add(r), void o.onComplete.once(n)) | |
| }, | |
| u = function (e) { | |
| return new Promise(function (t) { | |
| l(e, t) | |
| }) | |
| }; | |
| t.default = u | |
| }, function (e, t, n) { | |
| var r = n(61); | |
| e.exports = function (e) { | |
| return Object(r(e)) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(7), | |
| a = r(i), | |
| o = n(231), | |
| s = r(o), | |
| l = n(26), | |
| u = r(l), | |
| c = n(164), | |
| f = r(c), | |
| d = n(839), | |
| p = r(d), | |
| h = n(376), | |
| y = r(h), | |
| m = n(840), | |
| _ = r(m); | |
| t.default = { | |
| common: a.default, | |
| start: s.default, | |
| produce: u.default, | |
| concertResult: f.default, | |
| skillBoard: p.default, | |
| loginBonus: y.default, | |
| ending: _.default | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = { | |
| prepare: "sounds/se/138.m4a", | |
| start: "sounds/se/139.m4a", | |
| turnStart: "sounds/se/140.m4a", | |
| passiveSkill: "sounds/se/033.m4a", | |
| drawCard: "sounds/se/142.m4a", | |
| increaseMemory: "sounds/se/143.m4a", | |
| maxMemory: "sounds/se/144.m4a", | |
| selectCard: "sounds/se/145.m4a", | |
| showAttackOrder: "sounds/se/146.m4a", | |
| selectJudgeTarget: "sounds/se/147.m4a", | |
| gaugeStart: "sounds/se/148.m4a", | |
| gaugeBad: "sounds/se/149.m4a", | |
| gaugeNormal: "sounds/se/150.m4a", | |
| gaugeGood: "sounds/se/151.m4a", | |
| gaugePerfect: "sounds/se/152.m4a", | |
| appealStart: "sounds/se/153.m4a", | |
| showDamageText: "sounds/se/154.m4a", | |
| hitIdolAppeal: "sounds/se/155.m4a", | |
| audienceVoice: "sounds/se/162.m4a", | |
| idolReceiveDamage: "sounds/se/165.m4a", | |
| idolSpecialAttack: "sounds/se/193.m4a", | |
| idolNormalAttack: "sounds/se/194.m4a", | |
| reachJudgeGauge: "sounds/se/156a.m4a", | |
| giveBonus1: "sounds/se/156b2.m4a", | |
| giveBonus2: "sounds/se/156c2.m4a", | |
| linkSkill: "sounds/se/157.m4a", | |
| startMemoryRoulette: "sounds/se/166.m4a", | |
| memoryRouletteGood: "sounds/se/167.m4a", | |
| memoryRouletteBad: "sounds/se/168.m4a", | |
| memoryRouletteMiss: "sounds/se/169.m4a", | |
| showMemoryCutIn: "sounds/se/170.m4a", | |
| showBuffEffect: "sounds/se/114a.m4a", | |
| showDebuffEffect: "sounds/se/115.m4a", | |
| showRecoverEffect: "sounds/se/116.m4a", | |
| idolRetire: "sounds/se/concert_result/0135.m4a" | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = [{ | |
| type: "by", | |
| props: { | |
| y: 40 | |
| }, | |
| frame: 10, | |
| easing: "easeInOutQuad" | |
| }], | |
| i = [{ | |
| type: "by", | |
| props: { | |
| y: -40 | |
| }, | |
| frame: 10, | |
| easing: "easeInOutQuad" | |
| }]; | |
| t.activeSkillCutIn = { | |
| fadeInSkillInfo: [{ | |
| type: "to", | |
| props: { | |
| alpha: 1 | |
| }, | |
| frame: 10, | |
| easing: "easeInOutQuad" | |
| }], | |
| fadeOut: [{ | |
| type: "by", | |
| props: { | |
| alpha: -1, | |
| x: -4 | |
| }, | |
| frame: 4 | |
| }] | |
| }, t.playerSkillCutIn = { | |
| slideInBase: [{ | |
| type: "by", | |
| props: { | |
| x: -680 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuart" | |
| }, { | |
| type: "by", | |
| props: { | |
| x: -20 | |
| }, | |
| frame: 42 | |
| }, { | |
| event: "fadeOut" | |
| }, { | |
| type: "by", | |
| props: { | |
| x: -1 | |
| }, | |
| frame: 4 | |
| }], | |
| slideInIdol: [{ | |
| type: "by", | |
| props: { | |
| x: -270 | |
| }, | |
| frame: 4, | |
| easing: "easeInQuad" | |
| }, { | |
| type: "by", | |
| props: { | |
| x: -605 | |
| }, | |
| frame: 8, | |
| easing: "easeOutQuad" | |
| }, { | |
| type: "by", | |
| props: { | |
| x: -15 | |
| }, | |
| frame: 42 | |
| }, { | |
| type: "by", | |
| props: { | |
| x: -1 | |
| }, | |
| frame: 4 | |
| }] | |
| }, t.rivalSkillCutIn = { | |
| slideInBase: [{ | |
| type: "by", | |
| props: { | |
| x: -680 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuart" | |
| }, { | |
| type: "by", | |
| props: { | |
| x: -20 | |
| }, | |
| frame: 30 | |
| }, { | |
| event: "fadeOut" | |
| }, { | |
| type: "by", | |
| props: { | |
| x: -1 | |
| }, | |
| frame: 4 | |
| }], | |
| slideInIdol: [{ | |
| type: "by", | |
| props: { | |
| x: -420 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuart" | |
| }, { | |
| type: "by", | |
| props: { | |
| x: -15 | |
| }, | |
| frame: 24 | |
| }, { | |
| type: "by", | |
| props: { | |
| x: -1 | |
| }, | |
| frame: 4 | |
| }] | |
| }, t.idolAttackDamageText = { | |
| appear: [{ | |
| type: "to", | |
| props: { | |
| scaleX: 1.1, | |
| scaleY: 1.1 | |
| }, | |
| frame: 3 | |
| }, { | |
| type: "to", | |
| props: { | |
| scaleX: .96, | |
| scaleY: .96 | |
| }, | |
| frame: 3 | |
| }, { | |
| type: "to", | |
| props: { | |
| scaleX: 1, | |
| scaleY: 1 | |
| }, | |
| frame: 5 | |
| }, { | |
| type: "to", | |
| props: { | |
| scaleX: 1.2, | |
| scaleY: 1.2 | |
| }, | |
| frame: 6 | |
| }], | |
| hit: [{ | |
| type: "set", | |
| props: { | |
| scaleX: .8, | |
| scaleY: .8 | |
| } | |
| }, { | |
| type: "by", | |
| props: { | |
| y: -15 | |
| }, | |
| frame: 3, | |
| easing: "easeInOutQuad" | |
| }, { | |
| type: "by", | |
| props: { | |
| y: 15 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuad" | |
| }, { | |
| wait: 6 | |
| }, { | |
| type: "to", | |
| props: { | |
| alpha: 0 | |
| }, | |
| frame: 10 | |
| }], | |
| appearFromRival: [{ | |
| type: "to", | |
| props: { | |
| scaleX: 1.1, | |
| scaleY: 1.1 | |
| }, | |
| frame: 3 | |
| }, { | |
| type: "to", | |
| props: { | |
| scaleX: .9, | |
| scaleY: .9 | |
| }, | |
| frame: 3 | |
| }, { | |
| wait: 12 | |
| }, { | |
| type: "to", | |
| props: { | |
| alpha: 0 | |
| }, | |
| frame: 4 | |
| }] | |
| }, t.judge = { | |
| moveArrow: [{ | |
| type: "by", | |
| props: { | |
| x: -10 | |
| }, | |
| frame: 15, | |
| easing: "easeInOutQuad" | |
| }, { | |
| type: "by", | |
| props: { | |
| x: 10 | |
| }, | |
| frame: 15, | |
| easing: "easeInOutQuad" | |
| }], | |
| targetFrame: [{ | |
| type: "to", | |
| props: { | |
| scaleX: 1.3, | |
| scaleY: 1.3, | |
| alpha: 0 | |
| }, | |
| frame: 19 | |
| }], | |
| goForward: [{ | |
| type: "by", | |
| props: { | |
| x: 100, | |
| scaleX: .2, | |
| scaleY: .2 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuad" | |
| }], | |
| backFromForward: [{ | |
| type: "by", | |
| props: { | |
| x: -100, | |
| scaleX: -.2, | |
| scaleY: -.2 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuad" | |
| }], | |
| goBackward: [{ | |
| type: "by", | |
| props: { | |
| x: -100 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuad" | |
| }], | |
| backFromBackward: [{ | |
| type: "by", | |
| props: { | |
| x: 100 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuad" | |
| }], | |
| showAttackOrder: [{ | |
| parallel: [{ | |
| series: [{ | |
| type: "by", | |
| props: { | |
| x: 6 | |
| }, | |
| frame: 2, | |
| easing: "easeInQuart" | |
| }, { | |
| type: "by", | |
| props: { | |
| x: 14 | |
| }, | |
| frame: 8, | |
| easing: "easeOutQuart" | |
| }] | |
| }, { | |
| type: "to", | |
| props: { | |
| alpha: 1 | |
| }, | |
| frame: 5 | |
| }] | |
| }], | |
| hideAttackOrder: [{ | |
| type: "to", | |
| props: { | |
| alpha: 0 | |
| }, | |
| frame: 10 | |
| }] | |
| }, t.judgeList = { | |
| slideIn: [{ | |
| type: "from", | |
| props: { | |
| x: -133 | |
| }, | |
| frame: 20, | |
| easing: "easeInOutQuart" | |
| }], | |
| slideDown: r, | |
| slideUp: i | |
| }, t.playerIdol = { | |
| showAttackOrder: [{ | |
| parallel: [{ | |
| series: [{ | |
| type: "by", | |
| props: { | |
| x: -6 | |
| }, | |
| frame: 2, | |
| easing: "easeInQuart" | |
| }, { | |
| type: "by", | |
| props: { | |
| x: -14 | |
| }, | |
| frame: 8, | |
| easing: "easeOutQuart" | |
| }] | |
| }, { | |
| type: "to", | |
| props: { | |
| alpha: 1 | |
| }, | |
| frame: 5 | |
| }] | |
| }], | |
| showAttackResult: [{ | |
| parallel: [{ | |
| type: "by", | |
| props: { | |
| y: -24 | |
| }, | |
| frame: 3 | |
| }, { | |
| type: "to", | |
| props: { | |
| alpha: 1 | |
| }, | |
| frame: 3 | |
| }] | |
| }, { | |
| type: "by", | |
| props: { | |
| y: 4 | |
| }, | |
| frame: 7 | |
| }], | |
| hideAttackOrder: [{ | |
| type: "to", | |
| props: { | |
| alpha: 0 | |
| }, | |
| frame: 10 | |
| }], | |
| goForward: [{ | |
| type: "by", | |
| props: { | |
| x: -200 | |
| }, | |
| frame: 3, | |
| easing: "easeOutQuad" | |
| }], | |
| backFromForward: [{ | |
| type: "by", | |
| props: { | |
| x: 200 | |
| }, | |
| frame: 3, | |
| easing: "easeOutQuad" | |
| }] | |
| }, t.playerIdolList = { | |
| slideIn: [{ | |
| type: "from", | |
| props: { | |
| x: 1068 | |
| }, | |
| frame: 20, | |
| easing: "easeInOutQuart" | |
| }], | |
| slideDown: r, | |
| slideUp: i | |
| }, t.stageLayer = { | |
| showOverlay: [{ | |
| type: "to", | |
| props: { | |
| alpha: .3 | |
| }, | |
| frame: 6 | |
| }], | |
| hideOverlay: [{ | |
| type: "to", | |
| props: { | |
| alpha: 0 | |
| }, | |
| frame: 6 | |
| }] | |
| }, t.skillSelectLayer = { | |
| slideIn: function (e) { | |
| return [{ | |
| type: "to", | |
| props: { | |
| y: e.y | |
| }, | |
| frame: 20, | |
| easing: "easeInOutQuart" | |
| }] | |
| }, | |
| slideDown: [{ | |
| type: "by", | |
| props: { | |
| y: 131 | |
| }, | |
| frame: 10, | |
| easing: "easeInOutQuart" | |
| }], | |
| slideUp: [{ | |
| type: "by", | |
| props: { | |
| y: -131 | |
| }, | |
| frame: 10, | |
| easing: "easeInOutQuart" | |
| }] | |
| }, t.skillCard = { | |
| slideUp: [{ | |
| type: "by", | |
| props: { | |
| y: -32 | |
| }, | |
| frame: 2, | |
| easing: "easeInQuart" | |
| }, { | |
| type: "by", | |
| props: { | |
| y: -68 | |
| }, | |
| frame: 8, | |
| easing: "easeOutQuart" | |
| }], | |
| select: [{ | |
| type: "by", | |
| props: { | |
| y: -40 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuart" | |
| }], | |
| cancel: [{ | |
| type: "by", | |
| props: { | |
| y: 40 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuart" | |
| }], | |
| disappear: [{ | |
| parallel: [{ | |
| series: [{ | |
| type: "by", | |
| props: { | |
| y: -13 | |
| }, | |
| frame: 1, | |
| easing: "easeInQuart" | |
| }, { | |
| type: "by", | |
| props: { | |
| y: -27 | |
| }, | |
| frame: 4, | |
| easing: "easeOutQuart" | |
| }] | |
| }, { | |
| type: "to", | |
| props: { | |
| scaleX: 1.2, | |
| scaleY: 1.2, | |
| alpha: 0 | |
| }, | |
| frame: 5 | |
| }] | |
| }] | |
| }, t.skillDetailList = { | |
| slideIn: [{ | |
| type: "by", | |
| props: { | |
| y: -40 | |
| }, | |
| frame: 1, | |
| easing: "easeInQuart" | |
| }, { | |
| type: "by", | |
| props: { | |
| y: -231 | |
| }, | |
| frame: 8, | |
| easing: "easeOutQuart" | |
| }], | |
| slideOut: [{ | |
| type: "by", | |
| props: { | |
| y: 40 | |
| }, | |
| frame: 1, | |
| easing: "easeInQuart" | |
| }, { | |
| event: "switch" | |
| }, { | |
| type: "by", | |
| props: { | |
| y: 231 | |
| }, | |
| frame: 7, | |
| easing: "easeOutQuart" | |
| }], | |
| disappear: [{ | |
| type: "to", | |
| props: { | |
| scaleX: 1.2, | |
| scaleY: 1.2, | |
| alpha: 0 | |
| }, | |
| frame: 5 | |
| }] | |
| }, t.memorySkillCard = { | |
| slideUp: [{ | |
| type: "by", | |
| props: { | |
| y: -36 | |
| }, | |
| frame: 2, | |
| easing: "easeInQuart" | |
| }, { | |
| type: "by", | |
| props: { | |
| y: -76 | |
| }, | |
| frame: 8, | |
| easing: "easeOutQuart" | |
| }], | |
| select: [{ | |
| type: "by", | |
| props: { | |
| y: -20 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuart" | |
| }], | |
| cancel: [{ | |
| type: "by", | |
| props: { | |
| y: 20 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuart" | |
| }] | |
| }, t.timingGaugeGroup = { | |
| appearGauge: [{ | |
| parallel: [{ | |
| type: "from", | |
| props: { | |
| scaleX: 1.49, | |
| scaleY: 1.49 | |
| }, | |
| frame: 5, | |
| easing: "easeInOutQuart" | |
| }, { | |
| type: "from", | |
| props: { | |
| alpha: 0 | |
| }, | |
| frame: 5 | |
| }] | |
| }], | |
| disappear: [{ | |
| wait: 9 | |
| }, { | |
| type: "to", | |
| props: { | |
| alpha: 0 | |
| }, | |
| frame: 6 | |
| }], | |
| showResult: [{ | |
| type: "set", | |
| props: { | |
| scaleX: .5, | |
| scaleY: .5 | |
| } | |
| }, { | |
| type: "to", | |
| props: { | |
| scaleX: 1, | |
| scaleY: 1 | |
| }, | |
| frame: 2 | |
| }, { | |
| type: "to", | |
| props: { | |
| scaleX: 1.1, | |
| scaleY: 1.1 | |
| }, | |
| frame: 10 | |
| }], | |
| appearReadyIn: [{ | |
| type: "set", | |
| props: { | |
| alpha: 0 | |
| } | |
| }, { | |
| type: "by", | |
| props: { | |
| y: -20, | |
| alpha: 1 | |
| }, | |
| frame: 3 | |
| }], | |
| appealReadyOut: [{ | |
| parallel: [{ | |
| type: "by", | |
| props: { | |
| y: -12 | |
| }, | |
| frame: 21 | |
| }, { | |
| series: [{ | |
| type: "by", | |
| props: {}, | |
| frame: 18 | |
| }, { | |
| type: "by", | |
| props: { | |
| alpha: -1 | |
| }, | |
| frame: 3 | |
| }] | |
| }] | |
| }] | |
| }, t.turn = { | |
| slideIn: [{ | |
| type: "from", | |
| props: { | |
| scaleX: 1, | |
| scaleY: 1 | |
| }, | |
| frame: 1 | |
| }] | |
| } | |
| }, function (e, t) { | |
| e.exports = function (e) { | |
| if ("function" != typeof e) throw TypeError(e + " is not a function!"); | |
| return e | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(9), | |
| a = r(i), | |
| o = n(69), | |
| s = r(o), | |
| l = n(112), | |
| u = r(l), | |
| c = n(360), | |
| f = n(130), | |
| d = n(132), | |
| p = r(d), | |
| h = function () { | |
| return (0, u.default)("/request_mocks/produce/concert/start.json").then(f.processConcertStartResponse) | |
| }, | |
| y = function () { | |
| return (0, u.default)("/request_mocks/produce/audition/start.json").then(f.processConcertStartResponse) | |
| }, | |
| m = function (e, t) { | |
| var n = "/request_mocks/produce/concert/finish_" + ("win" === t ? e + "_win" : "lose") + ".json"; | |
| return (0, u.default)(n).then(f.processAuditionResultResponse) | |
| }, | |
| _ = function (e) { | |
| return (0, u.default)("/request_mocks/produce/audition/finish_" + e + ".json").then(f.processAuditionResultResponse) | |
| }, | |
| g = function () { | |
| return (0, u.default)("/request_mocks/produce/skillPanels.json").then(c.processSkillBoardResponse) | |
| }, | |
| b = function () { | |
| return a.default.post("produces/1/actions/next").then(c.processNextResponse) | |
| }, | |
| v = function (e) { | |
| return a.default.post("produces/1/audition/actions/start", e).then(f.processConcertStartResponse).then(function (e) { | |
| return p.default.get().then(function (t) { | |
| return Object.assign(e, { | |
| nickname: t.nickname | |
| }) | |
| }) | |
| }) | |
| }, | |
| w = function () { | |
| return a.default.post("produces/1/concert/actions/start").then(f.processConcertStartResponse).then(function (e) { | |
| return p.default.get().then(function (t) { | |
| return Object.assign(e, { | |
| nickname: t.nickname | |
| }) | |
| }) | |
| }) | |
| }; | |
| t.default = { | |
| ready: function () { | |
| return a.default.post("produces/1/actions/ready").then(c.processReadyResponse) | |
| }, | |
| start: function (e) { | |
| return a.default.post("produces/1/actions/start", e) | |
| }, | |
| act: function (e) { | |
| return a.default.post("produces/1/actions/act", { | |
| producePlaceCategoryId: e | |
| }).then(c.processActResponse) | |
| }, | |
| endWeek: function () { | |
| return a.default.post("produces/1/actions/endWeek").then(c.processEndWeekResponse) | |
| }, | |
| next: function () { | |
| return b() | |
| }, | |
| get: function () { | |
| return a.default.get("userProduces/1").then(c.processProduceTopResponse) | |
| }, | |
| resume: function () { | |
| return a.default.post("produces/1/actions/resume").then(c.processResumeResponse).then(function (e) { | |
| switch (e.produceState) { | |
| case s.default.PRODUCE_STATES.NOT_STARTED: | |
| return b().then(function (e) { | |
| return e.produceState = s.default.PRODUCE_STATES.MORNING, Promise.resolve(e) | |
| }); | |
| case s.default.PRODUCE_STATES.AFTER_AUDITION_EVENT: | |
| return v({ | |
| auditionId: e.produceAudition.id | |
| }).then(function (e) { | |
| return e.produceState = s.default.PRODUCE_STATES.AUDITION, Promise.resolve(e) | |
| }); | |
| case s.default.PRODUCE_STATES.AFTER_CONCERT_EVENT: | |
| return w().then(function (e) { | |
| return e.produceState = s.default.PRODUCE_STATES.CONCERT, Promise.resolve(e) | |
| }); | |
| default: | |
| return Promise.resolve(e) | |
| } | |
| }) | |
| }, | |
| retire: function () { | |
| return a.default.post("produces/1/actions/retire") | |
| }, | |
| getSkillPanels: function () { | |
| return a.default.get("userProduces/1/skillPanels").then(c.processSkillBoardResponse) | |
| }, | |
| acquireSkillPanel: function (e, t) { | |
| return a.default.post("userProduces/1/skillPanels/" + e, { | |
| deleteSkillId: t | |
| }).then(c.processSkillBoardResponse) | |
| }, | |
| notifyReleasedSkillPanelsConfirmation: function () { | |
| return a.default.patch("userProduces/1/releasedSkills") | |
| }, | |
| getUnit: function () { | |
| return a.default.get("produces/1/decks").then(c.processDecksResponse) | |
| }, | |
| finish: function () { | |
| return a.default.post("produces/1/actions/finish").then(c.processFinishResponse) | |
| }, | |
| result: function () { | |
| return a.default.post("produces/1/actions/result").then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| selectProduceEvent: function (e, t) { | |
| return a.default.post("produceEvents/" + e + "/actions/select", t).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| selectCommunication: function (e, t) { | |
| return a.default.post("produceCommunications/" + e + "/actions/select", t).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| selectCommunicationPromise: function (e, t) { | |
| return a.default.post("produceCommunicationPromises/" + e + "/actions/select", t).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| selectCommunicationCheer: function (e, t) { | |
| return a.default.post("produceCommunicationCheers/" + e + "/actions/select", t).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| selectCommunicationTelevision: function (e, t) { | |
| return a.default.post("produceCommunicationTelevisions/" + e + "/actions/select", t).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| selectCommunicationAudition: function (e, t) { | |
| return a.default.post("produceCommunicationAuditions/" + e + "/actions/select", t).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| auditionPrepare: function (e) { | |
| return a.default.post("produces/1/audition/actions/prepare", e).then(f.processConcertReadyResponse) | |
| }, | |
| auditionStart: function (e) { | |
| return v(e) | |
| }, | |
| auditionFinish: function (e) { | |
| return a.default.post("produces/1/audition/actions/finish", e).then(f.processAuditionResultResponse) | |
| }, | |
| concertReady: function () { | |
| return a.default.post("produces/1/concert/actions/ready").then(f.processConcertReadyResponse) | |
| }, | |
| concertStart: function () { | |
| return w() | |
| }, | |
| concertFinish: function (e) { | |
| return a.default.post("produces/1/concert/actions/finish", e).then(f.processConcertResultResponse) | |
| }, | |
| touchIdol: function (e) { | |
| return a.default.post("produces/1/characterReaction/actions/select", { | |
| selectedReactionId: e | |
| }).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| _concertStart: function () { | |
| return h() | |
| }, | |
| _concertFinish: function (e, t) { | |
| return m(e, t) | |
| }, | |
| _auditionStart: function () { | |
| return y() | |
| }, | |
| _auditionFinish: function (e) { | |
| return _(e) | |
| }, | |
| _finish: function () { | |
| return (0, u.default)("/request_mocks/produce/finish.json").then(c.processFinishResponse) | |
| }, | |
| _result: function () { | |
| return (0, u.default)("/request_mocks/produce/result.json").then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| _getSkillPanels: function () { | |
| return g() | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(408), | |
| a = r(i), | |
| o = n(132), | |
| s = r(o), | |
| l = n(958), | |
| u = r(l), | |
| c = n(960), | |
| f = r(c), | |
| d = n(961), | |
| p = r(d), | |
| h = n(964), | |
| y = r(h), | |
| m = n(965), | |
| _ = r(m), | |
| g = n(967), | |
| b = r(g), | |
| v = n(413), | |
| w = r(v), | |
| k = n(970), | |
| S = r(k), | |
| I = n(416), | |
| E = r(I), | |
| A = n(38), | |
| x = r(A), | |
| C = n(977), | |
| T = r(C), | |
| P = n(978), | |
| O = r(P), | |
| N = n(247), | |
| M = r(N), | |
| R = n(980), | |
| D = r(R), | |
| F = n(248), | |
| B = r(F), | |
| j = n(981), | |
| L = r(j), | |
| U = n(418), | |
| H = r(U), | |
| G = n(249), | |
| z = r(G), | |
| V = n(419), | |
| K = r(V), | |
| W = n(983), | |
| q = r(W), | |
| X = n(174), | |
| Y = r(X), | |
| J = n(420), | |
| Q = r(J), | |
| Z = n(986), | |
| $ = r(Z), | |
| ee = n(987), | |
| te = r(ee); | |
| t.default = { | |
| announce: a.default, | |
| earthUser: s.default, | |
| fes: u.default, | |
| gameEventCommunicationHistory: f.default, | |
| gasha: p.default, | |
| gashaGroup: y.default, | |
| idol: _.default, | |
| invitation: b.default, | |
| item: w.default, | |
| loginBonus: S.default, | |
| myPage: E.default, | |
| produce: x.default, | |
| produceMarathon: T.default, | |
| supportIdol: O.default, | |
| user: M.default, | |
| userEnhancementItem: D.default, | |
| userFesIdol: B.default, | |
| userGashaTicket: L.default, | |
| userIdol: H.default, | |
| userMission: z.default, | |
| userProduceIdol: K.default, | |
| userShop: q.default, | |
| userSupportIdol: Y.default, | |
| userRecoveryItem: Q.default, | |
| userReserveIdol: $.default, | |
| userReserveSupportIdol: te.default | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = ["concert_note_1.png", "concert_note_2.png", "concert_note_3.png", "concert_note_4.png"], | |
| i = t.twinkle = { | |
| data: "particles/concert/common/twinkle.json", | |
| images: ["concert_twinkle.png"] | |
| }, | |
| a = t.flashLine1 = { | |
| data: "particles/concert/common/flash_line_1.json", | |
| images: ["concert_flash_line.png"] | |
| }, | |
| o = t.flashLine2 = { | |
| data: "particles/concert/common/flash_line_2.json", | |
| images: ["concert_flash_line.png"] | |
| }, | |
| s = t.flashLine3 = { | |
| data: "particles/concert/common/flash_line_3.json", | |
| images: ["concert_flash_line.png"] | |
| }, | |
| l = t.flashLine3Down = { | |
| data: "particles/concert/common/flash_line_3_down.json", | |
| images: ["concert_flash_line.png"] | |
| }, | |
| u = t.flashLine3Up = { | |
| data: "particles/concert/common/flash_line_3_up.json", | |
| images: ["concert_flash_line.png"] | |
| }, | |
| c = t.flashLineRing = { | |
| data: "particles/concert/common/flash_line_ring.json", | |
| images: ["concert_flash_line.png"] | |
| }, | |
| f = t.flashSpark3 = { | |
| data: "particles/concert/common/flash_spark_3.json", | |
| images: ["light_cross_flare_purple.png"] | |
| }, | |
| d = t.flashSpark4 = { | |
| data: "particles/concert/common/flash_spark_4.json", | |
| images: ["concert_twinkle.png"] | |
| }, | |
| p = t.retireAura = { | |
| data: "particles/concert/common/retire_aura.json", | |
| images: ["concert_circle_boke.png"] | |
| }, | |
| h = t.retireFlash = { | |
| data: "particles/concert/common/retire_flash.json", | |
| images: ["light_cross_flare_purple.png", "concert_common_particle.png"] | |
| }, | |
| y = t.arrowUp = { | |
| data: "particles/concert/common/arrow_up.json", | |
| images: ["concert_arrow_up.png"] | |
| }, | |
| m = t.arrowDown = { | |
| data: "particles/concert/common/arrow_down.json", | |
| images: ["concert_arrow_down.png"] | |
| }, | |
| _ = t.idolBuff = { | |
| data: "particles/concert/common/idol_buff.json", | |
| images: ["concert_arrow_up.png"] | |
| }, | |
| g = t.idolDebuff = { | |
| data: "particles/concert/common/idol_debuff.json", | |
| images: ["concert_arrow_down.png"] | |
| }, | |
| b = t.idolGainStar = { | |
| data: "particles/concert/common/idol_gain_star.json", | |
| images: ["concert_flash_line.png"] | |
| }, | |
| v = t.stageFlash011 = { | |
| data: "particles/concert/common/stage_flash_011.json", | |
| images: ["concert_flash_line.png"] | |
| }, | |
| w = t.stageFlash012 = { | |
| data: "particles/concert/common/stage_flash_012.json", | |
| images: ["concert_flash_line.png"] | |
| }, | |
| k = t.stageFlash013 = { | |
| data: "particles/concert/common/stage_flash_013.json", | |
| images: ["concert_flash_line.png"] | |
| }, | |
| S = t.timingPerfect = { | |
| top: { | |
| data: "particles/concert/common/timing_perfect_top.json", | |
| images: ["concert_star_b.png", "concert_star_g.png", "concert_star_p.png", "concert_star_w.png", "concert_star_y.png", "concet_sparks.png"] | |
| }, | |
| center: { | |
| data: "particles/concert/common/timing_perfect_center.json", | |
| images: ["concert_star_b.png", "concert_star_g.png", "concert_star_p.png", "concert_star_w.png", "concert_star_y.png"] | |
| } | |
| }, | |
| I = t.timingGood = { | |
| top: { | |
| data: "particles/concert/common/timing_good_top.json", | |
| images: ["concert_star_y.png", "concet_sparks.png"] | |
| }, | |
| center: { | |
| data: "particles/concert/common/timing_good_center.json", | |
| images: ["concert_star_w.png", "concert_star_y.png"] | |
| } | |
| }, | |
| E = t.timingNormal = { | |
| top: { | |
| data: "particles/concert/common/timing_normal_top.json", | |
| images: ["concert_star_y.png", "concet_sparks.png"] | |
| } | |
| }, | |
| A = t.timingBad = { | |
| top: { | |
| data: "particles/concert/common/timing_bad_top.json", | |
| images: ["concert_smoke.png"] | |
| }, | |
| center: { | |
| data: "particles/concert/common/timing_bad_center.json", | |
| images: ["concert_smoke.png"] | |
| } | |
| }, | |
| x = t.memoryAppeal = { | |
| bg: { | |
| data: "particles/concert/memory_appeal/bg.json", | |
| images: ["concert_cross_particle.png", "concert_flash_light.png", "concert_hexagon.png"] | |
| }, | |
| impact: { | |
| data: "particles/concert/memory_appeal/impact.json", | |
| images: ["concert_cross_particle.png", "concert_hexagon.png"] | |
| }, | |
| spark: { | |
| data: "particles/concert/memory_appeal/spark.json", | |
| images: ["concert_cross_particle.png", "concert_hexagon.png"] | |
| } | |
| }, | |
| C = t.memoryAppealGauge = { | |
| heart1: { | |
| data: "particles/concert/memory_appeal_gauge/heart_1.json", | |
| images: ["concert_heart.png", "concert_twinkle2.png"] | |
| }, | |
| heart2: { | |
| data: "particles/concert/memory_appeal_gauge/heart_2.json", | |
| images: ["concert_heart.png", "concert_twinkle2.png"] | |
| } | |
| }, | |
| T = t.recoverSkill = { | |
| note: { | |
| data: "particles/concert/recover_skill/note.json", | |
| images: r | |
| }, | |
| wave: { | |
| data: "particles/concert/recover_skill/wave.json", | |
| images: ["concert_twinkle.png"] | |
| } | |
| }, | |
| P = t.judgeAttack = { | |
| trailBoke: { | |
| data: "particles/concert/judge_attack/trail_boke.json", | |
| images: ["concert_common_particle.png"] | |
| }, | |
| trail: { | |
| data: "particles/concert/judge_attack/trail.json", | |
| images: ["judge_attack_trail_boke.png"] | |
| } | |
| }, | |
| O = t.rivalAttack = { | |
| hit: { | |
| data: "particles/concert/rival_attack/hit.json", | |
| images: r | |
| }, | |
| trail: { | |
| data: "particles/concert/rival_attack/trail.json", | |
| images: r | |
| }, | |
| charge: { | |
| data: "particles/concert/rival_attack/charge.json", | |
| images: ["concert_common_particle.png"] | |
| } | |
| }, | |
| N = t.idolAttack = { | |
| hit: { | |
| data: "particles/concert/idol_attack/hit.json", | |
| images: r | |
| }, | |
| trail: { | |
| data: "particles/concert/idol_attack/trail.json", | |
| images: r | |
| }, | |
| origin: { | |
| data: "particles/concert/idol_attack/origin.json", | |
| images: ["concert_common_particle.png"] | |
| }, | |
| charge: { | |
| data: "particles/concert/idol_attack/charge.json", | |
| images: ["concert_common_particle.png"] | |
| } | |
| }, | |
| M = t.heart = { | |
| hit: { | |
| data: "particles/concert/heart/hit.json", | |
| images: ["concert_heart.png", "concert_twinkle2.png"] | |
| }, | |
| trail: { | |
| data: "particles/concert/heart/trail.json", | |
| images: ["concert_heart.png", "concert_twinkle2.png"] | |
| } | |
| }, | |
| R = t.star = { | |
| trail: { | |
| data: "particles/concert/star/trail.json", | |
| images: ["concert_star_particle.png"] | |
| }, | |
| trailBoke: { | |
| data: "particles/concert/star/trail_boke.json", | |
| images: ["concert_common_particle.png"] | |
| }, | |
| hit: { | |
| data: "particles/concert/star/hit.json", | |
| images: ["concert_star_particle.png"] | |
| } | |
| }; | |
| t.default = { | |
| twinkle: i, | |
| flashLine1: a, | |
| flashLine2: o, | |
| flashLine3: s, | |
| flashLine3Down: l, | |
| flashLine3Up: u, | |
| flashLineRing: c, | |
| arrowUp: y, | |
| arrowDown: m, | |
| idolBuff: _, | |
| idolDebuff: g, | |
| idolGainStar: b, | |
| memoryAppeal: x, | |
| memoryAppealGauge: C, | |
| recoverSkill: T, | |
| idolAttack: N, | |
| judgeAttack: P, | |
| rivalAttack: O, | |
| flashSpark3: f, | |
| flashSpark4: d, | |
| stageFlash011: v, | |
| stageFlash012: w, | |
| stageFlash013: k, | |
| timingPerfect: S, | |
| timingGood: I, | |
| timingNormal: E, | |
| timingBad: A, | |
| retireAura: p, | |
| retireFlash: h, | |
| heart: M, | |
| star: R | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = t; | |
| r.version = n(753).version, r.utils = n(754), r.rand = n(339), r.curve = n(159), r.curves = n(759), r.ec = n(767), r.eddsa = n(771) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = { | |
| API_ROOT: "https://api.shinycolors.enza.fun/", | |
| ASSET_ROOT: "/assets/", | |
| STATS: !1, | |
| SENTRY_DSN: "https://[email protected]/1188061", | |
| GAME_ID: "01", | |
| PF_URI: "https://platform.enza.fun/", | |
| X_VERSION: 102, | |
| SPEED: void 0 | |
| } | |
| }, function (e, t) { | |
| function n() { | |
| throw new Error("setTimeout has not been defined") | |
| } | |
| function r() { | |
| throw new Error("clearTimeout has not been defined") | |
| } | |
| function i(e) { | |
| if (c === setTimeout) return setTimeout(e, 0); | |
| if ((c === n || !c) && setTimeout) return c = setTimeout, setTimeout(e, 0); | |
| try { | |
| return c(e, 0) | |
| } catch (t) { | |
| try { | |
| return c.call(null, e, 0) | |
| } catch (t) { | |
| return c.call(this, e, 0) | |
| } | |
| } | |
| } | |
| function a(e) { | |
| if (f === clearTimeout) return clearTimeout(e); | |
| if ((f === r || !f) && clearTimeout) return f = clearTimeout, clearTimeout(e); | |
| try { | |
| return f(e) | |
| } catch (t) { | |
| try { | |
| return f.call(null, e) | |
| } catch (t) { | |
| return f.call(this, e) | |
| } | |
| } | |
| } | |
| function o() { | |
| y && p && (y = !1, p.length ? h = p.concat(h) : m = -1, h.length && s()) | |
| } | |
| function s() { | |
| if (!y) { | |
| var e = i(o); | |
| y = !0; | |
| for (var t = h.length; t;) { | |
| for (p = h, h = []; ++m < t;) p && p[m].run(); | |
| m = -1, t = h.length | |
| } | |
| p = null, y = !1, a(e) | |
| } | |
| } | |
| function l(e, t) { | |
| this.fun = e, this.array = t | |
| } | |
| function u() {} | |
| var c, f, d = e.exports = {}; | |
| ! function () { | |
| try { | |
| c = "function" == typeof setTimeout ? setTimeout : n | |
| } catch (e) { | |
| c = n | |
| } | |
| try { | |
| f = "function" == typeof clearTimeout ? clearTimeout : r | |
| } catch (e) { | |
| f = r | |
| } | |
| }(); | |
| var p, h = [], | |
| y = !1, | |
| m = -1; | |
| d.nextTick = function (e) { | |
| var t = new Array(arguments.length - 1); | |
| if (arguments.length > 1) | |
| for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; | |
| h.push(new l(e, t)), 1 !== h.length || y || i(s) | |
| }, l.prototype.run = function () { | |
| this.fun.apply(null, this.array) | |
| }, d.title = "browser", d.browser = !0, d.env = {}, d.argv = [], d.version = "", d.versions = {}, d.on = u, d.addListener = u, d.once = u, d.off = u, d.removeListener = u, d.removeAllListeners = u, d.emit = u, d.prependListener = u, d.prependOnceListener = u, d.listeners = function (e) { | |
| return [] | |
| }, d.binding = function (e) { | |
| throw new Error("process.binding is not supported") | |
| }, d.cwd = function () { | |
| return "/" | |
| }, d.chdir = function (e) { | |
| throw new Error("process.chdir is not supported") | |
| }, d.umask = function () { | |
| return 0 | |
| } | |
| }, , function (e, t) { | |
| var n = {}.hasOwnProperty; | |
| e.exports = function (e, t) { | |
| return n.call(e, t) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(28), | |
| i = n(84); | |
| e.exports = n(27) ? function (e, t, n) { | |
| return r.f(e, t, i(1, n)) | |
| } : function (e, t, n) { | |
| return e[t] = n, e | |
| } | |
| }, function (e, t, n) { | |
| var r = n(11), | |
| i = n(46), | |
| a = n(45), | |
| o = n(85)("src"), | |
| s = Function.toString, | |
| l = ("" + s).split("toString"); | |
| n(59).inspectSource = function (e) { | |
| return s.call(e) | |
| }, (e.exports = function (e, t, n, s) { | |
| var u = "function" == typeof n; | |
| u && (a(n, "name") || i(n, "name", t)), e[t] !== n && (u && (a(n, o) || i(n, o, e[t] ? "" + e[t] : l.join(String(t)))), e === r ? e[t] = n : s ? e[t] ? e[t] = n : i(e, t, n) : (delete e[t], i(e, t, n))) | |
| })(Function.prototype, "toString", function () { | |
| return "function" == typeof this && this[o] || s.call(this) | |
| }) | |
| }, function (e, t, n) { | |
| var r = n(2), | |
| i = n(15), | |
| a = n(61), | |
| o = /"/g, | |
| s = function (e, t, n, r) { | |
| var i = String(a(e)), | |
| s = "<" + t; | |
| return "" !== n && (s += " " + n + '="' + String(r).replace(o, """) + '"'), s + ">" + i + "</" + t + ">" | |
| }; | |
| e.exports = function (e, t) { | |
| var n = {}; | |
| n[e] = t(s), r(r.P + r.F * i(function () { | |
| var t = "" [e]('"'); | |
| return t !== t.toLowerCase() || t.split('"').length > 3 | |
| }), "String", n) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(119), | |
| i = n(61); | |
| e.exports = function (e) { | |
| return r(i(e)) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(120), | |
| i = n(84), | |
| a = n(49), | |
| o = n(60), | |
| s = n(45), | |
| l = n(285), | |
| u = Object.getOwnPropertyDescriptor; | |
| t.f = n(27) ? u : function (e, t) { | |
| if (e = a(e), t = o(t, !0), l) try { | |
| return u(e, t) | |
| } catch (e) {} | |
| if (s(e, t)) return i(!r.f.call(e, t), e[t]) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(45), | |
| i = n(33), | |
| a = n(190)("IE_PROTO"), | |
| o = Object.prototype; | |
| e.exports = Object.getPrototypeOf || function (e) { | |
| return e = i(e), r(e, a) ? e[a] : "function" == typeof e.constructor && e instanceof e.constructor ? e.constructor.prototype : e instanceof Object ? o : null | |
| } | |
| }, function (e, t) { | |
| function n(e, t) { | |
| if (!e) throw new Error(t || "Assertion failed") | |
| } | |
| e.exports = n, n.equal = function (e, t, n) { | |
| if (e != t) throw new Error(n || "Assertion failed: " + e + " != " + t) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(37); | |
| e.exports = function (e, t, n) { | |
| if (r(e), void 0 === t) return e; | |
| switch (n) { | |
| case 1: | |
| return function (n) { | |
| return e.call(t, n) | |
| }; | |
| case 2: | |
| return function (n, r) { | |
| return e.call(t, n, r) | |
| }; | |
| case 3: | |
| return function (n, r, i) { | |
| return e.call(t, n, r, i) | |
| } | |
| } | |
| return function () { | |
| return e.apply(t, arguments) | |
| } | |
| } | |
| }, function (e, t) { | |
| var n = {}.toString; | |
| e.exports = function (e) { | |
| return n.call(e).slice(8, -1) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(15); | |
| e.exports = function (e, t) { | |
| return !!e && r(function () { | |
| t ? e.call(null, function () {}, 1) : e.call(null) | |
| }) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = function (e, t, n, r) { | |
| if (!e) throw new Error("ArgumentError. invalid param date"); | |
| return (0, i.default)(e, t, n, r) | |
| }; | |
| var r = n(953), | |
| i = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(r) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = function (e) { | |
| function t(e) { | |
| r(this, t); | |
| var n = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); | |
| return n.autoUpdate = !1, n | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "play", | |
| value: function (e) { | |
| var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; | |
| return this.setAnimation(0, e, t), this.autoUpdate || this.update(0), this | |
| } | |
| }, { | |
| key: "setAnimation", | |
| value: function (e, t) { | |
| var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], | |
| r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, | |
| i = r.mixing, | |
| a = r.startTime, | |
| o = r.onComplete; | |
| i && this.setMix(e, t); | |
| var s = this.state.setAnimation(e, t, n); | |
| return a && (s.trackTime = a), o && (s.listener = { | |
| complete: o | |
| }), this | |
| } | |
| }, { | |
| key: "findAnimationEvent", | |
| value: function (e, t) { | |
| var n = this.spineData.animations.find(function (t) { | |
| return t.name === e | |
| }), | |
| r = n.timelines.find(function (e) { | |
| return e.events | |
| }); | |
| if (r) { | |
| var i = r.events.find(function (e) { | |
| return e.data.name === t | |
| }); | |
| if (i) return i | |
| } | |
| } | |
| }, { | |
| key: "setMix", | |
| value: function (e, t) { | |
| var n = this.state.getCurrent(e); | |
| return n && this.stateData.setMix(n.animation.name, t, .3), this | |
| } | |
| }, { | |
| key: "playLipAnimation", | |
| value: function (e, t, n, r) { | |
| var i = this; | |
| this.setAnimation(e, t, !0, { | |
| mixing: !0 | |
| }), this._lipAnimationTween && this._lipAnimationTween.remove(), this._lipAnimationTween = aoba.FrameTween.new(this).wait(n).call(function () { | |
| i.stopLipAnimation(e), r && r() | |
| }) | |
| } | |
| }, { | |
| key: "stopLipAnimation", | |
| value: function (e) { | |
| var t = this.state.getCurrent(e); | |
| t && (t.trackTime = 0, t.timeScale = 0), this._lipAnimationTween && (this._lipAnimationTween.remove(), this._lipAnimationTween = null) | |
| } | |
| }, { | |
| key: "createSkeletonBounds", | |
| value: function () { | |
| var e = new aoba.spine.core.SkeletonBounds; | |
| return e.update(this.skeleton, !1), e | |
| } | |
| }, { | |
| key: "getBoundingBoxes", | |
| value: function () { | |
| return this.createSkeletonBounds().boundingBoxes | |
| } | |
| }, { | |
| key: "isBoundingBoxContainsPoint", | |
| value: function (e, t) { | |
| var n = this.createSkeletonBounds(), | |
| r = this.toGlobal(aoba.p(0, 0)), | |
| i = aoba.p(t.x - r.x, t.y - r.y), | |
| a = n.containsPoint(i.x, i.y); | |
| return a && a.name === e | |
| } | |
| }, { | |
| key: "findBone", | |
| value: function (e) { | |
| return this.skeleton.findBone(e) | |
| } | |
| }, { | |
| key: "reverse", | |
| value: function () { | |
| return this.scale.x *= -1, this | |
| } | |
| }, { | |
| key: "getChildByNameRecursively", | |
| value: function () { | |
| return null | |
| } | |
| }]), t | |
| }(aoba.spine.Spine); | |
| t.default = s | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = function (e) { | |
| function t(e) { | |
| r(this, t); | |
| var n = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); | |
| return n._particleSystem = e, n.addChild(e.container), n | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "play", | |
| value: function () { | |
| this._particleSystem.play() | |
| } | |
| }, { | |
| key: "particleSystem", | |
| get: function () { | |
| return this._particleSystem | |
| } | |
| }]), t | |
| }(aoba.Container); | |
| t.default = s | |
| }, function (e, t) { | |
| var n = e.exports = { | |
| version: "2.5.1" | |
| }; | |
| "number" == typeof __e && (__e = n) | |
| }, function (e, t, n) { | |
| var r = n(17); | |
| e.exports = function (e, t) { | |
| if (!r(e)) return e; | |
| var n, i; | |
| if (t && "function" == typeof (n = e.toString) && !r(i = n.call(e))) return i; | |
| if ("function" == typeof (n = e.valueOf) && !r(i = n.call(e))) return i; | |
| if (!t && "function" == typeof (n = e.toString) && !r(i = n.call(e))) return i; | |
| throw TypeError("Can't convert object to primitive value") | |
| } | |
| }, function (e, t) { | |
| e.exports = function (e) { | |
| if (void 0 == e) throw TypeError("Can't call method on " + e); | |
| return e | |
| } | |
| }, function (e, t) { | |
| var n = Math.ceil, | |
| r = Math.floor; | |
| e.exports = function (e) { | |
| return isNaN(e = +e) ? 0 : (e > 0 ? r : n)(e) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(2), | |
| i = n(59), | |
| a = n(15); | |
| e.exports = function (e, t) { | |
| var n = (i.Object || {})[e] || Object[e], | |
| o = {}; | |
| o[e] = t(n), r(r.S + r.F * a(function () { | |
| n(1) | |
| }), "Object", o) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(53), | |
| i = n(119), | |
| a = n(33), | |
| o = n(29), | |
| s = n(207); | |
| e.exports = function (e, t) { | |
| var n = 1 == e, | |
| l = 2 == e, | |
| u = 3 == e, | |
| c = 4 == e, | |
| f = 6 == e, | |
| d = 5 == e || f, | |
| p = t || s; | |
| return function (t, s, h) { | |
| for (var y, m, _ = a(t), g = i(_), b = r(s, h, 3), v = o(g.length), w = 0, k = n ? p(t, v) : l ? p(t, 0) : void 0; v > w; w++) | |
| if ((d || w in g) && (y = g[w], m = b(y, w, _), e)) | |
| if (n) k[w] = m; | |
| else if (m) switch (e) { | |
| case 3: | |
| return !0; | |
| case 5: | |
| return y; | |
| case 6: | |
| return w; | |
| case 2: | |
| k.push(y) | |
| } else if (c) return !1; | |
| return f ? -1 : u || c ? c : k | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (Array.isArray(e)) return e.slice(); | |
| if (!e) return []; | |
| var n = []; | |
| if ("string" == typeof e) | |
| if (t) { | |
| if ("hex" === t) | |
| for (e = e.replace(/[^a-z0-9]+/gi, ""), e.length % 2 != 0 && (e = "0" + e), r = 0; r < e.length; r += 2) n.push(parseInt(e[r] + e[r + 1], 16)) | |
| } else | |
| for (var r = 0; r < e.length; r++) { | |
| var i = e.charCodeAt(r), | |
| a = i >> 8, | |
| o = 255 & i; | |
| a ? n.push(a, o) : n.push(o) | |
| } else | |
| for (r = 0; r < e.length; r++) n[r] = 0 | e[r]; | |
| return n | |
| } | |
| function i(e) { | |
| for (var t = "", n = 0; n < e.length; n++) t += s(e[n].toString(16)); | |
| return t | |
| } | |
| function a(e) { | |
| return (e >>> 24 | e >>> 8 & 65280 | e << 8 & 16711680 | (255 & e) << 24) >>> 0 | |
| } | |
| function o(e, t) { | |
| for (var n = "", r = 0; r < e.length; r++) { | |
| var i = e[r]; | |
| "little" === t && (i = a(i)), n += l(i.toString(16)) | |
| } | |
| return n | |
| } | |
| function s(e) { | |
| return 1 === e.length ? "0" + e : e | |
| } | |
| function l(e) { | |
| return 7 === e.length ? "0" + e : 6 === e.length ? "00" + e : 5 === e.length ? "000" + e : 4 === e.length ? "0000" + e : 3 === e.length ? "00000" + e : 2 === e.length ? "000000" + e : 1 === e.length ? "0000000" + e : e | |
| } | |
| function u(e, t, n, r) { | |
| var i = n - t; | |
| C(i % 4 == 0); | |
| for (var a = new Array(i / 4), o = 0, s = t; o < a.length; o++, s += 4) { | |
| var l; | |
| l = "big" === r ? e[s] << 24 | e[s + 1] << 16 | e[s + 2] << 8 | e[s + 3] : e[s + 3] << 24 | e[s + 2] << 16 | e[s + 1] << 8 | e[s], a[o] = l >>> 0 | |
| } | |
| return a | |
| } | |
| function c(e, t) { | |
| for (var n = new Array(4 * e.length), r = 0, i = 0; r < e.length; r++, i += 4) { | |
| var a = e[r]; | |
| "big" === t ? (n[i] = a >>> 24, n[i + 1] = a >>> 16 & 255, n[i + 2] = a >>> 8 & 255, n[i + 3] = 255 & a) : (n[i + 3] = a >>> 24, n[i + 2] = a >>> 16 & 255, n[i + 1] = a >>> 8 & 255, n[i] = 255 & a) | |
| } | |
| return n | |
| } | |
| function f(e, t) { | |
| return e >>> t | e << 32 - t | |
| } | |
| function d(e, t) { | |
| return e << t | e >>> 32 - t | |
| } | |
| function p(e, t) { | |
| return e + t >>> 0 | |
| } | |
| function h(e, t, n) { | |
| return e + t + n >>> 0 | |
| } | |
| function y(e, t, n, r) { | |
| return e + t + n + r >>> 0 | |
| } | |
| function m(e, t, n, r, i) { | |
| return e + t + n + r + i >>> 0 | |
| } | |
| function _(e, t, n, r) { | |
| var i = e[t], | |
| a = e[t + 1], | |
| o = r + a >>> 0, | |
| s = (o < r ? 1 : 0) + n + i; | |
| e[t] = s >>> 0, e[t + 1] = o | |
| } | |
| function g(e, t, n, r) { | |
| return (t + r >>> 0 < t ? 1 : 0) + e + n >>> 0 | |
| } | |
| function b(e, t, n, r) { | |
| return t + r >>> 0 | |
| } | |
| function v(e, t, n, r, i, a, o, s) { | |
| var l = 0, | |
| u = t; | |
| return u = u + r >>> 0, l += u < t ? 1 : 0, u = u + a >>> 0, l += u < a ? 1 : 0, u = u + s >>> 0, l += u < s ? 1 : 0, e + n + i + o + l >>> 0 | |
| } | |
| function w(e, t, n, r, i, a, o, s) { | |
| return t + r + a + s >>> 0 | |
| } | |
| function k(e, t, n, r, i, a, o, s, l, u) { | |
| var c = 0, | |
| f = t; | |
| return f = f + r >>> 0, c += f < t ? 1 : 0, f = f + a >>> 0, c += f < a ? 1 : 0, f = f + s >>> 0, c += f < s ? 1 : 0, f = f + u >>> 0, c += f < u ? 1 : 0, e + n + i + o + l + c >>> 0 | |
| } | |
| function S(e, t, n, r, i, a, o, s, l, u) { | |
| return t + r + a + s + u >>> 0 | |
| } | |
| function I(e, t, n) { | |
| return (t << 32 - n | e >>> n) >>> 0 | |
| } | |
| function E(e, t, n) { | |
| return (e << 32 - n | t >>> n) >>> 0 | |
| } | |
| function A(e, t, n) { | |
| return e >>> n | |
| } | |
| function x(e, t, n) { | |
| return (e << 32 - n | t >>> n) >>> 0 | |
| } | |
| var C = n(52), | |
| T = n(6); | |
| t.inherits = T, t.toArray = r, t.toHex = i, t.htonl = a, t.toHex32 = o, t.zero2 = s, t.zero8 = l, t.join32 = u, t.split32 = c, t.rotr32 = f, t.rotl32 = d, t.sum32 = p, t.sum32_3 = h, t.sum32_4 = y, t.sum32_5 = m, t.sum64 = _, t.sum64_hi = g, t.sum64_lo = b, t.sum64_4_hi = v, t.sum64_4_lo = w, t.sum64_5_hi = k, t.sum64_5_lo = S, t.rotr64_hi = I, t.rotr64_lo = E, t.shr64_hi = A, t.shr64_lo = x | |
| }, , , function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = n(4), | |
| i = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(r), | |
| a = function e(t) { | |
| var n = []; | |
| return i.default.each(t, function (t) { | |
| "string" == typeof t ? n.push(t) : n = n.concat(e(t)) | |
| }), n | |
| }; | |
| t.default = function (e) { | |
| return i.default.uniq(a(e)) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| t.default = { | |
| placeCategories: { | |
| 1: { | |
| idolSpine: { | |
| animation: "vocal", | |
| skin: "reverse", | |
| cutInIdolSkin: "reverse", | |
| cutInSupportIdolSkin: "normal" | |
| }, | |
| idolPosition: { | |
| x: 240, | |
| y: 420, | |
| scaleX: -1 | |
| }, | |
| supportIdolPositions: [{ | |
| x: 360, | |
| y: 400, | |
| scaleX: 1 | |
| }, { | |
| x: 480, | |
| y: 380, | |
| scaleX: 1 | |
| }, { | |
| x: 660, | |
| y: 410, | |
| scaleX: 1 | |
| }, { | |
| x: 780, | |
| y: 370, | |
| scaleX: 1 | |
| }, { | |
| x: 900, | |
| y: 420, | |
| scaleX: 1 | |
| }] | |
| }, | |
| 2: { | |
| idolSpine: { | |
| animation: "dance", | |
| skin: "reverse_j", | |
| cutInIdolSkin: "reverse_j", | |
| cutInSupportIdolSkin: "normal_j" | |
| }, | |
| idolPosition: { | |
| x: 350, | |
| y: 410, | |
| scaleX: -1 | |
| }, | |
| supportIdolPositions: [{ | |
| x: 230, | |
| y: 380, | |
| scaleX: 1 | |
| }, { | |
| x: 480, | |
| y: 380, | |
| scaleX: 1 | |
| }, { | |
| x: 660, | |
| y: 410, | |
| scaleX: 1 | |
| }, { | |
| x: 780, | |
| y: 380, | |
| scaleX: 1 | |
| }, { | |
| x: 900, | |
| y: 410, | |
| scaleX: 1 | |
| }] | |
| }, | |
| 3: { | |
| idolSpine: { | |
| animation: "visual", | |
| skin: "normal", | |
| cutInIdolSkin: "reverse", | |
| cutInSupportIdolSkin: "normal" | |
| }, | |
| idolPosition: { | |
| x: 235, | |
| y: 410, | |
| scaleX: 1 | |
| }, | |
| supportIdolPositions: [{ | |
| x: 350, | |
| y: 320, | |
| scaleX: 1 | |
| }, { | |
| x: 480, | |
| y: 320, | |
| scaleX: 1 | |
| }, { | |
| x: 610, | |
| y: 320, | |
| scaleX: 1 | |
| }, { | |
| x: 430, | |
| y: 420, | |
| scaleX: -1 | |
| }, { | |
| x: 700, | |
| y: 420, | |
| scaleX: 1 | |
| }] | |
| }, | |
| 4: { | |
| idolSpine: { | |
| animation: "radio", | |
| skin: "reverse", | |
| cutInIdolSkin: "reverse", | |
| cutInSupportIdolSkin: "normal" | |
| }, | |
| idolPosition: { | |
| x: 260, | |
| y: 415, | |
| scaleX: -1 | |
| }, | |
| supportIdolPositions: [{ | |
| x: 400, | |
| y: 330, | |
| scaleX: 1 | |
| }, { | |
| x: 785, | |
| y: 435, | |
| scaleX: 1 | |
| }, { | |
| x: 810, | |
| y: 300, | |
| scaleX: 1 | |
| }, { | |
| x: 910, | |
| y: 350, | |
| scaleX: 1 | |
| }, { | |
| x: 970, | |
| y: 420, | |
| scaleX: 1 | |
| }] | |
| }, | |
| 5: { | |
| idolSpine: { | |
| animation: "talk", | |
| skin: "reverse", | |
| cutInIdolSkin: "reverse", | |
| cutInSupportIdolSkin: "normal" | |
| }, | |
| idolPosition: { | |
| x: 440, | |
| y: 300, | |
| scaleX: -1 | |
| }, | |
| supportIdolPositions: [{ | |
| x: 300, | |
| y: 310, | |
| scaleX: -1 | |
| }, { | |
| x: 565, | |
| y: 300, | |
| scaleX: 1 | |
| }, { | |
| x: 860, | |
| y: 300, | |
| scaleX: 1 | |
| }, { | |
| x: 950, | |
| y: 360, | |
| scaleX: 1 | |
| }, { | |
| x: 1010, | |
| y: 410, | |
| scaleX: 1 | |
| }] | |
| }, | |
| 6: { | |
| idolSpine: { | |
| animation: "photo", | |
| skin: "reverse", | |
| cutInIdolSkin: "reverse", | |
| cutInSupportIdolSkin: "normal" | |
| }, | |
| idolPosition: { | |
| x: 340, | |
| y: 390, | |
| scaleX: -1 | |
| }, | |
| supportIdolPositions: [{ | |
| x: 230, | |
| y: 390, | |
| scaleX: 1 | |
| }, { | |
| x: 440, | |
| y: 340, | |
| scaleX: -1 | |
| }, { | |
| x: 660, | |
| y: 380, | |
| scaleX: 1 | |
| }, { | |
| x: 780, | |
| y: 340, | |
| scaleX: 1 | |
| }, { | |
| x: 910, | |
| y: 390, | |
| scaleX: 1 | |
| }] | |
| } | |
| }, | |
| tutorialImages: { | |
| top1: ["images/ui/produce_tutorial/top_01.jpg", "images/ui/produce_tutorial/top_02.jpg"], | |
| top2: ["images/ui/produce_tutorial/top_03.jpg", "images/ui/produce_tutorial/top_04.jpg"], | |
| activity: ["images/ui/produce_tutorial/activity_01.jpg", "images/ui/produce_tutorial/activity_02.jpg", "images/ui/produce_tutorial/activity_03.jpg"], | |
| skillBoard: ["images/ui/produce_tutorial/skill_board_01.jpg", "images/ui/produce_tutorial/skill_board_02.jpg"], | |
| finish: ["images/ui/produce_tutorial/finish_01.jpg", "images/ui/produce_tutorial/finish_02.jpg"], | |
| concert: ["images/ui/produce_tutorial/concert_01.jpg", "images/ui/produce_tutorial/concert_02.jpg", "images/ui/produce_tutorial/concert_03.jpg", "images/ui/produce_tutorial/concert_04.jpg", "images/ui/produce_tutorial/concert_05.jpg"] | |
| }, | |
| SEASON_WEEK_NUM: 8, | |
| CONCERT_SEASON: 5, | |
| CONCERT_WEEK_NUM: 2, | |
| TOTAL_WEEK_NUM: 34, | |
| EVENT_CATEGORIES: { | |
| COMMUNICATION: "communication", | |
| COMMUNICATION_CHEER: "communicationCheer" | |
| }, | |
| PRODUCE_STATES: { | |
| NOT_STARTED: 100, | |
| MORNING: 200, | |
| AFTER_ACTION: 300, | |
| END_OF_WEEK: 400, | |
| AUDITION_EVENT: 500, | |
| AFTER_AUDITION_EVENT: 550, | |
| AUDITION: 600, | |
| AUDITION_RESULT: 700, | |
| AFTER_CONCERT_EVENT: 800, | |
| CONCERT: 900, | |
| CONCERT_RESULT: 1e3, | |
| END_OF_PRODUCE: 1100, | |
| ENDING: 1200, | |
| FES_IDOL_BIRTH: 1300, | |
| FINISHED: 1400 | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(939), | |
| a = r(i), | |
| o = n(940), | |
| s = r(o), | |
| l = n(941), | |
| u = r(l), | |
| c = n(942), | |
| f = r(c), | |
| d = { | |
| setActiveSkillMixin: function (e) { | |
| aoba.utils.setPrototypeOf(e, s.default), e.linkSkill && aoba.utils.setPrototypeOf(e.linkSkill, a.default) | |
| }, | |
| setPassiveSkillMixin: function (e) { | |
| aoba.utils.setPrototypeOf(e, u.default) | |
| }, | |
| setLimitBreakSkillMixin: function (e) { | |
| aoba.utils.setPrototypeOf(e, f.default) | |
| } | |
| }; | |
| t.default = d | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(1), | |
| a = r(i), | |
| o = n(413), | |
| s = r(o), | |
| l = { | |
| recoveryItem: { | |
| key: "recoveryItem", | |
| requestItems: function () { | |
| return s.default.getRecoveryItems() | |
| }, | |
| requestUseItem: function (e) { | |
| var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1; | |
| return s.default.useRecoveryItem(e.id, t) | |
| }, | |
| iconPath: "recovery_items/icon", | |
| useButtonKey: "item_use_button.png", | |
| getItemMast: function (e) { | |
| return e.recoveryItem | |
| }, | |
| calcRecoveryValue: function (e, t) { | |
| return e.recoveryItem.isFixed ? e.recoveryItem.value : Math.floor(e.recoveryItem.value * t / 100) | |
| }, | |
| types: { | |
| produce: { | |
| id: "produce", | |
| maxValue: a.default.app.MAX_STAMINA, | |
| valueNameTextId: "item.recoveryItem.type.produce.valueName", | |
| maxValueNoticeTextId: "item.maxStamina" | |
| }, | |
| fes: { | |
| id: "fes", | |
| maxValue: a.default.app.MAX_FES_TICKET, | |
| valueNameTextId: "item.recoveryItem.type.fes.valueName", | |
| maxValueNoticeTextId: "item.maxFesTicket" | |
| } | |
| } | |
| }, | |
| enhancementItem: { | |
| key: "enhancementItem", | |
| requestItems: function () { | |
| return s.default.getEnhancementItems() | |
| }, | |
| iconPath: "enhancement_items/icon", | |
| useButtonKey: "item_training_button.png", | |
| getItemMast: function (e) { | |
| return e.enhancementItem | |
| } | |
| }, | |
| gashaTicket: { | |
| key: "gashaTicket", | |
| requestItems: function () { | |
| return s.default.getGashaTickets() | |
| }, | |
| iconPath: "gasha_tickets/icon", | |
| useButtonKey: "item_gasha_button.png", | |
| getItemMast: function (e) { | |
| return e.gashaTicket | |
| }, | |
| getGashaId: function (e) { | |
| return e.gashaTicket.gashaId | |
| } | |
| } | |
| }; | |
| t.default = l | |
| }, function (e, t, n) { | |
| "use strict"; | |
| if (n(27)) { | |
| var r = n(86), | |
| i = n(11), | |
| a = n(15), | |
| o = n(2), | |
| s = n(151), | |
| l = n(213), | |
| u = n(53), | |
| c = n(92), | |
| f = n(84), | |
| d = n(46), | |
| p = n(94), | |
| h = n(62), | |
| y = n(29), | |
| m = n(311), | |
| _ = n(88), | |
| g = n(60), | |
| b = n(45), | |
| v = n(121), | |
| w = n(17), | |
| k = n(33), | |
| S = n(204), | |
| I = n(89), | |
| E = n(51), | |
| A = n(90).f, | |
| x = n(206), | |
| C = n(85), | |
| T = n(25), | |
| P = n(64), | |
| O = n(142), | |
| N = n(149), | |
| M = n(209), | |
| R = n(102), | |
| D = n(146), | |
| F = n(91), | |
| B = n(208), | |
| j = n(301), | |
| L = n(28), | |
| U = n(50), | |
| H = L.f, | |
| G = U.f, | |
| z = i.RangeError, | |
| V = i.TypeError, | |
| K = i.Uint8Array, | |
| W = Array.prototype, | |
| q = l.ArrayBuffer, | |
| X = l.DataView, | |
| Y = P(0), | |
| J = P(2), | |
| Q = P(3), | |
| Z = P(4), | |
| $ = P(5), | |
| ee = P(6), | |
| te = O(!0), | |
| ne = O(!1), | |
| re = M.values, | |
| ie = M.keys, | |
| ae = M.entries, | |
| oe = W.lastIndexOf, | |
| se = W.reduce, | |
| le = W.reduceRight, | |
| ue = W.join, | |
| ce = W.sort, | |
| fe = W.slice, | |
| de = W.toString, | |
| pe = W.toLocaleString, | |
| he = T("iterator"), | |
| ye = T("toStringTag"), | |
| me = C("typed_constructor"), | |
| _e = C("def_constructor"), | |
| ge = s.CONSTR, | |
| be = s.TYPED, | |
| ve = s.VIEW, | |
| we = P(1, function (e, t) { | |
| return Ae(N(e, e[_e]), t) | |
| }), | |
| ke = a(function () { | |
| return 1 === new K(new Uint16Array([1]).buffer)[0] | |
| }), | |
| Se = !!K && !!K.prototype.set && a(function () { | |
| new K(1).set({}) | |
| }), | |
| Ie = function (e, t) { | |
| var n = h(e); | |
| if (n < 0 || n % t) throw z("Wrong offset!"); | |
| return n | |
| }, | |
| Ee = function (e) { | |
| if (w(e) && be in e) return e; | |
| throw V(e + " is not a typed array!") | |
| }, | |
| Ae = function (e, t) { | |
| if (!(w(e) && me in e)) throw V("It is not a typed array constructor!"); | |
| return new e(t) | |
| }, | |
| xe = function (e, t) { | |
| return Ce(N(e, e[_e]), t) | |
| }, | |
| Ce = function (e, t) { | |
| for (var n = 0, r = t.length, i = Ae(e, r); r > n;) i[n] = t[n++]; | |
| return i | |
| }, | |
| Te = function (e, t, n) { | |
| H(e, t, { | |
| get: function () { | |
| return this._d[n] | |
| } | |
| }) | |
| }, | |
| Pe = function (e) { | |
| var t, n, r, i, a, o, s = k(e), | |
| l = arguments.length, | |
| c = l > 1 ? arguments[1] : void 0, | |
| f = void 0 !== c, | |
| d = x(s); | |
| if (void 0 != d && !S(d)) { | |
| for (o = d.call(s), r = [], t = 0; !(a = o.next()).done; t++) r.push(a.value); | |
| s = r | |
| } | |
| for (f && l > 2 && (c = u(c, arguments[2], 2)), t = 0, n = y(s.length), i = Ae(this, n); n > t; t++) i[t] = f ? c(s[t], t) : s[t]; | |
| return i | |
| }, | |
| Oe = function () { | |
| for (var e = 0, t = arguments.length, n = Ae(this, t); t > e;) n[e] = arguments[e++]; | |
| return n | |
| }, | |
| Ne = !!K && a(function () { | |
| pe.call(new K(1)) | |
| }), | |
| Me = function () { | |
| return pe.apply(Ne ? fe.call(Ee(this)) : Ee(this), arguments) | |
| }, | |
| Re = { | |
| copyWithin: function (e, t) { | |
| return j.call(Ee(this), e, t, arguments.length > 2 ? arguments[2] : void 0) | |
| }, | |
| every: function (e) { | |
| return Z(Ee(this), e, arguments.length > 1 ? arguments[1] : void 0) | |
| }, | |
| fill: function (e) { | |
| return B.apply(Ee(this), arguments) | |
| }, | |
| filter: function (e) { | |
| return xe(this, J(Ee(this), e, arguments.length > 1 ? arguments[1] : void 0)) | |
| }, | |
| find: function (e) { | |
| return $(Ee(this), e, arguments.length > 1 ? arguments[1] : void 0) | |
| }, | |
| findIndex: function (e) { | |
| return ee(Ee(this), e, arguments.length > 1 ? arguments[1] : void 0) | |
| }, | |
| forEach: function (e) { | |
| Y(Ee(this), e, arguments.length > 1 ? arguments[1] : void 0) | |
| }, | |
| indexOf: function (e) { | |
| return ne(Ee(this), e, arguments.length > 1 ? arguments[1] : void 0) | |
| }, | |
| includes: function (e) { | |
| return te(Ee(this), e, arguments.length > 1 ? arguments[1] : void 0) | |
| }, | |
| join: function (e) { | |
| return ue.apply(Ee(this), arguments) | |
| }, | |
| lastIndexOf: function (e) { | |
| return oe.apply(Ee(this), arguments) | |
| }, | |
| map: function (e) { | |
| return we(Ee(this), e, arguments.length > 1 ? arguments[1] : void 0) | |
| }, | |
| reduce: function (e) { | |
| return se.apply(Ee(this), arguments) | |
| }, | |
| reduceRight: function (e) { | |
| return le.apply(Ee(this), arguments) | |
| }, | |
| reverse: function () { | |
| for (var e, t = this, n = Ee(t).length, r = Math.floor(n / 2), i = 0; i < r;) e = t[i], t[i++] = t[--n], t[n] = e; | |
| return t | |
| }, | |
| some: function (e) { | |
| return Q(Ee(this), e, arguments.length > 1 ? arguments[1] : void 0) | |
| }, | |
| sort: function (e) { | |
| return ce.call(Ee(this), e) | |
| }, | |
| subarray: function (e, t) { | |
| var n = Ee(this), | |
| r = n.length, | |
| i = _(e, r); | |
| return new(N(n, n[_e]))(n.buffer, n.byteOffset + i * n.BYTES_PER_ELEMENT, y((void 0 === t ? r : _(t, r)) - i)) | |
| } | |
| }, | |
| De = function (e, t) { | |
| return xe(this, fe.call(Ee(this), e, t)) | |
| }, | |
| Fe = function (e) { | |
| Ee(this); | |
| var t = Ie(arguments[1], 1), | |
| n = this.length, | |
| r = k(e), | |
| i = y(r.length), | |
| a = 0; | |
| if (i + t > n) throw z("Wrong length!"); | |
| for (; a < i;) this[t + a] = r[a++] | |
| }, | |
| Be = { | |
| entries: function () { | |
| return ae.call(Ee(this)) | |
| }, | |
| keys: function () { | |
| return ie.call(Ee(this)) | |
| }, | |
| values: function () { | |
| return re.call(Ee(this)) | |
| } | |
| }, | |
| je = function (e, t) { | |
| return w(e) && e[be] && "symbol" != typeof t && t in e && String(+t) == String(t) | |
| }, | |
| Le = function (e, t) { | |
| return je(e, t = g(t, !0)) ? f(2, e[t]) : G(e, t) | |
| }, | |
| Ue = function (e, t, n) { | |
| return !(je(e, t = g(t, !0)) && w(n) && b(n, "value")) || b(n, "get") || b(n, "set") || n.configurable || b(n, "writable") && !n.writable || b(n, "enumerable") && !n.enumerable ? H(e, t, n) : (e[t] = n.value, e) | |
| }; | |
| ge || (U.f = Le, L.f = Ue), o(o.S + o.F * !ge, "Object", { | |
| getOwnPropertyDescriptor: Le, | |
| defineProperty: Ue | |
| }), a(function () { | |
| de.call({}) | |
| }) && (de = pe = function () { | |
| return ue.call(this) | |
| }); | |
| var He = p({}, Re); | |
| p(He, Be), d(He, he, Be.values), p(He, { | |
| slice: De, | |
| set: Fe, | |
| constructor: function () {}, | |
| toString: de, | |
| toLocaleString: Me | |
| }), Te(He, "buffer", "b"), Te(He, "byteOffset", "o"), Te(He, "byteLength", "l"), Te(He, "length", "e"), H(He, ye, { | |
| get: function () { | |
| return this[be] | |
| } | |
| }), e.exports = function (e, t, n, l) { | |
| l = !!l; | |
| var u = e + (l ? "Clamped" : "") + "Array", | |
| f = "get" + e, | |
| p = "set" + e, | |
| h = i[u], | |
| _ = h || {}, | |
| g = h && E(h), | |
| b = !h || !s.ABV, | |
| k = {}, | |
| S = h && h.prototype, | |
| x = function (e, n) { | |
| var r = e._d; | |
| return r.v[f](n * t + r.o, ke) | |
| }, | |
| C = function (e, n, r) { | |
| var i = e._d; | |
| l && (r = (r = Math.round(r)) < 0 ? 0 : r > 255 ? 255 : 255 & r), i.v[p](n * t + i.o, r, ke) | |
| }, | |
| T = function (e, t) { | |
| H(e, t, { | |
| get: function () { | |
| return x(this, t) | |
| }, | |
| set: function (e) { | |
| return C(this, t, e) | |
| }, | |
| enumerable: !0 | |
| }) | |
| }; | |
| b ? (h = n(function (e, n, r, i) { | |
| c(e, h, u, "_d"); | |
| var a, o, s, l, f = 0, | |
| p = 0; | |
| if (w(n)) { | |
| if (!(n instanceof q || "ArrayBuffer" == (l = v(n)) || "SharedArrayBuffer" == l)) return be in n ? Ce(h, n) : Pe.call(h, n); | |
| a = n, p = Ie(r, t); | |
| var _ = n.byteLength; | |
| if (void 0 === i) { | |
| if (_ % t) throw z("Wrong length!"); | |
| if ((o = _ - p) < 0) throw z("Wrong length!") | |
| } else if ((o = y(i) * t) + p > _) throw z("Wrong length!"); | |
| s = o / t | |
| } else s = m(n), o = s * t, a = new q(o); | |
| for (d(e, "_d", { | |
| b: a, | |
| o: p, | |
| l: o, | |
| e: s, | |
| v: new X(a) | |
| }); f < s;) T(e, f++) | |
| }), S = h.prototype = I(He), d(S, "constructor", h)) : a(function () { | |
| h(1) | |
| }) && a(function () { | |
| new h(-1) | |
| }) && D(function (e) { | |
| new h, new h(null), new h(1.5), new h(e) | |
| }, !0) || (h = n(function (e, n, r, i) { | |
| c(e, h, u); | |
| var a; | |
| return w(n) ? n instanceof q || "ArrayBuffer" == (a = v(n)) || "SharedArrayBuffer" == a ? void 0 !== i ? new _(n, Ie(r, t), i) : void 0 !== r ? new _(n, Ie(r, t)) : new _(n) : be in n ? Ce(h, n) : Pe.call(h, n) : new _(m(n)) | |
| }), Y(g !== Function.prototype ? A(_).concat(A(g)) : A(_), function (e) { | |
| e in h || d(h, e, _[e]) | |
| }), h.prototype = S, r || (S.constructor = h)); | |
| var P = S[he], | |
| O = !!P && ("values" == P.name || void 0 == P.name), | |
| N = Be.values; | |
| d(h, me, !0), d(S, be, u), d(S, ve, !0), d(S, _e, h), (l ? new h(1)[ye] == u : ye in S) || H(S, ye, { | |
| get: function () { | |
| return u | |
| } | |
| }), k[u] = h, o(o.G + o.W + o.F * (h != _), k), o(o.S, u, { | |
| BYTES_PER_ELEMENT: t | |
| }), o(o.S + o.F * a(function () { | |
| _.of.call(h, 1) | |
| }), u, { | |
| from: Pe, | |
| of: Oe | |
| }), "BYTES_PER_ELEMENT" in S || d(S, "BYTES_PER_ELEMENT", t), o(o.P, u, Re), F(u), o(o.P + o.F * Se, u, { | |
| set: Fe | |
| }), o(o.P + o.F * !O, u, Be), r || S.toString == de || (S.toString = de), o(o.P + o.F * a(function () { | |
| new h(1).slice() | |
| }), u, { | |
| slice: De | |
| }), o(o.P + o.F * (a(function () { | |
| return [1, 2].toLocaleString() != new h([1, 2]).toLocaleString() | |
| }) || !a(function () { | |
| S.toLocaleString.call([1, 2]) | |
| })), u, { | |
| toLocaleString: Me | |
| }), R[u] = O ? P : N, r || O || d(S, he, N) | |
| } | |
| } else e.exports = function () {} | |
| }, function (e, t, n) { | |
| var r = n(306), | |
| i = n(2), | |
| a = n(141)("metadata"), | |
| o = a.store || (a.store = new(n(309))), | |
| s = function (e, t, n) { | |
| var i = o.get(e); | |
| if (!i) { | |
| if (!n) return; | |
| o.set(e, i = new r) | |
| } | |
| var a = i.get(t); | |
| if (!a) { | |
| if (!n) return; | |
| i.set(t, a = new r) | |
| } | |
| return a | |
| }, | |
| l = function (e, t, n) { | |
| var r = s(t, n, !1); | |
| return void 0 !== r && r.has(e) | |
| }, | |
| u = function (e, t, n) { | |
| var r = s(t, n, !1); | |
| return void 0 === r ? void 0 : r.get(e) | |
| }, | |
| c = function (e, t, n, r) { | |
| s(n, r, !0).set(e, t) | |
| }, | |
| f = function (e, t) { | |
| var n = s(e, t, !1), | |
| r = []; | |
| return n && n.forEach(function (e, t) { | |
| r.push(t) | |
| }), r | |
| }, | |
| d = function (e) { | |
| return void 0 === e || "symbol" == typeof e ? e : String(e) | |
| }, | |
| p = function (e) { | |
| i(i.S, "Reflect", e) | |
| }; | |
| e.exports = { | |
| store: o, | |
| map: s, | |
| has: l, | |
| get: u, | |
| set: c, | |
| keys: f, | |
| key: d, | |
| exp: p | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(833), | |
| a = r(i), | |
| o = n(834), | |
| s = r(o), | |
| l = n(362), | |
| u = r(l), | |
| c = n(364), | |
| f = r(c), | |
| d = n(363), | |
| p = r(d), | |
| h = n(367), | |
| y = r(h), | |
| m = n(365), | |
| _ = r(m), | |
| g = n(368), | |
| b = r(g), | |
| v = n(369), | |
| w = r(v), | |
| k = n(370), | |
| S = r(k), | |
| I = n(373), | |
| E = r(I), | |
| A = n(372), | |
| x = r(A), | |
| C = n(374), | |
| T = r(C), | |
| P = n(371), | |
| O = r(P), | |
| N = n(375), | |
| M = r(N); | |
| t.default = { | |
| AdvPlayer: a.default, | |
| AdvResourceConverter: s.default, | |
| BgLayer: u.default, | |
| Character: f.default, | |
| CharacterStage: p.default, | |
| EffectLayer: y.default, | |
| LipAnimationPlayer: _.default, | |
| MainController: b.default, | |
| MovieLayer: w.default, | |
| ScenarioPlayer: S.default, | |
| SelectItem: E.default, | |
| SelectList: x.default, | |
| SoundController: T.default, | |
| TextPlayer: O.default, | |
| TrackManager: M.default | |
| } | |
| }, function (e, t, n) { | |
| var r = n(10), | |
| i = n(234), | |
| a = String.prototype.trim; | |
| e.exports = function (e, t) { | |
| return e = r(e), !t && a ? a.call(e) : (t = i(t), e.replace(new RegExp("^" + t + "+|" + t + "+$", "g"), "")) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = n(240), | |
| i = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(r); | |
| t.default = { | |
| getImagePath: function (e) { | |
| return this._extendedIdol.getImagePath(e) | |
| }, | |
| getMoviePath: function (e) { | |
| return this._extendedIdol.getMoviePath(e) | |
| }, | |
| getVoicePath: function (e) { | |
| return this._extendedIdol.getVoicePath(e) | |
| }, | |
| getSpinePath: function (e) { | |
| return this._extendedIdol.getSpinePath(e) | |
| }, | |
| getRarityImagePath: function (e) { | |
| return this._extendedIdol.getRarityImagePath(e) | |
| }, | |
| getUnitImagePath: function (e) { | |
| return this._extendedIdol.getUnitImagePath(e) | |
| }, | |
| getIconImagePath: function () { | |
| return this._extendedIdol.getIconImagePath() | |
| }, | |
| get name() { | |
| return this.idol.name | |
| }, | |
| get firstName() { | |
| return this._extendedIdol.firstName | |
| }, | |
| get idolId() { | |
| return this._extendedIdol.id | |
| }, | |
| get characterId() { | |
| return this._extendedIdol.characterId | |
| }, | |
| get unitId() { | |
| return this._extendedIdol.unitId | |
| }, | |
| get skillPanels() { | |
| return this.idol.skillPanels | |
| }, | |
| get rarity() { | |
| return this.idol.rarity | |
| }, | |
| get produceIdolEvents() { | |
| return this.idol.produceIdolEvents | |
| }, | |
| get produceAfterEvents() { | |
| return this.idol.produceAfterEvents | |
| }, | |
| get idolParameterRanks() { | |
| return this.idol.idolParameterRanks | |
| }, | |
| get memoryAppeals() { | |
| return this.idol.memoryAppeals | |
| }, | |
| get character() { | |
| return this.idol.character | |
| }, | |
| get parameter() { | |
| return { | |
| vocal: this.idol.vocal, | |
| dance: this.idol.dance, | |
| visual: this.idol.visual, | |
| mental: this.idol.mental | |
| } | |
| }, | |
| get _extendedIdol() { | |
| return aoba.utils.getPrototypeOf(this.idol) !== i.default && (aoba.utils.setPrototypeOf(this.idol, i.default), this.idol.id || (this.idol.id = this.idolId)), this.idol | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = n(259), | |
| l = r(s), | |
| u = n(1), | |
| c = r(u), | |
| f = n(20), | |
| d = r(f), | |
| p = function (e) { | |
| return "" + c.default.env.ASSET_ROOT + d.default.createImagePath("characters", "link_skill_icon", e) | |
| }, | |
| h = function (e) { | |
| function t(e) { | |
| i(this, t); | |
| var n = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)), | |
| r = e.name, | |
| o = e.comment, | |
| s = e.linkSkillCharacters, | |
| u = e.linkSkillType, | |
| c = n.fromData(l.default, { | |
| skillDetailBase: { | |
| key: "skill_detail_base_link.png" | |
| }, | |
| idolIcon: null, | |
| name: { | |
| text: r | |
| }, | |
| description: { | |
| text: o | |
| } | |
| }), | |
| f = aoba.Container.new(); | |
| if (s.forEach(function (e, t) { | |
| aoba.Sprite.from(p(e.characterId)).addTo(f, 52 * t, 0) | |
| }), "linear" === u) | |
| for (var d = f.children.length - 1, h = 0; h < d; h++) { | |
| var y = aoba.Sprite.new("link_skill_arrow.png"), | |
| m = f.children[h]; | |
| y.addTo(f, m.x + m.width, m.height / 2, { | |
| anchor: .5 | |
| }) | |
| } | |
| return f.addTo(n, 19, 11), c.description.style.wordWrap = !0, c.description.style.wordWrapWidth = 260, c.description.style.breakWords = !0, n | |
| } | |
| return o(t, e), t | |
| }(aoba.Container); | |
| t.default = h | |
| }, function (e, t, n) { | |
| var r = n(85)("meta"), | |
| i = n(17), | |
| a = n(45), | |
| o = n(28).f, | |
| s = 0, | |
| l = Object.isExtensible || function () { | |
| return !0 | |
| }, | |
| u = !n(15)(function () { | |
| return l(Object.preventExtensions({})) | |
| }), | |
| c = function (e) { | |
| o(e, r, { | |
| value: { | |
| i: "O" + ++s, | |
| w: {} | |
| } | |
| }) | |
| }, | |
| f = function (e, t) { | |
| if (!i(e)) return "symbol" == typeof e ? e : ("string" == typeof e ? "S" : "P") + e; | |
| if (!a(e, r)) { | |
| if (!l(e)) return "F"; | |
| if (!t) return "E"; | |
| c(e) | |
| } | |
| return e[r].i | |
| }, | |
| d = function (e, t) { | |
| if (!a(e, r)) { | |
| if (!l(e)) return !0; | |
| if (!t) return !1; | |
| c(e) | |
| } | |
| return e[r].w | |
| }, | |
| p = function (e) { | |
| return u && h.NEED && l(e) && !a(e, r) && c(e), e | |
| }, | |
| h = e.exports = { | |
| KEY: r, | |
| NEED: !1, | |
| fastKey: f, | |
| getWeak: d, | |
| onFreeze: p | |
| } | |
| }, function (e, t, n) { | |
| var r = n(25)("unscopables"), | |
| i = Array.prototype; | |
| void 0 == i[r] && n(46)(i, r, {}), e.exports = function (e) { | |
| i[r][e] = !0 | |
| } | |
| }, function (e, t, n) { | |
| function r(e) { | |
| a.call(this), this.hashMode = "string" == typeof e, this.hashMode ? this[e] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null | |
| } | |
| var i = n(18).Buffer, | |
| a = n(155).Transform, | |
| o = n(221).StringDecoder; | |
| n(6)(r, a), r.prototype.update = function (e, t, n) { | |
| "string" == typeof e && (e = i.from(e, t)); | |
| var r = this._update(e); | |
| return this.hashMode ? this : (n && (r = this._toString(r, n)), r) | |
| }, r.prototype.setAutoPadding = function () {}, r.prototype.getAuthTag = function () { | |
| throw new Error("trying to get auth tag in unsupported state") | |
| }, r.prototype.setAuthTag = function () { | |
| throw new Error("trying to set auth tag in unsupported state") | |
| }, r.prototype.setAAD = function () { | |
| throw new Error("trying to set aad in unsupported state") | |
| }, r.prototype._transform = function (e, t, n) { | |
| var r; | |
| try { | |
| this.hashMode ? this._update(e) : this.push(this._update(e)) | |
| } catch (e) { | |
| r = e | |
| } finally { | |
| n(r) | |
| } | |
| }, r.prototype._flush = function (e) { | |
| var t; | |
| try { | |
| this.push(this.__final()) | |
| } catch (e) { | |
| t = e | |
| } | |
| e(t) | |
| }, r.prototype._finalOrDigest = function (e) { | |
| var t = this.__final() || i.alloc(0); | |
| return e && (t = this._toString(t, e, !0)), t | |
| }, r.prototype._toString = function (e, t, n) { | |
| if (this._decoder || (this._decoder = new o(t), this._encoding = t), this._encoding !== t) throw new Error("can't switch encodings"); | |
| var r = this._decoder.write(e); | |
| return n && (r += this._decoder.end()), r | |
| }, e.exports = r | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = { | |
| MANO: 1, | |
| HIORI: 2, | |
| MEGURU: 3, | |
| KOGANE: 4, | |
| MAMIMI: 5, | |
| SAKUYA: 6, | |
| YUIKA: 7, | |
| KIRIKO: 8, | |
| KAHO: 9, | |
| CHIYOKO: 10, | |
| JYURI: 11, | |
| RINZE: 12, | |
| NATSUHA: 13, | |
| AMANE: 14, | |
| TENKA: 15, | |
| CHIYUKI: 16 | |
| }, | |
| i = Object.keys(r).length; | |
| t.default = { | |
| SERVICE_POLICY_URI: "https://legal.bandainamcoent.co.jp/terms/html5-jp", | |
| PRIVACY_POLICY_URI: "https://legal.bandainamcoent.co.jp/privacy/jp", | |
| FAQ_URI: "https://bnfaq.channel.or.jp/contact/faq_list/1921", | |
| MAX_EVOLUTION_STAGE: 4, | |
| EVOLUTION_ENABLED_RARITY: 2, | |
| SUPPORT_IDOL_NUM: 5, | |
| STAMINA_RECOVER_INTERVAL: 300, | |
| MIN_STAMINA: 0, | |
| MAX_STAMINA: 100, | |
| FES_TICKET_RECOVER_INTERVAL: 1800, | |
| MAX_FES_TICKET: 5, | |
| MIN_TENSION: 1, | |
| MAX_TENSION: 5, | |
| MAX_MEMORY_APPEAL_LEVEL: 5, | |
| MISSION_TYPES: { | |
| DAILY: "daily", | |
| WEEKLY: "weekly", | |
| NORMAL: "normal", | |
| SPECIAL: "special", | |
| EVENT: "event", | |
| PREVIOUS_EVENT: "previousEvent" | |
| }, | |
| MISSION_STATUS: { | |
| PROGRESS: "progress", | |
| CLEARED: "cleared", | |
| RECEIVED: "received" | |
| }, | |
| RARITIES: { | |
| N: 1, | |
| R: 2, | |
| SR: 3, | |
| SSR: 4 | |
| }, | |
| SKILL_CATEGORIES: { | |
| ACTIVE: "active", | |
| PASSIVE: "passive", | |
| LIMIT_BREAK: "limit_break" | |
| }, | |
| SKILL_TYPES: { | |
| ACTIVE: "live_skill", | |
| PASSIVE: "passive", | |
| SUPPORT: "support_skill", | |
| OTHER: "other" | |
| }, | |
| CHARACTERS: r, | |
| CHARACTER_NUM: i, | |
| textStyle: { | |
| fontFamily: "HummingStd-E" | |
| }, | |
| SERVER_ERROR_TYPES: { | |
| TIMEOUT: "timeout", | |
| FORBIDDEN: "forbidden", | |
| BAD_REQUEST: "badRequest", | |
| OTHER: "other" | |
| }, | |
| BAD_REQUEST_STATUSES: [{ | |
| code: 1010, | |
| dialogTitleKey: "errorDialog.errorTitle", | |
| dialogContentKey: "errorDialog.invalidSession" | |
| }, { | |
| code: 1020, | |
| dialogTitleKey: "errorDialog.errorTitle", | |
| dialogContentKey: "errorDialog.produceDuplicate" | |
| }, { | |
| code: 1030, | |
| dialogTitleKey: "errorDialog.confirmTitle", | |
| dialogContentKey: "errorDialog.fesSeason" | |
| }, { | |
| code: 1040, | |
| dialogTitleKey: "errorDialog.confirmTitle", | |
| dialogContentKey: "errorDialog.updateVersion" | |
| }, { | |
| code: 1050, | |
| dialogTitleKey: "errorDialog.confirmTitle", | |
| dialogContentKey: "errorDialog.unavailableGasha" | |
| }, { | |
| code: 1070, | |
| dialogTitleKey: "errorDialog.errorTitle", | |
| dialogContentKey: "errorDialog.earthPaymentFailure" | |
| }, { | |
| code: 9e3, | |
| dialogTitleKey: "errorDialog.errorTitle", | |
| dialogContentKey: "errorDialog.other" | |
| }], | |
| FORBIDDEN_ERRROR_STATUS: { | |
| dialogTitleKey: "errorDialog.errorTitle", | |
| dialogContentKey: "errorDialog.forbidden" | |
| }, | |
| TIMEOUT_ERRROR_STATUS: { | |
| dialogTitleKey: "errorDialog.errorTitle", | |
| dialogContentKey: "errorDialog.timeout" | |
| }, | |
| DEFAULT_ERROR_STATUS: { | |
| dialogTitleKey: "errorDialog.errorTitle", | |
| dialogContentKey: "errorDialog.simpleOther" | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e) { | |
| if (Array.isArray(e)) { | |
| for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t]; | |
| return n | |
| } | |
| return Array.from(e) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var a = n(9), | |
| o = r(a), | |
| s = n(128), | |
| l = r(s), | |
| u = n(360), | |
| c = n(130), | |
| f = n(417), | |
| d = n(411), | |
| p = r(d), | |
| h = n(412), | |
| y = r(h), | |
| m = n(132), | |
| _ = r(m), | |
| g = { | |
| getMoney: function () { | |
| return 0 | |
| }, | |
| getJewel: function () { | |
| return 0 | |
| } | |
| }, | |
| b = { | |
| nickname: "", | |
| isGuest: function () { | |
| return !1 | |
| } | |
| }, | |
| v = function () { | |
| return o.default.post("tutorialProduces/actions/next").then(u.processNextResponse) | |
| }, | |
| w = function (e, t) { | |
| switch (t) { | |
| case l.default.PROGRESS.NOT_STARTED: | |
| case l.default.PROGRESS.STARTED: | |
| return v(); | |
| case l.default.PROGRESS.OPENING_EVENT_FIRST_HALF: | |
| return (0, u.processNextResponse)(e); | |
| case l.default.PROGRESS.READY: | |
| return (0, u.processReadyResponse)(e); | |
| case l.default.PROGRESS.OPENING_EVENT_LAST_HALF: | |
| case l.default.PROGRESS.TOP: | |
| case l.default.PROGRESS.AFTER_ACTION: | |
| case l.default.PROGRESS.BEFORE_COMMU: | |
| case l.default.PROGRESS.AFTER_COMMU: | |
| case l.default.PROGRESS.SKILL_BOARD: | |
| case l.default.PROGRESS.AFTER_SKILL_BOARD: | |
| case l.default.PROGRESS.BEFORE_AUDITION_CHEER: | |
| case l.default.PROGRESS.AFTER_AUDITION_CHEER: | |
| return (0, u.processNextResponse)(e); | |
| case l.default.PROGRESS.AUDITION: | |
| return (0, c.processConcertStartResponse)(e).then(function (e) { | |
| return _.default.get().then(function (t) { | |
| return Object.assign(e, { | |
| nickname: t.nickname | |
| }) | |
| }) | |
| }); | |
| case l.default.PROGRESS.AUDITION_RESULT: | |
| return (0, c.processAuditionResultResponse)(e); | |
| case l.default.PROGRESS.IDOL_RANK: | |
| return (0, u.processEndWeekResponse)(e); | |
| case l.default.PROGRESS.MY_PAGE: | |
| return (0, f.processGetResponse)(e).then(function (e) { | |
| var t = !0, | |
| n = !1, | |
| r = void 0; | |
| try { | |
| for (var i, a = e.idols[Symbol.iterator](); !(t = (i = a.next()).done); t = !0) { | |
| i.value.comments = [] | |
| } | |
| } catch (e) { | |
| n = !0, r = e | |
| } finally { | |
| try { | |
| !t && a.return && a.return() | |
| } finally { | |
| if (n) throw r | |
| } | |
| } | |
| return { | |
| user: g, | |
| myPage: e, | |
| earthUser: b | |
| } | |
| }); | |
| case l.default.PROGRESS.FINISHED: | |
| return Promise.resolve(e.body); | |
| default: | |
| throw new Error("tutorial progress " + t + " is invalid") | |
| } | |
| }; | |
| t.default = { | |
| updateProgress: function () { | |
| return o.default.post("tutorial/progressUpdate").then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| ready: function () { | |
| return o.default.post("tutorialProduces/actions/ready").then(u.processReadyResponse) | |
| }, | |
| start: function () { | |
| return o.default.post("tutorialProduces/actions/start") | |
| }, | |
| startAndNext: function () { | |
| var e = this; | |
| return this.start().then(function () { | |
| return e.next() | |
| }) | |
| }, | |
| resume: function () { | |
| return o.default.get("tutorialProduces/actions/resume").then(function (e) { | |
| var t = e.header["x-tutorial-progress-status"]; | |
| if (void 0 === t) return window.location.href = "/", Promise.reject(); | |
| var n = parseInt(t, 10); | |
| return w(e, n).then(function (e) { | |
| return Object.assign({}, e, { | |
| tutorialProgress: n | |
| }) | |
| }) | |
| }) | |
| }, | |
| act: function (e) { | |
| return o.default.post("tutorialProduces/actions/act", { | |
| producePlaceCategoryId: e | |
| }).then(u.processActResponse) | |
| }, | |
| endWeek: function () { | |
| return o.default.post("tutorialProduces/actions/endWeek").then(u.processEndWeekResponse) | |
| }, | |
| next: function () { | |
| return v() | |
| }, | |
| get: function () { | |
| return o.default.get("tutorialProduces/top").then(u.processProduceTopResponse).then(function (e) { | |
| for (var t = e.topCharacterReaction.moveReactions, n = e.topCharacterReaction.waitReactions, r = [].concat(i(t), i(n)), a = 0; a < r.length; a++) { | |
| r[a].voice = "" | |
| } | |
| return e | |
| }) | |
| }, | |
| getSkillPanels: function () { | |
| return o.default.get("tutorialProduces/skillPanels").then(u.processSkillBoardResponse) | |
| }, | |
| notifyReleasedSkillPanelsConfirmation: function () { | |
| return Promise.resolve() | |
| }, | |
| selectProduceEvent: function (e, t) { | |
| return o.default.post("tutorialProduceEvents/actions/select", t).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| selectCommunication: function (e, t) { | |
| return o.default.post("tutorialProduceCommunications/actions/select", t).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| selectCommunicationCheer: function (e, t) { | |
| return o.default.post("tutorialProduceCommunicationCheers/actions/select", t).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| selectCommunicationTelevision: function (e, t) { | |
| return o.default.post("tutorialProduceCommunicationTelevisions/actions/select", t).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| selectCommunicationAudition: function (e, t) { | |
| return o.default.post("tutorialProduceCommunicationAuditions/actions/select", t).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| auditionPrepare: function (e) { | |
| return o.default.post("tutorialProduces/audition/actions/prepare", e).then(c.processConcertReadyResponse).then(function (e) { | |
| return e.produceAudition = {}, Promise.resolve(e) | |
| }) | |
| }, | |
| auditionStart: function () { | |
| return o.default.post("tutorialProduces/audition/actions/start").then(c.processConcertStartResponse).then(function (e) { | |
| return _.default.get().then(function (t) { | |
| return Object.assign(e, { | |
| nickname: t.nickname | |
| }) | |
| }) | |
| }) | |
| }, | |
| auditionFinish: function (e) { | |
| return o.default.post("tutorialProduces/audition/actions/finish", e).then(c.processAuditionResultResponse) | |
| }, | |
| myPage: function () { | |
| return o.default.post("tutorial/myPage").then(function (e) { | |
| return (0, f.processGetResponse)(e).then(function (e) { | |
| var t = !0, | |
| n = !1, | |
| r = void 0; | |
| try { | |
| for (var i, a = e.idols[Symbol.iterator](); !(t = (i = a.next()).done); t = !0) { | |
| i.value.comments = [] | |
| } | |
| } catch (e) { | |
| n = !0, r = e | |
| } finally { | |
| try { | |
| !t && a.return && a.return() | |
| } finally { | |
| if (n) throw r | |
| } | |
| } | |
| return { | |
| user: g, | |
| myPage: e, | |
| earthUser: b | |
| } | |
| }) | |
| }) | |
| }, | |
| gashaGroups: function () { | |
| return o.default.get("tutorial/gashaGroups").then(function (e) { | |
| var t = e.body; | |
| return t.forEach(function (e, t) { | |
| aoba.utils.setPrototypeOf(e, y.default), e.gashas.forEach(function (e) { | |
| aoba.utils.setPrototypeOf(e, p.default) | |
| }), e.bannerType = "carousel", e.initialCurrencyType = "none" | |
| }), { | |
| user: g, | |
| userGashaTickets: [], | |
| gashaGroups: t, | |
| moneyPower: { | |
| coin: "-", | |
| point: "-" | |
| } | |
| } | |
| }) | |
| }, | |
| finish: function () { | |
| return o.default.post("tutorial/finish").then(function (e) { | |
| return e.body | |
| }) | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(1), | |
| a = r(i), | |
| o = n(1110), | |
| s = r(o), | |
| l = { | |
| AUDITION: function (e) { | |
| return e > 15 ? { | |
| bg: "images/bg/concert/audition_4.jpg", | |
| effect: "effect_audition_4.png" | |
| } : e > 10 ? { | |
| bg: "images/bg/concert/audition_3.jpg", | |
| effect: "effect_audition_3.png" | |
| } : e > 5 ? { | |
| bg: "images/bg/concert/audition_2.jpg", | |
| effect: "effect_audition_2.png" | |
| } : { | |
| bg: "images/bg/concert/audition_1.jpg", | |
| effect: "effect_audition_1.png" | |
| } | |
| }, | |
| CONCERT: { | |
| bg: "images/bg/concert/last_live.jpg", | |
| effect: "effect_last_live.png" | |
| }, | |
| FES: { | |
| bg: "images/bg/concert/fes.jpg", | |
| effect: "effect_fes.png" | |
| }, | |
| AUDITION_SELECT: { | |
| bg: "images/bg/concert/audition_4.jpg", | |
| effect: "effect_audition_4.png" | |
| } | |
| }, | |
| u = { | |
| NORMAL: { | |
| left: "speaker_left.png", | |
| right: "speaker_right.png", | |
| dy: 0 | |
| }, | |
| LARGE: { | |
| left: "speaker_l_left.png", | |
| right: "speaker_l_right.png", | |
| dy: -36 | |
| } | |
| }, | |
| c = { | |
| CONCERT: { | |
| image1: "audience_last_live_1.png", | |
| image2: "audience_last_live_2.png" | |
| }, | |
| FES: { | |
| image1: "audience_fes_1.png", | |
| image2: "audience_fes_2.png" | |
| } | |
| }, | |
| f = function (e, t, n, r) { | |
| var i = function (e) { | |
| aoba.Tween.new(e).to({ | |
| alpha: 1 | |
| }, 800, "easeOutQuad").wait(200).to({ | |
| alpha: 0 | |
| }, 800, "easeInQuad").loop() | |
| }; | |
| [e, t, n, r].forEach(function (e, t) { | |
| t >= 2 ? aoba.Tween.createBlank().wait(900).call(function () { | |
| return i(e) | |
| }) : i(e) | |
| }) | |
| }, | |
| d = function (e, t) { | |
| var n = function (e) { | |
| aoba.Tween.new(e).to({ | |
| alpha: 1 | |
| }, 640).to({ | |
| alpha: 0 | |
| }, 640).loop() | |
| }; | |
| [e, t].forEach(function (e, t) { | |
| t >= 1 ? aoba.Tween.createBlank().wait(640).call(function () { | |
| return n(e) | |
| }) : n(e) | |
| }) | |
| }, | |
| p = function (e, t) { | |
| [e, t].forEach(function (e) { | |
| aoba.Tween.new(e).by({ | |
| scaleX: .1, | |
| scaleY: .1 | |
| }, 480).by({ | |
| scaleX: -.1, | |
| scaleY: -.1 | |
| }, 480).loop() | |
| }) | |
| }, | |
| h = function (e, t) { | |
| [e, t].forEach(function (e) { | |
| aoba.Tween.new(e).to({ | |
| rotation: 7 * aoba.DEG_TO_RAD | |
| }, 1024, "easeInOutSine").to({ | |
| rotation: -7 * aoba.DEG_TO_RAD | |
| }, 1024, "easeInOutSine").loop() | |
| }) | |
| }, | |
| y = function (e) { | |
| var t = aoba.Sprite.new(e).setScale(4.4375); | |
| return t.alpha = .7, t.blendMode = aoba.BLEND_MODES.ADD, aoba.FrameTween.new(t).to({ | |
| alpha: .7 * .7 | |
| }, 37).to({ | |
| alpha: .7 | |
| }, 37).loop(), t | |
| }, | |
| m = function () { | |
| var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : u.NORMAL, | |
| t = aoba.Container.new(), | |
| n = t.fromData(s.default, { | |
| speakerLeft: { | |
| key: e.left, | |
| dy: e.dy | |
| }, | |
| speakerRight: { | |
| key: e.right, | |
| dy: e.dy | |
| }, | |
| spotlight1: { | |
| alpha: 0, | |
| scale: 2.03 | |
| }, | |
| spotlight2: { | |
| alpha: 0, | |
| scale: 2.87 | |
| }, | |
| light1: { | |
| scale: 2, | |
| alpha: 0, | |
| dx: 10, | |
| dy: -6 | |
| }, | |
| light2: { | |
| scale: 2, | |
| alpha: 0, | |
| dx: 10, | |
| dy: -6 | |
| }, | |
| light3: { | |
| scale: 2, | |
| alpha: 0 | |
| }, | |
| light4: { | |
| scale: 2, | |
| alpha: 0 | |
| }, | |
| effectLeft: { | |
| key: "effect_side.png", | |
| x: 0, | |
| y: -20, | |
| anchor: aoba.p(.5, 0), | |
| scale: 3.6, | |
| alpha: .4 | |
| }, | |
| effectRight: { | |
| key: "effect_side.png", | |
| x: 1140, | |
| y: -20, | |
| anchor: aoba.p(.5, 0), | |
| scale: 3.6, | |
| alpha: .4 | |
| } | |
| }), | |
| r = n.spotlight1, | |
| i = n.spotlight2, | |
| a = n.light1, | |
| o = n.light2, | |
| l = n.light3, | |
| c = n.light4, | |
| y = n.speakerLeft, | |
| m = n.speakerRight, | |
| _ = n.effectLeft, | |
| g = n.effectRight; | |
| return [_, _, a, o, l, c].forEach(function (e) { | |
| e.blendMode = aoba.BLEND_MODES.ADD | |
| }), d(r, i), f(a, o, l, c), p(y, m), h(_, g), t | |
| }, | |
| _ = function (e) { | |
| var t = aoba.Sprite.new(e.image1); | |
| return t.setScale(2.2), t.setAnchor(.5, 1), t.setPosition(a.default.SCREEN_WIDTH / 2, a.default.SCREEN_HEIGHT), aoba.FrameTween.new(t).wait(30).call(function () { | |
| t.texture = aoba.Texture.fromImage(e.image2) | |
| }).wait(30).call(function () { | |
| t.texture = aoba.Texture.fromImage(e.image1) | |
| }).loop(), t | |
| }, | |
| g = function (e) { | |
| var t = l.AUDITION(e), | |
| n = aoba.Sprite.new(t.bg); | |
| return y(t.effect).addTo(n), m().addTo(n), n | |
| }, | |
| b = function () { | |
| var e = l.CONCERT, | |
| t = aoba.Sprite.new(e.bg); | |
| return y(e.effect).addTo(t), _(c.CONCERT).addTo(t), m(u.LARGE).addTo(t), t | |
| }, | |
| v = function () { | |
| var e = l.FES, | |
| t = aoba.Sprite.new(e.bg); | |
| return y(e.effect).addTo(t), _(c.FES).addTo(t), m(u.LARGE).addTo(t), t | |
| }, | |
| w = function () { | |
| var e = l.AUDITION_SELECT, | |
| t = aoba.Sprite.new(e.bg); | |
| y(e.effect).addTo(t), m().addTo(t); | |
| var n = new PIXI.filters.BlurFilter; | |
| return n.blur = 5, t.filters = [n], t | |
| }; | |
| t.default = { | |
| IMAGES: l, | |
| createAudition: g, | |
| createConcert: b, | |
| createFes: v, | |
| createAuditionSelect: w | |
| } | |
| }, function (e, t) { | |
| e.exports = function (e, t) { | |
| return { | |
| enumerable: !(1 & e), | |
| configurable: !(2 & e), | |
| writable: !(4 & e), | |
| value: t | |
| } | |
| } | |
| }, function (e, t) { | |
| var n = 0, | |
| r = Math.random(); | |
| e.exports = function (e) { | |
| return "Symbol(".concat(void 0 === e ? "" : e, ")_", (++n + r).toString(36)) | |
| } | |
| }, function (e, t) { | |
| e.exports = !1 | |
| }, function (e, t, n) { | |
| var r = n(287), | |
| i = n(191); | |
| e.exports = Object.keys || function (e) { | |
| return r(e, i) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(62), | |
| i = Math.max, | |
| a = Math.min; | |
| e.exports = function (e, t) { | |
| return e = r(e), e < 0 ? i(e + t, 0) : a(e, t) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(8), | |
| i = n(288), | |
| a = n(191), | |
| o = n(190)("IE_PROTO"), | |
| s = function () {}, | |
| l = function () { | |
| var e, t = n(188)("iframe"), | |
| r = a.length; | |
| for (t.style.display = "none", n(192).appendChild(t), t.src = "javascript:", e = t.contentWindow.document, e.open(), e.write("<script>document.F=Object<\/script>"), e.close(), l = e.F; r--;) delete l.prototype[a[r]]; | |
| return l() | |
| }; | |
| e.exports = Object.create || function (e, t) { | |
| var n; | |
| return null !== e ? (s.prototype = r(e), n = new s, s.prototype = null, n[o] = e) : n = l(), void 0 === t ? n : i(n, t) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(287), | |
| i = n(191).concat("length", "prototype"); | |
| t.f = Object.getOwnPropertyNames || function (e) { | |
| return r(e, i) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(11), | |
| i = n(28), | |
| a = n(27), | |
| o = n(25)("species"); | |
| e.exports = function (e) { | |
| var t = r[e]; | |
| a && t && !t[o] && i.f(t, o, { | |
| configurable: !0, | |
| get: function () { | |
| return this | |
| } | |
| }) | |
| } | |
| }, function (e, t) { | |
| e.exports = function (e, t, n, r) { | |
| if (!(e instanceof t) || void 0 !== r && r in e) throw TypeError(n + ": incorrect invocation!"); | |
| return e | |
| } | |
| }, function (e, t, n) { | |
| var r = n(53), | |
| i = n(299), | |
| a = n(204), | |
| o = n(8), | |
| s = n(29), | |
| l = n(206), | |
| u = {}, | |
| c = {}, | |
| t = e.exports = function (e, t, n, f, d) { | |
| var p, h, y, m, _ = d ? function () { | |
| return e | |
| } : l(e), | |
| g = r(n, f, t ? 2 : 1), | |
| b = 0; | |
| if ("function" != typeof _) throw TypeError(e + " is not iterable!"); | |
| if (a(_)) { | |
| for (p = s(e.length); p > b; b++) | |
| if ((m = t ? g(o(h = e[b])[0], h[1]) : g(e[b])) === u || m === c) return m | |
| } else | |
| for (y = _.call(e); !(h = y.next()).done;) | |
| if ((m = i(y, g, h.value, t)) === u || m === c) return m | |
| }; | |
| t.BREAK = u, t.RETURN = c | |
| }, function (e, t, n) { | |
| var r = n(47); | |
| e.exports = function (e, t, n) { | |
| for (var i in t) r(e, i, t[i], n); | |
| return e | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| if (!(this instanceof r)) return new r(e); | |
| u.call(this, e), c.call(this, e), e && !1 === e.readable && (this.readable = !1), e && !1 === e.writable && (this.writable = !1), this.allowHalfOpen = !0, e && !1 === e.allowHalfOpen && (this.allowHalfOpen = !1), this.once("end", i) | |
| } | |
| function i() { | |
| this.allowHalfOpen || this._writableState.ended || o(a, this) | |
| } | |
| function a(e) { | |
| e.end() | |
| } | |
| // Copyright Joyent, Inc. and other Node contributors. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a | |
| // copy of this software and associated documentation files (the | |
| // "Software"), to deal in the Software without restriction, including | |
| // without limitation the rights to use, copy, modify, merge, publish, | |
| // distribute, sublicense, and/or sell copies of the Software, and to permit | |
| // persons to whom the Software is furnished to do so, subject to the | |
| // following conditions: | |
| // | |
| // The above copyright notice and this permission notice shall be included | |
| // in all copies or substantial portions of the Software. | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
| // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
| // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN | |
| // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | |
| // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | |
| // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | |
| // USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| var o = n(156), | |
| s = Object.keys || function (e) { | |
| var t = []; | |
| for (var n in e) t.push(n); | |
| return t | |
| }; | |
| e.exports = r; | |
| var l = n(123); | |
| l.inherits = n(6); | |
| var u = n(320), | |
| c = n(219); | |
| l.inherits(r, u); | |
| for (var f = s(c.prototype), d = 0; d < f.length; d++) { | |
| var p = f[d]; | |
| r.prototype[p] || (r.prototype[p] = c.prototype[p]) | |
| } | |
| Object.defineProperty(r.prototype, "destroyed", { | |
| get: function () { | |
| return void 0 !== this._readableState && void 0 !== this._writableState && (this._readableState.destroyed && this._writableState.destroyed) | |
| }, | |
| set: function (e) { | |
| void 0 !== this._readableState && void 0 !== this._writableState && (this._readableState.destroyed = e, this._writableState.destroyed = e) | |
| } | |
| }), r.prototype._destroy = function (e, t) { | |
| this.push(null), this.end(), o(t, e) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| (function (e) { | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(13), | |
| a = r(i), | |
| o = n(31), | |
| s = r(o), | |
| l = n(1), | |
| u = r(l), | |
| c = n(172), | |
| f = r(c), | |
| d = n(966), | |
| p = r(d), | |
| h = n(3), | |
| y = r(h), | |
| m = u.default.asset.CONTENT_IMAGE_PATH, | |
| _ = { | |
| JEWEL: "jewel", | |
| MONEY: "money", | |
| EVENT_POINT: "game_event_point" | |
| }; | |
| t.default = { | |
| getIconImagePath: function () { | |
| return e.contains(_, this.contentType) ? s.default.join(p.default[this.contentType].iconPath) : "gasha_ticket" === this.contentType ? s.default.join(m, p.default[this.contentType].iconPath, this._getGashaIcon() + ".png") : s.default.join(m, p.default[this.contentType].iconPath, a.default.pad(this._getRewardId(), 3, "0") + ".png") | |
| }, | |
| _getRewardId: function () { | |
| return this.content.id | |
| }, | |
| _setName: function () { | |
| if (e.contains(_, this.contentType)) { | |
| var t = p.default[this.contentType].name; | |
| this.content = { | |
| name: y.default.t(t) | |
| } | |
| } | |
| }, | |
| getName: function () { | |
| return this.content || this._setName(), this.content.name | |
| }, | |
| _getGashaIcon: function () { | |
| return f.default[this.content.image] | |
| } | |
| } | |
| }).call(t, n(4)) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(56), | |
| a = r(i), | |
| o = n(32), | |
| s = r(o), | |
| l = n(228), | |
| u = r(l), | |
| c = n(382), | |
| f = r(c), | |
| d = function (e) { | |
| return e >= 0 ? "+" + e : "" + e | |
| }, | |
| p = { | |
| NUMBER: "number" | |
| }, | |
| h = function (e) { | |
| return Object.prototype.toString.call(e).slice(8, -1).toLowerCase() | |
| }, | |
| y = function (e) { | |
| return h(e) === p.NUMBER | |
| }, | |
| m = function () { | |
| return (screen && screen.orientation && screen.orientation.angle || window.orientation || 0) % 180 == 0 | |
| }, | |
| _ = function () { | |
| return -1 === document.referrer.indexOf(window.location.hostname) | |
| }, | |
| g = function (e) { | |
| return e.replace(/_./g, function (e) { | |
| return e.charAt(1).toUpperCase() | |
| }) | |
| }; | |
| t.default = { | |
| dateFormat: a.default, | |
| isExternalReferrer: _, | |
| loadResources: s.default, | |
| resourceCleaner: u.default, | |
| scriptLoader: f.default, | |
| getNumberStringWithSign: d, | |
| TYPE: p, | |
| typeOf: h, | |
| isNumber: y, | |
| isScreenPortraitOrientation: m, | |
| snakeToCamel: g | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| l = n(4), | |
| u = r(l), | |
| c = n(1), | |
| f = r(c), | |
| d = n(0), | |
| p = r(d), | |
| h = { | |
| l: { | |
| image: "icol_label_base_l.png", | |
| baseX: 2, | |
| textX: 90 | |
| }, | |
| s: { | |
| image: "icol_label_base_s.png", | |
| baseX: 12, | |
| textX: 80 | |
| } | |
| }, | |
| y = function (e, t) { | |
| var n = aoba.Sprite.new(t.image); | |
| return aoba.Text.new(e, { | |
| fill: 16777215, | |
| fontSize: 14, | |
| fontFamily: "UDKakugo_SmallPr6-B" | |
| }).addTo(n, t.textX, n.height / 2 + 1, { | |
| anchor: aoba.p(1, .5) | |
| }), n.x = t.baseX, n.y = 76, n | |
| }, | |
| m = function (e) { | |
| var t = aoba.Container.new(), | |
| n = e === f.default.app.MAX_EVOLUTION_STAGE ? "icon_evolution_max.png" : "icon_evolution.png"; | |
| return (0, u.default)(e).times(function (e) { | |
| aoba.Sprite.new(n).addTo(t, 0, -16 * e, { | |
| scale: .7 | |
| }) | |
| }), t.x = -8, t.y = 76, t | |
| }, | |
| _ = function (e) { | |
| return aoba.Sprite.new("icon_fes_idol_rank_s_" + e + ".png").setPosition(3, 3).setScale(.6) | |
| }, | |
| g = { | |
| userIdol: function (e, t) { | |
| m(e.evolutionStage).addTo(t) | |
| }, | |
| userSupportIdol: function (e, t) { | |
| y("Lv." + e.level, h.s).addTo(t), m(e.evolutionStage).addTo(t) | |
| }, | |
| reserveIdol: function (e, t) { | |
| y("×" + e.num, h.l).addTo(t) | |
| }, | |
| fesIdol: function (e, t) { | |
| y(e.fesIdolRankPoint, h.s).addTo(t), _(e.fesIdolRank.rank.toLowerCase()).addTo(t) | |
| }, | |
| fesResultIdol: function (e, t) { | |
| _(e.fesIdolRank.rank.toLowerCase()).addTo(t) | |
| } | |
| }, | |
| b = function (e) { | |
| function t(e) { | |
| var n = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; | |
| i(this, t); | |
| var r = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e.getIconImagePath())); | |
| if (r._overlayContainer = aoba.Container.new().addTo(r), e.fesIdolRankId) r._addOverlayContainer = n ? g.fesResultIdol : g.fesIdol; | |
| else if (e.num) r._addOverlayContainer = g.reserveIdol; | |
| else if (e.idol) r._addOverlayContainer = g.userIdol; | |
| else { | |
| if (!e.supportIdol) throw new Error("Invalid idol type"); | |
| r._addOverlayContainer = g.userSupportIdol | |
| } | |
| return r.applyData(e), r.interactive = !0, p.default.InteractionBox.new(r.bounds).addTo(r).on("longPress", function () { | |
| r.emit("longPress") | |
| }), r | |
| } | |
| return o(t, e), s(t, [{ | |
| key: "applyData", | |
| value: function (e) { | |
| this._addOverlayContainer(e, this._overlayContainer) | |
| } | |
| }, { | |
| key: "updateFormationBadge", | |
| value: function (e) { | |
| e ? this._formationIcon || (this._formationIcon = aoba.Sprite.new("idol_icon_badge_formation.png").addTo(this, 47, -10)) : this._formationIcon && (this._formationIcon.destroy(), this._formationIcon = null) | |
| } | |
| }, { | |
| key: "disable", | |
| value: function () { | |
| this.tint = 10066329, this.interactive = !1 | |
| } | |
| }]), t | |
| }(aoba.Sprite); | |
| t.default = b | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = n(1), | |
| l = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(s), | |
| u = function (e) { | |
| function t() { | |
| var e = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0], | |
| n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : .5; | |
| r(this, t); | |
| var a = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); | |
| return a._alpha = n, a._spotLight = aoba.Graphics.new().beginFill(0).drawRect(0, 0, l.default.SCREEN_WIDTH, l.default.SCREEN_HEIGHT).addTo(a, 0, 0, { | |
| alpha: 0 | |
| }), e && a._showSpotLight(), a | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "showSpotLight", | |
| value: function () { | |
| this._showSpotLight() | |
| } | |
| }, { | |
| key: "hideSpotLight", | |
| value: function () { | |
| aoba.Tween.new(this._spotLight).wait(100).to({ | |
| alpha: 0, | |
| interactive: !1 | |
| }, 100) | |
| } | |
| }, { | |
| key: "hideSpotLightCallback", | |
| value: function (e) { | |
| aoba.Tween.new(this._spotLight).wait(100).to({ | |
| alpha: 0, | |
| interactive: !1 | |
| }, 100).call(function () { | |
| return e() | |
| }) | |
| } | |
| }, { | |
| key: "_showSpotLight", | |
| value: function () { | |
| aoba.Tween.new(this._spotLight).wait(100).to({ | |
| alpha: this._alpha, | |
| interactive: !0 | |
| }, 300) | |
| } | |
| }]), t | |
| }(aoba.Container); | |
| t.default = u | |
| }, function (e, t, n) { | |
| var r = n(28).f, | |
| i = n(45), | |
| a = n(25)("toStringTag"); | |
| e.exports = function (e, t, n) { | |
| e && !i(e = n ? e : e.prototype, a) && r(e, a, { | |
| configurable: !0, | |
| value: t | |
| }) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(2), | |
| i = n(61), | |
| a = n(15), | |
| o = n(194), | |
| s = "[" + o + "]", | |
| l = "​…", | |
| u = RegExp("^" + s + s + "*"), | |
| c = RegExp(s + s + "*$"), | |
| f = function (e, t, n) { | |
| var i = {}, | |
| s = a(function () { | |
| return !!o[e]() || l[e]() != l | |
| }), | |
| u = i[e] = s ? t(d) : o[e]; | |
| n && (i[n] = u), r(r.P + r.F * s, "String", i) | |
| }, | |
| d = f.trim = function (e, t) { | |
| return e = String(i(e)), 1 & t && (e = e.replace(u, "")), 2 & t && (e = e.replace(c, "")), e | |
| }; | |
| e.exports = f | |
| }, function (e, t) { | |
| e.exports = {} | |
| }, function (e, t, n) { | |
| var r = n(17); | |
| e.exports = function (e, t) { | |
| if (!r(e) || e._t !== t) throw TypeError("Incompatible receiver, " + t + " required!"); | |
| return e | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| (function (t, r) { | |
| function i() { | |
| throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11") | |
| } | |
| function a(e, n) { | |
| if (e > 65536) throw new Error("requested too many random bytes"); | |
| var i = new t.Uint8Array(e); | |
| e > 0 && s.getRandomValues(i); | |
| var a = o.from(i.buffer); | |
| return "function" == typeof n ? r.nextTick(function () { | |
| n(null, a) | |
| }) : a | |
| } | |
| var o = n(18).Buffer, | |
| s = t.crypto || t.msCrypto; | |
| s && s.getRandomValues ? e.exports = a : e.exports = i | |
| }).call(t, n(44), n(43)) | |
| }, function (e, t, n) { | |
| function r(e, t) { | |
| this._block = i.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0 | |
| } | |
| var i = n(18).Buffer; | |
| r.prototype.update = function (e, t) { | |
| "string" == typeof e && (t = t || "utf8", e = i.from(e, t)); | |
| for (var n = this._block, r = this._blockSize, a = e.length, o = this._len, s = 0; s < a;) { | |
| for (var l = o % r, u = Math.min(a - s, r - l), c = 0; c < u; c++) n[l + c] = e[s + c]; | |
| o += u, s += u, o % r == 0 && this._update(n) | |
| } | |
| return this._len += a, this | |
| }, r.prototype.digest = function (e) { | |
| var t = this._len % this._blockSize; | |
| this._block[t] = 128, this._block.fill(0, t + 1), t >= this._finalSize && (this._update(this._block), this._block.fill(0)); | |
| var n = 8 * this._len; | |
| if (n <= 4294967295) this._block.writeUInt32BE(n, this._blockSize - 4); | |
| else { | |
| var r = 4294967295 & n, | |
| i = (n - r) / 4294967296; | |
| this._block.writeUInt32BE(i, this._blockSize - 8), this._block.writeUInt32BE(r, this._blockSize - 4) | |
| } | |
| this._update(this._block); | |
| var a = this._hash(); | |
| return e ? a.toString(e) : a | |
| }, r.prototype._update = function () { | |
| throw new Error("_update must be implemented by subclass") | |
| }, e.exports = r | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = { | |
| ADMIN_UPLOADED_FILE_PATH: "upload", | |
| AFTER_EFFECTS_PATH: "assets/ae", | |
| CONTENT_IMAGE_PATH: "images/content", | |
| UI_IMAGE_PATH: "images/ui", | |
| MOVIE_PATH: "movies/", | |
| SCENARIO_PATH: "json/", | |
| SPINE_PATH: "spine/", | |
| VOICE_PATH: "sounds/voice", | |
| CONCERT_MUSIC_PATH: "sounds/concert_music", | |
| CONTENT_TYPE: { | |
| PRODUCER_IDOL: "idol", | |
| SUPPORT_IDOL: "support_idol", | |
| ENHANCEMENT_ITEM: "enhancement_item", | |
| RECOVERY_ITEM: "recovery_item", | |
| GASHA_TICKET: "gasha_ticket", | |
| JEWEL: "jewel", | |
| MONEY: "money" | |
| }, | |
| ID_DIGIT_NUMBER: { | |
| announces: 8, | |
| characters: 3, | |
| enhancement_items: 3, | |
| fes_trend_banners: 8, | |
| gasha_tickets: 3, | |
| general_banners: 8, | |
| idols: 10, | |
| produces: 3, | |
| produce_auditions: 3, | |
| produce_marathons: 5, | |
| produce_place_categories: 5, | |
| recovery_items: 3, | |
| skills: 3, | |
| special_banners: 8, | |
| special_login_bonuses: 3, | |
| support_idols: 10, | |
| unit: 3 | |
| }, | |
| SPINE_FILE_NAME: "data.json", | |
| MOVIE_EXTENSION: ".mp4", | |
| SOUND_EXTENSION: ".m4a", | |
| HTML_EXTENSION: "html", | |
| DEFAULT_IMAGE_EXTENSION: ".png", | |
| IMAGE_EXTENSION: { | |
| gasha: { | |
| bg: ".jpg" | |
| }, | |
| idols: { | |
| card: ".jpg", | |
| fes_card: ".jpg" | |
| }, | |
| support_idols: { | |
| card: ".jpg" | |
| }, | |
| produce_auditions: { | |
| banner: ".jpg" | |
| }, | |
| produce_marathons: { | |
| bg: ".jpg" | |
| } | |
| }, | |
| extMap: { | |
| card: "jpg", | |
| fes_card: "jpg" | |
| }, | |
| imageTypes: { | |
| characters: ["concert_player_icon", "concert_card", "concert_icon", "icon_circle", "icon_circle_l", "link_skill_icon", "memory_skill_icon", "memory_movie", "memory_roulette_bad", "memory_roulette_good", "active_skill_silhouette", "sign"], | |
| idols: ["card", "concert_card", "concert_icon", "cut_in", "face", "fes_card", "fes_card_s", "fes_icon", "fes_skill_panel", "gasha_silhouette_black", "gasha_silhouette_pose", "gasha_silhouette_stand", "home_card", "icon", "name", "skill_panel"], | |
| support_idols: ["card", "home_card", "icon", "name", "skill_panel"] | |
| }, | |
| movieTypes: { | |
| characters: ["card_costume"], | |
| idols: ["card", "card_costume"] | |
| }, | |
| spineTypes: { | |
| idols: ["cb", "cb_costume", "stand", "stand_costume"] | |
| }, | |
| voiceIds: { | |
| idols: ["gasha"], | |
| support_idols: [] | |
| }, | |
| specificMovieRarities: [3, 4], | |
| specificSpineRarities: [3, 4], | |
| advSpineTypeAliasMap: { | |
| stand_fix: "stand" | |
| }, | |
| ICON_KEY_OF_STATUS_RANK: { | |
| S: "icon_status_rank_s_s.png", | |
| A: "icon_status_rank_s_a.png", | |
| B: "icon_status_rank_s_b.png", | |
| C: "icon_status_rank_s_c.png", | |
| D: "icon_status_rank_s_d.png", | |
| E: "icon_status_rank_s_e.png", | |
| F: "icon_status_rank_s_f.png" | |
| }, | |
| PARAMETER_ICONS: { | |
| vocal: "icon_status_vocal.png", | |
| dance: "icon_status_dance.png", | |
| visual: "icon_status_visual.png", | |
| mental: "icon_status_mental.png", | |
| sp: "icon_status_sp.png", | |
| fan: "icon_status_fan.png" | |
| }, | |
| PARAMETER_ICONS_L: { | |
| vocal: "icon_status_l_vocal.png", | |
| dance: "icon_status_l_dance.png", | |
| visual: "icon_status_l_visual.png", | |
| mental: "icon_status_l_mental.png", | |
| sp: "icon_status_l_sp.png", | |
| fan: "icon_status_l_fan.png" | |
| }, | |
| IDOL_RANK_ICONS: { | |
| F: "icon_idol_rank_f.png", | |
| E: "icon_idol_rank_e.png", | |
| D: "icon_idol_rank_d.png", | |
| C: "icon_idol_rank_c.png", | |
| B: "icon_idol_rank_b.png", | |
| A: "icon_idol_rank_a.png", | |
| S: "icon_idol_rank_s.png" | |
| }, | |
| ACTIVE_SKILL_ICON: function (e) { | |
| return "active_skills/icon/" + e + ".png" | |
| }, | |
| PASSIVE_SKILL_ICON: function (e) { | |
| return "passive_skills/icon/" + e + ".png" | |
| }, | |
| NOTICE_TYPE: { | |
| PICKUP: "pickups", | |
| BANNER: "banners" | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = !1, | |
| l = function (e) { | |
| function t() { | |
| return r(this, t), i(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments)) | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "start", | |
| value: function (e) { | |
| var t = this; | |
| if (s) throw new Error("CanvasStyleWatcher already started"); | |
| s = !0, e.addResizeListener(function (e, n) { | |
| t.emit("resized", { | |
| innerWidth: e, | |
| innerHeight: n | |
| }) | |
| }) | |
| } | |
| }]), t | |
| }(aoba.utils.EventEmitter), | |
| u = new l; | |
| t.default = u | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e) { | |
| if (Array.isArray(e)) { | |
| for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t]; | |
| return n | |
| } | |
| return Array.from(e) | |
| } | |
| function a(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function o(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function s(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var l = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| u = n(7), | |
| c = r(u), | |
| f = n(0), | |
| d = r(f), | |
| p = 450, | |
| h = 280, | |
| y = function (e) { | |
| function t() { | |
| a(this, t); | |
| var e = o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)), | |
| n = d.default.MovingBg.new(); | |
| n.addTo(e); | |
| var r = aoba.Sprite.new("transition_page_turn_bar.png"); | |
| return r.addTo(e, -r.width), n.mask = aoba.Graphics.new().beginFill(0).drawPolygon([-p - h, 0, n.width, 0, n.width + p, n.height, -h, n.height]).addTo(e, -(n.width + p + h)), e._bg = n, e._bar = r, e | |
| } | |
| return s(t, e), l(t, [{ | |
| key: "play", | |
| value: function () { | |
| var e = this, | |
| t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, | |
| n = t.parallels ? [].concat(i(t.parallels), [this.appear()]) : [this.appear()]; | |
| return Promise.all(n).then(function (t) { | |
| return e.disappear(), Promise.resolve(t) | |
| }) | |
| } | |
| }, { | |
| key: "appear", | |
| value: function () { | |
| return aoba.soundManager.playSE(c.default.transition.maskIn), aoba.FrameTween.new(this._bar).by({ | |
| x: this._bg.width + p + h | |
| }, 16), aoba.FrameTween.new(this._bg.mask).by({ | |
| x: this._bg.width + p + h | |
| }, 16).wait(3).promise() | |
| } | |
| }, { | |
| key: "disappear", | |
| value: function () { | |
| var e = this; | |
| aoba.soundManager.playSE(c.default.transition.maskOut), this._bar.x = -this._bar.width, aoba.FrameTween.new(this._bar).by({ | |
| x: this._bg.width + p + h | |
| }, 16), aoba.FrameTween.new(this._bg.mask).by({ | |
| x: this._bg.width + p + h | |
| }, 16).call(function () { | |
| e.destroy({ | |
| children: !0 | |
| }) | |
| }) | |
| } | |
| }, { | |
| key: "prepareForAppearing", | |
| value: function () { | |
| return this._bar.x = -this._bar.width, this._bg.mask.x = -(this._bg.width + p + h), this | |
| } | |
| }, { | |
| key: "prepareForDisappearing", | |
| value: function () { | |
| return this._bar.x = -this._bar.width, this._bg.mask.x = 0, this | |
| } | |
| }]), t | |
| }(aoba.Container); | |
| t.default = y | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(74), | |
| a = r(i), | |
| o = n(1), | |
| s = r(o), | |
| l = n(163), | |
| u = r(l), | |
| c = n(835), | |
| f = r(c), | |
| d = n(836), | |
| p = r(d), | |
| h = n(837), | |
| y = r(h), | |
| m = n(838), | |
| _ = r(m), | |
| g = n(858), | |
| b = r(g), | |
| v = n(859), | |
| w = r(v), | |
| k = n(382), | |
| S = r(k), | |
| I = n(32), | |
| E = r(I), | |
| A = a.default.AdvResourceConverter, | |
| x = function (e) { | |
| return S.default.load(e).then(function (e) { | |
| var t = new A(u.default), | |
| n = t.convertResourcePaths(e), | |
| r = s.default.asset.advSpineTypeAliasMap, | |
| i = Object.keys(r), | |
| a = !0, | |
| o = !1, | |
| l = void 0; | |
| try { | |
| for (var c, f = n[Symbol.iterator](); !(a = (c = f.next()).done); a = !0) { | |
| var d = c.value; | |
| if (i.includes(d.charCategory)) { | |
| var p = r[d.charCategory]; | |
| d.charSpine = d.charSpine.replace(d.charCategory, p) | |
| } | |
| } | |
| } catch (e) { | |
| o = !0, l = e | |
| } finally { | |
| try { | |
| !a && f.return && f.return() | |
| } finally { | |
| if (o) throw l | |
| } | |
| } | |
| return n | |
| }) | |
| }, | |
| C = function (e) { | |
| var t = new A(u.default), | |
| n = t.extractResourceList(e); | |
| return (0, E.default)(n).then(function () { | |
| return Promise.resolve(e) | |
| }) | |
| }, | |
| T = function (e) { | |
| return x(e).then(function (e) { | |
| return C(e) | |
| }) | |
| }, | |
| P = function (e) { | |
| var t = f.default.new(e, u.default); | |
| return t.mainController = p.default.new(), t.movieLayer = y.default.new(), t.selectList = w.default.new(u.default.selectList), t.soundController = new b.default, t.scenarioPlayer = _.default.new(u.default.scenarioPlayer), t.scenarioPlayer.x = u.default.scenarioPlayer.x, t.scenarioPlayer.y = u.default.scenarioPlayer.y, t | |
| }, | |
| O = function (e) { | |
| return new Promise(function (t) { | |
| return e.start().on("end", t) | |
| }).catch(function (e) { | |
| return Promise.resolve() | |
| }) | |
| }, | |
| N = function (e, t) { | |
| var n = P(e).addTo(t); | |
| return O(n) | |
| }; | |
| t.default = { | |
| loadJson: x, | |
| loadResourcesFromTracks: C, | |
| loadJsonAndResources: T, | |
| createAdvPlayer: P, | |
| playAdvPlayer: O, | |
| createAndPlayAdvPlayer: N | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = n(7), | |
| l = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(s), | |
| u = function (e) { | |
| function t(e) { | |
| r(this, t); | |
| var n = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, {})); | |
| return n.anchor.set(.5), n.on("tap", n._handleTap, n), n | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "setAvailable", | |
| value: function (e) { | |
| e ? this.enable() : this.disable() | |
| } | |
| }, { | |
| key: "disable", | |
| value: function () { | |
| this.interactive = !1, this.tint = 10066329 | |
| } | |
| }, { | |
| key: "enable", | |
| value: function () { | |
| this.interactive = !0, this.tint = 16777215 | |
| } | |
| }, { | |
| key: "_handleTap", | |
| value: function () { | |
| aoba.soundManager.playSE(l.default.ui.decide); | |
| var e = aoba.Sprite.new(this.texture).addTo(this, 0, 0, { | |
| alpha: 0, | |
| anchor: .5, | |
| blendMode: aoba.BLEND_MODES.ADD | |
| }); | |
| aoba.FrameTween.new(e).to({ | |
| alpha: .3 | |
| }, 2).to({ | |
| alpha: 0 | |
| }, 3).call(function () { | |
| return e.destroy() | |
| }) | |
| } | |
| }]), t | |
| }(aoba.Button); | |
| t.default = u | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| if (Array.isArray(e)) { | |
| for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t]; | |
| return n | |
| } | |
| return Array.from(e) | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| l = n(1), | |
| u = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(l), | |
| c = function (e) { | |
| function t(e) { | |
| var n; | |
| return i(this, t), (n = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this))).beginFill(e.color).drawRect(0, 0, u.default.SCREEN_WIDTH, u.default.SCREEN_HEIGHT), n.alpha = 0, n._duration = e.duration, n | |
| } | |
| return o(t, e), s(t, [{ | |
| key: "play", | |
| value: function () { | |
| var e = this, | |
| t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, | |
| n = t.parallels ? [].concat(r(t.parallels), [this.appear()]) : [this.appear()]; | |
| return Promise.all(n).then(function (t) { | |
| return e.disappear(), Promise.resolve(t) | |
| }) | |
| } | |
| }, { | |
| key: "appear", | |
| value: function () { | |
| return aoba.Tween.new(this).to({ | |
| alpha: 1 | |
| }, this._duration).promise() | |
| } | |
| }, { | |
| key: "disappear", | |
| value: function () { | |
| var e = this; | |
| aoba.Tween.new(this).to({ | |
| alpha: 0 | |
| }, this._duration).call(function () { | |
| e.destroy({ | |
| children: !0 | |
| }) | |
| }) | |
| } | |
| }], [{ | |
| key: "createBlack", | |
| value: function (e) { | |
| return t.new(Object.assign({ | |
| color: 0, | |
| duration: 100 | |
| }, e)) | |
| } | |
| }, { | |
| key: "createWhite", | |
| value: function (e) { | |
| return t.new(Object.assign({ | |
| color: 16777215, | |
| duration: 100 | |
| }, e)) | |
| } | |
| }]), t | |
| }(aoba.Graphics); | |
| t.default = c | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = function (e) { | |
| return (0, i.default)("get", e).type("application/json").then(function (e) { | |
| return Promise.resolve(e) | |
| }) | |
| }; | |
| var r = n(129), | |
| i = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(r) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = n(405), | |
| i = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(r); | |
| t.default = { | |
| getImagePath: function (e) { | |
| return this._extendedSupportIdol.getImagePath(e) | |
| }, | |
| getSpinePath: function (e) { | |
| return this._extendedSupportIdol.getSpinePath(e) | |
| }, | |
| getRarityImagePath: function (e) { | |
| return this._extendedSupportIdol.getRarityImagePath(e) | |
| }, | |
| getUnitImagePath: function (e) { | |
| return this._extendedSupportIdol.getUnitImagePath(e) | |
| }, | |
| getIconImagePath: function () { | |
| return this._extendedSupportIdol.getIconImagePath() | |
| }, | |
| getVoicePath: function (e) { | |
| return this._extendedSupportIdol.getVoicePath(e) | |
| }, | |
| get name() { | |
| return this.supportIdol.name | |
| }, | |
| get firstName() { | |
| return this._extendedSupportIdol.firstName | |
| }, | |
| get supportIdolId() { | |
| return this.supportIdol.id | |
| }, | |
| get characterId() { | |
| return this._extendedSupportIdol.characterId | |
| }, | |
| get character() { | |
| return this.supportIdol.character | |
| }, | |
| get unitId() { | |
| return this._extendedSupportIdol.unitId | |
| }, | |
| get supportSkills() { | |
| return this.supportIdol.supportSkills || [] | |
| }, | |
| get skillPanels() { | |
| return this.supportIdol.skillPanels | |
| }, | |
| get rarity() { | |
| return this.supportIdol.rarity | |
| }, | |
| get acquiredSupportSkills() { | |
| var e = this; | |
| return this.supportSkills.filter(function (t) { | |
| return t.level <= e.level | |
| }) | |
| }, | |
| get supportIdolActiveSkill() { | |
| return this.supportIdol.supportIdolActiveSkill | |
| }, | |
| get produceSupportIdolEvents() { | |
| return this.supportIdol.produceSupportIdolEvents | |
| }, | |
| calcBonusMapWithLevel: function (e, t) { | |
| return this._extendedSupportIdol.calcBonusMapWithLevel(e, t) | |
| }, | |
| calcUniqueSkillLevelWithLevel: function (e) { | |
| return this._extendedSupportIdol.calcUniqueSkillLevelWithLevel(e) | |
| }, | |
| getTotalAppeal: function () { | |
| var e = this; | |
| return ["vocalBonus", "danceBonus", "visualBonus"].reduce(function (t, n) { | |
| return t + e[n] | |
| }, 0) | |
| }, | |
| get _extendedSupportIdol() { | |
| return aoba.utils.getPrototypeOf(this.supportIdol) !== i.default && aoba.utils.setPrototypeOf(this.supportIdol, i.default), this.supportIdol | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.claims = void 0; | |
| var i = n(944), | |
| a = r(i), | |
| o = n(9), | |
| s = r(o), | |
| l = n(242), | |
| u = r(l), | |
| c = n(42), | |
| f = r(c), | |
| d = n(67), | |
| p = r(d), | |
| h = !f.default.PF_URI, | |
| y = h ? "dev/login" : "login", | |
| m = t.claims = Object.create(null), | |
| _ = function () { | |
| var e = !1; | |
| return new Promise(function (t, n) { | |
| p.default.startLogin(f.default.GAME_ID, function (r) { | |
| s.default.addHeader("Authorization", r), Object.assign(m, a.default.jws.JWS.readSafeJSONString(a.default.b64utoutf8(r.split(".")[1]))), e || s.default.post(y).then(function (n) { | |
| e = !0, u.default.setUserId(m.id), t(n) | |
| }).catch(function (e) { | |
| n(e) | |
| }) | |
| }, function () {}) | |
| }) | |
| }, | |
| g = function () { | |
| return new Promise(function (e, t) { | |
| var n = localStorage.getItem("userId"); | |
| s.default.addHeader("Authorization", n), Object.assign(m, { | |
| id: n, | |
| is_app_installed: !1, | |
| is_guest: !0, | |
| is_game_user_registered: !0 | |
| }), s.default.post(y).then(function (t) { | |
| e(t) | |
| }).catch(function (e) { | |
| t(e) | |
| }) | |
| }) | |
| }; | |
| t.default = function () { | |
| return h ? g() : _() | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = function (e) { | |
| function t(e) { | |
| var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; | |
| r(this, t); | |
| var a = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); | |
| return a._fixed = void 0 !== n.fixed && n.fixed, a._type = void 0 === n.type ? "horizontal" : n.type, a._maxValue = void 0 === n.maxValue ? 100 : n.maxValue, a._value = void 0 === n.value ? a._maxValue : n.value, a._viewValue = a._value, a._speed = void 0 === n.speed ? 2 : n.speed, a.mask = aoba.Graphics.new().addTo(a), a._updateGauge(), a | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "ezgUpdate", | |
| value: function () { | |
| if (!this._fixed) { | |
| var e = this._maxValue * this._speed / 100; | |
| this._value > this._viewValue && this._increase(Math.min(e, this._value - this._viewValue)), this._value < this._viewValue && this._decrease(Math.min(e, this._viewValue - this._value)), this._updateGauge() | |
| } | |
| } | |
| }, { | |
| key: "setValue", | |
| value: function (e) { | |
| if (this.value !== e) { | |
| var t = e - this.value; | |
| t > 0 ? this.increase(t) : this.decrease(-t) | |
| } | |
| } | |
| }, { | |
| key: "increase", | |
| value: function (e) { | |
| this._isFull() || (this._value += e, this._value = Math.min(this._value, this._maxValue)) | |
| } | |
| }, { | |
| key: "decrease", | |
| value: function (e) { | |
| this._isEmpty() || (this._value -= e, this._value = Math.max(this._value, 0)) | |
| } | |
| }, { | |
| key: "_increase", | |
| value: function (e) { | |
| this._viewValue += e, this._isFullView() && this.emit("full") | |
| } | |
| }, { | |
| key: "_decrease", | |
| value: function (e) { | |
| this._viewValue -= e, this._isEmptyView() && this.emit("empty") | |
| } | |
| }, { | |
| key: "_isFull", | |
| value: function () { | |
| return this._value === this._maxValue | |
| } | |
| }, { | |
| key: "_isFullView", | |
| value: function () { | |
| return this._viewValue === this._maxValue | |
| } | |
| }, { | |
| key: "_isEmpty", | |
| value: function () { | |
| return 0 === this._value | |
| } | |
| }, { | |
| key: "_isEmptyView", | |
| value: function () { | |
| return 0 === this._viewValue | |
| } | |
| }, { | |
| key: "_updateGauge", | |
| value: function () { | |
| this.mask.clear(), this.mask.beginFill(0); | |
| var e = -this.width * this.anchor.x, | |
| t = -this.height * this.anchor.y; | |
| "horizontal" === this._type ? this.mask.drawRect(e, t, this.width * this.viewRate, this.height) : "vertical" === this._type && this.mask.drawRect(e, t + this.height * (1 - this.viewRate), this.width, this.height * this.viewRate) | |
| } | |
| }, { | |
| key: "value", | |
| get: function () { | |
| return this._value | |
| }, | |
| set: function (e) { | |
| this._value = e | |
| } | |
| }, { | |
| key: "maxValue", | |
| get: function () { | |
| return this._maxValue | |
| }, | |
| set: function (e) { | |
| this._maxValue = e | |
| } | |
| }, { | |
| key: "rate", | |
| get: function () { | |
| return this._value / this._maxValue | |
| } | |
| }, { | |
| key: "viewRate", | |
| get: function () { | |
| return this._viewValue / this._maxValue | |
| } | |
| }]), t | |
| }(aoba.Sprite); | |
| t.default = s | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = aoba, | |
| l = s.Graphics, | |
| u = function (e) { | |
| function t(e) { | |
| var n; | |
| r(this, t); | |
| var a = e.width, | |
| o = e.height; | |
| return (n = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this))).beginFill(7827066).drawRoundedRect(0, 0, a, o, a / 2), n._scrollBar = null, n | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "addScrollBar", | |
| value: function (e) { | |
| this._scrollBar = e.addTo(this) | |
| } | |
| }]), t | |
| }(l); | |
| t.default = u | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| l = function e(t, n, r) { | |
| null === t && (t = Function.prototype); | |
| var i = Object.getOwnPropertyDescriptor(t, n); | |
| if (void 0 === i) { | |
| var a = Object.getPrototypeOf(t); | |
| return null === a ? void 0 : e(a, n, r) | |
| } | |
| if ("value" in i) return i.value; | |
| var o = i.get; | |
| if (void 0 !== o) return o.call(r) | |
| }, | |
| u = n(4), | |
| c = r(u), | |
| f = n(13), | |
| d = r(f), | |
| p = n(1), | |
| h = r(p), | |
| y = n(0), | |
| m = r(y), | |
| _ = n(109), | |
| g = r(_), | |
| b = n(1038), | |
| v = r(b), | |
| w = n(1040), | |
| k = r(w), | |
| S = n(1044), | |
| I = r(S), | |
| E = n(255), | |
| A = r(E), | |
| x = n(1047), | |
| C = r(x), | |
| T = n(428), | |
| P = r(T), | |
| O = n(1050), | |
| N = r(O), | |
| M = n(228), | |
| R = r(M), | |
| D = function (e) { | |
| var t = v.default.new().addTo(e).start().on("timeUp", function () { | |
| e.selectList.forceSelect() | |
| }); | |
| e.selectList.on("selectStart", function () { | |
| t.fadeOut() | |
| }) | |
| }, | |
| F = function (e) { | |
| return aoba.Tween.new(e).to({ | |
| alpha: 0 | |
| }, 100).promise() | |
| }, | |
| B = function (e, t) { | |
| var n = m.default.Spine.new(e); | |
| return n.play("smile1", !0), n.addTo(t, 224, 640), aoba.Tween.new(n).to({ | |
| alpha: 1 | |
| }, 100).promise() | |
| }, | |
| j = function (e, t) { | |
| return d.default.pad(e, 3, "0") + "_memory_appeal_" + t | |
| }, | |
| L = function (e) { | |
| function t(e) { | |
| i(this, t); | |
| var n = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); | |
| return n._event = e.event, n._userProduceIdol = e.userProduceIdol, n._eventTracks = [], n._answerResponse = null, n._produceAction = e.produceAction, n._onUpdateParameter = e.onUpdateParameter, n._hideMainController = e.hideMainController, n | |
| } | |
| return o(t, e), s(t, [{ | |
| key: "ezgPreDestroy", | |
| value: function () { | |
| var e = this, | |
| n = ["stand", "stand_costume"], | |
| r = n.map(function (t) { | |
| return e._userProduceIdol.getSpinePath(t) | |
| }); | |
| r.push("spine/sub_characters/stand/staff/data.json"); | |
| var i = [], | |
| a = ["se", "voice", "bg", "fg"], | |
| o = !0, | |
| s = !1, | |
| u = void 0; | |
| try { | |
| for (var f, d = this._eventTracks[Symbol.iterator](); !(o = (f = d.next()).done); o = !0) { | |
| var p = f.value, | |
| h = !0, | |
| y = !1, | |
| m = void 0; | |
| try { | |
| for (var _, g = a[Symbol.iterator](); !(h = (_ = g.next()).done); h = !0) { | |
| var b = _.value, | |
| v = p[b]; | |
| v && i.push(v) | |
| } | |
| } catch (e) { | |
| y = !0, m = e | |
| } finally { | |
| try { | |
| !h && g.return && g.return() | |
| } finally { | |
| if (y) throw m | |
| } | |
| } | |
| var w = aoba.soundManager.createBgmResourceName(aoba.soundManager.bgm.name); | |
| p.bgm && p.bgm !== w && i.push(p.bgm), p.charSpine && !r.includes(p.charSpine) && i.push(p.charSpine) | |
| } | |
| } catch (e) { | |
| s = !0, u = e | |
| } finally { | |
| try { | |
| !o && d.return && d.return() | |
| } finally { | |
| if (s) throw u | |
| } | |
| } | |
| R.default.releaseResources(c.default.uniq(i)), l(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "ezgPreDestroy", this).call(this) | |
| } | |
| }, { | |
| key: "preload", | |
| value: function () { | |
| var e = this, | |
| t = this._event.eventCategory.getDataPath(this._event.id); | |
| return g.default.loadJson(t).then(function (t) { | |
| if (e._userProduceIdol) { | |
| var n = !0, | |
| r = !1, | |
| i = void 0; | |
| try { | |
| for (var a, o = t[Symbol.iterator](); !(n = (a = o.next()).done); n = !0) { | |
| var s = a.value; | |
| Object.keys(h.default.asset.advSpineTypeAliasMap).includes(s.charCategory) || s.charSpine && parseInt(s.charId, 10).toString() === e._userProduceIdol.characterId && (s.charSpine = e._userProduceIdol.getSpinePath(s.charCategory || "stand")) | |
| } | |
| } catch (e) { | |
| r = !0, i = e | |
| } finally { | |
| try { | |
| !n && o.return && o.return() | |
| } finally { | |
| if (r) throw i | |
| } | |
| } | |
| } | |
| return t | |
| }).then(function (e) { | |
| return g.default.loadResourcesFromTracks(e) | |
| }) | |
| } | |
| }, { | |
| key: "play", | |
| value: function (e) { | |
| var t = this; | |
| this._eventTracks = e; | |
| var n = this._event, | |
| r = g.default.createAdvPlayer(this._processTracks(e)).addTo(this); | |
| this._hideMainController && r.mainController.hide(), r.on("appearSelectList", function () { | |
| t.emit("appearSelectList", r) | |
| }), this._addPlate(), n.eventCategory.hasTimeLimit && r.on("appearSelectList", function () { | |
| D(r) | |
| }), n.supportSkill && this._playSupportSkillCutIn(n.supportSkill); | |
| var i = this._getAnswerIds(); | |
| return !n.eventCategory.noSelect && i && e.some(function (e) { | |
| return e.select | |
| }) && r.on("select", function (e) { | |
| return t._storeAnswer(e) | |
| }), Promise.resolve().then(function () { | |
| return g.default.playAdvPlayer(r) | |
| }).then(function () { | |
| return t._notifyAnswer() | |
| }).then(function () { | |
| return t._showResults(r) | |
| }) | |
| } | |
| }, { | |
| key: "_processTracks", | |
| value: function (e) { | |
| var t = this._getAnswerIds(); | |
| if (this._event.eventCategory.hasRandomAnswers && t) { | |
| e = e.filter(function (e) { | |
| return !(e.select && !t.includes(e.nextLabel)) | |
| }); | |
| for (var n = e.filter(function (e) { | |
| return e.select && t.includes(e.nextLabel) | |
| }), r = n.length - 1; r > 0; r--) { | |
| var i = Math.floor(Math.random() * (r + 1)), | |
| a = n[r]; | |
| n[r] = n[i], n[i] = a | |
| } | |
| for (var o = void 0, s = 0; s < e.length; s++) { | |
| var l = e[s]; | |
| if (l.select && t.includes(l.nextLabel)) { | |
| o = s; | |
| break | |
| } | |
| } | |
| n.forEach(function (t, n) { | |
| e[o + n] = t | |
| }) | |
| } | |
| return e | |
| } | |
| }, { | |
| key: "_storeAnswer", | |
| value: function (e) { | |
| this._answerId = e | |
| } | |
| }, { | |
| key: "_notifyAnswer", | |
| value: function () { | |
| var e = this, | |
| t = this._answerId, | |
| n = this._getAnswerIds(); | |
| if (void 0 === t || !n.includes(this._answerId)) return Promise.resolve(); | |
| var r = this._event; | |
| return r.eventCategory.requestSelect(this._produceAction, r.id, t).then(function (n) { | |
| e._answerResponse = n, e._answerResponse.answerId = t | |
| }) | |
| } | |
| }, { | |
| key: "_showResults", | |
| value: function (e) { | |
| var t = this._event, | |
| n = this._answerResponse, | |
| r = !!n && (n.eventParam || n.param || n.produceEventParam), | |
| i = r || t.eventParam || t.param, | |
| a = []; | |
| if (i && a.push(this._playParamsUp(i, e)), t.eventCategory.hasResultEffect) { | |
| if (n) { | |
| var o = t.eventCategory, | |
| s = o.getResult(n); | |
| a.push(o.ResultClass.new(s).addTo(e).play()) | |
| } | |
| if (void 0 !== t.isSuccess) { | |
| var l = t.eventCategory, | |
| u = l.getResult(t); | |
| a.push(l.ResultClass.new(u).addTo(e).play()) | |
| } | |
| } | |
| return Promise.all(a).then(function () { | |
| return Promise.resolve({ | |
| answerResponse: n | |
| }) | |
| }) | |
| } | |
| }, { | |
| key: "_getAnswerIds", | |
| value: function () { | |
| var e = this._event.answers; | |
| return e && e.map(function (e) { | |
| return e.id | |
| }).slice(0, 3) | |
| } | |
| }, { | |
| key: "_addPlate", | |
| value: function () { | |
| var e = this._event, | |
| t = e.eventCategoryName, | |
| n = e.title, | |
| r = e.supportIdolId, | |
| i = t && n ? { | |
| eventCategoryName: t, | |
| title: n, | |
| supportIdolId: r | |
| } : null; | |
| i && (0, k.default)(i, this._userProduceIdol).addTo(this) | |
| } | |
| }, { | |
| key: "_playSupportSkillCutIn", | |
| value: function (e) { | |
| var t = this; | |
| return new Promise(function (n) { | |
| A.default.new(e).addTo(t).on("end", n) | |
| }) | |
| } | |
| }, { | |
| key: "_playParamsUp", | |
| value: function () { | |
| var e = this, | |
| t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, | |
| n = arguments[1], | |
| r = t.vocal, | |
| i = t.dance, | |
| a = t.visual, | |
| o = t.mental, | |
| s = t.stamina, | |
| l = t.tension, | |
| u = t.tensionLevel, | |
| f = t.memoryPoint, | |
| d = t.memoryLevel, | |
| p = t.fan, | |
| h = t.skillPoint, | |
| y = Promise.resolve(), | |
| m = this._userProduceIdol, | |
| _ = s && 0 !== s, | |
| g = l && 0 !== l, | |
| b = f && 0 !== f, | |
| v = d && 0 !== d; | |
| if (g) { | |
| var w = m.tensionLevel, | |
| k = Math.min(Math.max(w + u, 1), 5); | |
| y = y.then(function () { | |
| return N.default.new({ | |
| tensionLevel: k, | |
| isIncreased: l > 0 | |
| }).addTo(e).play() | |
| }) | |
| } | |
| if (b) { | |
| var S = this._userProduceIdol.memoryAppealLevel, | |
| E = m.userIdol.idol.memoryAppeals, | |
| A = { | |
| nextMemoryAppeal: E.find(function (e) { | |
| return e.level === S + 1 | |
| }), | |
| total: m.totalMemoryPoint, | |
| add: f | |
| }; | |
| if (y = y.then(function () { | |
| return C.default.new(S, v, A).addTo(e).play() | |
| }), v) { | |
| var x = S + d, | |
| T = E.find(function (e) { | |
| return e.level === S | |
| }), | |
| P = E.find(function (e) { | |
| return e.level === x | |
| }); | |
| y = y.then(function () { | |
| return F(n.characterStage) | |
| }).then(function () { | |
| aoba.Tween.createBlank().wait(300).call(function () { | |
| B(e._userProduceIdol.getSpinePath("stand"), e), aoba.soundManager.playVoiceAsync(e._userProduceIdol.getVoicePath(j(e._userProduceIdol.characterId, P.level))) | |
| }); | |
| var t = I.default.new(T, P).addTo(e); | |
| return t.once("middle", function () { | |
| e.emit("endMemoryLevelUp", e) | |
| }), t.play() | |
| }) | |
| } | |
| } | |
| return (_ || g || v) && this._onUpdateParameter({ | |
| stamina: s, | |
| tensionLevel: u, | |
| memoryAppealLevel: d | |
| }), c.default.each({ | |
| vocal: r, | |
| dance: i, | |
| visual: a, | |
| mental: o, | |
| fan: p, | |
| sp: h | |
| }, function (t, n) { | |
| t && (y = y.then(function () { | |
| return e._showParameterUpEffect(n, t) | |
| })) | |
| }), y | |
| } | |
| }, { | |
| key: "_showParameterUpEffect", | |
| value: function (e, t) { | |
| var n = this; | |
| return new Promise(function (r) { | |
| P.default.new(e, t).addTo(n).once("end", function (e) { | |
| e.destroy({ | |
| children: !0 | |
| }), r() | |
| }) | |
| }) | |
| } | |
| }]), t | |
| }(aoba.Container); | |
| t.default = L | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = n(7), | |
| l = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(s), | |
| u = function (e) { | |
| function t(e) { | |
| r(this, t); | |
| var n = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); | |
| return n.interactive = !0, n._holded = !1, n.on("touchstart", n._startHold, n), n.on("touchendoutside", n._endHold, n), n.on("touchmove", n._onTouchMove, n), n.on("touchend", n._endHold, n), n | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "_startHold", | |
| value: function () { | |
| this._holded || (this._holded = !0, this._scaleUp(), aoba.soundManager.playSE(l.default.ui.select), this.emit("holdstart", this)) | |
| } | |
| }, { | |
| key: "_onTouchMove", | |
| value: function (e) { | |
| if (this._holded) { | |
| e.stopPropagation(); | |
| var t = e.data.global; | |
| this.bounds.contains(t.x, t.y) || this._endHold() | |
| } | |
| } | |
| }, { | |
| key: "_endHold", | |
| value: function (e) { | |
| e && this._holded && (this._holded = !1, this._scaleDown(), this.emit("holdend", this)) | |
| } | |
| }, { | |
| key: "_scaleUp", | |
| value: function () { | |
| this.scale.x *= 1.1, this.scale.y *= 1.1 | |
| } | |
| }, { | |
| key: "_scaleDown", | |
| value: function () { | |
| this.scale.x *= 10 / 11, this.scale.y *= 10 / 11 | |
| } | |
| }]), t | |
| }(aoba.Sprite); | |
| t.default = u | |
| }, function (e, t, n) { | |
| var r = n(54); | |
| e.exports = Object("z").propertyIsEnumerable(0) ? Object : function (e) { | |
| return "String" == r(e) ? e.split("") : Object(e) | |
| } | |
| }, function (e, t) { | |
| t.f = {}.propertyIsEnumerable | |
| }, function (e, t, n) { | |
| var r = n(54), | |
| i = n(25)("toStringTag"), | |
| a = "Arguments" == r(function () { | |
| return arguments | |
| }()), | |
| o = function (e, t) { | |
| try { | |
| return e[t] | |
| } catch (e) {} | |
| }; | |
| e.exports = function (e) { | |
| var t, n, s; | |
| return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof (n = o(t = Object(e), i)) ? n : a ? r(t) : "Object" == (s = r(t)) && "function" == typeof t.callee ? "Arguments" : s | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| (function (t) { | |
| function r(e) { | |
| u.call(this, "digest"), this._hash = e, this.buffers = [] | |
| } | |
| function i(e) { | |
| u.call(this, "digest"), this._hash = e | |
| } | |
| var a = n(6), | |
| o = n(215), | |
| s = n(216), | |
| l = n(222), | |
| u = n(80); | |
| a(r, u), r.prototype._update = function (e) { | |
| this.buffers.push(e) | |
| }, r.prototype._final = function () { | |
| var e = t.concat(this.buffers), | |
| n = this._hash(e); | |
| return this.buffers = null, n | |
| }, a(i, u), i.prototype._update = function (e) { | |
| this._hash.update(e) | |
| }, i.prototype._final = function () { | |
| return this._hash.digest() | |
| }, e.exports = function (e) { | |
| return e = e.toLowerCase(), "md5" === e ? new r(o) : new i("rmd160" === e || "ripemd160" === e ? new s : l(e)) | |
| } | |
| }).call(t, n(16).Buffer) | |
| }, function (e, t, n) { | |
| (function (e) { // Copyright Joyent, Inc. and other Node contributors. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a | |
| // copy of this software and associated documentation files (the | |
| // "Software"), to deal in the Software without restriction, including | |
| // without limitation the rights to use, copy, modify, merge, publish, | |
| // distribute, sublicense, and/or sell copies of the Software, and to permit | |
| // persons to whom the Software is furnished to do so, subject to the | |
| // following conditions: | |
| // | |
| // The above copyright notice and this permission notice shall be included | |
| // in all copies or substantial portions of the Software. | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
| // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
| // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN | |
| // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | |
| // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | |
| // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | |
| // USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| function n(e) { | |
| return Array.isArray ? Array.isArray(e) : "[object Array]" === m(e) | |
| } | |
| function r(e) { | |
| return "boolean" == typeof e | |
| } | |
| function i(e) { | |
| return null === e | |
| } | |
| function a(e) { | |
| return null == e | |
| } | |
| function o(e) { | |
| return "number" == typeof e | |
| } | |
| function s(e) { | |
| return "string" == typeof e | |
| } | |
| function l(e) { | |
| return "symbol" == typeof e | |
| } | |
| function u(e) { | |
| return void 0 === e | |
| } | |
| function c(e) { | |
| return "[object RegExp]" === m(e) | |
| } | |
| function f(e) { | |
| return "object" == typeof e && null !== e | |
| } | |
| function d(e) { | |
| return "[object Date]" === m(e) | |
| } | |
| function p(e) { | |
| return "[object Error]" === m(e) || e instanceof Error | |
| } | |
| function h(e) { | |
| return "function" == typeof e | |
| } | |
| function y(e) { | |
| return null === e || "boolean" == typeof e || "number" == typeof e || "string" == typeof e || "symbol" == typeof e || void 0 === e | |
| } | |
| function m(e) { | |
| return Object.prototype.toString.call(e) | |
| } | |
| t.isArray = n, t.isBoolean = r, t.isNull = i, t.isNullOrUndefined = a, t.isNumber = o, t.isString = s, t.isSymbol = l, t.isUndefined = u, t.isRegExp = c, t.isObject = f, t.isDate = d, t.isError = p, t.isFunction = h, t.isPrimitive = y, t.isBuffer = e.isBuffer | |
| }).call(t, n(16).Buffer) | |
| }, function (e, t, n) { | |
| (function (t) { | |
| e.exports = function (e, n) { | |
| for (var r = Math.min(e.length, n.length), i = new t(r), a = 0; a < r; ++a) i[a] = e[a] ^ n[a]; | |
| return i | |
| } | |
| }).call(t, n(16).Buffer) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r() { | |
| this.pending = null, this.pendingTotal = 0, this.blockSize = this.constructor.blockSize, this.outSize = this.constructor.outSize, this.hmacStrength = this.constructor.hmacStrength, this.padLength = this.constructor.padLength / 8, this.endian = "big", this._delta8 = this.blockSize / 8, this._delta32 = this.blockSize / 32 | |
| } | |
| var i = n(65), | |
| a = n(52); | |
| t.BlockHash = r, r.prototype.update = function (e, t) { | |
| if (e = i.toArray(e, t), this.pending ? this.pending = this.pending.concat(e) : this.pending = e, this.pendingTotal += e.length, this.pending.length >= this._delta8) { | |
| e = this.pending; | |
| var n = e.length % this._delta8; | |
| this.pending = e.slice(e.length - n, e.length), 0 === this.pending.length && (this.pending = null), e = i.join32(e, 0, e.length - n, this.endian); | |
| for (var r = 0; r < e.length; r += this._delta32) this._update(e, r, r + this._delta32) | |
| } | |
| return this | |
| }, r.prototype.digest = function (e) { | |
| return this.update(this._pad()), a(null === this.pending), this._digest(e) | |
| }, r.prototype._pad = function () { | |
| var e = this.pendingTotal, | |
| t = this._delta8, | |
| n = t - (e + this.padLength) % t, | |
| r = new Array(n + this.padLength); | |
| r[0] = 128; | |
| for (var i = 1; i < n; i++) r[i] = 0; | |
| if (e <<= 3, "big" === this.endian) { | |
| for (var a = 8; a < this.padLength; a++) r[i++] = 0; | |
| r[i++] = 0, r[i++] = 0, r[i++] = 0, r[i++] = 0, r[i++] = e >>> 24 & 255, r[i++] = e >>> 16 & 255, r[i++] = e >>> 8 & 255, r[i++] = 255 & e | |
| } else | |
| for (r[i++] = 255 & e, r[i++] = e >>> 8 & 255, r[i++] = e >>> 16 & 255, r[i++] = e >>> 24 & 255, r[i++] = 0, r[i++] = 0, r[i++] = 0, r[i++] = 0, a = 8; a < this.padLength; a++) r[i++] = 0; | |
| return r | |
| } | |
| }, function (e, t, n) { | |
| var r = t; | |
| r.bignum = n(30), r.define = n(775).define, r.base = n(127), r.constants = n(345), r.decoders = n(781), r.encoders = n(783) | |
| }, function (e, t, n) { | |
| var r = t; | |
| r.Reporter = n(778).Reporter, r.DecoderBuffer = n(344).DecoderBuffer, r.EncoderBuffer = n(344).EncoderBuffer, r.Node = n(779) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = { | |
| PROGRESS: { | |
| NOT_STARTED: 0, | |
| STARTED: 100, | |
| OPENING_EVENT_FIRST_HALF: 150, | |
| READY: 200, | |
| OPENING_EVENT_LAST_HALF: 300, | |
| TOP: 400, | |
| AFTER_ACTION: 450, | |
| BEFORE_COMMU: 500, | |
| AFTER_COMMU: 550, | |
| SKILL_BOARD: 600, | |
| AFTER_SKILL_BOARD: 700, | |
| BEFORE_AUDITION_CHEER: 730, | |
| AFTER_AUDITION_CHEER: 750, | |
| AUDITION: 800, | |
| AUDITION_RESULT: 900, | |
| IDOL_RANK: 950, | |
| MY_PAGE: 1e3, | |
| FINISHED: 99999 | |
| } | |
| } | |
| }, function (e, t, n) { | |
| function r() {} | |
| function i(e) { | |
| if (!y(e)) return e; | |
| var t = []; | |
| for (var n in e) a(t, n, e[n]); | |
| return t.join("&") | |
| } | |
| function a(e, t, n) { | |
| if (null != n) | |
| if (Array.isArray(n)) n.forEach(function (n) { | |
| a(e, t, n) | |
| }); | |
| else if (y(n)) | |
| for (var r in n) a(e, t + "[" + r + "]", n[r]); | |
| else e.push(encodeURIComponent(t) + "=" + encodeURIComponent(n)); | |
| else null === n && e.push(encodeURIComponent(t)) | |
| } | |
| function o(e) { | |
| for (var t, n, r = {}, i = e.split("&"), a = 0, o = i.length; a < o; ++a) t = i[a], n = t.indexOf("="), -1 == n ? r[decodeURIComponent(t)] = "" : r[decodeURIComponent(t.slice(0, n))] = decodeURIComponent(t.slice(n + 1)); | |
| return r | |
| } | |
| function s(e) { | |
| for (var t, n, r, i, a = e.split(/\r?\n/), o = {}, s = 0, l = a.length; s < l; ++s) n = a[s], -1 !== (t = n.indexOf(":")) && (r = n.slice(0, t).toLowerCase(), i = b(n.slice(t + 1)), o[r] = i); | |
| return o | |
| } | |
| function l(e) { | |
| return /[\/+]json($|[^-\w])/.test(e) | |
| } | |
| function u(e) { | |
| this.req = e, this.xhr = this.req.xhr, this.text = "HEAD" != this.req.method && ("" === this.xhr.responseType || "text" === this.xhr.responseType) || void 0 === this.xhr.responseType ? this.xhr.responseText : null, this.statusText = this.req.xhr.statusText; | |
| var t = this.xhr.status; | |
| 1223 === t && (t = 204), this._setStatusProperties(t), this.header = this.headers = s(this.xhr.getAllResponseHeaders()), this.header["content-type"] = this.xhr.getResponseHeader("content-type"), this._setHeaderProperties(this.header), null === this.text && e._responseType ? this.body = this.xhr.response : this.body = "HEAD" != this.req.method ? this._parseBody(this.text ? this.text : this.xhr.response) : null | |
| } | |
| function c(e, t) { | |
| var n = this; | |
| this._query = this._query || [], this.method = e, this.url = t, this.header = {}, this._header = {}, this.on("end", function () { | |
| var e = null, | |
| t = null; | |
| try { | |
| t = new u(n) | |
| } catch (t) { | |
| return e = new Error("Parser is unable to parse the response"), e.parse = !0, e.original = t, n.xhr ? (e.rawResponse = void 0 === n.xhr.responseType ? n.xhr.responseText : n.xhr.response, e.status = n.xhr.status ? n.xhr.status : null, e.statusCode = e.status) : (e.rawResponse = null, e.status = null), n.callback(e) | |
| } | |
| n.emit("response", t); | |
| var r; | |
| try { | |
| n._isResponseOK(t) || (r = new Error(t.statusText || "Unsuccessful HTTP response")) | |
| } catch (e) { | |
| r = e | |
| } | |
| r ? (r.original = e, r.response = t, r.status = t.status, n.callback(r, t)) : n.callback(null, t) | |
| }) | |
| } | |
| function f(e, t, n) { | |
| var r = g("DELETE", e); | |
| return "function" == typeof t && (n = t, t = null), t && r.send(t), n && r.end(n), r | |
| } | |
| var d; | |
| d = "undefined" != typeof window ? window : "undefined" != typeof self ? self : this; | |
| var p = n(815), | |
| h = n(816), | |
| y = n(358), | |
| m = n(817), | |
| _ = n(819), | |
| g = t = e.exports = function (e, n) { | |
| return "function" == typeof n ? new t.Request("GET", e).end(n) : 1 == arguments.length ? new t.Request("GET", e) : new t.Request(e, n) | |
| }; | |
| t.Request = c, g.getXHR = function () { | |
| if (!(!d.XMLHttpRequest || d.location && "file:" == d.location.protocol && d.ActiveXObject)) return new XMLHttpRequest; | |
| try { | |
| return new ActiveXObject("Microsoft.XMLHTTP") | |
| } catch (e) {} | |
| try { | |
| return new ActiveXObject("Msxml2.XMLHTTP.6.0") | |
| } catch (e) {} | |
| try { | |
| return new ActiveXObject("Msxml2.XMLHTTP.3.0") | |
| } catch (e) {} | |
| try { | |
| return new ActiveXObject("Msxml2.XMLHTTP") | |
| } catch (e) {} | |
| throw Error("Browser-only version of superagent could not find XHR") | |
| }; | |
| var b = "".trim ? function (e) { | |
| return e.trim() | |
| } : function (e) { | |
| return e.replace(/(^\s*|\s*$)/g, "") | |
| }; | |
| g.serializeObject = i, g.parseString = o, g.types = { | |
| html: "text/html", | |
| json: "application/json", | |
| xml: "text/xml", | |
| urlencoded: "application/x-www-form-urlencoded", | |
| form: "application/x-www-form-urlencoded", | |
| "form-data": "application/x-www-form-urlencoded" | |
| }, g.serialize = { | |
| "application/x-www-form-urlencoded": i, | |
| "application/json": JSON.stringify | |
| }, g.parse = { | |
| "application/x-www-form-urlencoded": o, | |
| "application/json": JSON.parse | |
| }, m(u.prototype), u.prototype._parseBody = function (e) { | |
| var t = g.parse[this.type]; | |
| return this.req._parser ? this.req._parser(this, e) : (!t && l(this.type) && (t = g.parse["application/json"]), t && e && (e.length || e instanceof Object) ? t(e) : null) | |
| }, u.prototype.toError = function () { | |
| var e = this.req, | |
| t = e.method, | |
| n = e.url, | |
| r = "cannot " + t + " " + n + " (" + this.status + ")", | |
| i = new Error(r); | |
| return i.status = this.status, i.method = t, i.url = n, i | |
| }, g.Response = u, p(c.prototype), h(c.prototype), c.prototype.type = function (e) { | |
| return this.set("Content-Type", g.types[e] || e), this | |
| }, c.prototype.accept = function (e) { | |
| return this.set("Accept", g.types[e] || e), this | |
| }, c.prototype.auth = function (e, t, n) { | |
| 1 === arguments.length && (t = ""), "object" == typeof t && null !== t && (n = t, t = ""), n || (n = { | |
| type: "function" == typeof btoa ? "basic" : "auto" | |
| }); | |
| var r = function (e) { | |
| if ("function" == typeof btoa) return btoa(e); | |
| throw new Error("Cannot use basic auth, btoa is not a function") | |
| }; | |
| return this._auth(e, t, n, r) | |
| }, c.prototype.query = function (e) { | |
| return "string" != typeof e && (e = i(e)), e && this._query.push(e), this | |
| }, c.prototype.attach = function (e, t, n) { | |
| if (t) { | |
| if (this._data) throw Error("superagent can't mix .send() and .attach()"); | |
| this._getFormData().append(e, t, n || t.name) | |
| } | |
| return this | |
| }, c.prototype._getFormData = function () { | |
| return this._formData || (this._formData = new d.FormData), this._formData | |
| }, c.prototype.callback = function (e, t) { | |
| if (this._shouldRetry(e, t)) return this._retry(); | |
| var n = this._callback; | |
| this.clearTimeout(), e && (this._maxRetries && (e.retries = this._retries - 1), this.emit("error", e)), n(e, t) | |
| }, c.prototype.crossDomainError = function () { | |
| var e = new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc."); | |
| e.crossDomain = !0, e.status = this.status, e.method = this.method, e.url = this.url, this.callback(e) | |
| }, c.prototype.buffer = c.prototype.ca = c.prototype.agent = function () { | |
| return this | |
| }, c.prototype.pipe = c.prototype.write = function () { | |
| throw Error("Streaming is not supported in browser version of superagent") | |
| }, c.prototype._isHost = function (e) { | |
| return e && "object" == typeof e && !Array.isArray(e) && "[object Object]" !== Object.prototype.toString.call(e) | |
| }, c.prototype.end = function (e) { | |
| return this._endCalled, this._endCalled = !0, this._callback = e || r, this._finalizeQueryString(), this._end() | |
| }, c.prototype._end = function () { | |
| var e = this, | |
| t = this.xhr = g.getXHR(), | |
| n = this._formData || this._data; | |
| this._setTimeouts(), t.onreadystatechange = function () { | |
| var n = t.readyState; | |
| if (n >= 2 && e._responseTimeoutTimer && clearTimeout(e._responseTimeoutTimer), 4 == n) { | |
| var r; | |
| try { | |
| r = t.status | |
| } catch (e) { | |
| r = 0 | |
| } | |
| if (!r) { | |
| if (e.timedout || e._aborted) return; | |
| return e.crossDomainError() | |
| } | |
| e.emit("end") | |
| } | |
| }; | |
| var r = function (t, n) { | |
| n.total > 0 && (n.percent = n.loaded / n.total * 100), n.direction = t, e.emit("progress", n) | |
| }; | |
| if (this.hasListeners("progress")) try { | |
| t.onprogress = r.bind(null, "download"), t.upload && (t.upload.onprogress = r.bind(null, "upload")) | |
| } catch (e) {} | |
| try { | |
| this.username && this.password ? t.open(this.method, this.url, !0, this.username, this.password) : t.open(this.method, this.url, !0) | |
| } catch (e) { | |
| return this.callback(e) | |
| } | |
| if (this._withCredentials && (t.withCredentials = !0), !this._formData && "GET" != this.method && "HEAD" != this.method && "string" != typeof n && !this._isHost(n)) { | |
| var i = this._header["content-type"], | |
| a = this._serializer || g.serialize[i ? i.split(";")[0] : ""]; | |
| !a && l(i) && (a = g.serialize["application/json"]), a && (n = a(n)) | |
| } | |
| for (var o in this.header) null != this.header[o] && this.header.hasOwnProperty(o) && t.setRequestHeader(o, this.header[o]); | |
| return this._responseType && (t.responseType = this._responseType), this.emit("request", this), t.send(void 0 !== n ? n : null), this | |
| }, g.agent = function () { | |
| return new _ | |
| }, ["GET", "POST", "OPTIONS", "PATCH", "PUT", "DELETE"].forEach(function (e) { | |
| _.prototype[e.toLowerCase()] = function (t, n) { | |
| var r = new g.Request(e, t); | |
| return this._setDefaults(r), n && r.end(n), r | |
| } | |
| }), _.prototype.del = _.prototype.delete, g.get = function (e, t, n) { | |
| var r = g("GET", e); | |
| return "function" == typeof t && (n = t, t = null), t && r.query(t), n && r.end(n), r | |
| }, g.head = function (e, t, n) { | |
| var r = g("HEAD", e); | |
| return "function" == typeof t && (n = t, t = null), t && r.query(t), n && r.end(n), r | |
| }, g.options = function (e, t, n) { | |
| var r = g("OPTIONS", e); | |
| return "function" == typeof t && (n = t, t = null), t && r.send(t), n && r.end(n), r | |
| }, g.del = f, g.delete = f, g.patch = function (e, t, n) { | |
| var r = g("PATCH", e); | |
| return "function" == typeof t && (n = t, t = null), t && r.send(t), n && r.end(n), r | |
| }, g.post = function (e, t, n) { | |
| var r = g("POST", e); | |
| return "function" == typeof t && (n = t, t = null), t && r.send(t), n && r.end(n), r | |
| }, g.put = function (e, t, n) { | |
| var r = g("PUT", e); | |
| return "function" == typeof t && (n = t, t = null), t && r.send(t), n && r.end(n), r | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e) { | |
| if (Array.isArray(e)) { | |
| for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t]; | |
| return n | |
| } | |
| return Array.from(e) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.processConcertResultResponse = t.processAuditionResultResponse = t.processConcertResumeResponse = t.processConcertStartResponse = t.processConcertReadyResponse = t.getMajorUnitId = void 0; | |
| var a = n(131), | |
| o = r(a), | |
| s = n(404), | |
| l = r(s), | |
| u = n(170), | |
| c = r(u), | |
| f = n(162), | |
| d = r(f), | |
| p = n(20), | |
| h = r(p), | |
| y = n(70), | |
| m = r(y), | |
| _ = n(171), | |
| g = r(_), | |
| b = t.getMajorUnitId = function (e) { | |
| var t = {}, | |
| n = !0, | |
| r = !1, | |
| i = void 0; | |
| try { | |
| for (var a, o = e[Symbol.iterator](); !(n = (a = o.next()).done); n = !0) { | |
| var s = a.value, | |
| l = s.unitId; | |
| if (t[l]) { | |
| if (++t[l] >= 3) return l | |
| } else t[l] = 1 | |
| } | |
| } catch (e) { | |
| r = !0, i = e | |
| } finally { | |
| try { | |
| !n && o.return && o.return() | |
| } finally { | |
| if (r) throw i | |
| } | |
| } | |
| return 0 | |
| }, | |
| v = function (e) { | |
| return { | |
| eventCategory: d.default.supportSkill, | |
| id: e.eventId, | |
| supportSkill: e | |
| } | |
| }, | |
| w = (t.processConcertReadyResponse = function (e) { | |
| var t = e.body; | |
| return t.userProduceIdol && aoba.utils.setPrototypeOf(t.userProduceIdol, o.default), t.produceEvents = [], t.concertEvent && (t.concertEvent.eventCategory = d.default.concertEvent, t.produceEvents.push(t.concertEvent)), t.communicationCheer && (t.communicationCheer.eventCategory = d.default.communicationCheer, t.produceEvents.push(t.communicationCheer)), Promise.resolve(t) | |
| }, t.processConcertStartResponse = function (e) { | |
| var t = e.body; | |
| t.userProduceSupportIdols = t.userProduceSupportIdols.slice(0, 4); | |
| var n = t.produceAudition || t.produceConcert, | |
| r = t.userProduceIdol, | |
| a = t.userProduceSupportIdols, | |
| s = t.produceTrendCombination, | |
| u = n.rivals, | |
| f = n.judges, | |
| d = [].concat(i(u), [{ | |
| character: r.userIdol.idol.character, | |
| mental: r.mental, | |
| isPlayer: !0 | |
| }]); | |
| aoba.utils.setPrototypeOf(r, o.default); | |
| var p = !0, | |
| y = !1, | |
| _ = void 0; | |
| try { | |
| for (var g, v = a[Symbol.iterator](); !(p = (g = v.next()).done); p = !0) { | |
| var w = g.value; | |
| aoba.utils.setPrototypeOf(w, l.default) | |
| } | |
| } catch (e) { | |
| y = !0, _ = e | |
| } finally { | |
| try { | |
| !p && v.return && v.return() | |
| } finally { | |
| if (y) throw _ | |
| } | |
| } | |
| var k = !0, | |
| S = !1, | |
| I = void 0; | |
| try { | |
| for (var E, A = d[Symbol.iterator](); !(k = (E = A.next()).done); k = !0) { | |
| var x = E.value; | |
| aoba.utils.setPrototypeOf(x.character, c.default) | |
| } | |
| } catch (e) { | |
| S = !0, I = e | |
| } finally { | |
| try { | |
| !k && A.return && A.return() | |
| } finally { | |
| if (S) throw I | |
| } | |
| } | |
| var C = r.memoryAppeal; | |
| C && (C.idol = r.userIdol.idol, C.imagePaths = { | |
| card: r.getImagePath("concert_card"), | |
| icon: "memory_skill_icon.png" | |
| }, C.isMemoryAppeal = !0, C.skillEffects = C.memoryAppealEffects), r.activeSkills.map(function (e) { | |
| return e.idol = r.userIdol.idol, e.belongsToSupportIdol = !1, e.imagePaths = { | |
| card: r.getImagePath("concert_card"), | |
| icon: r.getImagePath("concert_icon") | |
| }, e | |
| }); | |
| var T = a.map(function (e) { | |
| var t = e.activeSkill; | |
| return t.idol = e.userSupportIdol.supportIdol, t.belongsToSupportIdol = !0, t.imagePaths = { | |
| card: e.getImagePath("concert_card"), | |
| icon: e.getImagePath("concert_icon") | |
| }, t | |
| }), | |
| P = [].concat(i(r.activeSkills), i(T)); | |
| P.forEach(function (e) { | |
| m.default.setActiveSkillMixin(e) | |
| }); | |
| var O = !0, | |
| N = !1, | |
| M = void 0; | |
| try { | |
| for (var R, D = r.passiveSkills[Symbol.iterator](); !(O = (R = D.next()).done); O = !0) { | |
| var F = R.value; | |
| m.default.setPassiveSkillMixin(F), F.idol = r.userIdol.idol | |
| } | |
| } catch (e) { | |
| N = !0, M = e | |
| } finally { | |
| try { | |
| !O && D.return && D.return() | |
| } finally { | |
| if (N) throw M | |
| } | |
| }["first", "second", "third"].forEach(function (e, t) { | |
| var n = s[e]; | |
| f.find(function (e) { | |
| return e.attribute === n | |
| }).order = t + 1 | |
| }), r.isCenter = !0, r.displayParams = { | |
| mental: r.mental, | |
| vocal: r.vocal, | |
| dance: r.dance, | |
| visual: r.mental | |
| }; | |
| var B = !0, | |
| j = !1, | |
| L = void 0; | |
| try { | |
| for (var U, H = a[Symbol.iterator](); !(B = (U = H.next()).done); B = !0) { | |
| var G = U.value; | |
| G.idolId = G.userSupportIdol.supportIdol.id | |
| } | |
| } catch (e) { | |
| j = !0, L = e | |
| } finally { | |
| try { | |
| !B && H.return && H.return() | |
| } finally { | |
| if (j) throw L | |
| } | |
| } | |
| var z = [r].concat(i(a)); | |
| return t.activeSkills = P, t.judges = f, t.rivals = d, t.activeSkills = P, t.idols = z, t.musicPath = h.default.createConcertMusicPath("main", b(z)), Promise.resolve(t) | |
| }); | |
| t.processConcertResumeResponse = function (e) { | |
| var t = e.body, | |
| n = JSON.parse(t.gameData); | |
| n.produceState = t.produceState, n.turnNum = t.turnNum; | |
| var r = t.playData, | |
| i = r.map(function (e) { | |
| return JSON.parse(e) | |
| }); | |
| return n.appealRequests = i, w({ | |
| body: n | |
| }) | |
| }, t.processAuditionResultResponse = function (e) { | |
| var t = e.body; | |
| t.userProduceSupportIdols = t.userProduceSupportIdols.slice(0, 4); | |
| var n = t.userProduceIdol, | |
| r = t.userProduceSupportIdols, | |
| i = t.produceEvents, | |
| a = t.communicationTelevision, | |
| s = t.communicationAudition, | |
| u = t.produceCommunicationPromiseResult, | |
| c = t.supportSkills; | |
| t.order = t.produceAuditionOrder, t.result = t.produceAuditionResult, t.score = t.produceAuditionScore, t.score || (t.score = 0), t.concertData = t.produceAudition, t.concertType = "audition", aoba.utils.setPrototypeOf(n, o.default); | |
| var f = !0, | |
| p = !1, | |
| h = void 0; | |
| try { | |
| for (var y, m = r[Symbol.iterator](); !(f = (y = m.next()).done); f = !0) { | |
| var _ = y.value; | |
| aoba.utils.setPrototypeOf(_, l.default) | |
| } | |
| } catch (e) { | |
| p = !0, h = e | |
| } finally { | |
| try { | |
| !f && m.return && m.return() | |
| } finally { | |
| if (p) throw h | |
| } | |
| } | |
| if (a && (a.eventCategory = d.default.communicationTelevision), s && (s.eventCategory = d.default.communicationAudition), c.forEach(function (e) { | |
| aoba.utils.setPrototypeOf(e, g.default.create(e.effectType)) | |
| }), i.forEach(function (e) { | |
| e.answers = [{ | |
| id: "1" | |
| }, { | |
| id: "2" | |
| }, { | |
| id: "3" | |
| }], e.eventCategory = d.default.event | |
| }), u) { | |
| var b = d.default.communicationPromiseResult.getResult(u), | |
| w = c.find(function (e) { | |
| return e.isPromiseRecover() | |
| }); | |
| !b && w ? (u.eventCategory = d.default.communicationPromiseRecover, u.resultEvent = v(w)) : u.eventCategory = d.default.communicationPromiseResult | |
| } | |
| return Promise.resolve(t) | |
| }, t.processConcertResultResponse = function (e) { | |
| var t = e.body; | |
| t.userProduceSupportIdols = t.userProduceSupportIdols.slice(0, 4); | |
| var n = t.userProduceIdol, | |
| r = t.userProduceSupportIdols, | |
| i = t.concertEvent; | |
| t.order = t.produceConcertOrder, t.result = t.produceConcertResult, t.score = t.produceConcertScore, t.score || (t.score = 0), t.concertData = t.produceConcert, aoba.utils.setPrototypeOf(n, o.default); | |
| var a = !0, | |
| s = !1, | |
| u = void 0; | |
| try { | |
| for (var c, f = r[Symbol.iterator](); !(a = (c = f.next()).done); a = !0) { | |
| var p = c.value; | |
| aoba.utils.setPrototypeOf(p, l.default) | |
| } | |
| } catch (e) { | |
| s = !0, u = e | |
| } finally { | |
| try { | |
| !a && f.return && f.return() | |
| } finally { | |
| if (s) throw u | |
| } | |
| } | |
| return i && (i.eventCategory = d.default.concertEvent), Promise.resolve(t) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = n(76), | |
| i = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(r); | |
| t.default = { | |
| getImagePath: function (e) { | |
| return this._extendedUserIdol.getImagePath(e) | |
| }, | |
| getSpinePath: function (e) { | |
| return this._extendedUserIdol.getSpinePath(e) | |
| }, | |
| getMoviePath: function (e) { | |
| return this._extendedUserIdol.getMoviePath(e) | |
| }, | |
| getVoicePath: function (e) { | |
| return this._extendedUserIdol.getVoicePath(e) | |
| }, | |
| getRarityImagePath: function (e) { | |
| return this._extendedUserIdol.getRarityImagePath(e) | |
| }, | |
| getUnitImagePath: function (e) { | |
| return this._extendedUserIdol.getUnitImagePath(e) | |
| }, | |
| getParameterRank: function (e) { | |
| var t = this.idolParameterRank.filter(function (t) { | |
| return t.category === e | |
| }), | |
| n = this[e]; | |
| return t.sort(function (e, t) { | |
| return t.value - e.value | |
| }).find(function (e) { | |
| return n >= e.value | |
| }).rank | |
| }, | |
| getTotalAppeal: function () { | |
| var e = this; | |
| return ["vocal", "dance", "visual"].reduce(function (t, n) { | |
| return t + e[n] | |
| }, 0) | |
| }, | |
| get name() { | |
| return this._extendedUserIdol.name | |
| }, | |
| get firstName() { | |
| return this._extendedUserIdol.firstName | |
| }, | |
| get idolId() { | |
| return this._extendedUserIdol.idolId | |
| }, | |
| get characterId() { | |
| return this._extendedUserIdol.characterId | |
| }, | |
| get unitId() { | |
| return this._extendedUserIdol.unitId | |
| }, | |
| get idolParameterRank() { | |
| return this.userIdol.idol.idolParameterRanks | |
| }, | |
| get memoryAppealLevel() { | |
| return this.memoryAppeal ? this.memoryAppeal.level : 0 | |
| }, | |
| get tensionLevel() { | |
| return this.produceTension.tensionLevel | |
| }, | |
| set tensionLevel(e) { | |
| this.produceTension.tensionLevel = e | |
| }, | |
| get _extendedUserIdol() { | |
| return aoba.utils.getPrototypeOf(this.userIdol) !== i.default && aoba.utils.setPrototypeOf(this.userIdol, i.default), this.userIdol | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(9), | |
| a = r(i), | |
| o = n(3), | |
| s = r(o), | |
| l = n(943), | |
| u = r(l), | |
| c = n(114), | |
| f = function () { | |
| var e = { | |
| id: c.claims.id, | |
| nickname: s.default.t("guestUser"), | |
| grade: 0 | |
| }; | |
| return aoba.utils.setPrototypeOf(e, u.default), e | |
| }; | |
| t.default = { | |
| get: function () { | |
| return new Promise(function (e) { | |
| if (c.claims.is_guest) return void e(f()); | |
| a.default.get("earthUser").then(function (t) { | |
| var n = t.body; | |
| return aoba.utils.setPrototypeOf(n, u.default), e(n) | |
| }).catch(function () { | |
| return e(f()) | |
| }) | |
| }) | |
| }, | |
| getMoneyPower: function () { | |
| return new Promise(function (e) { | |
| if (c.claims.is_guest) return void e({ | |
| coin: "-", | |
| point: "-" | |
| }); | |
| a.default.get("earthUser/moneyPower").then(function (t) { | |
| return e(t.body) | |
| }).catch(function () { | |
| return e({ | |
| coin: "-", | |
| point: "-" | |
| }) | |
| }) | |
| }) | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(947), | |
| a = r(i), | |
| o = n(1), | |
| s = r(o), | |
| l = { | |
| execCopy: function (e) { | |
| return (0, a.default)(e) | |
| }, | |
| calcScrollSize: function () { | |
| var e = window.innerWidth, | |
| t = window.innerHeight, | |
| n = Math.max(document.body.scrollWidth, document.documentElement.scrollWidth), | |
| r = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight), | |
| i = 0, | |
| a = 0; | |
| return e < n && (i = (n - e) / 2), t < r && (a = (r - t) / 2), { | |
| scrollX: i, | |
| scrollY: a | |
| } | |
| }, | |
| resizeDom: function (e, t, n, r, i) { | |
| var a = document.getElementsByTagName("canvas")[0].getBoundingClientRect(), | |
| o = this.calcScrollSize(), | |
| l = o.scrollX, | |
| u = o.scrollY, | |
| c = a.width / s.default.SCREEN_WIDTH, | |
| f = a.top + Math.floor(n * c) + u, | |
| d = a.left + Math.floor(t * c) + l; | |
| e.style.top = f + "px", e.style.left = d + "px", e.style.width = Math.floor(r * c) + "px", e.style.height = Math.floor(i * c) + "px" | |
| }, | |
| createClickTargetDom: function (e, t, n, r) { | |
| var i = document.createElement("div"); | |
| return i.style.position = "fixed", i.style.left = "50%", i.style.transform = "translate(-50%, -50%)", this.resizeDom(i, e, t, n, r), i | |
| }, | |
| createLinkTargetDom: function (e, t, n, r, i) { | |
| var a = !(arguments.length > 5 && void 0 !== arguments[5]) || arguments[5], | |
| o = this.createClickTargetDom(e, t, n, r), | |
| s = document.createElement("a"); | |
| return s.style.display = "block", s.style.width = "100%", s.style.height = "100%", s.href = i, a && (s.target = "_blank"), o.appendChild(s), o | |
| } | |
| }; | |
| t.default = l | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = n(3), | |
| s = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(o), | |
| l = .65, | |
| u = { | |
| center: { | |
| anchor: .5, | |
| x: -45, | |
| y: 28 | |
| }, | |
| upperLeft: { | |
| anchor: 0, | |
| x: 2, | |
| y: 76 | |
| } | |
| }, | |
| c = function (e) { | |
| function t(e, n) { | |
| var a = n.isLabelVisible, | |
| o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "upperLeft"; | |
| r(this, t); | |
| var c = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)), | |
| f = u[o]; | |
| if (aoba.Sprite.new(e.getIconImagePath()).addTo(c, 0, 0, { | |
| scale: l, | |
| anchor: f.anchor | |
| }), a) { | |
| var d = aoba.Sprite.new("icol_label_base_l.png").addTo(c, f.x, f.y); | |
| aoba.Text.new(s.default.t("common.quantityMessage", { | |
| quantity: e.num | |
| }), { | |
| fill: 16777215, | |
| fontSize: 14, | |
| fontFamily: "UDKakugo_SmallPr6-B" | |
| }).addTo(d, 90, d.height / 2 + 1, { | |
| anchor: aoba.p(1, .5) | |
| }) | |
| } | |
| return c | |
| } | |
| return a(t, e), t | |
| }(aoba.Container); | |
| t.default = c | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| l = n(5), | |
| u = r(l), | |
| c = n(256), | |
| f = r(c), | |
| d = n(429), | |
| p = r(d), | |
| h = n(1053), | |
| y = r(h), | |
| m = n(1054), | |
| _ = r(m), | |
| g = n(1106), | |
| b = r(g), | |
| v = n(21), | |
| w = r(v), | |
| k = n(111), | |
| S = r(k), | |
| I = n(132), | |
| E = r(I), | |
| A = function (e) { | |
| function t() { | |
| return i(this, t), a(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments)) | |
| } | |
| return o(t, e), s(t, [{ | |
| key: "createConcertGame", | |
| value: function (e, n, r) { | |
| var i = _.default.new(Object.assign({}, e, { | |
| bg: r, | |
| concert: new b.default(e, n, t.LiveGameManager), | |
| onEndConcert: this.goToResult.bind(this) | |
| })); | |
| return i.start(), i.addTo(this), i | |
| } | |
| }, { | |
| key: "goToResult", | |
| value: function (e) { | |
| var t = this; | |
| Promise.all([this._requestFinishConcert(e), E.default.get()]).then(function (e) { | |
| return Object.assign(e[0], { | |
| userName: e[1].nickname | |
| }) | |
| }).then(function (e) { | |
| var n = S.default.createBlack(), | |
| r = Object.assign(e, { | |
| serverAction: t._produceAction | |
| }); | |
| w.default.loadSceneAsync("concertResult", { | |
| request: !1, | |
| sceneParams: r, | |
| transition: n | |
| }) | |
| }) | |
| } | |
| }], [{ | |
| key: "importModuleAsync", | |
| value: function () { | |
| return new Promise(function (e) { | |
| (0, y.default)(function (n) { | |
| t.LiveGameManager = n, e() | |
| }) | |
| }) | |
| } | |
| }, { | |
| key: "getContentResources", | |
| value: function (e) { | |
| var t = ["concert_player_icon", "memory_roulette_bad", "memory_roulette_good", "cut_in"], | |
| n = ["concert_card", "concert_icon"], | |
| r = ["cb_costume", "stand_costume"], | |
| i = ["concert_rival_icon", "active_skill_silhouette"]; | |
| return (0, p.default)(e, { | |
| centerIdolImageList: t, | |
| idolImageList: n, | |
| idolSpineList: r, | |
| rivalImageList: i | |
| }) | |
| } | |
| }, { | |
| key: "uiResources", | |
| get: function () { | |
| return f.default | |
| } | |
| }]), t | |
| }(u.default); | |
| t.default = A | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = n(9), | |
| i = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(r), | |
| a = { | |
| standby: function (e) { | |
| return i.default.post("produces/1/audition/actions/game/standby/" + e).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| appeal: function (e) { | |
| return i.default.post("produces/1/audition/actions/game/appeal", e).then(function (e) { | |
| return e.body | |
| }) | |
| } | |
| }, | |
| o = { | |
| standby: function () { | |
| return Promise.resolve() | |
| }, | |
| appeal: function () { | |
| return Promise.resolve() | |
| } | |
| }, | |
| s = { | |
| standby: function (e) { | |
| return i.default.post("produces/1/concert/actions/game/standby/" + e).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| appeal: function (e) { | |
| return i.default.post("produces/1/concert/actions/game/appeal", e).then(function (e) { | |
| return e.body | |
| }) | |
| } | |
| }, | |
| l = { | |
| standby: function (e) { | |
| return i.default.post("fesConcert/actions/game/standby/" + e).then(function (e) { | |
| return e.body | |
| }) | |
| }, | |
| appeal: function (e) { | |
| return i.default.post("fesConcert/actions/game/appeal", e).then(function (e) { | |
| return e.body | |
| }) | |
| } | |
| }; | |
| t.default = { | |
| audition: a, | |
| tutorialAudition: o, | |
| concert: s, | |
| fes: l | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var a = function () { | |
| function e(e, t) { | |
| var n = [], | |
| r = !0, | |
| i = !1, | |
| a = void 0; | |
| try { | |
| for (var o, s = e[Symbol.iterator](); !(r = (o = s.next()).done) && (n.push(o.value), !t || n.length !== t); r = !0); | |
| } catch (e) { | |
| i = !0, a = e | |
| } finally { | |
| try { | |
| !r && s.return && s.return() | |
| } finally { | |
| if (i) throw a | |
| } | |
| } | |
| return n | |
| } | |
| return function (t, n) { | |
| if (Array.isArray(t)) return t; | |
| if (Symbol.iterator in Object(t)) return e(t, n); | |
| throw new TypeError("Invalid attempt to destructure non-iterable instance") | |
| } | |
| }(), | |
| o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = n(32), | |
| l = r(s), | |
| u = n(1), | |
| c = r(u), | |
| f = function (e) { | |
| var t = e.map(function (e) { | |
| return e.getIconImagePath() | |
| }); | |
| return (0, l.default)(t) | |
| }, | |
| d = c.default.app, | |
| p = d.EVOLUTION_ENABLED_RARITY, | |
| h = d.MAX_EVOLUTION_STAGE, | |
| y = function (e) { | |
| return e.rarity >= p && e.evolutionStage !== h | |
| }, | |
| m = function () { | |
| function e() { | |
| i(this, e), this._idolLists = {} | |
| } | |
| return o(e, [{ | |
| key: "fetchIdolsAndResources", | |
| value: function (e, t) { | |
| var n = this; | |
| if (t) { | |
| var r = this._idolLists[e.name]; | |
| if (r) return Promise.resolve(r) | |
| } | |
| return e.serverAction.getList().then(function (t) { | |
| return t = t.sort(function (e, t) { | |
| var n = e.rarity - t.rarity; | |
| return 0 === n ? parseInt(e.id, 10) - parseInt(t.id, 10) : n | |
| }), n._storeIdolList(e.name, t), f(t).then(function () { | |
| return Promise.resolve(t) | |
| }) | |
| }) | |
| } | |
| }, { | |
| key: "fetchEvolutionIdolsAndResources", | |
| value: function (e, t) { | |
| var n = this; | |
| if (t) { | |
| var r = this._idolLists[e.name]; | |
| if (r) return Promise.resolve(r) | |
| } | |
| var i = e.name + "Id"; | |
| return Promise.all([e.serverAction.getList(), e.reserveServerAction.getList()]).then(function (e) { | |
| return n._setEvolvableIdols(e, i) | |
| }).then(function (t) { | |
| return n._storeIdolList(e.name, t), f(t).then(function () { | |
| return Promise.resolve(t) | |
| }) | |
| }) | |
| } | |
| }, { | |
| key: "setIdolDetail", | |
| value: function (e, t) { | |
| for (var n = this._idolLists[e.name], r = void 0, i = 0; i < n.length; i++) | |
| if (n[i].id === t.id) { | |
| r = i; | |
| break | |
| } | |
| n[r] = t | |
| } | |
| }, { | |
| key: "_setEvolvableIdols", | |
| value: function (e, t) { | |
| var n = [], | |
| r = a(e, 2), | |
| i = r[0], | |
| o = r[1], | |
| s = o.filter(function (e) { | |
| return e.num > 0 | |
| }); | |
| return i.forEach(function (e) { | |
| y(e) && s.some(function (n) { | |
| return n[t] === e.id | |
| }) && n.push(e) | |
| }), n | |
| } | |
| }, { | |
| key: "_storeIdolList", | |
| value: function (e, t) { | |
| this._idolLists[e] = t | |
| } | |
| }, { | |
| key: "updateIdolList", | |
| value: function (e, t, n) { | |
| if (!(y(t) && n.num > 0)) { | |
| for (var r = this._idolLists[e.name], i = void 0, a = 0; a < r.length; a++) | |
| if (r[a].id === t.id) { | |
| i = a; | |
| break | |
| } | |
| r.splice(i, 1) | |
| } | |
| } | |
| }, { | |
| key: "idolLists", | |
| get: function () { | |
| return this._idolLists | |
| } | |
| }]), e | |
| }(); | |
| t.default = m | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| l = n(1), | |
| u = r(l), | |
| c = n(1549), | |
| f = r(c), | |
| d = n(1553), | |
| p = r(d), | |
| h = { | |
| FREE: Symbol("free"), | |
| WAITING: Symbol("waiting"), | |
| PLAYING: Symbol("playing"), | |
| LOCKED: Symbol("locked") | |
| }, | |
| y = { | |
| tips: "images/tutorial/${id}.jpg", | |
| mask: "images/tutorial/mask/${id}.png", | |
| voice: "sounds/voice/staff/${id}" + u.default.asset.SOUND_EXTENSION | |
| }, | |
| m = { | |
| tips: function (e) { | |
| return y.tips.replace("${id}", e) | |
| }, | |
| mask: function (e) { | |
| return y.mask.replace("${id}", e) | |
| }, | |
| voice: function (e) { | |
| return y.voice.replace("${id}", e) | |
| } | |
| }, | |
| _ = { | |
| waitEvent: function (e) { | |
| var t = this, | |
| n = e.target, | |
| r = e.event; | |
| this._tutorialLayer.disable(); | |
| var i = this.getTargetContainer(n); | |
| return new Promise(function (e) { | |
| i.once(r, function () { | |
| t._tutorialLayer.enable(), t.deleteImage("finger"), e() | |
| }) | |
| }) | |
| }, | |
| waitInput: function (e) { | |
| var t = this, | |
| n = e.target, | |
| r = e.event, | |
| i = void 0 === r ? "tap" : r, | |
| a = e.bringFront, | |
| o = void 0 === a || a; | |
| this._tutorialLayer.disable(); | |
| var s = this.getTargetContainer(n); | |
| if (!o) return new Promise(function (e) { | |
| s.once(i, function () { | |
| t._tutorialLayer.enable(), t.deleteImage("finger"), e() | |
| }) | |
| }); | |
| var l = aoba.p(s.position.x, s.position.y), | |
| u = s.parent, | |
| c = s.getGlobalPosition(); | |
| return this._tutorialLayer.addButton(s), s.setPosition(c.x, c.y), new Promise(function (e) { | |
| s.once(i, function () { | |
| s.addTo(u, l.x, l.y), t._tutorialLayer.enable(), t.deleteImage("finger"), e() | |
| }) | |
| }) | |
| }, | |
| wait: function (e) { | |
| var t = e.time; | |
| return new Promise(function (e) { | |
| return setTimeout(e, t) | |
| }) | |
| }, | |
| trigger: function (e) { | |
| var t = e.target, | |
| n = e.event, | |
| r = void 0 === n ? "tap" : n, | |
| i = this.getTargetContainer(t); | |
| i.emit(r, i) | |
| }, | |
| showTips: function (e) { | |
| var t = e.imageName; | |
| this._tutorialLayer.showTips(m.tips(t)) | |
| }, | |
| hideTips: function () { | |
| this._tutorialLayer.hideTips() | |
| }, | |
| changeTips: function (e) { | |
| var t = e.imageName; | |
| this._tutorialLayer.changeTips(m.tips(t)) | |
| }, | |
| showImage: function (e) { | |
| var t = e.image, | |
| n = e.label, | |
| r = e.x, | |
| i = void 0 === r ? 0 : r, | |
| a = e.y, | |
| o = void 0 === a ? 0 : a, | |
| s = e.scale, | |
| l = void 0 === s ? 1 : s, | |
| u = aoba.Sprite.new(t); | |
| u.setPosition(i, o), u.scale.set(l), this.addImage(u, n) | |
| }, | |
| hideImage: function (e) { | |
| var t = e.label; | |
| this.deleteImage(t) | |
| }, | |
| showMask: function (e) { | |
| var t = e.imageName, | |
| n = e.label, | |
| r = e.scale, | |
| i = void 0 === r ? 2 : r, | |
| a = aoba.Sprite.new(m.mask(t)); | |
| a.scale.set(i), this.addMask(a, n) | |
| }, | |
| hideMask: function (e) { | |
| var t = e.label; | |
| this.deleteMask(t) | |
| }, | |
| showOverlay: function (e) { | |
| return this._tutorialLayer.showOverlay(e) | |
| }, | |
| hideOverlay: function () { | |
| return this._tutorialLayer.hideOverlay() | |
| }, | |
| changeOverlay: function (e) { | |
| this._tutorialLayer.changeOverlay(e) | |
| }, | |
| showComment: function (e) { | |
| return this._tutorialLayer.showComment(e) | |
| }, | |
| hideComment: function () { | |
| return this._tutorialLayer.hideComment() | |
| }, | |
| playComment: function (e) { | |
| this._tutorialLayer.playComment(e) | |
| }, | |
| showFinger: function (e) { | |
| var t = e.type, | |
| n = e.x, | |
| r = void 0 === n ? 0 : n, | |
| i = e.y, | |
| a = void 0 === i ? 0 : i, | |
| o = e.target, | |
| s = e.dx, | |
| l = e.dy, | |
| u = p.default.create(t); | |
| if (o) { | |
| var c = this.getTargetContainer(o), | |
| f = c.getGlobalPosition(); | |
| s && (f.x += s), l && (f.y += l), u.setPosition(f.x, f.y) | |
| } else u.setPosition(r, a); | |
| this.addImage(u, "finger") | |
| }, | |
| hideFinger: function () { | |
| this.deleteImage("finger") | |
| }, | |
| playVoice: function (e) { | |
| var t = e.voiceName; | |
| this._currentVoice && this._currentVoice.stop(), this._currentVoice = aoba.soundManager.playVoice(m.voice(t)) | |
| }, | |
| bringFront: function (e) { | |
| var t = e.target, | |
| n = this.getTargetContainer(t), | |
| r = n.getGlobalPosition(); | |
| this._tutorialLayer.addButton(n), n.setPosition(r.x, r.y) | |
| }, | |
| bringBack: function (e) { | |
| e._target | |
| }, | |
| pause: function (e) { | |
| var t = e.target, | |
| n = this.getTargetContainer(t); | |
| aoba.TweenManager.tweens && aoba.TweenManager.tweens.forEach(function (e) { | |
| e.target.parent === n && e.pause() | |
| }), n.pause() | |
| }, | |
| resume: function (e) { | |
| var t = e.target, | |
| n = this.getTargetContainer(t); | |
| aoba.TweenManager.tweens && aoba.TweenManager.tweens.forEach(function (e) { | |
| e.target.parent === n && e.resume() | |
| }), n.resume() | |
| } | |
| }, | |
| g = function (e) { | |
| function t(e, n) { | |
| i(this, t); | |
| var r = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); | |
| return r._targetLayer = n, r._tutorialLayer = f.default.new(), r._trackIndex = 0, r._tracks = e, r._commands = _, r._state = h.FREE, r._maskStore = {}, r._imageStore = {}, r._currentVoice = null, r._tutorialLayer.on("tap", r._handleTap, r), r._tutorialLayer.on("endText", r._handleEndText, r), r | |
| } | |
| return o(t, e), s(t, [{ | |
| key: "start", | |
| value: function () { | |
| this._tutorialLayer.addTo(this._targetLayer), this.playCurrentTrack() | |
| } | |
| }, { | |
| key: "playCurrentTrack", | |
| value: function () { | |
| var e = this, | |
| t = this._tracks[this._trackIndex], | |
| n = this._commands[t.command]; | |
| if (!n) return void this.forward(); | |
| var r = n.call(this, t) || Promise.resolve(); | |
| if ("playComment" === t.command) return void this._changeToPlaying(); | |
| t.lock ? this._state = h.LOCKED : r.then(function () { | |
| return e.forward() | |
| }) | |
| } | |
| }, { | |
| key: "forward", | |
| value: function () { | |
| this._trackIndex++, this._trackIndex < this._tracks.length ? (this._changeToFree(), this.playCurrentTrack()) : this.emit("end") | |
| } | |
| }, { | |
| key: "destroy", | |
| value: function () { | |
| this._currentVoice && this._currentVoice.stop(), this._tutorialLayer.destroy({ | |
| children: !0 | |
| }) | |
| } | |
| }, { | |
| key: "fadeOut", | |
| value: function () { | |
| return aoba.FrameTween.new(this._tutorialLayer).to({ | |
| alpha: 0 | |
| }, 3).promise() | |
| } | |
| }, { | |
| key: "getTargetContainer", | |
| value: function (e) { | |
| if (!e) return this._targetLayer; | |
| var t = this._targetLayer.getChildByNameRecursively(e); | |
| if (!t) throw new Error("target " + e + " is not found"); | |
| return t | |
| } | |
| }, { | |
| key: "addImage", | |
| value: function (e, t) { | |
| this._tutorialLayer.addImage(e), this._imageStore[t] = e | |
| } | |
| }, { | |
| key: "deleteImage", | |
| value: function (e) { | |
| var t = this._imageStore[e]; | |
| t && (t.destroy(), delete this._imageStore[e]) | |
| } | |
| }, { | |
| key: "addMask", | |
| value: function (e, t) { | |
| this._tutorialLayer.addMaskImage(e), this._maskStore[t] = e | |
| } | |
| }, { | |
| key: "deleteMask", | |
| value: function (e) { | |
| var t = this._maskStore[e]; | |
| t && (t.destroy(), delete this._maskStore[e]) | |
| } | |
| }, { | |
| key: "_handleTap", | |
| value: function () { | |
| switch (this._state) { | |
| case h.PLAYING: | |
| return void this._tutorialLayer.endText(); | |
| case h.LOCKED: | |
| return void this.forward(); | |
| default: | |
| return | |
| } | |
| } | |
| }, { | |
| key: "_handleEndText", | |
| value: function (e) { | |
| e ? this._changeToLocked() : this.forward() | |
| } | |
| }, { | |
| key: "_changeToFree", | |
| value: function () { | |
| this._state = h.FREE | |
| } | |
| }, { | |
| key: "_changeToPlaying", | |
| value: function () { | |
| this._state = h.PLAYING | |
| } | |
| }, { | |
| key: "_changeToLocked", | |
| value: function () { | |
| this._state = h.LOCKED | |
| } | |
| }], [{ | |
| key: "getTrackResources", | |
| value: function (e) { | |
| return e.map(function (e) { | |
| return e.imageName ? "showMask" === e.command ? m.mask(e.imageName) : m.tips(e.imageName) : e.voiceName ? m.voice(e.voiceName) : null | |
| }).filter(function (e) { | |
| return null !== e | |
| }) | |
| } | |
| }, { | |
| key: "createAndPlay", | |
| value: function (e, n) { | |
| var r = new t(e, n); | |
| return r.start(), new Promise(function (e) { | |
| r.once("end", function () { | |
| r.fadeOut().then(function () { | |
| r.destroy(), e() | |
| }) | |
| }) | |
| }) | |
| } | |
| }]), t | |
| }(aoba.utils.EventEmitter); | |
| t.default = g | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = ["images/ui/tutorial/parts.json"] | |
| }, function (e, t) {}, function (e, t, n) { | |
| var r = n(11), | |
| i = r["__core-js_shared__"] || (r["__core-js_shared__"] = {}); | |
| e.exports = function (e) { | |
| return i[e] || (i[e] = {}) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(49), | |
| i = n(29), | |
| a = n(88); | |
| e.exports = function (e) { | |
| return function (t, n, o) { | |
| var s, l = r(t), | |
| u = i(l.length), | |
| c = a(o, u); | |
| if (e && n != n) { | |
| for (; u > c;) | |
| if ((s = l[c++]) != s) return !0 | |
| } else | |
| for (; u > c; c++) | |
| if ((e || c in l) && l[c] === n) return e || c || 0; | |
| return !e && -1 | |
| } | |
| } | |
| }, function (e, t) { | |
| t.f = Object.getOwnPropertySymbols | |
| }, function (e, t, n) { | |
| var r = n(54); | |
| e.exports = Array.isArray || function (e) { | |
| return "Array" == r(e) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(17), | |
| i = n(54), | |
| a = n(25)("match"); | |
| e.exports = function (e) { | |
| var t; | |
| return r(e) && (void 0 !== (t = e[a]) ? !!t : "RegExp" == i(e)) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(25)("iterator"), | |
| i = !1; | |
| try { | |
| var a = [7][r](); | |
| a.return = function () { | |
| i = !0 | |
| }, Array.from(a, function () { | |
| throw 2 | |
| }) | |
| } catch (e) {} | |
| e.exports = function (e, t) { | |
| if (!t && !i) return !1; | |
| var n = !1; | |
| try { | |
| var a = [7], | |
| o = a[r](); | |
| o.next = function () { | |
| return { | |
| done: n = !0 | |
| } | |
| }, a[r] = function () { | |
| return o | |
| }, e(a) | |
| } catch (e) {} | |
| return n | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(8); | |
| e.exports = function () { | |
| var e = r(this), | |
| t = ""; | |
| return e.global && (t += "g"), e.ignoreCase && (t += "i"), e.multiline && (t += "m"), e.unicode && (t += "u"), e.sticky && (t += "y"), t | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(46), | |
| i = n(47), | |
| a = n(15), | |
| o = n(61), | |
| s = n(25); | |
| e.exports = function (e, t, n) { | |
| var l = s(e), | |
| u = n(o, l, "" [e]), | |
| c = u[0], | |
| f = u[1]; | |
| a(function () { | |
| var t = {}; | |
| return t[l] = function () { | |
| return 7 | |
| }, 7 != "" [e](t) | |
| }) && (i(String.prototype, e, c), r(RegExp.prototype, l, 2 == t ? function (e, t) { | |
| return f.call(e, this, t) | |
| } : function (e) { | |
| return f.call(e, this) | |
| })) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(8), | |
| i = n(37), | |
| a = n(25)("species"); | |
| e.exports = function (e, t) { | |
| var n, o = r(e).constructor; | |
| return void 0 === o || void 0 == (n = r(o)[a]) ? t : i(n) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(11), | |
| i = n(2), | |
| a = n(47), | |
| o = n(94), | |
| s = n(78), | |
| l = n(93), | |
| u = n(92), | |
| c = n(17), | |
| f = n(15), | |
| d = n(146), | |
| p = n(100), | |
| h = n(195); | |
| e.exports = function (e, t, n, y, m, _) { | |
| var g = r[e], | |
| b = g, | |
| v = m ? "set" : "add", | |
| w = b && b.prototype, | |
| k = {}, | |
| S = function (e) { | |
| var t = w[e]; | |
| a(w, e, "delete" == e ? function (e) { | |
| return !(_ && !c(e)) && t.call(this, 0 === e ? 0 : e) | |
| } : "has" == e ? function (e) { | |
| return !(_ && !c(e)) && t.call(this, 0 === e ? 0 : e) | |
| } : "get" == e ? function (e) { | |
| return _ && !c(e) ? void 0 : t.call(this, 0 === e ? 0 : e) | |
| } : "add" == e ? function (e) { | |
| return t.call(this, 0 === e ? 0 : e), this | |
| } : function (e, n) { | |
| return t.call(this, 0 === e ? 0 : e, n), this | |
| }) | |
| }; | |
| if ("function" == typeof b && (_ || w.forEach && !f(function () { | |
| (new b).entries().next() | |
| }))) { | |
| var I = new b, | |
| E = I[v](_ ? {} : -0, 1) != I, | |
| A = f(function () { | |
| I.has(1) | |
| }), | |
| x = d(function (e) { | |
| new b(e) | |
| }), | |
| C = !_ && f(function () { | |
| for (var e = new b, t = 5; t--;) e[v](t, t); | |
| return !e.has(-0) | |
| }); | |
| x || (b = t(function (t, n) { | |
| u(t, b, e); | |
| var r = h(new g, t, b); | |
| return void 0 != n && l(n, m, r[v], r), r | |
| }), b.prototype = w, w.constructor = b), (A || C) && (S("delete"), S("has"), m && S("get")), (C || E) && S(v), _ && w.clear && delete w.clear | |
| } else b = y.getConstructor(t, e, m, v), o(b.prototype, n), s.NEED = !0; | |
| return p(b, e), k[e] = b, i(i.G + i.W + i.F * (b != g), k), _ || y.setStrong(b, e, m), b | |
| } | |
| }, function (e, t, n) { | |
| for (var r, i = n(11), a = n(46), o = n(85), s = o("typed_array"), l = o("view"), u = !(!i.ArrayBuffer || !i.DataView), c = u, f = 0, d = "Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(","); f < 9;)(r = i[d[f++]]) ? (a(r.prototype, s, !0), a(r.prototype, l, !0)) : c = !1; | |
| e.exports = { | |
| ABV: u, | |
| CONSTR: c, | |
| TYPED: s, | |
| VIEW: l | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| e.exports = n(86) || !n(15)(function () { | |
| var e = Math.random(); | |
| __defineSetter__.call(null, e, function () {}), delete n(11)[e] | |
| }) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(2); | |
| e.exports = function (e) { | |
| r(r.S, e, { of: function () { | |
| for (var e = arguments.length, t = Array(e); e--;) t[e] = arguments[e]; | |
| return new this(t) | |
| } | |
| }) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(2), | |
| i = n(37), | |
| a = n(53), | |
| o = n(93); | |
| e.exports = function (e) { | |
| r(r.S, e, { | |
| from: function (e) { | |
| var t, n, r, s, l = arguments[1]; | |
| return i(this), t = void 0 !== l, t && i(l), void 0 == e ? new this : (n = [], t ? (r = 0, s = a(l, arguments[2], 2), o(e, !1, function (e) { | |
| n.push(s(e, r++)) | |
| })) : o(e, !1, n.push, n), new this(n)) | |
| } | |
| }) | |
| } | |
| }, function (e, t, n) { | |
| function r() { | |
| i.call(this) | |
| } | |
| // Copyright Joyent, Inc. and other Node contributors. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a | |
| // copy of this software and associated documentation files (the | |
| // "Software"), to deal in the Software without restriction, including | |
| // without limitation the rights to use, copy, modify, merge, publish, | |
| // distribute, sublicense, and/or sell copies of the Software, and to permit | |
| // persons to whom the Software is furnished to do so, subject to the | |
| // following conditions: | |
| // | |
| // The above copyright notice and this permission notice shall be included | |
| // in all copies or substantial portions of the Software. | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
| // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
| // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN | |
| // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | |
| // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | |
| // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | |
| // USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| e.exports = r; | |
| var i = n(217).EventEmitter; | |
| n(6)(r, i), r.Readable = n(218), r.Writable = n(715), r.Duplex = n(716), r.Transform = n(717), r.PassThrough = n(718), r.Stream = r, r.prototype.pipe = function (e, t) { | |
| function n(t) { | |
| e.writable && !1 === e.write(t) && u.pause && u.pause() | |
| } | |
| function r() { | |
| u.readable && u.resume && u.resume() | |
| } | |
| function a() { | |
| c || (c = !0, e.end()) | |
| } | |
| function o() { | |
| c || (c = !0, "function" == typeof e.destroy && e.destroy()) | |
| } | |
| function s(e) { | |
| if (l(), 0 === i.listenerCount(this, "error")) throw e | |
| } | |
| function l() { | |
| u.removeListener("data", n), e.removeListener("drain", r), u.removeListener("end", a), u.removeListener("close", o), u.removeListener("error", s), e.removeListener("error", s), u.removeListener("end", l), u.removeListener("close", l), e.removeListener("close", l) | |
| } | |
| var u = this; | |
| u.on("data", n), e.on("drain", r), e._isStdio || t && !1 === t.end || (u.on("end", a), u.on("close", o)); | |
| var c = !1; | |
| // Allow for unix-like usage: A.pipe(B).pipe(C) | |
| return u.on("error", s), e.on("error", s), u.on("end", l), u.on("close", l), e.on("close", l), e.emit("pipe", u), e | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| (function (t) { | |
| function n(e, n, r, i) { | |
| if ("function" != typeof e) throw new TypeError('"callback" argument must be a function'); | |
| var a, o, s = arguments.length; | |
| switch (s) { | |
| case 0: | |
| case 1: | |
| return t.nextTick(e); | |
| case 2: | |
| return t.nextTick(function () { | |
| e.call(null, n) | |
| }); | |
| case 3: | |
| return t.nextTick(function () { | |
| e.call(null, n, r) | |
| }); | |
| case 4: | |
| return t.nextTick(function () { | |
| e.call(null, n, r, i) | |
| }); | |
| default: | |
| for (a = new Array(s - 1), o = 0; o < a.length;) a[o++] = arguments[o]; | |
| return t.nextTick(function () { | |
| e.apply(null, a) | |
| }) | |
| } | |
| }!t.version || 0 === t.version.indexOf("v0.") || 0 === t.version.indexOf("v1.") && 0 !== t.version.indexOf("v1.8.") ? e.exports = n : e.exports = t.nextTick | |
| }).call(t, n(43)) | |
| }, function (e, t, n) { | |
| function r(e, t, n, r) { | |
| if (i.isBuffer(e) || (e = i.from(e, "binary")), t && (i.isBuffer(t) || (t = i.from(t, "binary")), 8 !== t.length)) throw new RangeError("salt should be Buffer with 8 byte length"); | |
| for (var o = n / 8, s = i.alloc(o), l = i.alloc(r || 0), u = i.alloc(0); o > 0 || r > 0;) { | |
| var c = new a; | |
| c.update(u), c.update(e), t && c.update(t), u = c.digest(); | |
| var f = 0; | |
| if (o > 0) { | |
| var d = s.length - o; | |
| f = Math.min(o, u.length), u.copy(s, d, 0, f), o -= f | |
| } | |
| if (f < u.length && r > 0) { | |
| var p = l.length - r, | |
| h = Math.min(r, u.length - f); | |
| u.copy(l, p, f, f + h), r -= h | |
| } | |
| } | |
| return u.fill(0), { | |
| key: s, | |
| iv: l | |
| } | |
| } | |
| var i = n(18).Buffer, | |
| a = n(727); | |
| e.exports = r | |
| }, function (e, t, n) { | |
| function r(e) { | |
| s.isBuffer(e) || (e = s.from(e)); | |
| for (var t = e.length / 4 | 0, n = new Array(t), r = 0; r < t; r++) n[r] = e.readUInt32BE(4 * r); | |
| return n | |
| } | |
| function i(e) { | |
| for (; 0 < e.length; e++) e[0] = 0 | |
| } | |
| function a(e, t, n, r, i) { | |
| for (var a, o, s, l, u = n[0], c = n[1], f = n[2], d = n[3], p = e[0] ^ t[0], h = e[1] ^ t[1], y = e[2] ^ t[2], m = e[3] ^ t[3], _ = 4, g = 1; g < i; g++) a = u[p >>> 24] ^ c[h >>> 16 & 255] ^ f[y >>> 8 & 255] ^ d[255 & m] ^ t[_++], o = u[h >>> 24] ^ c[y >>> 16 & 255] ^ f[m >>> 8 & 255] ^ d[255 & p] ^ t[_++], s = u[y >>> 24] ^ c[m >>> 16 & 255] ^ f[p >>> 8 & 255] ^ d[255 & h] ^ t[_++], l = u[m >>> 24] ^ c[p >>> 16 & 255] ^ f[h >>> 8 & 255] ^ d[255 & y] ^ t[_++], p = a, h = o, y = s, m = l; | |
| return a = (r[p >>> 24] << 24 | r[h >>> 16 & 255] << 16 | r[y >>> 8 & 255] << 8 | r[255 & m]) ^ t[_++], o = (r[h >>> 24] << 24 | r[y >>> 16 & 255] << 16 | r[m >>> 8 & 255] << 8 | r[255 & p]) ^ t[_++], s = (r[y >>> 24] << 24 | r[m >>> 16 & 255] << 16 | r[p >>> 8 & 255] << 8 | r[255 & h]) ^ t[_++], l = (r[m >>> 24] << 24 | r[p >>> 16 & 255] << 16 | r[h >>> 8 & 255] << 8 | r[255 & y]) ^ t[_++], a >>>= 0, o >>>= 0, s >>>= 0, l >>>= 0, [a, o, s, l] | |
| } | |
| function o(e) { | |
| this._key = r(e), this._reset() | |
| } | |
| var s = n(18).Buffer, | |
| l = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], | |
| u = function () { | |
| for (var e = new Array(256), t = 0; t < 256; t++) e[t] = t < 128 ? t << 1 : t << 1 ^ 283; | |
| for (var n = [], r = [], i = [ | |
| [], | |
| [], | |
| [], | |
| [] | |
| ], a = [ | |
| [], | |
| [], | |
| [], | |
| [] | |
| ], o = 0, s = 0, l = 0; l < 256; ++l) { | |
| var u = s ^ s << 1 ^ s << 2 ^ s << 3 ^ s << 4; | |
| u = u >>> 8 ^ 255 & u ^ 99, n[o] = u, r[u] = o; | |
| var c = e[o], | |
| f = e[c], | |
| d = e[f], | |
| p = 257 * e[u] ^ 16843008 * u; | |
| i[0][o] = p << 24 | p >>> 8, i[1][o] = p << 16 | p >>> 16, i[2][o] = p << 8 | p >>> 24, i[3][o] = p, p = 16843009 * d ^ 65537 * f ^ 257 * c ^ 16843008 * o, a[0][u] = p << 24 | p >>> 8, a[1][u] = p << 16 | p >>> 16, a[2][u] = p << 8 | p >>> 24, a[3][u] = p, 0 === o ? o = s = 1 : (o = c ^ e[e[e[d ^ c]]], s ^= e[e[s]]) | |
| } | |
| return { | |
| SBOX: n, | |
| INV_SBOX: r, | |
| SUB_MIX: i, | |
| INV_SUB_MIX: a | |
| } | |
| }(); | |
| o.blockSize = 16, o.keySize = 32, o.prototype.blockSize = o.blockSize, o.prototype.keySize = o.keySize, o.prototype._reset = function () { | |
| for (var e = this._key, t = e.length, n = t + 6, r = 4 * (n + 1), i = [], a = 0; a < t; a++) i[a] = e[a]; | |
| for (a = t; a < r; a++) { | |
| var o = i[a - 1]; | |
| a % t == 0 ? (o = o << 8 | o >>> 24, o = u.SBOX[o >>> 24] << 24 | u.SBOX[o >>> 16 & 255] << 16 | u.SBOX[o >>> 8 & 255] << 8 | u.SBOX[255 & o], o ^= l[a / t | 0] << 24) : t > 6 && a % t == 4 && (o = u.SBOX[o >>> 24] << 24 | u.SBOX[o >>> 16 & 255] << 16 | u.SBOX[o >>> 8 & 255] << 8 | u.SBOX[255 & o]), i[a] = i[a - t] ^ o | |
| } | |
| for (var s = [], c = 0; c < r; c++) { | |
| var f = r - c, | |
| d = i[f - (c % 4 ? 0 : 4)]; | |
| s[c] = c < 4 || f <= 4 ? d : u.INV_SUB_MIX[0][u.SBOX[d >>> 24]] ^ u.INV_SUB_MIX[1][u.SBOX[d >>> 16 & 255]] ^ u.INV_SUB_MIX[2][u.SBOX[d >>> 8 & 255]] ^ u.INV_SUB_MIX[3][u.SBOX[255 & d]] | |
| } | |
| this._nRounds = n, this._keySchedule = i, this._invKeySchedule = s | |
| }, o.prototype.encryptBlockRaw = function (e) { | |
| return e = r(e), a(e, this._keySchedule, u.SUB_MIX, u.SBOX, this._nRounds) | |
| }, o.prototype.encryptBlock = function (e) { | |
| var t = this.encryptBlockRaw(e), | |
| n = s.allocUnsafe(16); | |
| return n.writeUInt32BE(t[0], 0), n.writeUInt32BE(t[1], 4), n.writeUInt32BE(t[2], 8), n.writeUInt32BE(t[3], 12), n | |
| }, o.prototype.decryptBlock = function (e) { | |
| e = r(e); | |
| var t = e[1]; | |
| e[1] = e[3], e[3] = t; | |
| var n = a(e, this._invKeySchedule, u.INV_SUB_MIX, u.INV_SBOX, this._nRounds), | |
| i = s.allocUnsafe(16); | |
| return i.writeUInt32BE(n[0], 0), i.writeUInt32BE(n[3], 4), i.writeUInt32BE(n[2], 8), i.writeUInt32BE(n[1], 12), i | |
| }, o.prototype.scrub = function () { | |
| i(this._keySchedule), i(this._invKeySchedule), i(this._key) | |
| }, e.exports.AES = o | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = t; | |
| r.base = n(755), r.short = n(756), r.mont = n(757), r.edwards = n(758) | |
| }, function (e, t, n) { | |
| (function (t) { | |
| function r(e) { | |
| var n; | |
| "object" != typeof e || t.isBuffer(e) || (n = e.passphrase, e = e.key), "string" == typeof e && (e = new t(e)); | |
| var r, o, l = s(e, n), | |
| u = l.tag, | |
| c = l.data; | |
| switch (u) { | |
| case "CERTIFICATE": | |
| o = a.certificate.decode(c, "der").tbsCertificate.subjectPublicKeyInfo; | |
| case "PUBLIC KEY": | |
| switch (o || (o = a.PublicKey.decode(c, "der")), r = o.algorithm.algorithm.join(".")) { | |
| case "1.2.840.113549.1.1.1": | |
| return a.RSAPublicKey.decode(o.subjectPublicKey.data, "der"); | |
| case "1.2.840.10045.2.1": | |
| return o.subjectPrivateKey = o.subjectPublicKey, { | |
| type: "ec", | |
| data: o | |
| }; | |
| case "1.2.840.10040.4.1": | |
| return o.algorithm.params.pub_key = a.DSAparam.decode(o.subjectPublicKey.data, "der"), { | |
| type: "dsa", | |
| data: o.algorithm.params | |
| }; | |
| default: | |
| throw new Error("unknown key id " + r) | |
| } | |
| throw new Error("unknown key type " + u); | |
| case "ENCRYPTED PRIVATE KEY": | |
| c = a.EncryptedPrivateKey.decode(c, "der"), c = i(c, n); | |
| case "PRIVATE KEY": | |
| switch (o = a.PrivateKey.decode(c, "der"), r = o.algorithm.algorithm.join(".")) { | |
| case "1.2.840.113549.1.1.1": | |
| return a.RSAPrivateKey.decode(o.subjectPrivateKey, "der"); | |
| case "1.2.840.10045.2.1": | |
| return { | |
| curve: o.algorithm.curve, | |
| privateKey: a.ECPrivateKey.decode(o.subjectPrivateKey, "der").privateKey | |
| }; | |
| case "1.2.840.10040.4.1": | |
| return o.algorithm.params.priv_key = a.DSAparam.decode(o.subjectPrivateKey, "der"), { | |
| type: "dsa", | |
| params: o.algorithm.params | |
| }; | |
| default: | |
| throw new Error("unknown key id " + r) | |
| } | |
| throw new Error("unknown key type " + u); | |
| case "RSA PUBLIC KEY": | |
| return a.RSAPublicKey.decode(c, "der"); | |
| case "RSA PRIVATE KEY": | |
| return a.RSAPrivateKey.decode(c, "der"); | |
| case "DSA PRIVATE KEY": | |
| return { | |
| type: "dsa", | |
| params: a.DSAPrivateKey.decode(c, "der") | |
| }; | |
| case "EC PRIVATE KEY": | |
| return c = a.ECPrivateKey.decode(c, "der"), { | |
| curve: c.parameters.value, | |
| privateKey: c.privateKey | |
| }; | |
| default: | |
| throw new Error("unknown key type " + u) | |
| } | |
| } | |
| function i(e, n) { | |
| var r = e.algorithm.decrypt.kde.kdeparams.salt, | |
| i = parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(), 10), | |
| a = o[e.algorithm.decrypt.cipher.algo.join(".")], | |
| s = e.algorithm.decrypt.cipher.iv, | |
| c = e.subjectPrivateKey, | |
| f = parseInt(a.split("-")[1], 10) / 8, | |
| d = u.pbkdf2Sync(n, r, i, f), | |
| p = l.createDecipheriv(a, d, s), | |
| h = []; | |
| return h.push(p.update(c)), h.push(p.final()), t.concat(h) | |
| } | |
| var a = n(774), | |
| o = n(786), | |
| s = n(787), | |
| l = n(223), | |
| u = n(328); | |
| e.exports = r, r.signature = a.signature | |
| }).call(t, n(16).Buffer) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = n(1), | |
| i = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(r), | |
| a = function () { | |
| var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : .5; | |
| return aoba.Graphics.new().beginFill(0, e).drawRect(0, 0, i.default.SCREEN_WIDTH, i.default.SCREEN_HEIGHT).setInteractive(!0) | |
| }; | |
| t.default = a | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(4), | |
| a = r(i), | |
| o = n(69), | |
| s = r(o), | |
| l = n(820), | |
| u = r(l), | |
| c = n(826), | |
| f = r(c), | |
| d = n(828), | |
| p = r(d), | |
| h = n(108), | |
| y = r(h), | |
| m = n(423), | |
| _ = r(m), | |
| g = n(424), | |
| b = r(g), | |
| v = { | |
| getDataPath: function (e) { | |
| return this.dataPath + "/" + e + ".json" | |
| }, | |
| requestSelect: function (e, t, n) { | |
| var r = {}; | |
| return r[this.selectRequestParamKey] = this.getSelectRequestValue ? this.getSelectRequestValue(n) : Number(n), e[this.actionName](t, r) | |
| } | |
| }, | |
| w = { | |
| event: { | |
| actionName: "selectProduceEvent", | |
| dataPath: "produce_events", | |
| selectRequestParamKey: "selectNum", | |
| TransitionClass: _.default | |
| }, | |
| concertEvent: { | |
| actionName: "selectProduceEvent", | |
| dataPath: "produce_events", | |
| selectRequestParamKey: "selectAnswerId", | |
| TransitionClass: y.default | |
| }, | |
| communication: { | |
| key: s.default.EVENT_CATEGORIES.COMMUNICATION, | |
| actionName: "selectCommunication", | |
| dataPath: "produce_communications", | |
| selectRequestParamKey: "selectAnswerId", | |
| hasTimeLimit: !0, | |
| hasRandomAnswers: !0, | |
| hasResultEffect: !0, | |
| ResultClass: u.default, | |
| getResult: function (e) { | |
| return e.answerResult | |
| }, | |
| TransitionClass: y.default | |
| }, | |
| communicationPromise: { | |
| actionName: "selectCommunicationPromise", | |
| dataPath: "produce_communications_promises", | |
| selectRequestParamKey: "isAccept", | |
| hasStringAnswerId: !0, | |
| hasResultEffect: !0, | |
| ResultClass: f.default, | |
| getResult: function (e) { | |
| return e.answerId | |
| }, | |
| getSelectRequestValue: function (e) { | |
| return "agree" === e | |
| }, | |
| TransitionClass: y.default | |
| }, | |
| communicationPromiseResult: { | |
| dataPath: "produce_communication_promise_results", | |
| hasResultEffect: !0, | |
| ResultClass: p.default, | |
| noSelect: !0, | |
| getResult: function (e) { | |
| return e.isSuccess | |
| }, | |
| TransitionClass: y.default | |
| }, | |
| communicationPromiseRecover: { | |
| dataPath: "produce_communication_promise_results", | |
| TransitionClass: y.default | |
| }, | |
| communicationCheer: { | |
| key: s.default.EVENT_CATEGORIES.COMMUNICATION_CHEER, | |
| actionName: "selectCommunicationCheer", | |
| dataPath: "produce_communication_cheers", | |
| selectRequestParamKey: "selectAnswerId", | |
| TransitionClass: y.default | |
| }, | |
| communicationTelevision: { | |
| actionName: "selectCommunicationTelevision", | |
| dataPath: "produce_communication_televisions", | |
| selectRequestParamKey: "selectAnswerId", | |
| TransitionClass: y.default | |
| }, | |
| communicationAudition: { | |
| actionName: "selectCommunicationAudition", | |
| dataPath: "produce_communication_auditions", | |
| selectRequestParamKey: "selectAnswerId", | |
| TransitionClass: y.default | |
| }, | |
| supportSkill: { | |
| dataPath: "support_skills", | |
| TransitionClass: b.default | |
| } | |
| }; | |
| a.default.each(w, function (e) { | |
| aoba.utils.setPrototypeOf(e, v) | |
| }), t.default = w | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = { | |
| REGULAR: { | |
| adjustLayout: function (e, t) { | |
| t.forEach(function (t, n) { | |
| t.texture = aoba.Texture.fromImage(e.image), t.x = e.startPosition.x + e.interval.x * n, t.y = e.startPosition.y + e.interval.y * n | |
| }) | |
| } | |
| }, | |
| CUSTOM: { | |
| adjustLayout: function (e, t) { | |
| t.slice(3).forEach(function (e) { | |
| e.destroy() | |
| }), t.slice(0, 3).forEach(function (n, r) { | |
| var i = e[t.length][r]; | |
| n.texture = aoba.Texture.fromImage(i.image), n.x = i.x, n.y = i.y | |
| }) | |
| } | |
| } | |
| }; | |
| t.default = { | |
| defaultCommand: { | |
| textCtrl: "p" | |
| }, | |
| assetFormat: { | |
| textFrame: "images/event/text_frame/${id}.png", | |
| bg: "images/event/bg/${id}.jpg", | |
| fg: "images/event/fg/${id}.png", | |
| bgm: "sounds/bgm/${id}.m4a", | |
| se: "sounds/se/event/${id}.m4a", | |
| voice: "sounds/voice/events/${id}.m4a", | |
| movie: "movies/idols/card/${id}.mp4", | |
| still: "images/content/${type}/card/${id}.jpg", | |
| spine: "spine/${type}/${category}/${id}/data.json" | |
| }, | |
| characterAssetFormat: { | |
| still: "images/content/${type}/card/${id}.jpg", | |
| spine: "spine/${type}/${category}/${id}/data.json" | |
| }, | |
| defaultTextFrame: "001", | |
| scenarioPlayer: { | |
| x: 80, | |
| y: 464, | |
| content: { | |
| x: 148, | |
| y: 60, | |
| textStyle: { | |
| fill: 5592405, | |
| fontSize: 22, | |
| lineHeight: 30, | |
| wordWrap: !0, | |
| wordWrapWidth: 660, | |
| breakWords: !0, | |
| fontFamily: "HummingStd-E" | |
| } | |
| }, | |
| speaker: { | |
| x: 160, | |
| y: 14, | |
| textStyle: { | |
| fill: 5592405, | |
| fontFamily: "HummingStd-E" | |
| } | |
| } | |
| }, | |
| selectList: { | |
| x: 0, | |
| y: 0, | |
| layout: { | |
| type: r.CUSTOM, | |
| 1: [{ | |
| x: 564, | |
| y: 114, | |
| image: "images/event/select_frame/001.png" | |
| }], | |
| 2: [{ | |
| x: 212, | |
| y: 216, | |
| image: "images/event/select_frame/001.png" | |
| }, { | |
| x: 912, | |
| y: 216, | |
| image: "images/event/select_frame/002.png" | |
| }], | |
| 3: [{ | |
| x: 564, | |
| y: 114, | |
| image: "images/event/select_frame/001.png" | |
| }, { | |
| x: 212, | |
| y: 216, | |
| image: "images/event/select_frame/002.png" | |
| }, { | |
| x: 912, | |
| y: 216, | |
| image: "images/event/select_frame/003.png" | |
| }] | |
| }, | |
| item: { | |
| x: 0, | |
| y: 0, | |
| options: { | |
| anchor: .5 | |
| }, | |
| image: "images/event/select_frame/001.png", | |
| textStyle: { | |
| align: "center", | |
| fill: 5853004, | |
| fontFamily: "HummingStd-E" | |
| } | |
| } | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = { | |
| murmur: "sounds/se/138.m4a", | |
| record: "sounds/se/223.m4a", | |
| audition_win: { | |
| grade: "sounds/se/concert_result/0130.m4a", | |
| effect: "sounds/se/concert_result/0132.m4a" | |
| }, | |
| semi_final_win: { | |
| grade: "sounds/se/concert_result/0130.m4a", | |
| effect: "sounds/se/concert_result/0133.m4a" | |
| }, | |
| final_win: { | |
| grade: "sounds/se/concert_result/0130.m4a", | |
| effect: "sounds/se/concert_result/0134.m4a" | |
| }, | |
| lose: { | |
| grade: "sounds/se/concert_result/0131.m4a", | |
| effect: "sounds/se/concert_result/0135.m4a" | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(13), | |
| a = r(i), | |
| o = n(7), | |
| s = r(o), | |
| l = function (e) { | |
| var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "l", | |
| n = aoba.Sprite.new("common_header_base_" + t + ".png"); | |
| return n.text = aoba.Text.new(e, { | |
| fill: 5063497, | |
| fontFamily: "HummingStd-E", | |
| fontSize: 22 | |
| }).addTo(n, 50, 12), n.setPosition(0, 7), n | |
| }, | |
| u = function (e, t) { | |
| return t = "l" === t ? "l_" : "", aoba.Sprite.new("icon_status_" + t + e + ".png") | |
| }, | |
| c = function (e) { | |
| return aoba.Sprite.new("icon_idol_rank_" + e + ".png") | |
| }, | |
| f = function (e) { | |
| var t = e.textUI, | |
| n = e.startNumber, | |
| r = void 0 === n ? 0 : n, | |
| i = e.endNumber, | |
| o = e.addNumber, | |
| s = void 0 === o ? 0 : o, | |
| l = e.isFormatted, | |
| u = void 0 !== l && l, | |
| c = e.formatNumber, | |
| f = void 0 === c ? null : c; | |
| f || (f = function (e) { | |
| return u ? a.default.numberFormat(e) : e | |
| }); | |
| var d = i - r; | |
| if (0 === d) return aoba.FrameTween.new(t).call(function () { | |
| t.text = "" + f(i, a.default) | |
| }).wait(1); | |
| 0 === s ? s = d / Math.abs(d) : s * d < 0 && (s *= -1); | |
| for (var p = Math.floor(d / s), h = aoba.FrameTween.new(t), y = 0; y <= p; ++y) ! function (e) { | |
| var n = Math.floor(r + s * e); | |
| h.call(function () { | |
| t.text = "" + f(n, a.default) | |
| }).wait(1) | |
| }(y); | |
| return i === Math.floor(r + s * p) ? h : h.call(function () { | |
| t.text = "" + f(i, a.default) | |
| }).wait(1) | |
| }, | |
| d = function (e) { | |
| var t = e.width, | |
| n = e.height; | |
| return aoba.Graphics.new().beginFill(8616327).drawRoundedRect(0, 0, t, n, t / 2) | |
| }, | |
| p = function (e, t) { | |
| var n = Math.min(e.texture.width / t.width, e.texture.height / t.height); | |
| e.scale = aoba.p(e.scale.x * n, e.scale.y * n), e.texture = t | |
| }, | |
| h = function (e) { | |
| var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, | |
| n = t.scale, | |
| r = void 0 === n ? 1.2 : n, | |
| i = t.duration, | |
| a = void 0 === i ? 500 : i, | |
| o = t.delay, | |
| s = void 0 === o ? 500 : o, | |
| l = e.x - e.width * e.anchor.x + e.width / 2, | |
| u = e.y - e.height * e.anchor.y + e.height / 2, | |
| c = aoba.Sprite.new(e.texture).addTo(e.parent, l, u, { | |
| anchor: .5, | |
| alpha: 0 | |
| }); | |
| return aoba.Tween.new(c).wait(s).call(function () { | |
| c.alpha = 1 | |
| }).to({ | |
| scaleX: r, | |
| scaleY: r, | |
| alpha: 0 | |
| }, a).call(function () { | |
| return c.destroy({ | |
| children: !0 | |
| }) | |
| }) | |
| }, | |
| y = [{ | |
| position: aoba.p(-270, -270), | |
| scale: aoba.p(3, .4), | |
| alpha: 1 | |
| }, { | |
| position: aoba.p(-270, -270), | |
| scale: aoba.p(3, 1), | |
| alpha: 0 | |
| }, { | |
| position: aoba.p(-270, -270), | |
| scale: aoba.p(3, 1), | |
| alpha: 1 | |
| }], | |
| m = function () { | |
| var e = aoba.Container.new(), | |
| t = []; | |
| return y.forEach(function (n) { | |
| var r = aoba.Sprite.new("hi_gradation_01.png").addTo(e, n.position.x, n.position.y, { | |
| alpha: n.alpha, | |
| scale: n.scale, | |
| rotation: -45 * aoba.DEG_TO_RAD, | |
| anchor: aoba.p(.5), | |
| blendMode: aoba.BLEND_MODES.ADD | |
| }); | |
| t.push(r) | |
| }), aoba.FrameTween.new(e).wait(15).call(function () { | |
| return e.destroy({ | |
| children: !0 | |
| }) | |
| }), aoba.FrameTween.new(t[0]).wait(4).to({ | |
| x: 175, | |
| y: 175 | |
| }, 10), aoba.FrameTween.new(t[1]).to({ | |
| x: 270, | |
| y: 270 | |
| }, 14), aoba.FrameTween.new(t[1]).to({ | |
| alpha: 1 | |
| }, 7).wait(5).to({ | |
| alpha: 0 | |
| }, 7), aoba.FrameTween.new(t[2]).to({ | |
| x: 270, | |
| y: 270 | |
| }, 14), e | |
| }, | |
| _ = function (e, t, n) { | |
| var r = aoba.Sprite.new("icon_stamp.png").addTo(e, t, n, { | |
| anchor: .5, | |
| scale: 1.2, | |
| visible: !1 | |
| }); | |
| return new Promise(function (i) { | |
| aoba.Tween.new(r).wait(500).call(function () { | |
| aoba.soundManager.playSE(s.default.ui.stamp), r.show() | |
| }).to({ | |
| scaleX: .8, | |
| scaleY: .8 | |
| }, 400).call(function () { | |
| aoba.FrameAnimation.new("effect_stamp_stars.png", 80, 72).addTo(e, t, n, { | |
| anchor: .5, | |
| scale: 1.5 | |
| }).play() | |
| }).to({ | |
| scaleX: 1, | |
| scaleY: 1 | |
| }, 200, "easeOutElastic").call(i) | |
| }) | |
| }; | |
| t.default = { | |
| createHeader: l, | |
| createStatusIcon: u, | |
| createRankIcon: c, | |
| createCountUpTween: f, | |
| createScrollBarBase: d, | |
| replaceSpriteTexture: p, | |
| createSpriteEmphasizeTween: h, | |
| createGlossEffect: m, | |
| createStampEffect: _ | |
| } | |
| }, function (e, t, n) { | |
| var r = n(10), | |
| i = n(393); | |
| e.exports = function (e, t, n, a) { | |
| e = r(e), t = ~~t; | |
| var o = 0; | |
| switch (n ? n.length > 1 && (n = n.charAt(0)) : n = " ", a) { | |
| case "right": | |
| return o = t - e.length, e + i(n, o); | |
| case "both": | |
| return o = t - e.length, i(n, Math.ceil(o / 2)) + e + i(n, Math.floor(o / 2)); | |
| default: | |
| return o = t - e.length, i(n, o) + e | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = n(913), | |
| l = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(s), | |
| u = { | |
| fill: 16777215, | |
| fontFamily: "UDKakugo_SmallPr6-B", | |
| fontSize: 16 | |
| }, | |
| c = function (e) { | |
| function t() { | |
| r(this, t); | |
| var e = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)), | |
| n = e.fromData(l.default, { | |
| num: { | |
| style: u | |
| } | |
| }); | |
| return e._num = n.num, e | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "setNum", | |
| value: function (e) { | |
| this.visible = e > 0, this._num.text = e > 99 ? "99+" : e | |
| } | |
| }]), t | |
| }(aoba.Container); | |
| t.default = c | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function i(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function a(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var o = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| s = n(7), | |
| l = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(s), | |
| u = function (e) { | |
| function t(e) { | |
| r(this, t); | |
| var n = i(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, {})); | |
| return n.anchor.set(.5), n.on("tap", n._handleTap, n), n | |
| } | |
| return a(t, e), o(t, [{ | |
| key: "setAvailable", | |
| value: function (e) { | |
| e ? this.enable() : this.disable() | |
| } | |
| }, { | |
| key: "disable", | |
| value: function () { | |
| this.interactive = !1, this.tint = 10066329 | |
| } | |
| }, { | |
| key: "enable", | |
| value: function () { | |
| this.interactive = !0, this.tint = 16777215 | |
| } | |
| }, { | |
| key: "_handleTap", | |
| value: function () { | |
| aoba.soundManager.playSE(l.default.ui.cancel) | |
| } | |
| }]), t | |
| }(aoba.Button); | |
| t.default = u | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| l = n(12), | |
| u = r(l), | |
| c = n(3), | |
| f = r(c), | |
| d = n(935), | |
| p = r(d), | |
| h = n(937), | |
| y = r(h), | |
| m = n(38), | |
| _ = r(m), | |
| g = n(14), | |
| b = r(g), | |
| v = n(32), | |
| w = r(v), | |
| k = function (e) { | |
| function t() { | |
| return i(this, t), a(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments)) | |
| } | |
| return o(t, e), s(t, [{ | |
| key: "onSelectProduce", | |
| value: function (e, t, n) { | |
| var r = this; | |
| e.userFesIdolCount >= e.fesIdolLimit ? this._showFesIdolLimitDialog(t) : e.produceIdol ? this._loadProduceResumePopContentResources(e).then(function () { | |
| return r._showProduceResumePop(e, t) | |
| }) : this._goToNextPage("/produceReady", n) | |
| } | |
| }, { | |
| key: "_loadProduceResumePopContentResources", | |
| value: function (e) { | |
| return e.produceIdol ? (0, w.default)([e.produceIdol.getImagePath("icon")]) : Promise.resolve() | |
| } | |
| }, { | |
| key: "_showProduceResumePop", | |
| value: function (e, t) { | |
| var n = this, | |
| r = e.produce, | |
| i = p.default.new(e.produceIdol, r.getSeason(), r.getRestOfSeasonWeek()); | |
| b.default.new({ | |
| title: f.default.t("commonMenu.produceResume.title"), | |
| container: i, | |
| buttons: [{ | |
| type: "close", | |
| image: "cancel_button.png" | |
| }, { | |
| image: "terminate_cancel_button.png", | |
| callback: function (e) { | |
| n._showProduceRetireConfirmPop(t), e.close() | |
| } | |
| }, { | |
| image: "resume_button.png", | |
| callback: function (e) { | |
| n._goToNextPage("/produce"), e.close() | |
| } | |
| }] | |
| }).addTo(t).open() | |
| } | |
| }, { | |
| key: "_showProduceRetireConfirmPop", | |
| value: function (e) { | |
| var t = this, | |
| n = aoba.Container.new(), | |
| r = n.fromData(y.default, { | |
| iconNoticeRed: { | |
| dx: 34 | |
| }, | |
| comment1: { | |
| text: f.default.t("commonMenu.produceRetire.comment1"), | |
| dx: 34 | |
| }, | |
| comment2: { | |
| text: f.default.t("commonMenu.produceRetire.comment2") | |
| } | |
| }), | |
| i = r.comment1, | |
| a = r.comment2; | |
| i.style.align = "center", a.style.align = "center", b.default.new({ | |
| title: f.default.t("commonMenu.produceRetire.title"), | |
| container: n, | |
| buttons: [{ | |
| type: "close", | |
| image: "cancel_button.png" | |
| }, { | |
| type: "submit", | |
| image: "terminate_ok_button.png" | |
| }] | |
| }).on("submit", function () { | |
| t.interactiveChildren = !1, _.default.retire().then(function () { | |
| return t._goToNextPage("/produceReady") | |
| }) | |
| }).addTo(e).open() | |
| } | |
| }, { | |
| key: "_showFesIdolLimitDialog", | |
| value: function (e) { | |
| var t = this; | |
| b.default.new({ | |
| title: f.default.t("commonMenu.fesIdolLimit.title"), | |
| text: f.default.t("commonMenu.fesIdolLimit.text"), | |
| buttons: [{ | |
| type: "close", | |
| image: "cancel_button.png" | |
| }, { | |
| type: "submit", | |
| image: "transfer_button.png" | |
| }] | |
| }).on("submit", function () { | |
| return t._goToNextPage("/idolList") | |
| }).addTo(e).open() | |
| } | |
| }, { | |
| key: "_goToNextPage", | |
| value: function (e, t) { | |
| aoba.sceneManager.currentScene.showLoadingLayer(), u.default.directTo(e, { | |
| sceneParams: { | |
| fromPath: t | |
| } | |
| }) | |
| } | |
| }], [{ | |
| key: "getProduceData", | |
| value: function (e) { | |
| return { | |
| fesIdolLimit: e.fesIdolLimit, | |
| userFesIdolCount: e.userFesIdolCount, | |
| produce: e.produce, | |
| produceIdol: e.produceIdol | |
| } | |
| } | |
| }]), t | |
| }(aoba.Container); | |
| t.default = k | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(20), | |
| a = r(i), | |
| o = n(938), | |
| s = r(o); | |
| t.default = { | |
| getSpinePath: function (e) { | |
| return a.default.createSpinePath("characters", e, this.id) | |
| }, | |
| getMoviePath: function (e) { | |
| return a.default.createMoviePath("characters", e, this.id) | |
| }, | |
| getVoicePath: function (e) { | |
| return a.default.createVoicePath("characters", this.id, e) | |
| }, | |
| getImagePath: function (e) { | |
| return a.default.createImagePath("characters", e, this.id) | |
| }, | |
| getUnitImagePath: function (e) { | |
| return this._extendedUnit.getImagePath(e) | |
| }, | |
| get _extendedUnit() { | |
| return this.unit || (this.unit = { | |
| id: this.unitId | |
| }), aoba.utils.getPrototypeOf(this.unit) !== s.default && aoba.utils.setPrototypeOf(this.unit, s.default), this.unit | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(13), | |
| a = r(i), | |
| o = n(31), | |
| s = r(o), | |
| l = n(241), | |
| u = r(l), | |
| c = n(20), | |
| f = r(c), | |
| d = { | |
| getSpinePath: function (e) { | |
| return f.default.createSpinePath("characters", e, this.characterId) | |
| }, | |
| getCutInVoicePath: function () { | |
| var e = this._getPaddedCharacterId() + "_" + this.effectType + "_cutin"; | |
| return f.default.createVoicePath("characters", this.characterId, e) | |
| }, | |
| _getPaddedCharacterId: function () { | |
| return a.default.pad(this.characterId, 3, "0") | |
| }, | |
| get eventId() { | |
| return s.default.join(this._getPaddedCharacterId(), this.effectType) | |
| }, | |
| isCommunicationRetry: function () { | |
| return this.effectType === u.default.communicationRetry | |
| }, | |
| isPromiseRecover: function () { | |
| return this.effectType === u.default.promiseRecover | |
| }, | |
| isPromiseRejectRecover: function () { | |
| return this.effectType === u.default.promiseRejectRecover | |
| }, | |
| isRestBoost: function () { | |
| return this.effectType === u.default.restBoost | |
| }, | |
| isTroubleGuard: function () { | |
| return this.effectType === u.default.troubleGuard | |
| }, | |
| isSupportEventRate: function () { | |
| return this.effectType === u.default.supportEventRate | |
| }, | |
| isStaminaSupport: function () { | |
| return this.effectType === u.default.staminaSupport | |
| }, | |
| isTensionBoost: function () { | |
| return this.effectType === u.default.tensionBoost | |
| }, | |
| isTagBoost: function () { | |
| return this.effectType === u.default.tagBoost | |
| }, | |
| isFriendship: function () { | |
| return this.effectType === u.default.friendship | |
| } | |
| }, | |
| p = { | |
| communication_retry: { | |
| hasEvent: !0 | |
| }, | |
| promise_recover: { | |
| hasEvent: !0 | |
| }, | |
| promise_reject_recover: { | |
| hasEvent: !0 | |
| }, | |
| rest_boost: { | |
| hasEvent: !0 | |
| }, | |
| trouble_guard: { | |
| calcTroubleRateVariation: function (e) { | |
| return this.supportSkillEffect.isFixed ? -this.supportSkillEffect.value : Math.floor(e * -this.supportSkillEffect.value / 100) | |
| } | |
| }, | |
| tension_boost: { | |
| getTargetParam: function () { | |
| return this.supportSkillEffect.attribute | |
| } | |
| }, | |
| tag_boost: { | |
| getPlaceIconImagePath: function () { | |
| return "images/content/produce_place_categories/icon/" + a.default.pad(this._getProducePlaceCategoryId(), 5, "0") + ".png" | |
| }, | |
| _getProducePlaceCategoryId: function () { | |
| return this.supportSkillEffect.producePlaceCategoryId | |
| } | |
| } | |
| }, | |
| h = function (e) { | |
| for (var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; | |
| for (var i = 0; i < n.length; ++i) ! function (t) { | |
| var r = n[t]; | |
| e = Object.getOwnPropertyNames(r).reduce(function (e, t) { | |
| return Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)), e | |
| }, e) | |
| }(i); | |
| return e | |
| }; | |
| t.default = { | |
| create: function (e) { | |
| var t = p[e]; | |
| return t ? h({}, d, t) : d | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = { | |
| none: "", | |
| draw_10_ticket: "001", | |
| sr_ticket: "002", | |
| ssr_fix_ticket: "003" | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = n(1), | |
| i = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(r); | |
| t.default = { | |
| calcCurrentStamina: function () { | |
| if (this.overStamina > 0) return i.default.app.MAX_STAMINA + parseInt(this.overStamina, 10); | |
| var e = Math.floor(Date.now() / 1e3); | |
| return this.recoveryTime < e ? i.default.app.MAX_STAMINA : Math.floor(i.default.app.MAX_STAMINA - (this.recoveryTime - e) / i.default.app.STAMINA_RECOVER_INTERVAL) | |
| }, | |
| calcNextStaminaRecoveryTime: function () { | |
| if (this.overStamina > 0) return 0; | |
| var e = Math.floor(Date.now() / 1e3); | |
| return this.recoveryTime < e ? 0 : (this.recoveryTime - e) % i.default.app.STAMINA_RECOVER_INTERVAL * 1e3 | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| (function (e) { | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var i = n(9), | |
| a = r(i), | |
| o = n(113), | |
| s = r(o), | |
| l = n(171), | |
| u = r(l), | |
| c = n(20), | |
| f = r(c), | |
| d = n(70), | |
| p = r(d), | |
| h = n(1), | |
| y = r(h), | |
| m = function (e) { | |
| aoba.utils.setPrototypeOf(e, s.default), e.supportSkills.forEach(function (e) { | |
| aoba.utils.setPrototypeOf(e, u.default.create(e.effectType)) | |
| }) | |
| }; | |
| t.default = { | |
| getList: function () { | |
| return a.default.get("userSupportIdols").then(function (e) { | |
| var t = e.body; | |
| return t.forEach(m), Promise.resolve(t) | |
| }) | |
| }, | |
| get: function (t) { | |
| var n = this; | |
| return a.default.get("userSupportIdols/" + t).then(function (t) { | |
| var r = t.body; | |
| m(r), r.supportIdol.skillPanels.forEach(function (e) { | |
| var t = y.default.app.SKILL_CATEGORIES; | |
| switch (e.skillCategory) { | |
| case t.ACTIVE: | |
| p.default.setActiveSkillMixin(e.skill); | |
| break; | |
| case t.PASSIVE: | |
| p.default.setPassiveSkillMixin(e.skill); | |
| break; | |
| case t.LIMIT_BREAK: | |
| p.default.setLimitBreakSkillMixin(e.skill) | |
| } | |
| e.skill.linkSkill && n._setLinkSkillResourcePath(e.skill.linkSkill) | |
| }); | |
| var i = r.supportIdol.supportIdolActiveSkill, | |
| a = i.supportIdolActiveSkillLevels.filter(function (e) { | |
| return e.requiredIdolLevel <= r.level | |
| }), | |
| o = e.max(a, function (e) { | |
| return e.skillLevel | |
| }); | |
| return i.currentActiveSkills = i.activeSkills.filter(function (e) { | |
| return e.level === o.skillLevel | |
| }), i.currentActiveSkills.forEach(function (e) { | |
| p.default.setActiveSkillMixin(e), e.linkSkill && n._setLinkSkillResourcePath(e.linkSkill) | |
| }), Promise.resolve(r) | |
| }) | |
| }, | |
| enhance: function (e, t) { | |
| return a.default.patch("userSupportIdols/" + e, t).then(function (e) { | |
| var t = e.body; | |
| return Promise.resolve(t) | |
| }) | |
| }, | |
| evolve: function (e, t) { | |
| return a.default.patch("userSupportIdols/" + e + "/actions/evolve", t).then(function (e) { | |
| var t = e.body; | |
| return m(t), Promise.resolve(t) | |
| }) | |
| }, | |
| _setLinkSkillResourcePath: function (e) { | |
| e.linkSkillCharacters.forEach(function (e) { | |
| e.iconPath = f.default.createImagePath("characters", "link_skill_icon", e.characterId) | |
| }) | |
| } | |
| } | |
| }).call(t, n(4)) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = { | |
| children: [{ | |
| name: "bg", | |
| fullName: "bg", | |
| type: "sprite", | |
| key: "bg.jpg", | |
| x: 0, | |
| y: 0 | |
| }, { | |
| name: "tabBase", | |
| fullName: "tabBase", | |
| type: "sprite", | |
| key: "tab_base.png", | |
| x: 0, | |
| y: 0 | |
| }, { | |
| name: "tabList", | |
| fullName: "tabList", | |
| type: "container", | |
| x: 16, | |
| y: 80 | |
| }, { | |
| name: "idolListContainer", | |
| fullName: "idolListContainer", | |
| type: "container", | |
| x: 209, | |
| y: 80 | |
| }], | |
| name: "", | |
| fullName: "", | |
| type: "container", | |
| x: 0, | |
| y: 0 | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| l = n(7), | |
| u = r(l), | |
| c = n(1122), | |
| f = r(c), | |
| d = n(98), | |
| p = r(d), | |
| h = n(24), | |
| y = r(h), | |
| m = n(116), | |
| _ = r(m), | |
| g = n(22), | |
| b = r(g), | |
| v = { | |
| x: 20, | |
| y: 87, | |
| width: 860, | |
| height: 436 | |
| }, | |
| w = function (e) { | |
| function t(e) { | |
| i(this, t); | |
| var n = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)), | |
| r = n.fromData(f.default, { | |
| sortOrderButton: { | |
| visible: !1 | |
| }, | |
| sortConditionButton: { | |
| visible: !1 | |
| } | |
| }); | |
| return n._emptyNotice = r.emptyNotice, n._onTapIdolIcon = e.onTapIdolIcon, n._onHoldIdolIcon = e.onHoldIdolIcon, n | |
| } | |
| return o(t, e), s(t, [{ | |
| key: "showIdols", | |
| value: function (e, t, n) { | |
| var r = this; | |
| this._idols = e, this._idolIcons = []; | |
| var i = aoba.Container.new(); | |
| e.forEach(function (e, a) { | |
| var o = a % 7, | |
| s = Math.floor(a / 7), | |
| l = p.default.new(e).addTo(i, 8 + 123 * o, 8 + 123 * s); | |
| r._idolIcons.push(l), n && n(e) && l.disable(), r._onTapIdolIcon && l.on("tap", function () { | |
| aoba.soundManager.playSE(u.default.ui.decide), r._onTapIdolIcon(t, e, l) | |
| }), r._onHoldIdolIcon && l.on("longPress", function () { | |
| aoba.soundManager.playSE(u.default.ui.decide), r._onHoldIdolIcon(t, e, l) | |
| }) | |
| }), aoba.Graphics.new().beginFill(16777215, .01).drawRect(0, 0, 8, 8).addTo(i), this._idolsContainer = i; | |
| var a = y.default.new({ | |
| width: 16 | |
| }); | |
| this._scrollBarBase = _.default.new({ | |
| width: 8, | |
| height: 436 | |
| }), this._scrollRect = b.default.new({ | |
| width: v.width, | |
| height: v.height, | |
| container: i, | |
| scrollBar: a, | |
| scrollBarBase: this._scrollBarBase | |
| }).addTo(this, v.x, v.y), this._scrollBarBase.addTo(this, 890, 88) | |
| } | |
| }, { | |
| key: "emptyIdols", | |
| value: function () { | |
| this._scrollRect && (this._scrollBarBase.destroy({ | |
| children: !0 | |
| }), this._scrollRect.destroy({ | |
| children: !0 | |
| }), this._scrollBarBase = null, this._scrollRect = null) | |
| } | |
| }, { | |
| key: "showEmptyNotice", | |
| value: function () { | |
| this._emptyNotice.show() | |
| } | |
| }, { | |
| key: "hideEmptyNotice", | |
| value: function () { | |
| this._emptyNotice.hide() | |
| } | |
| }, { | |
| key: "idols", | |
| get: function () { | |
| return this._idols | |
| } | |
| }, { | |
| key: "idolIcons", | |
| get: function () { | |
| return this._idolIcons | |
| } | |
| }]), t | |
| }(aoba.Container); | |
| t.default = w | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var a = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| o = n(448), | |
| s = r(o), | |
| l = n(261), | |
| u = r(l), | |
| c = n(262), | |
| f = r(c), | |
| d = function () { | |
| function e() { | |
| i(this, e) | |
| } | |
| return a(e, null, [{ | |
| key: "create", | |
| value: function (e) { | |
| var t = s.default.new(); | |
| return f.default.filter(function (t) { | |
| return e.idolTypeNames.includes(t.name) | |
| }).forEach(function (n) { | |
| var r = u.default.new(n.buttonNames.off, { | |
| image: n.buttonNames.off, | |
| imageOn: n.buttonNames.on, | |
| onSelect: function () { | |
| e.onSelectTab(n) | |
| } | |
| }); | |
| t.addTab(r) | |
| }), t | |
| } | |
| }]), e | |
| }(); | |
| t.default = d | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = function (e) { | |
| var t = e.tabList, | |
| n = e.idolListContainer, | |
| r = e.store, | |
| i = e.idolType, | |
| a = e.checkIconIsDisabled; | |
| return t.disableAll(), n.emptyIdols(), r.fetchIdolsAndResources(i).then(function (e) { | |
| t.enableAll(), n.showIdols(e, i, a) | |
| }) | |
| }, | |
| i = function (e) { | |
| var t = e.tabList, | |
| n = e.idolListContainer, | |
| r = e.store, | |
| i = e.idolType, | |
| a = e.checkIconIsDisabled; | |
| return t.disableAll(), n.emptyIdols(), n.hideEmptyNotice(), r.fetchEvolutionIdolsAndResources(i).then(function (e) { | |
| t.enableAll(), 0 === e.length ? n.showEmptyNotice() : n.showIdols(e, i, a) | |
| }) | |
| }; | |
| t.default = { | |
| switchIdolList: r, | |
| switchEvolutionIdolList: i | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| l = n(1159), | |
| u = r(l), | |
| c = n(0), | |
| f = r(c), | |
| d = n(1160), | |
| p = r(d), | |
| h = function (e) { | |
| function t(e) { | |
| var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; | |
| i(this, t); | |
| var r = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)), | |
| o = e.userFesIdol, | |
| s = { | |
| card: { | |
| key: o.getImagePath("fes_card_s") | |
| }, | |
| roleIcon: { | |
| key: "fes_role_icon_" + e.fesDeckMemberPosition.position + ".png" | |
| }, | |
| rankIcon: { | |
| key: "icon_fes_idol_rank_s_" + o.fesIdolRank.rank.toLowerCase() + ".png" | |
| }, | |
| unitIcon: { | |
| key: o.getUnitImagePath("icon") | |
| }, | |
| deckMemberStatus: p.default.new(e, n) | |
| }; | |
| n.hideRoleIcon && (s.roleIcon = null), n.hideStatus && (s.deckMemberStatus = null); | |
| var l = r.fromData(u.default, s); | |
| return n.onLongPressDeckMember && f.default.InteractionBox.new(l.card.bounds).addTo(l.card).on("longPress", n.onLongPressDeckMember), n.onSelectDeckMember && (l.card.interactive = !0, l.card.on("tap", n.onSelectDeckMember)), r.x = 0, r.y = 0, r._memberNumber = e.memberNumber, r._deckMemberStatus = l.deckMemberStatus, r._activeSkills = e.userFesIdol.activeSkills, r._unitIcon = l.unitIcon, e.hasFixedUnitBonus && r.setUnitIconTwinkle(), r | |
| } | |
| return o(t, e), s(t, [{ | |
| key: "setUnitIconTwinkle", | |
| value: function () { | |
| this._unitIconEffect && (this._unitIconEffect.destroy(), this._unitIconEffect = null); | |
| this._unitIconEffect = aoba.Sprite.new(this._unitIcon.texture).addTo(this._unitIcon), this._unitIconEffect.anchor.set(this._unitIcon.anchor.x, this._unitIcon.anchor.y), this._unitIconEffect.blendMode = aoba.BLEND_MODES.ADD, aoba.Tween.new(this._unitIconEffect).to({ | |
| alpha: 0, | |
| scaleX: .9, | |
| scaleY: .9 | |
| }, 900).to({ | |
| alpha: .8, | |
| scaleX: 1, | |
| scaleY: 1 | |
| }, 900).loop() | |
| } | |
| }, { | |
| key: "updateActiveSkills", | |
| value: function (e) { | |
| var t = this._activeSkills.filter(function (t) { | |
| return e.includes(t.id) | |
| }); | |
| this._deckMemberStatus.updateActiveSkills(t) | |
| } | |
| }, { | |
| key: "memberNumber", | |
| get: function () { | |
| return this._memberNumber | |
| } | |
| }]), t | |
| }(aoba.Container); | |
| t.default = h | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var r = n(3), | |
| i = function (e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| }(r), | |
| a = { | |
| get: function () { | |
| return { | |
| event: i.default.t("announce.event"), | |
| campaign: i.default.t("announce.campaign"), | |
| gasha: i.default.t("announce.gasha"), | |
| update: i.default.t("announce.update"), | |
| maintenance: i.default.t("announce.maintenance"), | |
| problem: i.default.t("announce.problem") | |
| } | |
| } | |
| }, | |
| o = { | |
| isEvent: function (e) { | |
| return "event" === e | |
| }, | |
| isCampaign: function (e) { | |
| return "campaign" === e | |
| }, | |
| isGasha: function (e) { | |
| return "gasha" === e | |
| }, | |
| isUpdate: function (e) { | |
| return "update" === e | |
| }, | |
| isMaintenance: function (e) { | |
| return "maintenance" === e | |
| }, | |
| isProblem: function (e) { | |
| return "problem" === e | |
| } | |
| }; | |
| t.default = { | |
| Types: a, | |
| TypeChecker: o | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| l = n(1212), | |
| u = r(l), | |
| c = n(469), | |
| f = r(c), | |
| d = n(1215), | |
| p = r(d), | |
| h = { | |
| LEARNED: "skill_learned", | |
| LEARN_POSSIBLE: "skill_learn_possible", | |
| SKILL_PANEL: "skill_panel" | |
| }, | |
| y = function (e) { | |
| function t(e) { | |
| var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : h.LEARNED; | |
| i(this, t); | |
| var r = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)), | |
| o = n === h.LEARNED ? f.default : p.default, | |
| s = r.fromData(u.default, { | |
| skillOn: { | |
| key: n + "_on.png" | |
| }, | |
| skillLists: o.new(e) | |
| }); | |
| return r._skillLists = s.skillLists, r | |
| } | |
| return o(t, e), s(t, [{ | |
| key: "reset", | |
| value: function () { | |
| return this._skillLists.reset(), this | |
| } | |
| }]), t | |
| }(aoba.Container); | |
| t.default = y | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = n(1221), | |
| l = r(s), | |
| u = n(3), | |
| c = r(u), | |
| f = function (e) { | |
| function t(e, n) { | |
| i(this, t); | |
| var r = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)), | |
| o = e.nameKana, | |
| s = e.attribute, | |
| u = e.height, | |
| f = e.weight, | |
| d = e.bloodType, | |
| p = e.bust, | |
| h = e.waist, | |
| y = e.hip, | |
| m = e.age, | |
| _ = e.birthDay, | |
| g = e.starSign, | |
| b = e.arm, | |
| v = e.place, | |
| w = e.hobby, | |
| k = e.specialty, | |
| S = e.characterVoice, | |
| I = r.fromData(l.default, { | |
| "nameKana/text": { | |
| text: o | |
| }, | |
| "unit/text": { | |
| text: e.unit.name | |
| }, | |
| "unitLogo/unitLogo": { | |
| key: n, | |
| dy: -2 | |
| }, | |
| "attribute/text": { | |
| text: s | |
| }, | |
| "height/text": { | |
| text: c.default.t("idolDetail.profile.height", { | |
| height: u | |
| }) | |
| }, | |
| "weight/text": { | |
| text: c.default.t("idolDetail.profile.weight", { | |
| weight: f | |
| }) | |
| }, | |
| "bloodType/text": { | |
| text: c.default.t("idolDetail.profile.bloodType", { | |
| bloodType: d | |
| }) | |
| }, | |
| "figure/text": { | |
| text: c.default.t("idolDetail.profile.figure", { | |
| bust: p, | |
| waist: h, | |
| hip: y | |
| }) | |
| }, | |
| "age/text": { | |
| text: m | |
| }, | |
| "birthday/text": { | |
| text: _ | |
| }, | |
| "starSign/text": { | |
| text: g | |
| }, | |
| "arm/text": { | |
| text: b | |
| }, | |
| "place/text": { | |
| text: v | |
| }, | |
| "hobby/text": { | |
| text: w | |
| }, | |
| "specialty/text": { | |
| text: k | |
| }, | |
| "cv/text": { | |
| text: S | |
| } | |
| }); | |
| return I["figure/figureTitle"].style.fontSize = 13, I["figure/figureTitle"].y += 1, r | |
| } | |
| return o(t, e), t | |
| }(aoba.Container); | |
| t.default = f | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| l = n(271), | |
| u = r(l), | |
| c = n(467), | |
| f = r(c), | |
| d = n(7), | |
| p = r(d), | |
| h = function (e) { | |
| function t(e, n, r) { | |
| i(this, t); | |
| var o = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)), | |
| s = void 0, | |
| l = { | |
| rarity: e.rarity, | |
| isShowSign: !0 | |
| }; | |
| return "fes" === n ? (s = f.default, l.userFesIdol = e) : (s = u.default, l.idol = e, l.idolType = n), o._idol = e, o._idolType = n, o._cardType = "card", o._card = s.new(l).addTo(o), o.scale.set(.465), o.interactive = !0, o._zoomCardLayer = r, o.once("tap", function () { | |
| o._zoomInCardImage() | |
| }), o | |
| } | |
| return o(t, e), s(t, [{ | |
| key: "switchCardImage", | |
| value: function () { | |
| if ("support" !== this._idolType) { | |
| this._card.removeChildren(); | |
| var e = "card" === this._cardType ? "fes_card" : "card"; | |
| this._card = u.default.new({ | |
| rarity: this._idol.rarity, | |
| isShowSign: !0, | |
| idol: this._idol, | |
| idolType: this._idolType, | |
| cardType: e | |
| }).addTo(this), this._cardType = e | |
| } | |
| } | |
| }, { | |
| key: "_zoomInCardImage", | |
| value: function () { | |
| var e = this; | |
| this._originCardImage = { | |
| x: this.x, | |
| y: this.y, | |
| scale: this.scaleX, | |
| parent: this.parent | |
| }, aoba.soundManager.playSE(p.default.ui.decide), this._card.hideFrame(), this.setScale(1.01).setPosition(-2, 0).addTo(this._zoomCardLayer), this.once("tap", function () { | |
| e._zoomOutCardImage() | |
| }) | |
| } | |
| }, { | |
| key: "_zoomOutCardImage", | |
| value: function () { | |
| var e = this; | |
| aoba.soundManager.playSE(p.default.ui.decide), this._card.showFrame(), this.setScale(this._originCardImage.scale).setPosition(this._originCardImage.x, this._originCardImage.y).addTo(this._originCardImage.parent), this.once("tap", function () { | |
| e._zoomInCardImage() | |
| }) | |
| } | |
| }]), t | |
| }(aoba.Container); | |
| t.default = h | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = { | |
| children: [{ | |
| name: "bg", | |
| fullName: "bg", | |
| type: "sprite", | |
| key: "bg.png", | |
| x: 0, | |
| y: 0 | |
| }, { | |
| children: [{ | |
| name: "detailLeftBase", | |
| fullName: "idolDetailBase/detailLeftBase", | |
| type: "sprite", | |
| key: "detail_left_base.png", | |
| x: 10, | |
| y: 0 | |
| }, { | |
| name: "detailRightBase", | |
| fullName: "idolDetailBase/detailRightBase", | |
| type: "sprite", | |
| key: "detail_right_base.png", | |
| x: 585, | |
| y: 0 | |
| }, { | |
| children: [{ | |
| name: "unitIcon", | |
| fullName: "idolDetailBase/idolName/unitIcon", | |
| anchor: { | |
| x: .5, | |
| y: .5 | |
| }, | |
| type: "sprite", | |
| key: "1.png", | |
| x: 20, | |
| y: 20 | |
| }, { | |
| name: "idolName", | |
| fullName: "idolDetailBase/idolName/idolName", | |
| type: "text", | |
| text: "イルミãƒãƒ¼ã‚·ãƒ§ãƒ³ã‚¹ã‚¿ãƒ¼ã‚ºã€€æ«»æœ¨çœŸä¹ƒ", | |
| style: { | |
| fill: 6378341, | |
| fontFamily: "HummingStd-E", | |
| fontSize: 24 | |
| }, | |
| anchor: { | |
| x: 0, | |
| y: .5 | |
| }, | |
| rotation: 0, | |
| x: 46, | |
| y: 21 | |
| }], | |
| name: "idolName", | |
| fullName: "idolDetailBase/idolName", | |
| type: "container", | |
| x: 26, | |
| y: 6 | |
| }, { | |
| name: "copyright", | |
| fullName: "idolDetailBase/copyright", | |
| anchor: { | |
| x: 1, | |
| y: .5 | |
| }, | |
| type: "text", | |
| text: "©窪岡俊之 ©BANDAI NAMCO Entertainment Inc.", | |
| style: { | |
| fill: 6378341, | |
| fontFamily: "UDKakugo_SmallPr6-B", | |
| fontSize: 12 | |
| }, | |
| rotation: 0, | |
| x: 550, | |
| y: 370 | |
| }, { | |
| name: "cardImage", | |
| fullName: "idolDetailBase/cardImage", | |
| type: "sprite", | |
| key: "card_image.png", | |
| x: 27, | |
| y: 66 | |
| }], | |
| name: "idolDetailBase", | |
| fullName: "idolDetailBase", | |
| type: "container", | |
| x: 6, | |
| y: 69 | |
| }, { | |
| name: "detail", | |
| fullName: "detail", | |
| type: "container", | |
| x: 0, | |
| y: 0 | |
| }], | |
| name: "", | |
| fullName: "", | |
| type: "container" | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }), t.default = { | |
| common: ["images/ui/common/parts_link_skill_dialog.json", "images/ui/idol_detail/parts.json", "images/ui/common/parts_skill_list.json", "images/ui/produce_event/parts_event.json", "images/event/select_frame/001.png", "images/event/select_frame/002.png", "images/event/select_frame/003.png"], | |
| fesIdol: ["images/ui/idol_detail/parts_fes.json"], | |
| produceIdol: ["images/ui/idol_detail/parts_produce.json"], | |
| supportIdol: ["images/ui/idol_detail/parts_support.json"] | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| (function (e) { | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function e(t, n, r) { | |
| null === t && (t = Function.prototype); | |
| var i = Object.getOwnPropertyDescriptor(t, n); | |
| if (void 0 === i) { | |
| var a = Object.getPrototypeOf(t); | |
| return null === a ? void 0 : e(a, n, r) | |
| } | |
| if ("value" in i) return i.value; | |
| var o = i.get; | |
| if (void 0 !== o) return o.call(r) | |
| }, | |
| l = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| u = n(19), | |
| c = r(u), | |
| f = n(1), | |
| d = r(f), | |
| p = { | |
| top_flare: PIXI.BLEND_MODES.ADD, | |
| touch_ADD: PIXI.BLEND_MODES.ADD, | |
| flare_parts_common_anime_gold_all: PIXI.BLEND_MODES.ADD, | |
| title_back_anime: PIXI.BLEND_MODES.ADD, | |
| glow_other_2_common: PIXI.BLEND_MODES.ADD, | |
| "text_glow _1": PIXI.BLEND_MODES.ADD, | |
| START_flash: PIXI.BLEND_MODES.MULTIPLY, | |
| AUDITION_flash: PIXI.BLEND_MODES.ADD, | |
| back_front_light: PIXI.BLEND_MODES.SCREEN | |
| }, | |
| h = { | |
| 1: "n", | |
| 2: "r", | |
| 3: "sr", | |
| 4: "ssr" | |
| }, | |
| y = function (t) { | |
| function n(e, t) { | |
| i(this, n); | |
| var r = a(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this)); | |
| return r._idol = e, r._effectLayer = aoba.Container.new().addTo(r), r._commonEffectLayer = aoba.Container.new().addTo(r._effectLayer), r._fader = aoba.Graphics.new().beginFill(16777215).drawRect(0, 0, aoba.game.width, aoba.game.height).addTo(r, 0, 0, { | |
| alpha: 0 | |
| }), r._touchPanel = aoba.Graphics.new().beginFill(0, 0).drawRect(0, 0, aoba.game.width, aoba.game.height).addTo(r, 0, 0, { | |
| interactive: !0 | |
| }), r._aeTable = {}, r._effectTweens = [], r._createCommonTopEffect(t).then(function () { | |
| return r._createIdolEffect(e, t) | |
| }).then(function () { | |
| return r.emit("initialized") | |
| }), r | |
| } | |
| return o(n, t), l(n, null, [{ | |
| key: "getNameOfRarity", | |
| value: function (e) { | |
| return h[e] | |
| } | |
| }]), l(n, [{ | |
| key: "ezgPreDestroy", | |
| value: function () { | |
| this._cancelEffectTweens(), this._effectLayer = null, this._commonEffectLayer = null, this._fadeTween && this._fadeTween.remove(), this._fadeTween = null, this._fader = null, this._aeTable = null, this._effectTweens = null, this._skipListener = null, s(n.prototype.__proto__ || Object.getPrototypeOf(n.prototype), "ezgPreDestroy", this).call(this) | |
| } | |
| }, { | |
| key: "play", | |
| value: function (e) { | |
| var t = this; | |
| this._playCommonTopEffect(e).then(function () { | |
| return t._playIdolEffect(t._idol) | |
| }) | |
| } | |
| }, { | |
| key: "listAETextureCacheIds", | |
| value: function () { | |
| var t = []; | |
| return e.each(this._aeTable, function (e) { | |
| t = t.concat(e.assets.map(function (e) { | |
| if (e.texture && e.texture.textureCacheIds && e.texture.textureCacheIds.length) return e.texture.textureCacheIds[0] | |
| })) | |
| }), e.uniq(t.filter(function (e) { | |
| return !!e | |
| })) | |
| } | |
| }, { | |
| key: "_createCommonTopEffect", | |
| value: function (t) { | |
| var n = this; | |
| if (t) return Promise.resolve(); | |
| var r = {}; | |
| e.each(p, function (e, t) { | |
| r[t] = { | |
| blendMode: e | |
| } | |
| }); | |
| var i = new PIXI.AEDataInterceptor(r); | |
| return ["top_bg", "hane_fall_anime_all", "audition_cut_in", "audition_loop", "tap_fade_in", "tap_loop", "top_flare"].reduce(function (e, t) { | |
| return e.then(function () { | |
| return (0, c.default)({ | |
| folderPath: "gasha", | |
| interceptor: i, | |
| fileName: t + ".json" | |
| }).then(function (e) { | |
| e.alpha = 0, n._commonEffectLayer.addChild(e), n._aeTable[t] = e | |
| }) | |
| }) | |
| }, Promise.resolve()) | |
| } | |
| }, { | |
| key: "_createIdolEffect", | |
| value: function () {} | |
| }, { | |
| key: "_onStart", | |
| value: function () { | |
| this.emit("started") | |
| } | |
| }, { | |
| key: "_playCommonTopEffect", | |
| value: function (e) { | |
| var t = this; | |
| return e ? (this._onStart(), Promise.resolve()) : new Promise(function (e) { | |
| aoba.FrameTween.new(t).wait(30).call(function () { | |
| t._aeTable.top_bg.alpha = 1, t._aeTable.top_flare.alpha = 1, t._aeTable.hane_fall_anime_all.alpha = 1, t._aeTable.audition_cut_in.alpha = 1, t._aeTable.tap_fade_in.alpha = 1 | |
| }).wait(1).call(function () { | |
| aoba.FrameTween.new(t).wait(3).call(function () { | |
| return aoba.soundManager.playSE("se0180") | |
| }), t._onStart(), t._aeTable.top_bg.play(), t._aeTable.top_flare.play(!0), t._aeTable.hane_fall_anime_all.play(!0), t._aeTable.audition_cut_in.on("completed", function () { | |
| t._aeTable.audition_cut_in.alpha = 0, t._aeTable.audition_loop.alpha = 1, t._aeTable.audition_loop.play(!0) | |
| }), t._aeTable.audition_cut_in.play(), t._aeTable.tap_fade_in.on("completed", function () { | |
| t._aeTable.tap_fade_in.alpha = 0, t._aeTable.tap_loop.alpha = 1, t._aeTable.tap_loop.play(!0) | |
| }), t._aeTable.tap_fade_in.play(), t._touchPanel.once("tap", function () { | |
| t.initIdolMovie().then(e) | |
| }) | |
| }) | |
| }) | |
| } | |
| }, { | |
| key: "_playIdolEffect", | |
| value: function () {} | |
| }, { | |
| key: "initIdolMovie", | |
| value: function () { | |
| return Promise.resolve() | |
| } | |
| }, { | |
| key: "_setSkipListener", | |
| value: function (e) { | |
| this._skipListener && (this._touchPanel.removeListener("tap", this._onSkip, this), this._skipListener = null), e && this._isSkipEnabled() && (this._skipListener = e, this._touchPanel.once("tap", this._onSkip, this)) | |
| } | |
| }, { | |
| key: "_isSkipEnabled", | |
| value: function () { | |
| return this._idol.rarity === d.default.app.RARITIES.R || this._idol.rarity === d.default.app.RARITIES.SR && !this._idol.isNew | |
| } | |
| }, { | |
| key: "_onSkip", | |
| value: function () { | |
| var e = this._skipListener; | |
| this._skipListener = null, e() | |
| } | |
| }, { | |
| key: "fadeIn", | |
| value: function () { | |
| this._fadeTween && this._fadeTween.remove(), this._fader.alpha = 1, this._fadeTween = aoba.FrameTween.new(this._fader).to({ | |
| alpha: 0 | |
| }, 5) | |
| } | |
| }, { | |
| key: "fadeOut", | |
| value: function () { | |
| this._fadeTween && this._fadeTween.remove(), this._fader.alpha = 0, this._fadeTween = aoba.FrameTween.new(this._fader).to({ | |
| alpha: 1 | |
| }, 5) | |
| } | |
| }, { | |
| key: "whiten", | |
| value: function () { | |
| this._fadeTween && this._fadeTween.remove(), this._fader.alpha = 1 | |
| } | |
| }, { | |
| key: "_seekAE", | |
| value: function (e, t) { | |
| var n = e.deltaPlayer, | |
| r = n.inFrame + 30 * n.elapsedTime / 1e3, | |
| i = t - r; | |
| e.updateByDelta(1e3 * i / 30) | |
| } | |
| }, { | |
| key: "_findAELayer", | |
| value: function (t, n) { | |
| var r = void 0; | |
| return e.each(this._aeTable, function (e, i) { | |
| if (void 0 === r && (!n || i === n)) { | |
| var a = e.find(t); | |
| 1 === a.length && (r = a[0]) | |
| } | |
| }), r | |
| } | |
| }, { | |
| key: "_createEffectTween", | |
| value: function (e, t) { | |
| var n = t ? aoba.FrameTween.fromData(e, t) : aoba.FrameTween.new(e); | |
| return this._effectTweens.push(n), n | |
| } | |
| }, { | |
| key: "_cancelEffectTweens", | |
| value: function () { | |
| this._effectTweens.forEach(function (e) { | |
| return e.remove() | |
| }), this._effectTweens = [] | |
| } | |
| }, { | |
| key: "_playParticles", | |
| value: function (t) { | |
| var n = this; | |
| t && t.forEach(function (t) { | |
| t.conf.props && e.each(t.conf.props, function (e, n) { | |
| t[n] = e | |
| }), n._createEffectTween(t).wait(t.conf.delay).call(function () { | |
| t.play(), t.conf.duration && n._createEffectTween(t).wait(t.conf.duration).to({ | |
| alpha: 0 | |
| }, 3), t.conf.tween && n._createEffectTween(t, t.conf.tween) | |
| }) | |
| }) | |
| } | |
| }, { | |
| key: "_playSEs", | |
| value: function (e) { | |
| var t = this; | |
| e && e.forEach(function (e) { | |
| t._createEffectTween(t).wait(e.delay).call(function () { | |
| return aoba.soundManager.playSE(e.id) | |
| }) | |
| }) | |
| } | |
| }, { | |
| key: "_playVoice", | |
| value: function (e) { | |
| var t = this; | |
| e && e.forEach(function (e) { | |
| var n = t._idol.getVoicePath(e.id); | |
| n && t._createEffectTween(t).wait(e.delay).call(function () { | |
| return aoba.soundManager.playSE(n) | |
| }) | |
| }) | |
| } | |
| }]), n | |
| }(aoba.Container); | |
| t.default = y | |
| }).call(t, n(4)) | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| return e && e.__esModule ? e : { | |
| default: e | |
| } | |
| } | |
| function i(e, t) { | |
| if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
| } | |
| function a(e, t) { | |
| if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| return !t || "object" != typeof t && "function" != typeof t ? e : t | |
| } | |
| function o(e, t) { | |
| if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
| e.prototype = Object.create(t && t.prototype, { | |
| constructor: { | |
| value: e, | |
| enumerable: !1, | |
| writable: !0, | |
| configurable: !0 | |
| } | |
| }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
| } | |
| Object.defineProperty(t, "__esModule", { | |
| value: !0 | |
| }); | |
| var s = function () { | |
| function e(e, t) { | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n]; | |
| r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) | |
| } | |
| } | |
| return function (t, n, r) { | |
| return n && e(t.prototype, n), r && e(t, r), t | |
| } | |
| }(), | |
| l = function e(t, n, r) { | |
| null === t && (t = Function.prototype); | |
| var i = Object.getOwnPropertyDescriptor(t, n); | |
| if (void 0 === i) { | |
| var a = Object.getPrototypeOf(t); | |
| return null === a ? void 0 : e(a, n, r) | |
| } | |
| if ("value" in i) return i.value; | |
| var o = i.get; | |
| if (void 0 !== o) return o.call(r) | |
| }, | |
| u = n(1), | |
| c = r(u), | |
| f = n(3), | |
| d = r(f), | |
| p = n(1289), | |
| h = r(p), | |
| y = n(427), | |
| m = r(y), | |
| _ = n(478), | |
| g = r(_), | |
| b = { | |
| fill: 5592405, | |
| fontSize: 22, | |
| lineHeight: 30, | |
| wordWrap: !0, | |
| wordWrapWidth: 660, | |
| breakWords: !0, | |
| fontFamily: "HummingStd-E" | |
| }, | |
| v = function (e) { | |
| function t() { | |
| var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : { | |
| hasBalloon: !0 | |
| }; | |
| i(this, t); | |
| var n = a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)), | |
| r = { | |
| hasBalloon: !0 | |
| }; | |
| e = Object.assign(r, e), n._animate = !e || void 0 === e.animate || e.animate; | |
| var o = !(!e || void 0 === e.hasBg) && e.hasBg, | |
| s = n._animate ? "wait" : "lip_smile_s"; | |
| o && aoba.Sprite.new(c.default.bg.HOME).addTo(n, -39, -66); | |
| var l = n.fromData(h.default, { | |
| staff: { | |
| key: null | |
| }, | |
| staffBalloon: { | |
| dy: 30 | |
| }, | |
| "staffBalloon/staffBalloon": e.hasBalloon ? { | |
| dx: -207, | |
| dy: -50 | |
| } : null, | |
| "staffBalloon/comment": { | |
| style: b, | |
| x: 48, | |
| dy: -35 | |
| } | |
| }); | |
| return n._staff = l.staff, n._staffBalloon = l.staffBalloon, n._comment = l["staffBalloon/comment"], n._comment.style.fontFamily = "HummingStd-E", n._staffSpine = m.default.new("spine/sub_characters/stand/staff/data.json"), n._staffSpine.position = n._staff.position, n._staffSpine.playAnimation(s), n.addChildAt(n._staffSpine, n.getChildIndex(n._staff)), aoba.Text.new(d.default.t("common.staff"), { | |
| fill: 5592405, | |
| fontFamily: "HummingStd-E", | |
| fontSize: 26 | |
| }).addTo(n._staffBalloon, 60, -35), n | |
| } | |
| return o(t, e), s(t, [{ | |
| key: "ezgPreDestroy", | |
| value: function () { | |
| this.stopVoice(), l(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "ezgPreDestroy", this).call(this) | |
| } | |
| }, { | |
| key: "_playStaffAnimation", | |
| value: function (e, t) { | |
| this._staffSpine.playAnimation(e, t) | |
| } | |
| }, { | |
| key: "showBalloon", | |
| value: function () { | |
| var e = this; | |
| return new Promise(function (t) { | |
| aoba.FrameTween.new(e._staffBalloon).call(function () { | |
| e._staffBalloon.show() | |
| }).from({ | |
| alpha: 0 | |
| }, 10).call(t) | |
| }) | |
| } | |
| }, { | |
| key: "hideBalloon", | |
| value: function () { | |
| this._staffBalloon.hide(), this.stopVoice() | |
| } | |
| }, { | |
| key: "open", | |
| value: function (e) { | |
| var t = this, | |
| n = e.comment, | |
| r = e.voice, | |
| i = e.animation, | |
| a = void 0 === i ? "wait" : i, | |
| o = e.faceAnimation, | |
| s = void 0 === o ? "blank" : o, | |
| l = e.lipAnimation, | |
| u = void 0 === l ? "lip_smile" : l, | |
| c = e.interval, | |
| f = void 0 === c ? 64 : c; | |
| return new Promise(function (e) { | |
| t._animate && t._playStaffAnimation(a, s), t._comment.typeInterval = f, t._comment.typeText(n, !0), t._comment.on("endText", function () { | |
| t.emit("end"), e() | |
| }), t._playVoice(r, u) | |
| }) | |
| } | |
| }, { | |
| key: "close", | |
| value: function () { | |
| this.hide(), this.stopVoice() | |
| } | |
| }, { | |
| key: "changeAnimation", | |
| value: function (e) { | |
| var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "blank"; | |
| this._playStaffAnimation(e, t) | |
| } | |
| }, { | |
| key: "setSpinePosition", | |
| value: function (e, t) { | |
| this._staffSpine.position.set(e, t) | |
| } | |
| }, { | |
| key: "setSpineScale", | |
| value: function (e) { | |
| this._staffSpine.scale.set(e) | |
| } | |
| }, { | |
| key: "_playVoice", | |
| value: function (e, t) { | |
| var n = this; | |
| if (this.stopVoice(), e) { | |
| var r = g.default.getVoicePath(e); | |
| aoba.soundManager.playVoiceAsync(r).then(function (e) { | |
| n._voiceSound = e, n._voiceSound && n._staffSpine.playLipAnimation(t, n._voiceSound.duration) | |
| }) | |
| } | |
| } | |
| }, { | |
| key: "stopVoice", | |
| value: function () { | |
| this._voiceSound && (this._voiceSound.stop(), this._voiceSound = null), this._staffSpine.stopLipAnimation() | |
| } | |
| }]), t | |
| }(aoba.Container); | |
| t.default = v | |
| }, function (e, t, n) { | |
| var r = n(17), | |
| i = n(11).document, | |
| a = r(i) && r(i.createElement); | |
| e.exports = function (e) { | |
| return a ? i.createElement(e) : {} | |
| } | |
| }, function (e, t, n) { | |
| var r = n(11), | |
| i = n(59), | |
| a = n(86), | |
| o = n(286), | |
| s = n(28).f; | |
| e.exports = function (e) { | |
| var t = i.Symbol || (i.Symbol = a ? {} : r.Symbol || {}); | |
| "_" == e.charAt(0) || e in t || s(t, e, { | |
| value: o.f(e) | |
| }) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(141)("keys"), | |
| i = n(85); | |
| e.exports = function (e) { | |
| return r[e] || (r[e] = i(e)) | |
| } | |
| }, function (e, t) { | |
| e.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",") | |
| }, function (e, t, n) { | |
| var r = n(11).document; | |
| e.exports = r && r.documentElement | |
| }, function (e, t, n) { | |
| var r = n(17), | |
| i = n(8), | |
| a = function (e, t) { | |
| if (i(e), !r(t) && null !== t) throw TypeError(t + ": can't set as prototype!") | |
| }; | |
| e.exports = { | |
| set: Object.setPrototypeOf || ("__proto__" in {} ? function (e, t, r) { | |
| try { | |
| r = n(53)(Function.call, n(50).f(Object.prototype, "__proto__").set, 2), r(e, []), t = !(e instanceof Array) | |
| } catch (e) { | |
| t = !0 | |
| } | |
| return function (e, n) { | |
| return a(e, n), t ? e.__proto__ = n : r(e, n), e | |
| } | |
| }({}, !1) : void 0), | |
| check: a | |
| } | |
| }, function (e, t) { | |
| e.exports = "\t\n\v\f\r Â áš€á Žâ€€â€â€‚         âŸã€€\u2028\u2029\ufeff" | |
| }, function (e, t, n) { | |
| var r = n(17), | |
| i = n(193).set; | |
| e.exports = function (e, t, n) { | |
| var a, o = t.constructor; | |
| return o !== n && "function" == typeof o && (a = o.prototype) !== n.prototype && r(a) && i && i(e, a), e | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(62), | |
| i = n(61); | |
| e.exports = function (e) { | |
| var t = String(i(this)), | |
| n = "", | |
| a = r(e); | |
| if (a < 0 || a == 1 / 0) throw RangeError("Count can't be negative"); | |
| for (; a > 0; | |
| (a >>>= 1) && (t += t)) 1 & a && (n += t); | |
| return n | |
| } | |
| }, function (e, t) { | |
| e.exports = Math.sign || function (e) { | |
| return 0 == (e = +e) || e != e ? e : e < 0 ? -1 : 1 | |
| } | |
| }, function (e, t) { | |
| var n = Math.expm1; | |
| e.exports = !n || n(10) > 22025.465794806718 || n(10) < 22025.465794806718 || -2e-17 != n(-2e-17) ? function (e) { | |
| return 0 == (e = +e) ? e : e > -1e-6 && e < 1e-6 ? e + e * e / 2 : Math.exp(e) - 1 | |
| } : n | |
| }, function (e, t, n) { | |
| var r = n(62), | |
| i = n(61); | |
| e.exports = function (e) { | |
| return function (t, n) { | |
| var a, o, s = String(i(t)), | |
| l = r(n), | |
| u = s.length; | |
| return l < 0 || l >= u ? e ? "" : void 0 : (a = s.charCodeAt(l), a < 55296 || a > 56319 || l + 1 === u || (o = s.charCodeAt(l + 1)) < 56320 || o > 57343 ? e ? s.charAt(l) : a : e ? s.slice(l, l + 2) : o - 56320 + (a - 55296 << 10) + 65536) | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(86), | |
| i = n(2), | |
| a = n(47), | |
| o = n(46), | |
| s = n(45), | |
| l = n(102), | |
| u = n(201), | |
| c = n(100), | |
| f = n(51), | |
| d = n(25)("iterator"), | |
| p = !([].keys && "next" in [].keys()), | |
| h = function () { | |
| return this | |
| }; | |
| e.exports = function (e, t, n, y, m, _, g) { | |
| u(n, t, y); | |
| var b, v, w, k = function (e) { | |
| if (!p && e in A) return A[e]; | |
| switch (e) { | |
| case "keys": | |
| case "values": | |
| return function () { | |
| return new n(this, e) | |
| } | |
| } | |
| return function () { | |
| return new n(this, e) | |
| } | |
| }, | |
| S = t + " Iterator", | |
| I = "values" == m, | |
| E = !1, | |
| A = e.prototype, | |
| x = A[d] || A["@@iterator"] || m && A[m], | |
| C = x || k(m), | |
| T = m ? I ? k("entries") : C : void 0, | |
| P = "Array" == t ? A.entries || x : x; | |
| if (P && (w = f(P.call(new e))) !== Object.prototype && w.next && (c(w, S, !0), r || s(w, d) || o(w, d, h)), I && x && "values" !== x.name && (E = !0, C = function () { | |
| return x.call(this) | |
| }), r && !g || !p && !E && A[d] || o(A, d, C), l[t] = C, l[S] = h, m) | |
| if (b = { | |
| values: I ? C : k("values"), | |
| keys: _ ? C : k("keys"), | |
| entries: T | |
| }, g) | |
| for (v in b) v in A || a(A, v, b[v]); | |
| else i(i.P + i.F * (p || E), t, b); | |
| return b | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(89), | |
| i = n(84), | |
| a = n(100), | |
| o = {}; | |
| n(46)(o, n(25)("iterator"), function () { | |
| return this | |
| }), e.exports = function (e, t, n) { | |
| e.prototype = r(o, { | |
| next: i(1, n) | |
| }), a(e, t + " Iterator") | |
| } | |
| }, function (e, t, n) { | |
| var r = n(145), | |
| i = n(61); | |
| e.exports = function (e, t, n) { | |
| if (r(t)) throw TypeError("String#" + n + " doesn't accept regex!"); | |
| return String(i(e)) | |
| } | |
| }, function (e, t, n) { | |
| var r = n(25)("match"); | |
| e.exports = function (e) { | |
| var t = /./; | |
| try { | |
| "/./" [e](t) | |
| } catch (n) { | |
| try { | |
| return t[r] = !1, !"/./" [e](t) | |
| } catch (e) {} | |
| } | |
| return !0 | |
| } | |
| }, function (e, t, n) { | |
| var r = n(102), | |
| i = n(25)("iterator"), | |
| a = Array.prototype; | |
| e.exports = function (e) { | |
| return void 0 !== e && (r.Array === e || a[i] === e) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(28), | |
| i = n(84); | |
| e.exports = function (e, t, n) { | |
| t in e ? r.f(e, t, i(0, n)) : e[t] = n | |
| } | |
| }, function (e, t, n) { | |
| var r = n(121), | |
| i = n(25)("iterator"), | |
| a = n(102); | |
| e.exports = n(59).getIteratorMethod = function (e) { | |
| if (void 0 != e) return e[i] || e["@@iterator"] || a[r(e)] | |
| } | |
| }, function (e, t, n) { | |
| var r = n(589); | |
| e.exports = function (e, t) { | |
| return new(r(e))(t) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(33), | |
| i = n(88), | |
| a = n(29); | |
| e.exports = function (e) { | |
| for (var t = r(this), n = a(t.length), o = arguments.length, s = i(o > 1 ? arguments[1] : void 0, n), l = o > 2 ? arguments[2] : void 0, u = void 0 === l ? n : i(l, n); u > s;) t[s++] = e; | |
| return t | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| var r = n(79), | |
| i = n(302), | |
| a = n(102), | |
| o = n(49); | |
| e.exports = n(200)(Array, "Array", function (e, t) { | |
| this._t = o(e), this._i = 0, this._k = t | |
| }, function () { | |
| var e = this._t, | |
| t = this._k, | |
| n = this._i++; | |
| return !e || n >= e.length ? (this._t = void 0, i(1)) : "keys" == t ? i(0, n) : "values" == t ? i(0, e[n]) : i(0, [n, e[n]]) | |
| }, "values"), a.Arguments = a.Array, r("keys"), r("values"), r("entries") | |
| }, function (e, t, n) { | |
| var r, i, a, o = n(53), | |
| s = n(292), | |
| l = n(192), | |
| u = n(188), | |
| c = n(11), | |
| f = c.process, | |
| d = c.setImmediate, | |
| p = c.clearImmediate, | |
| h = c.MessageChannel, | |
| y = c.Dispatch, | |
| m = 0, | |
| _ = {}, | |
| g = function () { | |
| var e = +this; | |
| if (_.hasOwnProperty(e)) { | |
| var t = _[e]; | |
| delete _[e], t() | |
| } | |
| }, | |
| b = function (e) { | |
| g.call(e.data) | |
| }; | |
| d && p || (d = function (e) { | |
| for (var t = [], n = 1; arguments.length > n;) t.push(arguments[n++]); | |
| return _[++m] = function () { | |
| s("function" == typeof e ? e : Function(e), t) | |
| }, r(m), m | |
| }, p = function (e) { | |
| delete _[e] | |
| }, "process" == n(54)(f) ? r = function (e) { | |
| f.nextTick(o(g, e, 1)) | |
| } : y && y.now ? r = function (e) { | |
| y.now(o(g, e, 1)) | |
| } : h ? (i = new h, a = i.port2, i.port1.onmessage = b, r = o(a.postMessage, a, 1)) : c.addEventListener && "function" == typeof postMessage && !c.importScripts ? (r = function (e) { | |
| c.postMessage(e + "", "*") | |
| }, c.addEventListener("message", b, !1)) : r = "onreadystatechange" in u("script") ? function (e) { | |
| l.appendChild(u("script")).onreadystatechange = function () { | |
| l.removeChild(this), g.call(e) | |
| } | |
| } : function (e) { | |
| setTimeout(o(g, e, 1), 0) | |
| }), e.exports = { | |
| set: d, | |
| clear: p | |
| } | |
| }, function (e, t, n) { | |
| var r = n(11), | |
| i = n(210).set, | |
| a = r.MutationObserver || r.WebKitMutationObserver, | |
| o = r.process, | |
| s = r.Promise, | |
| l = "process" == n(54)(o); | |
| e.exports = function () { | |
| var e, t, n, u = function () { | |
| var r, i; | |
| for (l && (r = o.domain) && r.exit(); e;) { | |
| i = e.fn, e = e.next; | |
| try { | |
| i() | |
| } catch (r) { | |
| throw e ? n() : t = void 0, r | |
| } | |
| } | |
| t = void 0, r && r.enter() | |
| }; | |
| if (l) n = function () { | |
| o.nextTick(u) | |
| }; | |
| else if (a) { | |
| var c = !0, | |
| f = document.createTextNode(""); | |
| new a(u).observe(f, { | |
| characterData: !0 | |
| }), n = function () { | |
| f.data = c = !c | |
| } | |
| } else if (s && s.resolve) { | |
| var d = s.resolve(); | |
| n = function () { | |
| d.then(u) | |
| } | |
| } else n = function () { | |
| i.call(r, u) | |
| }; | |
| return function (r) { | |
| var i = { | |
| fn: r, | |
| next: void 0 | |
| }; | |
| t && (t.next = i), e || (e = i, n()), t = i | |
| } | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e) { | |
| var t, n; | |
| this.promise = new e(function (e, r) { | |
| if (void 0 !== t || void 0 !== n) throw TypeError("Bad Promise constructor"); | |
| t = e, n = r | |
| }), this.resolve = i(t), this.reject = i(n) | |
| } | |
| // 25.4.1.5 NewPromiseCapability(C) | |
| var i = n(37); | |
| e.exports.f = function (e) { | |
| return new r(e) | |
| } | |
| }, function (e, t, n) { | |
| "use strict"; | |
| function r(e, t, n) { | |
| var r, i, a, o = Array(n), | |
| s = 8 * n - t - 1, | |
| l = (1 << s) - 1, | |
| u = l >> 1, | |
| c = 23 === t ? j(2, -24) - j(2, -77) : 0, | |
| f = 0, | |
| d = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0; | |
| for (e = B(e), e != e || e === D ? (i = e != e ? 1 : 0, r = l) : (r = L(U(e) / H), e * (a = j(2, -r)) < 1 && (r--, a *= 2), e += r + u >= 1 ? c / a : c * j(2, 1 - u), e * a >= 2 && (r++, a /= 2), r + u >= l ? (i = 0, r = l) : r + u >= 1 ? (i = (e * a - 1) * j(2, t), r += u) : (i = e * j(2, u - 1) * j(2, t), r = 0)); t >= 8; o[f++] = 255 & i, i /= 256, t -= 8); | |
| for (r = r << t | i, s += t; s > 0; o[f++] = 255 & r, r /= 256, s -= 8); | |
| return o[--f] |= 128 * d, o | |
| } | |
| function i(e, t, n) { | |
| var r, i = 8 * n - t - 1, | |
| a = (1 << i) - 1, | |
| o = a >> 1, | |
| s = i - 7, | |
| l = n - 1, | |
| u = e[l--], | |
| c = 127 & u; | |
| for (u >>= 7; s > 0; c = 256 * c + e[l], l--, s -= 8); | |
| for (r = c & (1 << -s) - 1, c >>= -s, s += t; s > 0; r = 256 * r + e[l], l--, s -= 8); | |
| if (0 === c) c = 1 - o; | |
| else { | |
| if (c === a) return r ? NaN : u ? -D : D; | |
| r += j(2, t), c -= o | |
| } | |
| return (u ? -1 : 1) * r * j(2, c - t) | |
| } | |
| function a(e) { | |
| return e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0] | |
| } | |
| function o(e) { | |
| return [255 & e] | |
| } | |
| function s(e) { | |
| return [255 & e, e >> 8 & 255] | |
| } | |
| function l(e) { | |
| return [255 & e, e >> 8 & 255, e >> 16 & 255, e >> 24 & 255] | |
| } | |
| function u(e) { | |
| return r(e, 52, 8) | |
| } | |
| function c(e) { | |
| return r(e, 23, 4) | |
| } | |
| function f(e, t, n) { | |
| A(e[T], t, { | |
| get: function () { | |
| return this[n] | |
| } | |
| }) | |
| } | |
| function d(e, t, n, r) { | |
| var i = +n, | |
| a = I(i); | |
| if (a + t > e[z]) throw R(P); | |
| var o = e[G]._b, | |
| s = a + e[V], | |
| l = o.slice(s, s + t); | |
| return r ? l : l.reverse() | |
| } | |
| function p(e, t, n, r, i, a) { | |
| var o = +n, | |
| s = I(o); | |
| if (s + t > e[z]) throw R(P); | |
| for (var l = e[G]._b, u = s + e[V], c = r(+i), f = 0; f < t; f++) l[u + f] = c[a ? f : t - f - 1] | |
| } | |
| var h = n(11), | |
| y = n(27), | |
| m = n(86), | |
| _ = n(151), | |
| g = n(46), | |
| b = n(94), | |
| v = n(15), | |
| w = n(92), | |
| k = n(62), | |
| S = n(29), | |
| I = n(311), | |
| E = n(90).f, | |
| A = n(28).f, | |
| x = n(208), | |
| C = n(100), | |
| T = "prototype", | |
| P = "Wrong index!", | |
| O = h.ArrayBuffer, | |
| N = h.DataView, | |
| M = h.Math, | |
| R = h.RangeError, | |
| D = h.Infinity, | |
| F = O, | |
| B = M.abs, | |
| j = M.pow, | |
| L = M.floor, | |
| U = M.log, | |
| H = M.LN2, | |
| G = y ? "_b" : "buffer", | |
| z = y ? "_l" : "byteLength", | |
| V = y ? "_o" : "byteOffset"; | |
| if (_.ABV) { | |
| if (!v(function () { | |
| O(1) | |
| }) || !v(function () { | |
| new O(-1) | |
| }) || v(function () { | |
| return new O, new O(1.5), new O(NaN), "ArrayBuffer" != O.name | |
| })) { | |
| O = function (e) { | |
| return w(this, O), new F(I(e)) | |
| }; | |
| for (var K, W = O[T] = F[T], q = E(F), X = 0; q.length > X;)(K = q[X++]) in O || g(O, K, F[K]); | |
| m || (W.constructor = O) | |
| } | |
| var Y = new N(new O(2)), | |
| J = N[T].setInt8; | |
| Y.setInt8(0, 2147483648), Y.setInt8(1, 2147483649), !Y.getInt8(0) && Y.getInt8(1) || b(N[T], { | |
| setInt8: function (e, t) { | |
| J.call(this, e, t << 24 >> 24) | |
| }, | |
| setUint8: function (e, t) { | |
| J.call(this, e, t << 24 >> 24) | |
| } | |
| }, !0) | |
| } else O = function (e) { | |
| w(this, O, "ArrayBuffer"); | |
| var t = I(e); | |
| this._b = x.call(Array(t), 0), this[z] = t | |
| }, N = function (e, t, n) { | |
| w(this, N, "DataView"), w(e, O, "DataView"); | |
| var r = e[z], | |
| i = k(t); | |
| if (i < 0 || i > r) throw R("Wrong offset!"); | |
| if (n = void 0 === n ? r - i : S(n), i + n > r) throw R("Wrong length!"); | |
| this[G] = e, this[V] = i, this[z] = n | |
| }, y && (f(O, "byteLength", "_l"), f(N, "buffer", "_b"), f(N, "byteLength", "_l"), f(N, "byteOffset", "_o")), b(N[T], { | |
| getInt8: function (e) { | |
| return d(this, 1, e)[0] << 24 >> 24 | |
| }, | |
| getUint8: function (e) { | |
| return d(this, 1, e)[0] | |
| }, | |
| getInt16: function (e) { | |
| var t = d(this, 2, e, arguments[1]); | |
| return (t[1] << 8 | t[0]) << 16 >> 16 | |
| }, | |
| getUint16: function (e) { | |
| var t = d(this, 2, e, arguments[1]); | |
| return t[1] << 8 | t[0] | |
| }, | |
| getInt32: function (e) { | |
| return a(d(this, 4, e, arguments[1])) | |
| }, | |
| getUint32: function (e) { | |
| return a(d(this, 4, e, arguments[1])) >>> 0 | |
| }, | |
| getFloat32: function (e) { | |
| return i(d(this, 4, e, arguments[1]), 23, 4) | |
| }, | |
| getFloat64: function (e) { | |
| return i(d(this, 8, e, arguments[1]), 52, 8) | |
| }, | |
| setInt8: function (e, t) { | |
| p(this, 1, e, o, t) | |
| }, | |
| setUint8: function (e, t) { | |
| p(this, 1, e, o, t) | |
| }, | |
| setInt16: function (e, t) { | |
| p(this, 2, e, s, t, arguments[2]) | |
| }, | |
| setUint16: function (e, t) { | |
| p(this, 2, e, s, t, arguments[2]) | |
| }, | |
| setInt32: function (e, t) { | |
| p(this, 4, e, l, t, arguments[2]) | |
| }, | |
| setUint32: function (e, t) { | |
| p(this, 4, e, l, t, arguments[2]) | |
| }, | |
| setFloat32: function (e, t) { | |
| p(this, 4, e, c, t, arguments[2]) | |
| }, | |
| setFloat64: function (e, t) { | |
| p(this, 8, e, u, t, arguments[2]) | |
| } | |
| }); | |
| C(O, "ArrayBuffer"), C(N, "DataView"), g(N[T], _.VIEW, !0), t.ArrayBuffer = O, t.DataView = N | |
| }, function (module, exports, __webpack_require__) { | |
| "use strict"; | |
| (function (process, __dirname, Buffer) { | |
| function globalEval(e) { | |
| eval.call(null, e) | |
| } | |
| function assert(e, t) { | |
| e || abort("Assertion failed: " + t) | |
| } | |
| function getCFunc(ident) { | |
| var func = Module["_" + ident]; | |
| if (!func) try { | |
| func = eval("_" + ident) | |
| } catch (e) {} | |
| return assert(func, "Cannot call unknown function " + ident + " (perhaps LLVM optimizations or closure removed it?)"), func | |
| } | |
| function setValue(e, t, n, r) { | |
| switch (n = n || "i8", "*" === n.charAt(n.length - 1) && (n = "i32"), n) { | |
| case "i1": | |
| case "i8": | |
| HEAP8[e >> 0] = t; | |
| break; | |
| case "i16": | |
| HEAP16[e >> 1] = t; | |
| break; | |
| case "i32": | |
| HEAP32[e >> 2] = t; | |
| break; | |
| case "i64": | |
| tempI64 = [t >>> 0, (tempDouble = t, +Math_abs(tempDouble) >= 1 ? tempDouble > 0 ? (0 | Math_min(+Math_floor(tempDouble / 4294967296), 4294967295)) >>> 0 : ~~+Math_ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)], HEAP32[e >> 2] = tempI64[0], HEAP32[e + 4 >> 2] = tempI64[1]; | |
| break; | |
| case "float": | |
| HEAPF32[e >> 2] = t; | |
| break; | |
| case "double": | |
| HEAPF64[e >> 3] = t; | |
| break; | |
| default: | |
| abort("invalid type for setValue: " + n) | |
| } | |
| } | |
| function getValue(e, t, n) { | |
| switch (t = t || "i8", "*" === t.charAt(t.length - 1) && (t = "i32"), t) { | |
| case "i1": | |
| case "i8": | |
| return HEAP8[e >> 0]; | |
| case "i16": | |
| return HEAP16[e >> 1]; | |
| case "i32": | |
| case "i64": | |
| return HEAP32[e >> 2]; | |
| case "float": | |
| return HEAPF32[e >> 2]; | |
| case "double": | |
| return HEAPF64[e >> 3]; | |
| default: | |
| abort("invalid type for setValue: " + t) | |
| } | |
| return null | |
| } | |
| function allocate(e, t, n, r) { | |
| var i, a; | |
| "number" == typeof e ? (i = !0, a = e) : (i = !1, a = e.length); | |
| var o, s = "string" == typeof t ? t : null; | |
| if (o = n == ALLOC_NONE ? r : [_malloc, Runtime.stackAlloc, Runtime.staticAlloc, Runtime.dynamicAlloc][void 0 === n ? ALLOC_STATIC : n](Math.max(a, s ? 1 : t.length)), i) { | |
| var l, r = o; | |
| for (assert(0 == (3 & o)), l = o + (-4 & a); r < l; r += 4) HEAP32[r >> 2] = 0; | |
| for (l = o + a; r < l;) HEAP8[r++ >> 0] = 0; | |
| return o | |
| } | |
| if ("i8" === s) return e.subarray || e.slice ? HEAPU8.set(e, o) : HEAPU8.set(new Uint8Array(e), o), o; | |
| for (var u, c, f, d = 0; d < a;) { | |
| var p = e[d]; | |
| "function" == typeof p && (p = Runtime.getFunctionIndex(p)), u = s || t[d], 0 !== u ? ("i64" == u && (u = "i32"), setValue(o + d, p, u), f !== u && (c = Runtime.getNativeTypeSize(u), f = u), d += c) : d++ | |
| } | |
| return o | |
| } | |
| function getMemory(e) { | |
| return staticSealed ? void 0 !== _sbrk && !_sbrk.called || !runtimeInitialized ? Runtime.dynamicAlloc(e) : _malloc(e) : Runtime.staticAlloc(e) | |
| } | |
| function Pointer_stringify(e, t) { | |
| if (0 === t || !e) return ""; | |
| for (var n, r = 0, i = 0;;) { | |
| if (n = HEAPU8[e + i >> 0], r |= n, 0 == n && !t) break; | |
| if (i++, t && i == t) break | |
| } | |
| t || (t = i); | |
| var a = ""; | |
| if (r < 128) { | |
| for (var o; t > 0;) o = String.fromCharCode.apply(String, HEAPU8.subarray(e, e + Math.min(t, 1024))), a = a ? a + o : o, e += 1024, t -= 1024; | |
| return a | |
| } | |
| return Module.UTF8ToString(e) | |
| } | |
| function AsciiToString(e) { | |
| for (var t = "";;) { | |
| var n = HEAP8[e++ >> 0]; | |
| if (!n) return t; | |
| t += String.fromCharCode(n) | |
| } | |
| } | |
| function stringToAscii(e, t) { | |
| return writeAsciiToMemory(e, t, !1) | |
| } | |
| function UTF8ArrayToString(e, t) { | |
| for (var n, r, i, a, o, s, l = "";;) { | |
| if (!(n = e[t++])) return l; | |
| if (128 & n) | |
| if (r = 63 & e[t++], 192 != (224 & n)) | |
| if (i = 63 & e[t++], 224 == (240 & n) ? n = (15 & n) << 12 | r << 6 | i : (a = 63 & e[t++], 240 == (248 & n) ? n = (7 & n) << 18 | r << 12 | i << 6 | a : (o = 63 & e[t++], 248 == (252 & n) ? n = (3 & n) << 24 | r << 18 | i << 12 | a << 6 | o : (s = 63 & e[t++], n = (1 & n) << 30 | r << 24 | i << 18 | a << 12 | o << 6 | s))), n < 65536) l += String.fromCharCode(n); | |
| else { | |
| var u = n - 65536; | |
| l += String.fromCharCode(55296 | u >> 10, 56320 | 1023 & u) | |
| } | |
| else l += String.fromCharCode((31 & n) << 6 | r); | |
| else l += String.fromCharCode(n) | |
| } | |
| } | |
| function UTF8ToString(e) { | |
| return UTF8ArrayToString(HEAPU8, e) | |
| } | |
| function stringToUTF8Array(e, t, n, r) { | |
| if (!(r > 0)) return 0; | |
| for (var i = n, a = n + r - 1, o = 0; o < e.length; ++o) { | |
| var s = e.charCodeAt(o); | |
| if (s >= 55296 && s <= 57343 && (s = 65536 + ((1023 & s) << 10) | 1023 & e.charCodeAt(++o)), s <= 127) { | |
| if (n >= a) break; | |
| t[n++] = s | |
| } else if (s <= 2047) { | |
| if (n + 1 >= a) break; | |
| t[n++] = 192 | s >> 6, t[n++] = 128 | 63 & s | |
| } else if (s <= 65535) { | |
| if (n + 2 >= a) break; | |
| t[n++] = 224 | s >> 12, t[n++] = 128 | s >> 6 & 63, t[n++] = 128 | 63 & s | |
| } else if (s <= 2097151) { | |
| if (n + 3 >= a) break; | |
| t[n++] = 240 | s >> 18, t[n++] = 128 | s >> 12 & 63, t[n++] = 128 | s >> 6 & 63, t[n++] = 128 | 63 & s | |
| } else if (s <= 67108863) { | |
| if (n + 4 >= a) break; | |
| t[n++] = 248 | s >> 24, t[n++] = 128 | s >> 18 & 63, t[n++] = 128 | s >> 12 & 63, t[n++] = 128 | s >> 6 & 63, t[n++] = 128 | 63 & s | |
| } else { | |
| if (n + 5 >= a) break; | |
| t[n++] = 252 | s >> 30, t[n++] = 128 | s >> 24 & 63, t[n++] = 128 | s >> 18 & 63, t[n++] = 128 | s >> 12 & 63, t[n++] = 128 | s >> 6 & 63, t[n++] = 128 | 63 & s | |
| } | |
| } | |
| return t[n] = 0, n - i | |
| } | |
| function stringToUTF8(e, t, n) { | |
| return stringToUTF8Array(e, HEAPU8, t, n) | |
| } | |
| function lengthBytesUTF8(e) { | |
| for (var t = 0, n = 0; n < e.length; ++n) { | |
| var r = e.charCodeAt(n); | |
| r >= 55296 && r <= 57343 && (r = 65536 + ((1023 & r) << 10) | 1023 & e.charCodeAt(++n)), r <= 127 ? ++t : t += r <= 2047 ? 2 : r <= 65535 ? 3 : r <= 2097151 ? 4 : r <= 67108863 ? 5 : 6 | |
| } | |
| return t | |
| } | |
| function UTF16ToString(e) { | |
| for (var t = 0, n = "";;) { | |
| var r = HEAP16[e + 2 * t >> 1]; | |
| if (0 == r) return n; | |
| ++t, n += String.fromCharCode(r) | |
| } | |
| } | |
| function stringToUTF16(e, t, n) { | |
| if (void 0 === n && (n = 2147483647), n < 2) return 0; | |
| n -= 2; | |
| for (var r = t, i = n < 2 * e.length ? n / 2 : e.length, a = 0; a < i; ++a) { | |
| var o = e.charCodeAt(a); | |
| HEAP16[t >> 1] = o, t += 2 | |
| } | |
| return HEAP16[t >> 1] = 0, t - r | |
| } | |
| function lengthBytesUTF16(e) { | |
| return 2 * e.length | |
| } | |
| function UTF32ToString(e) { | |
| for (var t = 0, n = "";;) { | |
| var r = HEAP32[e + 4 * t >> 2]; | |
| if (0 == r) return n; | |
| if (++t, r >= 65536) { | |
| var i = r - 65536; | |
| n += String.fromCharCode(55296 | i >> 10, 56320 | 1023 & i) | |
| } else n += String.fromCharCode(r) | |
| } | |
| } | |
| function stringToUTF32(e, t, n) { | |
| if (void 0 === n && (n = 2147483647), n < 4) return 0; | |
| for (var r = t, i = r + n - 4, a = 0; a < e.length; ++a) { | |
| var o = e.charCodeAt(a); | |
| if (o >= 55296 && o <= 57343) { | |
| o = 65536 + ((1023 & o) << 10) | 1023 & e.charCodeAt(++a) | |
| } | |
| if (HEAP32[t >> 2] = o, (t += 4) + 4 > i) break | |
| } | |
| return HEAP32[t >> 2] = 0, t - r | |
| } | |
| function lengthBytesUTF32(e) { | |
| for (var t = 0, n = 0; n < e.length; ++n) { | |
| var r = e.charCodeAt(n); | |
| r >= 55296 && r <= 57343 && ++n, t += 4 | |
| } | |
| return t | |
| } | |
| function demangle(e) { | |
| function t() { | |
| s++, "K" === e[s] && s++; | |
| for (var t = []; | |
| "E" !== e[s];) | |
| if ("S" !== e[s]) | |
| if ("C" !== e[s]) { | |
| var n = parseInt(e.substr(s)), | |
| r = n.toString().length; | |
| if (!n || !r) { | |
| s--; | |
| break | |
| } | |
| var i = e.substr(s + r, n); | |
| t.push(i), u.push(i), s += r + n | |
| } else t.push(t[t.length - 1]), s += 2; | |
| else { | |
| s++; | |
| var a = e.indexOf("_", s), | |
| o = e.substring(s, a) || 0; | |
| t.push(u[o] || "?"), s = a + 1 | |
| } | |
| return s++, t | |
| } | |
| function n(r, i, a) { | |
| i = i || 1 / 0; | |
| var o, u = "", | |
| f = []; | |
| if ("N" === e[s]) { | |
| if (o = t().join("::"), 0 === --i) return r ? [o] : o | |
| } else { | |
| ("K" === e[s] || c && "L" === e[s]) && s++; | |
| var d = parseInt(e.substr(s)); | |
| if (d) { | |
| var p = d.toString().length; | |
| o = e.substr(s + p, d), s += p + d | |
| } | |
| } | |
| if (c = !1, "I" === e[s]) { | |
| s++; | |
| var h = n(!0); | |
| u += n(!0, 1, !0)[0] + " " + o + "<" + h.join(", ") + ">" | |
| } else u = o; | |
| e: for (; s < e.length && i-- > 0;) { | |
| var y = e[s++]; | |
| if (y in l) f.push(l[y]); | |
| else switch (y) { | |
| case "P": | |
| f.push(n(!0, 1, !0)[0] + "*"); | |
| break; | |
| case "R": | |
| f.push(n(!0, 1, !0)[0] + "&"); | |
| break; | |
| case "L": | |
| s++; | |
| var m = e.indexOf("E", s), | |
| d = m - s; | |
| f.push(e.substr(s, d)), s += d + 2; | |
| break; | |
| case "A": | |
| var d = parseInt(e.substr(s)); | |
| if (s += d.toString().length, "_" !== e[s]) throw "?"; | |
| s++, f.push(n(!0, 1, !0)[0] + " [" + d + "]"); | |
| break; | |
| case "E": | |
| break e; | |
| default: | |
| u += "?" + y; | |
| break e | |
| } | |
| } | |
| return a || 1 !== f.length || "void" !== f[0] || (f = []), r ? (u && f.push(u + "?"), f) : u + function () { | |
| return "(" + f.join(", ") + ")" | |
| }() | |
| } | |
| var r = !!Module.___cxa_demangle; | |
| if (r) try { | |
| var i = _malloc(e.length); | |
| writeStringToMemory(e.substr(1), i); | |
| var a = _malloc(4), | |
| o = Module.___cxa_demangle(i, 0, 0, a); | |
| if (0 === getValue(a, "i32") && o) return Pointer_stringify(o) | |
| } catch (e) {} finally { | |
| i && _free(i), a && _free(a), o && _free(o) | |
| } | |
| var s = 3, | |
| l = { | |
| v: "void", | |
| b: "bool", | |
| c: "char", | |
| s: "short", | |
| i: "int", | |
| l: "long", | |
| f: "float", | |
| d: "double", | |
| w: "wchar_t", | |
| a: "signed char", | |
| h: "unsigned char", | |
| t: "unsigned short", | |
| j: "unsigned int", | |
| m: "unsigned long", | |
| x: "long long", | |
| y: "unsigned long long", | |
| z: "..." | |
| }, | |
| u = [], | |
| c = !0, | |
| f = e; | |
| try { | |
| if ("Object._main" == e || "_main" == e) return "main()"; | |
| if ("number" == typeof e && (e = Pointer_stringify(e)), "_" !== e[0]) return e; | |
| if ("_" !== e[1]) return e; | |
| if ("Z" !== e[2]) return e; | |
| switch (e[3]) { | |
| case "n": | |
| return "operator new()"; | |
| case "d": | |
| return "operator delete()" | |
| } | |
| f = n() | |
| } catch (e) { | |
| f += "?" | |
| } | |
| return f.indexOf("?") >= 0 && !r && Runtime.warnOnce("warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"), f | |
| } | |
| function demangleAll(e) { | |
| return e.replace(/__Z[\w\d_]+/g, function (e) { | |
| var t = demangle(e); | |
| return e === t ? e : e + " [" + t + "]" | |
| }) | |
| } | |
| function jsStackTrace() { | |
| var e = new Error; | |
| if (!e.stack) { | |
| try { | |
| throw new Error(0) | |
| } catch (t) { | |
| e = t | |
| } | |
| if (!e.stack) return "(no stack trace available)" | |
| } | |
| return e.stack.toString() | |
| } | |
| function stackTrace() { | |
| return demangleAll(jsStackTrace()) | |
| } | |
| function alignMemoryPage(e) { | |
| return e % 4096 > 0 && (e += 4096 - e % 4096), e | |
| } | |
| function abortOnCannotGrowMemory() { | |
| abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value " + TOTAL_MEMORY + ", (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ") | |
| } | |
| function enlargeMemory() { | |
| abortOnCannotGrowMemory() | |
| } | |
| function callRuntimeCallbacks(e) { | |
| for (; e.length > 0;) { | |
| var t = e.shift(); | |
| if ("function" != typeof t) { | |
| var n = t.func; | |
| "number" == typeof n ? void 0 === t.arg ? Runtime.dynCall("v", n) : Runtime.dynCall("vi", n, [t.arg]) : n(void 0 === t.arg ? null : t.arg) | |
| } else t() | |
| } | |
| } | |
| function preRun() { | |
| if (Module.preRun) | |
| for ("function" == typeof Module.preRun && (Module.preRun = [Module.preRun]); Module.preRun.length;) addOnPreRun(Module.preRun.shift()); | |
| callRuntimeCallbacks(__ATPRERUN__) | |
| } | |
| function ensureInitRuntime() { | |
| runtimeInitialized || (runtimeInitialized = !0, callRuntimeCallbacks(__ATINIT__)) | |
| } | |
| function preMain() { | |
| callRuntimeCallbacks(__ATMAIN__) | |
| } | |
| function exitRuntime() { | |
| callRuntimeCallbacks(__ATEXIT__), runtimeExited = !0 | |
| } | |
| function postRun() { | |
| if (Module.postRun) | |
| for ("function" == typeof Module.postRun && (Module.postRun = [Module.postRun]); Module.postRun.length;) addOnPostRun(Module.postRun.shift()); | |
| callRuntimeCallbacks(__ATPOSTRUN__) | |
| } | |
| function addOnPreRun(e) { | |
| __ATPRERUN__.unshift(e) | |
| } | |
| function addOnInit(e) { | |
| __ATINIT__.unshift(e) | |
| } | |
| function addOnPreMain(e) { | |
| __ATMAIN__.unshift(e) | |
| } | |
| function addOnExit(e) { | |
| __ATEXIT__.unshift(e) | |
| } | |
| function addOnPostRun(e) { | |
| __ATPOSTRUN__.unshift(e) | |
| } | |
| function intArrayFromString(e, t, n) { | |
| var r = n > 0 ? n : lengthBytesUTF8(e) + 1, | |
| i = new Array(r), | |
| a = stringToUTF8Array(e, i, 0, i.length); | |
| return t && (i.length = a), i | |
| } | |
| function intArrayToString(e) { | |
| for (var t = [], n = 0; n < e.length; n++) { | |
| var r = e[n]; | |
| r > 255 && (r &= 255), t.push(String.fromCharCode(r)) | |
| } | |
| return t.join("") | |
| } | |
| function writeStringToMemory(e, t, n) { | |
| for (var r = intArrayFromString(e, n), i = 0; i < r.length;) { | |
| var a = r[i]; | |
| HEAP8[t + i >> 0] = a, i += 1 | |
| } | |
| } | |
| function writeArrayToMemory(e, t) { | |
| for (var n = 0; n < e.length; n++) HEAP8[t++ >> 0] = e[n] | |
| } | |
| function writeAsciiToMemory(e, t, n) { | |
| for (var r = 0; r < e.length; ++r) HEAP8[t++ >> 0] = e.charCodeAt(r); | |
| n || (HEAP8[t >> 0] = 0) | |
| } | |
| function unSign(e, t, n) { | |
| return e >= 0 ? e : t <= 32 ? 2 * Math.abs(1 << t - 1) + e : Math.pow(2, t) + e | |
| } | |
| function reSign(e, t, n) { | |
| if (e <= 0) return e; | |
| var r = t <= 32 ? Math.abs(1 << t - 1) : Math.pow(2, t - 1); | |
| return e >= r && (t <= 32 || e > r) && (e = -2 * r + e), e | |
| } | |
| function getUniqueRunDependency(e) { | |
| return e | |
| } | |
| function addRunDependency(e) { | |
| runDependencies++, Module.monitorRunDependencies && Module.monitorRunDependencies(runDependencies) | |
| } | |
| function removeRunDependency(e) { | |
| if (runDependencies--, Module.monitorRunDependencies && Module.monitorRunDependencies(runDependencies), 0 == runDependencies && (null !== runDependencyWatcher && (clearInterval(runDependencyWatcher), runDependencyWatcher = null), dependenciesFulfilled)) { | |
| var t = dependenciesFulfilled; | |
| dependenciesFulfilled = null, t() | |
| } | |
| } | |
| function copyTempFloat(e) { | |
| HEAP8[tempDoublePtr] = HEAP8[e], HEAP8[tempDoublePtr + 1] = HEAP8[e + 1], HEAP8[tempDoublePtr + 2] = HEAP8[e + 2], HEAP8[tempDoublePtr + 3] = HEAP8[e + 3] | |
| } | |
| function copyTempDouble(e) { | |
| HEAP8[tempDoublePtr] = HEAP8[e], HEAP8[tempDoublePtr + 1] = HEAP8[e + 1], HEAP8[tempDoublePtr + 2] = HEAP8[e + 2], HEAP8[tempDoublePtr + 3] = HEAP8[e + 3], HEAP8[tempDoublePtr + 4] = HEAP8[e + 4], HEAP8[tempDoublePtr + 5] = HEAP8[e + 5], HEAP8[tempDoublePtr + 6] = HEAP8[e + 6], HEAP8[tempDoublePtr + 7] = HEAP8[e + 7] | |
| } | |
| function _atexit(e, t) { | |
| __ATEXIT__.unshift({ | |
| func: e, | |
| arg: t | |
| }) | |
| } | |
| function ___cxa_atexit() { | |
| return _atexit.apply(null, arguments) | |
| } | |
| function ___assert_fail(e, t, n, r) { | |
| throw ABORT = !0, "Assertion failed: " + Pointer_stringify(e) + ", at: " + [t ? Pointer_stringify(t) : "unknown filename", n, r ? Pointer_stringify(r) : "unknown function"] + " at " + stackTrace() | |
| } | |
| function embind_init_charCodes() { | |
| for (var e = new Array(256), t = 0; t < 256; ++t) e[t] = String.fromCharCode(t); | |
| embind_charCodes = e | |
| } | |
| function readLatin1String(e) { | |
| for (var t = "", n = e; HEAPU8[n];) t += embind_charCodes[HEAPU8[n++]]; | |
| return t | |
| } | |
| function makeLegalFunctionName(e) { | |
| if (void 0 === e) return "_unknown"; | |
| e = e.replace(/[^a-zA-Z0-9_]/g, "$"); | |
| var t = e.charCodeAt(0); | |
| return t >= char_0 && t <= char_9 ? "_" + e : e | |
| } | |
| function createNamedFunction(e, t) { | |
| return e = makeLegalFunctionName(e), new Function("body", "return function " + e + '() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t) | |
| } | |
| function extendError(e, t) { | |
| var n = createNamedFunction(t, function (e) { | |
| this.name = t, this.message = e; | |
| var n = new Error(e).stack; | |
| void 0 !== n && (this.stack = this.toString() + "\n" + n.replace(/^Error(:[^\n]*)?\n/, "")) | |
| }); | |
| return n.prototype = Object.create(e.prototype), n.prototype.constructor = n, n.prototype.toString = function () { | |
| return void 0 === this.message ? this.name : this.name + ": " + this.message | |
| }, n | |
| } | |
| function throwBindingError(e) { | |
| throw new BindingError(e) | |
| } | |
| function throwInternalError(e) { | |
| throw new InternalError(e) | |
| } | |
| function whenDependentTypesAreResolved(e, t, n) { | |
| function r(t) { | |
| var r = n(t); | |
| r.length !== e.length && throwInternalError("Mismatched type converter count"); | |
| for (var i = 0; i < e.length; ++i) registerType(e[i], r[i]) | |
| } | |
| e.forEach(function (e) { | |
| typeDependencies[e] = t | |
| }); | |
| var i = new Array(t.length), | |
| a = [], | |
| o = 0; | |
| t.forEach(function (e, t) { | |
| registeredTypes.hasOwnProperty(e) ? i[t] = registeredTypes[e] : (a.push(e), awaitingDependencies.hasOwnProperty(e) || (awaitingDependencies[e] = []), awaitingDependencies[e].push(function () { | |
| i[t] = registeredTypes[e], ++o === a.length && r(i) | |
| })) | |
| }), 0 === a.length && r(i) | |
| } | |
| function registerType(e, t, n) { | |
| if (n = n || {}, !("argPackAdvance" in t)) throw new TypeError("registerType registeredInstance requires argPackAdvance"); | |
| var r = t.name; | |
| if (e || throwBindingError('type "' + r + '" must have a positive integer typeid pointer'), registeredTypes.hasOwnProperty(e)) { | |
| if (n.ignoreDuplicateRegistrations) return; | |
| throwBindingError("Cannot register type '" + r + "' twice") | |
| } | |
| if (registeredTypes[e] = t, delete typeDependencies[e], awaitingDependencies.hasOwnProperty(e)) { | |
| var i = awaitingDependencies[e]; | |
| delete awaitingDependencies[e], i.forEach(function (e) { | |
| e() | |
| }) | |
| } | |
| } | |
| function __embind_register_void(e, t) { | |
| t = readLatin1String(t), registerType(e, { | |
| isVoid: !0, | |
| name: t, | |
| argPackAdvance: 0, | |
| fromWireType: function () {}, | |
| toWireType: function (e, t) {} | |
| }) | |
| } | |
| function __ZSt18uncaught_exceptionv() { | |
| return !!__ZSt18uncaught_exceptionv.uncaught_exception | |
| } | |
| function ___resumeException(e) { | |
| throw EXCEPTIONS.last || (EXCEPTIONS.last = e), EXCEPTIONS.clearRef(EXCEPTIONS.deAdjust(e)), e + " - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch." | |
| } | |
| function ___cxa_find_matching_catch() { | |
| var e = EXCEPTIONS.last; | |
| if (!e) return 0 | (asm.setTempRet0(0), 0); | |
| var t = EXCEPTIONS.infos[e], | |
| n = t.type; | |
| if (!n) return 0 | (asm.setTempRet0(0), e); | |
| var r = Array.prototype.slice.call(arguments); | |
| Module.___cxa_is_pointer_type(n); | |
| ___cxa_find_matching_catch.buffer || (___cxa_find_matching_catch.buffer = _malloc(4)), HEAP32[___cxa_find_matching_catch.buffer >> 2] = e, e = ___cxa_find_matching_catch.buffer; | |
| for (var i = 0; i < r.length; i++) | |
| if (r[i] && Module.___cxa_can_catch(r[i], n, e)) return e = HEAP32[e >> 2], t.adjusted = e, 0 | (asm.setTempRet0(r[i]), e); | |
| return e = HEAP32[e >> 2], 0 | (asm.setTempRet0(n), e) | |
| } | |
| function ___cxa_throw(e, t, n) { | |
| throw EXCEPTIONS.infos[e] = { | |
| ptr: e, | |
| adjusted: e, | |
| type: t, | |
| destructor: n, | |
| refcount: 0 | |
| }, EXCEPTIONS.last = e, "uncaught_exception" in __ZSt18uncaught_exceptionv ? __ZSt18uncaught_exceptionv.uncaught_exception++ : __ZSt18uncaught_exceptionv.uncaught_exception = 1, e + " - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch." | |
| } | |
| function getShiftFromSize(e) { | |
| switch (e) { | |
| case 1: | |
| return 0; | |
| case 2: | |
| return 1; | |
| case 4: | |
| return 2; | |
| case 8: | |
| return 3; | |
| default: | |
| throw new TypeError("Unknown type size: " + e) | |
| } | |
| } | |
| function __embind_register_bool(e, t, n, r, i) { | |
| var a = getShiftFromSize(n); | |
| t = readLatin1String(t), registerType(e, { | |
| name: t, | |
| fromWireType: function (e) { | |
| return !!e | |
| }, | |
| toWireType: function (e, t) { | |
| return t ? r : i | |
| }, | |
| argPackAdvance: 8, | |
| readValueFromPointer: function (e) { | |
| var r; | |
| if (1 === n) r = HEAP8; | |
| else if (2 === n) r = HEAP16; | |
| else { | |
| if (4 !== n) throw new TypeError("Unknown boolean type size: " + t); | |
| r = HEAP32 | |
| } | |
| return this.fromWireType(r[e >> a]) | |
| }, | |
| destructorFunction: null | |
| }) | |
| } | |
| function ___gxx_personality_v0() {} | |
| function _pthread_mutex_lock() {} | |
| function __isLeapYear(e) { | |
| return e % 4 == 0 && (e % 100 != 0 || e % 400 == 0) | |
| } | |
| function __arraySum(e, t) { | |
| for (var n = 0, r = 0; r <= t; n += e[r++]); | |
| return n | |
| } | |
| function __addDays(e, t) { | |
| for (var n = new Date(e.getTime()); t > 0;) { | |
| var r = __isLeapYear(n.getFullYear()), | |
| i = n.getMonth(), | |
| a = (r ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR)[i]; | |
| if (!(t > a - n.getDate())) return n.setDate(n.getDate() + t), n; | |
| t -= a - n.getDate() + 1, n.setDate(1), i < 11 ? n.setMonth(i + 1) : (n.setMonth(0), n.setFullYear(n.getFullYear() + 1)) | |
| } | |
| return n | |
| } | |
| function _strftime(e, t, n, r) { | |
| function i(e, t, n) { | |
| for (var r = "number" == typeof e ? e.toString() : e || ""; r.length < t;) r = n[0] + r; | |
| return r | |
| } | |
| function a(e, t) { | |
| return i(e, t, "0") | |
| } | |
| function o(e, t) { | |
| function n(e) { | |
| return e < 0 ? -1 : e > 0 ? 1 : 0 | |
| } | |
| var r; | |
| return 0 === (r = n(e.getFullYear() - t.getFullYear())) && 0 === (r = n(e.getMonth() - t.getMonth())) && (r = n(e.getDate() - t.getDate())), r | |
| } | |
| function s(e) { | |
| switch (e.getDay()) { | |
| case 0: | |
| return new Date(e.getFullYear() - 1, 11, 29); | |
| case 1: | |
| return e; | |
| case 2: | |
| return new Date(e.getFullYear(), 0, 3); | |
| case 3: | |
| return new Date(e.getFullYear(), 0, 2); | |
| case 4: | |
| return new Date(e.getFullYear(), 0, 1); | |
| case 5: | |
| return new Date(e.getFullYear() - 1, 11, 31); | |
| case 6: | |
| return new Date(e.getFullYear() - 1, 11, 30) | |
| } | |
| } | |
| function l(e) { | |
| var t = __addDays(new Date(e.tm_year + 1900, 0, 1), e.tm_yday), | |
| n = new Date(t.getFullYear(), 0, 4), | |
| r = new Date(t.getFullYear() + 1, 0, 4), | |
| i = s(n), | |
| a = s(r); | |
| return o(i, t) <= 0 ? o(a, t) <= 0 ? t.getFullYear() + 1 : t.getFullYear() : t.getFullYear() - 1 | |
| } | |
| var u = HEAP32[r + 40 >> 2], | |
| c = { | |
| tm_sec: HEAP32[r >> 2], | |
| tm_min: HEAP32[r + 4 >> 2], | |
| tm_hour: HEAP32[r + 8 >> 2], | |
| tm_mday: HEAP32[r + 12 >> 2], | |
| tm_mon: HEAP32[r + 16 >> 2], | |
| tm_year: HEAP32[r + 20 >> 2], | |
| tm_wday: HEAP32[r + 24 >> 2], | |
| tm_yday: HEAP32[r + 28 >> 2], | |
| tm_isdst: HEAP32[r + 32 >> 2], | |
| tm_gmtoff: HEAP32[r + 36 >> 2], | |
| tm_zone: u ? Pointer_stringify(u) : "" | |
| }, | |
| f = Pointer_stringify(n), | |
| d = { | |
| "%c": "%a %b %d %H:%M:%S %Y", | |
| "%D": "%m/%d/%y", | |
| "%F": "%Y-%m-%d", | |
| "%h": "%b", | |
| "%r": "%I:%M:%S %p", | |
| "%R": "%H:%M", | |
| "%T": "%H:%M:%S", | |
| "%x": "%m/%d/%y", | |
| "%X": "%H:%M:%S" | |
| }; | |
| for (var p in d) f = f.replace(new RegExp(p, "g"), d[p]); | |
| var h = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], | |
| y = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], | |
| m = { | |
| "%a": function (e) { | |
| return h[e.tm_wday].substring(0, 3) | |
| }, | |
| "%A": function (e) { | |
| return h[e.tm_wday] | |
| }, | |
| "%b": function (e) { | |
| return y[e.tm_mon].substring(0, 3) | |
| }, | |
| "%B": function (e) { | |
| return y[e.tm_mon] | |
| }, | |
| "%C": function (e) { | |
| return a((e.tm_year + 1900) / 100 | 0, 2) | |
| }, | |
| "%d": function (e) { | |
| return a(e.tm_mday, 2) | |
| }, | |
| "%e": function (e) { | |
| return i(e.tm_mday, 2, " ") | |
| }, | |
| "%g": function (e) { | |
| return l(e).toString().substring(2) | |
| }, | |
| "%G": function (e) { | |
| return l(e) | |
| }, | |
| "%H": function (e) { | |
| return a(e.tm_hour, 2) | |
| }, | |
| "%I": function (e) { | |
| return a(e.tm_hour < 13 ? e.tm_hour : e.tm_hour - 12, 2) | |
| }, | |
| "%j": function (e) { | |
| return a(e.tm_mday + __arraySum(__isLeapYear(e.tm_year + 1900) ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR, e.tm_mon - 1), 3) | |
| }, | |
| "%m": function (e) { | |
| return a(e.tm_mon + 1, 2) | |
| }, | |
| "%M": function (e) { | |
| return a(e.tm_min, 2) | |
| }, | |
| "%n": function () { | |
| return "\n" | |
| }, | |
| "%p": function (e) { | |
| return e.tm_hour > 0 && e.tm_hour < 13 ? "AM" : "PM" | |
| }, | |
| "%S": function (e) { | |
| return a(e.tm_sec, 2) | |
| }, | |
| "%t": function () { | |
| return "\t" | |
| }, | |
| "%u": function (e) { | |
| return new Date(e.tm_year + 1900, e.tm_mon + 1, e.tm_mday, 0, 0, 0, 0).getDay() || 7 | |
| }, | |
| "%U": function (e) { | |
| var t = new Date(e.tm_year + 1900, 0, 1), | |
| n = 0 === t.getDay() ? t : __addDays(t, 7 - t.getDay()), | |
| r = new Date(e.tm_year + 1900, e.tm_mon, e.tm_mday); | |
| if (o(n, r) < 0) { | |
| var i = __arraySum(__isLeapYear(r.getFullYear()) ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR, r.getMonth() - 1) - 31, | |
| s = 31 - n.getDate(), | |
| l = s + i + r.getDate(); | |
| return a(Math.ceil(l / 7), 2) | |
| } | |
| return 0 === o(n, t) ? "01" : "00" | |
| }, | |
| "%V": function (e) { | |
| var t = new Date(e.tm_year + 1900, 0, 4), | |
| n = new Date(e.tm_year + 1901, 0, 4), | |
| r = s(t), | |
| i = s(n), | |
| l = __addDays(new Date(e.tm_year + 1900, 0, 1), e.tm_yday); | |
| if (o(l, r) < 0) return "53"; | |
| if (o(i, l) <= 0) return "01"; | |
| var u; | |
| return u = r.getFullYear() < e.tm_year + 1900 ? e.tm_yday + 32 - r.getDate() : e.tm_yday + 1 - r.getDate(), a(Math.ceil(u / 7), 2) | |
| }, | |
| "%w": function (e) { | |
| return new Date(e.tm_year + 1900, e.tm_mon + 1, e.tm_mday, 0, 0, 0, 0).getDay() | |
| }, | |
| "%W": function (e) { | |
| var t = new Date(e.tm_year, 0, 1), | |
| n = 1 === t.getDay() ? t : __addDays(t, 0 === t.getDay() ? 1 : 7 - t.getDay() + 1), | |
| r = new Date(e.tm_year + 1900, e.tm_mon, e.tm_mday); | |
| if (o(n, r) < 0) { | |
| var i = __arraySum(__isLeapYear(r.getFullYear()) ? __MONTH_DAYS_LEAP : __MONTH_DAYS_REGULAR, r.getMonth() - 1) - 31, | |
| s = 31 - n.getDate(), | |
| l = s + i + r.getDate(); | |
| return a(Math.ceil(l / 7), 2) | |
| } | |
| return 0 === o(n, t) ? "01" : "00" | |
| }, | |
| "%y": function (e) { | |
| return (e.tm_year + 1900).toString().substring(2) | |
| }, | |
| "%Y": function (e) { | |
| return e.tm_year + 1900 | |
| }, | |
| "%z": function (e) { | |
| var t = e.tm_gmtoff, | |
| n = t >= 0; | |
| return t = Math.abs(t) / 60, t = t / 60 * 100 + t % 60, (n ? "+" : "-") + String("0000" + t).slice(-4) | |
| }, | |
| "%Z": function (e) { | |
| return e.tm_zone | |
| }, | |
| "%%": function () { | |
| return "%" | |
| } | |
| }; | |
| for (var p in m) f.indexOf(p) >= 0 && (f = f.replace(new RegExp(p, "g"), m[p](c))); | |
| var _ = intArrayFromString(f, !1); | |
| return _.length > t ? 0 : (writeArrayToMemory(_, e), _.length - 1) | |
| } | |
| function _strftime_l(e, t, n, r) { | |
| return _strftime(e, t, n, r) | |
| } | |
| function _abort() { | |
| Module.abort() | |
| } | |
| function _free() {} | |
| function _malloc(e) { | |
| return Runtime.dynamicAlloc(e + 8) + 8 & 4294967288 | |
| } | |
| function simpleReadValueFromPointer(e) { | |
| return this.fromWireType(HEAPU32[e >> 2]) | |
| } | |
| function __embind_register_std_string(e, t) { | |
| t = readLatin1String(t), registerType(e, { | |
| name: t, | |
| fromWireType: function (e) { | |
| for (var t = HEAPU32[e >> 2], n = new Array(t), r = 0; r < t; ++r) n[r] = String.fromCharCode(HEAPU8[e + 4 + r]); | |
| return _free(e), n.join("") | |
| }, | |
| toWireType: function (e, t) { | |
| function n(e, t) { | |
| return e[t] | |
| } | |
| function r(e, t) { | |
| return e.charCodeAt(t) | |
| } | |
| t instanceof ArrayBuffer && (t = new Uint8Array(t)); | |
| var i; | |
| t instanceof Uint8Array ? i = n : t instanceof Int8Array ? i = n : "string" == typeof t ? i = r : throwBindingError("Cannot pass non-string to std::string"); | |
| var a = t.length, | |
| o = _malloc(4 + a); | |
| HEAPU32[o >> 2] = a; | |
| for (var s = 0; s < a; ++s) { | |
| var l = i(t, s); | |
| l > 255 && (_free(o), throwBindingError("String has UTF-16 code units that do not fit in 8 bits")), HEAPU8[o + 4 + s] = l | |
| } | |
| return null !== e && e.push(_free, o), o | |
| }, | |
| argPackAdvance: 8, | |
| readValueFromPointer: simpleReadValueFromPointer, | |
| destructorFunction: function (e) { | |
| _free(e) | |
| } | |
| }) | |
| } | |
| function __embind_register_std_wstring(e, t, n) { | |
| n = readLatin1String(n); | |
| var r, i; | |
| 2 === t ? (r = function () { | |
| return HEAPU16 | |
| }, i = 1) : 4 === t && (r = function () { | |
| return HEAPU32 | |
| }, i = 2), registerType(e, { | |
| name: n, | |
| fromWireType: function (e) { | |
| for (var t = r(), n = HEAPU32[e >> 2], a = new Array(n), o = e + 4 >> i, s = 0; s < n; ++s) a[s] = String.fromCharCode(t[o + s]); | |
| return _free(e), a.join("") | |
| }, | |
| toWireType: function (e, n) { | |
| var a = r(), | |
| o = n.length, | |
| s = _malloc(4 + o * t); | |
| HEAPU32[s >> 2] = o; | |
| for (var l = s + 4 >> i, u = 0; u < o; ++u) a[l + u] = n.charCodeAt(u); | |
| return null !== e && e.push(_free, s), s | |
| }, | |
| argPackAdvance: 8, | |
| readValueFromPointer: simpleReadValueFromPointer, | |
| destructorFunction: function (e) { | |
| _free(e) | |
| } | |
| }) | |
| } | |
| function _pthread_once(e, t) { | |
| _pthread_once.seen || (_pthread_once.seen = {}), e in _pthread_once.seen || (Runtime.dynCall("v", t), _pthread_once.seen[e] = 1) | |
| } | |
| function ___lock() {} | |
| function ___unlock() {} | |
| function _pthread_getspecific(e) { | |
| return PTHREAD_SPECIFIC[e] || 0 | |
| } | |
| function ___setErrNo(e) { | |
| return Module.___errno_location && (HEAP32[Module.___errno_location() >> 2] = e), e | |
| } | |
| function _sysconf(e) { | |
| switch (e) { | |
| case 30: | |
| return PAGE_SIZE; | |
| case 85: | |
| return totalMemory / PAGE_SIZE; | |
| case 132: | |
| case 133: | |
| case 12: | |
| case 137: | |
| case 138: | |
| case 15: | |
| case 235: | |
| case 16: | |
| case 17: | |
| case 18: | |
| case 19: | |
| case 20: | |
| case 149: | |
| case 13: | |
| case 10: | |
| case 236: | |
| case 153: | |
| case 9: | |
| case 21: | |
| case 22: | |
| case 159: | |
| case 154: | |
| case 14: | |
| case 77: | |
| case 78: | |
| case 139: | |
| case 80: | |
| case 81: | |
| case 82: | |
| case 68: | |
| case 67: | |
| case 164: | |
| case 11: | |
| case 29: | |
| case 47: | |
| case 48: | |
| case 95: | |
| case 52: | |
| case 51: | |
| case 46: | |
| return 200809; | |
| case 79: | |
| return 0; | |
| case 27: | |
| case 246: | |
| case 127: | |
| case 128: | |
| case 23: | |
| case 24: | |
| case 160: | |
| case 161: | |
| case 181: | |
| case 182: | |
| case 242: | |
| case 183: | |
| case 184: | |
| case 243: | |
| case 244: | |
| case 245: | |
| case 165: | |
| case 178: | |
| case 179: | |
| case 49: | |
| case 50: | |
| case 168: | |
| case 169: | |
| case 175: | |
| case 170: | |
| case 171: | |
| case 172: | |
| case 97: | |
| case 76: | |
| case 32: | |
| case 173: | |
| case 35: | |
| return -1; | |
| case 176: | |
| case 177: | |
| case 7: | |
| case 155: | |
| case 8: | |
| case 157: | |
| case 125: | |
| case 126: | |
| case 92: | |
| case 93: | |
| case 129: | |
| case 130: | |
| case 131: | |
| case 94: | |
| case 91: | |
| return 1; | |
| case 74: | |
| case 60: | |
| case 69: | |
| case 70: | |
| case 4: | |
| return 1024; | |
| case 31: | |
| case 42: | |
| case 72: | |
| return 32; | |
| case 87: | |
| case 26: | |
| case 33: | |
| return 2147483647; | |
| case 34: | |
| case 1: | |
| return 47839; | |
| case 38: | |
| case 36: | |
| return 99; | |
| case 43: | |
| case 37: | |
| return 2048; | |
| case 0: | |
| return 2097152; | |
| case 3: | |
| return 65536; | |
| case 28: | |
| return 32768; | |
| case 44: | |
| return 32767; | |
| case 75: | |
| return 16384; | |
| case 39: | |
| return 1e3; | |
| case 89: | |
| return 700; | |
| case 71: | |
| return 256; | |
| case 40: | |
| return 255; | |
| case 2: | |
| return 100; | |
| case 180: | |
| return 64; | |
| case 25: | |
| return 20; | |
| case 5: | |
| return 16; | |
| case 6: | |
| return 6; | |
| case 73: | |
| return 4; | |
| case 84: | |
| return "object" === ("undefined" == typeof navigator ? "undefined" : _typeof(navigator)) ? navigator.hardwareConcurrency || 1 : 1 | |
| } | |
| return ___setErrNo(ERRNO_CODES.EINVAL), -1 | |
| } | |
| function _pthread_key_create(e, t) { | |
| return 0 == e ? ERRNO_CODES.EINVAL : (HEAP32[e >> 2] = PTHREAD_SPECIFIC_NEXT_KEY, PTHREAD_SPECIFIC[PTHREAD_SPECIFIC_NEXT_KEY] = 0, PTHREAD_SPECIFIC_NEXT_KEY++, 0) | |
| } | |
| function _embind_repr(e) { | |
| if (null === e) return "null"; | |
| var t = void 0 === e ? "undefined" : _typeof(e); | |
| return "object" === t || "array" === t || "function" === t ? e.toString() : "" + e | |
| } | |
| function integerReadValueFromPointer(e, t, n) { | |
| switch (t) { | |
| case 0: | |
| return n ? function (e) { | |
| return HEAP8[e] | |
| } : function (e) { | |
| return HEAPU8[e] | |
| }; | |
| case 1: | |
| return n ? function (e) { | |
| return HEAP16[e >> 1] | |
| } : function (e) { | |
| return HEAPU16[e >> 1] | |
| }; | |
| case 2: | |
| return n ? function (e) { | |
| return HEAP32[e >> 2] | |
| } : function (e) { | |
| return HEAPU32[e >> 2] | |
| }; | |
| default: | |
| throw new TypeError("Unknown integer type: " + e) | |
| } | |
| } | |
| function __embind_register_integer(e, t, n, r, i) { | |
| t = readLatin1String(t), -1 === i && (i = 4294967295); | |
| var a = getShiftFromSize(n), | |
| o = function (e) { | |
| return e | |
| }; | |
| if (0 === r) { | |
| var s = 32 - 8 * n; | |
| o = function (e) { | |
| return e << s >>> s | |
| } | |
| } | |
| registerType(e, { | |
| name: t, | |
| fromWireType: o, | |
| toWireType: function (e, n) { | |
| if ("number" != typeof n && "boolean" != typeof n) throw new TypeError('Cannot convert "' + _embind_repr(n) + '" to ' + this.name); | |
| if (n < r || n > i) throw new TypeError('Passing a number "' + _embind_repr(n) + '" from JS side to C/C++ side to an argument of type "' + t + '", which is outside the valid range [' + r + ", " + i + "]!"); | |
| return 0 | n | |
| }, | |
| argPackAdvance: 8, | |
| readValueFromPointer: integerReadValueFromPointer(t, a, 0 !== r), | |
| destructorFunction: null | |
| }) | |
| } | |
| function _emscripten_set_main_loop_timing(e, t) { | |
| if (Browser.mainLoop.timingMode = e, Browser.mainLoop.timingValue = t, !Browser.mainLoop.func) return 1; | |
| if (0 == e) Browser.mainLoop.scheduler = function () { | |
| setTimeout(Browser.mainLoop.runner, t) | |
| }, Browser.mainLoop.method = "timeout"; | |
| else if (1 == e) Browser.mainLoop.scheduler = function () { | |
| Browser.requestAnimationFrame(Browser.mainLoop.runner) | |
| }, Browser.mainLoop.method = "rAF"; | |
| else if (2 == e) { | |
| if (!window.setImmediate) { | |
| var n = function (e) { | |
| e.source === window && e.data === i && (e.stopPropagation(), r.shift()()) | |
| }, | |
| r = [], | |
| i = "__emcc"; | |
| window.addEventListener("message", n, !0), window.setImmediate = function (e) { | |
| r.push(e), window.postMessage(i, "*") | |
| } | |
| } | |
| Browser.mainLoop.scheduler = function () { | |
| window.setImmediate(Browser.mainLoop.runner) | |
| }, Browser.mainLoop.method = "immediate" | |
| } | |
| return 0 | |
| } | |
| function _emscripten_set_main_loop(e, t, n, r, i) { | |
| Module.noExitRuntime = !0, assert(!Browser.mainLoop.func, "emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."), Browser.mainLoop.func = e, Browser.mainLoop.arg = r; | |
| var a = Browser.mainLoop.currentlyRunningMainloop; | |
| if (Browser.mainLoop.runner = function () { | |
| if (!ABORT) { | |
| if (Browser.mainLoop.queue.length > 0) { | |
| var t = (Date.now(), Browser.mainLoop.queue.shift()); | |
| if (t.func(t.arg), Browser.mainLoop.remainingBlockers) { | |
| var n = Browser.mainLoop.remainingBlockers, | |
| i = n % 1 == 0 ? n - 1 : Math.floor(n); | |
| t.counted ? Browser.mainLoop.remainingBlockers = i : (i += .5, Browser.mainLoop.remainingBlockers = (8 * n + i) / 9) | |
| } | |
| return Browser.mainLoop.updateStatus(), void setTimeout(Browser.mainLoop.runner, 0) | |
| } | |
| if (!(a < Browser.mainLoop.currentlyRunningMainloop)) { | |
| if (Browser.mainLoop.currentFrameNumber = Browser.mainLoop.currentFrameNumber + 1 | 0, 1 == Browser.mainLoop.timingMode && Browser.mainLoop.timingValue > 1 && Browser.mainLoop.currentFrameNumber % Browser.mainLoop.timingValue != 0) return void Browser.mainLoop.scheduler(); | |
| "timeout" === Browser.mainLoop.method && Module.ctx && (Module.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"), Browser.mainLoop.method = ""), Browser.mainLoop.runIter(function () { | |
| void 0 !== r ? Runtime.dynCall("vi", e, [r]) : Runtime.dynCall("v", e) | |
| }), a < Browser.mainLoop.currentlyRunningMainloop || ("object" === ("undefined" == typeof SDL ? "undefined" : _typeof(SDL)) && SDL.audio && SDL.audio.queueNewAudioData && SDL.audio.queueNewAudioData(), Browser.mainLoop.scheduler()) | |
| } | |
| } | |
| }, i || (t && t > 0 ? _emscripten_set_main_loop_timing(0, 1e3 / t) : _emscripten_set_main_loop_timing(1, 1), Browser.mainLoop.scheduler()), n) throw "SimulateInfiniteLoop" | |
| } | |
| function _pthread_setspecific(e, t) { | |
| return e in PTHREAD_SPECIFIC ? (PTHREAD_SPECIFIC[e] = t, 0) : ERRNO_CODES.EINVAL | |
| } | |
| function _time(e) { | |
| var t = Date.now() / 1e3 | 0; | |
| return e && (HEAP32[e >> 2] = t), t | |
| } | |
| function __emval_decref(e) { | |
| e > 4 && 0 == --emval_handle_array[e].refcount && (emval_handle_array[e] = void 0, emval_free_list.push(e)) | |
| } | |
| function count_emval_handles() { | |
| for (var e = 0, t = 5; t < emval_handle_array.length; ++t) void 0 !== emval_handle_array[t] && ++e; | |
| return e | |
| } | |
| function get_first_emval() { | |
| for (var e = 5; e < emval_handle_array.length; ++e) | |
| if (void 0 !== emval_handle_array[e]) return emval_handle_array[e]; | |
| return null | |
| } | |
| function init_emval() { | |
| Module.count_emval_handles = count_emval_handles, Module.get_first_emval = get_first_emval | |
| } | |
| function __emval_register(e) { | |
| switch (e) { | |
| case void 0: | |
| return 1; | |
| case null: | |
| return 2; | |
| case !0: | |
| return 3; | |
| case !1: | |
| return 4; | |
| default: | |
| var t = emval_free_list.length ? emval_free_list.pop() : emval_handle_array.length; | |
| return emval_handle_array[t] = { | |
| refcount: 1, | |
| value: e | |
| }, t | |
| } | |
| } | |
| function __embind_register_emval(e, t) { | |
| t = readLatin1String(t), registerType(e, { | |
| name: t, | |
| fromWireType: function (e) { | |
| var t = emval_handle_array[e].value; | |
| return __emval_decref(e), t | |
| }, | |
| toWireType: function (e, t) { | |
| return __emval_register(t) | |
| }, | |
| argPackAdvance: 8, | |
| readValueFromPointer: simpleReadValueFromPointer, | |
| destructorFunction: null | |
| }) | |
| } | |
| function ___cxa_allocate_exception(e) { | |
| return _malloc(e) | |
| } | |
| function ___syscall54(e, t) { | |
| SYSCALLS.varargs = t; | |
| try { | |
| var n = SYSCALLS.getStreamFromFD(), | |
| r = SYSCALLS.get(); | |
| switch (r) { | |
| case 21505: | |
| case 21506: | |
| return n.tty ? 0 : -ERRNO_CODES.ENOTTY; | |
| case 21519: | |
| if (!n.tty) return -ERRNO_CODES.ENOTTY; | |
| var i = SYSCALLS.get(); | |
| return HEAP32[i >> 2] = 0, 0; | |
| case 21520: | |
| return n.tty ? -ERRNO_CODES.EINVAL : -ERRNO_CODES.ENOTTY; | |
| case 21531: | |
| var i = SYSCALLS.get(); | |
| return FS.ioctl(n, r, i); | |
| default: | |
| abort("bad ioctl syscall " + r) | |
| } | |
| } catch (e) { | |
| return void 0 !== FS && e instanceof FS.ErrnoError || abort(e), -e.errno | |
| } | |
| } | |
| function floatReadValueFromPointer(e, t) { | |
| switch (t) { | |
| case 2: | |
| return function (e) { | |
| return this.fromWireType(HEAPF32[e >> 2]) | |
| }; | |
| case 3: | |
| return function (e) { | |
| return this.fromWireType(HEAPF64[e >> 3]) | |
| }; | |
| default: | |
| throw new TypeError("Unknown float type: " + e) | |
| } | |
| } | |
| function __embind_register_float(e, t, n) { | |
| var r = getShiftFromSize(n); | |
| t = readLatin1String(t), registerType(e, { | |
| name: t, | |
| fromWireType: function (e) { | |
| return e | |
| }, | |
| toWireType: function (e, t) { | |
| if ("number" != typeof t && "boolean" != typeof t) throw new TypeError('Cannot convert "' + _embind_repr(t) + '" to ' + this.name); | |
| return t | |
| }, | |
| argPackAdvance: 8, | |
| readValueFromPointer: floatReadValueFromPointer(t, r), | |
| destructorFunction: null | |
| }) | |
| } | |
| function _pthread_cleanup_push(e, t) { | |
| __ATEXIT__.push(function () { | |
| Runtime.dynCall("vi", e, [t]) | |
| }), _pthread_cleanup_push.level = __ATEXIT__.length | |
| } | |
| function _pthread_cond_broadcast() { | |
| return 0 | |
| } | |
| function ___cxa_guard_acquire(e) { | |
| return HEAP8[e >> 0] ? 0 : (HEAP8[e >> 0] = 1, 1) | |
| } | |
| function _pthread_cleanup_pop() { | |
| assert(_pthread_cleanup_push.level == __ATEXIT__.length, "cannot pop if something else added meanwhile!"), __ATEXIT__.pop(), _pthread_cleanup_push.level = __ATEXIT__.length | |
| } | |
| function ___cxa_begin_catch(e) { | |
| return __ZSt18uncaught_exceptionv.uncaught_exception--, EXCEPTIONS.caught.push(e), EXCEPTIONS.addRef(EXCEPTIONS.deAdjust(e)), e | |
| } | |
| function new_(e, t) { | |
| if (!(e instanceof Function)) throw new TypeError("new_ called with constructor type " + (void 0 === e ? "undefined" : _typeof(e)) + " which is not a function"); | |
| var n = createNamedFunction(e.name || "unknownFunctionName", function () {}); | |
| n.prototype = e.prototype; | |
| var r = new n, | |
| i = e.apply(r, t); | |
| return i instanceof Object ? i : r | |
| } | |
| function runDestructors(e) { | |
| for (; e.length;) { | |
| var t = e.pop(); | |
| e.pop()(t) | |
| } | |
| } | |
| function craftInvokerFunction(e, t, n, r, i) { | |
| var a = t.length; | |
| a < 2 && throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!"); | |
| for (var o = null !== t[1] && null !== n, s = "", l = "", u = 0; u < a - 2; ++u) s += (0 !== u ? ", " : "") + "arg" + u, l += (0 !== u ? ", " : "") + "arg" + u + "Wired"; | |
| for (var c = "return function " + makeLegalFunctionName(e) + "(" + s + ") {\nif (arguments.length !== " + (a - 2) + ") {\nthrowBindingError('function " + e + " called with ' + arguments.length + ' arguments, expected " + (a - 2) + " args!');\n}\n", f = !1, u = 1; u < t.length; ++u) | |
| if (null !== t[u] && void 0 === t[u].destructorFunction) { | |
| f = !0; | |
| break | |
| } | |
| f && (c += "var destructors = [];\n"); | |
| var d = f ? "destructors" : "null", | |
| p = ["throwBindingError", "invoker", "fn", "runDestructors", "retType", "classParam"], | |
| h = [throwBindingError, r, i, runDestructors, t[0], t[1]]; | |
| o && (c += "var thisWired = classParam.toWireType(" + d + ", this);\n"); | |
| for (var u = 0; u < a - 2; ++u) c += "var arg" + u + "Wired = argType" + u + ".toWireType(" + d + ", arg" + u + "); // " + t[u + 2].name + "\n", p.push("argType" + u), h.push(t[u + 2]); | |
| o && (l = "thisWired" + (l.length > 0 ? ", " : "") + l); | |
| var y = "void" !== t[0].name; | |
| if (c += (y ? "var rv = " : "") + "invoker(fn" + (l.length > 0 ? ", " : "") + l + ");\n", f) c += "runDestructors(destructors);\n"; | |
| else | |
| for (var u = o ? 1 : 2; u < t.length; ++u) { | |
| var m = 1 === u ? "thisWired" : "arg" + (u - 2) + "Wired"; | |
| null !== t[u].destructorFunction && (c += m + "_dtor(" + m + "); // " + t[u].name + "\n", p.push(m + "_dtor"), h.push(t[u].destructorFunction)) | |
| } | |
| return y && (c += "var ret = retType.fromWireType(rv);\nreturn ret;\n"), c += "}\n", p.push(c), new_(Function, p).apply(null, h) | |
| } | |
| function ensureOverloadTable(e, t, n) { | |
| if (void 0 === e[t].overloadTable) { | |
| var r = e[t]; | |
| e[t] = function () { | |
| return e[t].overloadTable.hasOwnProperty(arguments.length) || throwBindingError("Function '" + n + "' called with an invalid number of arguments (" + arguments.length + ") - expects one of (" + e[t].overloadTable + ")!"), e[t].overloadTable[arguments.length].apply(this, arguments) | |
| }, e[t].overloadTable = [], e[t].overloadTable[r.argCount] = r | |
| } | |
| } | |
| function exposePublicSymbol(e, t, n) { | |
| Module.hasOwnProperty(e) ? ((void 0 === n || void 0 !== Module[e].overloadTable && void 0 !== Module[e].overloadTable[n]) && throwBindingError("Cannot register public name '" + e + "' twice"), ensureOverloadTable(Module, e, e), Module.hasOwnProperty(n) && throwBindingError("Cannot register multiple overloads of a function with the same number of arguments (" + n + ")!"), Module[e].overloadTable[n] = t) : (Module[e] = t, void 0 !== n && (Module[e].numArguments = n)) | |
| } | |
| function heap32VectorToArray(e, t) { | |
| for (var n = [], r = 0; r < e; r++) n.push(HEAP32[(t >> 2) + r]); | |
| return n | |
| } | |
| function replacePublicSymbol(e, t, n) { | |
| Module.hasOwnProperty(e) || throwInternalError("Replacing nonexistant public symbol"), void 0 !== Module[e].overloadTable && void 0 !== n ? Module[e].overloadTable[n] = t : Module[e] = t | |
| } | |
| function requireFunction(e, t) { | |
| e = readLatin1String(e); | |
| var n; | |
| if (void 0 !== Module["FUNCTION_TABLE_" + e]) n = Module["FUNCTION_TABLE_" + e][t]; | |
| else if ("undefined" != typeof FUNCTION_TABLE) n = FUNCTION_TABLE[t]; | |
| else { | |
| var r = asm["dynCall_" + e]; | |
| void 0 === r && void 0 === (r = asm["dynCall_" + e.replace(/f/g, "d")]) && throwBindingError("No dynCall invoker for signature: " + e), n = function (n) { | |
| for (var r = [], i = 1; i < e.length; ++i) r.push("a" + i); | |
| var a = "dynCall_" + e + "_" + t, | |
| o = "return function " + a + "(" + r.join(", ") + ") {\n"; | |
| return o += " return dynCall(rawFunction" + (r.length ? ", " : "") + r.join(", ") + ");\n", o += "};\n", new Function("dynCall", "rawFunction", o)(n, t) | |
| }(r) | |
| } | |
| return "function" != typeof n && throwBindingError("unknown function pointer with signature " + e + ": " + t), n | |
| } | |
| function getTypeName(e) { | |
| var t = ___getTypeName(e), | |
| n = readLatin1String(t); | |
| return _free(t), n | |
| } | |
| function throwUnboundTypeError(e, t) { | |
| function n(e) { | |
| if (!i[e] && !registeredTypes[e]) { | |
| if (typeDependencies[e]) return void typeDependencies[e].forEach(n); | |
| r.push(e), i[e] = !0 | |
| } | |
| } | |
| var r = [], | |
| i = {}; | |
| throw t.forEach(n), new UnboundTypeError(e + ": " + r.map(getTypeName).join([", "])) | |
| } | |
| function __embind_register_function(e, t, n, r, i, a) { | |
| var o = heap32VectorToArray(t, n); | |
| e = readLatin1String(e), i = requireFunction(r, i), exposePublicSymbol(e, function () { | |
| throwUnboundTypeError("Cannot call " + e + " due to unbound types", o) | |
| }, t - 1), whenDependentTypesAreResolved([], o, function (n) { | |
| var r = [n[0], null].concat(n.slice(1)); | |
| return replacePublicSymbol(e, craftInvokerFunction(e, r, null, i, a), t - 1), [] | |
| }) | |
| } | |
| function _emscripten_memcpy_big(e, t, n) { | |
| return HEAPU8.set(HEAPU8.subarray(t, t + n), e), e | |
| } | |
| function ___syscall6(e, t) { | |
| SYSCALLS.varargs = t; | |
| try { | |
| var n = SYSCALLS.getStreamFromFD(); | |
| return FS.close(n), 0 | |
| } catch (e) { | |
| return void 0 !== FS && e instanceof FS.ErrnoError || abort(e), -e.errno | |
| } | |
| } | |
| function _sbrk(e) { | |
| var t = _sbrk; | |
| t.called || (DYNAMICTOP = alignMemoryPage(DYNAMICTOP), t.called = !0, assert(Runtime.dynamicAlloc), t.alloc = Runtime.dynamicAlloc, Runtime.dynamicAlloc = function () { | |
| abort("cannot dynamically allocate, sbrk now has control") | |
| }); | |
| var n = DYNAMICTOP; | |
| if (0 != e) { | |
| if (!t.alloc(e)) return -1 >>> 0 | |
| } | |
| return n | |
| } | |
| function _pthread_cond_wait() { | |
| return 0 | |
| } | |
| function _pthread_mutex_unlock() {} | |
| function __embind_register_memory_view(e, t, n) { | |
| function r(e) { | |
| e >>= 2; | |
| var t = HEAPU32, | |
| n = t[e], | |
| r = t[e + 1]; | |
| return new a(t.buffer, r, n) | |
| } | |
| var i = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], | |
| a = i[t]; | |
| n = readLatin1String(n), registerType(e, { | |
| name: n, | |
| fromWireType: r, | |
| argPackAdvance: 8, | |
| readValueFromPointer: r | |
| }, { | |
| ignoreDuplicateRegistrations: !0 | |
| }) | |
| } | |
| function ___cxa_guard_release() {} | |
| function _pthread_self() { | |
| return 0 | |
| } | |
| function ___syscall140(e, t) { | |
| SYSCALLS.varargs = t; | |
| try { | |
| var n = SYSCALLS.getStreamFromFD(), | |
| r = SYSCALLS.get(), | |
| i = SYSCALLS.get(), | |
| a = SYSCALLS.get(), | |
| o = SYSCALLS.get(), | |
| s = i; | |
| return assert(0 === r), FS.llseek(n, s, o), HEAP32[a >> 2] = n.position, n.getdents && 0 === s && 0 === o && (n.getdents = null), 0 | |
| } catch (e) { | |
| return void 0 !== FS && e instanceof FS.ErrnoError || abort(e), -e.errno | |
| } | |
| } | |
| function ___syscall146(e, t) { | |
| SYSCALLS.varargs = t; | |
| try { | |
| var n = SYSCALLS.getStreamFromFD(), | |
| r = SYSCALLS.get(), | |
| i = SYSCALLS.get(); | |
| return SYSCALLS.doWritev(n, r, i) | |
| } catch (e) { | |
| return void 0 !== FS && e instanceof FS.ErrnoError || abort(e), -e.errno | |
| } | |
| } | |
| function invoke_iiiiiiii(e, t, n, r, i, a, o, s) { | |
| try { | |
| return Module.dynCall_iiiiiiii(e, t, n, r, i, a, o, s) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_iiii(e, t, n, r) { | |
| try { | |
| return Module.dynCall_iiii(e, t, n, r) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_viiiii(e, t, n, r, i, a) { | |
| try { | |
| Module.dynCall_viiiii(e, t, n, r, i, a) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_iiiiiid(e, t, n, r, i, a, o) { | |
| try { | |
| return Module.dynCall_iiiiiid(e, t, n, r, i, a, o) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_vi(e, t) { | |
| try { | |
| Module.dynCall_vi(e, t) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_vii(e, t, n) { | |
| try { | |
| Module.dynCall_vii(e, t, n) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_iiiiiii(e, t, n, r, i, a, o) { | |
| try { | |
| return Module.dynCall_iiiiiii(e, t, n, r, i, a, o) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_iiiiid(e, t, n, r, i, a) { | |
| try { | |
| return Module.dynCall_iiiiid(e, t, n, r, i, a) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_ii(e, t) { | |
| try { | |
| return Module.dynCall_ii(e, t) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_viii(e, t, n, r) { | |
| try { | |
| Module.dynCall_viii(e, t, n, r) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_v(e) { | |
| try { | |
| Module.dynCall_v(e) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_iiiiiiiii(e, t, n, r, i, a, o, s, l) { | |
| try { | |
| return Module.dynCall_iiiiiiiii(e, t, n, r, i, a, o, s, l) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_iiiii(e, t, n, r, i) { | |
| try { | |
| return Module.dynCall_iiiii(e, t, n, r, i) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_viiiiii(e, t, n, r, i, a, o) { | |
| try { | |
| Module.dynCall_viiiiii(e, t, n, r, i, a, o) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_iii(e, t, n) { | |
| try { | |
| return Module.dynCall_iii(e, t, n) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_iiiiii(e, t, n, r, i, a) { | |
| try { | |
| return Module.dynCall_iiiiii(e, t, n, r, i, a) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function invoke_viiii(e, t, n, r, i) { | |
| try { | |
| Module.dynCall_viiii(e, t, n, r, i) | |
| } catch (e) { | |
| if ("number" != typeof e && "longjmp" !== e) throw e; | |
| asm.setThrew(1, 0) | |
| } | |
| } | |
| function ExitStatus(e) { | |
| this.name = "ExitStatus", this.message = "Program terminated with exit(" + e + ")", this.status = e | |
| } | |
| function run(e) { | |
| function t() { | |
| Module.calledRun || (Module.calledRun = !0, ABORT || (ensureInitRuntime(), preMain(), Module.onRuntimeInitialized && Module.onRuntimeInitialized(), Module._main && shouldRunNow && Module.callMain(e), postRun())) | |
| } | |
| e = e || Module.arguments, null === preloadStartTime && (preloadStartTime = Date.now()), runDependencies > 0 || (preRun(), runDependencies > 0 || Module.calledRun || (Module.setStatus ? (Module.setStatus("Running..."), setTimeout(function () { | |
| setTimeout(function () { | |
| Module.setStatus("") | |
| }, 1), t() | |
| }, 1)) : t())) | |
| } | |
| function exit(e, t) { | |
| if (!t || !Module.noExitRuntime) throw Module.noExitRuntime || (ABORT = !0, EXITSTATUS = e, STACKTOP = initialStackTop, exitRuntime(), Module.onExit && Module.onExit(e)), ENVIRONMENT_IS_NODE ? (process.stdout.once("drain", function () { | |
| process.exit(e) | |
| }), setTimeout(function () { | |
| process.exit(e) | |
| }, 500)) : ENVIRONMENT_IS_SHELL && "function" == typeof quit && quit(e), new ExitStatus(e) | |
| } | |
| function abort(e) { | |
| void 0 !== e ? (Module.print(e), Module.printErr(e), e = JSON.stringify(e)) : e = "", ABORT = !0, EXITSTATUS = 1; | |
| var t = "abort(" + e + ") at " + stackTrace() + "\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information."; | |
| throw abortDecorators && abortDecorators.forEach(function (n) { | |
| t = n(t, e) | |
| }), t | |
| } | |
| Object.defineProperty(exports, "__esModule", { | |
| value: !0 | |
| }); | |
| var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { | |
| return typeof e | |
| } : function (e) { | |
| return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e | |
| }, | |
| Module; | |
| Module || (Module = (void 0 !== Module ? Module : null) || {}); | |
| var moduleOverrides = {}; | |
| for (var key in Module) Module.hasOwnProperty(key) && (moduleOverrides[key] = Module[key]); | |
| var ENVIRONMENT_IS_WEB = "object" === ("undefined" == typeof window ? "undefined" : _typeof(window)), | |
| ENVIRONMENT_IS_WORKER = "function" == typeof importScripts, | |
| ENVIRONMENT_IS_NODE = "object" === (void 0 === process ? "undefined" : _typeof(process)) && !0 && !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_WORKER, | |
| ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER; | |
| if (ENVIRONMENT_IS_NODE) { | |
| Module.print || (Module.print = function (e) { | |
| process.stdout.write(e + "\n") | |
| }), Module.printErr || (Module.printErr = function (e) { | |
| process.stderr.write(e + "\n") | |
| }); | |
| var nodeFS = __webpack_require__(140), | |
| nodePath = __webpack_require__(31); | |
| Module.read = function (e, t) { | |
| e = nodePath.normalize(e); | |
| var n = nodeFS.readFileSync(e); | |
| return n || e == nodePath.resolve(e) || (e = path.join(__dirname, "..", "src", e), n = nodeFS.readFileSync(e)), n && !t && (n = n.toString()), n | |
| }, Module.readBinary = function (e) { | |
| var t = Module.read(e, !0); | |
| return t.buffer || (t = new Uint8Array(t)), assert(t.buffer), t | |
| }, Module.load = function (e) { | |
| globalEval(read(e)) | |
| }, Module.thisProgram || (process.argv.length > 1 ? Module.thisProgram = process.argv[1].replace(/\\/g, "/") : Module.thisProgram = "unknown-program"), Module.arguments = process.argv.slice(2), module.exports = Module, process.on("uncaughtException", function (e) { | |
| if (!(e instanceof ExitStatus)) throw e | |
| }), Module.inspect = function () { | |
| return "[Emscripten Module object]" | |
| } | |
| } else if (ENVIRONMENT_IS_SHELL) Module.print || (Module.print = print), "undefined" != typeof printErr && (Module.printErr = printErr), "undefined" != typeof read ? Module.read = read : Module.read = function () { | |
| throw "no read() available (jsc?)" | |
| }, Module.readBinary = function (e) { | |
| if ("function" == typeof readbuffer) return new Uint8Array(readbuffer(e)); | |
| var t = read(e, "binary"); | |
| return assert("object" === (void 0 === t ? "undefined" : _typeof(t))), t | |
| }, "undefined" != typeof scriptArgs ? Module.arguments = scriptArgs : void 0 !== arguments && (Module.arguments = arguments); | |
| else { | |
| if (!ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_WORKER) throw "Unknown runtime environment. Where are we?"; | |
| if (Module.read = function (e) { | |
| var t = new XMLHttpRequest; | |
| return t.open("GET", e, !1), t.send(null), t.responseText | |
| }, void 0 !== arguments && (Module.arguments = arguments), "undefined" != typeof console) Module.print || (Module.print = function (e) {}), Module.printErr || (Module.printErr = function (e) {}); | |
| else { | |
| var TRY_USE_DUMP = !1; | |
| Module.print || (Module.print = TRY_USE_DUMP && "undefined" != typeof dump ? function (e) { | |
| dump(e) | |
| } : function (e) {}) | |
| } | |
| ENVIRONMENT_IS_WORKER && (Module.load = importScripts), void 0 === Module.setWindowTitle && (Module.setWindowTitle = function (e) { | |
| document.title = e | |
| }) | |
| }!Module.load && Module.read && (Module.load = function (e) { | |
| globalEval(Module.read(e)) | |
| }), Module.print || (Module.print = function () {}), Module.printErr || (Module.printErr = Module.print), Module.arguments || (Module.arguments = []), Module.thisProgram || (Module.thisProgram = "./this.program"), Module.print = Module.print, Module.printErr = Module.printErr, Module.preRun = [], Module.postRun = []; | |
| for (var key in moduleOverrides) moduleOverrides.hasOwnProperty(key) && (Module[key] = moduleOverrides[key]); | |
| var Runtime = { | |
| setTempRet0: function (e) { | |
| tempRet0 = e | |
| }, | |
| getTempRet0: function () { | |
| return tempRet0 | |
| }, | |
| stackSave: function () { | |
| return STACKTOP | |
| }, | |
| stackRestore: function (e) { | |
| STACKTOP = e | |
| }, | |
| getNativeTypeSize: function (e) { | |
| switch (e) { | |
| case "i1": | |
| case "i8": | |
| return 1; | |
| case "i16": | |
| return 2; | |
| case "i32": | |
| return 4; | |
| case "i64": | |
| return 8; | |
| case "float": | |
| return 4; | |
| case "double": | |
| return 8; | |
| default: | |
| if ("*" === e[e.length - 1]) return Runtime.QUANTUM_SIZE; | |
| if ("i" === e[0]) { | |
| var t = parseInt(e.substr(1)); | |
| return assert(t % 8 == 0), t / 8 | |
| } | |
| return 0 | |
| } | |
| }, | |
| getNativeFieldSize: function (e) { | |
| return Math.max(Runtime.getNativeTypeSize(e), Runtime.QUANTUM_SIZE) | |
| }, | |
| STACK_ALIGN: 16, | |
| prepVararg: function (e, t) { | |
| return "double" === t || "i64" === t ? 7 & e && (assert(4 == (7 & e)), e += 4) : assert(0 == (3 & e)), e | |
| }, | |
| getAlignSize: function (e, t, n) { | |
| return n || "i64" != e && "double" != e ? e ? Math.min(t || (e ? Runtime.getNativeFieldSize(e) : 0), Runtime.QUANTUM_SIZE) : Math.min(t, 8) : 8 | |
| }, | |
| dynCall: function (e, t, n) { | |
| return n && n.length ? (n.splice || (n = Array.prototype.slice.call(n)), n.splice(0, 0, t), Module["dynCall_" + e].apply(null, n)) : Module["dynCall_" + e].call(null, t) | |
| }, | |
| functionPointers: [], | |
| addFunction: function (e) { | |
| for (var t = 0; t < Runtime.functionPointers.length; t++) | |
| if (!Runtime.functionPointers[t]) return Runtime.functionPointers[t] = e, 2 * (1 + t); | |
| throw "Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS." | |
| }, | |
| removeFunction: function (e) { | |
| Runtime.functionPointers[(e - 2) / 2] = null | |
| }, | |
| warnOnce: function (e) { | |
| Runtime.warnOnce.shown || (Runtime.warnOnce.shown = {}), Runtime.warnOnce.shown[e] || (Runtime.warnOnce.shown[e] = 1, Module.printErr(e)) | |
| }, | |
| funcWrappers: {}, | |
| getFuncWrapper: function (e, t) { | |
| assert(t), Runtime.funcWrappers[t] || (Runtime.funcWrappers[t] = {}); | |
| var n = Runtime.funcWrappers[t]; | |
| return n[e] || (n[e] = function () { | |
| return Runtime.dynCall(t, e, arguments) | |
| }), n[e] | |
| }, | |
| getCompilerSetting: function (e) { | |
| throw "You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work" | |
| }, | |
| stackAlloc: function (e) { | |
| var t = STACKTOP; | |
| return STACKTOP = STACKTOP + e | 0, STACKTOP = STACKTOP + 15 & -16, t | |
| }, | |
| staticAlloc: function (e) { | |
| var t = STATICTOP; | |
| return STATICTOP = STATICTOP + e | 0, STATICTOP = STATICTOP + 15 & -16, t | |
| }, | |
| dynamicAlloc: function (e) { | |
| var t = DYNAMICTOP; | |
| if (DYNAMICTOP = DYNAMICTOP + e | 0, (DYNAMICTOP = DYNAMICTOP + 15 & -16) >= TOTAL_MEMORY) { | |
| if (!enlargeMemory()) return DYNAMICTOP = t, 0 | |
| } | |
| return t | |
| }, | |
| alignMemory: function (e, t) { | |
| return e = Math.ceil(e / (t || 16)) * (t || 16) | |
| }, | |
| makeBigInt: function (e, t, n) { | |
| return n ? +(e >>> 0) + 4294967296 * +(t >>> 0) : +(e >>> 0) + 4294967296 * +(0 | t) | |
| }, | |
| GLOBAL_BASE: 8, | |
| QUANTUM_SIZE: 4, | |
| __dummy__: 0 | |
| }; | |
| Module.Runtime = Runtime; | |
| var __THREW__ = 0, | |
| ABORT = !1, | |
| EXITSTATUS = 0, | |
| undef = 0, | |
| tempValue, tempInt, tempBigInt, tempInt2, tempBigInt2, tempPair, tempBigIntI, tempBigIntR, tempBigIntS, tempBigIntP, tempBigIntD, tempDouble, tempFloat, tempI64, tempI64b, tempRet0, tempRet1, tempRet2, tempRet3, tempRet4, tempRet5, tempRet6, tempRet7, tempRet8, tempRet9, globalScope = void 0, | |
| cwrap, ccall; | |
| ! function () { | |
| function parseJSFunc(e) { | |
| var t = e.toString().match(sourceRegex).slice(1); | |
| return { | |
| arguments: t[0], | |
| body: t[1], | |
| returnValue: t[2] | |
| } | |
| } | |
| var JSfuncs = { | |
| stackSave: function () { | |
| Runtime.stackSave() | |
| }, | |
| stackRestore: function () { | |
| Runtime.stackRestore() | |
| }, | |
| arrayToC: function (e) { | |
| var t = Runtime.stackAlloc(e.length); | |
| return writeArrayToMemory(e, t), t | |
| }, | |
| stringToC: function (e) { | |
| var t = 0; | |
| return null !== e && void 0 !== e && 0 !== e && (t = Runtime.stackAlloc(1 + (e.length << 2)), writeStringToMemory(e, t)), t | |
| } | |
| }, | |
| toC = { | |
| string: JSfuncs.stringToC, | |
| array: JSfuncs.arrayToC | |
| }; | |
| ccall = function (e, t, n, r, i) { | |
| var a = getCFunc(e), | |
| o = [], | |
| s = 0; | |
| if (r) | |
| for (var l = 0; l < r.length; l++) { | |
| var u = toC[n[l]]; | |
| u ? (0 === s && (s = Runtime.stackSave()), o[l] = u(r[l])) : o[l] = r[l] | |
| } | |
| var c = a.apply(null, o); | |
| if ("string" === t && (c = Pointer_stringify(c)), 0 !== s) { | |
| if (i && i.async) return void EmterpreterAsync.asyncFinalizers.push(function () { | |
| Runtime.stackRestore(s) | |
| }); | |
| Runtime.stackRestore(s) | |
| } | |
| return c | |
| }; | |
| var sourceRegex = /^function\s*[^(]*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:\s*(.*?)[;\s]*)?}$/, | |
| JSsource = {}; | |
| for (var fun in JSfuncs) JSfuncs.hasOwnProperty(fun) && (JSsource[fun] = parseJSFunc(JSfuncs[fun])); | |
| cwrap = function cwrap(ident, returnType, argTypes) { | |
| argTypes = argTypes || []; | |
| var cfunc = getCFunc(ident), | |
| numericArgs = argTypes.every(function (e) { | |
| return "number" === e | |
| }), | |
| numericRet = "string" !== returnType; | |
| if (numericRet && numericArgs) return cfunc; | |
| var argNames = argTypes.map(function (e, t) { | |
| return "$" + t | |
| }), | |
| funcstr = "(function(" + argNames.join(",") + ") {", | |
| nargs = argTypes.length; | |
| if (!numericArgs) { | |
| funcstr += "var stack = " + JSsource.stackSave.body + ";"; | |
| for (var i = 0; i < nargs; i++) { | |
| var arg = argNames[i], | |
| type = argTypes[i]; | |
| if ("number" !== type) { | |
| var convertCode = JSsource[type + "ToC"]; | |
| funcstr += "var " + convertCode.arguments + " = " + arg + ";", funcstr += convertCode.body + ";", funcstr += arg + "=" + convertCode.returnValue + ";" | |
| } | |
| } | |
| } | |
| var cfuncname = parseJSFunc(function () { | |
| return cfunc | |
| }).returnValue; | |
| if (funcstr += "var ret = " + cfuncname + "(" + argNames.join(",") + ");", !numericRet) { | |
| var strgfy = parseJSFunc(function () { | |
| return Pointer_stringify | |
| }).returnValue; | |
| funcstr += "ret = " + strgfy + "(ret);" | |
| } | |
| return numericArgs || (funcstr += JSsource.stackRestore.body.replace("()", "(stack)") + ";"), funcstr += "return ret})", eval(funcstr) | |
| } | |
| }(), Module.ccall = ccall, Module.cwrap = cwrap, Module.setValue = setValue, Module.getValue = getValue; | |
| var ALLOC_NORMAL = 0, | |
| ALLOC_STACK = 1, | |
| ALLOC_STATIC = 2, | |
| ALLOC_DYNAMIC = 3, | |
| ALLOC_NONE = 4; | |
| Module.ALLOC_NORMAL = ALLOC_NORMAL, Module.ALLOC_STACK = ALLOC_STACK, Module.ALLOC_STATIC = ALLOC_STATIC, Module.ALLOC_DYNAMIC = ALLOC_DYNAMIC, Module.ALLOC_NONE = ALLOC_NONE, Module.allocate = allocate, Module.getMemory = getMemory, Module.Pointer_stringify = Pointer_stringify, Module.AsciiToString = AsciiToString, Module.stringToAscii = stringToAscii, Module.UTF8ArrayToString = UTF8ArrayToString, Module.UTF8ToString = UTF8ToString, Module.stringToUTF8Array = stringToUTF8Array, Module.stringToUTF8 = stringToUTF8, Module.lengthBytesUTF8 = lengthBytesUTF8, Module.UTF16ToString = UTF16ToString, Module.stringToUTF16 = stringToUTF16, Module.lengthBytesUTF16 = lengthBytesUTF16, Module.UTF32ToString = UTF32ToString, Module.stringToUTF32 = stringToUTF32, Module.lengthBytesUTF32 = lengthBytesUTF32, Module.stackTrace = stackTrace; | |
| for (var PAGE_SIZE = 4096, HEAP, HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64, STATIC_BASE = 0, STATICTOP = 0, staticSealed = !1, STACK_BASE = 0, STACKTOP = 0, STACK_MAX = 0, DYNAMIC_BASE = 0, DYNAMICTOP = 0, TOTAL_STACK = Module.TOTAL_STACK || 5242880, TOTAL_MEMORY = Module.TOTAL_MEMORY || 16777216, totalMemory = 65536; totalMemory < TOTAL_MEMORY || totalMemory < 2 * TOTAL_STACK;) totalMemory < 16777216 ? totalMemory *= 2 : totalMemory += 16777216; | |
| totalMemory !== TOTAL_MEMORY && (TOTAL_MEMORY = totalMemory), assert("undefined" != typeof Int32Array && "undefined" != typeof Float64Array && !!new Int32Array(1).subarray && !!new Int32Array(1).set, "JS engine does not provide full typed array support"); | |
| var buffer; | |
| buffer = new ArrayBuffer(TOTAL_MEMORY), HEAP8 = new Int8Array(buffer), HEAP16 = new Int16Array(buffer), HEAP32 = new Int32Array(buffer), HEAPU8 = new Uint8Array(buffer), HEAPU16 = new Uint16Array(buffer), HEAPU32 = new Uint32Array(buffer), HEAPF32 = new Float32Array(buffer), HEAPF64 = new Float64Array(buffer), HEAP32[0] = 255, assert(255 === HEAPU8[0] && 0 === HEAPU8[3], "Typed arrays 2 must be run on a little-endian system"), Module.HEAP = HEAP, Module.buffer = buffer, Module.HEAP8 = HEAP8, Module.HEAP16 = HEAP16, Module.HEAP32 = HEAP32, Module.HEAPU8 = HEAPU8, Module.HEAPU16 = HEAPU16, Module.HEAPU32 = HEAPU32, Module.HEAPF32 = HEAPF32, Module.HEAPF64 = HEAPF64; | |
| var __ATPRERUN__ = [], | |
| __ATINIT__ = [], | |
| __ATMAIN__ = [], | |
| __ATEXIT__ = [], | |
| __ATPOSTRUN__ = [], | |
| runtimeInitialized = !1, | |
| runtimeExited = !1; | |
| Module.addOnPreRun = addOnPreRun, Module.addOnInit = addOnInit, Module.addOnPreMain = addOnPreMain, Module.addOnExit = addOnExit, Module.addOnPostRun = addOnPostRun, Module.intArrayFromString = intArrayFromString, Module.intArrayToString = intArrayToString, Module.writeStringToMemory = writeStringToMemory, Module.writeArrayToMemory = writeArrayToMemory, Module.writeAsciiToMemory = writeAsciiToMemory, Math.imul && -5 === Math.imul(4294967295, 5) || (Math.imul = function (e, t) { | |
| var n = e >>> 16, | |
| r = 65535 & e, | |
| i = t >>> 16, | |
| a = 65535 & t; | |
| return r * a + (n * a + r * i << 16) | 0 | |
| }), Math.imul = Math.imul, Math.clz32 || (Math.clz32 = function (e) { | |
| e >>>= 0; | |
| for (var t = 0; t < 32; t++) | |
| if (e & 1 << 31 - t) return t; | |
| return 32 | |
| }), Math.clz32 = Math.clz32; | |
| var Math_abs = Math.abs, | |
| Math_cos = Math.cos, | |
| Math_sin = Math.sin, | |
| Math_tan = Math.tan, | |
| Math_acos = Math.acos, | |
| Math_asin = Math.asin, | |
| Math_atan = Math.atan, | |
| Math_atan2 = Math.atan2, | |
| Math_exp = Math.exp, | |
| Math_log = Math.log, | |
| Math_sqrt = Math.sqrt, | |
| Math_ceil = Math.ceil, | |
| Math_floor = Math.floor, | |
| Math_pow = Math.pow, | |
| Math_imul = Math.imul, | |
| Math_fround = Math.fround, | |
| Math_min = Math.min, | |
| Math_clz32 = Math.clz32, | |
| runDependencies = 0, | |
| runDependencyWatcher = null, | |
| dependenciesFulfilled = null; | |
| Module.addRunDependency = addRunDependency, Module.removeRunDependency = removeRunDependency, Module.preloadedImages = {}, Module.preloadedAudios = {}; | |
| var memoryInitializer = null, | |
| ASM_CONSTS = []; | |
| STATIC_BASE = 8, STATICTOP = STATIC_BASE + 23232, __ATINIT__.push({ | |
| func: function () { | |
| __GLOBAL__sub_I_bind_cc() | |
| } | |
| }, { | |
| func: function () { | |
| __GLOBAL__sub_I_bind_cpp() | |
| } | |
| }), allocate([28, 11, 0, 0, 20, 51, 0, 0, 108, 11, 0, 0, 240, 49, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 0, 28, 11, 0, 0, 47, 50, 0, 0, 68, 11, 0, 0, 85, 50, 0, 0, 240, 1, 0, 0, 0, 0, 0, 0, 68, 11, 0, 0, 151, 50, 0, 0, 248, 1, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 124, 55, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 61, 55, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 0, 28, 11, 0, 0, 30, 55, 0, 0, 28, 11, 0, 0, 255, 54, 0, 0, 28, 11, 0, 0, 224, 54, 0, 0, 28, 11, 0, 0, 193, 54, 0, 0, 28, 11, 0, 0, 162, 54, 0, 0, 28, 11, 0, 0, 131, 54, 0, 0, 28, 11, 0, 0, 100, 54, 0, 0, 28, 11, 0, 0, 69, 54, 0, 0, 28, 11, 0, 0, 38, 54, 0, 0, 28, 11, 0, 0, 7, 54, 0, 0, 28, 11, 0, 0, 232, 53, 0, 0, 28, 11, 0, 0, 201, 53, 0, 0, 68, 11, 0, 0, 187, 55, 0, 0, 240, 0, 0, 0, 0, 0, 0, 0, 28, 11, 0, 0, 200, 55, 0, 0, 28, 11, 0, 0, 213, 55, 0, 0, 68, 11, 0, 0, 226, 55, 0, 0, 248, 0, 0, 0, 0, 0, 0, 0, 68, 11, 0, 0, 3, 56, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 68, 11, 0, 0, 73, 56, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 68, 11, 0, 0, 37, 56, 0, 0, 32, 1, 0, 0, 0, 0, 0, 0, 68, 11, 0, 0, 107, 56, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 147, 56, 0, 0, 0, 11, 0, 0, 149, 56, 0, 0, 0, 11, 0, 0, 151, 56, 0, 0, 0, 11, 0, 0, 153, 56, 0, 0, 0, 11, 0, 0, 155, 56, 0, 0, 0, 11, 0, 0, 157, 56, 0, 0, 0, 11, 0, 0, 159, 56, 0, 0, 0, 11, 0, 0, 161, 56, 0, 0, 0, 11, 0, 0, 163, 56, 0, 0, 0, 11, 0, 0, 126, 87, 0, 0, 0, 11, 0, 0, 165, 56, 0, 0, 0, 11, 0, 0, 167, 56, 0, 0, 0, 11, 0, 0, 169, 56, 0, 0, 68, 11, 0, 0, 171, 56, 0, 0, 16, 1, 0, 0, 0, 0, 0, 0, 68, 11, 0, 0, 208, 56, 0, 0, 16, 1, 0, 0, 0, 0, 0, 0, 28, 11, 0, 0, 111, 81, 0, 0, 68, 11, 0, 0, 129, 81, 0, 0, 216, 1, 0, 0, 0, 0, 0, 0, 28, 11, 0, 0, 171, 81, 0, 0, 108, 11, 0, 0, 220, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 224, 1, 0, 0, 3, 244, 255, 255, 68, 11, 0, 0, 44, 82, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 66, 82, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 48, 8, 0, 0, 2, 0, 0, 0, 108, 11, 0, 0, 84, 82, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 56, 8, 0, 0, 2, 0, 0, 0, 108, 11, 0, 0, 118, 82, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 56, 8, 0, 0, 2, 0, 0, 0, 108, 11, 0, 0, 153, 82, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 56, 8, 0, 0, 2, 0, 0, 0, 68, 11, 0, 0, 188, 82, 0, 0, 128, 2, 0, 0, 0, 0, 0, 0, 68, 11, 0, 0, 222, 82, 0, 0, 128, 2, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 1, 83, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 56, 8, 0, 0, 2, 0, 0, 0, 68, 11, 0, 0, 35, 83, 0, 0, 16, 2, 0, 0, 0, 0, 0, 0, 68, 11, 0, 0, 57, 83, 0, 0, 16, 2, 0, 0, 0, 0, 0, 0, 68, 11, 0, 0, 77, 83, 0, 0, 16, 2, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 97, 83, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 48, 8, 0, 0, 2, 0, 0, 0, 68, 11, 0, 0, 115, 83, 0, 0, 16, 2, 0, 0, 0, 0, 0, 0, 68, 11, 0, 0, 136, 83, 0, 0, 16, 2, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 157, 83, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 64, 8, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 225, 83, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 88, 8, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 37, 84, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 112, 8, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 105, 84, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 136, 8, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 173, 84, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 160, 8, 0, 0, 2, 0, 0, 0, 168, 8, 0, 0, 0, 8, 0, 0, 108, 11, 0, 0, 242, 84, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 160, 8, 0, 0, 2, 0, 0, 0, 176, 8, 0, 0, 0, 8, 0, 0, 108, 11, 0, 0, 55, 85, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 184, 8, 0, 0, 0, 8, 0, 0, 108, 11, 0, 0, 124, 85, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 184, 8, 0, 0, 0, 8, 0, 0, 108, 11, 0, 0, 193, 85, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 192, 8, 0, 0, 2, 0, 0, 0, 108, 11, 0, 0, 221, 85, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 192, 8, 0, 0, 2, 0, 0, 0, 108, 11, 0, 0, 249, 85, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 192, 8, 0, 0, 2, 0, 0, 0, 108, 11, 0, 0, 21, 86, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 192, 8, 0, 0, 2, 0, 0, 0, 108, 11, 0, 0, 49, 86, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 200, 8, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 119, 86, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 208, 8, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 189, 86, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 216, 8, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 3, 87, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 224, 8, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 73, 87, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 232, 8, 0, 0, 2, 0, 0, 0, 108, 11, 0, 0, 94, 87, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 16, 2, 0, 0, 2, 0, 0, 0, 232, 8, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 11, 0, 0, 149, 90, 0, 0, 28, 11, 0, 0, 126, 90, 0, 0, 108, 11, 0, 0, 104, 90, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 248, 8, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 57, 90, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 248, 8, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 35, 90, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 240, 8, 0, 0, 0, 0, 0, 0, 108, 11, 0, 0, 244, 89, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 240, 8, 0, 0, 0, 0, 0, 0, 28, 11, 0, 0, 225, 89, 0, 0, 28, 11, 0, 0, 191, 89, 0, 0, 28, 11, 0, 0, 157, 89, 0, 0, 28, 11, 0, 0, 136, 89, 0, 0, 28, 11, 0, 0, 115, 89, 0, 0, 28, 11, 0, 0, 90, 89, 0, 0, 28, 11, 0, 0, 65, 89, 0, 0, 28, 11, 0, 0, 40, 89, 0, 0, 28, 11, 0, 0, 15, 89, 0, 0, 28, 11, 0, 0, 247, 88, 0, 0, 28, 11, 0, 0, 10, 90, 0, 0, 28, 11, 0, 0, 79, 90, 0, 0, 28, 11, 0, 0, 170, 90, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0, 248, 1, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 200, 255, 255, 255, 200, 255, 255, 255, 248, 1, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 5, 0, 0, 0, 6, 0, 0, 0, 200, 255, 255, 255, 200, 255, 255, 255, 64, 0, 0, 0, 7, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 9, 0, 0, 0, 10, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 80, 9, 0, 0, 40, 9, 0, 0, 60, 9, 0, 0, 100, 9, 0, 0, 103, 230, 9, 106, 133, 174, 103, 187, 114, 243, 110, 60, 58, 245, 79, 165, 127, 82, 14, 81, 140, 104, 5, 155, 171, 217, 131, 31, 25, 205, 224, 91, 152, 47, 138, 66, 145, 68, 55, 113, 207, 251, 192, 181, 165, 219, 181, 233, 91, 194, 86, 57, 241, 17, 241, 89, 164, 130, 63, 146, 213, 94, 28, 171, 152, 170, 7, 216, 1, 91, 131, 18, 190, 133, 49, 36, 195, 125, 12, 85, 116, 93, 190, 114, 254, 177, 222, 128, 167, 6, 220, 155, 116, 241, 155, 193, 193, 105, 155, 228, 134, 71, 190, 239, 198, 157, 193, 15, 204, 161, 12, 36, 111, 44, 233, 45, 170, 132, 116, 74, 220, 169, 176, 92, 218, 136, 249, 118, 82, 81, 62, 152, 109, 198, 49, 168, 200, 39, 3, 176, 199, 127, 89, 191, 243, 11, 224, 198, 71, 145, 167, 213, 81, 99, 202, 6, 103, 41, 41, 20, 133, 10, 183, 39, 56, 33, 27, 46, 252, 109, 44, 77, 19, 13, 56, 83, 84, 115, 10, 101, 187, 10, 106, 118, 46, 201, 194, 129, 133, 44, 114, 146, 161, 232, 191, 162, 75, 102, 26, 168, 112, 139, 75, 194, 163, 81, 108, 199, 25, 232, 146, 209, 36, 6, 153, 214, 133, 53, 14, 244, 112, 160, 106, 16, 22, 193, 164, 25, 8, 108, 55, 30, 76, 119, 72, 39, 181, 188, 176, 52, 179, 12, 28, 57, 74, 170, 216, 78, 79, 202, 156, 91, 243, 111, 46, 104, 238, 130, 143, 116, 111, 99, 165, 120, 20, 120, 200, 132, 8, 2, 199, 140, 250, 255, 190, 144, 235, 108, 80, 164, 247, 163, 249, 190, 242, 120, 113, 198, 1, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 0, 11, 0, 0, 0, 12, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 1, 0, 0, 13, 0, 0, 0, 14, 0, 0, 0, 15, 0, 0, 0, 16, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 16, 1, 0, 0, 13, 0, 0, 0, 17, 0, 0, 0, 15, 0, 0, 0, 16, 0, 0, 0, 5, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 184, 1, 0, 0, 13, 0, 0, 0, 18, 0, 0, 0, 15, 0, 0, 0, 16, 0, 0, 0, 5, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 200, 1, 0, 0, 13, 0, 0, 0, 19, 0, 0, 0, 15, 0, 0, 0, 16, 0, 0, 0, 5, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 66, 0, 0, 64, 13, 0, 0, 176, 13, 0, 0, 2, 0, 0, 192, 3, 0, 0, 192, 4, 0, 0, 192, 5, 0, 0, 192, 6, 0, 0, 192, 7, 0, 0, 192, 8, 0, 0, 192, 9, 0, 0, 192, 10, 0, 0, 192, 11, 0, 0, 192, 12, 0, 0, 192, 13, 0, 0, 192, 14, 0, 0, 192, 15, 0, 0, 192, 16, 0, 0, 192, 17, 0, 0, 192, 18, 0, 0, 192, 19, 0, 0, 192, 20, 0, 0, 192, 21, 0, 0, 192, 22, 0, 0, 192, 23, 0, 0, 192, 24, 0, 0, 192, 25, 0, 0, 192, 26, 0, 0, 192, 27, 0, 0, 192, 28, 0, 0, 192, 29, 0, 0, 192, 30, 0, 0, 192, 31, 0, 0, 192, 0, 0, 0, 179, 1, 0, 0, 195, 2, 0, 0, 195, 3, 0, 0, 195, 4, 0, 0, 195, 5, 0, 0, 195, 6, 0, 0, 195, 7, 0, 0, 195, 8, 0, 0, 195, 9, 0, 0, 195, 10, 0, 0, 195, 11, 0, 0, 195, 12, 0, 0, 195, 13, 0, 0, 211, 14, 0, 0, 195, 15, 0, 0, 195, 0, 0, 12, 187, 1, 0, 12, 195, 2, 0, 12, 195, 3, 0, 12, 195, 4, 0, 12, 211, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 22, 0, 0, 184, 47, 0, 0, 32, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 100, 0, 0, 0, 232, 3, 0, 0, 16, 39, 0, 0, 160, 134, 1, 0, 64, 66, 15, 0, 128, 150, 152, 0, 0, 225, 245, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 8, 0, 0, 0, 89, 75, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 8, 0, 0, 0, 81, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 5, 0, 0, 0, 6, 0, 0, 0, 7, 0, 0, 0, 8, 0, 0, 0, 9, 0, 0, 0, 10, 0, 0, 0, 11, 0, 0, 0, 12, 0, 0, 0, 13, 0, 0, 0, 14, 0, 0, 0, 15, 0, 0, 0, 16, 0, 0, 0, 17, 0, 0, 0, 18, 0, 0, 0, 19, 0, 0, 0, 20, 0, 0, 0, 21, 0, 0, 0, 22, 0, 0, 0, 23, 0, 0, 0, 24, 0, 0, 0, 25, 0, 0, 0, 26, 0, 0, 0, 27, 0, 0, 0, 28, 0, 0, 0, 29, 0, 0, 0, 30, 0, 0, 0, 31, 0, 0, 0, 32, 0, 0, 0, 33, 0, 0, 0, 34, 0, 0, 0, 35, 0, 0, 0, 36, 0, 0, 0, 37, 0, 0, 0, 38, 0, 0, 0, 39, 0, 0, 0, 40, 0, 0, 0, 41, 0, 0, 0, 42, 0, 0, 0, 43, 0, 0, 0, 44, 0, 0, 0, 45, 0, 0, 0, 46, 0, 0, 0, 47, 0, 0, 0, 48, 0, 0, 0, 49, 0, 0, 0, 50, 0, 0, 0, 51, 0, 0, 0, 52, 0, 0, 0, 53, 0, 0, 0, 54, 0, 0, 0, 55, 0, 0, 0, 56, 0, 0, 0, 57, 0, 0, 0, 58, 0, 0, 0, 59, 0, 0, 0, 60, 0, 0, 0, 61, 0, 0, 0, 62, 0, 0, 0, 63, 0, 0, 0, 64, 0, 0, 0, 65, 0, 0, 0, 66, 0, 0, 0, 67, 0, 0, 0, 68, 0, 0, 0, 69, 0, 0, 0, 70, 0, 0, 0, 71, 0, 0, 0, 72, 0, 0, 0, 73, 0, 0, 0, 74, 0, 0, 0, 75, 0, 0, 0, 76, 0, 0, 0, 77, 0, 0, 0, 78, 0, 0, 0, 79, 0, 0, 0, 80, 0, 0, 0, 81, 0, 0, 0, 82, 0, 0, 0, 83, 0, 0, 0, 84, 0, 0, 0, 85, 0, 0, 0, 86, 0, 0, 0, 87, 0, 0, 0, 88, 0, 0, 0, 89, 0, 0, 0, 90, 0, 0, 0, 91, 0, 0, 0, 92, 0, 0, 0, 93, 0, 0, 0, 94, 0, 0, 0, 95, 0, 0, 0, 96, 0, 0, 0, 65, 0, 0, 0, 66, 0, 0, 0, 67, 0, 0, 0, 68, 0, 0, 0, 69, 0, 0, 0, 70, 0, 0, 0, 71, 0, 0, 0, 72, 0, 0, 0, 73, 0, 0, 0, 74, 0, 0, 0, 75, 0, 0, 0, 76, 0, 0, 0, 77, 0, 0, 0, 78, 0, 0, 0, 79, 0, 0, 0, 80, 0, 0, 0, 81, 0, 0, 0, 82, 0, 0, 0, 83, 0, 0, 0, 84, 0, 0, 0, 85, 0, 0, 0, 86, 0, 0, 0, 87, 0, 0, 0, 88, 0, 0, 0, 89, 0, 0, 0, 90, 0, 0, 0, 123, 0, 0, 0, 124, 0, 0, 0, 125, 0, 0, 0, 126, 0, 0, 0, 127], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE), allocate([1, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 5, 0, 0, 0, 6, 0, 0, 0, 7, 0, 0, 0, 8, 0, 0, 0, 9, 0, 0, 0, 10, 0, 0, 0, 11, 0, 0, 0, 12, 0, 0, 0, 13, 0, 0, 0, 14, 0, 0, 0, 15, 0, 0, 0, 16, 0, 0, 0, 17, 0, 0, 0, 18, 0, 0, 0, 19, 0, 0, 0, 20, 0, 0, 0, 21, 0, 0, 0, 22, 0, 0, 0, 23, 0, 0, 0, 24, 0, 0, 0, 25, 0, 0, 0, 26, 0, 0, 0, 27, 0, 0, 0, 28, 0, 0, 0, 29, 0, 0, 0, 30, 0, 0, 0, 31, 0, 0, 0, 32, 0, 0, 0, 33, 0, 0, 0, 34, 0, 0, 0, 35, 0, 0, 0, 36, 0, 0, 0, 37, 0, 0, 0, 38, 0, 0, 0, 39, 0, 0, 0, 40, 0, 0, 0, 41, 0, 0, 0, 42, 0, 0, 0, 43, 0, 0, 0, 44, 0, 0, 0, 45, 0, 0, 0, 46, 0, 0, 0, 47, 0, 0, 0, 48, 0, 0, 0, 49, 0, 0, 0, 50, 0, 0, 0, 51, 0, 0, 0, 52, 0, 0, 0, 53, 0, 0, 0, 54, 0, 0, 0, 55, 0, 0, 0, 56, 0, 0, 0, 57, 0, 0, 0, 58, 0, 0, 0, 59, 0, 0, 0, 60, 0, 0, 0, 61, 0, 0, 0, 62, 0, 0, 0, 63, 0, 0, 0, 64, 0, 0, 0, 97, 0, 0, 0, 98, 0, 0, 0, 99, 0, 0, 0, 100, 0, 0, 0, 101, 0, 0, 0, 102, 0, 0, 0, 103, 0, 0, 0, 104, 0, 0, 0, 105, 0, 0, 0, 106, 0, 0, 0, 107, 0, 0, 0, 108, 0, 0, 0, 109, 0, 0, 0, 110, 0, 0, 0, 111, 0, 0, 0, 112, 0, 0, 0, 113, 0, 0, 0, 114, 0, 0, 0, 115, 0, 0, 0, 116, 0, 0, 0, 117, 0, 0, 0, 118, 0, 0, 0, 119, 0, 0, 0, 120, 0, 0, 0, 121, 0, 0, 0, 122, 0, 0, 0, 91, 0, 0, 0, 92, 0, 0, 0, 93, 0, 0, 0, 94, 0, 0, 0, 95, 0, 0, 0, 96, 0, 0, 0, 97, 0, 0, 0, 98, 0, 0, 0, 99, 0, 0, 0, 100, 0, 0, 0, 101, 0, 0, 0, 102, 0, 0, 0, 103, 0, 0, 0, 104, 0, 0, 0, 105, 0, 0, 0, 106, 0, 0, 0, 107, 0, 0, 0, 108, 0, 0, 0, 109, 0, 0, 0, 110, 0, 0, 0, 111, 0, 0, 0, 112, 0, 0, 0, 113, 0, 0, 0, 114, 0, 0, 0, 115, 0, 0, 0, 116, 0, 0, 0, 117, 0, 0, 0, 118, 0, 0, 0, 119, 0, 0, 0, 120, 0, 0, 0, 121, 0, 0, 0, 122, 0, 0, 0, 123, 0, 0, 0, 124, 0, 0, 0, 125, 0, 0, 0, 126, 0, 0, 0, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 1, 0, 0, 20, 0, 0, 0, 21, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 7, 0, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 216, 1, 0, 0, 22, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 240, 2, 0, 0, 24, 0, 0, 0, 25, 0, 0, 0, 26, 0, 0, 0, 1, 0, 0, 0, 6, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 27, 0, 0, 0, 28, 0, 0, 0, 26, 0, 0, 0, 2, 0, 0, 0, 7, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 3, 0, 0, 29, 0, 0, 0, 30, 0, 0, 0, 26, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 5, 0, 0, 0, 6, 0, 0, 0, 7, 0, 0, 0, 8, 0, 0, 0, 9, 0, 0, 0, 10, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 3, 0, 0, 31, 0, 0, 0, 32, 0, 0, 0, 26, 0, 0, 0, 12, 0, 0, 0, 13, 0, 0, 0, 14, 0, 0, 0, 15, 0, 0, 0, 16, 0, 0, 0, 17, 0, 0, 0, 18, 0, 0, 0, 19, 0, 0, 0, 20, 0, 0, 0, 21, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 144, 3, 0, 0, 33, 0, 0, 0, 34, 0, 0, 0, 26, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 23, 0, 0, 0, 5, 0, 0, 0, 24, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 3, 0, 0, 35, 0, 0, 0, 36, 0, 0, 0, 26, 0, 0, 0, 7, 0, 0, 0, 8, 0, 0, 0, 25, 0, 0, 0, 9, 0, 0, 0, 26, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 208, 3, 0, 0, 37, 0, 0, 0, 38, 0, 0, 0, 26, 0, 0, 0, 8, 0, 0, 0, 27, 0, 0, 0, 28, 0, 0, 0, 29, 0, 0, 0, 30, 0, 0, 0, 31, 0, 0, 0, 1, 0, 0, 0, 248, 255, 255, 255, 208, 3, 0, 0, 9, 0, 0, 0, 10, 0, 0, 0, 11, 0, 0, 0, 12, 0, 0, 0, 13, 0, 0, 0, 14, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 248, 3, 0, 0, 39, 0, 0, 0, 40, 0, 0, 0, 26, 0, 0, 0, 16, 0, 0, 0, 32, 0, 0, 0, 33, 0, 0, 0, 34, 0, 0, 0, 35, 0, 0, 0, 36, 0, 0, 0, 2, 0, 0, 0, 248, 255, 255, 255, 248, 3, 0, 0, 17, 0, 0, 0, 18, 0, 0, 0, 19, 0, 0, 0, 20, 0, 0, 0, 21, 0, 0, 0, 22, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 4, 0, 0, 41, 0, 0, 0, 42, 0, 0, 0, 26, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 4, 0, 0, 43, 0, 0, 0, 44, 0, 0, 0, 26, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 4, 0, 0, 45, 0, 0, 0, 46, 0, 0, 0, 26, 0, 0, 0, 24, 0, 0, 0, 25, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 5, 0, 0, 0, 26, 0, 0, 0, 6, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 4, 0, 0, 47, 0, 0, 0, 48, 0, 0, 0, 26, 0, 0, 0, 27, 0, 0, 0, 28, 0, 0, 0, 8, 0, 0, 0, 9, 0, 0, 0, 10, 0, 0, 0, 11, 0, 0, 0, 29, 0, 0, 0, 12, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 160, 4, 0, 0, 49, 0, 0, 0, 50, 0, 0, 0, 26, 0, 0, 0, 30, 0, 0, 0, 31, 0, 0, 0, 14, 0, 0, 0, 15, 0, 0, 0, 16, 0, 0, 0, 17, 0, 0, 0, 32, 0, 0, 0, 18, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 4, 0, 0, 51, 0, 0, 0, 52, 0, 0, 0, 26, 0, 0, 0, 33, 0, 0, 0, 34, 0, 0, 0, 20, 0, 0, 0, 21, 0, 0, 0, 22, 0, 0, 0, 23, 0, 0, 0, 35, 0, 0, 0, 24, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 4, 0, 0, 53, 0, 0, 0, 54, 0, 0, 0, 26, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 55, 0, 0, 0, 56, 0, 0, 0, 26, 0, 0, 0, 5, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 5, 0, 0, 57, 0, 0, 0, 58, 0, 0, 0, 26, 0, 0, 0, 1, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 5, 0, 0, 59, 0, 0, 0, 60, 0, 0, 0, 26, 0, 0, 0, 2, 0, 0, 0, 38, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 5, 0, 0, 61, 0, 0, 0, 62, 0, 0, 0, 26, 0, 0, 0, 12, 0, 0, 0, 6, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 5, 0, 0, 63, 0, 0, 0, 64, 0, 0, 0, 26, 0, 0, 0, 13, 0, 0, 0, 7, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 2, 0, 0, 65, 0, 0, 0, 66, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 3, 0, 0, 67, 0, 0, 0, 68, 0, 0, 0, 26, 0, 0, 0, 5, 0, 0, 0, 14, 0, 0, 0, 6, 0, 0, 0, 15, 0, 0, 0, 7, 0, 0, 0, 1, 0, 0, 0, 16, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 2, 0, 0, 69, 0, 0, 0, 70, 0, 0, 0, 26, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 12, 0, 0, 0, 36, 0, 0, 0, 37, 0, 0, 0, 13, 0, 0, 0, 38, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 3, 0, 0, 71, 0, 0, 0, 72, 0, 0, 0, 26, 0, 0, 0, 39, 0, 0, 0, 40, 0, 0, 0, 28, 0, 0, 0, 29, 0, 0, 0, 30, 0, 0, 0, 0, 0, 0, 0, 64, 3, 0, 0, 73, 0, 0, 0, 74, 0, 0, 0, 26, 0, 0, 0, 41, 0, 0, 0, 42, 0, 0, 0, 31, 0, 0, 0, 32, 0, 0, 0, 33, 0, 0, 0, 0, 0, 0, 0, 16, 2, 0, 0, 75, 0, 0, 0, 76, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 32, 2, 0, 0, 75, 0, 0, 0, 77, 0, 0, 0, 26, 0, 0, 0, 17, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 8, 0, 0, 0, 18, 0, 0, 0, 9, 0, 0, 0, 19, 0, 0, 0, 10, 0, 0, 0, 5, 0, 0, 0, 20, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 64, 2, 0, 0, 75, 0, 0, 0, 78, 0, 0, 0, 26, 0, 0, 0, 5, 0, 0, 0, 6, 0, 0, 0, 15, 0, 0, 0, 43, 0, 0, 0, 44, 0, 0, 0, 16, 0, 0, 0, 45, 0, 0, 0, 0, 0, 0, 0, 96, 2, 0, 0, 75, 0, 0, 0, 79, 0, 0, 0, 26, 0, 0, 0, 7, 0, 0, 0, 8, 0, 0, 0, 17, 0, 0, 0, 46, 0, 0, 0, 47, 0, 0, 0, 18, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 0, 128, 2, 0, 0, 75, 0, 0, 0, 80, 0, 0, 0, 26, 0, 0, 0, 9, 0, 0, 0, 10, 0, 0, 0, 19, 0, 0, 0, 49, 0, 0, 0, 50, 0, 0, 0, 20, 0, 0, 0, 51, 0, 0, 0, 0, 0, 0, 0, 160, 2, 0, 0, 75, 0, 0, 0, 81, 0, 0, 0, 26, 0, 0, 0, 9, 0, 0, 0, 10, 0, 0, 0, 19, 0, 0, 0, 49, 0, 0, 0, 50, 0, 0, 0, 20, 0, 0, 0, 51, 0, 0, 0, 0, 0, 0, 0, 176, 2, 0, 0, 75, 0, 0, 0, 82, 0, 0, 0, 26, 0, 0, 0, 9, 0, 0, 0, 10, 0, 0, 0, 19, 0, 0, 0, 49, 0, 0, 0, 50, 0, 0, 0, 20, 0, 0, 0, 51, 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 72, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 77, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 83, 0, 0, 0, 37, 0, 0, 0, 109, 0, 0, 0, 47, 0, 0, 0, 37, 0, 0, 0, 100, 0, 0, 0, 47, 0, 0, 0, 37, 0, 0, 0, 121, 0, 0, 0, 37, 0, 0, 0, 89, 0, 0, 0, 45, 0, 0, 0, 37, 0, 0, 0, 109, 0, 0, 0, 45, 0, 0, 0, 37, 0, 0, 0, 100, 0, 0, 0, 37, 0, 0, 0, 73, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 77, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 83, 0, 0, 0, 32, 0, 0, 0, 37, 0, 0, 0, 112, 0, 0, 0, 37, 0, 0, 0, 72, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 77, 0, 0, 0, 37, 0, 0, 0, 72, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 77, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 83, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 0, 0, 0, 114, 0, 0, 0, 117, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 97, 0, 0, 0, 108, 0, 0, 0, 115, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 0, 0, 0, 117, 0, 0, 0, 110, 0, 0, 0, 100, 0, 0, 0, 97, 0, 0, 0, 121, 0, 0, 0, 0, 0, 0, 0, 77, 0, 0, 0, 111, 0, 0, 0, 110, 0, 0, 0, 100, 0, 0, 0, 97, 0, 0, 0, 121, 0, 0, 0, 0, 0, 0, 0, 84, 0, 0, 0, 117, 0, 0, 0, 101, 0, 0, 0, 115, 0, 0, 0, 100, 0, 0, 0, 97, 0, 0, 0, 121, 0, 0, 0, 0, 0, 0, 0, 87, 0, 0, 0, 101, 0, 0, 0, 100, 0, 0, 0, 110, 0, 0, 0, 101, 0, 0, 0, 115, 0, 0, 0, 100, 0, 0, 0, 97, 0, 0, 0, 121, 0, 0, 0, 0, 0, 0, 0, 84, 0, 0, 0, 104, 0, 0, 0, 117, 0, 0, 0, 114, 0, 0, 0, 115, 0, 0, 0, 100, 0, 0, 0, 97, 0, 0, 0, 121, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 114, 0, 0, 0, 105, 0, 0, 0, 100, 0, 0, 0, 97, 0, 0, 0, 121, 0, 0, 0, 0, 0, 0, 0, 83, 0, 0, 0, 97, 0, 0, 0, 116, 0, 0, 0, 117, 0, 0, 0, 114, 0, 0, 0, 100, 0, 0, 0, 97, 0, 0, 0, 121, 0, 0, 0, 0, 0, 0, 0, 83, 0, 0, 0, 117, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 77, 0, 0, 0, 111, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 84, 0, 0, 0, 117, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 87, 0, 0, 0, 101, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 84, 0, 0, 0, 104, 0, 0, 0, 117, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 114, 0, 0, 0, 105, 0, 0, 0, 0, 0, 0, 0, 83, 0, 0, 0, 97, 0, 0, 0, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 74, 0, 0, 0, 97, 0, 0, 0, 110, 0, 0, 0, 117, 0, 0, 0, 97, 0, 0, 0, 114, 0, 0, 0, 121, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 101, 0, 0, 0, 98, 0, 0, 0, 114, 0, 0, 0, 117, 0, 0, 0, 97, 0, 0, 0, 114, 0, 0, 0, 121, 0, 0, 0, 0, 0, 0, 0, 77, 0, 0, 0, 97, 0, 0, 0, 114, 0, 0, 0, 99, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 112, 0, 0, 0, 114, 0, 0, 0, 105, 0, 0, 0, 108, 0, 0, 0, 0, 0, 0, 0, 77, 0, 0, 0, 97, 0, 0, 0, 121, 0, 0, 0, 0, 0, 0, 0, 74, 0, 0, 0, 117, 0, 0, 0, 110, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 74, 0, 0, 0, 117, 0, 0, 0, 108, 0, 0, 0, 121, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 117, 0, 0, 0, 103, 0, 0, 0, 117, 0, 0, 0, 115, 0, 0, 0, 116, 0, 0, 0, 0, 0, 0, 0, 83, 0, 0, 0, 101, 0, 0, 0, 112, 0, 0, 0, 116, 0, 0, 0, 101, 0, 0, 0, 109, 0, 0, 0, 98, 0, 0, 0, 101, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 0, 79, 0, 0, 0, 99, 0, 0, 0, 116, 0, 0, 0, 111, 0, 0, 0, 98, 0, 0, 0, 101, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 0, 78, 0, 0, 0, 111, 0, 0, 0, 118, 0, 0, 0, 101, 0, 0, 0, 109, 0, 0, 0, 98, 0, 0, 0, 101, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 101, 0, 0, 0, 99, 0, 0, 0, 101, 0, 0, 0, 109, 0, 0, 0, 98, 0, 0, 0, 101, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 0, 74, 0, 0, 0, 97, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 101, 0, 0, 0, 98, 0, 0, 0, 0, 0, 0, 0, 77, 0, 0, 0, 97, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 112, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 0, 74, 0, 0, 0, 117, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 74, 0, 0, 0, 117, 0, 0, 0, 108, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 117, 0, 0, 0, 103, 0, 0, 0, 0, 0, 0, 0, 83, 0, 0, 0, 101, 0, 0, 0, 112, 0, 0, 0, 0, 0, 0, 0, 79, 0, 0, 0, 99, 0, 0, 0, 116, 0, 0, 0, 0, 0, 0, 0, 78, 0, 0, 0, 111, 0, 0, 0, 118, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 101, 0, 0, 0, 99, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 77, 0, 0, 0, 0, 0, 0, 0, 80, 0, 0, 0, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 109, 0, 0, 0, 47, 0, 0, 0, 37, 0, 0, 0, 100, 0, 0, 0, 47, 0, 0, 0, 37, 0, 0, 0, 121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 72, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 77, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 83, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 97, 0, 0, 0, 32, 0, 0, 0, 37, 0, 0, 0, 98, 0, 0, 0, 32, 0, 0, 0, 37, 0, 0, 0, 100, 0, 0, 0, 32, 0, 0, 0, 37, 0, 0, 0, 72, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 77, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 83, 0, 0, 0, 32, 0, 0, 0, 37, 0, 0, 0, 89, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 73, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 77, 0, 0, 0, 58, 0, 0, 0, 37, 0, 0, 0, 83, 0, 0, 0, 32, 0, 0, 0, 37, 0, 0, 0, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 3, 32, 2, 32, 2, 32, 2, 32, 2, 32, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 96, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 8, 216, 8, 216, 8, 216, 8, 216, 8, 216, 8, 216, 8, 216, 8, 216, 8, 216, 8, 216, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 8, 213, 8, 213, 8, 213, 8, 213, 8, 213, 8, 213, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 8, 197, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 4, 192, 8, 214, 8, 214, 8, 214, 8, 214, 8, 214, 8, 214, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 8, 198, 4, 192, 4, 192, 4, 192, 4, 192, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 97, 115, 117, 95, 114, 101, 113, 117, 101, 115, 116, 95, 104, 97, 115, 104, 0, 37, 99, 37, 99, 0, 100, 101, 99, 114, 121, 112, 116, 84, 101, 120, 116, 0, 105, 105, 105, 0, 101, 110, 99, 114, 121, 112, 116, 80, 97, 116, 104, 0, 105, 105, 105, 105, 0, 78, 83, 116, 51, 95, 95, 49, 49, 50, 98, 97, 115, 105, 99, 95, 115, 116, 114, 105, 110, 103, 73, 99, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 99, 69, 69, 78, 83, 95, 57, 97, 108, 108, 111, 99, 97, 116, 111, 114, 73, 99, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 50, 49, 95, 95, 98, 97, 115, 105, 99, 95, 115, 116, 114, 105, 110, 103, 95, 99, 111, 109, 109, 111, 110, 73, 76, 98, 49, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 53, 98, 97, 115, 105, 99, 95, 115, 116, 114, 105, 110, 103, 98, 117, 102, 73, 99, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 99, 69, 69, 78, 83, 95, 57, 97, 108, 108, 111, 99, 97, 116, 111, 114, 73, 99, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 57, 98, 97, 115, 105, 99, 95, 111, 115, 116, 114, 105, 110, 103, 115, 116, 114, 101, 97, 109, 73, 99, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 99, 69, 69, 78, 83, 95, 57, 97, 108, 108, 111, 99, 97, 116, 111, 114, 73, 99, 69, 69, 69, 69, 0, 102, 105, 114, 115, 116, 32, 43, 32, 54, 52, 32, 61, 61, 32, 108, 97, 115, 116, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 47, 112, 105, 99, 111, 115, 104, 97, 50, 46, 104, 0, 104, 97, 115, 104, 50, 53, 54, 95, 98, 108, 111, 99, 107, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 51, 118, 97, 108, 69, 0, 115, 116, 100, 58, 58, 98, 97, 115, 105, 99, 95, 115, 116, 114, 105, 110, 103, 60, 117, 110, 115, 105, 103, 110, 101, 100, 32, 99, 104, 97, 114, 62, 0, 115, 116, 100, 58, 58, 119, 115, 116, 114, 105, 110, 103, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 118, 97, 108, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 99, 104, 97, 114, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 115, 105, 103, 110, 101, 100, 32, 99, 104, 97, 114, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 117, 110, 115, 105, 103, 110, 101, 100, 32, 99, 104, 97, 114, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 115, 104, 111, 114, 116, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 117, 110, 115, 105, 103, 110, 101, 100, 32, 115, 104, 111, 114, 116, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 105, 110, 116, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 117, 110, 115, 105, 103, 110, 101, 100, 32, 105, 110, 116, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 108, 111, 110, 103, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 117, 110, 115, 105, 103, 110, 101, 100, 32, 108, 111, 110, 103, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 105, 110, 116, 56, 95, 116, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 117, 105, 110, 116, 56, 95, 116, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 105, 110, 116, 49, 54, 95, 116, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 117, 105, 110, 116, 49, 54, 95, 116, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 105, 110, 116, 51, 50, 95, 116, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 117, 105, 110, 116, 51, 50, 95, 116, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 102, 108, 111, 97, 116, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 100, 111, 117, 98, 108, 101, 62, 0, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 58, 58, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 60, 108, 111, 110, 103, 32, 100, 111, 117, 98, 108, 101, 62, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 49, 49, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 73, 101, 69, 69, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 49, 49, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 73, 100, 69, 69, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 49, 49, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 73, 102, 69, 69, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 49, 49, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 73, 109, 69, 69, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 49, 49, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 73, 108, 69, 69, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 49, 49, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 73, 106, 69, 69, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 49, 49, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 73, 105, 69, 69, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 49, 49, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 73, 116, 69, 69, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 49, 49, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 73, 115, 69, 69, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 49, 49, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 73, 104, 69, 69, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 49, 49, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 73, 97, 69, 69, 0, 78, 49, 48, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 49, 49, 109, 101, 109, 111, 114, 121, 95, 118, 105, 101, 119, 73, 99, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 50, 98, 97, 115, 105, 99, 95, 115, 116, 114, 105, 110, 103, 73, 119, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 119, 69, 69, 78, 83, 95, 57, 97, 108, 108, 111, 99, 97, 116, 111, 114, 73, 119, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 50, 98, 97, 115, 105, 99, 95, 115, 116, 114, 105, 110, 103, 73, 104, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 104, 69, 69, 78, 83, 95, 57, 97, 108, 108, 111, 99, 97, 116, 111, 114, 73, 104, 69, 69, 69, 69, 0, 83, 116, 57, 98, 97, 100, 95, 97, 108, 108, 111, 99, 0, 83, 116, 57, 101, 120, 99, 101, 112, 116, 105, 111, 110, 0, 83, 116, 57, 116, 121, 112, 101, 95, 105, 110, 102, 111, 0, 78, 49, 48, 95, 95, 99, 120, 120, 97, 98, 105, 118, 49, 49, 54, 95, 95, 115, 104, 105, 109, 95, 116, 121, 112, 101, 95, 105, 110, 102, 111, 69, 0, 78, 49, 48, 95, 95, 99, 120, 120, 97, 98, 105, 118, 49, 49, 55, 95, 95, 99, 108, 97, 115, 115, 95, 116, 121, 112, 101, 95, 105, 110, 102, 111, 69, 0, 78, 49, 48, 95, 95, 99, 120, 120, 97, 98, 105, 118, 49, 49, 57, 95, 95, 112, 111, 105, 110, 116, 101, 114, 95, 116, 121, 112, 101, 95, 105, 110, 102, 111, 69, 0, 78, 49, 48, 95, 95, 99, 120, 120, 97, 98, 105, 118, 49, 49, 55, 95, 95, 112, 98, 97, 115, 101, 95, 116, 121, 112, 101, 95, 105, 110, 102, 111, 69, 0, 78, 49, 48, 95, 95, 99, 120, 120, 97, 98, 105, 118, 49, 50, 51, 95, 95, 102, 117, 110, 100, 97, 109, 101, 110, 116, 97, 108, 95, 116, 121, 112, 101, 95, 105, 110, 102, 111, 69, 0, 118, 0, 98, 0, 99, 0, 104, 0, 97, 0, 115, 0, 116, 0, 105, 0, 106, 0, 109, 0, 102, 0, 100, 0, 78, 49, 48, 95, 95, 99, 120, 120, 97, 98, 105, 118, 49, 50, 48, 95, 95, 115, 105, 95, 99, 108, 97, 115, 115, 95, 116, 121, 112, 101, 95, 105, 110, 102, 111, 69, 0, 78, 49, 48, 95, 95, 99, 120, 120, 97, 98, 105, 118, 49, 50, 49, 95, 95, 118, 109, 105, 95, 99, 108, 97, 115, 115, 95, 116, 121, 112, 101, 95, 105, 110, 102, 111, 69, 0, 33, 34, 98, 97, 115, 105, 99, 95, 115, 116, 114, 105, 110, 103, 32, 108, 101, 110, 103, 116, 104, 95, 101, 114, 114, 111, 114, 34, 0, 47, 101, 109, 115, 100, 107, 95, 112, 111, 114, 116, 97, 98, 108, 101, 47, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 47, 116, 97, 103, 45, 49, 46, 51, 53, 46, 52, 47, 115, 121, 115, 116, 101, 109, 47, 105, 110, 99, 108, 117, 100, 101, 47, 108, 105, 98, 99, 120, 120, 47, 115, 116, 114, 105, 110, 103, 0, 95, 95, 116, 104, 114, 111, 119, 95, 108, 101, 110, 103, 116, 104, 95, 101, 114, 114, 111, 114, 0, 33, 34, 118, 101, 99, 116, 111, 114, 32, 108, 101, 110, 103, 116, 104, 95, 101, 114, 114, 111, 114, 34, 0, 47, 101, 109, 115, 100, 107, 95, 112, 111, 114, 116, 97, 98, 108, 101, 47, 101, 109, 115, 99, 114, 105, 112, 116, 101, 110, 47, 116, 97, 103, 45, 49, 46, 51, 53, 46, 52, 47, 115, 121, 115, 116, 101, 109, 47, 105, 110, 99, 108, 117, 100, 101, 47, 108, 105, 98, 99, 120, 120, 47, 118, 101, 99, 116, 111, 114, 0, 112, 116, 104, 114, 101, 97, 100, 95, 111, 110, 99, 101, 32, 102, 97, 105, 108, 117, 114, 101, 32, 105, 110, 32, 95, 95, 99, 120, 97, 95, 103, 101, 116, 95, 103, 108, 111, 98, 97, 108, 115, 95, 102, 97, 115, 116, 40, 41, 0, 115, 116, 100, 58, 58, 98, 97, 100, 95, 97, 108, 108, 111, 99, 0, 116, 101, 114, 109, 105, 110, 97, 116, 101, 95, 104, 97, 110, 100, 108, 101, 114, 32, 117, 110, 101, 120, 112, 101, 99, 116, 101, 100, 108, 121, 32, 114, 101, 116, 117, 114, 110, 101, 100, 0, 99, 97, 110, 110, 111, 116, 32, 99, 114, 101, 97, 116, 101, 32, 112, 116, 104, 114, 101, 97, 100, 32, 107, 101, 121, 32, 102, 111, 114, 32, 95, 95, 99, 120, 97, 95, 103, 101, 116, 95, 103, 108, 111, 98, 97, 108, 115, 40, 41, 0, 99, 97, 110, 110, 111, 116, 32, 122, 101, 114, 111, 32, 111, 117, 116, 32, 116, 104, 114, 101, 97, 100, 32, 118, 97, 108, 117, 101, 32, 102, 111, 114, 32, 95, 95, 99, 120, 97, 95, 103, 101, 116, 95, 103, 108, 111, 98, 97, 108, 115, 40, 41, 0, 32, 40, 0, 41, 0, 95, 98, 108, 111, 99, 107, 95, 105, 110, 118, 111, 107, 101, 0, 105, 110, 118, 111, 99, 97, 116, 105, 111, 110, 32, 102, 117, 110, 99, 116, 105, 111, 110, 32, 102, 111, 114, 32, 98, 108, 111, 99, 107, 32, 105, 110, 32, 0, 32, 99, 111, 110, 115, 116, 0, 32, 118, 111, 108, 97, 116, 105, 108, 101, 0, 32, 114, 101, 115, 116, 114, 105, 99, 116, 0, 32, 91, 0, 32, 91, 93, 0, 93, 0, 32, 99, 111, 109, 112, 108, 101, 120, 0, 40, 0, 44, 32, 0, 32, 38, 0, 32, 38, 38, 0, 32, 0, 32, 105, 109, 97, 103, 105, 110, 97, 114, 121, 0, 58, 58, 42, 0, 38, 38, 0, 111, 98, 106, 99, 95, 111, 98, 106, 101, 99, 116, 60, 0, 42, 0, 105, 100, 0, 38, 0, 111, 98, 106, 99, 112, 114, 111, 116, 111, 0, 60, 0, 62, 0, 32, 118, 101, 99, 116, 111, 114, 91, 0, 112, 105, 120, 101, 108, 32, 118, 101, 99, 116, 111, 114, 91, 0, 100, 101, 99, 108, 116, 121, 112, 101, 40, 0, 115, 116, 100, 58, 58, 97, 108, 108, 111, 99, 97, 116, 111, 114, 0, 115, 116, 100, 58, 58, 98, 97, 115, 105, 99, 95, 115, 116, 114, 105, 110, 103, 0, 115, 116, 100, 58, 58, 115, 116, 114, 105, 110, 103, 0, 115, 116, 100, 58, 58, 105, 115, 116, 114, 101, 97, 109, 0, 115, 116, 100, 58, 58, 111, 115, 116, 114, 101, 97, 109, 0, 115, 116, 100, 58, 58, 105, 111, 115, 116, 114, 101, 97, 109, 0, 115, 116, 100, 0, 58, 58, 0, 58, 58, 115, 116, 114, 105, 110, 103, 32, 108, 105, 116, 101, 114, 97, 108, 0, 115, 116, 100, 58, 58, 0, 126, 0, 39, 117, 110, 110, 97, 109, 101, 100, 0, 39, 108, 97, 109, 98, 100, 97, 39, 40, 0, 111, 112, 101, 114, 97, 116, 111, 114, 38, 38, 0, 111, 112, 101, 114, 97, 116, 111, 114, 38, 0, 111, 112, 101, 114, 97, 116, 111, 114, 38, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 40, 41, 0, 111, 112, 101, 114, 97, 116, 111, 114, 44, 0, 111, 112, 101, 114, 97, 116, 111, 114, 126, 0, 111, 112, 101, 114, 97, 116, 111, 114, 32, 0, 111, 112, 101, 114, 97, 116, 111, 114, 32, 100, 101, 108, 101, 116, 101, 91, 93, 0, 111, 112, 101, 114, 97, 116, 111, 114, 42, 0, 111, 112, 101, 114, 97, 116, 111, 114, 32, 100, 101, 108, 101, 116, 101, 0, 111, 112, 101, 114, 97, 116, 111, 114, 47, 0, 111, 112, 101, 114, 97, 116, 111, 114, 47, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 94, 0, 111, 112, 101, 114, 97, 116, 111, 114, 94, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 61, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 62, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 62, 0, 111, 112, 101, 114, 97, 116, 111, 114, 91, 93, 0, 111, 112, 101, 114, 97, 116, 111, 114, 60, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 34, 34, 32, 0, 111, 112, 101, 114, 97, 116, 111, 114, 60, 60, 0, 111, 112, 101, 114, 97, 116, 111, 114, 60, 60, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 60, 0, 111, 112, 101, 114, 97, 116, 111, 114, 45, 0, 111, 112, 101, 114, 97, 116, 111, 114, 45, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 42, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 45, 45, 0, 111, 112, 101, 114, 97, 116, 111, 114, 32, 110, 101, 119, 91, 93, 0, 111, 112, 101, 114, 97, 116, 111, 114, 33, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 33, 0, 111, 112, 101, 114, 97, 116, 111, 114, 32, 110, 101, 119, 0, 111, 112, 101, 114, 97, 116, 111, 114, 124, 124, 0, 111, 112, 101, 114, 97, 116, 111, 114, 124, 0, 111, 112, 101, 114, 97, 116, 111, 114, 124, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 45, 62, 42, 0, 111, 112, 101, 114, 97, 116, 111, 114, 43, 0, 111, 112, 101, 114, 97, 116, 111, 114, 43, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 43, 43, 0, 111, 112, 101, 114, 97, 116, 111, 114, 45, 62, 0, 111, 112, 101, 114, 97, 116, 111, 114, 63, 0, 111, 112, 101, 114, 97, 116, 111, 114, 37, 0, 111, 112, 101, 114, 97, 116, 111, 114, 37, 61, 0, 111, 112, 101, 114, 97, 116, 111, 114, 62, 62, 0, 111, 112, 101, 114, 97, 116, 111, 114, 62, 62, 61, 0, 115, 116, 100, 58, 58, 98, 97, 115, 105, 99, 95, 115, 116, 114, 105, 110, 103, 60, 99, 104, 97, 114, 44, 32, 115, 116, 100, 58, 58, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 60, 99, 104, 97, 114, 62, 44, 32, 115, 116, 100, 58, 58, 97, 108, 108, 111, 99, 97, 116, 111, 114, 60, 99, 104, 97, 114, 62, 32, 62, 0, 98, 97, 115, 105, 99, 95, 115], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE + 5660), allocate([116, 114, 105, 110, 103, 0, 115, 116, 100, 58, 58, 98, 97, 115, 105, 99, 95, 105, 115, 116, 114, 101, 97, 109, 60, 99, 104, 97, 114, 44, 32, 115, 116, 100, 58, 58, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 60, 99, 104, 97, 114, 62, 32, 62, 0, 98, 97, 115, 105, 99, 95, 105, 115, 116, 114, 101, 97, 109, 0, 115, 116, 100, 58, 58, 98, 97, 115, 105, 99, 95, 111, 115, 116, 114, 101, 97, 109, 60, 99, 104, 97, 114, 44, 32, 115, 116, 100, 58, 58, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 60, 99, 104, 97, 114, 62, 32, 62, 0, 98, 97, 115, 105, 99, 95, 111, 115, 116, 114, 101, 97, 109, 0, 115, 116, 100, 58, 58, 98, 97, 115, 105, 99, 95, 105, 111, 115, 116, 114, 101, 97, 109, 60, 99, 104, 97, 114, 44, 32, 115, 116, 100, 58, 58, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 60, 99, 104, 97, 114, 62, 32, 62, 0, 98, 97, 115, 105, 99, 95, 105, 111, 115, 116, 114, 101, 97, 109, 0, 95, 71, 76, 79, 66, 65, 76, 95, 95, 78, 0, 40, 97, 110, 111, 110, 121, 109, 111, 117, 115, 32, 110, 97, 109, 101, 115, 112, 97, 99, 101, 41, 0, 32, 62, 0, 119, 99, 104, 97, 114, 95, 116, 0, 99, 104, 97, 114, 0, 115, 105, 103, 110, 101, 100, 32, 99, 104, 97, 114, 0, 117, 110, 115, 105, 103, 110, 101, 100, 32, 99, 104, 97, 114, 0, 115, 104, 111, 114, 116, 0, 117, 110, 115, 105, 103, 110, 101, 100, 32, 115, 104, 111, 114, 116, 0, 117, 0, 117, 108, 0, 117, 108, 108, 0, 95, 95, 105, 110, 116, 49, 50, 56, 0, 117, 110, 115, 105, 103, 110, 101, 100, 32, 95, 95, 105, 110, 116, 49, 50, 56, 0, 37, 97, 102, 0, 37, 97, 0, 37, 76, 97, 76, 0, 38, 61, 0, 61, 0, 97, 108, 105, 103, 110, 111, 102, 32, 40, 0, 99, 111, 110, 115, 116, 95, 99, 97, 115, 116, 60, 0, 62, 40, 0, 44, 0, 41, 40, 0, 100, 101, 108, 101, 116, 101, 91, 93, 32, 0, 100, 121, 110, 97, 109, 105, 99, 95, 99, 97, 115, 116, 60, 0, 100, 101, 108, 101, 116, 101, 32, 0, 46, 42, 0, 47, 0, 47, 61, 0, 94, 0, 94, 61, 0, 61, 61, 0, 62, 61, 0, 41, 91, 0, 60, 61, 0, 60, 60, 0, 60, 60, 61, 0, 45, 0, 45, 61, 0, 42, 61, 0, 45, 45, 0, 41, 45, 45, 0, 91, 93, 32, 0, 41, 32, 0, 33, 61, 0, 33, 0, 110, 111, 101, 120, 99, 101, 112, 116, 32, 40, 0, 124, 124, 0, 124, 0, 124, 61, 0, 45, 62, 42, 0, 43, 0, 43, 61, 0, 43, 43, 0, 41, 43, 43, 0, 45, 62, 0, 41, 32, 63, 32, 40, 0, 41, 32, 58, 32, 40, 0, 114, 101, 105, 110, 116, 101, 114, 112, 114, 101, 116, 95, 99, 97, 115, 116, 60, 0, 37, 0, 37, 61, 0, 62, 62, 0, 62, 62, 61, 0, 115, 116, 97, 116, 105, 99, 95, 99, 97, 115, 116, 60, 0, 115, 105, 122, 101, 111, 102, 32, 40, 0, 115, 105, 122, 101, 111, 102, 46, 46, 46, 40, 0, 116, 121, 112, 101, 105, 100, 40, 0, 116, 104, 114, 111, 119, 0, 116, 104, 114, 111, 119, 32, 0, 102, 112, 0, 33, 34, 98, 97, 115, 105, 99, 95, 115, 116, 114, 105, 110, 103, 32, 111, 117, 116, 95, 111, 102, 95, 114, 97, 110, 103, 101, 34, 0, 95, 95, 116, 104, 114, 111, 119, 95, 111, 117, 116, 95, 111, 102, 95, 114, 97, 110, 103, 101, 0, 118, 111, 105, 100, 0, 98, 111, 111, 108, 0, 105, 110, 116, 0, 117, 110, 115, 105, 103, 110, 101, 100, 32, 105, 110, 116, 0, 108, 111, 110, 103, 0, 117, 110, 115, 105, 103, 110, 101, 100, 32, 108, 111, 110, 103, 0, 108, 111, 110, 103, 32, 108, 111, 110, 103, 0, 117, 110, 115, 105, 103, 110, 101, 100, 32, 108, 111, 110, 103, 32, 108, 111, 110, 103, 0, 102, 108, 111, 97, 116, 0, 100, 111, 117, 98, 108, 101, 0, 108, 111, 110, 103, 32, 100, 111, 117, 98, 108, 101, 0, 95, 95, 102, 108, 111, 97, 116, 49, 50, 56, 0, 46, 46, 46, 0, 100, 101, 99, 105, 109, 97, 108, 54, 52, 0, 100, 101, 99, 105, 109, 97, 108, 49, 50, 56, 0, 100, 101, 99, 105, 109, 97, 108, 51, 50, 0, 100, 101, 99, 105, 109, 97, 108, 49, 54, 0, 99, 104, 97, 114, 51, 50, 95, 116, 0, 99, 104, 97, 114, 49, 54, 95, 116, 0, 97, 117, 116, 111, 0, 115, 116, 100, 58, 58, 110, 117, 108, 108, 112, 116, 114, 95, 116, 0, 118, 116, 97, 98, 108, 101, 32, 102, 111, 114, 32, 0, 86, 84, 84, 32, 102, 111, 114, 32, 0, 116, 121, 112, 101, 105, 110, 102, 111, 32, 102, 111, 114, 32, 0, 116, 121, 112, 101, 105, 110, 102, 111, 32, 110, 97, 109, 101, 32, 102, 111, 114, 32, 0, 99, 111, 118, 97, 114, 105, 97, 110, 116, 32, 114, 101, 116, 117, 114, 110, 32, 116, 104, 117, 110, 107, 32, 116, 111, 32, 0, 99, 111, 110, 115, 116, 114, 117, 99, 116, 105, 111, 110, 32, 118, 116, 97, 98, 108, 101, 32, 102, 111, 114, 32, 0, 45, 105, 110, 45, 0, 118, 105, 114, 116, 117, 97, 108, 32, 116, 104, 117, 110, 107, 32, 116, 111, 32, 0, 110, 111, 110, 45, 118, 105, 114, 116, 117, 97, 108, 32, 116, 104, 117, 110, 107, 32, 116, 111, 32, 0, 103, 117, 97, 114, 100, 32, 118, 97, 114, 105, 97, 98, 108, 101, 32, 102, 111, 114, 32, 0, 114, 101, 102, 101, 114, 101, 110, 99, 101, 32, 116, 101, 109, 112, 111, 114, 97, 114, 121, 32, 102, 111, 114, 32, 0, 116, 101, 114, 109, 105, 110, 97, 116, 105, 110, 103, 32, 119, 105, 116, 104, 32, 37, 115, 32, 101, 120, 99, 101, 112, 116, 105, 111, 110, 32, 111, 102, 32, 116, 121, 112, 101, 32, 37, 115, 58, 32, 37, 115, 0, 116, 101, 114, 109, 105, 110, 97, 116, 105, 110, 103, 32, 119, 105, 116, 104, 32, 37, 115, 32, 101, 120, 99, 101, 112, 116, 105, 111, 110, 32, 111, 102, 32, 116, 121, 112, 101, 32, 37, 115, 0, 116, 101, 114, 109, 105, 110, 97, 116, 105, 110, 103, 32, 119, 105, 116, 104, 32, 37, 115, 32, 102, 111, 114, 101, 105, 103, 110, 32, 101, 120, 99, 101, 112, 116, 105, 111, 110, 0, 116, 101, 114, 109, 105, 110, 97, 116, 105, 110, 103, 0, 117, 110, 99, 97, 117, 103, 104, 116, 0, 80, 79, 83, 73, 88, 0, 84, 33, 34, 25, 13, 1, 2, 3, 17, 75, 28, 12, 16, 4, 11, 29, 18, 30, 39, 104, 110, 111, 112, 113, 98, 32, 5, 6, 15, 19, 20, 21, 26, 8, 22, 7, 40, 36, 23, 24, 9, 10, 14, 27, 31, 37, 35, 131, 130, 125, 38, 42, 43, 60, 61, 62, 63, 67, 71, 74, 77, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 99, 100, 101, 102, 103, 105, 106, 107, 108, 114, 115, 116, 121, 122, 123, 124, 0, 73, 108, 108, 101, 103, 97, 108, 32, 98, 121, 116, 101, 32, 115, 101, 113, 117, 101, 110, 99, 101, 0, 68, 111, 109, 97, 105, 110, 32, 101, 114, 114, 111, 114, 0, 82, 101, 115, 117, 108, 116, 32, 110, 111, 116, 32, 114, 101, 112, 114, 101, 115, 101, 110, 116, 97, 98, 108, 101, 0, 78, 111, 116, 32, 97, 32, 116, 116, 121, 0, 80, 101, 114, 109, 105, 115, 115, 105, 111, 110, 32, 100, 101, 110, 105, 101, 100, 0, 79, 112, 101, 114, 97, 116, 105, 111, 110, 32, 110, 111, 116, 32, 112, 101, 114, 109, 105, 116, 116, 101, 100, 0, 78, 111, 32, 115, 117, 99, 104, 32, 102, 105, 108, 101, 32, 111, 114, 32, 100, 105, 114, 101, 99, 116, 111, 114, 121, 0, 78, 111, 32, 115, 117, 99, 104, 32, 112, 114, 111, 99, 101, 115, 115, 0, 70, 105, 108, 101, 32, 101, 120, 105, 115, 116, 115, 0, 86, 97, 108, 117, 101, 32, 116, 111, 111, 32, 108, 97, 114, 103, 101, 32, 102, 111, 114, 32, 100, 97, 116, 97, 32, 116, 121, 112, 101, 0, 78, 111, 32, 115, 112, 97, 99, 101, 32, 108, 101, 102, 116, 32, 111, 110, 32, 100, 101, 118, 105, 99, 101, 0, 79, 117, 116, 32, 111, 102, 32, 109, 101, 109, 111, 114, 121, 0, 82, 101, 115, 111, 117, 114, 99, 101, 32, 98, 117, 115, 121, 0, 73, 110, 116, 101, 114, 114, 117, 112, 116, 101, 100, 32, 115, 121, 115, 116, 101, 109, 32, 99, 97, 108, 108, 0, 82, 101, 115, 111, 117, 114, 99, 101, 32, 116, 101, 109, 112, 111, 114, 97, 114, 105, 108, 121, 32, 117, 110, 97, 118, 97, 105, 108, 97, 98, 108, 101, 0, 73, 110, 118, 97, 108, 105, 100, 32, 115, 101, 101, 107, 0, 67, 114, 111, 115, 115, 45, 100, 101, 118, 105, 99, 101, 32, 108, 105, 110, 107, 0, 82, 101, 97, 100, 45, 111, 110, 108, 121, 32, 102, 105, 108, 101, 32, 115, 121, 115, 116, 101, 109, 0, 68, 105, 114, 101, 99, 116, 111, 114, 121, 32, 110, 111, 116, 32, 101, 109, 112, 116, 121, 0, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 32, 114, 101, 115, 101, 116, 32, 98, 121, 32, 112, 101, 101, 114, 0, 79, 112, 101, 114, 97, 116, 105, 111, 110, 32, 116, 105, 109, 101, 100, 32, 111, 117, 116, 0, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 32, 114, 101, 102, 117, 115, 101, 100, 0, 72, 111, 115, 116, 32, 105, 115, 32, 100, 111, 119, 110, 0, 72, 111, 115, 116, 32, 105, 115, 32, 117, 110, 114, 101, 97, 99, 104, 97, 98, 108, 101, 0, 65, 100, 100, 114, 101, 115, 115, 32, 105, 110, 32, 117, 115, 101, 0, 66, 114, 111, 107, 101, 110, 32, 112, 105, 112, 101, 0, 73, 47, 79, 32, 101, 114, 114, 111, 114, 0, 78, 111, 32, 115, 117, 99, 104, 32, 100, 101, 118, 105, 99, 101, 32, 111, 114, 32, 97, 100, 100, 114, 101, 115, 115, 0, 66, 108, 111, 99, 107, 32, 100, 101, 118, 105, 99, 101, 32, 114, 101, 113, 117, 105, 114, 101, 100, 0, 78, 111, 32, 115, 117, 99, 104, 32, 100, 101, 118, 105, 99, 101, 0, 78, 111, 116, 32, 97, 32, 100, 105, 114, 101, 99, 116, 111, 114, 121, 0, 73, 115, 32, 97, 32, 100, 105, 114, 101, 99, 116, 111, 114, 121, 0, 84, 101, 120, 116, 32, 102, 105, 108, 101, 32, 98, 117, 115, 121, 0, 69, 120, 101, 99, 32, 102, 111, 114, 109, 97, 116, 32, 101, 114, 114, 111, 114, 0, 73, 110, 118, 97, 108, 105, 100, 32, 97, 114, 103, 117, 109, 101, 110, 116, 0, 65, 114, 103, 117, 109, 101, 110, 116, 32, 108, 105, 115, 116, 32, 116, 111, 111, 32, 108, 111, 110, 103, 0, 83, 121, 109, 98, 111, 108, 105, 99, 32, 108, 105, 110, 107, 32, 108, 111, 111, 112, 0, 70, 105, 108, 101, 110, 97, 109, 101, 32, 116, 111, 111, 32, 108, 111, 110, 103, 0, 84, 111, 111, 32, 109, 97, 110, 121, 32, 111, 112, 101, 110, 32, 102, 105, 108, 101, 115, 32, 105, 110, 32, 115, 121, 115, 116, 101, 109, 0, 78, 111, 32, 102, 105, 108, 101, 32, 100, 101, 115, 99, 114, 105, 112, 116, 111, 114, 115, 32, 97, 118, 97, 105, 108, 97, 98, 108, 101, 0, 66, 97, 100, 32, 102, 105, 108, 101, 32, 100, 101, 115, 99, 114, 105, 112, 116, 111, 114, 0, 78, 111, 32, 99, 104, 105, 108, 100, 32, 112, 114, 111, 99, 101, 115, 115, 0, 66, 97, 100, 32, 97, 100, 100, 114, 101, 115, 115, 0, 70, 105, 108, 101, 32, 116, 111, 111, 32, 108, 97, 114, 103, 101, 0, 84, 111, 111, 32, 109, 97, 110, 121, 32, 108, 105, 110, 107, 115, 0, 78, 111, 32, 108, 111, 99, 107, 115, 32, 97, 118, 97, 105, 108, 97, 98, 108, 101, 0, 82, 101, 115, 111, 117, 114, 99, 101, 32, 100, 101, 97, 100, 108, 111, 99, 107, 32, 119, 111, 117, 108, 100, 32, 111, 99, 99, 117, 114, 0, 83, 116, 97, 116, 101, 32, 110, 111, 116, 32, 114, 101, 99, 111, 118, 101, 114, 97, 98, 108, 101, 0, 80, 114, 101, 118, 105, 111, 117, 115, 32, 111, 119, 110, 101, 114, 32, 100, 105, 101, 100, 0, 79, 112, 101, 114, 97, 116, 105, 111, 110, 32, 99, 97, 110, 99, 101, 108, 101, 100, 0, 70, 117, 110, 99, 116, 105, 111, 110, 32, 110, 111, 116, 32, 105, 109, 112, 108, 101, 109, 101, 110, 116, 101, 100, 0, 78, 111, 32, 109, 101, 115, 115, 97, 103, 101, 32, 111, 102, 32, 100, 101, 115, 105, 114, 101, 100, 32, 116, 121, 112, 101, 0, 73, 100, 101, 110, 116, 105, 102, 105, 101, 114, 32, 114, 101, 109, 111, 118, 101, 100, 0, 68, 101, 118, 105, 99, 101, 32, 110, 111, 116, 32, 97, 32, 115, 116, 114, 101, 97, 109, 0, 78, 111, 32, 100, 97, 116, 97, 32, 97, 118, 97, 105, 108, 97, 98, 108, 101, 0, 68, 101, 118, 105, 99, 101, 32, 116, 105, 109, 101, 111, 117, 116, 0, 79, 117, 116, 32, 111, 102, 32, 115, 116, 114, 101, 97, 109, 115, 32, 114, 101, 115, 111, 117, 114, 99, 101, 115, 0, 76, 105, 110, 107, 32, 104, 97, 115, 32, 98, 101, 101, 110, 32, 115, 101, 118, 101, 114, 101, 100, 0, 80, 114, 111, 116, 111, 99, 111, 108, 32, 101, 114, 114, 111, 114, 0, 66, 97, 100, 32, 109, 101, 115, 115, 97, 103, 101, 0, 70, 105, 108, 101, 32, 100, 101, 115, 99, 114, 105, 112, 116, 111, 114, 32, 105, 110, 32, 98, 97, 100, 32, 115, 116, 97, 116, 101, 0, 78, 111, 116, 32, 97, 32, 115, 111, 99, 107, 101, 116, 0, 68, 101, 115, 116, 105, 110, 97, 116, 105, 111, 110, 32, 97, 100, 100, 114, 101, 115, 115, 32, 114, 101, 113, 117, 105, 114, 101, 100, 0, 77, 101, 115, 115, 97, 103, 101, 32, 116, 111, 111, 32, 108, 97, 114, 103, 101, 0, 80, 114, 111, 116, 111, 99, 111, 108, 32, 119, 114, 111, 110, 103, 32, 116, 121, 112, 101, 32, 102, 111, 114, 32, 115, 111, 99, 107, 101, 116, 0, 80, 114, 111, 116, 111, 99, 111, 108, 32, 110, 111, 116, 32, 97, 118, 97, 105, 108, 97, 98, 108, 101, 0, 80, 114, 111, 116, 111, 99, 111, 108, 32, 110, 111, 116, 32, 115, 117, 112, 112, 111, 114, 116, 101, 100, 0, 83, 111, 99, 107, 101, 116, 32, 116, 121, 112, 101, 32, 110, 111, 116, 32, 115, 117, 112, 112, 111, 114, 116, 101, 100, 0, 78, 111, 116, 32, 115, 117, 112, 112, 111, 114, 116, 101, 100, 0, 80, 114, 111, 116, 111, 99, 111, 108, 32, 102, 97, 109, 105, 108, 121, 32, 110, 111, 116, 32, 115, 117, 112, 112, 111, 114, 116, 101, 100, 0, 65, 100, 100, 114, 101, 115, 115, 32, 102, 97, 109, 105, 108, 121, 32, 110, 111, 116, 32, 115, 117, 112, 112, 111, 114, 116, 101, 100, 32, 98, 121, 32, 112, 114, 111, 116, 111, 99, 111, 108, 0, 65, 100, 100, 114, 101, 115, 115, 32, 110, 111, 116, 32, 97, 118, 97, 105, 108, 97, 98, 108, 101, 0, 78, 101, 116, 119, 111, 114, 107, 32, 105, 115, 32, 100, 111, 119, 110, 0, 78, 101, 116, 119, 111, 114, 107, 32, 117, 110, 114, 101, 97, 99, 104, 97, 98, 108, 101, 0, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 32, 114, 101, 115, 101, 116, 32, 98, 121, 32, 110, 101, 116, 119, 111, 114, 107, 0, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 32, 97, 98, 111, 114, 116, 101, 100, 0, 78, 111, 32, 98, 117, 102, 102, 101, 114, 32, 115, 112, 97, 99, 101, 32, 97, 118, 97, 105, 108, 97, 98, 108, 101, 0, 83, 111, 99, 107, 101, 116, 32, 105, 115, 32, 99, 111, 110, 110, 101, 99, 116, 101, 100, 0, 83, 111, 99, 107, 101, 116, 32, 110, 111, 116, 32, 99, 111, 110, 110, 101, 99, 116, 101, 100, 0, 67, 97, 110, 110, 111, 116, 32, 115, 101, 110, 100, 32, 97, 102, 116, 101, 114, 32, 115, 111, 99, 107, 101, 116, 32, 115, 104, 117, 116, 100, 111, 119, 110, 0, 79, 112, 101, 114, 97, 116, 105, 111, 110, 32, 97, 108, 114, 101, 97, 100, 121, 32, 105, 110, 32, 112, 114, 111, 103, 114, 101, 115, 115, 0, 79, 112, 101, 114, 97, 116, 105, 111, 110, 32, 105, 110, 32, 112, 114, 111, 103, 114, 101, 115, 115, 0, 83, 116, 97, 108, 101, 32, 102, 105, 108, 101, 32, 104, 97, 110, 100, 108, 101, 0, 82, 101, 109, 111, 116, 101, 32, 73, 47, 79, 32, 101, 114, 114, 111, 114, 0, 81, 117, 111, 116, 97, 32, 101, 120, 99, 101, 101, 100, 101, 100, 0, 78, 111, 32, 109, 101, 100, 105, 117, 109, 32, 102, 111, 117, 110, 100, 0, 87, 114, 111, 110, 103, 32, 109, 101, 100, 105, 117, 109, 32, 116, 121, 112, 101, 0, 78, 111, 32, 101, 114, 114, 111, 114, 32, 105, 110, 102, 111, 114, 109, 97, 116, 105, 111, 110, 0, 0, 105, 110, 102, 105, 110, 105, 116, 121, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 255, 255, 255, 255, 255, 255, 255, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 255, 255, 255, 255, 255, 255, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0, 1, 2, 4, 7, 3, 6, 5], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE + 15900), allocate([17, 0, 10, 0, 17, 17, 17, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 15, 10, 17, 17, 17, 3, 10, 7, 0, 1, 19, 9, 11, 11, 0, 0, 9, 6, 11, 0, 0, 11, 0, 6, 17, 0, 0, 0, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 10, 10, 17, 17, 17, 0, 10, 0, 0, 2, 0, 9, 11, 0, 0, 0, 9, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 12, 0, 0, 0, 0, 9, 12, 0, 0, 0, 0, 0, 12, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 4, 13, 0, 0, 0, 0, 9, 14, 0, 0, 0, 0, 0, 14, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 15, 0, 0, 0, 0, 9, 16, 0, 0, 0, 0, 0, 16, 0, 0, 16, 0, 0, 18, 0, 0, 0, 18, 18, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 18, 18, 18, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 10, 0, 0, 0, 0, 9, 11, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 12, 0, 0, 0, 0, 9, 12, 0, 0, 0, 0, 0, 12, 0, 0, 12, 0, 0, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 65, 66, 67, 68, 69, 70, 45, 43, 32, 32, 32, 48, 88, 48, 120, 0, 40, 110, 117, 108, 108, 41, 0, 45, 48, 88, 43, 48, 88, 32, 48, 88, 45, 48, 120, 43, 48, 120, 32, 48, 120, 0, 105, 110, 102, 0, 73, 78, 70, 0, 110, 97, 110, 0, 78, 65, 78, 0, 46, 0, 78, 83, 116, 51, 95, 95, 49, 56, 105, 111, 115, 95, 98, 97, 115, 101, 69, 0, 78, 83, 116, 51, 95, 95, 49, 57, 98, 97, 115, 105, 99, 95, 105, 111, 115, 73, 99, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 99, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 53, 98, 97, 115, 105, 99, 95, 115, 116, 114, 101, 97, 109, 98, 117, 102, 73, 99, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 99, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 51, 98, 97, 115, 105, 99, 95, 111, 115, 116, 114, 101, 97, 109, 73, 99, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 99, 69, 69, 69, 69, 0, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 97, 98, 99, 100, 101, 102, 65, 66, 67, 68, 69, 70, 120, 88, 43, 45, 112, 80, 105, 73, 110, 78, 0, 78, 83, 116, 51, 95, 95, 49, 54, 108, 111, 99, 97, 108, 101, 53, 102, 97, 99, 101, 116, 69, 0, 78, 83, 116, 51, 95, 95, 49, 53, 99, 116, 121, 112, 101, 73, 119, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 55, 99, 111, 100, 101, 99, 118, 116, 73, 99, 99, 49, 49, 95, 95, 109, 98, 115, 116, 97, 116, 101, 95, 116, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 55, 99, 111, 100, 101, 99, 118, 116, 73, 68, 115, 99, 49, 49, 95, 95, 109, 98, 115, 116, 97, 116, 101, 95, 116, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 55, 99, 111, 100, 101, 99, 118, 116, 73, 68, 105, 99, 49, 49, 95, 95, 109, 98, 115, 116, 97, 116, 101, 95, 116, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 54, 95, 95, 110, 97, 114, 114, 111, 119, 95, 116, 111, 95, 117, 116, 102, 56, 73, 76, 106, 51, 50, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 55, 95, 95, 119, 105, 100, 101, 110, 95, 102, 114, 111, 109, 95, 117, 116, 102, 56, 73, 76, 106, 51, 50, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 55, 99, 111, 100, 101, 99, 118, 116, 73, 119, 99, 49, 49, 95, 95, 109, 98, 115, 116, 97, 116, 101, 95, 116, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 54, 108, 111, 99, 97, 108, 101, 53, 95, 95, 105, 109, 112, 69, 0, 78, 83, 116, 51, 95, 95, 49, 55, 99, 111, 108, 108, 97, 116, 101, 73, 99, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 55, 99, 111, 108, 108, 97, 116, 101, 73, 119, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 53, 99, 116, 121, 112, 101, 73, 99, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 56, 110, 117, 109, 112, 117, 110, 99, 116, 73, 99, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 56, 110, 117, 109, 112, 117, 110, 99, 116, 73, 119, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 55, 110, 117, 109, 95, 103, 101, 116, 73, 99, 78, 83, 95, 49, 57, 105, 115, 116, 114, 101, 97, 109, 98, 117, 102, 95, 105, 116, 101, 114, 97, 116, 111, 114, 73, 99, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 99, 69, 69, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 55, 110, 117, 109, 95, 103, 101, 116, 73, 119, 78, 83, 95, 49, 57, 105, 115, 116, 114, 101, 97, 109, 98, 117, 102, 95, 105, 116, 101, 114, 97, 116, 111, 114, 73, 119, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 119, 69, 69, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 55, 110, 117, 109, 95, 112, 117, 116, 73, 99, 78, 83, 95, 49, 57, 111, 115, 116, 114, 101, 97, 109, 98, 117, 102, 95, 105, 116, 101, 114, 97, 116, 111, 114, 73, 99, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 99, 69, 69, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 55, 110, 117, 109, 95, 112, 117, 116, 73, 119, 78, 83, 95, 49, 57, 111, 115, 116, 114, 101, 97, 109, 98, 117, 102, 95, 105, 116, 101, 114, 97, 116, 111, 114, 73, 119, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 119, 69, 69, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 56, 116, 105, 109, 101, 95, 103, 101, 116, 73, 99, 78, 83, 95, 49, 57, 105, 115, 116, 114, 101, 97, 109, 98, 117, 102, 95, 105, 116, 101, 114, 97, 116, 111, 114, 73, 99, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 99, 69, 69, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 56, 116, 105, 109, 101, 95, 103, 101, 116, 73, 119, 78, 83, 95, 49, 57, 105, 115, 116, 114, 101, 97, 109, 98, 117, 102, 95, 105, 116, 101, 114, 97, 116, 111, 114, 73, 119, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 119, 69, 69, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 56, 116, 105, 109, 101, 95, 112, 117, 116, 73, 99, 78, 83, 95, 49, 57, 111, 115, 116, 114, 101, 97, 109, 98, 117, 102, 95, 105, 116, 101, 114, 97, 116, 111, 114, 73, 99, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 99, 69, 69, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 56, 116, 105, 109, 101, 95, 112, 117, 116, 73, 119, 78, 83, 95, 49, 57, 111, 115, 116, 114, 101, 97, 109, 98, 117, 102, 95, 105, 116, 101, 114, 97, 116, 111, 114, 73, 119, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 119, 69, 69, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 48, 109, 111, 110, 101, 121, 112, 117, 110, 99, 116, 73, 99, 76, 98, 48, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 48, 109, 111, 110, 101, 121, 112, 117, 110, 99, 116, 73, 99, 76, 98, 49, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 48, 109, 111, 110, 101, 121, 112, 117, 110, 99, 116, 73, 119, 76, 98, 48, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 48, 109, 111, 110, 101, 121, 112, 117, 110, 99, 116, 73, 119, 76, 98, 49, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 57, 109, 111, 110, 101, 121, 95, 103, 101, 116, 73, 99, 78, 83, 95, 49, 57, 105, 115, 116, 114, 101, 97, 109, 98, 117, 102, 95, 105, 116, 101, 114, 97, 116, 111, 114, 73, 99, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 99, 69, 69, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 57, 109, 111, 110, 101, 121, 95, 103, 101, 116, 73, 119, 78, 83, 95, 49, 57, 105, 115, 116, 114, 101, 97, 109, 98, 117, 102, 95, 105, 116, 101, 114, 97, 116, 111, 114, 73, 119, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 119, 69, 69, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 57, 109, 111, 110, 101, 121, 95, 112, 117, 116, 73, 99, 78, 83, 95, 49, 57, 111, 115, 116, 114, 101, 97, 109, 98, 117, 102, 95, 105, 116, 101, 114, 97, 116, 111, 114, 73, 99, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 99, 69, 69, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 57, 109, 111, 110, 101, 121, 95, 112, 117, 116, 73, 119, 78, 83, 95, 49, 57, 111, 115, 116, 114, 101, 97, 109, 98, 117, 102, 95, 105, 116, 101, 114, 97, 116, 111, 114, 73, 119, 78, 83, 95, 49, 49, 99, 104, 97, 114, 95, 116, 114, 97, 105, 116, 115, 73, 119, 69, 69, 69, 69, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 56, 109, 101, 115, 115, 97, 103, 101, 115, 73, 99, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 56, 109, 101, 115, 115, 97, 103, 101, 115, 73, 119, 69, 69, 0, 37, 112, 0, 67, 0, 37, 0, 0, 0, 0, 0, 108, 0, 108, 108, 0, 0, 76, 0, 37, 112, 0, 0, 0, 0, 37, 72, 58, 37, 77, 58, 37, 83, 37, 109, 47, 37, 100, 47, 37, 121, 37, 89, 45, 37, 109, 45, 37, 100, 37, 73, 58, 37, 77, 58, 37, 83, 32, 37, 112, 37, 72, 58, 37, 77, 37, 72, 58, 37, 77, 58, 37, 83, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 0, 37, 76, 102, 0, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 0, 37, 46, 48, 76, 102, 0, 116, 114, 117, 101, 0, 102, 97, 108, 115, 101, 0, 83, 117, 110, 100, 97, 121, 0, 77, 111, 110, 100, 97, 121, 0, 84, 117, 101, 115, 100, 97, 121, 0, 87, 101, 100, 110, 101, 115, 100, 97, 121, 0, 84, 104, 117, 114, 115, 100, 97, 121, 0, 70, 114, 105, 100, 97, 121, 0, 83, 97, 116, 117, 114, 100, 97, 121, 0, 83, 117, 110, 0, 77, 111, 110, 0, 84, 117, 101, 0, 87, 101, 100, 0, 84, 104, 117, 0, 70, 114, 105, 0, 83, 97, 116, 0, 74, 97, 110, 117, 97, 114, 121, 0, 70, 101, 98, 114, 117, 97, 114, 121, 0, 77, 97, 114, 99, 104, 0, 65, 112, 114, 105, 108, 0, 77, 97, 121, 0, 74, 117, 110, 101, 0, 74, 117, 108, 121, 0, 65, 117, 103, 117, 115, 116, 0, 83, 101, 112, 116, 101, 109, 98, 101, 114, 0, 79, 99, 116, 111, 98, 101, 114, 0, 78, 111, 118, 101, 109, 98, 101, 114, 0, 68, 101, 99, 101, 109, 98, 101, 114, 0, 74, 97, 110, 0, 70, 101, 98, 0, 77, 97, 114, 0, 65, 112, 114, 0, 74, 117, 110, 0, 74, 117, 108, 0, 65, 117, 103, 0, 83, 101, 112, 0, 79, 99, 116, 0, 78, 111, 118, 0, 68, 101, 99, 0, 65, 77, 0, 80, 77, 0, 37, 109, 47, 37, 100, 47, 37, 121, 0, 37, 72, 58, 37, 77, 58, 37, 83, 0, 37, 97, 32, 37, 98, 32, 37, 100, 32, 37, 72, 58, 37, 77, 58, 37, 83, 32, 37, 89, 0, 37, 73, 58, 37, 77, 58, 37, 83, 32, 37, 112, 0, 78, 83, 116, 51, 95, 95, 49, 49, 51, 109, 101, 115, 115, 97, 103, 101, 115, 95, 98, 97, 115, 101, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 49, 95, 95, 109, 111, 110, 101, 121, 95, 112, 117, 116, 73, 119, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 49, 95, 95, 109, 111, 110, 101, 121, 95, 112, 117, 116, 73, 99, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 49, 95, 95, 109, 111, 110, 101, 121, 95, 103, 101, 116, 73, 119, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 49, 95, 95, 109, 111, 110, 101, 121, 95, 103, 101, 116, 73, 99, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 48, 109, 111, 110, 101, 121, 95, 98, 97, 115, 101, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 48, 95, 95, 116, 105, 109, 101, 95, 112, 117, 116, 69, 0, 78, 83, 116, 51, 95, 95, 49, 50, 48, 95, 95, 116, 105, 109, 101, 95, 103, 101, 116, 95, 99, 95, 115, 116, 111, 114, 97, 103, 101, 73, 119, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 50, 48, 95, 95, 116, 105, 109, 101, 95, 103, 101, 116, 95, 99, 95, 115, 116, 111, 114, 97, 103, 101, 73, 99, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 57, 116, 105, 109, 101, 95, 98, 97, 115, 101, 69, 0, 78, 83, 116, 51, 95, 95, 49, 57, 95, 95, 110, 117, 109, 95, 112, 117, 116, 73, 119, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 52, 95, 95, 110, 117, 109, 95, 112, 117, 116, 95, 98, 97, 115, 101, 69, 0, 78, 83, 116, 51, 95, 95, 49, 57, 95, 95, 110, 117, 109, 95, 112, 117, 116, 73, 99, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 57, 95, 95, 110, 117, 109, 95, 103, 101, 116, 73, 119, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 52, 95, 95, 110, 117, 109, 95, 103, 101, 116, 95, 98, 97, 115, 101, 69, 0, 78, 83, 116, 51, 95, 95, 49, 57, 95, 95, 110, 117, 109, 95, 103, 101, 116, 73, 99, 69, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 50, 99, 111, 100, 101, 99, 118, 116, 95, 98, 97, 115, 101, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 48, 99, 116, 121, 112, 101, 95, 98, 97, 115, 101, 69, 0, 78, 83, 116, 51, 95, 95, 49, 49, 52, 95, 95, 115, 104, 97, 114, 101, 100, 95, 99, 111, 117, 110, 116, 69, 0], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE + 20305); | |
| var tempDoublePtr = Runtime.alignMemory(allocate(12, "i8", ALLOC_STATIC), 8); | |
| assert(tempDoublePtr % 8 == 0), Module._i64Subtract = _i64Subtract; | |
| var embind_charCodes = void 0, | |
| awaitingDependencies = {}, | |
| registeredTypes = {}, | |
| typeDependencies = {}, | |
| char_0 = 48, | |
| char_9 = 57, | |
| BindingError = void 0, | |
| InternalError = void 0, | |
| EXCEPTIONS = { | |
| last: 0, | |
| caught: [], | |
| infos: {}, | |
| deAdjust: function (e) { | |
| if (!e || EXCEPTIONS.infos[e]) return e; | |
| for (var t in EXCEPTIONS.infos) { | |
| if (EXCEPTIONS.infos[t].adjusted === e) return t | |
| } | |
| return e | |
| }, | |
| addRef: function (e) { | |
| if (e) { | |
| EXCEPTIONS.infos[e].refcount++ | |
| } | |
| }, | |
| decRef: function (e) { | |
| if (e) { | |
| var t = EXCEPTIONS.infos[e]; | |
| assert(t.refcount > 0), t.refcount--, 0 === t.refcount && (t.destructor && Runtime.dynCall("vi", t.destructor, [e]), delete EXCEPTIONS.infos[e], ___cxa_free_exception(e)) | |
| } | |
| }, | |
| clearRef: function (e) { | |
| if (e) { | |
| EXCEPTIONS.infos[e].refcount = 0 | |
| } | |
| } | |
| }; | |
| Module._memset = _memset; | |
| var _BDtoILow = !0, | |
| __MONTH_DAYS_LEAP = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], | |
| __MONTH_DAYS_REGULAR = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; | |
| Module._free = _free, Module._malloc = _malloc; | |
| var PTHREAD_SPECIFIC = {}, | |
| ERRNO_CODES = { | |
| EPERM: 1, | |
| ENOENT: 2, | |
| ESRCH: 3, | |
| EINTR: 4, | |
| EIO: 5, | |
| ENXIO: 6, | |
| E2BIG: 7, | |
| ENOEXEC: 8, | |
| EBADF: 9, | |
| ECHILD: 10, | |
| EAGAIN: 11, | |
| EWOULDBLOCK: 11, | |
| ENOMEM: 12, | |
| EACCES: 13, | |
| EFAULT: 14, | |
| ENOTBLK: 15, | |
| EBUSY: 16, | |
| EEXIST: 17, | |
| EXDEV: 18, | |
| ENODEV: 19, | |
| ENOTDIR: 20, | |
| EISDIR: 21, | |
| EINVAL: 22, | |
| ENFILE: 23, | |
| EMFILE: 24, | |
| ENOTTY: 25, | |
| ETXTBSY: 26, | |
| EFBIG: 27, | |
| ENOSPC: 28, | |
| ESPIPE: 29, | |
| EROFS: 30, | |
| EMLINK: 31, | |
| EPIPE: 32, | |
| EDOM: 33, | |
| ERANGE: 34, | |
| ENOMSG: 42, | |
| EIDRM: 43, | |
| ECHRNG: 44, | |
| EL2NSYNC: 45, | |
| EL3HLT: 46, | |
| EL3RST: 47, | |
| ELNRNG: 48, | |
| EUNATCH: 49, | |
| ENOCSI: 50, | |
| EL2HLT: 51, | |
| EDEADLK: 35, | |
| ENOLCK: 37, | |
| EBADE: 52, | |
| EBADR: 53, | |
| EXFULL: 54, | |
| ENOANO: 55, | |
| EBADRQC: 56, | |
| EBADSLT: 57, | |
| EDEADLOCK: 35, | |
| EBFONT: 59, | |
| ENOSTR: 60, | |
| ENODATA: 61, | |
| ETIME: 62, | |
| ENOSR: 63, | |
| ENONET: 64, | |
| ENOPKG: 65, | |
| EREMOTE: 66, | |
| ENOLINK: 67, | |
| EADV: 68, | |
| ESRMNT: 69, | |
| ECOMM: 70, | |
| EPROTO: 71, | |
| EMULTIHOP: 72, | |
| EDOTDOT: 73, | |
| EBADMSG: 74, | |
| ENOTUNIQ: 76, | |
| EBADFD: 77, | |
| EREMCHG: 78, | |
| ELIBACC: 79, | |
| ELIBBAD: 80, | |
| ELIBSCN: 81, | |
| ELIBMAX: 82, | |
| ELIBEXEC: 83, | |
| ENOSYS: 38, | |
| ENOTEMPTY: 39, | |
| ENAMETOOLONG: 36, | |
| ELOOP: 40, | |
| EOPNOTSUPP: 95, | |
| EPFNOSUPPORT: 96, | |
| ECONNRESET: 104, | |
| ENOBUFS: 105, | |
| EAFNOSUPPORT: 97, | |
| EPROTOTYPE: 91, | |
| ENOTSOCK: 88, | |
| ENOPROTOOPT: 92, | |
| ESHUTDOWN: 108, | |
| ECONNREFUSED: 111, | |
| EADDRINUSE: 98, | |
| ECONNABORTED: 103, | |
| ENETUNREACH: 101, | |
| ENETDOWN: 100, | |
| ETIMEDOUT: 110, | |
| EHOSTDOWN: 112, | |
| EHOSTUNREACH: 113, | |
| EINPROGRESS: 115, | |
| EALREADY: 114, | |
| EDESTADDRREQ: 89, | |
| EMSGSIZE: 90, | |
| EPROTONOSUPPORT: 93, | |
| ESOCKTNOSUPPORT: 94, | |
| EADDRNOTAVAIL: 99, | |
| ENETRESET: 102, | |
| EISCONN: 106, | |
| ENOTCONN: 107, | |
| ETOOMANYREFS: 109, | |
| EUSERS: 87, | |
| EDQUOT: 122, | |
| ESTALE: 116, | |
| ENOTSUP: 95, | |
| ENOMEDIUM: 123, | |
| EILSEQ: 84, | |
| EOVERFLOW: 75, | |
| ECANCELED: 125, | |
| ENOTRECOVERABLE: 131, | |
| EOWNERDEAD: 130, | |
| ESTRPIPE: 86 | |
| }, | |
| _fabs = Math_abs, | |
| PTHREAD_SPECIFIC_NEXT_KEY = 1, | |
| ERRNO_MESSAGES = { | |
| 0: "Success", | |
| 1: "Not super-user", | |
| 2: "No such file or directory", | |
| 3: "No such process", | |
| 4: "Interrupted system call", | |
| 5: "I/O error", | |
| 6: "No such device or address", | |
| 7: "Arg list too long", | |
| 8: "Exec format error", | |
| 9: "Bad file number", | |
| 10: "No children", | |
| 11: "No more processes", | |
| 12: "Not enough core", | |
| 13: "Permission denied", | |
| 14: "Bad address", | |
| 15: "Block device required", | |
| 16: "Mount device busy", | |
| 17: "File exists", | |
| 18: "Cross-device link", | |
| 19: "No such device", | |
| 20: "Not a directory", | |
| 21: "Is a directory", | |
| 22: "Invalid argument", | |
| 23: "Too many open files in system", | |
| 24: "Too many open files", | |
| 25: "Not a typewriter", | |
| 26: "Text file busy", | |
| 27: "File too large", | |
| 28: "No space left on device", | |
| 29: "Illegal seek", | |
| 30: "Read only file system", | |
| 31: "Too many links", | |
| 32: "Broken pipe", | |
| 33: "Math arg out of domain of func", | |
| 34: "Math result not representable", | |
| 35: "File locking deadlock error", | |
| 36: "File or path name too long", | |
| 37: "No record locks available", | |
| 38: "Function not implemented", | |
| 39: "Directory not empty", | |
| 40: "Too many symbolic links", | |
| 42: "No message of desired type", | |
| 43: "Identifier removed", | |
| 44: "Channel number out of range", | |
| 45: "Level 2 not synchronized", | |
| 46: "Level 3 halted", | |
| 47: "Level 3 reset", | |
| 48: "Link number out of range", | |
| 49: "Protocol driver not attached", | |
| 50: "No CSI structure available", | |
| 51: "Level 2 halted", | |
| 52: "Invalid exchange", | |
| 53: "Invalid request descriptor", | |
| 54: "Exchange full", | |
| 55: "No anode", | |
| 56: "Invalid request code", | |
| 57: "Invalid slot", | |
| 59: "Bad font file fmt", | |
| 60: "Device not a stream", | |
| 61: "No data (for no delay io)", | |
| 62: "Timer expired", | |
| 63: "Out of streams resources", | |
| 64: "Machine is not on the network", | |
| 65: "Package not installed", | |
| 66: "The object is remote", | |
| 67: "The link has been severed", | |
| 68: "Advertise error", | |
| 69: "Srmount error", | |
| 70: "Communication error on send", | |
| 71: "Protocol error", | |
| 72: "Multihop attempted", | |
| 73: "Cross mount point (not really error)", | |
| 74: "Trying to read unreadable message", | |
| 75: "Value too large for defined data type", | |
| 76: "Given log. name not unique", | |
| 77: "f.d. invalid for this operation", | |
| 78: "Remote address changed", | |
| 79: "Can access a needed shared lib", | |
| 80: "Accessing a corrupted shared lib", | |
| 81: ".lib section in a.out corrupted", | |
| 82: "Attempting to link in too many libs", | |
| 83: "Attempting to exec a shared library", | |
| 84: "Illegal byte sequence", | |
| 86: "Streams pipe error", | |
| 87: "Too many users", | |
| 88: "Socket operation on non-socket", | |
| 89: "Destination address required", | |
| 90: "Message too long", | |
| 91: "Protocol wrong type for socket", | |
| 92: "Protocol not available", | |
| 93: "Unknown protocol", | |
| 94: "Socket type not supported", | |
| 95: "Not supported", | |
| 96: "Protocol family not supported", | |
| 97: "Address family not supported by protocol family", | |
| 98: "Address already in use", | |
| 99: "Address not available", | |
| 100: "Network interface is not configured", | |
| 101: "Network is unreachable", | |
| 102: "Connection reset by network", | |
| 103: "Connection aborted", | |
| 104: "Connection reset by peer", | |
| 105: "No buffer space available", | |
| 106: "Socket is already connected", | |
| 107: "Socket is not connected", | |
| 108: "Can't send after socket shutdown", | |
| 109: "Too many references", | |
| 110: "Connection timed out", | |
| 111: "Connection refused", | |
| 112: "Host is down", | |
| 113: "Host is unreachable", | |
| 114: "Socket already connected", | |
| 115: "Connection already in progress", | |
| 116: "Stale file handle", | |
| 122: "Quota exceeded", | |
| 123: "No medium (in tape drive)", | |
| 125: "Operation canceled", | |
| 130: "Previous owner died", | |
| 131: "State not recoverable" | |
| }, | |
| TTY = { | |
| ttys: [], | |
| init: function () {}, | |
| shutdown: function () {}, | |
| register: function (e, t) { | |
| TTY.ttys[e] = { | |
| input: [], | |
| output: [], | |
| ops: t | |
| }, FS.registerDevice(e, TTY.stream_ops) | |
| }, | |
| stream_ops: { | |
| open: function (e) { | |
| var t = TTY.ttys[e.node.rdev]; | |
| if (!t) throw new FS.ErrnoError(ERRNO_CODES.ENODEV); | |
| e.tty = t, e.seekable = !1 | |
| }, | |
| close: function (e) { | |
| e.tty.ops.flush(e.tty) | |
| }, | |
| flush: function (e) { | |
| e.tty.ops.flush(e.tty) | |
| }, | |
| read: function (e, t, n, r, i) { | |
| if (!e.tty || !e.tty.ops.get_char) throw new FS.ErrnoError(ERRNO_CODES.ENXIO); | |
| for (var a = 0, o = 0; o < r; o++) { | |
| var s; | |
| try { | |
| s = e.tty.ops.get_char(e.tty) | |
| } catch (e) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EIO) | |
| } | |
| if (void 0 === s && 0 === a) throw new FS.ErrnoError(ERRNO_CODES.EAGAIN); | |
| if (null === s || void 0 === s) break; | |
| a++, t[n + o] = s | |
| } | |
| return a && (e.node.timestamp = Date.now()), a | |
| }, | |
| write: function (e, t, n, r, i) { | |
| if (!e.tty || !e.tty.ops.put_char) throw new FS.ErrnoError(ERRNO_CODES.ENXIO); | |
| for (var a = 0; a < r; a++) try { | |
| e.tty.ops.put_char(e.tty, t[n + a]) | |
| } catch (e) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EIO) | |
| } | |
| return r && (e.node.timestamp = Date.now()), a | |
| } | |
| }, | |
| default_tty_ops: { | |
| get_char: function (e) { | |
| if (!e.input.length) { | |
| var t = null; | |
| if (ENVIRONMENT_IS_NODE) { | |
| var n = new Buffer(256), | |
| r = 0, | |
| i = process.stdin.fd, | |
| a = !1; | |
| try { | |
| i = fs.openSync("/dev/stdin", "r"), a = !0 | |
| } catch (e) {} | |
| r = fs.readSync(i, n, 0, 256, null), a && fs.closeSync(i), t = r > 0 ? n.slice(0, r).toString("utf-8") : null | |
| } else "undefined" != typeof window && "function" == typeof window.prompt ? null !== (t = window.prompt("Input: ")) && (t += "\n") : "function" == typeof readline && null !== (t = readline()) && (t += "\n"); | |
| if (!t) return null; | |
| e.input = intArrayFromString(t, !0) | |
| } | |
| return e.input.shift() | |
| }, | |
| put_char: function (e, t) { | |
| null === t || 10 === t ? (Module.print(UTF8ArrayToString(e.output, 0)), e.output = []) : 0 != t && e.output.push(t) | |
| }, | |
| flush: function (e) { | |
| e.output && e.output.length > 0 && (Module.print(UTF8ArrayToString(e.output, 0)), e.output = []) | |
| } | |
| }, | |
| default_tty1_ops: { | |
| put_char: function (e, t) { | |
| null === t || 10 === t ? (Module.printErr(UTF8ArrayToString(e.output, 0)), e.output = []) : 0 != t && e.output.push(t) | |
| }, | |
| flush: function (e) { | |
| e.output && e.output.length > 0 && (Module.printErr(UTF8ArrayToString(e.output, 0)), e.output = []) | |
| } | |
| } | |
| }, | |
| MEMFS = { | |
| ops_table: null, | |
| mount: function (e) { | |
| return MEMFS.createNode(null, "/", 16895, 0) | |
| }, | |
| createNode: function (e, t, n, r) { | |
| if (FS.isBlkdev(n) || FS.isFIFO(n)) throw new FS.ErrnoError(ERRNO_CODES.EPERM); | |
| MEMFS.ops_table || (MEMFS.ops_table = { | |
| dir: { | |
| node: { | |
| getattr: MEMFS.node_ops.getattr, | |
| setattr: MEMFS.node_ops.setattr, | |
| lookup: MEMFS.node_ops.lookup, | |
| mknod: MEMFS.node_ops.mknod, | |
| rename: MEMFS.node_ops.rename, | |
| unlink: MEMFS.node_ops.unlink, | |
| rmdir: MEMFS.node_ops.rmdir, | |
| readdir: MEMFS.node_ops.readdir, | |
| symlink: MEMFS.node_ops.symlink | |
| }, | |
| stream: { | |
| llseek: MEMFS.stream_ops.llseek | |
| } | |
| }, | |
| file: { | |
| node: { | |
| getattr: MEMFS.node_ops.getattr, | |
| setattr: MEMFS.node_ops.setattr | |
| }, | |
| stream: { | |
| llseek: MEMFS.stream_ops.llseek, | |
| read: MEMFS.stream_ops.read, | |
| write: MEMFS.stream_ops.write, | |
| allocate: MEMFS.stream_ops.allocate, | |
| mmap: MEMFS.stream_ops.mmap, | |
| msync: MEMFS.stream_ops.msync | |
| } | |
| }, | |
| link: { | |
| node: { | |
| getattr: MEMFS.node_ops.getattr, | |
| setattr: MEMFS.node_ops.setattr, | |
| readlink: MEMFS.node_ops.readlink | |
| }, | |
| stream: {} | |
| }, | |
| chrdev: { | |
| node: { | |
| getattr: MEMFS.node_ops.getattr, | |
| setattr: MEMFS.node_ops.setattr | |
| }, | |
| stream: FS.chrdev_stream_ops | |
| } | |
| }); | |
| var i = FS.createNode(e, t, n, r); | |
| return FS.isDir(i.mode) ? (i.node_ops = MEMFS.ops_table.dir.node, i.stream_ops = MEMFS.ops_table.dir.stream, i.contents = {}) : FS.isFile(i.mode) ? (i.node_ops = MEMFS.ops_table.file.node, i.stream_ops = MEMFS.ops_table.file.stream, i.usedBytes = 0, i.contents = null) : FS.isLink(i.mode) ? (i.node_ops = MEMFS.ops_table.link.node, i.stream_ops = MEMFS.ops_table.link.stream) : FS.isChrdev(i.mode) && (i.node_ops = MEMFS.ops_table.chrdev.node, i.stream_ops = MEMFS.ops_table.chrdev.stream), i.timestamp = Date.now(), e && (e.contents[t] = i), i | |
| }, | |
| getFileDataAsRegularArray: function (e) { | |
| if (e.contents && e.contents.subarray) { | |
| for (var t = [], n = 0; n < e.usedBytes; ++n) t.push(e.contents[n]); | |
| return t | |
| } | |
| return e.contents | |
| }, | |
| getFileDataAsTypedArray: function (e) { | |
| return e.contents ? e.contents.subarray ? e.contents.subarray(0, e.usedBytes) : new Uint8Array(e.contents) : new Uint8Array | |
| }, | |
| expandFileStorage: function (e, t) { | |
| if (e.contents && e.contents.subarray && t > e.contents.length && (e.contents = MEMFS.getFileDataAsRegularArray(e), e.usedBytes = e.contents.length), !e.contents || e.contents.subarray) { | |
| var n = e.contents ? e.contents.buffer.byteLength : 0; | |
| if (n >= t) return; | |
| t = Math.max(t, n * (n < 1048576 ? 2 : 1.125) | 0), 0 != n && (t = Math.max(t, 256)); | |
| var r = e.contents; | |
| return e.contents = new Uint8Array(t), void(e.usedBytes > 0 && e.contents.set(r.subarray(0, e.usedBytes), 0)) | |
| } | |
| for (!e.contents && t > 0 && (e.contents = []); e.contents.length < t;) e.contents.push(0) | |
| }, | |
| resizeFileStorage: function (e, t) { | |
| if (e.usedBytes != t) { | |
| if (0 == t) return e.contents = null, void(e.usedBytes = 0); | |
| if (!e.contents || e.contents.subarray) { | |
| var n = e.contents; | |
| return e.contents = new Uint8Array(new ArrayBuffer(t)), n && e.contents.set(n.subarray(0, Math.min(t, e.usedBytes))), void(e.usedBytes = t) | |
| } | |
| if (e.contents || (e.contents = []), e.contents.length > t) e.contents.length = t; | |
| else | |
| for (; e.contents.length < t;) e.contents.push(0); | |
| e.usedBytes = t | |
| } | |
| }, | |
| node_ops: { | |
| getattr: function (e) { | |
| var t = {}; | |
| return t.dev = FS.isChrdev(e.mode) ? e.id : 1, t.ino = e.id, t.mode = e.mode, t.nlink = 1, t.uid = 0, t.gid = 0, t.rdev = e.rdev, FS.isDir(e.mode) ? t.size = 4096 : FS.isFile(e.mode) ? t.size = e.usedBytes : FS.isLink(e.mode) ? t.size = e.link.length : t.size = 0, t.atime = new Date(e.timestamp), t.mtime = new Date(e.timestamp), t.ctime = new Date(e.timestamp), t.blksize = 4096, t.blocks = Math.ceil(t.size / t.blksize), t | |
| }, | |
| setattr: function (e, t) { | |
| void 0 !== t.mode && (e.mode = t.mode), void 0 !== t.timestamp && (e.timestamp = t.timestamp), void 0 !== t.size && MEMFS.resizeFileStorage(e, t.size) | |
| }, | |
| lookup: function (e, t) { | |
| throw FS.genericErrors[ERRNO_CODES.ENOENT] | |
| }, | |
| mknod: function (e, t, n, r) { | |
| return MEMFS.createNode(e, t, n, r) | |
| }, | |
| rename: function (e, t, n) { | |
| if (FS.isDir(e.mode)) { | |
| var r; | |
| try { | |
| r = FS.lookupNode(t, n) | |
| } catch (e) {} | |
| if (r) | |
| for (var i in r.contents) throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY) | |
| } | |
| delete e.parent.contents[e.name], e.name = n, t.contents[n] = e, e.parent = t | |
| }, | |
| unlink: function (e, t) { | |
| delete e.contents[t] | |
| }, | |
| rmdir: function (e, t) { | |
| var n = FS.lookupNode(e, t); | |
| for (var r in n.contents) throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY); | |
| delete e.contents[t] | |
| }, | |
| readdir: function (e) { | |
| var t = [".", ".."]; | |
| for (var n in e.contents) e.contents.hasOwnProperty(n) && t.push(n); | |
| return t | |
| }, | |
| symlink: function (e, t, n) { | |
| var r = MEMFS.createNode(e, t, 41471, 0); | |
| return r.link = n, r | |
| }, | |
| readlink: function (e) { | |
| if (!FS.isLink(e.mode)) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| return e.link | |
| } | |
| }, | |
| stream_ops: { | |
| read: function (e, t, n, r, i) { | |
| var a = e.node.contents; | |
| if (i >= e.node.usedBytes) return 0; | |
| var o = Math.min(e.node.usedBytes - i, r); | |
| if (assert(o >= 0), o > 8 && a.subarray) t.set(a.subarray(i, i + o), n); | |
| else | |
| for (var s = 0; s < o; s++) t[n + s] = a[i + s]; | |
| return o | |
| }, | |
| write: function (e, t, n, r, i, a) { | |
| if (!r) return 0; | |
| var o = e.node; | |
| if (o.timestamp = Date.now(), t.subarray && (!o.contents || o.contents.subarray)) { | |
| if (a) return o.contents = t.subarray(n, n + r), o.usedBytes = r, r; | |
| if (0 === o.usedBytes && 0 === i) return o.contents = new Uint8Array(t.subarray(n, n + r)), o.usedBytes = r, r; | |
| if (i + r <= o.usedBytes) return o.contents.set(t.subarray(n, n + r), i), r | |
| } | |
| if (MEMFS.expandFileStorage(o, i + r), o.contents.subarray && t.subarray) o.contents.set(t.subarray(n, n + r), i); | |
| else | |
| for (var s = 0; s < r; s++) o.contents[i + s] = t[n + s]; | |
| return o.usedBytes = Math.max(o.usedBytes, i + r), r | |
| }, | |
| llseek: function (e, t, n) { | |
| var r = t; | |
| if (1 === n ? r += e.position : 2 === n && FS.isFile(e.node.mode) && (r += e.node.usedBytes), r < 0) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| return r | |
| }, | |
| allocate: function (e, t, n) { | |
| MEMFS.expandFileStorage(e.node, t + n), e.node.usedBytes = Math.max(e.node.usedBytes, t + n) | |
| }, | |
| mmap: function (e, t, n, r, i, a, o) { | |
| if (!FS.isFile(e.node.mode)) throw new FS.ErrnoError(ERRNO_CODES.ENODEV); | |
| var s, l, u = e.node.contents; | |
| if (2 & o || u.buffer !== t && u.buffer !== t.buffer) { | |
| if ((i > 0 || i + r < e.node.usedBytes) && (u = u.subarray ? u.subarray(i, i + r) : Array.prototype.slice.call(u, i, i + r)), l = !0, !(s = _malloc(r))) throw new FS.ErrnoError(ERRNO_CODES.ENOMEM); | |
| t.set(u, s) | |
| } else l = !1, s = u.byteOffset; | |
| return { | |
| ptr: s, | |
| allocated: l | |
| } | |
| }, | |
| msync: function (e, t, n, r, i) { | |
| if (!FS.isFile(e.node.mode)) throw new FS.ErrnoError(ERRNO_CODES.ENODEV); | |
| if (2 & i) return 0; | |
| MEMFS.stream_ops.write(e, t, 0, r, n, !1); | |
| return 0 | |
| } | |
| } | |
| }, | |
| IDBFS = { | |
| dbs: {}, | |
| indexedDB: function (e) { | |
| function t() { | |
| return e.apply(this, arguments) | |
| } | |
| return t.toString = function () { | |
| return e.toString() | |
| }, t | |
| }(function () { | |
| if ("undefined" != typeof indexedDB) return indexedDB; | |
| var e = null; | |
| return "object" === ("undefined" == typeof window ? "undefined" : _typeof(window)) && (e = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB), assert(e, "IDBFS used, but indexedDB not supported"), e | |
| }), | |
| DB_VERSION: 21, | |
| DB_STORE_NAME: "FILE_DATA", | |
| mount: function (e) { | |
| return MEMFS.mount.apply(null, arguments) | |
| }, | |
| syncfs: function (e, t, n) { | |
| IDBFS.getLocalSet(e, function (r, i) { | |
| if (r) return n(r); | |
| IDBFS.getRemoteSet(e, function (e, r) { | |
| if (e) return n(e); | |
| var a = t ? r : i, | |
| o = t ? i : r; | |
| IDBFS.reconcile(a, o, n) | |
| }) | |
| }) | |
| }, | |
| getDB: function (e, t) { | |
| var n = IDBFS.dbs[e]; | |
| if (n) return t(null, n); | |
| var r; | |
| try { | |
| r = IDBFS.indexedDB().open(e, IDBFS.DB_VERSION) | |
| } catch (e) { | |
| return t(e) | |
| } | |
| r.onupgradeneeded = function (e) { | |
| var t, n = e.target.result, | |
| r = e.target.transaction; | |
| t = n.objectStoreNames.contains(IDBFS.DB_STORE_NAME) ? r.objectStore(IDBFS.DB_STORE_NAME) : n.createObjectStore(IDBFS.DB_STORE_NAME), t.indexNames.contains("timestamp") || t.createIndex("timestamp", "timestamp", { | |
| unique: !1 | |
| }) | |
| }, r.onsuccess = function () { | |
| n = r.result, IDBFS.dbs[e] = n, t(null, n) | |
| }, r.onerror = function (e) { | |
| t(this.error), e.preventDefault() | |
| } | |
| }, | |
| getLocalSet: function (e, t) { | |
| function n(e) { | |
| return "." !== e && ".." !== e | |
| } | |
| function r(e) { | |
| return function (t) { | |
| return PATH.join2(e, t) | |
| } | |
| } | |
| for (var i = {}, a = FS.readdir(e.mountpoint).filter(n).map(r(e.mountpoint)); a.length;) { | |
| var o, s = a.pop(); | |
| try { | |
| o = FS.stat(s) | |
| } catch (e) { | |
| return t(e) | |
| } | |
| FS.isDir(o.mode) && a.push.apply(a, FS.readdir(s).filter(n).map(r(s))), i[s] = { | |
| timestamp: o.mtime | |
| } | |
| } | |
| return t(null, { | |
| type: "local", | |
| entries: i | |
| }) | |
| }, | |
| getRemoteSet: function (e, t) { | |
| var n = {}; | |
| IDBFS.getDB(e.mountpoint, function (e, r) { | |
| if (e) return t(e); | |
| var i = r.transaction([IDBFS.DB_STORE_NAME], "readonly"); | |
| i.onerror = function (e) { | |
| t(this.error), e.preventDefault() | |
| }, i.objectStore(IDBFS.DB_STORE_NAME).index("timestamp").openKeyCursor().onsuccess = function (e) { | |
| var i = e.target.result; | |
| if (!i) return t(null, { | |
| type: "remote", | |
| db: r, | |
| entries: n | |
| }); | |
| n[i.primaryKey] = { | |
| timestamp: i.key | |
| }, i.continue() | |
| } | |
| }) | |
| }, | |
| loadLocalEntry: function (e, t) { | |
| var n, r; | |
| try { | |
| r = FS.lookupPath(e).node, n = FS.stat(e) | |
| } catch (e) { | |
| return t(e) | |
| } | |
| return FS.isDir(n.mode) ? t(null, { | |
| timestamp: n.mtime, | |
| mode: n.mode | |
| }) : FS.isFile(n.mode) ? (r.contents = MEMFS.getFileDataAsTypedArray(r), t(null, { | |
| timestamp: n.mtime, | |
| mode: n.mode, | |
| contents: r.contents | |
| })) : t(new Error("node type not supported")) | |
| }, | |
| storeLocalEntry: function (e, t, n) { | |
| try { | |
| if (FS.isDir(t.mode)) FS.mkdir(e, t.mode); | |
| else { | |
| if (!FS.isFile(t.mode)) return n(new Error("node type not supported")); | |
| FS.writeFile(e, t.contents, { | |
| encoding: "binary", | |
| canOwn: !0 | |
| }) | |
| } | |
| FS.chmod(e, t.mode), FS.utime(e, t.timestamp, t.timestamp) | |
| } catch (e) { | |
| return n(e) | |
| } | |
| n(null) | |
| }, | |
| removeLocalEntry: function (e, t) { | |
| try { | |
| var n = (FS.lookupPath(e), FS.stat(e)); | |
| FS.isDir(n.mode) ? FS.rmdir(e) : FS.isFile(n.mode) && FS.unlink(e) | |
| } catch (e) { | |
| return t(e) | |
| } | |
| t(null) | |
| }, | |
| loadRemoteEntry: function (e, t, n) { | |
| var r = e.get(t); | |
| r.onsuccess = function (e) { | |
| n(null, e.target.result) | |
| }, r.onerror = function (e) { | |
| n(this.error), e.preventDefault() | |
| } | |
| }, | |
| storeRemoteEntry: function (e, t, n, r) { | |
| var i = e.put(n, t); | |
| i.onsuccess = function () { | |
| r(null) | |
| }, i.onerror = function (e) { | |
| r(this.error), e.preventDefault() | |
| } | |
| }, | |
| removeRemoteEntry: function (e, t, n) { | |
| var r = e.delete(t); | |
| r.onsuccess = function () { | |
| n(null) | |
| }, r.onerror = function (e) { | |
| n(this.error), e.preventDefault() | |
| } | |
| }, | |
| reconcile: function (e, t, n) { | |
| function r(e) { | |
| if (e) { | |
| if (!r.errored) return r.errored = !0, n(e) | |
| } else if (++s >= i) return n(null) | |
| } | |
| var i = 0, | |
| a = []; | |
| Object.keys(e.entries).forEach(function (n) { | |
| var r = e.entries[n], | |
| o = t.entries[n]; | |
| (!o || r.timestamp > o.timestamp) && (a.push(n), i++) | |
| }); | |
| var o = []; | |
| if (Object.keys(t.entries).forEach(function (n) { | |
| t.entries[n]; | |
| e.entries[n] || (o.push(n), i++) | |
| }), !i) return n(null); | |
| var s = 0, | |
| l = "remote" === e.type ? e.db : t.db, | |
| u = l.transaction([IDBFS.DB_STORE_NAME], "readwrite"), | |
| c = u.objectStore(IDBFS.DB_STORE_NAME); | |
| u.onerror = function (e) { | |
| r(this.error), e.preventDefault() | |
| }, a.sort().forEach(function (e) { | |
| "local" === t.type ? IDBFS.loadRemoteEntry(c, e, function (t, n) { | |
| if (t) return r(t); | |
| IDBFS.storeLocalEntry(e, n, r) | |
| }) : IDBFS.loadLocalEntry(e, function (t, n) { | |
| if (t) return r(t); | |
| IDBFS.storeRemoteEntry(c, e, n, r) | |
| }) | |
| }), o.sort().reverse().forEach(function (e) { | |
| "local" === t.type ? IDBFS.removeLocalEntry(e, r) : IDBFS.removeRemoteEntry(c, e, r) | |
| }) | |
| } | |
| }, | |
| NODEFS = { | |
| isWindows: !1, | |
| staticInit: function () { | |
| NODEFS.isWindows = !!process.platform.match(/^win/) | |
| }, | |
| mount: function (e) { | |
| return assert(ENVIRONMENT_IS_NODE), NODEFS.createNode(null, "/", NODEFS.getMode(e.opts.root), 0) | |
| }, | |
| createNode: function (e, t, n, r) { | |
| if (!FS.isDir(n) && !FS.isFile(n) && !FS.isLink(n)) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| var i = FS.createNode(e, t, n); | |
| return i.node_ops = NODEFS.node_ops, i.stream_ops = NODEFS.stream_ops, i | |
| }, | |
| getMode: function (e) { | |
| var t; | |
| try { | |
| t = fs.lstatSync(e), NODEFS.isWindows && (t.mode = t.mode | (146 & t.mode) >> 1) | |
| } catch (e) { | |
| if (!e.code) throw e; | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| return t.mode | |
| }, | |
| realPath: function (e) { | |
| for (var t = []; e.parent !== e;) t.push(e.name), e = e.parent; | |
| return t.push(e.mount.opts.root), t.reverse(), PATH.join.apply(null, t) | |
| }, | |
| flagsToPermissionStringMap: { | |
| 0: "r", | |
| 1: "r+", | |
| 2: "r+", | |
| 64: "r", | |
| 65: "r+", | |
| 66: "r+", | |
| 129: "rx+", | |
| 193: "rx+", | |
| 514: "w+", | |
| 577: "w", | |
| 578: "w+", | |
| 705: "wx", | |
| 706: "wx+", | |
| 1024: "a", | |
| 1025: "a", | |
| 1026: "a+", | |
| 1089: "a", | |
| 1090: "a+", | |
| 1153: "ax", | |
| 1154: "ax+", | |
| 1217: "ax", | |
| 1218: "ax+", | |
| 4096: "rs", | |
| 4098: "rs+" | |
| }, | |
| flagsToPermissionString: function (e) { | |
| if (e &= -32769, (e &= -524289) in NODEFS.flagsToPermissionStringMap) return NODEFS.flagsToPermissionStringMap[e]; | |
| throw new FS.ErrnoError(ERRNO_CODES.EINVAL) | |
| }, | |
| node_ops: { | |
| getattr: function (e) { | |
| var t, n = NODEFS.realPath(e); | |
| try { | |
| t = fs.lstatSync(n) | |
| } catch (e) { | |
| if (!e.code) throw e; | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| return NODEFS.isWindows && !t.blksize && (t.blksize = 4096), NODEFS.isWindows && !t.blocks && (t.blocks = (t.size + t.blksize - 1) / t.blksize | 0), { | |
| dev: t.dev, | |
| ino: t.ino, | |
| mode: t.mode, | |
| nlink: t.nlink, | |
| uid: t.uid, | |
| gid: t.gid, | |
| rdev: t.rdev, | |
| size: t.size, | |
| atime: t.atime, | |
| mtime: t.mtime, | |
| ctime: t.ctime, | |
| blksize: t.blksize, | |
| blocks: t.blocks | |
| } | |
| }, | |
| setattr: function (e, t) { | |
| var n = NODEFS.realPath(e); | |
| try { | |
| if (void 0 !== t.mode && (fs.chmodSync(n, t.mode), e.mode = t.mode), void 0 !== t.timestamp) { | |
| var r = new Date(t.timestamp); | |
| fs.utimesSync(n, r, r) | |
| } | |
| void 0 !== t.size && fs.truncateSync(n, t.size) | |
| } catch (e) { | |
| if (!e.code) throw e; | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| }, | |
| lookup: function (e, t) { | |
| var n = PATH.join2(NODEFS.realPath(e), t), | |
| r = NODEFS.getMode(n); | |
| return NODEFS.createNode(e, t, r) | |
| }, | |
| mknod: function (e, t, n, r) { | |
| var i = NODEFS.createNode(e, t, n, r), | |
| a = NODEFS.realPath(i); | |
| try { | |
| FS.isDir(i.mode) ? fs.mkdirSync(a, i.mode) : fs.writeFileSync(a, "", { | |
| mode: i.mode | |
| }) | |
| } catch (e) { | |
| if (!e.code) throw e; | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| return i | |
| }, | |
| rename: function (e, t, n) { | |
| var r = NODEFS.realPath(e), | |
| i = PATH.join2(NODEFS.realPath(t), n); | |
| try { | |
| fs.renameSync(r, i) | |
| } catch (e) { | |
| if (!e.code) throw e; | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| }, | |
| unlink: function (e, t) { | |
| var n = PATH.join2(NODEFS.realPath(e), t); | |
| try { | |
| fs.unlinkSync(n) | |
| } catch (e) { | |
| if (!e.code) throw e; | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| }, | |
| rmdir: function (e, t) { | |
| var n = PATH.join2(NODEFS.realPath(e), t); | |
| try { | |
| fs.rmdirSync(n) | |
| } catch (e) { | |
| if (!e.code) throw e; | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| }, | |
| readdir: function (e) { | |
| var t = NODEFS.realPath(e); | |
| try { | |
| return fs.readdirSync(t) | |
| } catch (e) { | |
| if (!e.code) throw e; | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| }, | |
| symlink: function (e, t, n) { | |
| var r = PATH.join2(NODEFS.realPath(e), t); | |
| try { | |
| fs.symlinkSync(n, r) | |
| } catch (e) { | |
| if (!e.code) throw e; | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| }, | |
| readlink: function (e) { | |
| var t = NODEFS.realPath(e); | |
| try { | |
| return t = fs.readlinkSync(t), t = NODEJS_PATH.relative(NODEJS_PATH.resolve(e.mount.opts.root), t) | |
| } catch (e) { | |
| if (!e.code) throw e; | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| } | |
| }, | |
| stream_ops: { | |
| open: function (e) { | |
| var t = NODEFS.realPath(e.node); | |
| try { | |
| FS.isFile(e.node.mode) && (e.nfd = fs.openSync(t, NODEFS.flagsToPermissionString(e.flags))) | |
| } catch (e) { | |
| if (!e.code) throw e; | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| }, | |
| close: function (e) { | |
| try { | |
| FS.isFile(e.node.mode) && e.nfd && fs.closeSync(e.nfd) | |
| } catch (e) { | |
| if (!e.code) throw e; | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| }, | |
| read: function (e, t, n, r, i) { | |
| if (0 === r) return 0; | |
| var a, o = new Buffer(r); | |
| try { | |
| a = fs.readSync(e.nfd, o, 0, r, i) | |
| } catch (e) { | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| if (a > 0) | |
| for (var s = 0; s < a; s++) t[n + s] = o[s]; | |
| return a | |
| }, | |
| write: function (e, t, n, r, i) { | |
| var a, o = new Buffer(t.subarray(n, n + r)); | |
| try { | |
| a = fs.writeSync(e.nfd, o, 0, r, i) | |
| } catch (e) { | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| return a | |
| }, | |
| llseek: function (e, t, n) { | |
| var r = t; | |
| if (1 === n) r += e.position; | |
| else if (2 === n && FS.isFile(e.node.mode)) try { | |
| var i = fs.fstatSync(e.nfd); | |
| r += i.size | |
| } catch (e) { | |
| throw new FS.ErrnoError(ERRNO_CODES[e.code]) | |
| } | |
| if (r < 0) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| return r | |
| } | |
| } | |
| }, | |
| WORKERFS = { | |
| DIR_MODE: 16895, | |
| FILE_MODE: 33279, | |
| reader: null, | |
| mount: function (e) { | |
| function t(e) { | |
| for (var t = e.split("/"), n = r, a = 0; a < t.length - 1; a++) { | |
| var o = t.slice(0, a + 1).join("/"); | |
| i[o] || (i[o] = WORKERFS.createNode(n, o, WORKERFS.DIR_MODE, 0)), n = i[o] | |
| } | |
| return n | |
| } | |
| function n(e) { | |
| var t = e.split("/"); | |
| return t[t.length - 1] | |
| } | |
| assert(ENVIRONMENT_IS_WORKER), WORKERFS.reader || (WORKERFS.reader = new FileReaderSync); | |
| var r = WORKERFS.createNode(null, "/", WORKERFS.DIR_MODE, 0), | |
| i = {}; | |
| return Array.prototype.forEach.call(e.opts.files || [], function (e) { | |
| WORKERFS.createNode(t(e.name), n(e.name), WORKERFS.FILE_MODE, 0, e, e.lastModifiedDate) | |
| }), (e.opts.blobs || []).forEach(function (e) { | |
| WORKERFS.createNode(t(e.name), n(e.name), WORKERFS.FILE_MODE, 0, e.data) | |
| }), (e.opts.packages || []).forEach(function (e) { | |
| e.metadata.files.forEach(function (r) { | |
| var i = r.filename.substr(1); | |
| WORKERFS.createNode(t(i), n(i), WORKERFS.FILE_MODE, 0, e.blob.slice(r.start, r.end)) | |
| }) | |
| }), r | |
| }, | |
| createNode: function (e, t, n, r, i, a) { | |
| var o = FS.createNode(e, t, n); | |
| return o.mode = n, o.node_ops = WORKERFS.node_ops, o.stream_ops = WORKERFS.stream_ops, o.timestamp = (a || new Date).getTime(), assert(WORKERFS.FILE_MODE !== WORKERFS.DIR_MODE), n === WORKERFS.FILE_MODE ? (o.size = i.size, o.contents = i) : (o.size = 4096, o.contents = {}), e && (e.contents[t] = o), o | |
| }, | |
| node_ops: { | |
| getattr: function (e) { | |
| return { | |
| dev: 1, | |
| ino: void 0, | |
| mode: e.mode, | |
| nlink: 1, | |
| uid: 0, | |
| gid: 0, | |
| rdev: void 0, | |
| size: e.size, | |
| atime: new Date(e.timestamp), | |
| mtime: new Date(e.timestamp), | |
| ctime: new Date(e.timestamp), | |
| blksize: 4096, | |
| blocks: Math.ceil(e.size / 4096) | |
| } | |
| }, | |
| setattr: function (e, t) { | |
| void 0 !== t.mode && (e.mode = t.mode), void 0 !== t.timestamp && (e.timestamp = t.timestamp) | |
| }, | |
| lookup: function (e, t) { | |
| throw new FS.ErrnoError(ERRNO_CODES.ENOENT) | |
| }, | |
| mknod: function (e, t, n, r) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EPERM) | |
| }, | |
| rename: function (e, t, n) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EPERM) | |
| }, | |
| unlink: function (e, t) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EPERM) | |
| }, | |
| rmdir: function (e, t) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EPERM) | |
| }, | |
| readdir: function (e) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EPERM) | |
| }, | |
| symlink: function (e, t, n) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EPERM) | |
| }, | |
| readlink: function (e) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EPERM) | |
| } | |
| }, | |
| stream_ops: { | |
| read: function (e, t, n, r, i) { | |
| if (i >= e.node.size) return 0; | |
| var a = e.node.contents.slice(i, i + r), | |
| o = WORKERFS.reader.readAsArrayBuffer(a); | |
| return t.set(new Uint8Array(o), n), a.size | |
| }, | |
| write: function (e, t, n, r, i) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EIO) | |
| }, | |
| llseek: function (e, t, n) { | |
| var r = t; | |
| if (1 === n ? r += e.position : 2 === n && FS.isFile(e.node.mode) && (r += e.node.size), r < 0) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| return r | |
| } | |
| } | |
| }, | |
| _stdin = allocate(1, "i32*", ALLOC_STATIC), | |
| _stdout = allocate(1, "i32*", ALLOC_STATIC), | |
| _stderr = allocate(1, "i32*", ALLOC_STATIC), | |
| FS = { | |
| root: null, | |
| mounts: [], | |
| devices: [null], | |
| streams: [], | |
| nextInode: 1, | |
| nameTable: null, | |
| currentPath: "/", | |
| initialized: !1, | |
| ignorePermissions: !0, | |
| trackingDelegate: {}, | |
| tracking: { | |
| openFlags: { | |
| READ: 1, | |
| WRITE: 2 | |
| } | |
| }, | |
| ErrnoError: null, | |
| genericErrors: {}, | |
| filesystems: null, | |
| handleFSError: function (e) { | |
| if (!(e instanceof FS.ErrnoError)) throw e + " : " + stackTrace(); | |
| return ___setErrNo(e.errno) | |
| }, | |
| lookupPath: function (e, t) { | |
| if (e = PATH.resolve(FS.cwd(), e), t = t || {}, !e) return { | |
| path: "", | |
| node: null | |
| }; | |
| var n = { | |
| follow_mount: !0, | |
| recurse_count: 0 | |
| }; | |
| for (var r in n) void 0 === t[r] && (t[r] = n[r]); | |
| if (t.recurse_count > 8) throw new FS.ErrnoError(ERRNO_CODES.ELOOP); | |
| for (var i = PATH.normalizeArray(e.split("/").filter(function (e) { | |
| return !!e | |
| }), !1), a = FS.root, o = "/", s = 0; s < i.length; s++) { | |
| var l = s === i.length - 1; | |
| if (l && t.parent) break; | |
| if (a = FS.lookupNode(a, i[s]), o = PATH.join2(o, i[s]), FS.isMountpoint(a) && (!l || l && t.follow_mount) && (a = a.mounted.root), !l || t.follow) | |
| for (var u = 0; FS.isLink(a.mode);) { | |
| var c = FS.readlink(o); | |
| o = PATH.resolve(PATH.dirname(o), c); | |
| var f = FS.lookupPath(o, { | |
| recurse_count: t.recurse_count | |
| }); | |
| if (a = f.node, u++ > 40) throw new FS.ErrnoError(ERRNO_CODES.ELOOP) | |
| } | |
| } | |
| return { | |
| path: o, | |
| node: a | |
| } | |
| }, | |
| getPath: function (e) { | |
| for (var t;;) { | |
| if (FS.isRoot(e)) { | |
| var n = e.mount.mountpoint; | |
| return t ? "/" !== n[n.length - 1] ? n + "/" + t : n + t : n | |
| } | |
| t = t ? e.name + "/" + t : e.name, e = e.parent | |
| } | |
| }, | |
| hashName: function (e, t) { | |
| for (var n = 0, r = 0; r < t.length; r++) n = (n << 5) - n + t.charCodeAt(r) | 0; | |
| return (e + n >>> 0) % FS.nameTable.length | |
| }, | |
| hashAddNode: function (e) { | |
| var t = FS.hashName(e.parent.id, e.name); | |
| e.name_next = FS.nameTable[t], FS.nameTable[t] = e | |
| }, | |
| hashRemoveNode: function (e) { | |
| var t = FS.hashName(e.parent.id, e.name); | |
| if (FS.nameTable[t] === e) FS.nameTable[t] = e.name_next; | |
| else | |
| for (var n = FS.nameTable[t]; n;) { | |
| if (n.name_next === e) { | |
| n.name_next = e.name_next; | |
| break | |
| } | |
| n = n.name_next | |
| } | |
| }, | |
| lookupNode: function (e, t) { | |
| var n = FS.mayLookup(e); | |
| if (n) throw new FS.ErrnoError(n, e); | |
| for (var r = FS.hashName(e.id, t), i = FS.nameTable[r]; i; i = i.name_next) { | |
| var a = i.name; | |
| if (i.parent.id === e.id && a === t) return i | |
| } | |
| return FS.lookup(e, t) | |
| }, | |
| createNode: function (e, t, n, r) { | |
| if (!FS.FSNode) { | |
| FS.FSNode = function (e, t, n, r) { | |
| e || (e = this), this.parent = e, this.mount = e.mount, this.mounted = null, this.id = FS.nextInode++, this.name = t, this.mode = n, this.node_ops = {}, this.stream_ops = {}, this.rdev = r | |
| }, FS.FSNode.prototype = {}; | |
| Object.defineProperties(FS.FSNode.prototype, { | |
| read: { | |
| get: function () { | |
| return 365 == (365 & this.mode) | |
| }, | |
| set: function (e) { | |
| e ? this.mode |= 365 : this.mode &= -366 | |
| } | |
| }, | |
| write: { | |
| get: function () { | |
| return 146 == (146 & this.mode) | |
| }, | |
| set: function (e) { | |
| e ? this.mode |= 146 : this.mode &= -147 | |
| } | |
| }, | |
| isFolder: { | |
| get: function () { | |
| return FS.isDir(this.mode) | |
| } | |
| }, | |
| isDevice: { | |
| get: function () { | |
| return FS.isChrdev(this.mode) | |
| } | |
| } | |
| }) | |
| } | |
| var i = new FS.FSNode(e, t, n, r); | |
| return FS.hashAddNode(i), i | |
| }, | |
| destroyNode: function (e) { | |
| FS.hashRemoveNode(e) | |
| }, | |
| isRoot: function (e) { | |
| return e === e.parent | |
| }, | |
| isMountpoint: function (e) { | |
| return !!e.mounted | |
| }, | |
| isFile: function (e) { | |
| return 32768 == (61440 & e) | |
| }, | |
| isDir: function (e) { | |
| return 16384 == (61440 & e) | |
| }, | |
| isLink: function (e) { | |
| return 40960 == (61440 & e) | |
| }, | |
| isChrdev: function (e) { | |
| return 8192 == (61440 & e) | |
| }, | |
| isBlkdev: function (e) { | |
| return 24576 == (61440 & e) | |
| }, | |
| isFIFO: function (e) { | |
| return 4096 == (61440 & e) | |
| }, | |
| isSocket: function (e) { | |
| return 49152 == (49152 & e) | |
| }, | |
| flagModes: { | |
| r: 0, | |
| rs: 1052672, | |
| "r+": 2, | |
| w: 577, | |
| wx: 705, | |
| xw: 705, | |
| "w+": 578, | |
| "wx+": 706, | |
| "xw+": 706, | |
| a: 1089, | |
| ax: 1217, | |
| xa: 1217, | |
| "a+": 1090, | |
| "ax+": 1218, | |
| "xa+": 1218 | |
| }, | |
| modeStringToFlags: function (e) { | |
| var t = FS.flagModes[e]; | |
| if (void 0 === t) throw new Error("Unknown file open mode: " + e); | |
| return t | |
| }, | |
| flagsToPermissionString: function (e) { | |
| var t = ["r", "w", "rw"][3 & e]; | |
| return 512 & e && (t += "w"), t | |
| }, | |
| nodePermissions: function (e, t) { | |
| return FS.ignorePermissions ? 0 : (-1 === t.indexOf("r") || 292 & e.mode) && (-1 === t.indexOf("w") || 146 & e.mode) && (-1 === t.indexOf("x") || 73 & e.mode) ? 0 : ERRNO_CODES.EACCES | |
| }, | |
| mayLookup: function (e) { | |
| var t = FS.nodePermissions(e, "x"); | |
| return t || (e.node_ops.lookup ? 0 : ERRNO_CODES.EACCES) | |
| }, | |
| mayCreate: function (e, t) { | |
| try { | |
| FS.lookupNode(e, t); | |
| return ERRNO_CODES.EEXIST | |
| } catch (e) {} | |
| return FS.nodePermissions(e, "wx") | |
| }, | |
| mayDelete: function (e, t, n) { | |
| var r; | |
| try { | |
| r = FS.lookupNode(e, t) | |
| } catch (e) { | |
| return e.errno | |
| } | |
| var i = FS.nodePermissions(e, "wx"); | |
| if (i) return i; | |
| if (n) { | |
| if (!FS.isDir(r.mode)) return ERRNO_CODES.ENOTDIR; | |
| if (FS.isRoot(r) || FS.getPath(r) === FS.cwd()) return ERRNO_CODES.EBUSY | |
| } else if (FS.isDir(r.mode)) return ERRNO_CODES.EISDIR; | |
| return 0 | |
| }, | |
| mayOpen: function (e, t) { | |
| return e ? FS.isLink(e.mode) ? ERRNO_CODES.ELOOP : FS.isDir(e.mode) && (0 != (2097155 & t) || 512 & t) ? ERRNO_CODES.EISDIR : FS.nodePermissions(e, FS.flagsToPermissionString(t)) : ERRNO_CODES.ENOENT | |
| }, | |
| MAX_OPEN_FDS: 4096, | |
| nextfd: function (e, t) { | |
| e = e || 0, t = t || FS.MAX_OPEN_FDS; | |
| for (var n = e; n <= t; n++) | |
| if (!FS.streams[n]) return n; | |
| throw new FS.ErrnoError(ERRNO_CODES.EMFILE) | |
| }, | |
| getStream: function (e) { | |
| return FS.streams[e] | |
| }, | |
| createStream: function (e, t, n) { | |
| FS.FSStream || (FS.FSStream = function () {}, FS.FSStream.prototype = {}, Object.defineProperties(FS.FSStream.prototype, { | |
| object: { | |
| get: function () { | |
| return this.node | |
| }, | |
| set: function (e) { | |
| this.node = e | |
| } | |
| }, | |
| isRead: { | |
| get: function () { | |
| return 1 != (2097155 & this.flags) | |
| } | |
| }, | |
| isWrite: { | |
| get: function () { | |
| return 0 != (2097155 & this.flags) | |
| } | |
| }, | |
| isAppend: { | |
| get: function () { | |
| return 1024 & this.flags | |
| } | |
| } | |
| })); | |
| var r = new FS.FSStream; | |
| for (var i in e) r[i] = e[i]; | |
| e = r; | |
| var a = FS.nextfd(t, n); | |
| return e.fd = a, FS.streams[a] = e, e | |
| }, | |
| closeStream: function (e) { | |
| FS.streams[e] = null | |
| }, | |
| chrdev_stream_ops: { | |
| open: function (e) { | |
| var t = FS.getDevice(e.node.rdev); | |
| e.stream_ops = t.stream_ops, e.stream_ops.open && e.stream_ops.open(e) | |
| }, | |
| llseek: function () { | |
| throw new FS.ErrnoError(ERRNO_CODES.ESPIPE) | |
| } | |
| }, | |
| major: function (e) { | |
| return e >> 8 | |
| }, | |
| minor: function (e) { | |
| return 255 & e | |
| }, | |
| makedev: function (e, t) { | |
| return e << 8 | t | |
| }, | |
| registerDevice: function (e, t) { | |
| FS.devices[e] = { | |
| stream_ops: t | |
| } | |
| }, | |
| getDevice: function (e) { | |
| return FS.devices[e] | |
| }, | |
| getMounts: function (e) { | |
| for (var t = [], n = [e]; n.length;) { | |
| var r = n.pop(); | |
| t.push(r), n.push.apply(n, r.mounts) | |
| } | |
| return t | |
| }, | |
| syncfs: function (e, t) { | |
| function n(e) { | |
| if (e) { | |
| if (!n.errored) return n.errored = !0, t(e) | |
| } else ++i >= r.length && t(null) | |
| } | |
| "function" == typeof e && (t = e, e = !1); | |
| var r = FS.getMounts(FS.root.mount), | |
| i = 0; | |
| r.forEach(function (t) { | |
| if (!t.type.syncfs) return n(null); | |
| t.type.syncfs(t, e, n) | |
| }) | |
| }, | |
| mount: function (e, t, n) { | |
| var r, i = "/" === n, | |
| a = !n; | |
| if (i && FS.root) throw new FS.ErrnoError(ERRNO_CODES.EBUSY); | |
| if (!i && !a) { | |
| var o = FS.lookupPath(n, { | |
| follow_mount: !1 | |
| }); | |
| if (n = o.path, r = o.node, FS.isMountpoint(r)) throw new FS.ErrnoError(ERRNO_CODES.EBUSY); | |
| if (!FS.isDir(r.mode)) throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR) | |
| } | |
| var s = { | |
| type: e, | |
| opts: t, | |
| mountpoint: n, | |
| mounts: [] | |
| }, | |
| l = e.mount(s); | |
| return l.mount = s, s.root = l, i ? FS.root = l : r && (r.mounted = s, r.mount && r.mount.mounts.push(s)), l | |
| }, | |
| unmount: function (e) { | |
| var t = FS.lookupPath(e, { | |
| follow_mount: !1 | |
| }); | |
| if (!FS.isMountpoint(t.node)) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| var n = t.node, | |
| r = n.mounted, | |
| i = FS.getMounts(r); | |
| Object.keys(FS.nameTable).forEach(function (e) { | |
| for (var t = FS.nameTable[e]; t;) { | |
| var n = t.name_next; - 1 !== i.indexOf(t.mount) && FS.destroyNode(t), t = n | |
| } | |
| }), n.mounted = null; | |
| var a = n.mount.mounts.indexOf(r); | |
| assert(-1 !== a), n.mount.mounts.splice(a, 1) | |
| }, | |
| lookup: function (e, t) { | |
| return e.node_ops.lookup(e, t) | |
| }, | |
| mknod: function (e, t, n) { | |
| var r = FS.lookupPath(e, { | |
| parent: !0 | |
| }), | |
| i = r.node, | |
| a = PATH.basename(e); | |
| if (!a || "." === a || ".." === a) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| var o = FS.mayCreate(i, a); | |
| if (o) throw new FS.ErrnoError(o); | |
| if (!i.node_ops.mknod) throw new FS.ErrnoError(ERRNO_CODES.EPERM); | |
| return i.node_ops.mknod(i, a, t, n) | |
| }, | |
| create: function (e, t) { | |
| return t = void 0 !== t ? t : 438, t &= 4095, t |= 32768, FS.mknod(e, t, 0) | |
| }, | |
| mkdir: function (e, t) { | |
| return t = void 0 !== t ? t : 511, t &= 1023, t |= 16384, FS.mknod(e, t, 0) | |
| }, | |
| mkdev: function (e, t, n) { | |
| return void 0 === n && (n = t, t = 438), t |= 8192, FS.mknod(e, t, n) | |
| }, | |
| symlink: function (e, t) { | |
| if (!PATH.resolve(e)) throw new FS.ErrnoError(ERRNO_CODES.ENOENT); | |
| var n = FS.lookupPath(t, { | |
| parent: !0 | |
| }), | |
| r = n.node; | |
| if (!r) throw new FS.ErrnoError(ERRNO_CODES.ENOENT); | |
| var i = PATH.basename(t), | |
| a = FS.mayCreate(r, i); | |
| if (a) throw new FS.ErrnoError(a); | |
| if (!r.node_ops.symlink) throw new FS.ErrnoError(ERRNO_CODES.EPERM); | |
| return r.node_ops.symlink(r, i, e) | |
| }, | |
| rename: function (e, t) { | |
| var n, r, i, a = PATH.dirname(e), | |
| o = PATH.dirname(t), | |
| s = PATH.basename(e), | |
| l = PATH.basename(t); | |
| try { | |
| n = FS.lookupPath(e, { | |
| parent: !0 | |
| }), r = n.node, n = FS.lookupPath(t, { | |
| parent: !0 | |
| }), i = n.node | |
| } catch (e) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EBUSY) | |
| } | |
| if (!r || !i) throw new FS.ErrnoError(ERRNO_CODES.ENOENT); | |
| if (r.mount !== i.mount) throw new FS.ErrnoError(ERRNO_CODES.EXDEV); | |
| var u = FS.lookupNode(r, s), | |
| c = PATH.relative(e, o); | |
| if ("." !== c.charAt(0)) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| if (c = PATH.relative(t, a), "." !== c.charAt(0)) throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY); | |
| var f; | |
| try { | |
| f = FS.lookupNode(i, l) | |
| } catch (e) {} | |
| if (u !== f) { | |
| var d = FS.isDir(u.mode), | |
| p = FS.mayDelete(r, s, d); | |
| if (p) throw new FS.ErrnoError(p); | |
| if (p = f ? FS.mayDelete(i, l, d) : FS.mayCreate(i, l)) throw new FS.ErrnoError(p); | |
| if (!r.node_ops.rename) throw new FS.ErrnoError(ERRNO_CODES.EPERM); | |
| if (FS.isMountpoint(u) || f && FS.isMountpoint(f)) throw new FS.ErrnoError(ERRNO_CODES.EBUSY); | |
| if (i !== r && (p = FS.nodePermissions(r, "w"))) throw new FS.ErrnoError(p); | |
| try { | |
| FS.trackingDelegate.willMovePath && FS.trackingDelegate.willMovePath(e, t) | |
| } catch (e) {} | |
| FS.hashRemoveNode(u); | |
| try { | |
| r.node_ops.rename(u, i, l) | |
| } catch (e) { | |
| throw e | |
| } finally { | |
| FS.hashAddNode(u) | |
| } | |
| try { | |
| FS.trackingDelegate.onMovePath && FS.trackingDelegate.onMovePath(e, t) | |
| } catch (e) {} | |
| } | |
| }, | |
| rmdir: function (e) { | |
| var t = FS.lookupPath(e, { | |
| parent: !0 | |
| }), | |
| n = t.node, | |
| r = PATH.basename(e), | |
| i = FS.lookupNode(n, r), | |
| a = FS.mayDelete(n, r, !0); | |
| if (a) throw new FS.ErrnoError(a); | |
| if (!n.node_ops.rmdir) throw new FS.ErrnoError(ERRNO_CODES.EPERM); | |
| if (FS.isMountpoint(i)) throw new FS.ErrnoError(ERRNO_CODES.EBUSY); | |
| try { | |
| FS.trackingDelegate.willDeletePath && FS.trackingDelegate.willDeletePath(e) | |
| } catch (e) {} | |
| n.node_ops.rmdir(n, r), FS.destroyNode(i); | |
| try { | |
| FS.trackingDelegate.onDeletePath && FS.trackingDelegate.onDeletePath(e) | |
| } catch (e) {} | |
| }, | |
| readdir: function (e) { | |
| var t = FS.lookupPath(e, { | |
| follow: !0 | |
| }), | |
| n = t.node; | |
| if (!n.node_ops.readdir) throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR); | |
| return n.node_ops.readdir(n) | |
| }, | |
| unlink: function (e) { | |
| var t = FS.lookupPath(e, { | |
| parent: !0 | |
| }), | |
| n = t.node, | |
| r = PATH.basename(e), | |
| i = FS.lookupNode(n, r), | |
| a = FS.mayDelete(n, r, !1); | |
| if (a) throw a === ERRNO_CODES.EISDIR && (a = ERRNO_CODES.EPERM), new FS.ErrnoError(a); | |
| if (!n.node_ops.unlink) throw new FS.ErrnoError(ERRNO_CODES.EPERM); | |
| if (FS.isMountpoint(i)) throw new FS.ErrnoError(ERRNO_CODES.EBUSY); | |
| try { | |
| FS.trackingDelegate.willDeletePath && FS.trackingDelegate.willDeletePath(e) | |
| } catch (e) {} | |
| n.node_ops.unlink(n, r), FS.destroyNode(i); | |
| try { | |
| FS.trackingDelegate.onDeletePath && FS.trackingDelegate.onDeletePath(e) | |
| } catch (e) {} | |
| }, | |
| readlink: function (e) { | |
| var t = FS.lookupPath(e), | |
| n = t.node; | |
| if (!n) throw new FS.ErrnoError(ERRNO_CODES.ENOENT); | |
| if (!n.node_ops.readlink) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| return PATH.resolve(FS.getPath(n.parent), n.node_ops.readlink(n)) | |
| }, | |
| stat: function (e, t) { | |
| var n = FS.lookupPath(e, { | |
| follow: !t | |
| }), | |
| r = n.node; | |
| if (!r) throw new FS.ErrnoError(ERRNO_CODES.ENOENT); | |
| if (!r.node_ops.getattr) throw new FS.ErrnoError(ERRNO_CODES.EPERM); | |
| return r.node_ops.getattr(r) | |
| }, | |
| lstat: function (e) { | |
| return FS.stat(e, !0) | |
| }, | |
| chmod: function (e, t, n) { | |
| var r; | |
| if ("string" == typeof e) { | |
| r = FS.lookupPath(e, { | |
| follow: !n | |
| }).node | |
| } else r = e; | |
| if (!r.node_ops.setattr) throw new FS.ErrnoError(ERRNO_CODES.EPERM); | |
| r.node_ops.setattr(r, { | |
| mode: 4095 & t | -4096 & r.mode, | |
| timestamp: Date.now() | |
| }) | |
| }, | |
| lchmod: function (e, t) { | |
| FS.chmod(e, t, !0) | |
| }, | |
| fchmod: function (e, t) { | |
| var n = FS.getStream(e); | |
| if (!n) throw new FS.ErrnoError(ERRNO_CODES.EBADF); | |
| FS.chmod(n.node, t) | |
| }, | |
| chown: function (e, t, n, r) { | |
| var i; | |
| if ("string" == typeof e) { | |
| i = FS.lookupPath(e, { | |
| follow: !r | |
| }).node | |
| } else i = e; | |
| if (!i.node_ops.setattr) throw new FS.ErrnoError(ERRNO_CODES.EPERM); | |
| i.node_ops.setattr(i, { | |
| timestamp: Date.now() | |
| }) | |
| }, | |
| lchown: function (e, t, n) { | |
| FS.chown(e, t, n, !0) | |
| }, | |
| fchown: function (e, t, n) { | |
| var r = FS.getStream(e); | |
| if (!r) throw new FS.ErrnoError(ERRNO_CODES.EBADF); | |
| FS.chown(r.node, t, n) | |
| }, | |
| truncate: function (e, t) { | |
| if (t < 0) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| var n; | |
| if ("string" == typeof e) { | |
| n = FS.lookupPath(e, { | |
| follow: !0 | |
| }).node | |
| } else n = e; | |
| if (!n.node_ops.setattr) throw new FS.ErrnoError(ERRNO_CODES.EPERM); | |
| if (FS.isDir(n.mode)) throw new FS.ErrnoError(ERRNO_CODES.EISDIR); | |
| if (!FS.isFile(n.mode)) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| var r = FS.nodePermissions(n, "w"); | |
| if (r) throw new FS.ErrnoError(r); | |
| n.node_ops.setattr(n, { | |
| size: t, | |
| timestamp: Date.now() | |
| }) | |
| }, | |
| ftruncate: function (e, t) { | |
| var n = FS.getStream(e); | |
| if (!n) throw new FS.ErrnoError(ERRNO_CODES.EBADF); | |
| if (0 == (2097155 & n.flags)) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| FS.truncate(n.node, t) | |
| }, | |
| utime: function (e, t, n) { | |
| var r = FS.lookupPath(e, { | |
| follow: !0 | |
| }), | |
| i = r.node; | |
| i.node_ops.setattr(i, { | |
| timestamp: Math.max(t, n) | |
| }) | |
| }, | |
| open: function (e, t, n, r, i) { | |
| if ("" === e) throw new FS.ErrnoError(ERRNO_CODES.ENOENT); | |
| t = "string" == typeof t ? FS.modeStringToFlags(t) : t, n = void 0 === n ? 438 : n, n = 64 & t ? 4095 & n | 32768 : 0; | |
| var a; | |
| if ("object" === (void 0 === e ? "undefined" : _typeof(e))) a = e; | |
| else { | |
| e = PATH.normalize(e); | |
| try { | |
| a = FS.lookupPath(e, { | |
| follow: !(131072 & t) | |
| }).node | |
| } catch (e) {} | |
| } | |
| var o = !1; | |
| if (64 & t) | |
| if (a) { | |
| if (128 & t) throw new FS.ErrnoError(ERRNO_CODES.EEXIST) | |
| } else a = FS.mknod(e, n, 0), o = !0; | |
| if (!a) throw new FS.ErrnoError(ERRNO_CODES.ENOENT); | |
| if (FS.isChrdev(a.mode) && (t &= -513), 65536 & t && !FS.isDir(a.mode)) throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR); | |
| if (!o) { | |
| var s = FS.mayOpen(a, t); | |
| if (s) throw new FS.ErrnoError(s) | |
| } | |
| 512 & t && FS.truncate(a, 0), t &= -641; | |
| var l = FS.createStream({ | |
| node: a, | |
| path: FS.getPath(a), | |
| flags: t, | |
| seekable: !0, | |
| position: 0, | |
| stream_ops: a.stream_ops, | |
| ungotten: [], | |
| error: !1 | |
| }, r, i); | |
| l.stream_ops.open && l.stream_ops.open(l), !Module.logReadFiles || 1 & t || (FS.readFiles || (FS.readFiles = {}), e in FS.readFiles || (FS.readFiles[e] = 1, Module.printErr("read file: " + e))); | |
| try { | |
| if (FS.trackingDelegate.onOpenFile) { | |
| var u = 0; | |
| 1 != (2097155 & t) && (u |= FS.tracking.openFlags.READ), 0 != (2097155 & t) && (u |= FS.tracking.openFlags.WRITE), FS.trackingDelegate.onOpenFile(e, u) | |
| } | |
| } catch (e) {} | |
| return l | |
| }, | |
| close: function (e) { | |
| e.getdents && (e.getdents = null); | |
| try { | |
| e.stream_ops.close && e.stream_ops.close(e) | |
| } catch (e) { | |
| throw e | |
| } finally { | |
| FS.closeStream(e.fd) | |
| } | |
| }, | |
| llseek: function (e, t, n) { | |
| if (!e.seekable || !e.stream_ops.llseek) throw new FS.ErrnoError(ERRNO_CODES.ESPIPE); | |
| return e.position = e.stream_ops.llseek(e, t, n), e.ungotten = [], e.position | |
| }, | |
| read: function (e, t, n, r, i) { | |
| if (r < 0 || i < 0) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| if (1 == (2097155 & e.flags)) throw new FS.ErrnoError(ERRNO_CODES.EBADF); | |
| if (FS.isDir(e.node.mode)) throw new FS.ErrnoError(ERRNO_CODES.EISDIR); | |
| if (!e.stream_ops.read) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| var a = !0; | |
| if (void 0 === i) i = e.position, a = !1; | |
| else if (!e.seekable) throw new FS.ErrnoError(ERRNO_CODES.ESPIPE); | |
| var o = e.stream_ops.read(e, t, n, r, i); | |
| return a || (e.position += o), o | |
| }, | |
| write: function (e, t, n, r, i, a) { | |
| if (r < 0 || i < 0) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| if (0 == (2097155 & e.flags)) throw new FS.ErrnoError(ERRNO_CODES.EBADF); | |
| if (FS.isDir(e.node.mode)) throw new FS.ErrnoError(ERRNO_CODES.EISDIR); | |
| if (!e.stream_ops.write) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| 1024 & e.flags && FS.llseek(e, 0, 2); | |
| var o = !0; | |
| if (void 0 === i) i = e.position, o = !1; | |
| else if (!e.seekable) throw new FS.ErrnoError(ERRNO_CODES.ESPIPE); | |
| var s = e.stream_ops.write(e, t, n, r, i, a); | |
| o || (e.position += s); | |
| try { | |
| e.path && FS.trackingDelegate.onWriteToFile && FS.trackingDelegate.onWriteToFile(e.path) | |
| } catch (e) {} | |
| return s | |
| }, | |
| allocate: function (e, t, n) { | |
| if (t < 0 || n <= 0) throw new FS.ErrnoError(ERRNO_CODES.EINVAL); | |
| if (0 == (2097155 & e.flags)) throw new FS.ErrnoError(ERRNO_CODES.EBADF); | |
| if (!FS.isFile(e.node.mode) && !FS.isDir(node.mode)) throw new FS.ErrnoError(ERRNO_CODES.ENODEV); | |
| if (!e.stream_ops.allocate) throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP); | |
| e.stream_ops.allocate(e, t, n) | |
| }, | |
| mmap: function (e, t, n, r, i, a, o) { | |
| if (1 == (2097155 & e.flags)) throw new FS.ErrnoError(ERRNO_CODES.EACCES); | |
| if (!e.stream_ops.mmap) throw new FS.ErrnoError(ERRNO_CODES.ENODEV); | |
| return e.stream_ops.mmap(e, t, n, r, i, a, o) | |
| }, | |
| msync: function (e, t, n, r, i) { | |
| return e && e.stream_ops.msync ? e.stream_ops.msync(e, t, n, r, i) : 0 | |
| }, | |
| munmap: function (e) { | |
| return 0 | |
| }, | |
| ioctl: function (e, t, n) { | |
| if (!e.stream_ops.ioctl) throw new FS.ErrnoError(ERRNO_CODES.ENOTTY); | |
| return e.stream_ops.ioctl(e, t, n) | |
| }, | |
| readFile: function (e, t) { | |
| if (t = t || {}, t.flags = t.flags || "r", t.encoding = t.encoding || "binary", "utf8" !== t.encoding && "binary" !== t.encoding) throw new Error('Invalid encoding type "' + t.encoding + '"'); | |
| var n, r = FS.open(e, t.flags), | |
| i = FS.stat(e), | |
| a = i.size, | |
| o = new Uint8Array(a); | |
| return FS.read(r, o, 0, a, 0), "utf8" === t.encoding ? n = UTF8ArrayToString(o, 0) : "binary" === t.encoding && (n = o), FS.close(r), n | |
| }, | |
| writeFile: function (e, t, n) { | |
| if (n = n || {}, n.flags = n.flags || "w", n.encoding = n.encoding || "utf8", "utf8" !== n.encoding && "binary" !== n.encoding) throw new Error('Invalid encoding type "' + n.encoding + '"'); | |
| var r = FS.open(e, n.flags, n.mode); | |
| if ("utf8" === n.encoding) { | |
| var i = new Uint8Array(lengthBytesUTF8(t) + 1), | |
| a = stringToUTF8Array(t, i, 0, i.length); | |
| FS.write(r, i, 0, a, 0, n.canOwn) | |
| } else "binary" === n.encoding && FS.write(r, t, 0, t.length, 0, n.canOwn); | |
| FS.close(r) | |
| }, | |
| cwd: function () { | |
| return FS.currentPath | |
| }, | |
| chdir: function (e) { | |
| var t = FS.lookupPath(e, { | |
| follow: !0 | |
| }); | |
| if (!FS.isDir(t.node.mode)) throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR); | |
| var n = FS.nodePermissions(t.node, "x"); | |
| if (n) throw new FS.ErrnoError(n); | |
| FS.currentPath = t.path | |
| }, | |
| createDefaultDirectories: function () { | |
| FS.mkdir("/tmp"), FS.mkdir("/home"), FS.mkdir("/home/web_user") | |
| }, | |
| createDefaultDevices: function () { | |
| FS.mkdir("/dev"), FS.registerDevice(FS.makedev(1, 3), { | |
| read: function () { | |
| return 0 | |
| }, | |
| write: function (e, t, n, r, i) { | |
| return r | |
| } | |
| }), FS.mkdev("/dev/null", FS.makedev(1, 3)), TTY.register(FS.makedev(5, 0), TTY.default_tty_ops), TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops), FS.mkdev("/dev/tty", FS.makedev(5, 0)), FS.mkdev("/dev/tty1", FS.makedev(6, 0)); | |
| var e; | |
| if ("undefined" != typeof crypto) { | |
| var t = new Uint8Array(1); | |
| e = function () { | |
| return crypto.getRandomValues(t), t[0] | |
| } | |
| } else e = ENVIRONMENT_IS_NODE ? function () { | |
| return __webpack_require__(281).randomBytes(1)[0] | |
| } : function () { | |
| return 256 * Math.random() | 0 | |
| }; | |
| FS.createDevice("/dev", "random", e), FS.createDevice("/dev", "urandom", e), FS.mkdir("/dev/shm"), FS.mkdir("/dev/shm/tmp") | |
| }, | |
| createSpecialDirectories: function () { | |
| FS.mkdir("/proc"), FS.mkdir("/proc/self"), FS.mkdir("/proc/self/fd"), FS.mount({ | |
| mount: function () { | |
| var e = FS.createNode("/proc/self", "fd", 16895, 73); | |
| return e.node_ops = { | |
| lookup: function (e, t) { | |
| var n = +t, | |
| r = FS.getStream(n); | |
| if (!r) throw new FS.ErrnoError(ERRNO_CODES.EBADF); | |
| var i = { | |
| parent: null, | |
| mount: { | |
| mountpoint: "fake" | |
| }, | |
| node_ops: { | |
| readlink: function () { | |
| return r.path | |
| } | |
| } | |
| }; | |
| return i.parent = i, i | |
| } | |
| }, e | |
| } | |
| }, {}, "/proc/self/fd") | |
| }, | |
| createStandardStreams: function () { | |
| Module.stdin ? FS.createDevice("/dev", "stdin", Module.stdin) : FS.symlink("/dev/tty", "/dev/stdin"), Module.stdout ? FS.createDevice("/dev", "stdout", null, Module.stdout) : FS.symlink("/dev/tty", "/dev/stdout"), Module.stderr ? FS.createDevice("/dev", "stderr", null, Module.stderr) : FS.symlink("/dev/tty1", "/dev/stderr"); | |
| var e = FS.open("/dev/stdin", "r"); | |
| assert(0 === e.fd, "invalid handle for stdin (" + e.fd + ")"); | |
| var t = FS.open("/dev/stdout", "w"); | |
| assert(1 === t.fd, "invalid handle for stdout (" + t.fd + ")"); | |
| var n = FS.open("/dev/stderr", "w"); | |
| assert(2 === n.fd, "invalid handle for stderr (" + n.fd + ")") | |
| }, | |
| ensureErrnoError: function () { | |
| FS.ErrnoError || (FS.ErrnoError = function (e, t) { | |
| this.node = t, this.setErrno = function (e) { | |
| this.errno = e; | |
| for (var t in ERRNO_CODES) | |
| if (ERRNO_CODES[t] === e) { | |
| this.code = t; | |
| break | |
| } | |
| }, this.setErrno(e), this.message = ERRNO_MESSAGES[e] | |
| }, FS.ErrnoError.prototype = new Error, FS.ErrnoError.prototype.constructor = FS.ErrnoError, [ERRNO_CODES.ENOENT].forEach(function (e) { | |
| FS.genericErrors[e] = new FS.ErrnoError(e), FS.genericErrors[e].stack = "<generic error, no stack>" | |
| })) | |
| }, | |
| staticInit: function () { | |
| FS.ensureErrnoError(), FS.nameTable = new Array(4096), FS.mount(MEMFS, {}, "/"), FS.createDefaultDirectories(), FS.createDefaultDevices(), FS.createSpecialDirectories(), FS.filesystems = { | |
| MEMFS: MEMFS, | |
| IDBFS: IDBFS, | |
| NODEFS: NODEFS, | |
| WORKERFS: WORKERFS | |
| } | |
| }, | |
| init: function (e, t, n) { | |
| assert(!FS.init.initialized, "FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"), FS.init.initialized = !0, FS.ensureErrnoError(), Module.stdin = e || Module.stdin, Module.stdout = t || Module.stdout, Module.stderr = n || Module.stderr, FS.createStandardStreams() | |
| }, | |
| quit: function () { | |
| FS.init.initialized = !1; | |
| var e = Module._fflush; | |
| e && e(0); | |
| for (var t = 0; t < FS.streams.length; t++) { | |
| var n = FS.streams[t]; | |
| n && FS.close(n) | |
| } | |
| }, | |
| getMode: function (e, t) { | |
| var n = 0; | |
| return e && (n |= 365), t && (n |= 146), n | |
| }, | |
| joinPath: function (e, t) { | |
| var n = PATH.join.apply(null, e); | |
| return t && "/" == n[0] && (n = n.substr(1)), n | |
| }, | |
| absolutePath: function (e, t) { | |
| return PATH.resolve(t, e) | |
| }, | |
| standardizePath: function (e) { | |
| return PATH.normalize(e) | |
| }, | |
| findObject: function (e, t) { | |
| var n = FS.analyzePath(e, t); | |
| return n.exists ? n.object : (___setErrNo(n.error), null) | |
| }, | |
| analyzePath: function (e, t) { | |
| try { | |
| var n = FS.lookupPath(e, { | |
| follow: !t | |
| }); | |
| e = n.path | |
| } catch (e) {} | |
| var r = { | |
| isRoot: !1, | |
| exists: !1, | |
| error: 0, | |
| name: null, | |
| path: null, | |
| object: null, | |
| parentExists: !1, | |
| parentPath: null, | |
| parentObject: null | |
| }; | |
| try { | |
| var n = FS.lookupPath(e, { | |
| parent: !0 | |
| }); | |
| r.parentExists = !0, r.parentPath = n.path, r.parentObject = n.node, r.name = PATH.basename(e), n = FS.lookupPath(e, { | |
| follow: !t | |
| }), r.exists = !0, r.path = n.path, r.object = n.node, r.name = n.node.name, r.isRoot = "/" === n.path | |
| } catch (e) { | |
| r.error = e.errno | |
| } | |
| return r | |
| }, | |
| createFolder: function (e, t, n, r) { | |
| var i = PATH.join2("string" == typeof e ? e : FS.getPath(e), t), | |
| a = FS.getMode(n, r); | |
| return FS.mkdir(i, a) | |
| }, | |
| createPath: function (e, t, n, r) { | |
| e = "string" == typeof e ? e : FS.getPath(e); | |
| for (var i = t.split("/").reverse(); i.length;) { | |
| var a = i.pop(); | |
| if (a) { | |
| var o = PATH.join2(e, a); | |
| try { | |
| FS.mkdir(o) | |
| } catch (e) {} | |
| e = o | |
| } | |
| } | |
| return o | |
| }, | |
| createFile: function (e, t, n, r, i) { | |
| var a = PATH.join2("string" == typeof e ? e : FS.getPath(e), t), | |
| o = FS.getMode(r, i); | |
| return FS.create(a, o) | |
| }, | |
| createDataFile: function (e, t, n, r, i, a) { | |
| var o = t ? PATH.join2("string" == typeof e ? e : FS.getPath(e), t) : e, | |
| s = FS.getMode(r, i), | |
| l = FS.create(o, s); | |
| if (n) { | |
| if ("string" == typeof n) { | |
| for (var u = new Array(n.length), c = 0, f = n.length; c < f; ++c) u[c] = n.charCodeAt(c); | |
| n = u | |
| } | |
| FS.chmod(l, 146 | s); | |
| var d = FS.open(l, "w"); | |
| FS.write(d, n, 0, n.length, 0, a), FS.close(d), FS.chmod(l, s) | |
| } | |
| return l | |
| }, | |
| createDevice: function (e, t, n, r) { | |
| var i = PATH.join2("string" == typeof e ? e : FS.getPath(e), t), | |
| a = FS.getMode(!!n, !!r); | |
| FS.createDevice.major || (FS.createDevice.major = 64); | |
| var o = FS.makedev(FS.createDevice.major++, 0); | |
| return FS.registerDevice(o, { | |
| open: function (e) { | |
| e.seekable = !1 | |
| }, | |
| close: function (e) { | |
| r && r.buffer && r.buffer.length && r(10) | |
| }, | |
| read: function (e, t, r, i, a) { | |
| for (var o = 0, s = 0; s < i; s++) { | |
| var l; | |
| try { | |
| l = n() | |
| } catch (e) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EIO) | |
| } | |
| if (void 0 === l && 0 === o) throw new FS.ErrnoError(ERRNO_CODES.EAGAIN); | |
| if (null === l || void 0 === l) break; | |
| o++, t[r + s] = l | |
| } | |
| return o && (e.node.timestamp = Date.now()), o | |
| }, | |
| write: function (e, t, n, i, a) { | |
| for (var o = 0; o < i; o++) try { | |
| r(t[n + o]) | |
| } catch (e) { | |
| throw new FS.ErrnoError(ERRNO_CODES.EIO) | |
| } | |
| return i && (e.node.timestamp = Date.now()), o | |
| } | |
| }), FS.mkdev(i, a, o) | |
| }, | |
| createLink: function (e, t, n, r, i) { | |
| var a = PATH.join2("string" == typeof e ? e : FS.getPath(e), t); | |
| return FS.symlink(n, a) | |
| }, | |
| forceLoadFile: function (e) { | |
| if (e.isDevice || e.isFolder || e.link || e.contents) return !0; | |
| var t = !0; | |
| if ("undefined" != typeof XMLHttpRequest) throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread."); | |
| if (!Module.read) throw new Error("Cannot load without read() or XMLHttpRequest."); | |
| try { | |
| e.contents = intArrayFromString(Module.read(e.url), !0), e.usedBytes = e.contents.length | |
| } catch (e) { | |
| t = !1 | |
| } | |
| return t || ___setErrNo(ERRNO_CODES.EIO), t | |
| }, | |
| createLazyFile: function (e, t, n, r, i) { | |
| function a() { | |
| this.lengthKnown = !1, this.chunks = [] | |
| } | |
| if (a.prototype.get = function (e) { | |
| if (!(e > this.length - 1 || e < 0)) { | |
| var t = e % this.chunkSize, | |
| n = e / this.chunkSize | 0; | |
| return this.getter(n)[t] | |
| } | |
| }, a.prototype.setDataGetter = function (e) { | |
| this.getter = e | |
| }, a.prototype.cacheLength = function () { | |
| var e = new XMLHttpRequest; | |
| if (e.open("HEAD", n, !1), e.send(null), !(e.status >= 200 && e.status < 300 || 304 === e.status)) throw new Error("Couldn't load " + n + ". Status: " + e.status); | |
| var t, r = Number(e.getResponseHeader("Content-length")), | |
| i = (t = e.getResponseHeader("Accept-Ranges")) && "bytes" === t, | |
| a = 1048576; | |
| i || (a = r); | |
| var o = function (e, t) { | |
| if (e > t) throw new Error("invalid range (" + e + ", " + t + ") or no bytes requested!"); | |
| if (t > r - 1) throw new Error("only " + r + " bytes available! programmer error!"); | |
| var i = new XMLHttpRequest; | |
| if (i.open("GET", n, !1), r !== a && i.setRequestHeader("Range", "bytes=" + e + "-" + t), "undefined" != typeof Uint8Array && (i.responseType = "arraybuffer"), i.overrideMimeType && i.overrideMimeType("text/plain; charset=x-user-defined"), i.send(null), !(i.status >= 200 && i.status < 300 || 304 === i.status)) throw new Error("Couldn't load " + n + ". Status: " + i.status); | |
| return void 0 !== i.response ? new Uint8Array(i.response || []) : intArrayFromString(i.responseText || "", !0) | |
| }, | |
| s = this; | |
| s.setDataGetter(function (e) { | |
| var t = e * a, | |
| n = (e + 1) * a - 1; | |
| if (n = Math.min(n, r - 1), void 0 === s.chunks[e] && (s.chunks[e] = o(t, n)), void 0 === s.chunks[e]) throw new Error("doXHR failed!"); | |
| return s.chunks[e] | |
| }), this._length = r, this._chunkSize = a, this.lengthKnown = !0 | |
| }, "undefined" != typeof XMLHttpRequest) { | |
| if (!ENVIRONMENT_IS_WORKER) throw "Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc"; | |
| var o = new a; | |
| Object.defineProperty(o, "length", { | |
| get: function () { | |
| return this.lengthKnown || this.cacheLength(), this._length | |
| } | |
| }), Object.defineProperty(o, "chunkSize", { | |
| get: function () { | |
| return this.lengthKnown || this.cacheLength(), this._chunkSize | |
| } | |
| }); | |
| var s = { | |
| isDevice: !1, | |
| contents: o | |
| } | |
| } else var s = { | |
| isDevice: !1, | |
| url: n | |
| }; | |
| var l = FS.createFile(e, t, s, r, i); | |
| s.contents ? l.contents = s.contents : s.url && (l.contents = null, l.url = s.url), Object.defineProperty(l, "usedBytes", { | |
| get: function () { | |
| return this.contents.length | |
| } | |
| }); | |
| var u = {}; | |
| return Object.keys(l.stream_ops).forEach(function (e) { | |
| var t = l.stream_ops[e]; | |
| u[e] = function () { | |
| if (!FS.forceLoadFile(l)) throw new FS.ErrnoError(ERRNO_CODES.EIO); | |
| return t.apply(null, arguments) | |
| } | |
| }), u.read = function (e, t, n, r, i) { | |
| if (!FS.forceLoadFile(l)) throw new FS.ErrnoError(ERRNO_CODES.EIO); | |
| var a = e.node.contents; | |
| if (i >= a.length) return 0; | |
| var o = Math.min(a.length - i, r); | |
| if (assert(o >= 0), a.slice) | |
| for (var s = 0; s < o; s++) t[n + s] = a[i + s]; | |
| else | |
| for (var s = 0; s < o; s++) t[n + s] = a.get(i + s); | |
| return o | |
| }, l.stream_ops = u, l | |
| }, | |
| createPreloadedFile: function (e, t, n, r, i, a, o, s, l, u) { | |
| function c(n) { | |
| function c(n) { | |
| u && u(), s || FS.createDataFile(e, t, n, r, i, l), a && a(), removeRunDependency(d) | |
| } | |
| var p = !1; | |
| Module.preloadPlugins.forEach(function (e) { | |
| p || e.canHandle(f) && (e.handle(n, f, c, function () { | |
| o && o(), removeRunDependency(d) | |
| }), p = !0) | |
| }), p || c(n) | |
| } | |
| Browser.init(); | |
| var f = t ? PATH.resolve(PATH.join2(e, t)) : e, | |
| d = getUniqueRunDependency("cp " + f); | |
| addRunDependency(d), "string" == typeof n ? Browser.asyncLoad(n, function (e) { | |
| c(e) | |
| }, o) : c(n) | |
| }, | |
| indexedDB: function () { | |
| return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB | |
| }, | |
| DB_NAME: function () { | |
| return "EM_FS_" + window.location.pathname | |
| }, | |
| DB_VERSION: 20, | |
| DB_STORE_NAME: "FILE_DATA", | |
| saveFilesToDB: function (e, t, n) { | |
| t = t || function () {}, n = n || function () {}; | |
| var r = FS.indexedDB(); | |
| try { | |
| var i = r.open(FS.DB_NAME(), FS.DB_VERSION) | |
| } catch (e) { | |
| return n(e) | |
| } | |
| i.onupgradeneeded = function () { | |
| i.result.createObjectStore(FS.DB_STORE_NAME) | |
| }, i.onsuccess = function () { | |
| function r() { | |
| 0 == u ? t() : n() | |
| } | |
| var a = i.result, | |
| o = a.transaction([FS.DB_STORE_NAME], "readwrite"), | |
| s = o.objectStore(FS.DB_STORE_NAME), | |
| l = 0, | |
| u = 0, | |
| c = e.length; | |
| e.forEach(function (e) { | |
| var t = s.put(FS.analyzePath(e).object.contents, e); | |
| t.onsuccess = function () { | |
| ++l + u == c && r() | |
| }, t.onerror = function () { | |
| u++, l + u == c && r() | |
| } | |
| }), o.onerror = n | |
| }, i.onerror = n | |
| }, | |
| loadFilesFromDB: function (e, t, n) { | |
| t = t || function () {}, n = n || function () {}; | |
| var r = FS.indexedDB(); | |
| try { | |
| var i = r.open(FS.DB_NAME(), FS.DB_VERSION) | |
| } catch (e) { | |
| return n(e) | |
| } | |
| i.onupgradeneeded = n, i.onsuccess = function () { | |
| function r() { | |
| 0 == u ? t() : n() | |
| } | |
| var a = i.result; | |
| try { | |
| var o = a.transaction([FS.DB_STORE_NAME], "readonly") | |
| } catch (e) { | |
| return void n(e) | |
| } | |
| var s = o.objectStore(FS.DB_STORE_NAME), | |
| l = 0, | |
| u = 0, | |
| c = e.length; | |
| e.forEach(function (e) { | |
| var t = s.get(e); | |
| t.onsuccess = function () { | |
| FS.analyzePath(e).exists && FS.unlink(e), FS.createDataFile(PATH.dirname(e), PATH.basename(e), t.result, !0, !0, !0), ++l + u == c && r() | |
| }, t.onerror = function () { | |
| u++, l + u == c && r() | |
| } | |
| }), o.onerror = n | |
| }, i.onerror = n | |
| } | |
| }, | |
| PATH = { | |
| splitPath: function (e) { | |
| return /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1) | |
| }, | |
| normalizeArray: function (e, t) { | |
| for (var n = 0, r = e.length - 1; r >= 0; r--) { | |
| var i = e[r]; | |
| "." === i ? e.splice(r, 1) : ".." === i ? (e.splice(r, 1), n++) : n && (e.splice(r, 1), n--) | |
| } | |
| if (t) | |
| for (; n--; n) e.unshift(".."); | |
| return e | |
| }, | |
| normalize: function (e) { | |
| var t = "/" === e.charAt(0), | |
| n = "/" === e.substr(-1); | |
| return e = PATH.normalizeArray(e.split("/").filter(function (e) { | |
| return !!e | |
| }), !t).join("/"), e || t || (e = "."), e && n && (e += "/"), (t ? "/" : "") + e | |
| }, | |
| dirname: function (e) { | |
| var t = PATH.splitPath(e), | |
| n = t[0], | |
| r = t[1]; | |
| return n || r ? (r && (r = r.substr(0, r.length - 1)), n + r) : "." | |
| }, | |
| basename: function (e) { | |
| if ("/" === e) return "/"; | |
| var t = e.lastIndexOf("/"); | |
| return -1 === t ? e : e.substr(t + 1) | |
| }, | |
| extname: function (e) { | |
| return PATH.splitPath(e)[3] | |
| }, | |
| join: function () { | |
| var e = Array.prototype.slice.call(arguments, 0); | |
| return PATH.normalize(e.join("/")) | |
| }, | |
| join2: function (e, t) { | |
| return PATH.normalize(e + "/" + t) | |
| }, | |
| resolve: function () { | |
| for (var e = "", t = !1, n = arguments.length - 1; n >= -1 && !t; n--) { | |
| var r = n >= 0 ? arguments[n] : FS.cwd(); | |
| if ("string" != typeof r) throw new TypeError("Arguments to path.resolve must be strings"); | |
| if (!r) return ""; | |
| e = r + "/" + e, t = "/" === r.charAt(0) | |
| } | |
| return e = PATH.normalizeArray(e.split("/").filter(function (e) { | |
| return !!e | |
| }), !t).join("/"), (t ? "/" : "") + e || "." | |
| }, | |
| relative: function (e, t) { | |
| function n(e) { | |
| for (var t = 0; t < e.length && "" === e[t]; t++); | |
| for (var n = e.length - 1; n >= 0 && "" === e[n]; n--); | |
| return t > n ? [] : e.slice(t, n - t + 1) | |
| } | |
| e = PATH.resolve(e).substr(1), t = PATH.resolve(t).substr(1); | |
| for (var r = n(e.split("/")), i = n(t.split("/")), a = Math.min(r.length, i.length), o = a, s = 0; s < a; s++) | |
| if (r[s] !== i[s]) { | |
| o = s; | |
| break | |
| } | |
| for (var l = [], s = o; s < r.length; s++) l.push(".."); | |
| return l = l.concat(i.slice(o)), l.join("/") | |
| } | |
| }, | |
| Browser = { | |
| mainLoop: { | |
| scheduler: null, | |
| method: "", | |
| currentlyRunningMainloop: 0, | |
| func: null, | |
| arg: 0, | |
| timingMode: 0, | |
| timingValue: 0, | |
| currentFrameNumber: 0, | |
| queue: [], | |
| pause: function () { | |
| Browser.mainLoop.scheduler = null, Browser.mainLoop.currentlyRunningMainloop++ | |
| }, | |
| resume: function () { | |
| Browser.mainLoop.currentlyRunningMainloop++; | |
| var e = Browser.mainLoop.timingMode, | |
| t = Browser.mainLoop.timingValue, | |
| n = Browser.mainLoop.func; | |
| Browser.mainLoop.func = null, _emscripten_set_main_loop(n, 0, !1, Browser.mainLoop.arg, !0), _emscripten_set_main_loop_timing(e, t), Browser.mainLoop.scheduler() | |
| }, | |
| updateStatus: function () { | |
| if (Module.setStatus) { | |
| var e = Module.statusMessage || "Please wait...", | |
| t = Browser.mainLoop.remainingBlockers, | |
| n = Browser.mainLoop.expectedBlockers; | |
| t ? t < n ? Module.setStatus(e + " (" + (n - t) + "/" + n + ")") : Module.setStatus(e) : Module.setStatus("") | |
| } | |
| }, | |
| runIter: function (e) { | |
| if (!ABORT) { | |
| if (Module.preMainLoop) { | |
| if (!1 === Module.preMainLoop()) return | |
| } | |
| try { | |
| e() | |
| } catch (e) { | |
| if (e instanceof ExitStatus) return; | |
| throw e && "object" === (void 0 === e ? "undefined" : _typeof(e)) && e.stack && Module.printErr("exception thrown: " + [e, e.stack]), e | |
| } | |
| Module.postMainLoop && Module.postMainLoop() | |
| } | |
| } | |
| }, | |
| isFullScreen: !1, | |
| pointerLock: !1, | |
| moduleContextCreatedCallbacks: [], | |
| workers: [], | |
| init: function () { | |
| function e() { | |
| Browser.pointerLock = document.pointerLockElement === r || document.mozPointerLockElement === r || document.webkitPointerLockElement === r || document.msPointerLockElement === r | |
| } | |
| if (Module.preloadPlugins || (Module.preloadPlugins = []), !Browser.initted) { | |
| Browser.initted = !0; | |
| try { | |
| new Blob, Browser.hasBlobConstructor = !0 | |
| } catch (e) { | |
| Browser.hasBlobConstructor = !1 | |
| } | |
| Browser.BlobBuilder = "undefined" != typeof MozBlobBuilder ? MozBlobBuilder : "undefined" != typeof WebKitBlobBuilder ? WebKitBlobBuilder : Browser.hasBlobConstructor ? null : void 0, Browser.URLObject = "undefined" != typeof window ? window.URL ? window.URL : window.webkitURL : void 0, Module.noImageDecoding || void 0 !== Browser.URLObject || (Module.noImageDecoding = !0); | |
| var t = {}; | |
| t.canHandle = function (e) { | |
| return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(e) | |
| }, t.handle = function (e, t, n, r) { | |
| var i = null; | |
| if (Browser.hasBlobConstructor) try { | |
| i = new Blob([e], { | |
| type: Browser.getMimetype(t) | |
| }), i.size !== e.length && (i = new Blob([new Uint8Array(e).buffer], { | |
| type: Browser.getMimetype(t) | |
| })) | |
| } catch (e) { | |
| Runtime.warnOnce("Blob constructor present but fails: " + e + "; falling back to blob builder") | |
| } | |
| if (!i) { | |
| var a = new Browser.BlobBuilder; | |
| a.append(new Uint8Array(e).buffer), i = a.getBlob() | |
| } | |
| var o = Browser.URLObject.createObjectURL(i), | |
| s = new Image; | |
| s.onload = function () { | |
| assert(s.complete, "Image " + t + " could not be decoded"); | |
| var r = document.createElement("canvas"); | |
| r.width = s.width, r.height = s.height, r.getContext("2d").drawImage(s, 0, 0), Module.preloadedImages[t] = r, Browser.URLObject.revokeObjectURL(o), n && n(e) | |
| }, s.onerror = function (e) { | |
| r && r() | |
| }, s.src = o | |
| }, Module.preloadPlugins.push(t); | |
| var n = {}; | |
| n.canHandle = function (e) { | |
| return !Module.noAudioDecoding && e.substr(-4) in { | |
| ".ogg": 1, | |
| ".wav": 1, | |
| ".mp3": 1 | |
| } | |
| }, n.handle = function (e, t, n, r) { | |
| function i(r) { | |
| o || (o = !0, Module.preloadedAudios[t] = r, n && n(e)) | |
| } | |
| function a() { | |
| o || (o = !0, Module.preloadedAudios[t] = new Audio, r && r()) | |
| } | |
| var o = !1; | |
| if (!Browser.hasBlobConstructor) return a(); | |
| try { | |
| var s = new Blob([e], { | |
| type: Browser.getMimetype(t) | |
| }) | |
| } catch (e) { | |
| return a() | |
| } | |
| var l = Browser.URLObject.createObjectURL(s), | |
| u = new Audio; | |
| u.addEventListener("canplaythrough", function () { | |
| i(u) | |
| }, !1), u.onerror = function (n) { | |
| o || (u.src = "data:audio/x-" + t.substr(-3) + ";base64," + function (e) { | |
| for (var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = "", r = 0, i = 0, a = 0; a < e.length; a++) | |
| for (r = r << 8 | e[a], i += 8; i >= 6;) { | |
| var o = r >> i - 6 & 63; | |
| i -= 6, n += t[o] | |
| } | |
| return 2 == i ? (n += t[(3 & r) << 4], n += "==") : 4 == i && (n += t[(15 & r) << 2], n += "="), n | |
| }(e), i(u)) | |
| }, u.src = l, Browser.safeSetTimeout(function () { | |
| i(u) | |
| }, 1e4) | |
| }, Module.preloadPlugins.push(n); | |
| var r = Module.canvas; | |
| r && (r.requestPointerLock = r.requestPointerLock || r.mozRequestPointerLock || r.webkitRequestPointerLock || r.msRequestPointerLock || function () {}, r.exitPointerLock = document.exitPointerLock || document.mozExitPointerLock || document.webkitExitPointerLock || document.msExitPointerLock || function () {}, r.exitPointerLock = r.exitPointerLock.bind(document), document.addEventListener("pointerlockchange", e, !1), document.addEventListener("mozpointerlockchange", e, !1), document.addEventListener("webkitpointerlockchange", e, !1), document.addEventListener("mspointerlockchange", e, !1), Module.elementPointerLock && r.addEventListener("click", function (e) { | |
| !Browser.pointerLock && r.requestPointerLock && (r.requestPointerLock(), e.preventDefault()) | |
| }, !1)) | |
| } | |
| }, | |
| createContext: function (e, t, n, r) { | |
| if (t && Module.ctx && e == Module.canvas) return Module.ctx; | |
| var i, a; | |
| if (t) { | |
| var o = { | |
| antialias: !1, | |
| alpha: !1 | |
| }; | |
| if (r) | |
| for (var s in r) o[s] = r[s]; | |
| a = GL.createContext(e, o), a && (i = GL.getContext(a).GLctx), e.style.backgroundColor = "black" | |
| } else i = e.getContext("2d"); | |
| return i ? (n && (t || assert("undefined" == typeof GLctx, "cannot set in module if GLctx is used, but we are a non-GL context that would replace it"), Module.ctx = i, t && GL.makeContextCurrent(a), Module.useWebGL = t, Browser.moduleContextCreatedCallbacks.forEach(function (e) { | |
| e() | |
| }), Browser.init()), i) : null | |
| }, | |
| destroyContext: function (e, t, n) {}, | |
| fullScreenHandlersInstalled: !1, | |
| lockPointer: void 0, | |
| resizeCanvas: void 0, | |
| requestFullScreen: function (e, t, n) { | |
| function r() { | |
| Browser.isFullScreen = !1; | |
| var e = i.parentNode; | |
| (document.webkitFullScreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.mozFullscreenElement || document.fullScreenElement || document.fullscreenElement || document.msFullScreenElement || document.msFullscreenElement || document.webkitCurrentFullScreenElement) === e ? (i.cancelFullScreen = document.cancelFullScreen || document.mozCancelFullScreen || document.webkitCancelFullScreen || document.msExitFullscreen || document.exitFullscreen || function () {}, i.cancelFullScreen = i.cancelFullScreen.bind(document), Browser.lockPointer && i.requestPointerLock(), Browser.isFullScreen = !0, Browser.resizeCanvas && Browser.setFullScreenCanvasSize()) : (e.parentNode.insertBefore(i, e), e.parentNode.removeChild(e), Browser.resizeCanvas && Browser.setWindowedCanvasSize()), Module.onFullScreen && Module.onFullScreen(Browser.isFullScreen), Browser.updateCanvasDimensions(i) | |
| } | |
| Browser.lockPointer = e, Browser.resizeCanvas = t, Browser.vrDevice = n, void 0 === Browser.lockPointer && (Browser.lockPointer = !0), void 0 === Browser.resizeCanvas && (Browser.resizeCanvas = !1), void 0 === Browser.vrDevice && (Browser.vrDevice = null); | |
| var i = Module.canvas; | |
| Browser.fullScreenHandlersInstalled || (Browser.fullScreenHandlersInstalled = !0, document.addEventListener("fullscreenchange", r, !1), document.addEventListener("mozfullscreenchange", r, !1), document.addEventListener("webkitfullscreenchange", r, !1), document.addEventListener("MSFullscreenChange", r, !1)); | |
| var a = document.createElement("div"); | |
| i.parentNode.insertBefore(a, i), a.appendChild(i), a.requestFullScreen = a.requestFullScreen || a.mozRequestFullScreen || a.msRequestFullscreen || (a.webkitRequestFullScreen ? function () { | |
| a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT) | |
| } : null), n ? a.requestFullScreen({ | |
| vrDisplay: n | |
| }) : a.requestFullScreen() | |
| }, | |
| nextRAF: 0, | |
| fakeRequestAnimationFrame: function (e) { | |
| var t = Date.now(); | |
| if (0 === Browser.nextRAF) Browser.nextRAF = t + 1e3 / 60; | |
| else | |
| for (; t + 2 >= Browser.nextRAF;) Browser.nextRAF += 1e3 / 60; | |
| var n = Math.max(Browser.nextRAF - t, 0); | |
| setTimeout(e, n) | |
| }, | |
| requestAnimationFrame: function (e) { | |
| "undefined" == typeof window ? Browser.fakeRequestAnimationFrame(e) : (window.requestAnimationFrame || (window.requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame || Browser.fakeRequestAnimationFrame), window.requestAnimationFrame(e)) | |
| }, | |
| safeCallback: function (e) { | |
| return function () { | |
| if (!ABORT) return e.apply(null, arguments) | |
| } | |
| }, | |
| allowAsyncCallbacks: !0, | |
| queuedAsyncCallbacks: [], | |
| pauseAsyncCallbacks: function () { | |
| Browser.allowAsyncCallbacks = !1 | |
| }, | |
| resumeAsyncCallbacks: function () { | |
| if (Browser.allowAsyncCallbacks = !0, Browser.queuedAsyncCallbacks.length > 0) { | |
| var e = Browser.queuedAsyncCallbacks; | |
| Browser.queuedAsyncCallbacks = [], e.forEach(function (e) { | |
| e() | |
| }) | |
| } | |
| }, | |
| safeRequestAnimationFrame: function (e) { | |
| return Browser.requestAnimationFrame(function () { | |
| ABORT || (Browser.allowAsyncCallbacks ? e() : Browser.queuedAsyncCallbacks.push(e)) | |
| }) | |
| }, | |
| safeSetTimeout: function (e, t) { | |
| return Module.noExitRuntime = !0, setTimeout(function () { | |
| ABORT || (Browser.allowAsyncCallbacks ? e() : Browser.queuedAsyncCallbacks.push(e)) | |
| }, t) | |
| }, | |
| safeSetInterval: function (e, t) { | |
| return Module.noExitRuntime = !0, setInterval(function () { | |
| ABORT || Browser.allowAsyncCallbacks && e() | |
| }, t) | |
| }, | |
| getMimetype: function (e) { | |
| return { | |
| jpg: "image/jpeg", | |
| jpeg: "image/jpeg", | |
| png: "image/png", | |
| bmp: "image/bmp", | |
| ogg: "audio/ogg", | |
| wav: "audio/wav", | |
| mp3: "audio/mpeg" | |
| }[e.substr(e.lastIndexOf(".") + 1)] | |
| }, | |
| getUserMedia: function (e) { | |
| window.getUserMedia || (window.getUserMedia = navigator.getUserMedia || navigator.mozGetUserMedia), window.getUserMedia(e) | |
| }, | |
| getMovementX: function (e) { | |
| return e.movementX || e.mozMovementX || e.webkitMovementX || 0 | |
| }, | |
| getMovementY: function (e) { | |
| return e.movementY || e.mozMovementY || e.webkitMovementY || 0 | |
| }, | |
| getMouseWheelDelta: function (e) { | |
| var t = 0; | |
| switch (e.type) { | |
| case "DOMMouseScroll": | |
| t = e.detail; | |
| break; | |
| case "mousewheel": | |
| t = e.wheelDelta; | |
| break; | |
| case "wheel": | |
| t = e.deltaY; | |
| break; | |
| default: | |
| throw "unrecognized mouse wheel event: " + e.type | |
| } | |
| return t | |
| }, | |
| mouseX: 0, | |
| mouseY: 0, | |
| mouseMovementX: 0, | |
| mouseMovementY: 0, | |
| touches: {}, | |
| lastTouches: {}, | |
| calculateMouseEvent: function (e) { | |
| if (Browser.pointerLock) "mousemove" != e.type && "mozMovementX" in e ? Browser.mouseMovementX = Browser.mouseMovementY = 0 : (Browser.mouseMovementX = Browser.getMovementX(e), Browser.mouseMovementY = Browser.getMovementY(e)), "undefined" != typeof SDL ? (Browser.mouseX = SDL.mouseX + Browser.mouseMovementX, Browser.mouseY = SDL.mouseY + Browser.mouseMovementY) : (Browser.mouseX += Browser.mouseMovementX, Browser.mouseY += Browser.mouseMovementY); | |
| else { | |
| var t = Module.canvas.getBoundingClientRect(), | |
| n = Module.canvas.width, | |
| r = Module.canvas.height, | |
| i = void 0 !== window.scrollX ? window.scrollX : window.pageXOffset, | |
| a = void 0 !== window.scrollY ? window.scrollY : window.pageYOffset; | |
| if ("touchstart" === e.type || "touchend" === e.type || "touchmove" === e.type) { | |
| var o = e.touch; | |
| if (void 0 === o) return; | |
| var s = o.pageX - (i + t.left), | |
| l = o.pageY - (a + t.top); | |
| s *= n / t.width, l *= r / t.height; | |
| var u = { | |
| x: s, | |
| y: l | |
| }; | |
| if ("touchstart" === e.type) Browser.lastTouches[o.identifier] = u, Browser.touches[o.identifier] = u; | |
| else if ("touchend" === e.type || "touchmove" === e.type) { | |
| var c = Browser.touches[o.identifier]; | |
| c || (c = u), Browser.lastTouches[o.identifier] = c, Browser.touches[o.identifier] = u | |
| } | |
| return | |
| } | |
| var f = e.pageX - (i + t.left), | |
| d = e.pageY - (a + t.top); | |
| f *= n / t.width, d *= r / t.height, Browser.mouseMovementX = f - Browser.mouseX, Browser.mouseMovementY = d - Browser.mouseY, Browser.mouseX = f, Browser.mouseY = d | |
| } | |
| }, | |
| xhrLoad: function (e, t, n) { | |
| var r = new XMLHttpRequest; | |
| r.open("GET", e, !0), r.responseType = "arraybuffer", r.onload = function () { | |
| 200 == r.status || 0 == r.status && r.response ? t(r.response) : n() | |
| }, r.onerror = n, r.send(null) | |
| }, | |
| asyncLoad: function (e, t, n, r) { | |
| Browser.xhrLoad(e, function (n) { | |
| assert(n, 'Loading data file "' + e + '" failed (no arrayBuffer).'), t(new Uint8Array(n)), r || removeRunDependency("al " + e) | |
| }, function (t) { | |
| if (!n) throw 'Loading data file "' + e + '" failed.'; | |
| n() | |
| }), r || addRunDependency("al " + e) | |
| }, | |
| resizeListeners: [], | |
| updateResizeListeners: function () { | |
| var e = Module.canvas; | |
| Browser.resizeListeners.forEach(function (t) { | |
| t(e.width, e.height) | |
| }) | |
| }, | |
| setCanvasSize: function (e, t, n) { | |
| var r = Module.canvas; | |
| Browser.updateCanvasDimensions(r, e, t), n || Browser.updateResizeListeners() | |
| }, | |
| windowedWidth: 0, | |
| windowedHeight: 0, | |
| setFullScreenCanvasSize: function () { | |
| if ("undefined" != typeof SDL) { | |
| var e = HEAPU32[SDL.screen + 0 * Runtime.QUANTUM_SIZE >> 2]; | |
| e |= 8388608, HEAP32[SDL.screen + 0 * Runtime.QUANTUM_SIZE >> 2] = e | |
| } | |
| Browser.updateResizeListeners() | |
| }, | |
| setWindowedCanvasSize: function () { | |
| if ("undefined" != typeof SDL) { | |
| var e = HEAPU32[SDL.screen + 0 * Runtime.QUANTUM_SIZE >> 2]; | |
| e &= -8388609, HEAP32[SDL.screen + 0 * Runtime.QUANTUM_SIZE >> 2] = e | |
| } | |
| Browser.updateResizeListeners() | |
| }, | |
| updateCanvasDimensions: function (e, t, n) { | |
| t && n ? (e.widthNative = t, e.heightNative = n) : (t = e.widthNative, n = e.heightNative); | |
| var r = t, | |
| i = n; | |
| if (Module.forcedAspectRatio && Module.forcedAspectRatio > 0 && (r / i < Module.forcedAspectRatio ? r = Math.round(i * Module.forcedAspectRatio) : i = Math.round(r / Module.forcedAspectRatio)), (document.webkitFullScreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.mozFullscreenElement || document.fullScreenElement || document.fullscreenElement || document.msFullScreenElement || document.msFullscreenElement || document.webkitCurrentFullScreenElement) === e.parentNode && "undefined" != typeof screen) { | |
| var a = Math.min(screen.width / r, screen.height / i); | |
| r = Math.round(r * a), i = Math.round(i * a) | |
| } | |
| Browser.resizeCanvas ? (e.width != r && (e.width = r), e.height != i && (e.height = i), void 0 !== e.style && (e.style.removeProperty("width"), e.style.removeProperty("height"))) : (e.width != t && (e.width = t), e.height != n && (e.height = n), void 0 !== e.style && (r != t || i != n ? (e.style.setProperty("width", r + "px", "important"), e.style.setProperty("height", i + "px", "important")) : (e.style.removeProperty("width"), e.style.removeProperty("height")))) | |
| }, | |
| wgetRequests: {}, | |
| nextWgetRequestHandle: 0, | |
| getNextWgetRequestHandle: function () { | |
| var e = Browser.nextWgetRequestHandle; | |
| return Browser.nextWgetRequestHandle++, e | |
| } | |
| }, | |
| emval_free_list = [], | |
| emval_handle_array = [{}, { | |
| value: void 0 | |
| }, { | |
| value: null | |
| }, { | |
| value: !0 | |
| }, { | |
| value: !1 | |
| }], | |
| SYSCALLS = { | |
| DEFAULT_POLLMASK: 5, | |
| mappings: {}, | |
| umask: 511, | |
| calculateAt: function (e, t) { | |
| if ("/" !== t[0]) { | |
| var n; | |
| if (-100 === e) n = FS.cwd(); | |
| else { | |
| var r = FS.getStream(e); | |
| if (!r) throw new FS.ErrnoError(ERRNO_CODES.EBADF); | |
| n = r.path | |
| } | |
| t = PATH.join2(n, t) | |
| } | |
| return t | |
| }, | |
| doStat: function (e, t, n) { | |
| try { | |
| var r = e(t) | |
| } catch (e) { | |
| if (e && e.node && PATH.normalize(t) !== PATH.normalize(FS.getPath(e.node))) return -ERRNO_CODES.ENOTDIR; | |
| throw e | |
| } | |
| return HEAP32[n >> 2] = r.dev, HEAP32[n + 4 >> 2] = 0, HEAP32[n + 8 >> 2] = r.ino, HEAP32[n + 12 >> 2] = r.mode, HEAP32[n + 16 >> 2] = r.nlink, HEAP32[n + 20 >> 2] = r.uid, HEAP32[n + 24 >> 2] = r.gid, HEAP32[n + 28 >> 2] = r.rdev, HEAP32[n + 32 >> 2] = 0, HEAP32[n + 36 >> 2] = r.size, HEAP32[n + 40 >> 2] = 4096, HEAP32[n + 44 >> 2] = r.blocks, HEAP32[n + 48 >> 2] = r.atime.getTime() / 1e3 | 0, HEAP32[n + 52 >> 2] = 0, HEAP32[n + 56 >> 2] = r.mtime.getTime() / 1e3 | 0, HEAP32[n + 60 >> 2] = 0, HEAP32[n + 64 >> 2] = r.ctime.getTime() / 1e3 | 0, HEAP32[n + 68 >> 2] = 0, HEAP32[n + 72 >> 2] = r.ino, 0 | |
| }, | |
| doMsync: function (e, t, n, r) { | |
| var i = new Uint8Array(HEAPU8.subarray(e, e + n)); | |
| FS.msync(t, i, 0, n, r) | |
| }, | |
| doMkdir: function (e, t) { | |
| return e = PATH.normalize(e), "/" === e[e.length - 1] && (e = e.substr(0, e.length - 1)), FS.mkdir(e, t, 0), 0 | |
| }, | |
| doMknod: function (e, t, n) { | |
| switch (61440 & t) { | |
| case 32768: | |
| case 8192: | |
| case 24576: | |
| case 4096: | |
| case 49152: | |
| break; | |
| default: | |
| return -ERRNO_CODES.EINVAL | |
| } | |
| return FS.mknod(e, t, n), 0 | |
| }, | |
| doReadlink: function (e, t, n) { | |
| if (n <= 0) return -ERRNO_CODES.EINVAL; | |
| var r = FS.readlink(e); | |
| return r = r.slice(0, Math.max(0, n)), writeStringToMemory(r, t, !0), r.length | |
| }, | |
| doAccess: function (e, t) { | |
| if (-8 & t) return -ERRNO_CODES.EINVAL; | |
| var n; | |
| n = FS.lookupPath(e, { | |
| follow: !0 | |
| }).node; | |
| var r = ""; | |
| return 4 & t && (r += "r"), 2 & t && (r += "w"), 1 & t && (r += "x"), r && FS.nodePermissions(n, r) ? -ERRNO_CODES.EACCES : 0 | |
| }, | |
| doDup: function (e, t, n) { | |
| var r = FS.getStream(n); | |
| return r && FS.close(r), FS.open(e, t, 0, n, n).fd | |
| }, | |
| doReadv: function (e, t, n, r) { | |
| for (var i = 0, a = 0; a < n; a++) { | |
| var o = HEAP32[t + 8 * a >> 2], | |
| s = HEAP32[t + (8 * a + 4) >> 2], | |
| l = FS.read(e, HEAP8, o, s, r); | |
| if (l < 0) return -1; | |
| if (i += l, l < s) break | |
| } | |
| return i | |
| }, | |
| doWritev: function (e, t, n, r) { | |
| for (var i = 0, a = 0; a < n; a++) { | |
| var o = HEAP32[t + 8 * a >> 2], | |
| s = HEAP32[t + (8 * a + 4) >> 2], | |
| l = FS.write(e, HEAP8, o, s, r); | |
| if (l < 0) return -1; | |
| i += l | |
| } | |
| return i | |
| }, | |
| varargs: 0, | |
| get: function (e) { | |
| return SYSCALLS.varargs += 4, HEAP32[SYSCALLS.varargs - 4 >> 2] | |
| }, | |
| getStr: function () { | |
| return Pointer_stringify(SYSCALLS.get()) | |
| }, | |
| getStreamFromFD: function () { | |
| var e = FS.getStream(SYSCALLS.get()); | |
| if (!e) throw new FS.ErrnoError(ERRNO_CODES.EBADF); | |
| return e | |
| }, | |
| getSocketFromFD: function () { | |
| var e = SOCKFS.getSocket(SYSCALLS.get()); | |
| if (!e) throw new FS.ErrnoError(ERRNO_CODES.EBADF); | |
| return e | |
| }, | |
| getSocketAddress: function (e) { | |
| var t = SYSCALLS.get(), | |
| n = SYSCALLS.get(); | |
| if (e && 0 === t) return null; | |
| var r = __read_sockaddr(t, n); | |
| if (r.errno) throw new FS.ErrnoError(r.errno); | |
| return r.addr = DNS.lookup_addr(r.addr) || r.addr, r | |
| }, | |
| get64: function () { | |
| var e = SYSCALLS.get(), | |
| t = SYSCALLS.get(); | |
| return assert(e >= 0 ? 0 === t : -1 === t), e | |
| }, | |
| getZero: function () { | |
| assert(0 === SYSCALLS.get()) | |
| } | |
| }; | |
| Module._i64Add = _i64Add, Module._bitshift64Lshr = _bitshift64Lshr; | |
| var _BDtoIHigh = !0, | |
| UnboundTypeError = void 0; | |
| Module._memcpy = _memcpy, Module._bitshift64Shl = _bitshift64Shl, Module._memmove = _memmove; | |
| var _BItoD = !0, | |
| ___dso_handle = allocate(1, "i32*", ALLOC_STATIC); | |
| if (embind_init_charCodes(), BindingError = Module.BindingError = extendError(Error, "BindingError"), InternalError = Module.InternalError = extendError(Error, "InternalError"), Module.requestFullScreen = function (e, t, n) { | |
| Browser.requestFullScreen(e, t, n) | |
| }, Module.requestAnimationFrame = function (e) { | |
| Browser.requestAnimationFrame(e) | |
| }, Module.setCanvasSize = function (e, t, n) { | |
| Browser.setCanvasSize(e, t, n) | |
| }, Module.pauseMainLoop = function () { | |
| Browser.mainLoop.pause() | |
| }, Module.resumeMainLoop = function () { | |
| Browser.mainLoop.resume() | |
| }, Module.getUserMedia = function () { | |
| Browser.getUserMedia() | |
| }, Module.createContext = function (e, t, n, r) { | |
| return Browser.createContext(e, t, n, r) | |
| }, FS.staticInit(), __ATINIT__.unshift(function () { | |
| Module.noFSInit || FS.init.initialized || FS.init() | |
| }), __ATMAIN__.push(function () { | |
| FS.ignorePermissions = !1 | |
| }), __ATEXIT__.push(function () { | |
| FS.quit() | |
| }), Module.FS_createFolder = FS.createFolder, Module.FS_createPath = FS.createPath, Module.FS_createDataFile = FS.createDataFile, Module.FS_createPreloadedFile = FS.createPreloadedFile, Module.FS_createLazyFile = FS.createLazyFile, Module.FS_createLink = FS.createLink, Module.FS_createDevice = FS.createDevice, Module.FS_unlink = FS.unlink, __ATINIT__.unshift(function () { | |
| TTY.init() | |
| }), __ATEXIT__.push(function () { | |
| TTY.shutdown() | |
| }), ENVIRONMENT_IS_NODE) { | |
| var fs = __webpack_require__(140), | |
| NODEJS_PATH = __webpack_require__(31); | |
| NODEFS.staticInit() | |
| } | |
| init_emval(), UnboundTypeError = Module.UnboundTypeError = extendError(Error, "UnboundTypeError"), STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP), staticSealed = !0, STACK_MAX = STACK_BASE + TOTAL_STACK, DYNAMIC_BASE = DYNAMICTOP = Runtime.alignMemory(STACK_MAX), assert(DYNAMIC_BASE < TOTAL_MEMORY, "TOTAL_MEMORY not big enough for stack"); | |
| var cttz_i8 = allocate([8, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 7, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0], "i8", ALLOC_DYNAMIC); | |
| Module.asmGlobalArg = { | |
| Math: Math, | |
| Int8Array: Int8Array, | |
| Int16Array: Int16Array, | |
| Int32Array: Int32Array, | |
| Uint8Array: Uint8Array, | |
| Uint16Array: Uint16Array, | |
| Uint32Array: Uint32Array, | |
| Float32Array: Float32Array, | |
| Float64Array: Float64Array, | |
| NaN: NaN, | |
| Infinity: 1 / 0 | |
| }, Module.asmLibraryArg = { | |
| abort: abort, | |
| assert: assert, | |
| invoke_iiiiiiii: invoke_iiiiiiii, | |
| invoke_iiii: invoke_iiii, | |
| invoke_viiiii: invoke_viiiii, | |
| invoke_iiiiiid: invoke_iiiiiid, | |
| invoke_vi: invoke_vi, | |
| invoke_vii: invoke_vii, | |
| invoke_iiiiiii: invoke_iiiiiii, | |
| invoke_iiiiid: invoke_iiiiid, | |
| invoke_ii: invoke_ii, | |
| invoke_viii: invoke_viii, | |
| invoke_v: invoke_v, | |
| invoke_iiiiiiiii: invoke_iiiiiiiii, | |
| invoke_iiiii: invoke_iiiii, | |
| invoke_viiiiii: invoke_viiiiii, | |
| invoke_iii: invoke_iii, | |
| invoke_iiiiii: invoke_iiiiii, | |
| invoke_viiii: invoke_viiii, | |
| _fabs: _fabs, | |
| _pthread_cleanup_pop: _pthread_cleanup_pop, | |
| _pthread_cond_wait: _pthread_cond_wait, | |
| floatReadValueFromPointer: floatReadValueFromPointer, | |
| simpleReadValueFromPointer: simpleReadValueFromPointer, | |
| integerReadValueFromPointer: integerReadValueFromPointer, | |
| __embind_register_memory_view: __embind_register_memory_view, | |
| throwInternalError: throwInternalError, | |
| get_first_emval: get_first_emval, | |
| ___syscall6: ___syscall6, | |
| ___cxa_guard_acquire: ___cxa_guard_acquire, | |
| ___setErrNo: ___setErrNo, | |
| ___gxx_personality_v0: ___gxx_personality_v0, | |
| __embind_register_integer: __embind_register_integer, | |
| __embind_register_void: __embind_register_void, | |
| ___assert_fail: ___assert_fail, | |
| ___cxa_allocate_exception: ___cxa_allocate_exception, | |
| __ZSt18uncaught_exceptionv: __ZSt18uncaught_exceptionv, | |
| extendError: extendError, | |
| getShiftFromSize: getShiftFromSize, | |
| __embind_register_function: __embind_register_function, | |
| __embind_register_emval: __embind_register_emval, | |
| __addDays: __addDays, | |
| _strftime_l: _strftime_l, | |
| throwBindingError: throwBindingError, | |
| _emscripten_set_main_loop_timing: _emscripten_set_main_loop_timing, | |
| __emval_register: __emval_register, | |
| _sbrk: _sbrk, | |
| __embind_register_std_wstring: __embind_register_std_wstring, | |
| _emscripten_memcpy_big: _emscripten_memcpy_big, | |
| __embind_register_bool: __embind_register_bool, | |
| ___resumeException: ___resumeException, | |
| ___cxa_find_matching_catch: ___cxa_find_matching_catch, | |
| _sysconf: _sysconf, | |
| _embind_repr: _embind_repr, | |
| ___cxa_begin_catch: ___cxa_begin_catch, | |
| _strftime: _strftime, | |
| createNamedFunction: createNamedFunction, | |
| embind_init_charCodes: embind_init_charCodes, | |
| readLatin1String: readLatin1String, | |
| throwUnboundTypeError: throwUnboundTypeError, | |
| _pthread_self: _pthread_self, | |
| craftInvokerFunction: craftInvokerFunction, | |
| __emval_decref: __emval_decref, | |
| _pthread_once: _pthread_once, | |
| _pthread_mutex_unlock: _pthread_mutex_unlock, | |
| _pthread_getspecific: _pthread_getspecific, | |
| __embind_register_float: __embind_register_float, | |
| ___syscall146: ___syscall146, | |
| makeLegalFunctionName: makeLegalFunctionName, | |
| whenDependentTypesAreResolved: whenDependentTypesAreResolved, | |
| ___syscall54: ___syscall54, | |
| ___unlock: ___unlock, | |
| heap32VectorToArray: heap32VectorToArray, | |
| init_emval: init_emval, | |
| __isLeapYear: __isLeapYear, | |
| _emscripten_set_main_loop: _emscripten_set_main_loop, | |
| ___cxa_guard_release: ___cxa_guard_release, | |
| getTypeName: getTypeName, | |
| new_: new_, | |
| _pthread_setspecific: _pthread_setspecific, | |
| ___cxa_atexit: ___cxa_atexit, | |
| registerType: registerType, | |
| ___cxa_throw: ___cxa_throw, | |
| _pthread_cond_broadcast: _pthread_cond_broadcast, | |
| ___lock: ___lock, | |
| __arraySum: __arraySum, | |
| _abort: _abort, | |
| _pthread_cleanup_push: _pthread_cleanup_push, | |
| ensureOverloadTable: ensureOverloadTable, | |
| count_emval_handles: count_emval_handles, | |
| _time: _time, | |
| _pthread_mutex_lock: _pthread_mutex_lock, | |
| runDestructors: runDestructors, | |
| _pthread_key_create: _pthread_key_create, | |
| _atexit: _atexit, | |
| ___syscall140: ___syscall140, | |
| exposePublicSymbol: exposePublicSymbol, | |
| __embind_register_std_string: __embind_register_std_string, | |
| replacePublicSymbol: replacePublicSymbol, | |
| requireFunction: requireFunction, | |
| STACKTOP: STACKTOP, | |
| STACK_MAX: STACK_MAX, | |
| tempDoublePtr: tempDoublePtr, | |
| ABORT: ABORT, | |
| cttz_i8: cttz_i8, | |
| ___dso_handle: ___dso_handle | |
| }; | |
| var asm = function (e, t, n) { | |
| "use asm"; | |
| var r = new e.Int8Array(n); | |
| var i = new e.Int16Array(n); | |
| var a = new e.Int32Array(n); | |
| var o = new e.Uint8Array(n); | |
| var s = new e.Uint16Array(n); | |
| var l = new e.Uint32Array(n); | |
| var u = new e.Float32Array(n); | |
| var c = new e.Float64Array(n); | |
| var f = t.STACKTOP | 0; | |
| var d = t.STACK_MAX | 0; | |
| var p = t.tempDoublePtr | 0; | |
| var h = t.ABORT | 0; | |
| var y = t.cttz_i8 | 0; | |
| var m = t.___dso_handle | 0; | |
| var _ = 0; | |
| var g = 0; | |
| var b = 0; | |
| var v = 0; | |
| var w = e.NaN, | |
| k = e.Infinity; | |
| var S = 0, | |
| I = 0, | |
| E = 0, | |
| A = 0, | |
| x = 0, | |
| C = 0, | |
| T = 0, | |
| P = 0, | |
| O = 0; | |
| var N = 0; | |
| var M = 0; | |
| var R = 0; | |
| var D = 0; | |
| var F = 0; | |
| var B = 0; | |
| var j = 0; | |
| var L = 0; | |
| var U = 0; | |
| var H = 0; | |
| var G = e.Math.floor; | |
| var z = e.Math.abs; | |
| var V = e.Math.sqrt; | |
| var K = e.Math.pow; | |
| var W = e.Math.cos; | |
| var q = e.Math.sin; | |
| var X = e.Math.tan; | |
| var Y = e.Math.acos; | |
| var J = e.Math.asin; | |
| var Q = e.Math.atan; | |
| var Z = e.Math.atan2; | |
| var $ = e.Math.exp; | |
| var ee = e.Math.log; | |
| var te = e.Math.ceil; | |
| var ne = e.Math.imul; | |
| var re = e.Math.min; | |
| var ie = e.Math.clz32; | |
| var ae = t.abort; | |
| var oe = t.assert; | |
| var se = t.invoke_iiiiiiii; | |
| var le = t.invoke_iiii; | |
| var ue = t.invoke_viiiii; | |
| var ce = t.invoke_iiiiiid; | |
| var fe = t.invoke_vi; | |
| var de = t.invoke_vii; | |
| var pe = t.invoke_iiiiiii; | |
| var he = t.invoke_iiiiid; | |
| var ye = t.invoke_ii; | |
| var me = t.invoke_viii; | |
| var _e = t.invoke_v; | |
| var ge = t.invoke_iiiiiiiii; | |
| var be = t.invoke_iiiii; | |
| var ve = t.invoke_viiiiii; | |
| var we = t.invoke_iii; | |
| var ke = t.invoke_iiiiii; | |
| var Se = t.invoke_viiii; | |
| var Ie = t._fabs; | |
| var Ee = t._pthread_cleanup_pop; | |
| var Ae = t._pthread_cond_wait; | |
| var xe = t.floatReadValueFromPointer; | |
| var Ce = t.simpleReadValueFromPointer; | |
| var Te = t.integerReadValueFromPointer; | |
| var Pe = t.__embind_register_memory_view; | |
| var Oe = t.throwInternalError; | |
| var Ne = t.get_first_emval; | |
| var Me = t.___syscall6; | |
| var Re = t.___cxa_guard_acquire; | |
| var De = t.___setErrNo; | |
| var Fe = t.___gxx_personality_v0; | |
| var Be = t.__embind_register_integer; | |
| var je = t.__embind_register_void; | |
| var Le = t.___assert_fail; | |
| var Ue = t.___cxa_allocate_exception; | |
| var He = t.__ZSt18uncaught_exceptionv; | |
| var Ge = t.extendError; | |
| var ze = t.getShiftFromSize; | |
| var Ve = t.__embind_register_function; | |
| var Ke = t.__embind_register_emval; | |
| var We = t.__addDays; | |
| var qe = t._strftime_l; | |
| var Xe = t.throwBindingError; | |
| var Ye = t._emscripten_set_main_loop_timing; | |
| var Je = t.__emval_register; | |
| var Qe = t._sbrk; | |
| var Ze = t.__embind_register_std_wstring; | |
| var $e = t._emscripten_memcpy_big; | |
| var et = t.__embind_register_bool; | |
| var tt = t.___resumeException; | |
| var nt = t.___cxa_find_matching_catch; | |
| var rt = t._sysconf; | |
| var it = t._embind_repr; | |
| var at = t.___cxa_begin_catch; | |
| var ot = t._strftime; | |
| var st = t.createNamedFunction; | |
| var lt = t.embind_init_charCodes; | |
| var ut = t.readLatin1String; | |
| var ct = t.throwUnboundTypeError; | |
| var ft = t._pthread_self; | |
| var dt = t.craftInvokerFunction; | |
| var pt = t.__emval_decref; | |
| var ht = t._pthread_once; | |
| var yt = t._pthread_mutex_unlock; | |
| var mt = t._pthread_getspecific; | |
| var _t = t.__embind_register_float; | |
| var gt = t.___syscall146; | |
| var bt = t.makeLegalFunctionName; | |
| var vt = t.whenDependentTypesAreResolved; | |
| var wt = t.___syscall54; | |
| var kt = t.___unlock; | |
| var St = t.heap32VectorToArray; | |
| var It = t.init_emval; | |
| var Et = t.__isLeapYear; | |
| var At = t._emscripten_set_main_loop; | |
| var xt = t.___cxa_guard_release; | |
| var Ct = t.getTypeName; | |
| var Tt = t.new_; | |
| var Pt = t._pthread_setspecific; | |
| var Ot = t.___cxa_atexit; | |
| var Nt = t.registerType; | |
| var Mt = t.___cxa_throw; | |
| var Rt = t._pthread_cond_broadcast; | |
| var Dt = t.___lock; | |
| var Ft = t.__arraySum; | |
| var Bt = t._abort; | |
| var jt = t._pthread_cleanup_push; | |
| var Lt = t.ensureOverloadTable; | |
| var Ut = t.count_emval_handles; | |
| var Ht = t._time; | |
| var Gt = t._pthread_mutex_lock; | |
| var zt = t.runDestructors; | |
| var Vt = t._pthread_key_create; | |
| var Kt = t._atexit; | |
| var Wt = t.___syscall140; | |
| var qt = t.exposePublicSymbol; | |
| var Xt = t.__embind_register_std_string; | |
| var Yt = t.replacePublicSymbol; | |
| var Jt = t.requireFunction; | |
| var Qt = 0; | |
| function Zt(e, t) { | |
| e = e | 0; | |
| t = t | 0; | |
| var n = 0, | |
| r = 0, | |
| i = 0, | |
| o = 0, | |
| s = 0, | |
| l = 0, | |
| u = 0, | |
| c = 0, | |
| f = 0, | |
| d = 0, | |
| p = 0, | |
| h = 0, | |
| y = 0, | |
| m = 0, | |
| _ = 0; | |
| h = e + t | 0; | |
| n = a[e + 4 >> 2] | 0; | |
| do { | |
| if (!(n & 1)) { | |
| i = a[e >> 2] | 0; | |
| if (!(n & 3)) return; | |
| f = e + (0 - i) | 0; | |
| c = i + t | 0; | |
| l = a[1676] | 0; | |
| if (f >>> 0 < l >>> 0) Bt(); | |
| if ((f | 0) == (a[1677] | 0)) { | |
| e = h + 4 | 0; | |
| n = a[e >> 2] | 0; | |
| if ((n & 3 | 0) != 3) { | |
| _ = f; | |
| o = c; | |
| break | |
| } | |
| a[1674] = c; | |
| a[e >> 2] = n & -2; | |
| a[f + 4 >> 2] = c | 1; | |
| a[f + c >> 2] = c; | |
| return | |
| } | |
| r = i >>> 3; | |
| if (i >>> 0 < 256) { | |
| e = a[f + 8 >> 2] | 0; | |
| t = a[f + 12 >> 2] | 0; | |
| n = 6728 + (r << 1 << 2) | 0; | |
| if ((e | 0) != (n | 0)) { | |
| if (e >>> 0 < l >>> 0) Bt(); | |
| if ((a[e + 12 >> 2] | 0) != (f | 0)) Bt() | |
| } | |
| if ((t | 0) == (e | 0)) { | |
| a[1672] = a[1672] & ~(1 << r); | |
| _ = f; | |
| o = c; | |
| break | |
| } | |
| if ((t | 0) != (n | 0)) { | |
| if (t >>> 0 < l >>> 0) Bt(); | |
| n = t + 8 | 0; | |
| if ((a[n >> 2] | 0) == (f | 0)) s = n; | |
| else Bt() | |
| } else s = t + 8 | 0; | |
| a[e + 12 >> 2] = t; | |
| a[s >> 2] = e; | |
| _ = f; | |
| o = c; | |
| break | |
| } | |
| i = a[f + 24 >> 2] | 0; | |
| t = a[f + 12 >> 2] | 0; | |
| do { | |
| if ((t | 0) == (f | 0)) { | |
| e = f + 16 | 0; | |
| t = e + 4 | 0; | |
| n = a[t >> 2] | 0; | |
| if (!n) { | |
| n = a[e >> 2] | 0; | |
| if (!n) { | |
| u = 0; | |
| break | |
| } | |
| } else e = t; | |
| while (1) { | |
| t = n + 20 | 0; | |
| r = a[t >> 2] | 0; | |
| if (r) { | |
| n = r; | |
| e = t; | |
| continue | |
| } | |
| t = n + 16 | 0; | |
| r = a[t >> 2] | 0; | |
| if (!r) break; | |
| else { | |
| n = r; | |
| e = t | |
| } | |
| } | |
| if (e >>> 0 < l >>> 0) Bt(); | |
| else { | |
| a[e >> 2] = 0; | |
| u = n; | |
| break | |
| } | |
| } else { | |
| r = a[f + 8 >> 2] | 0; | |
| if (r >>> 0 < l >>> 0) Bt(); | |
| n = r + 12 | 0; | |
| if ((a[n >> 2] | 0) != (f | 0)) Bt(); | |
| e = t + 8 | 0; | |
| if ((a[e >> 2] | 0) == (f | 0)) { | |
| a[n >> 2] = t; | |
| a[e >> 2] = r; | |
| u = t; | |
| break | |
| } else Bt() | |
| } | |
| } while (0); | |
| if (i) { | |
| n = a[f + 28 >> 2] | 0; | |
| e = 6992 + (n << 2) | 0; | |
| if ((f | 0) == (a[e >> 2] | 0)) { | |
| a[e >> 2] = u; | |
| if (!u) { | |
| a[1673] = a[1673] & ~(1 << n); | |
| _ = f; | |
| o = c; | |
| break | |
| } | |
| } else { | |
| if (i >>> 0 < (a[1676] | 0) >>> 0) Bt(); | |
| n = i + 16 | 0; | |
| if ((a[n >> 2] | 0) == (f | 0)) a[n >> 2] = u; | |
| else a[i + 20 >> 2] = u; | |
| if (!u) { | |
| _ = f; | |
| o = c; | |
| break | |
| } | |
| } | |
| t = a[1676] | 0; | |
| if (u >>> 0 < t >>> 0) Bt(); | |
| a[u + 24 >> 2] = i; | |
| n = f + 16 | 0; | |
| e = a[n >> 2] | 0; | |
| do { | |
| if (e) | |
| if (e >>> 0 < t >>> 0) Bt(); | |
| else { | |
| a[u + 16 >> 2] = e; | |
| a[e + 24 >> 2] = u; | |
| break | |
| } | |
| } while (0); | |
| n = a[n + 4 >> 2] | 0; | |
| if (n) { | |
| if (n >>> 0 < (a[1676] | 0) >>> 0) Bt(); | |
| else { | |
| a[u + 20 >> 2] = n; | |
| a[n + 24 >> 2] = u; | |
| _ = f; | |
| o = c; | |
| break | |
| } | |
| } else { | |
| _ = f; | |
| o = c | |
| } | |
| } else { | |
| _ = f; | |
| o = c | |
| } | |
| } else { | |
| _ = e; | |
| o = t | |
| } | |
| } while (0); | |
| s = a[1676] | 0; | |
| if (h >>> 0 < s >>> 0) Bt(); | |
| n = h + 4 | 0; | |
| e = a[n >> 2] | 0; | |
| if (!(e & 2)) { | |
| if ((h | 0) == (a[1678] | 0)) { | |
| m = (a[1675] | 0) + o | 0; | |
| a[1675] = m; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment