Skip to content

Instantly share code, notes, and snippets.

@afkvido
Created April 18, 2022 09:33
Show Gist options
  • Save afkvido/f86eb20c26cc88550979e8fc8cd745c7 to your computer and use it in GitHub Desktop.
Save afkvido/f86eb20c26cc88550979e8fc8cd745c7 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
function _optionalChain(ops) {
let lastAccessLHS = undefined;
let value = ops[0];
let i = 1;
while (i < ops.length) {
const op = ops[i];
const fn = ops[i + 1];
i += 2;
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
return undefined;
}
if (op === 'access' || op === 'optionalAccess') {
lastAccessLHS = value;
value = fn(value);
} else if (op === 'call' || op === 'optionalCall') {
value = fn((...args) => value.call(lastAccessLHS, ...args));
lastAccessLHS = undefined;
}
}
return value;
}
const _getBox = (o, t) => ({
string: "+",
style: "font-size: 1px; padding: 0 " + Math.floor(o / 2) + "px; line-height: " + t + "px;"
});
console.image = ((o, t = 1) => {
const e = new Image;
e.onload = (() => {
const n = _getBox(e.width * t, e.height * t);
console.log("%c" + n.string, n.style + "background: url(" + o + "); background-size: " + e.width * t + "px " +
e.height * t + "px; color: transparent;")
}), e.src = o
});
const oldLog = console.log.bind(console);
console.log = (...d) => {
if (d && d.length && typeof d[0] === "string" && d[0].includes("This is a browser feature for developers only")) return "lol no";
if (_optionalChain([new Error(), 'access', _2 => _2.stack, 'optionalAccess', _3 => _3.split, 'call', _4 => _4("\n"), 'access', _5 => _5.reverse, 'call', _6 => _6(), 'access', _7 => _7[0], 'optionalAccess', _8 => _8.includes, 'call', _9 => _9("load-identity")])) return "fuck you";
return oldLog(...d);
};
_.variables = Object.create(null);
! function (v, O) {
for (var j in O) v[j] = O[j]
}(window, function (v) {
var O = {};
window._.modules = O;
function j(p) {
if (O[p]) return O[p].exports;
var m = O[p] = {
i: p,
l: !1,
exports: {}
};
return v[p].call(m.exports, m, m.exports, j), m.l = !0, m.exports
}
return j.m = v, j.c = O, j.d = function (v, O, p) {
j.o(v, O) || Object.defineProperty(v, O, {
enumerable: !0,
get: p
})
}, j.r = function (v) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(v, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(v, "__esModule", {
value: !0
})
}, j.t = function (v, O) {
if (1 & O && (v = j(v)), 8 & O) return v;
if (4 & O && "object" == typeof v && v && v.__esModule) return v;
var p = Object.create(null);
if (j.r(p), Object.defineProperty(p, "default", {
enumerable: !0,
value: v
}), 2 & O && "string" != typeof v)
for (var m in v) j.d(p, m, function (O) {
return v[O]
}.bind(null, m));
return p
}, j.n = function (v) {
var O = v && v.__esModule ? function () {
return v.default
} : function () {
return v
};
return j.d(O, "a", O), O
}, j.o = function (v, O) {
return Object.prototype.hasOwnProperty.call(v, O)
}, j.p = "", j(j.s = 1129)
}([function (v, O, j) {
"use strict";
var p = j(896);
j.d(O, "EInjectionIdentifiers", (function () {
return p.a
})), j.d(O, "GameIdentifiers", (function () {
return p.b
}));
var m = j(897);
j.d(O, "EAssetType", (function () {
return m.a
}));
var g = j(1112);
j.d(O, "BaseLocalizer", (function () {
return g.a
})), j.d(O, "Localizer", (function () {
return g.b
}));
var y = j(1118);
j.d(O, "ConsoleLogger", (function () {
return y.a
})), j.d(O, "LogLevel", (function () {
return y.b
})), j.d(O, "Logger", (function () {
return y.c
})), j.d(O, "RemoteLogger", (function () {
return y.d
}));
j(1120);
var _ = j(1110);
j.d(O, "BitFieldBitComponent", (function () {
return _.a
})), j.d(O, "SaveDataComponent", (function () {
return _.b
})), j.d(O, "SaveDatastoreComponent", (function () {
return _.c
}));
var w = j(1104);
j.d(O, "Action", (function () {
return w.a
})), j.d(O, "FSMController", (function () {
return w.b
})), j.d(O, "FSMFactories", (function () {
return w.c
})), j.d(O, "FSMService", (function () {
return w.d
})), j.d(O, "actionable", (function () {
return w.e
}));
var E = j(1108);
j.d(O, "EWebRequestMethod", (function () {
return E.a
})), j.d(O, "FetchHttpClient", (function () {
return E.b
})), j.d(O, "JsonResponseInterceptor", (function () {
return E.c
})), j.d(O, "JsonWebRequestBody", (function () {
return E.d
})), j.d(O, "ProtobufResponseInterceptor", (function () {
return E.e
})), j.d(O, "ProtobufWebRequestBody", (function () {
return E.f
})), j.d(O, "SocketIOWebSocket", (function () {
return E.g
})), j.d(O, "WebRequest", (function () {
return E.h
}));
var T = j(1106);
j.d(O, "CirclePrimitive", (function () {
return T.a
})), j.d(O, "EHorizontalTextAlignment", (function () {
return T.b
})), j.d(O, "Graphic", (function () {
return T.c
})), j.d(O, "PolygonPrimitive", (function () {
return T.d
})), j.d(O, "Primitive", (function () {
return T.e
})), j.d(O, "RectanglePrimitive", (function () {
return T.f
})), j.d(O, "RenderComponent", (function () {
return T.g
})), j.d(O, "SlicedGraphic", (function () {
return T.h
})), j.d(O, "SpineComponent", (function () {
return T.i
})), j.d(O, "StringTextSource", (function () {
return T.j
})), j.d(O, "Text", (function () {
return T.k
}));
var I = j(1113);
j.d(O, "BitField", (function () {
return I.a
})), j.d(O, "CancelablePromise", (function () {
return I.b
})), j.d(O, "DeviceUtils", (function () {
return I.c
})), j.d(O, "GameObjectUtils", (function () {
return I.d
})), j.d(O, "InjectionUtil", (function () {
return I.e
})), j.d(O, "PixiUtils", (function () {
return I.f
})), j.d(O, "PromiseUtil", (function () {
return I.g
})), j.d(O, "ResolvablePromise", (function () {
return I.h
})), j.d(O, "ResolvablePromiseCollection", (function () {
return I.i
})), j.d(O, "ResolvablePromiseQueue", (function () {
return I.j
})), j.d(O, "SpineUtil", (function () {
return I.k
})), j.d(O, "Utils", (function () {
return I.l
}));
var A = j(910);
j.o(A, "AlternatingAnchorGridLayout") && j.d(O, "AlternatingAnchorGridLayout", (function () {
return A.AlternatingAnchorGridLayout
})), j.o(A, "ArraySet") && j.d(O, "ArraySet", (function () {
return A.ArraySet
})), j.o(A, "ArrayUtils") && j.d(O, "ArrayUtils", (function () {
return A.ArrayUtils
})), j.o(A, "BoundsUtils") && j.d(O, "BoundsUtils", (function () {
return A.BoundsUtils
})), j.o(A, "Cache") && j.d(O, "Cache", (function () {
return A.Cache
})), j.o(A, "CacheAssetType") && j.d(O, "CacheAssetType", (function () {
return A.CacheAssetType
})), j.o(A, "Camera") && j.d(O, "Camera", (function () {
return A.Camera
})), j.o(A, "Circle") && j.d(O, "Circle", (function () {
return A.Circle
})), j.o(A, "Color") && j.d(O, "Color", (function () {
return A.Color
})), j.o(A, "Component") && j.d(O, "Component", (function () {
return A.Component
})), j.o(A, "Components") && j.d(O, "Components", (function () {
return A.Components
})), j.o(A, "ConditionEvaluatorComponent") && j.d(O, "ConditionEvaluatorComponent", (function () {
return A.ConditionEvaluatorComponent
})), j.o(A, "Container") && j.d(O, "Container", (function () {
return A.Container
})), j.o(A, "ContextBinding") && j.d(O, "ContextBinding", (function () {
return A.ContextBinding
})), j.o(A, "DocumentUtils") && j.d(O, "DocumentUtils", (function () {
return A.DocumentUtils
})), j.o(A, "EColors") && j.d(O, "EColors", (function () {
return A.EColors
})), j.o(A, "EComponentPath") && j.d(O, "EComponentPath", (function () {
return A.EComponentPath
})), j.o(A, "EEditorAssetType") && j.d(O, "EEditorAssetType", (function () {
return A.EEditorAssetType
})), j.o(A, "Easing") && j.d(O, "Easing", (function () {
return A.Easing
})), j.o(A, "Events") && j.d(O, "Events", (function () {
return A.Events
})), j.o(A, "Frame") && j.d(O, "Frame", (function () {
return A.Frame
})), j.o(A, "FrameWorkManager") && j.d(O, "FrameWorkManager", (function () {
return A.FrameWorkManager
})), j.o(A, "FrameworkApp") && j.d(O, "FrameworkApp", (function () {
return A.FrameworkApp
})), j.o(A, "Game") && j.d(O, "Game", (function () {
return A.Game
})), j.o(A, "GameObject") && j.d(O, "GameObject", (function () {
return A.GameObject
})), j.o(A, "GameObjectContext") && j.d(O, "GameObjectContext", (function () {
return A.GameObjectContext
})), j.o(A, "GameObjectFactory") && j.d(O, "GameObjectFactory", (function () {
return A.GameObjectFactory
})), j.o(A, "GameObjectReference") && j.d(O, "GameObjectReference", (function () {
return A.GameObjectReference
})), j.o(A, "GameState") && j.d(O, "GameState", (function () {
return A.GameState
})), j.o(A, "GridLayout") && j.d(O, "GridLayout", (function () {
return A.GridLayout
})), j.o(A, "InjectableClass") && j.d(O, "InjectableClass", (function () {
return A.InjectableClass
})), j.o(A, "InjectableComponent") && j.d(O, "InjectableComponent", (function () {
return A.InjectableComponent
})), j.o(A, "Installer") && j.d(O, "Installer", (function () {
return A.Installer
})), j.o(A, "IteratedNumber") && j.d(O, "IteratedNumber", (function () {
return A.IteratedNumber
})), j.o(A, "IterationType") && j.d(O, "IterationType", (function () {
return A.IterationType
})), j.o(A, "LayerSorting") && j.d(O, "LayerSorting", (function () {
return A.LayerSorting
})), j.o(A, "LegacyTransform") && j.d(O, "LegacyTransform", (function () {
return A.LegacyTransform
})), j.o(A, "LoadAreaCameraFollowController") && j.d(O, "LoadAreaCameraFollowController", (function () {
return A.LoadAreaCameraFollowController
})), j.o(A, "MathUtils") && j.d(O, "MathUtils", (function () {
return A.MathUtils
})), j.o(A, "Matrix3x3") && j.d(O, "Matrix3x3", (function () {
return A.Matrix3x3
})), j.o(A, "NavMeshPathfinderComponent") && j.d(O, "NavMeshPathfinderComponent", (function () {
return A.NavMeshPathfinderComponent
})), j.o(A, "ObjectPool") && j.d(O, "ObjectPool", (function () {
return A.ObjectPool
})), j.o(A, "ParticleBehaviourAlpha") && j.d(O, "ParticleBehaviourAlpha", (function () {
return A.ParticleBehaviourAlpha
})), j.o(A, "ParticleBehaviourAlphaMaximum") && j.d(O, "ParticleBehaviourAlphaMaximum", (function () {
return A.ParticleBehaviourAlphaMaximum
})), j.o(A, "ParticleBehaviourFlipbookAnimation") && j.d(O, "ParticleBehaviourFlipbookAnimation", (function () {
return A.ParticleBehaviourFlipbookAnimation
})), j.o(A, "ParticleBehaviourLifeFromPosition") && j.d(O, "ParticleBehaviourLifeFromPosition", (function () {
return A.ParticleBehaviourLifeFromPosition
})), j.o(A, "ParticleBehaviourScale") && j.d(O, "ParticleBehaviourScale", (function () {
return A.ParticleBehaviourScale
})), j.o(A, "ParticleInitializeImage") && j.d(O, "ParticleInitializeImage", (function () {
return A.ParticleInitializeImage
})), j.o(A, "ParticleInitializeLife") && j.d(O, "ParticleInitializeLife", (function () {
return A.ParticleInitializeLife
})), j.o(A, "ParticleInitializePositionLine") && j.d(O, "ParticleInitializePositionLine", (function () {
return A.ParticleInitializePositionLine
})), j.o(A, "ParticleInitializeRotation") && j.d(O, "ParticleInitializeRotation", (function () {
return A.ParticleInitializeRotation
})), j.o(A, "ParticleInitializeRotationalVelocity") && j.d(O, "ParticleInitializeRotationalVelocity", (function () {
return A.ParticleInitializeRotationalVelocity
})), j.o(A, "ParticleInitializeScale") && j.d(O, "ParticleInitializeScale", (function () {
return A.ParticleInitializeScale
})), j.o(A, "ParticleInitializeVelocity") && j.d(O, "ParticleInitializeVelocity", (function () {
return A.ParticleInitializeVelocity
})), j.o(A, "ParticleInitializeVelocityXY") && j.d(O, "ParticleInitializeVelocityXY", (function () {
return A.ParticleInitializeVelocityXY
})), j.o(A, "ParticleInitializer") && j.d(O, "ParticleInitializer", (function () {
return A.ParticleInitializer
})), j.o(A, "ParticleSystem") && j.d(O, "ParticleSystem", (function () {
return A.ParticleSystem
})), j.o(A, "PathLocomotionComponent") && j.d(O, "PathLocomotionComponent", (function () {
return A.PathLocomotionComponent
})), j.o(A, "PrefabLoader") && j.d(O, "PrefabLoader", (function () {
return A.PrefabLoader
})), j.o(A, "PrefabService") && j.d(O, "PrefabService", (function () {
return A.PrefabService
})), j.o(A, "ProjectAssetLoader") && j.d(O, "ProjectAssetLoader", (function () {
return A.ProjectAssetLoader
})), j.o(A, "RandomDataGenerator") && j.d(O, "RandomDataGenerator", (function () {
return A.RandomDataGenerator
})), j.o(A, "RectTransform") && j.d(O, "RectTransform", (function () {
return A.RectTransform
})), j.o(A, "Rectangle") && j.d(O, "Rectangle", (function () {
return A.Rectangle
})), j.o(A, "SceneComponent") && j.d(O, "SceneComponent", (function () {
return A.SceneComponent
})), j.o(A, "SceneManager") && j.d(O, "SceneManager", (function () {
return A.SceneManager
})), j.o(A, "Signal") && j.d(O, "Signal", (function () {
return A.Signal
})), j.o(A, "Size") && j.d(O, "Size", (function () {
return A.Size
})), j.o(A, "Smoothed") && j.d(O, "Smoothed", (function () {
return A.Smoothed
})), j.o(A, "StreamedMapComponent") && j.d(O, "StreamedMapComponent", (function () {
return A.StreamedMapComponent
})), j.o(A, "TMXMapCombiner") && j.d(O, "TMXMapCombiner", (function () {
return A.TMXMapCombiner
})), j.o(A, "TMXMapLoader") && j.d(O, "TMXMapLoader", (function () {
return A.TMXMapLoader
})), j.o(A, "TMXMapLoaderTileTransform") && j.d(O, "TMXMapLoaderTileTransform", (function () {
return A.TMXMapLoaderTileTransform
})), j.o(A, "TMXMapStreamer") && j.d(O, "TMXMapStreamer", (function () {
return A.TMXMapStreamer
})), j.o(A, "TMXTile") && j.d(O, "TMXTile", (function () {
return A.TMXTile
})), j.o(A, "TileMapLoaderComponent") && j.d(O, "TileMapLoaderComponent", (function () {
return A.TileMapLoaderComponent
})), j.o(A, "Time") && j.d(O, "Time", (function () {
return A.Time
})), j.o(A, "Transform") && j.d(O, "Transform", (function () {
return A.Transform
})), j.o(A, "Vector2") && j.d(O, "Vector2", (function () {
return A.Vector2
})), j.o(A, "assetTag") && j.d(O, "assetTag", (function () {
return A.assetTag
})), j.o(A, "componentable") && j.d(O, "componentable", (function () {
return A.componentable
})), j.o(A, "editorAssetType") && j.d(O, "editorAssetType", (function () {
return A.editorAssetType
})), j.o(A, "ignoreInEditor") && j.d(O, "ignoreInEditor", (function () {
return A.ignoreInEditor
})), j.o(A, "injectComponentProperty") && j.d(O, "injectComponentProperty", (function () {
return A.injectComponentProperty
})), j.o(A, "injectFunction") && j.d(O, "injectFunction", (function () {
return A.injectFunction
})), j.o(A, "injectParameter") && j.d(O, "injectParameter", (function () {
return A.injectParameter
})), j.o(A, "injectProperty") && j.d(O, "injectProperty", (function () {
return A.injectProperty
})), j.o(A, "objectSerializable") && j.d(O, "objectSerializable", (function () {
return A.objectSerializable
})), j.o(A, "prefabConstructable") && j.d(O, "prefabConstructable", (function () {
return A.prefabConstructable
})), j.o(A, "requireComponent") && j.d(O, "requireComponent", (function () {
return A.requireComponent
})), j.o(A, "serializable") && j.d(O, "serializable", (function () {
return A.serializable
})), j.o(A, "serializeArray") && j.d(O, "serializeArray", (function () {
return A.serializeArray
})), j.o(A, "serializeBoolean") && j.d(O, "serializeBoolean", (function () {
return A.serializeBoolean
})), j.o(A, "serializeColor") && j.d(O, "serializeColor", (function () {
return A.serializeColor
})), j.o(A, "serializeComponent") && j.d(O, "serializeComponent", (function () {
return A.serializeComponent
})), j.o(A, "serializeEnum") && j.d(O, "serializeEnum", (function () {
return A.serializeEnum
})), j.o(A, "serializeGameObject") && j.d(O, "serializeGameObject", (function () {
return A.serializeGameObject
})), j.o(A, "serializeJSON") && j.d(O, "serializeJSON", (function () {
return A.serializeJSON
})), j.o(A, "serializeMapID") && j.d(O, "serializeMapID", (function () {
return A.serializeMapID
})), j.o(A, "serializeNumber") && j.d(O, "serializeNumber", (function () {
return A.serializeNumber
})), j.o(A, "serializeSceneComponent") && j.d(O, "serializeSceneComponent", (function () {
return A.serializeSceneComponent
})), j.o(A, "serializeSignal") && j.d(O, "serializeSignal", (function () {
return A.serializeSignal
})), j.o(A, "serializeString") && j.d(O, "serializeString", (function () {
return A.serializeString
})), j.o(A, "serializeVector") && j.d(O, "serializeVector", (function () {
return A.serializeVector
})), j.o(A, "skipMapExport") && j.d(O, "skipMapExport", (function () {
return A.skipMapExport
}));
var S = j(1109);
j.d(O, "ContextBinding", (function () {
return S.a
})), j.d(O, "GameObjectContext", (function () {
return S.b
})), j.d(O, "InjectableClass", (function () {
return S.c
})), j.d(O, "InjectableComponent", (function () {
return S.d
})), j.d(O, "Installer", (function () {
return S.e
})), j.d(O, "injectComponentProperty", (function () {
return S.f
})), j.d(O, "injectFunction", (function () {
return S.g
})), j.d(O, "injectParameter", (function () {
return S.h
})), j.d(O, "injectProperty", (function () {
return S.i
}));
var C = j(1105);
j.d(O, "IteratedNumber", (function () {
return C.a
})), j.d(O, "IterationType", (function () {
return C.b
})), j.d(O, "ParticleBehaviourAlpha", (function () {
return C.c
})), j.d(O, "ParticleBehaviourAlphaMaximum", (function () {
return C.d
})), j.d(O, "ParticleBehaviourFlipbookAnimation", (function () {
return C.e
})), j.d(O, "ParticleBehaviourLifeFromPosition", (function () {
return C.f
})), j.d(O, "ParticleBehaviourScale", (function () {
return C.g
})), j.d(O, "ParticleInitializeImage", (function () {
return C.h
})), j.d(O, "ParticleInitializeLife", (function () {
return C.i
})), j.d(O, "ParticleInitializePositionLine", (function () {
return C.j
})), j.d(O, "ParticleInitializeRotation", (function () {
return C.k
})), j.d(O, "ParticleInitializeRotationalVelocity", (function () {
return C.l
})), j.d(O, "ParticleInitializeScale", (function () {
return C.m
})), j.d(O, "ParticleInitializeVelocity", (function () {
return C.n
})), j.d(O, "ParticleInitializeVelocityXY", (function () {
return C.o
})), j.d(O, "ParticleInitializer", (function () {
return C.p
})), j.d(O, "ParticleSystem", (function () {
return C.q
}));
var D = j(935);
j.d(O, "ObjectPool", (function () {
return D.a
}));
var M = j(1115);
j.d(O, "PrefabLoader", (function () {
return M.a
})), j.d(O, "PrefabService", (function () {
return M.b
})), j.d(O, "assetTag", (function () {
return M.c
}));
var x = j(1116);
j.d(O, "AlternatingAnchorGridLayout", (function () {
return x.a
})), j.d(O, "GridLayout", (function () {
return x.b
}));
j(1121), j(1122), j(640);
var N = j(1123);
j.d(O, "EEditorAssetType", (function () {
return N.a
})), j.d(O, "editorAssetType", (function () {
return N.b
})), j.d(O, "requireComponent", (function () {
return N.c
})), j.d(O, "serializeArray", (function () {
return N.d
})), j.d(O, "serializeBoolean", (function () {
return N.e
})), j.d(O, "serializeColor", (function () {
return N.f
})), j.d(O, "serializeComponent", (function () {
return N.g
})), j.d(O, "serializeEnum", (function () {
return N.h
})), j.d(O, "serializeGameObject", (function () {
return N.i
})), j.d(O, "serializeJSON", (function () {
return N.j
})), j.d(O, "serializeMapID", (function () {
return N.k
})), j.d(O, "serializeNumber", (function () {
return N.l
})), j.d(O, "serializeSceneComponent", (function () {
return N.m
})), j.d(O, "serializeSignal", (function () {
return N.n
})), j.d(O, "serializeString", (function () {
return N.o
})), j.d(O, "serializeVector", (function () {
return N.p
}));
var P = j(936);
j.d(O, "LayerSorting", (function () {
return P.a
})), j.d(O, "SceneComponent", (function () {
return P.b
})), j.d(O, "SceneManager", (function () {
return P.c
}));
var R = j(937);
j.o(R, "ArraySet") && j.d(O, "ArraySet", (function () {
return R.ArraySet
})), j.o(R, "ArrayUtils") && j.d(O, "ArrayUtils", (function () {
return R.ArrayUtils
})), j.o(R, "BoundsUtils") && j.d(O, "BoundsUtils", (function () {
return R.BoundsUtils
})), j.o(R, "Cache") && j.d(O, "Cache", (function () {
return R.Cache
})), j.o(R, "CacheAssetType") && j.d(O, "CacheAssetType", (function () {
return R.CacheAssetType
})), j.o(R, "Camera") && j.d(O, "Camera", (function () {
return R.Camera
})), j.o(R, "Circle") && j.d(O, "Circle", (function () {
return R.Circle
})), j.o(R, "Color") && j.d(O, "Color", (function () {
return R.Color
})), j.o(R, "Component") && j.d(O, "Component", (function () {
return R.Component
})), j.o(R, "Components") && j.d(O, "Components", (function () {
return R.Components
})), j.o(R, "ConditionEvaluatorComponent") && j.d(O, "ConditionEvaluatorComponent", (function () {
return R.ConditionEvaluatorComponent
})), j.o(R, "Container") && j.d(O, "Container", (function () {
return R.Container
})), j.o(R, "DocumentUtils") && j.d(O, "DocumentUtils", (function () {
return R.DocumentUtils
})), j.o(R, "EColors") && j.d(O, "EColors", (function () {
return R.EColors
})), j.o(R, "EComponentPath") && j.d(O, "EComponentPath", (function () {
return R.EComponentPath
})), j.o(R, "Easing") && j.d(O, "Easing", (function () {
return R.Easing
})), j.o(R, "Events") && j.d(O, "Events", (function () {
return R.Events
})), j.o(R, "Frame") && j.d(O, "Frame", (function () {
return R.Frame
})), j.o(R, "FrameWorkManager") && j.d(O, "FrameWorkManager", (function () {
return R.FrameWorkManager
})), j.o(R, "FrameworkApp") && j.d(O, "FrameworkApp", (function () {
return R.FrameworkApp
})), j.o(R, "Game") && j.d(O, "Game", (function () {
return R.Game
})), j.o(R, "GameObject") && j.d(O, "GameObject", (function () {
return R.GameObject
})), j.o(R, "GameObjectFactory") && j.d(O, "GameObjectFactory", (function () {
return R.GameObjectFactory
})), j.o(R, "GameObjectReference") && j.d(O, "GameObjectReference", (function () {
return R.GameObjectReference
})), j.o(R, "GameState") && j.d(O, "GameState", (function () {
return R.GameState
})), j.o(R, "LegacyTransform") && j.d(O, "LegacyTransform", (function () {
return R.LegacyTransform
})), j.o(R, "LoadAreaCameraFollowController") && j.d(O, "LoadAreaCameraFollowController", (function () {
return R.LoadAreaCameraFollowController
})), j.o(R, "MathUtils") && j.d(O, "MathUtils", (function () {
return R.MathUtils
})), j.o(R, "Matrix3x3") && j.d(O, "Matrix3x3", (function () {
return R.Matrix3x3
})), j.o(R, "NavMeshPathfinderComponent") && j.d(O, "NavMeshPathfinderComponent", (function () {
return R.NavMeshPathfinderComponent
})), j.o(R, "PathLocomotionComponent") && j.d(O, "PathLocomotionComponent", (function () {
return R.PathLocomotionComponent
})), j.o(R, "ProjectAssetLoader") && j.d(O, "ProjectAssetLoader", (function () {
return R.ProjectAssetLoader
})), j.o(R, "RandomDataGenerator") && j.d(O, "RandomDataGenerator", (function () {
return R.RandomDataGenerator
})), j.o(R, "RectTransform") && j.d(O, "RectTransform", (function () {
return R.RectTransform
})), j.o(R, "Rectangle") && j.d(O, "Rectangle", (function () {
return R.Rectangle
})), j.o(R, "Signal") && j.d(O, "Signal", (function () {
return R.Signal
})), j.o(R, "Size") && j.d(O, "Size", (function () {
return R.Size
})), j.o(R, "Smoothed") && j.d(O, "Smoothed", (function () {
return R.Smoothed
})), j.o(R, "StreamedMapComponent") && j.d(O, "StreamedMapComponent", (function () {
return R.StreamedMapComponent
})), j.o(R, "TMXMapCombiner") && j.d(O, "TMXMapCombiner", (function () {
return R.TMXMapCombiner
})), j.o(R, "TMXMapLoader") && j.d(O, "TMXMapLoader", (function () {
return R.TMXMapLoader
})), j.o(R, "TMXMapLoaderTileTransform") && j.d(O, "TMXMapLoaderTileTransform", (function () {
return R.TMXMapLoaderTileTransform
})), j.o(R, "TMXMapStreamer") && j.d(O, "TMXMapStreamer", (function () {
return R.TMXMapStreamer
})), j.o(R, "TMXTile") && j.d(O, "TMXTile", (function () {
return R.TMXTile
})), j.o(R, "TileMapLoaderComponent") && j.d(O, "TileMapLoaderComponent", (function () {
return R.TileMapLoaderComponent
})), j.o(R, "Time") && j.d(O, "Time", (function () {
return R.Time
})), j.o(R, "Transform") && j.d(O, "Transform", (function () {
return R.Transform
})), j.o(R, "Vector2") && j.d(O, "Vector2", (function () {
return R.Vector2
})), j.o(R, "componentable") && j.d(O, "componentable", (function () {
return R.componentable
})), j.o(R, "ignoreInEditor") && j.d(O, "ignoreInEditor", (function () {
return R.ignoreInEditor
})), j.o(R, "objectSerializable") && j.d(O, "objectSerializable", (function () {
return R.objectSerializable
})), j.o(R, "prefabConstructable") && j.d(O, "prefabConstructable", (function () {
return R.prefabConstructable
})), j.o(R, "serializable") && j.d(O, "serializable", (function () {
return R.serializable
})), j.o(R, "skipMapExport") && j.d(O, "skipMapExport", (function () {
return R.skipMapExport
}));
var k = j(1119);
j.d(O, "ProjectAssetLoader", (function () {
return k.a
}));
var L = j(1124);
j.d(O, "Matrix3x3", (function () {
return L.a
})), j.d(O, "Size", (function () {
return L.b
})), j.d(O, "Vector2", (function () {
return L.c
}));
j(1111)
}, function (v, O, j) {
"use strict";
j.r(O), j.d(O, "__extends", (function () {
return m
})), j.d(O, "__assign", (function () {
return g
})), j.d(O, "__rest", (function () {
return y
})), j.d(O, "__decorate", (function () {
return _
})), j.d(O, "__param", (function () {
return w
})), j.d(O, "__metadata", (function () {
return E
})), j.d(O, "__awaiter", (function () {
return T
})), j.d(O, "__generator", (function () {
return I
})), j.d(O, "__exportStar", (function () {
return A
})), j.d(O, "__values", (function () {
return S
})), j.d(O, "__read", (function () {
return C
})), j.d(O, "__spread", (function () {
return D
})), j.d(O, "__spreadArrays", (function () {
return M
})), j.d(O, "__await", (function () {
return x
})), j.d(O, "__asyncGenerator", (function () {
return N
})), j.d(O, "__asyncDelegator", (function () {
return P
})), j.d(O, "__asyncValues", (function () {
return R
})), j.d(O, "__makeTemplateObject", (function () {
return k
})), j.d(O, "__importStar", (function () {
return L
})), j.d(O, "__importDefault", (function () {
return B
}));
var p = function (v, O) {
return (p = Object.setPrototypeOf || {
__proto__: []
}
instanceof Array && function (v, O) {
v.__proto__ = O
} || function (v, O) {
for (var j in O) O.hasOwnProperty(j) && (v[j] = O[j])
})(v, O)
};
function m(v, O) {
function j() {
this.constructor = v
}
p(v, O), v.prototype = null === O ? Object.create(O) : (j.prototype = O.prototype, new j)
}
var g = function () {
return (g = Object.assign || function (v) {
for (var O, j = 1, p = arguments.length; j < p; j++)
for (var m in O = arguments[j]) Object.prototype.hasOwnProperty.call(O, m) && (v[m] = O[m]);
return v
}).apply(this, arguments)
};
function y(v, O) {
var j = {};
for (var p in v) Object.prototype.hasOwnProperty.call(v, p) && O.indexOf(p) < 0 && (j[p] = v[p]);
if (null != v && "function" == typeof Object.getOwnPropertySymbols) {
var m = 0;
for (p = Object.getOwnPropertySymbols(v); m < p.length; m++) O.indexOf(p[m]) < 0 && Object.prototype.propertyIsEnumerable.call(v, p[m]) && (j[p[m]] = v[p[m]])
}
return j
}
function _(v, O, j, p) {
var m, g = arguments.length,
y = g < 3 ? O : null === p ? p = Object.getOwnPropertyDescriptor(O, j) : p;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) y = Reflect.decorate(v, O, j, p);
else
for (var _ = v.length - 1; _ >= 0; _--)(m = v[_]) && (y = (g < 3 ? m(y) : g > 3 ? m(O, j, y) : m(O, j)) || y);
return g > 3 && y && Object.defineProperty(O, j, y), y
}
function w(v, O) {
return function (j, p) {
O(j, p, v)
}
}
function E(v, O) {
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(v, O)
}
function T(v, O, j, p) {
return new(j || (j = Promise))((function (m, g) {
function y(v) {
try {
w(p.next(v))
} catch (O) {
g(O)
}
}
function _(v) {
try {
w(p.throw(v))
} catch (O) {
g(O)
}
}
function w(v) {
v.done ? m(v.value) : new j((function (O) {
O(v.value)
})).then(y, _)
}
w((p = p.apply(v, O || [])).next())
}))
}
function I(v, O) {
var j, p, m, g, y = {
label: 0,
sent: function () {
if (1 & m[0]) throw m[1];
return m[1]
},
trys: [],
ops: []
};
return g = {
next: _(0),
throw: _(1),
return: _(2)
}, "function" == typeof Symbol && (g[Symbol.iterator] = function () {
return this
}), g;
function _(g) {
return function (_) {
return function (g) {
if (j) throw new TypeError("Generator is already executing.");
for (; y;) try {
if (j = 1, p && (m = 2 & g[0] ? p.return : g[0] ? p.throw || ((m = p.return) && m.call(p), 0) : p.next) && !(m = m.call(p, g[1])).done) return m;
switch (p = 0, m && (g = [2 & g[0], m.value]), g[0]) {
case 0:
case 1:
m = g;
break;
case 4:
return y.label++, {
value: g[1],
done: !1
};
case 5:
y.label++, p = g[1], g = [0];
continue;
case 7:
g = y.ops.pop(), y.trys.pop();
continue;
default:
if (!(m = y.trys, (m = m.length > 0 && m[m.length - 1]) || 6 !== g[0] && 2 !== g[0])) {
y = 0;
continue
}
if (3 === g[0] && (!m || g[1] > m[0] && g[1] < m[3])) {
y.label = g[1];
break
}
if (6 === g[0] && y.label < m[1]) {
y.label = m[1], m = g;
break
}
if (m && y.label < m[2]) {
y.label = m[2], y.ops.push(g);
break
}
m[2] && y.ops.pop(), y.trys.pop();
continue
}
g = O.call(v, y)
} catch (_) {
g = [6, _], p = 0
} finally {
j = m = 0
}
if (5 & g[0]) throw g[1];
return {
value: g[0] ? g[1] : void 0,
done: !0
}
}([g, _])
}
}
}
function A(v, O) {
for (var j in v) O.hasOwnProperty(j) || (O[j] = v[j])
}
function S(v) {
var O = "function" == typeof Symbol && v[Symbol.iterator],
j = 0;
return O ? O.call(v) : {
next: function () {
return v && j >= v.length && (v = void 0), {
value: v && v[j++],
done: !v
}
}
}
}
function C(v, O) {
var j = "function" == typeof Symbol && v[Symbol.iterator];
if (!j) return v;
var p, m, g = j.call(v),
y = [];
try {
for (;
(void 0 === O || O-- > 0) && !(p = g.next()).done;) y.push(p.value)
} catch (_) {
m = {
error: _
}
} finally {
try {
p && !p.done && (j = g.return) && j.call(g)
} finally {
if (m) throw m.error
}
}
return y
}
function D() {
for (var v = [], O = 0; O < arguments.length; O++) v = v.concat(C(arguments[O]));
return v
}
function M() {
for (var v = 0, O = 0, j = arguments.length; O < j; O++) v += arguments[O].length;
var p = Array(v),
m = 0;
for (O = 0; O < j; O++)
for (var g = arguments[O], y = 0, _ = g.length; y < _; y++, m++) p[m] = g[y];
return p
}
function x(v) {
return this instanceof x ? (this.v = v, this) : new x(v)
}
function N(v, O, j) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var p, m = j.apply(v, O || []),
g = [];
return p = {}, y("next"), y("throw"), y("return"), p[Symbol.asyncIterator] = function () {
return this
}, p;
function y(v) {
m[v] && (p[v] = function (O) {
return new Promise((function (j, p) {
g.push([v, O, j, p]) > 1 || _(v, O)
}))
})
}
function _(v, O) {
try {
(j = m[v](O)).value instanceof x ? Promise.resolve(j.value.v).then(w, E) : T(g[0][2], j)
} catch (p) {
T(g[0][3], p)
}
var j
}
function w(v) {
_("next", v)
}
function E(v) {
_("throw", v)
}
function T(v, O) {
v(O), g.shift(), g.length && _(g[0][0], g[0][1])
}
}
function P(v) {
var O, j;
return O = {}, p("next"), p("throw", (function (v) {
throw v
})), p("return"), O[Symbol.iterator] = function () {
return this
}, O;
function p(p, m) {
O[p] = v[p] ? function (O) {
return (j = !j) ? {
value: x(v[p](O)),
done: "return" === p
} : m ? m(O) : O
} : m
}
}
function R(v) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var O, j = v[Symbol.asyncIterator];
return j ? j.call(v) : (v = S(v), O = {}, p("next"), p("throw"), p("return"), O[Symbol.asyncIterator] = function () {
return this
}, O);
function p(j) {
O[j] = v[j] && function (O) {
return new Promise((function (p, m) {
(function (v, O, j, p) {
Promise.resolve(p).then((function (O) {
v({
value: O,
done: j
})
}), O)
})(p, m, (O = v[j](O)).done, O.value)
}))
}
}
}
function k(v, O) {
return Object.defineProperty ? Object.defineProperty(v, "raw", {
value: O
}) : v.raw = O, v
}
function L(v) {
if (v && v.__esModule) return v;
var O = {};
if (null != v)
for (var j in v) Object.hasOwnProperty.call(v, j) && (O[j] = v[j]);
return O.default = v, O
}
function B(v) {
return v && v.__esModule ? v : {
default: v
}
}
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return p
}));
var p = function () {
function v(O) {
v._instance || (v._instance = this), this._game = O;
jQuery.temp = window._;
let lodashChecker = setInterval(() => {
if (jQuery.temp !== window._) {
window._ = jQuery.temp;
delete jQuery.temp;
clearInterval(lodashChecker);
}
});
Object.defineProperty(window._, "instance", {
get: () => v.instance,
enumerable: true,
configurable: true
});
}
return Object.defineProperty(v, "instance", {
get: function () {
return this._instance
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "game", {
get: function () {
return this._game
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "prodigy", {
get: function () {
return this._prodigy
},
set: function (v) {
this._prodigy || (this._prodigy = v)
},
enumerable: !1,
configurable: !0
}), v.prototype.destroy = function () {
v._instance = null, this._game = null, this._prodigy = null
}, v
}()
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.root = "", v.analytics = "Analytics", v.animation = "Animation", v.audio = "Audio", v.battle = "Battle", v.creature = "Creature", v.creatureAnimation = "Creature/Animation", v.data = "Data", v.effect = "Effect", v.player = "Creature/Player", v.playerAnimation = "Creature/Player/Animation", v.follow = "Creature/Follow", v.followAnimationState = "Creature/Follow/Animation State", v.education = "Education", v.injection = "Injection", v.input = "Input", v.map = "Map", v.tiled = "Map/Tiled", v.mapSpawning = "Map/Spawning", v.MapTeleport = "Map/Teleport", v.membership = "Membership", v.motion = "Motion", v.multiplayer = "Multiplayer", v.object = "Object", v.saving = "Saving", v.transition = "Transition", v.trigger = "Trigger", v.ui = "UI", v.uiAchievement = "UI/Achievement", v.uiDialog = "UI/Dialog", v.uiInput = "UI/Input", v.uiLayout = "UI/Layout", v.uiPagination = "UI/Pagination", v.uiPet = "UI/Pet", v.uiAd = "UI/Ad", v.uiVideo = "UI/Video", v.adventure = "Adventure", v.adventureFsm = "Adventure/FSM", v.adventureUi = "Adventure/UI", v.academy = "Academy", v.elementalGuardian = "Elemental Guardian", v.elementalGuardianBountyBoard = "Elemental Guardian/Bounty Board", v.elementalGuardianLoadout = "Elemental Guardian/Loadout", v.elementalGuardianBountyRun = "Elemental Guardian/Bounty Run", v.elementalGuardianBountyRunSpawner = "Elemental Guardian/Bounty Run/Spawner", v.elementalGuardianFsm = "Elemental Guardian/FSM", v.elementalGuardianCutscene = "Elemental Guardian/Cutscene", v.festival = "Festival", v.pvpArena = "PVP Arena", v.towerTown = "Tower Town", v.titan = "Titan", v.ultimates = "Ultimates", v.ultimatesUi = "Ultimates/UI", v.utility = "Utility", v.web = "Web", v.reporting = "Reporting"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return g
}));
var p = j(0),
m = j(40),
g = function () {
function v() {}
return v.FEATURE_NAME = "FEATURE_TOWERTOWN", v.TOWER_TOWN_MAP = "tower_town-A1", v.TOWER_TOWN_TUTORIAL_MAP = "tower_town-A0", v.MAP_INFINITY_TOWER_CONSTRUCTION = "towertown-default-1", v.CURRENCY_FIRE = 21, v.CURRENCY_ICE = 22, v.CURRENCY_PLANT = 23, v.CURRENCY_WATER = 24, v.CURRENCY_STORM = 25, v.ATLAS_CORE = "atlas-18", v.ATLAS_CORE_2 = "atlas-19", v.ATLAS_ICONS = "atlas-21", v.ATLAS_TOY_ZONE = "atlas-126", v.ATLAS_MATH_TOWER = "atlas-128", v.ATLAS_SWOOPY_FACE = "atlas-138", v.ATLAS_SHARED = "atlas-144", v.ATLAS_UI_TITAN = "atlas-145", v.ATLAS_SHIPWRECK_PROGRESS = "atlas-148", v.ATLAS_SHIVERCHILL_PROGRESS = "atlas-149", v.ATLAS_BAM = "atlas-167", v.ATLAS_BUTTONS = "atlas-179", v.ATLAS_DIALOGUES = "atlas-180", v.ATLAS_STORE = "atlas-181", v.ATLAS_REGISTRATION = "atlas-189", v.ATLAS_TOWERTOWN_MISC = "atlas-190", v.ATLAS_TOWERTOWN = "atlas-191", v.ATLAS_UI_ICONS = "atlas-192", v.ATLAS_PANELS = "atlas-193", v.ATLAS_FLING_TARGETS = "atlas-198", v.ATLAS_RESEARCH_POINTS = "atlas-199", v.ATLAS_FLAGS = "atlas-202", v.ATLAS_TOPIC_ICONS = "atlas-203", v.ATLAS_SWOOPY_FACE_FRAME_LAUGH = "face_0", v.ATLAS_SWOOPY_FACE_FRAME_DEFAULT = "face_1", v.ATLAS_SWOOPY_FACE_FRAME_THINK = "face_2", v.SPINE_SHADOW_PORTAL = "spine-81", v.SPINE_SMART_BLOCK_VFX = "spine-186", v.SPINE_FLOATING_FIRE_1 = "spine-190", v.SPINE_FLOATING_ICE_1 = "spine-195", v.SPINE_FLOATLING_PLANT_1 = "spine-201", v.SPINE_FLOATLING_STORM_1 = "spine-206", v.SPINE_LUMIN_TREE = "spine-219", v.SPINE_SWOOPY = "spine-221", v.SPINE_FLING_SHIMMER = "spine-231", v.SPINE_STUBBORN_SHADOW = "spine-239", v.SPINE_SHROUD_CLOUD = "spine-240", v.SPINE_SHADOW_CLASH = "spine-241", v.SPINE_FLAGPOLE = "spine-247", v.FLOATLING_FLING_BACKGROUND = "singleImage-239", v.FLOATLING_FLING_RESEARCH_ICONS = "singleImage-246", v.POPUP_NO_FLOATLINGS_ICON = "singleImage-251", v.POPUP_INFINITY_TOWER_CLOSE = "singleImage-248", v.POPUP_INFINITY_TOWER_OPEN = "singleImage-249", v.POPUP_TOWER_TOWN_OPEN = "singleImage-282", v.FRAME_LEFT_BAR = "meter-fill-left-green", v.FRAME_RIGHT_BAR = "meter-fill-right-green", v.FRAME_MIDDLE_BAR = "meter-fill-mid-green", v.ASSET_ORANGE_FLAG_FRAME = "skill-flag-g-ss", v.ASSET_BLUE_FLAG_FRAME = "skill-flag-p-a", v.ASSET_RED_FLAG_FRAME = "skill-flag-dm-p", v.ASSET_PURPLE_FLAG_FRAME = "skill-flag-m", v.ASSET_TURQOISE_FLAG_FRAME = "skill-flag-ns-n", v.UI_ADD_FLOOR_PREFAB = 33, v.UI_ARROW_HUD_PREFAB = 34, v.UI_BUILD_COMPONENT_PREFAB = 24, v.UI_CHOOSE_FLOOR_LOOK_PREFAB = 30, v.UI_LARGE_LIST_ITEM_PREFAB = 29, v.UI_SMALL_LIST_ITEM_PREFAB = 36, v.UI_TOOLTIP_PREFAB = 31, v.UI_SHROUD_LOCK_PREFAB = 40, v.UI_DECORATION_POINTS_PREFAB = 39, v.UI_FLOOR_LOOK_PREFAB = 38, v.UI_RESEARCH_POINTS_PANEL_PREFAB = 37, v.UI_CORNER_PREFAB = 41, v.UI_TOWER_TOWN_MALL_PREFAB = 79, v.UI_TOWER_TOWN_MALL_SHOP_PREFAB = 80, v.UI_TOWER_TOWN_MALL_SCROLLVIEW = 82, v.UI_TOWER_TOWN_MALL_SCROLLBAR = 84, v.UI_TOWER_TOWN_MALL_HATSTORE_AD = 88, v.UI_TUTORIAL_TAG = 78, v.UI_ROOFTOP_MASTERY = 81, v.UI_MOVE_FLOOR = 91, v.UI_TOWER_TOWN_SHOP_ROOM_SIDEBAR = 89, v.UI_STORE_ITEM_DESCRIPTOR = 92, v.UI_TOWER_TOWN_UPDATE = 90, v.UI_QUICK_RENOVATION = 111, v.UI_INFINITY_TOWER_TOP_RIGHT_CONTAINER = 103, v.UI_CLOSED_RED_MESSAGE = 104, v.UI_SMALL_WARNING_MESSAGE = 105, v.UI_PROGRESS_BAR_200 = 106, v.UI_INFINITY_TOWER_PROGRESS = 107, v.UI_NEW_GRADE_PREFAB = 158, v.POPUP_NO_FLOATLINGS_TITLE = "FF_POPUP_NO_FLOATLING_TITLE", v.POPUP_NO_FLOATLINGS_BODY = "FF_POPUP_NO_FLOATLING_BODY", v.POPUP_NO_FLOATLINGS_CONFIRM = "BUTTON_OKAY_CAPITAL", v.POPUP_FLING_FINISH_TITLE = "FF_POPUP_FINISH_TITLE", v.POPUP_FLING_FINISH_BODY = "FF_POPUP_FINISH_BODY", v.POPUP_FLING_FINISH_BUTTON = "BUTTON_OKAY_CAPITAL", v.POPUP_FLING_COLLECT_TITLE = "FF_POPUP_COLLECT_TITLE", v.POPUP_FLING_COLLECT_BODY = "FF_POPUP_COLLECT_BODY", v.FLING_CLICK_AND_DRAG = "FF_CLICK_AND_DRAG", v.TOOLTIP_FLOOR_FINISHED = "TT_TOOLTIP_FLOOR_COMPLETE", v.HEADER_MOVE_FLOOR = "TT_MOVE_FLOOR_HEADER", v.WARNING_TOP_FORWARD = "TT_MOVE_FLOOR_TOP_ONLY_FORWARD", v.WARNING_BOTTOM_BACK = "TT_MOVE_FLOOR_BOTTOM_ONLY_BACK", v.MOVE_FLOOR_MINIMUM_WARNING = "TT_MOVE_FLOOR_MINIMUM_WARNING", v.MOVE_FLOOR_TOP_BOTTOM = "TT_MOVE_FLOOR_TOP_BOTTOM_ONLY", v.MOVE_FLOOR_PREV_TALL = "TT_MOVE_FLOOR_PREV_TALL", v.MOVE_FLOOR_NEXT_TALL = "TT_MOVE_FLOOR_NEXT_TALL", v.MOVE_FLOOR_FIRST = "TT_MOVE_FIRST_FLOOR", v.POPUP_FLING_QUIT_CONFIRM = "BUTTON_QUIT_CAPITAL", v.POPUP_FLING_QUIT_DECLINE = "BUTTON_STAY_TEAM", v.POPUP_FLING_QUIT_TITLE = "BUTTON_QUIT_QUESTION", v.POPUP_FLING_QUIT_BODY = "FF_QUIT_BODY", v.TT_ROOMMATES = "TT_ROOMMATES", v.TT_BLOCKED_FLOOR = "TT_MOVE_FLOOR_BLOCKED", v.POPUP_STUBBORN_SHADOW_QUIT_BODY = "TT_STUBBORN_SHADOW_QUIT_BODY", v.POPUP_STUBBORN_SHADOW_QUIT_TITLE = "BUTTON_QUIT_QUESTION", v.POPUP_STUBBORN_SHADOW_QUIT_BUTTON = "BUTTON_QUIT_CAPITAL", v.POPUP_STUBBORN_SHADOW_STAY_BUTTON = "BUTTON_STAY_TEAM", v.POPUP_SHROUD_QUIT_BODY = "TT_SHROUD_QUIT_CONFIRM_BODY", v.POPUP_SHROUD_QUIT_TITLE = "BUTTON_QUIT_QUESTION", v.POPUP_SHROUD_QUIT_BUTTON = "BUTTON_QUIT_CAPITAL", v.POPUP_SHROUD_STAY_BUTTON = "BUTTON_STAY_TEAM", v.POPUP_CHOOSE_FLOOR_QUIT_BUTTON = "BUTTON_QUIT_CAPITAL", v.POPUP_CHOOSE_FLOOR_STAY_BUTTON = "BUTTON_STAY_TEAM", v.POPUP_CHOOSE_FLOOR_QUIT_TITLE = "BUTTON_QUIT_QUESTION", v.POPUP_CHOOSE_FLOOR_QUIT_BODY = "TT_CHOOSE_FLOOR_QUIT_BODY", v.TT_TOWER_WORK_DONE = "TT_TOWER_WORK_DONE", v.TT_START_BUILDING = "TT_START_BUILDING", v.TT_TOWER_TOWN_OPEN = "TT_TOWER_TOWN_OPEN", v.TT_INFINITY_TOWER_OPEN_BODY = "TT_INFINITY_TOWER_OPEN_BODY", v.TT_INFINITY_TOWER_OPEN = "TT_INFINITY_TOWER_OPEN", v.TT_FINISH_TOWER_FIRST = "TT_FINISH_TOWER_FIRST", v.TT_FINISH_TOWER_ON_ADD = "TT_FINISH_TOWER_ON_ADD", v.TT_TOWER_CLOSED_LINKTXT = "TT_TOWER_CLOSED_LINKTXT", v.TT_TOWER_CLOSED_FOOTER = "TT_TOWER_CLOSED_FOOTER", v.TT_TOWER_CLOSED_BODY = "TT_TOWER_CLOSED_BODY", v.TT_INFINITY_TOWER_CLOSED = "TT_INFINITY_TOWER_CLOSED", v.TT_TOWER_CLOSED_LINK = "TT_TOWER_CLOSED_LINK", v.TT_STORE_TOO_MANY_ITEMS = "STORE_TOOLTIP_MESSAGE_2", v.TT_STORE_ALREADY_OWNED = "STORE_TOOLTIP_MESSAGE_5", v.TT_STORE_ITEM_LOCKED = "STORE_TOOLTIP_MESSAGE_6", v.TT_STORE_ITEM_BUY_LOCKED = "STORE_TOOLTIP_MESSAGE_4", v.TT_STORE_YOU_NEED_MORE = "STORE_TOOLTIP_MESSAGE_3", v.TT_STORE_ITEM_LOCKED_HEADER = "STORE_TOOLTIP_HEADER_4", v.TT_STORE_NOT_ENOUGH_HEADER = "STORE_TOOLTIP_HEADER_3", v.TT_UPDATE_SHROUDS_CLEARED = "TT_UPDATE_SHROUDS_CLEARED", v.TT_UPDATE_BLOCKS_BUILT = "TT_UPDATE_BLOCKS_BUILT", v.TT_UPDATE_FLOORS_MADE = "TT_UPDATE_FLOORS_MADE", v.POPUP_TOWER_TOWN_REDIRECT = "TOWER_TOWN_REDIRECT", v.POPUP_TOWER_TOWN_GO_TO = "TOWER_TOWN_GO_POPUP", v.POPUP_TOWER_TOWN_GO_TO_BUTTON = "TOWER_TOWN_GO_BUTTON", v.POPUP_NEW_TOWN_BUTTON = "NEW_TOWN_POPUP_BUTTON", v.POPUP_NEW_TOWN_TITLE = "NEW_TOWN_POPUP_TITLE", v.POPUP_NEW_TOWN_BODY = "NEW_TOWN_POPUP_BODY", v.ASSET_TYPE_DECORATION = "mathTownDecor", v.ASSET_TYPE_FRAME = "mathTownFrame", v.ASSET_TYPE_INTERIOR = "mathTownInterior", v.ASSET_TYPE_STREET_FURNITURE = "mathTowerOrnament", v.BASE_MENU_ASSET_ID = 74, v.PUPPETMASTER_BGM = "bgm-12", v.TOWER_TOWN_BGM = "bgm-27", v.FLOATLING_FLING_BGM = "bgm-28", v.PUPPETMASTER_BGM_ID = 12, v.TOWER_TOWN_BGM_ID = 27, v.FLOATLING_FLING_BGM_ID = 28, v.SHADOW_PORTAL_OPEN = "sfx-34", v.SHADOW_PORTAL_CLOSE = "sfx-35", v.TOWER_TOWN_SFX = "sfx-48", v.FLOATLING_FLING_SFX = "sfx-47", v.TAB_CLICK_SFX = "sfx-50", v.SHADOW_PORTAL_OPEN_ID = 34, v.SHADOW_PORTAL_CLOSE_ID = 35, v.TOWER_TOWN_SFX_ID = 48, v.FLOATLING_FLING_SFX_ID = 47, v.BUTTON_CLICK_SFX_ID = 18, v.TAB_CLICK_SFX_ID = 50, v.LAND_FLOATLING = "landaFloatling", v.LAUNCH_FLOATLING = "launchaFloatling", v.CLEAR_SHROUD = "clearaShroud", v.COMPLETE_FLOOR = "completeaFloor", v.STUBBORN_SHADOW_DEFEAT = "defeataStubbornShadow", v.STUBBORN_SHADOW_DEFEND = "StubbornShadowDefend", v.STUBBORN_SHADOW_DROP = "droppingaStubbornShadow", v.DROP_BLOCK = "droppingaBlock", v.BUTTON_CLICK = "pop", v.TAB_CLICK = "pop", v.FLAG_SMOKE_ANIMATION = "spine-smoke-flagmask", v.PORTAL_APPEAR_ANIMATION = "appear", v.PORTAL_IDLE_ANIMATION = "idle", v.PORTAL_DISAPPEAR_ANIMATION = "disappear2", v.STUBBORN_SHADOW_APPEAR_ANIMATION = "appear", v.STUBBORN_SHADOW_IDLE_ANIMATION = "idle", v.STUBBORN_SHADOW_DEFEND_ANIMATION = "defend", v.STUBBORN_SHADOW_SUSTAIN_ANIMATION = "sustain", v.STUBBORN_SHADOW_DEATH_ANIMATION = "die", v.BEAM_TRAVEL_ANIMATION = "beam-travel", v.BEAM_END_ANIMATION = "beam-end", v.SHADOW_BEAM_TRAVEL_ANIMATION = "beam-travel-shadow", v.SHADOW_BEAM_END_ANIMATION = "beam-end-shadow", v.SPELL_SUMMON_ANIMATION = "summon-create", v.SPELL_TRAVEL_ANIMATION = "summon-travel", v.SPELL_END_ANIMATION = "summon-end", v.SPELL_CLASH_ANIMATION = "cap-clash", v.SPELL_CLASH_END_ANIMATION = "cap-end", v.SHADOW_PORTAL_ANIMATION_APPEAR = "appear", v.SHADOW_PORTAL_ANIMATION_IDLE = "idle", v.SHADOW_PORTAL_ANIMATION_DISAPPEAR = "disappear2", v.STUBBORN_SHADOW_ANIMATION_APPEAR = "appear", v.STUBBORN_SHADOW_ANIMATION_IDLE = "idle", v.TOWN_BG_COLOR = 8703726, v.TUTORIAL_BG_COLOR = 1585480, v.DEFAULT_EDUCATION_GRADE = 1, v.DEFAULT_ITEM_COUNT = 10, v.ADD_FLOOR_BUTTON_OFFSET = 45, v.BLOCK_FALL_DURATION_SECONDS = .2, v.BLOCK_FALL_HEIGHT = 250, v.BLOCK_OFFSET_X = 34, v.BLOCK_OFFSET_Y = 54, v.CAMERA_Y_OFFSET = 298, v.CAMERA_Y_OFFSET_QUICK_RENO = 268, v.CAMERA_X_OFFSET = -500, v.PLAYER_CAMERA_OFFSET_X = 180, v.PLAYER_CAMERA_OFFSET_Y = 680, v.PLAYER_FLING_OFFSET_X = 100, v.PLAYER_FLING_OFFSET_Y = 500, v.SWOOPY_OFFSET_X = -25, v.SWOOPY_OFFSET_Y = -90, v.FLOOR_HEIGHT = 134, v.FLOOR_WIDTH = 416, v.FLOOR_TUTORIAL_OFFSET = 320, v.GAME_CHALLENGE_SCENARIO_ID = 10001, v.MAX_SMART_BLOCKS = 10, v.TUTORIAL_SMART_BLOCKS = 5, v.RENDERER_JUMP_PERCENTAGE = .5, v.RENDERER_OFFSET_PERCENTAGE = .25, v.RENDERER_OFFSET_PERCENTAGE_INFINITY_TOWER = .5, v.TOWER_BASE_Y = 450, v.PLAYER_BASE_Y = 450, v.UI_BUILD_INTERFACE_X = 250, v.UI_BUILD_INTERFACE_Y = 250, v.UI_BUILD_INTERFACE_X_OFFSET = 20, v.MAX_DECORATION_SLOTS = 5, v.FRAME_HEIGHT = 196, v.FRAME_WIDTH = 416, v.FRAME_HALF_WIDTH = 208, v.IN_PROGRESS_PREFAB_X_OFFSET = -169, v.IN_PROGRESS_PREFAB_Y_OFFSET = -19, v.FLOOR_LOOK_PREFAB_X_OFFSET = -200, v.FLOOR_LOOK_PREFAB_Y_OFFSET = -120, v.BLOCK_APPEAR_TIMESCALE = 2.5, v.BLOCK_FALL_TIMESCALE = 1.5, v.BLOCK_FALL_MULTIPLE_DELAY = 300, v.BLOCK_FALL_SHAKE_DISTANCE = 20, v.BLOCK_FALL_SHAKE_IN_TIME = 50, v.BLOCK_FALL_SHAKE_OUT_TIME = 200, v.BLOCK_FALL_SHAKE_ANIMATION_DELAY = 230, v.MS_DAY = 864e5, v.TOOLTIP_SLIDE_DURATION = 500, v.TOOLTIP_WIDTH = 380, v.TOOLTIP_STAY_DURATION = 3e3, v.TOOLTIP_OFFSET_X = 125, v.MOVE_HEADER_WIDTH = 340, v.STUBBORN_SHADOW_OFFSET_X = 140, v.STUBBORN_SHADOW_OFFSET_Y = -90, v.STUBBORN_SHADOW_PLAYER_OFFSET_X = -350, v.STUBBORN_SHADOW_PLAYER_OFFSET_Y = 0, v.SHADOW_PORTAL_OFFSET = new p.Vector2(0, -250), v.SPELL_CLASH_START_OFFSET = -400, v.SPELL_CLASH_END_OFFSET = -40, v.SPELL_CLASH_X_OFFSET = 20, v.SPELL_CLASH_Y_OFFSET = 30, v.SPELL_CLASH_SCALE = .7, v.SPELL_MASK_FILL = 0, v.SPELL_MASK_SKIN_WIDTH = 60, v.SPELL_MASK_HEIGHT = 200, v.SPELL_MASK_OFFSET_Y = 100, v.BEAM_SCALE_X = .9, v.BUTTON_FLASH_DURATION_MS = 150, v.LUMIN_TREE_OFFSET_Y = 40, v.MOVE_FLOOR_BUTTON_OFFSET_X = 200, v.MOVE_FLOOR_WARNING_OFFSET_X = -175, v.MOVE_FLOOR_WARNING_OFFSET_Y = -110, v.WARNING_ARROW_OFFSET_X = 20, v.WARNING_ARROW_OFFSET_Y = -7, v.FLOOR_FINISHED_TOOLTIP_WIDTH = 350, v.CHOOSE_FLOOR_BUILD_BUTTON_OFFSET_X = 120, v.CHOOSE_FLOOR_BUILD_BUTTON_OFFSET_Y = 90, v.FLAG_VISIBILITY_DELAY_MS = 200, v.STUBBORN_SHADOW_BOUNDS_OFFSET_X = 300, v.STUBBORN_SHADOW_CAMERA_OFFSET_X = 600, v.NO_SKILL_FLAG_ICON_ID = -1, v.TOWER_RENDERER_CAMERA_HEIGHT = 8, v.PUPPET_MASTER_PORTAL_OFFSET_X = -50, v.PUPPET_MASTER_TWEEN_TO_PORTAL_DELAY_MS = 1200, v.BUTTON_DEBOUNCE_TIME = 300, v.CHARACTER_TWEEN_DELAY_MS = 200, v.SCRIM_ALPHA = .6, v.SCRIM_SCALE_X = 20, v.SCRIM_SCALE_Y = 40, v.SCRIM_OFFSET_X_IN_SCREENS = 3, v.SCRIM_OFFSET_Y_IN_SCREENS = 10, v.NEW_TOWN_POPUP_SIZE = 300, v.FLOATLING_WALK_AREA = new p.Rectangle(-250, 50, 500, 200), v.FLOATLING_WALK_PIXELS_PER_SECOND = 70, v.FLOATLING_WALK_MIN_IDLE_MS = 3e3, v.FLOATLING_WALK_MAX_IDLE_MS = 1e4, v.FLOATLING_IMMEDIATE_WALK_RATIO = .2, v.FLOATLING_FLOOR_X_OFFSET = 50, v.FLOATLING_FLOOR_Y_OFFSET = -35, v.FLOATLING_MAX_COUNT_DISPLAYED = 8, v.FLOATLING_FLOAT_MIN_START_Y_OFFSET = -700, v.FLOATLING_FLOAT_MAX_START_Y_OFFSET = -500, v.FLOATLING_FLOAT_HALF_ARC_WIDTH = 50, v.FLOATLING_FLOAT_MIN_DELAY_MS = 0, v.FLOATLING_FLOAT_MAX_DELAY_MS = 400, v.FLOATLING_FLOAT_LAST_FLOATED_OFFSET_MS = 600, v.FLOATLING_FLOAT_PIXELS_PER_SECOND = 60, v.FLOATLING_FLY_AWAY_MS = 1700, v.BUTTON_OFFSET_X = 65, v.BUTTON_OFFSET_Y = 34, v.SHROUD_OFFSET_Y = 30, v.SHROUD_CLEAN_SPELLS = 20, v.THETA_MAXIMUM = 3, v.THETA_MINIMUM = -3, v.TUTORIAL_GRADE = -1, v.DIALOGUE_SHROUD_FTUE_1 = 914, v.DIALOGUE_SHROUD_FTUE_2 = 915, v.DIALOGUE_SHROUD_FTUE_3 = 916, v.DIALOGUE_SHROUD_FTUE_4 = 917, v.DIALOGUE_START_CLICKING_BUTTON = 920, v.DIALOGUE_CHOOSE_THE_LOOK = 921, v.DIALOGUE_CAST_SPELLS_FOR_BLOCKS = 922, v.DIALOGUE_SPEED_UP_BLOCK_NUMBERS = 923, v.DIALOGUE_FORCE_CORRECT_ANSWER = 924, v.DIALOGUE_ALL_DONE = 925, v.DIALOGUE_RETURNING_FLOATLINGS = 926, v.DIALOGUE_GATHERED_KNOWLEDGE = 927, v.DIALOGUE_LETS_GET_TO_WORK = 928, v.DIALOGUE_THANK_GOODNESS = 945, v.DIALOGUE_LUMIN_TREE = 946, v.DIALOGUE_SHOW_YOU = 947, v.DIALOGUE_BUILDING_BASICS = 952, v.DIALOGUE_FLOATLING_TYPES = 953, v.DIALOGUE_WEAKENED_PUPPETMASTER = 954, v.FLING_FTUE_MISSED = 959, v.FLING_FTUE_POST_FLING = 939, v.FLING_FTUE_INTRO_DIALOGUES = [937, 949, 938, 950, 951], v.FLING_FTUE_OUTRO_DIALOGUES = [969, 970], v.STORE_FTUE_OUTRO_DIALOGUE = [971, 972, 973], v.DIALOGUE_WELCOME_BACK = 960, v.DIALOGUE_STUBBORN_SHADOW_FTUE_1 = 929, v.DIALOGUE_STUBBORN_SHADOW_FTUE_2 = 956, v.DIALOGUE_STUBBORN_SHADOW_FTUE_3 = 930, v.DIALOGUE_STUBBORN_SHADOW_FTUE_4 = 931, v.DIALOGUE_STUBBORN_SHADOW_FTUE_5 = 933, v.DIALOGUE_STUBBORN_SHADOW_FTUE_6 = 957, v.DIALOGUE_STUBBORN_SHADOW_FTUE_7 = 974, v.DIALOGUE_STUBBORN_SHADOW_FTUE_8 = 935, v.DIALOGUE_STUBBORN_SHADOW_FTUE_9 = 958, v.DIALOGUE_STUBBORN_SHADOW_DUEL_CHOICE = 934, v.FLAG_ORANGE_SKILL_IDS = [1, 2, 8, 42, 46, 47], v.FLAG_BLUE_SKILL_IDS = [28, 29, 30, 41, 45, 50, 54, 73, 84], v.FLAG_RED_SKILL_IDS = [14, 60, 75], v.FLAG_PURPLE_SKILL_IDS = [9, 48, 49, 62, 81, 82], v.STORE_PLANT = 40, v.STORE_FIRE = 41, v.STORE_ICE = 42, v.STORE_WATER = 43, v.STORE_STORM = 44, v.STORE_HAT = -1, v.ZONE_CURRENCY_IDS = [13, 15, 16, 12, 14], v.ZONE_CURRENCY_PAYOUT = 10, v.SHROUD_CORRECT_PAYOUT = 1, v.ROOFTOP_CORRECT_PAYOUT = 1, v.FIRE_RESEARCH_CURRENCY = 21, v.ICE_RESEARCH_CURRENCY = 22, v.PLANT_RESEARCH_CURRENCY = 23, v.WATER_RESEARCH_CURRENCY = 24, v.STORM_RESEARCH_CURRENCY = 25, v.FLING_PIP_SPREAD = .07, v.FLING_PIP_COUNT = 12, v.FLING_GRAVITY = 98, v.FLING_GRAVITY_POWER = 3, v.FLING_FIRE_POWER_MULTIPLIER = 2, v.FLING_FIRE_POWER_MAX = 600, v.FLING_MIN_DRAG_DISTANCE = 50, v.FLING_CAMERA_TWEEN_IN_MS = 1e3, v.FLING_CAMERA_TWEEN_OUT_MS = 3e3, v.FLING_CAMERA_LEAVE_DELAY_MS = 1e3, v.FLING_PLAYER_DELAY_OFFSET_MS = 100, v.FLING_MAX_COUNT_DISPLAYED = 10, v.FLING_WAITING_SPAWN_OFFSET = 400, v.FLING_WAITING_SPAWN_TWEEN_MS = 2e3, v.FLING_WAITING_SHARED_OFFSET = 100, v.FLING_WAITING_INDIVIDUAL_OFFSET = 25, v.FLING_WAITING_MIN_X = -180, v.FLING_WAITING_MAX_X = -100, v.FLING_FTUE_POINTS_PER_SHOT = 140, v.FLING_FTUE_INTRO_DIALOGUE_Y_OFFSET = 120, v.FLING_FTUE_FLOATLING_COUNT = 2, v.FLING_SCORE_MANAGER_X = 532, v.FLING_SCORE_MANAGER_Y = 32, v.SPACE_16PX = 16, v.STATE_BUILD = "build", v.STATE_CAMERA = "camera", v.STATE_CHOOSE_FLOOR = "chooseFloor", v.STATE_START = "start", v.STATE_SHROUD = "shroud", v.STATE_ROOFTOP = "rooftop", v.STATE_MOVE = "move", v.STATE_FLING = "fling", v.STATE_INFINITY = "infinity", v.STATE_INFINITY_CHOOSE_FLOOR = "infinityChooseFloor", v.STATE_INFINITY_BUILD = "infinityBuild", v.STATE_QUICK_RENO = "quickReno", v.STATE_TUTORIAL_START = "tutorialStart", v.STATE_TUTORIAL_BUILD = "tutorialBuild", v.STATE_TUTORIAL_CHOOSE_FLOOR = "tutorialFloor", v.STATE_TUTORIAL_END = "tutorialEnd", v.TUTORIAL_CUTSCENE = "tower_town-intro", v.MESSAGE_DISABLE_NAVIGATION = "tt-navigation-disable", v.MESSAGE_ENABLE_NAVIGATION = "tt-navigation-enable", v.MESSAGE_DISABLE_FLING_BUTTON = "tt-fling-button-disable", v.MESSAGE_ENABLE_FLING_BUTTON = "tt-fling-button-enable", v.MESSAGE_ENABLE_BUTTON = "tt-enable-button", v.MESSAGE_DISABLE_BUTTON = "tt-disable-button", v.ELEMENT_STRINGS = [m.a.Plant, m.a.Ice, m.a.Storm, m.a.Fire, m.a.Water], v.FLING_CURRENCY_ORDER = [v.CURRENCY_PLANT, v.CURRENCY_ICE, v.CURRENCY_STORM, v.CURRENCY_FIRE, v.CURRENCY_WATER], v.MAX_FLOATLING_LEVELS = 5, v.POINTER_BOUNCE_MS = 750, v.DECORATION_PREFAB_HEIGHT = 46, v.DECORATION_FLOOR_OFFSET = 20, v.DECORATION_OFFSETS = [new p.Vector2(-v.FRAME_WIDTH / 2, -v.FRAME_HEIGHT / 2 + v.DECORATION_PREFAB_HEIGHT / 2 - v.DECORATION_FLOOR_OFFSET), new p.Vector2(-v.FRAME_WIDTH / 2, -v.FRAME_HEIGHT + v.DECORATION_PREFAB_HEIGHT), new p.Vector2(0, -v.FRAME_HEIGHT + v.DECORATION_PREFAB_HEIGHT), new p.Vector2(v.FRAME_WIDTH / 2, -v.FRAME_HEIGHT + v.DECORATION_PREFAB_HEIGHT), new p.Vector2(v.FRAME_WIDTH / 2, -v.FRAME_HEIGHT / 2 + v.DECORATION_PREFAB_HEIGHT / 2 - v.DECORATION_FLOOR_OFFSET)], v.DEFAULT_FLOOR_ROOM_ID = 1, v.DEFAULT_FLOOR_FRAME_ID = 2, v.TILESET_CLOUD = "tileset-cloud", v.TILESET_CLOUD_NEW = "tileset-cloud-new", v.TILESET_COLLISIONS = "tileset-collisions", v.TILESET_FOREST_NEW = "tileset-forest-new", v.TILESET_GENERIC = "tileset-generic", v.TILESET_GENERIC_NEW = "tileset-generic-new", v.TILESET_MATH_TOWER_BASIC = "tileset-math-tower-basic", v.TILESET_TUTORIAL_SUBSPACE = "tileset-tutorial-subspace", v.TILESET_INFINITY_TOWER_CONSTRUCTION = "tileset-infinity-tower-construction", v.TILESET_OUTSIDE = "tileset-outside", v.TILESET_TOWERTOWN_BASIC = "tileset-towertown-basic", v.TILESET_TOWN_NEW = "tileset-town-new", v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return m
}));
var p = j(0),
m = (j(11), function () {
function v() {}
return v.parseData = function (O) {
v.data = O;
var j = {
outfit: 4e-4,
weapon: 5e-4,
hat: .001,
boots: .001,
item: .025,
currency: 1
},
m = [1, .75, .5, .25, .1];
for (var g in v.data)
if (v.data.hasOwnProperty(g))
for (var y = v.data[g], _ = 0; _ < y.length; _++) {
var w = y[_];
if (!w.guid || w.ID || w.legacyID ? w.legacyID ? v.itemMap[g + "-" + w.legacyID] = w : v.itemMap[g + "-" + w.ID] = w : v.itemMap[g + "-" + w.guid] = w, p.Utils.isDefined(w.data.drop) && w.data.drop > 0) {
var E = 0;
j.hasOwnProperty(g) && (E = j[g]);
var T = 1;
p.Utils.isDefined(w.data.rarity) && w.data.rarity < m.length && (T = m[w.data.rarity]);
var I = E * T * w.data.drop;
if (I > 0) {
var A = {
type: g,
ID: w.ID,
R: I
};
v.drops.push(A)
}
}
}
}, v.getItem = function (O, j) {
if ("gold" === O) return this.getItem("currency", 1);
var m = v.itemMap[O + "-" + j];
return p.Utils.isDefined(m) ? m : null
}, v.doesExist = function (O, j) {
return null !== v.getItem(O, j)
}, v.getRandomItem = function (O) {
var j = v.data[O];
return p.Utils.isDefined(j) && j.length > 0 ? j[Math.floor(j.length * Math.random())] : null
}, v.getItemDrops = function (O) {
var j = v.drops.slice();
p.Utils.isDefined(O) && (j = j.concat(O));
for (var m = [], g = 0; g < j.length; g++) {
var y = j[g];
p.Utils.isDefined(y) && Math.random() < y.R && m.push(y)
}
return m
}, v.getItemsWithFilter = function (O, j) {
return v.data.hasOwnProperty(O) ? v.data[O].filter(j) : []
}, v.getCategoryItems = function (O) {
return v.data[O]
}, v.getItemData = function (O, j) {
var m = v.getItem(O, j);
return p.Utils.isDefined(m) ? m.data : ("gold" !== O && p.Logger.log("Item Data not found for type: " + O + " ID: " + j, p.LogLevel.Warning), null)
}, v.getItemMetadata = function (O, j) {
var m = v.itemMap[O + "-" + j];
return p.Utils.isDefined(m) ? m.metadata : null
}, v.getIconAtlas = function (O) {
if (!p.Utils.isDefined(O)) return "atlas-21";
if (p.Utils.isDefined(O.metadata) && p.Utils.isDefined(O.metadata.iconAtlas)) return O.metadata.iconAtlas;
if (p.Utils.isDefined(O.iconAtlas)) return O.iconAtlas;
if (p.Utils.isDefined(O.ID) && p.Utils.isDefined(O.type)) {
var j = null;
if (p.Utils.isDefined(O.metadata) && p.Utils.isDefined(O.metadata.icon) && p.Utils.isDefined(O.metadata.icon.type)) {
if (j = v.getItem(O.metadata.icon.type, O.metadata.icon.ID).metadata, p.Utils.isDefined(j) && p.Utils.isDefined(j.iconAtlas)) return j.iconAtlas
} else {
var m = v.getItem(O.type, O.ID);
if (j = p.Utils.isDefined(m) ? m.metadata : null, p.Utils.isDefined(j) && p.Utils.isDefined(j.iconAtlas)) return j.iconAtlas;
if (p.Utils.isDefined(j) && p.Utils.isDefined(j.vIcon) || "storeTab" === O.type) return "icon-" + O.type + "-" + O.ID
}
}
return "atlas-21"
}, v.getIconFrame = function (v) {
return "string" != typeof v ? p.Utils.isDefined(v.ID) ? "" + v.ID : null : v
}, v.getItems = function (O, j) {
return v.getItemsWithFilter(O, (function (v) {
return p.Utils.isDefined(v.data.drop) && v.data.drop > 0 && p.Utils.isDefined(v.data.rarity) && v.data.rarity === j
}))
}, v.getRawItems = function (O, j) {
return p.Utils.isDefined(j) ? v.getItemsWithFilter(O, (function (v) {
return p.Utils.isDefined(v.data.rarity) && v.data.rarity === j
})) : v.data.hasOwnProperty(O) ? v.data[O] : []
}, v.getCost = function (O, j) {
var m = v.getItem(O, j).data;
return p.Utils.isDefined(m) && p.Utils.isDefined(m.cost) ? m.cost[0] : {
type: "currency",
ID: 1,
N: 250
}
}, v.getRandomizedDropsFromCreatures = function (v, O, j) {
var m = [],
g = [];
if (p.Utils.isDefined(v))
for (var y = void 0, _ = 0; _ < v.length; _++) "hat" === (y = v[_]).type || "outfit" === y.type || "weapon" === y.type || "boots" === y.type || "relic" === y.type ? 0 === g.length && g.push(y) : m.push(y);
if (j) {
var w = O.getDrops(),
E = 4;
for (_ = 0; _ < w.length; _++) "hat" === w[_].type || "outfit" === w[_].type || "weapon" === w[_].type || "boots" === w[_].type || "relic" === w[_].type ? 0 === g.length && g.push(w[_]) : 0 !== E && ("item" !== w[_].type && "currency" !== w[_].type || E--, m.push(w[_]))
}
return g.length > 0 && m.push(g[0]), m
}, v.getRangeByAmount = function (O, j, m) {
for (var g = [], y = j; y <= j + m - 1; y++) {
var _ = v.data[O][y];
p.Utils.isDefined(_) && g.push(_)
}
return g
}, v.getItemCount = function (O) {
return p.Utils.isDefined(v.data[O]) ? v.data[O].length : 0
}, v.getEpicRelic = function (O) {
switch (v.getItem(O.getType(), O.getID()).data.element) {
case "mech":
case "storm":
return {
type: "relic", ID: 29
};
case "earth":
return {
type: "relic", ID: 30
};
case "fire":
return {
type: "relic", ID: 31
};
case "ice":
return {
type: "relic", ID: 32
};
case "water":
return {
type: "relic", ID: 33
};
case "ice & fire":
return {
type: "relic", ID: 34
};
default:
return {
type: "relic", ID: 29
}
}
}, v.itemMap = {}, v.drops = [], v
}())
}, function (v, O) {
v.exports = window._
}, function (v, O, j) {
"use strict";
var p, m, g, y, _, w, E, T, I, A, S, C, D, M, x, N, P, R, k, L, B, U, G, F, H, K, z, W, V, Y, q, Q, X, J;
j.d(O, "x", (function () {
return m
})), j.d(O, "y", (function () {
return g
})), j.d(O, "v", (function () {
return y
})), j.d(O, "C", (function () {
return _
})), j.d(O, "h", (function () {
return w
})), j.d(O, "b", (function () {
return T
})), j.d(O, "f", (function () {
return I
})), j.d(O, "e", (function () {
return A
})), j.d(O, "q", (function () {
return S
})), j.d(O, "s", (function () {
return C
})), j.d(O, "l", (function () {
return D
})), j.d(O, "p", (function () {
return M
})), j.d(O, "d", (function () {
return x
})), j.d(O, "k", (function () {
return N
})), j.d(O, "j", (function () {
return R
})), j.d(O, "c", (function () {
return k
})), j.d(O, "o", (function () {
return L
})), j.d(O, "m", (function () {
return B
})), j.d(O, "w", (function () {
return U
})), j.d(O, "n", (function () {
return G
})), j.d(O, "i", (function () {
return F
})), j.d(O, "u", (function () {
return H
})), j.d(O, "B", (function () {
return z
})), j.d(O, "z", (function () {
return W
})), j.d(O, "t", (function () {
return V
})), j.d(O, "D", (function () {
return Y
})), j.d(O, "g", (function () {
return q
})), j.d(O, "a", (function () {
return Q
})), j.d(O, "A", (function () {
return X
})), j.d(O, "r", (function () {
return J
})),
function (v) {
v.ShowDrops = "Prodigy.Events.VictoryManager.SHOW_DROPS", v.Complete = "Prodigy.Events.VictoryManager.COMPLETE"
}(p || (p = {})),
function (v) {
v.OnGetDataComplete = "Prodigy.Events.Survey.ON_GET_DATA_COMPLETE"
}(m || (m = {})),
function (v) {
v.Audio = "Prodigy.Events.SystemMenu.REFRESH_AUDIO_MENU"
}(g || (g = {})),
function (v) {
v.AddChild = "Prodigy.Events.Screen.ADD_CHILD", v.GetLayer = "Prodigy.Events.Screen.GET_LAYER", v.EnableBackground = "Prodigy.Events.Screen.ENABLE_BACKGROUND", v.EnableContent = "Prodigy.Events.Screen.ENABLE_CONTENT"
}(y || (y = {})),
function (v) {
v.PlayerAdded = "Prodigy.Events.WalkableScreen.PLAYER_ADDED", v.PlayerUpdate = "Prodigy.Events.WalkableScreen.PLAYER_UPDATED"
}(_ || (_ = {})),
function (v) {
v.Done = "Prodigy.Events.FlyingStars.DONE", v.PippetStarsDone = "Prodigy.Events.FlyingPippetStars.DONE", v.MemberStarsDone = "Prodigy.Events.FlyingMemberStars.DONE"
}(w || (w = {})),
function (v) {
v.Done = "Prodigy.Events.OpenJar.DONE"
}(E || (E = {})),
function (v) {
v.GetIsRunning = "Prodigy.Events.Battle.GET_IS_RUNNING", v.PopupClosed = "Prodigy.Events.Battle.POPUP_CLOSED", v.EndBattle = "Prodigy.Events.Battle.END_BATTLE", v.ApplySlotBonus = "Prodigy.Events.Battle.APPLY_SLOT_BONUS", v.PvpComboIncrease = "Prodigy.Events.Battle.PVP_COMBO_INCREASE", v.PvpComboBreak = "Prodigy.Events.Battle.PVP_COMBO_BREAK", v.PvpUpdate = "Prodigy.Events.Battle.PVP_UPDATE", v.PvpComboMeterMoveIn = "Prodigy.Events.Battle.PVP_COMBO_METRE_MOVE_IN", v.PvpComboMeterMoveOut = "Prodigy.Events.Battle.PVP_COMBO_METRE_MOVE_OUT"
}(T || (T = {})),
function (v) {
v.AnimationDone = "Prodigy.Events.Creature.ANIMATION_DONE", v.LevelUp = "Prodigy.Events.Creature.LEVEL_UP", v.StarsAdded = "Prodigy.Events.Creature.STARS_ADDED", v.PlayerLoaded = "Prodigy.Events.Creature.PLAYER_LOADED", v.LevelUpAnimation = "Prodigy.Events.Creature.LEVEL_UP_ANIMATION", v.ProcessedAllEvents = "Prodigy.Events.Creature.PROCESSED_ALL_EVENTS", v.EvolveStart = "Prodigy.Events.Creature.EVOLVE_START", v.EvolveEnd = "Prodigy.Events.Creature.EVOLVE_END", v.Evolved = "Prodigy.Events.Creature.EVOLVED"
}(I || (I = {})),
function (v) {
v.ShowPippetBattleBonus = "Prodigy.Events.Chest.SHOW_PIPPET_BATTLE_BONUS", v.ShowMemberStars = "Prodigy.Events.Chest.SHOW_MEMBER_STARS"
}(A || (A = {})),
function (v) {
v.EnableDynamicLayer = "Prodigy.Events.Map.ENABLE_DYNAMIC_LAYER"
}(S || (S = {})),
function (v) {
v.Setup = "Prodigy.Events.NetworkHandlers.SETUP", v.LoginError = "Prodigy.Events.NetworkHandlers.LOGIN_ERROR"
}(C || (C = {})),
function (v) {
v.HideHUD = "Prodigy.Events.HUD.OPEN_CHAT", v.ShowHUD = "Prodigy.Events.HUD.CLOSE_CHAT", v.RefreshHUD = "Prodigy.Events.HUD.REFRESH_HUD_ICONS", v.SetClickedWorldMap = "Prodigy.Events.HUD.SET_CLICKED_WORLD_MAP", v.HideChatNotif = "Prodigy.Events.HUD.HIDE_CHAT_NOTIF", v.ClosePetsMenu = "Prodigy.Events.HUD.CLOSE_PETS_MENU", v.ShowRightSideHUD = "Prodigy.Events.HUD.SHOW_RIGHT_HUD", v.HideRightSideHUD = "Prodigy.Events.HUD.HIDE_RIGHT_HUD"
}(D || (D = {})),
function (v) {
v.GetAllMailSuccess = "Prodigy.Events.Mailer.GET_ALL_MAIL_SUCCESS", v.GetAllMailFailure = "Prodigy.Events.Mailer.GET_ALL_MAIL_FAILURE", v.MarkAsRead = "Prodigy.Events.Mailer.MARK_AS_READ", v.MarkAsReadFailure = "Prodigy.Events.Mailer.MARK_AS_READ_FAILED", v.DeleteMailSuccess = "Prodigy.Events.Mailer.DELETE_MAIL_SUCCESSFUL", v.DeleteMailFailure = "Prodigy.Events.Mailer.DELETE_MAIL_FAILURE", v.UpdateMailCounters = "Prodigy.Events.Mailer.UPDATE_MAIL_COUNTERS", v.ShowIndicator = "Prodigy.Events.Mailer.SHOW_INDICATOR", v.GiftBoxOpened = "Prodigy.Events.Mailer.GIFT_BOX_OPENED", v.CloseList = "Prodigy.Events.Mailer.CLOSE_LIST"
}(M || (M = {})),
function (v) {
v.Card = "Card", v.ChatButton = "chatButton", v.ConjureCubes = "ConjureCubes", v.FriendsList = "FriendsList", v.FriendsListOfActualFriends = "FriendsListOfActualFriends", v.HUD = "HUD", v.MailerButton = "ProdigyMailerButton", v.Mailer = "ProdigyMailer", v.MailView = "ProdigyMailView", v.NetworkHandlers = "NetworkHandlers", v.Titan = "Titan"
}(x || (x = {})),
function (v) {
v.GetGiftBoxes = "Prodigy.Events.GiftBoxes.GET_GIFT_BOXES", v.UpdateConjureCubeCount = "Prodigy.Events.GiftBoxes.UPDATE_CONJURE_CUBE_COUNT"
}(N || (N = {})),
function (v) {
v.OnGetDataComplete = "Prodigy.Events.Boss.ON_GET_DATA_COMPLETE"
}(P || (P = {})),
function (v) {
v.Update = "Prodigy.Events.GameObj.UPDATE", v.PlayerInitialized = "Prodigy.Events.GameObj.PLAYER_INITIALIZED"
}(R || (R = {})),
function (v) {
v.Loaded = "Prodigy.Events.Boot.LOADED"
}(k || (k = {})),
function (v) {
v.WorkerLoadComplete = "Prodigy.Events.Loading.WORKER_LOAD_COMPLETE", v.FestivalInitialized = "Prodigy.Events.Loading.FESTIVAL_INITIALIZED"
}(L || (L = {})),
function (v) {
v.ClickedHouseIcon = "Prodigy.Events.House.CLICKED_HOUSE_ICON", v.OpenEditor = "Prodigy.Events.House.OPEN_EDITOR", v.CloseEditor = "Prodigy.Events.House.CLOSE_EDITOR"
}(B || (B = {})),
function (v) {
v.InkBlasted = "Prodigy.Events.ShipwreckShore.INK_BLASTED", v.InkGroupDestroyed = "Prodigy.Events.ShipwreckShore.INK_GROUP_DESTROYED"
}(U || (U = {})),
function (v) {
v.OnMouseWheel = "Prodigy.Events.Input.ON_MOUSE_WHEEL"
}(G || (G = {})),
function (v) {
v.GotFriendsList = "Prodigy.Events.FriendsList.GOT_FRIENDS_LIST", v.GotFriendsListAppearance = "Prodigy.Events.FriendsList.GOT_FRIENDS_LIST_APPEARANCE", v.GetTotalFriendRequests = "Prodigy.Events.FriendsList.GET_TOTAL_FRIEND_REQUESTS", v.GetTotalFriendRequestsFailure = "Prodigy.Events.FriendsList.GET_TOTAL_FRIEND_REQUESTS_FAILURE", v.ClearFriendRequestsCache = "Prodigy.Events.FriendsList.CLEAR_FRIEND_REQUESTS_CACHE", v.GetFriendRequestList = "Prodigy.Events.FriendsList.GET_FRIEND_REQUEST_LIST", v.GotFriendRequestList = "Prodigy.Events.FriendsList.GOT_FRIEND_REQUEST_LIST", v.GetFriendList = "Prodigy.Events.FriendsList.GET_FRIENDS_LIST", v.SetRequests = "Prodigy.Events.FriendsList.SET_REQUESTS", v.SendRequest = "Prodigy.Events.FriendsList.SEND_REQUEST", v.CancelRequest = "Prodigy.Events.FriendsList.CANCEL_REQUEST", v.AcceptRequest = "Prodigy.Events.FriendsList.ACCEPT_REQUEST", v.RejectRequest = "Prodigy.Events.FriendsList.REJECT_REQUEST", v.RequestSent = "Prodigy.Events.FriendsList.REQUEST_SENT", v.RequestCancelled = "Prodigy.Events.FriendsList.REQUEST_CANCELLED", v.RequestReceived = "Prodigy.Events.FriendsList.REQUEST_RECEIVED", v.RequestAccepted = "Prodigy.Events.FriendsList.REQUEST_ACCEPTED", v.RequestRejected = "Prodigy.Events.FriendsList.REQUEST_REJECTED", v.RemoveFriend = "Prodigy.Events.FriendsList.REMOVE_FRIEND", v.FriendRemoved = "Prodigy.Events.FriendsList.FRIEND_REMOVED", v.GetFriendshipStatus = "Prodigy.Events.FriendsList.GET_FRIENDSHIP_STATUS", v.GotFriendshipStatus = "Prodigy.Events.FriendsList.GOT_FRIENDSHIP_STATUS", v.FriendsAppearanceUpdated = "Prodigy.Events.FriendsList.FRIENDS_APPEARANCE_UPDATED", v.IllogicalRequestAction = "Prodigy.Events.FriendsList.ILLOGICAL_REQUEST_ACTION"
}(F || (F = {})),
function (v) {
v.MovePlayer = "Prodigy.Events.PlayerLocomotion.MOVE_PLAYER", v.StopPlayer = "Prodigy.Events.PlayerLocomotion.STOP_PLAYER", v.GetTarget = "Prodigy.Events.PlayerLocomotion.GET_TARGET"
}(H || (H = {})),
function (v) {
v.SetBackgroundPanelTileDimensions = "Prodigy.Events.LocationPage.SET_BACKGROUND_PANEL_TILE_DIMENSIONS", v.GetBackgroundPanelTileDimensions = "Prodigy.Events.LocationPage.GET_BACKGROUND_PANEL_TILE_DIMENSIONS"
}(K || (K = {})),
function (v) {
v.TabButtonClicked = "Prodigy.Events.UI.TAB_BUTTON_CLICKED", v.TabSelected = "Prodigy.Events.UI.TAB_SELECTED", v.ChildAdded = "Prodigy.Events.UI.CHILD_ADDED", v.ChildRemoved = "Prodigy.Events.UI.CHILD_REMOVED", v.MenuOpened = "Prodigy.Events.UI.MENU_OPENED", v.MountTogglePressed = "Prodigy.Events.UI.MOUNT_TOGGLE_PRESSED", v.WorldMapZoneSelected = "Prodigy.Events.UI.WORLD_MAP_ZONE_SELECTED"
}(z || (z = {})),
function (v) {
v.GotTitans = "Prodigy.Events.Titan.GOT_TITANS", v.GotTitan = "Prodigy.Events.Titan.GOT_TITAN", v.Catapult = "Prodigy.Events.Titan.CATAPULT"
}(W || (W = {})),
function (v) {
v.PlayerAppearanceUpdated = "Prodigy.Events.PlayerContainer.PLAYER_APPEARANCE_UPDATED", v.PlayerEditingMenuClosed = "Prodigy.Events.PlayerContainer.PLAYEREDITINGMENUCLOSED", v.NewAnimationStateSet = "Prodigy.Events.PlayerContainer.NEW_ANIMATION_STATE_SET", v.MorphMarbleUsed = "Prodigy.Events.PlayerContainer.MORPH_MARBLE_USED", v.MorphMarbleCancelled = "Prodigy.Events.PlayerContainer.MORPH_MARBLE_CANCELLED", v.MorphMarbleTimerUpdated = "Prodigy.Events.PlayerContainer.MORPH_MARBLE_TIMER_UPDATED"
}(V || (V = {})),
function (v) {
v.POST_MESSAGE_RECEIVED = "Prodigy.Events.Web.POST_MESSAGE_RECEIVED"
}(Y || (Y = {})),
function (v) {
v.TargetCollected = "Prodigy.Events.Dungeon.TARGET_COLLECTED"
}(q || (q = {})),
function (v) {
v.PagesCollected = "Prodigy.Events.Achievements.PAGES_COLLECTED", v.ClaimedRewardsUpdated = "Prodigy.Events.Achievements.CLAIMED_REWARDS_UPDATED"
}(Q || (Q = {})),
function (v) {
v.ToolTipClosed = "Prodigy.Events.ToolTip.CLOSE"
}(X || (X = {})),
function (v) {
v.MembershipResponseReceived = "Prodigy.Events.Membership.RESPONSE_RECEIVED"
}(J || (J = {}))
}, function (v, O) {
v.exports = window.inversify
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.FEATURE_HOUSE_MOVING = "FEATURE_HOUSE_MOVING", v.FEATURE_HOUSE_VISITING = "FEATURE_HOUSE_VISITING", v.FEATURE_STYLIST = "FEATURE_STYLIST", v.FEATURE_CLOUD_MOUNT = "FEATURE_CLOUD_MOUNT", v.FEATURE_SOCIAL_FEED = "FEATURE_SOCIAL_FEED", v.FEATURE_BADGES = "FEATURE_BADGES", v.FEATURE_BATTLE_TUTORIAL = "FEATURE_BATTLE_TUTORIAL", v.FEATURE_ACADEMY = "FEATURE_ACADEMY", v.FEATURE_ACADEMY_TOWERS = "FEATURE_ACADEMY_TOWERS", v.FEATURE_TOWERS_PROMPT = "FEATURE_TOWERS_PROMPT", v.FEATURE_SUMMERFEST_CUTSCENES = "FEATURE_SUMMERFEST_CUTSCENES", v.FEATURE_SPRINGFEST_CUTSCENES = "FEATURE_SPRINGFEST_CUTSCENES", v.FEATURE_STARLIGHT_CUTSCENES = "FEATURE_STARLIGHT_CUTSCENES", v.FEATURE_PUMPKINFEST_CUTSCENES = "FEATURE_PUMPKINFEST_CUTSCENES", v.FEATURE_WINTERFEST_CUTSCENES = "FEATURE_WINTERFEST_CUTSCENES", v.FEATURE_TOWERTOWN = "FEATURE_TOWERTOWN", v.BREADCRUMB_CLICKED_WORLD_MAP_BUTTON = "BREADCRUMB_CLICKED_WORLD_MAP_BUTTON", v.BREADCRUMB_CLICKED_WORLD_MAP_HOUSE = "BREADCRUMB_CLICKED_WORLD_MAP_HOUSE", v.BREADCRUMB_CLICKED_HOUSE_LOCK_BUTTON = "BREADCRUMB_CLICKED_HOUSE_LOCK_BUTTON", v.BREADCRUMB_CLICKED_HOUSE_MOVE_BUTTON = "BREADCRUMB_CLICKED_HOUSE_MOVE_BUTTON", v.BREADCRUMB_CLICKED_CARD_VISIT_BUTTON = "BREADCRUMB_CLICKED_CARD_VISIT_BUTTON", v.BREADCRUMB_CLICKED_CARD_STYLIST_BUTTON = "BREADCRUMB_CLICKED_CARD_STYLIST_BUTTON", v.BREADCRUMB_CLICKED_DAB = "BREADCRUMB_CLICKED_DAB", v.BREADCRUMB_CLICKED_DAB_EMOTE_BUTTON = "BREADCRUMB_CLICKED_DAB_EMOTE_BUTTON", v.BREADCRUMB_CLICKED_DAB_DANCE_BUTTON = "BREADCRUMB_CLICKED_DAB_DANCE_BUTTON", v.BREADCRUMB_CLICKED_DAB_DAB_BUTTON = "BREADCRUMB_CLICKED_DAB_DAB_BUTTON", v.BREADCRUMB_TITAN_INTRO = "BREADCRUMB_TITAN_INTRO", v.BREADCRUMB_TITAN_WATCHED_INTRO = "BREADCRUMB_TITAN_WATCHED_INTRO", v.BREADCRUMB_TITAN_HARVEY_TALKED = "BREADCRUMB_TITAN_HARVEY_TALKED", v.FEATURE_TITAN_UNLOCKED = "BREADCRUMB_TITAN_UNLOCKED_HUD_BUTTON", v.BREADCRUMB_TITAN_UNLOCKED_HUD_BUTTON = "BREADCRUMB_TITAN_UNLOCKED_HUD_BUTTON", v.BREADCRUMB_TITAN_UNLOCKED_DIALOGUE = "BREADCRUMB_TITAN_UNLOCKED_DIALOGUE", v.BREADCRUMB_TITAN_UNLOCKED_BUTTONS = "BREADCRUMB_TITAN_UNLOCKED_BUTTONS", v.BREADCRUMB_CLOUD_MOUNT_TOGGLED = "BREADCRUMB_CLOUD_MOUNT_TOGGLED", v.BREADCRUMB_SOCIAL_FEED_OPENED = "BREADCRUMB_SOCIAL_FEED_OPENED", v.BREADCRUMB_CLICKED_SOCIAL_BUTTON = "BREADCRUMB_CLICKED_SOCIAL_BUTTON", v.BREADCRUMB_CLICKED_BADGES_BUTTON = "BREADCRUMB_CLICKED_BADGES_BUTTON", v.BREADCRUMB_UNLOCK_ACADEMY = "BREADCRUMB_UNLOCK_ACADEMY", v.BREADCRUMB_UNLOCK_ACADEMY_NOOT_DIALOGUE = "BREADCRUMB_UNLOCK_ACADEMY_NOOT_DIALOGUE", v.BREADCRUMB_FIRST_BATTLE_STARTED = "BREADCRUMB_FIRST_BATTLE_STARTED", v.BREADCRUMB_FIRST_BATTLE_FINISHED = "BREADCRUMB_FIRST_BATTLE_FINISHED", v.BREADCRUMB_FIRST_NEAR_DEFEAT = "BREADCRUMB_FIRST_NEAR_DEFEAT", v.BREADCRUMB_FIRST_ENEMY_HURT = "BREADCRUMB_FIRST_ENEMY_HURT", v.BREADCRUMB_FIRST_NFACTOR_BONUS = "BREADCRUMB_FIRST_NFACTOR_BONUS", v.BREADCRUMB_FIRST_ENERGY_GAINED = "BREADCRUMB_FIRST_ENERGY_GAINED", v.BREADCRUMB_FIRST_AOE_READY = "BREADCRUMB_FIRST_AOE_READY", v.BREADCRUMB_FIRST_AOA_CHARGED = "BREADCRUMB_FIRST_AOA_CHARGED", v.BREADCRUMB_FIRST_AOA_USED = "BREADCRUMB_FIRST_AOA_USED", v.BREADCRUMB_AUTO_ATTACK_TUTORIAL = "BREADCRUMB_AUTO_ATTACK_TUTORIAL", v.BREADCRUMB_FIRST_PET_RESCUABLE = "BREADCRUMB_FIRST_PET_RESCUABLE", v.BREADCRUMB_FIRST_PET_RESCUED = "BREADCRUMB_FIRST_PET_RESCUED", v.BREADCRUMB_FREE_RESCUE = "BREADCRUMB_FREE_RESCUE", v.BREADCRUMB_EARTH_TOWER = "BREADCRUMB_EARTH_TOWER", v.BREADCRUMB_FIRE_TOWER = "BREADCRUMB_FIRE_TOWER", v.BREADCRUMB_ICE_TOWER = "BREADCRUMB_ICE_TOWER", v.BREADCRUMB_WATER_TOWER = "BREADCRUMB_WATER_TOWER", v.BREADCRUMB_STORM_TOWER = "BREADCRUMB_STORM_TOWER", v.BREADCRUMB_ACADEMY_SECOND_FLOOR = "BREADCRUMB_ACADEMY_SECOND_FLOOR", v.BREADCRUMB_ACADEMY_UNPLACED_KEYSTONES = "BREADCRUMB_ACADEMY_UNPLACED_KEYSTONES", v.BREADCRUMB_ACADEMY_NO_KEYSTONES = "BREADCRUMB_ACADEMY_NO_KEYSTONES", v.BREADCRUMB_ACADEMY_VISITED = "BREADCRUMB_ACADEMY_VISITED", v.BREADCRUMB_COMPLETED_ELEVATOR = "BREADCRUMB_COMPLETED_ELEVATOR", v.BREADCRUMB_ACADEMY_VISITED_AFTER_RECIEVING_KEYSTONE = "BREADCRUMB_ACADEMY_VISITED_AFTER_RECIEVING_KEYSTONE", v.BREADCRUMB_ACADEMY_PEDESTAL_ROOM_VISITED_AFTER_RECIEVING_KEYSTONE = "BREADCRUMB_ACADEMY_PEDESTAL_ROOM_VISITED_AFTER_RECIEVING_KEYSTONE", v.BREADCRUMB_ACADEMY_TOWER_LOBBY_VISITED_AFTER_PLACING_KEYSTONE = "BREADCRUMB_ACADEMY_TOWER_LOBBY_VISITED_AFTER_PLACING_KEYSTONE", v.FIRST_TIME_PROMPT = "FIRST_TIME_PROMPT", v.NOOT_TOWER_PROMPT = "NOOT_TOWER_PROMPT", v.FEATURE_COOP_BATTLE = "FEATURE_COOP_BATTLE", v.BREADCRUMB_COOP_BATTLE_START = "BREADCRUMB_COOP_BATTLE_START", v.BREADCRUMB_COOP_PARTY_SELECT = "BREADCRUMB_COOP_PARTY_SELECT", v.BREADCRUMB_COOP_CRYSTAL_INTRO = "BREADCRUMB_COOP_CRYSTAL_INTRO", v.BREADCRUMB_SUMMERFEST_INTRO = "BREADCRUMB_SUMMERFEST_INTRO", v.BREADCRUMB_FIRST_SUMMERFEST_WHEEL_CLICK = "BREADCRUMB_FIRST_SUMMERFEST_WHEEL_CLICK", v.BREADCRUMB_FIRST_SUMMERFEST_STYLIST_CLICK = "BREADCRUMB_FIRST_SUMMERFEST_STYLIST_CLICK", v.BREADCRUMB_FIRST_SUMMERFEST_NICKNAMER_CLICK = "BREADCRUMB_FIRST_SUMMERFEST_NICKNAMER_CLICK", v.BREADCRUMB_STARLIGHT_INTRO = "BREADCRUMB_STARLIGHT_INTRO", v.BREADCRUMB_PUMPKINFEST_INTRO = "BREADCRUMB_PUMPKINFEST_INTRO", v.BREADCRUMB_WINTERFEST_INTRO = "BREADCRUMB_WINTERFEST_INTRO", v.BREADCRUMB_SPRINGFEST_INTRO = "BREADCRUMB_SPRINGFEST_INTRO", v.BREADCRUMB_FIRST_SPRINGFEST_DON_ZORRO_CLICK = "BREADCRUMB_FIRST_SPRINGFEST_DON_ZORRO_CLICK", v.BREADCRUMB_FIRST_SPRINGFEST_HARRIET_HOOD_CLICK = "BREADCRUMB_FIRST_SPRINGFEST_HARRIET_HOOD_CLICK", v.FEATURE_DUNGEONS = "BREADCRUMB_FEATURE_DUNGEONS", v.BREADCRUMB_STARTED_CRYSTAL_CAVERNS = "BREADCRUMB_STARTED_CRYSTAL_CAVERNS", v.FEATURE_ELEMENTAL_GUARDIAN = "FEATURE_ELEMENTAL_GUARDIAN", v.BREADCRUMB_FIRST_ENTRY_HARD_PATH_BOUNTY_RUN = "BREADCRUMB_FIRST_ENTRY_HARD_PATH_BOUNTY_RUN", v.BREADCRUMB_EG_ISLAND_UNLOCKED = "BREADCRUMB_EG_ISLAND_UNLOCKED", v.BREADCRUMB_EG_FTUE_COMPLETED = "BREADCRUMB_EG_FTUE_COMPLETED", v.BREADCRUMB_RUNE_RUN_BOARD_FTUE = "BREADCRUMB_RUNE_RUN_BOARD_FTUE", v.BREADCRUMB_GUARDIAN_LOADOUT_FTUE = "BREADCRUMB_GUARDIAN_LOADOUT_FTUE", v.FEATURE_EG_ARENA = "FEATURE_EG_ARENA", v.BREADCRUMB_EG_ARENA_UNLOCKED = "BREADCRUMB_EG_ARENA_UNLOCKED", v.BREADCRUMB_EG_ARENA_VISITED_ARENA = "BREADCRUMB_EG_ARENA_VISITED_ARENA", v.BREADCRUMB_EG_ARENA_LEADERBOARD_FTUE = "BREADCRUMB_EG_ARENA_LEADERBOARD_FTUE", v.BREADCRUMB_EG_ARENA_FTUE_PHASE_3 = "BREADCRUMB_EG_ARENA_FTUE_PHASE_3", v.BREADCRUMB_EG_ARENA_CHALLENGER_TUTORIAL_FTUE = "BREADCRUMB_EG_ARENA_CHALLENGER_TUTORIAL_FTUE", v.BREADCRUMB_EG_ARENA_HAS_SEEN_TIER_NOTIFICATION = "BREADCRUMB_EG_ARENA_HAS_SEEN_TIER_NOTIFICATION", v.BREADCRUMB_EG_ARENA_UNOPENED_MEMBER_CHESTS = "BREADCRUMB_EG_ARENA_UNOPENED_MEMBER_CHESTS", v.BREADCRUMB_EG_ARENA_WELCOME_BACK = "BREADCRUMB_EG_ARENA_WELCOME_BACK", v.BREADCRUMB_EG_ARENA_PLAYER_HAS_FIRST_RUNE = "BREADCRUMB_EG_ARENA_PLAYER_HAS_FIRST_RUNE", v.BREADCRUMB_EG_ARENA_PLAYER_BELOW_LEVEL = "BREADCRUMB_EG_ARENA_PLAYER_BELOW_LEVEL", v.BREADCRUMB_EG_ARENA_FTUE_TELEPORT_CONTEXT = "BREADCRUMB_EG_ARENA_FTUE_TELEPORT_CONTEXT", v.BREADCRUMB_EG_ARENA_SEASON_2_TIER_1_PARTICIPANT = "BREADCRUMB_EG_ARENA_SEASON_2_TIER_1_PARTICIPANT", v.BREADCRUMB_EG_ARENA_SEASON_2_TIER_2_PARTICIPANT = "BREADCRUMB_EG_ARENA_SEASON_2_TIER_2_PARTICIPANT", v.BREADCRUMB_EG_ARENA_SEASON_2_TIER_3_PARTICIPANT = "BREADCRUMB_EG_ARENA_SEASON_2_TIER_3_PARTICIPANT", v.FEATURE_ULTIMATES = "FEATURE_ULTIMATES", v.BREADCRUMB_ULTIMATES_FTUE = "BREADCRUMB_ULTIMATES_FTUE", v.BREADCRUMB_ULTIMATES_SUBSPACE_NOTIFICATION = "BREADCRUMB_ULTIMATES_SUBSPACE_NOTIFICATION", v.FEATURE_ANTI_CHURN_2 = "BREADCRUMB_FEATURE_ANTI_CHURN_2", v.BREADCRUMB_NEW_MEMBER = "BREADCRUMB_NEW_MEMBER", v.BREADCRUMB_SEEN_NEW_MEMBER_AD = "BREADCRUMB_SEEN_NEW_MEMBER_AD", v.FEATURE_PROGRESSIVE_WEB_APP = "FEATURE_PROGRESSIVE_WEB_APP", v.BREADCRUMB_FIRST_PWA_INSTALL = "BREADCRUMB_FIRST_PWA_INSTALL", v.FEATURE_QUEST_GOALS = "FEATURE_QUEST_GOALS", v.BREADCRUMB_NEXT_GOAL_INTRO = "BREADCRUMB_NEXT_GOAL_INTRO", v.FEATURE_WEEKLY_CHALLENGE = "FEATURE_WEEKLY_CHALLENGE", v.BREADCRUMB_FIRST_CHALLENGE_COMPLETE = "BREADCRUMB_FIRST_CHALLENGE_COMPLETE", v.FEATURE_STORE_PET_TAB_BADGE = "FEATURE_STORE_PET_TAB_BADGE", v.BREADCRUMB_PET_TAB_BADGE_STORE_5 = "BREADCRUMB_PET_TAB_BADGE_SKYWATCH", v.BREADCRUMB_PET_TAB_BADGE_STORE_6 = "BREADCRUMB_PET_TAB_BADGE_BONFIRE", v.BREADCRUMB_PET_TAB_BADGE_STORE_7 = "BREADCRUMB_PET_TAB_BADGE_FIREFLY", v.BREADCRUMB_PET_TAB_BADGE_STORE_8 = "BREADCRUMB_PET_TAB_BADGE_SHIVERCHILL", v.BREADCRUMB_PET_TAB_BADGE_STORE_19 = "BREADCRUMB_PET_TAB_BADGE_SHIPWRECK", v.FEATURE_PET_EVOLUTION = "FEATURE_PET_EVOLUTION", v.BREADCRUMB_NONMEMBER_FIRST_PET_EVOLUTION = "BREADCRUMB_NONMEMBER_FIRST_PET_EVOLUTION"
}(p || (p = {}))
}, function (v, O) {
v.exports = window.PIXI
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return m
}));
var p = j(0),
m = function () {
function v() {}
return v.get = function (v) {
return this.constants[v]
}, v.setLogLevel = function (v) {
if ("number" == typeof v) p.Logger.setLogLevel(v);
else switch (v) {
case "dev":
case "verbose":
case "all":
p.Logger.setLogLevel(p.LogLevel.Verbose);
break;
case "warn":
p.Logger.setLogLevel(p.LogLevel.Warning);
break;
case "error":
default:
p.Logger.setLogLevel(p.LogLevel.Error)
}
}, v.setDrops = function (v, O) {
0
}, v.setSpawnRandomization = function (v) {
0
}, v.getSpawnRandomization = function () {
return !1
}, v.setGameConstant = function (v, O) {
this.constants[v] = O
}, v.setNFactor = function (v) {
0
}, v.setCrit = function (v) {
0
}, v.setEscapeChance = function (v) {
0
}, v.setBench = function (v) {
0
}, v.scaleEncounterDistance = function (v) {
0
}, v.setRespawnTime = function (v) {
void 0 === v && (v = 120)
}, v.getGameSpeed = function () {
0
}, v.setGameSpeed = function (v) {
0
}, v.setFeedLimit = function (v) {
0
}, v.overrideUserRank = function (v) {
0
}, v.overrideUserPoints = function (v) {
0
}, v.setUnlimitedWheelSpins = function (v) {
0
}, v.setWheelSpinDuration = function (v) {
0
}, v.setMonsterRadiusVisible = function (v) {
0
}, v.setMaintainAspectRatio = function (v) {
0
}, v.overrideLastLogin = function (v) {
0
}, v.overrideDateToday = function (v) {
0
}, v.resetMaxPlayerLimit = function () {
return !!v.isMaxOnScreenOrigSet && (this.constants["GameConstants.Build.MAX_ON_SCREEN_PLAYERS_MOBILE"] = v.maxOnScreenPlayersMobileOrig, this.constants["GameConstants.Build.MAX_ON_SCREEN_PLAYERS_PC"] = v.maxOnScreenPlayersPCOrig, !0)
}, v.setMaxPlayerLimit = function (O) {
v.isMaxOnScreenOrigSet || (v.isMaxOnScreenOrigSet = !0, v.maxOnScreenPlayersMobileOrig = this.constants["GameConstants.Build.MAX_ON_SCREEN_PLAYERS_MOBILE"], v.maxOnScreenPlayersPCOrig = this.constants["GameConstants.Build.MAX_ON_SCREEN_PLAYERS_PC"]), p.DeviceUtils.isMobile() ? this.constants["GameConstants.Build.MAX_ON_SCREEN_PLAYERS_MOBILE"] = O : this.constants["GameConstants.Build.MAX_ON_SCREEN_PLAYERS_PC"] = O
}, v.getMaxPlayerLimit = function () {
return p.DeviceUtils.isMobile() ? this.constants["GameConstants.Build.MAX_ON_SCREEN_PLAYERS_MOBILE"] : this.constants["GameConstants.Build.MAX_ON_SCREEN_PLAYERS_PC"]
}, v.setKillGore = function (v) {
0
}, v.setForceCast = function (v) {
this.constants["GameConstants.Battle.FORCE_CAST"] = v
}, v.setForceOpponentCast = function (v) {
0
}, v.setMorphDuration = function (v) {
0
}, v.setCharacterCreationDate = function (v, O, j, p, m) {
void 0 === p && (p = 0), void 0 === m && (m = 0)
}, v.setSplitTestLane = function (v) {
this.constants["GameConstants.Features.SplitTests.DEBUG_LANE"] = v
}, window._.constants = v, v.constants = Object({
"GameConstants.Build.VERSION": "6.47.1",
"GameConstants.Build.SHOW_FPS": !1,
"GameConstants.Build.SHOW_DEBUG_VALUES": [],
"GameConstants.Build.MUTE_BGM": !1,
"GameConstants.Build.FRAMEWORK_LOG_LEVEL": 2,
"GameConstants.Build.ASSETS_LOCATION": "https://cdn.prodigygame.com/game/assets/",
"GameConstants.Build.TELEPORT": "",
"GameConstants.Build.QUEST": [],
"GameConstants.Build.ITEM_TYPE": [],
"GameConstants.Build.KILL_GORE": !1,
"GameConstants.Build.EASY_MODE": !1,
"GameConstants.Build.MEMBERSHIP": !1,
"GameConstants.Build.SCALE_MODE": 0,
"GameConstants.Build.ADD_PLAYER_FPS_THRESHOLD_LIMIT": 20,
"GameConstants.Build.ADD_PLAYER_FPS_THRESHOLD_RENABLE": 25,
"GameConstants.Build.MAX_ON_SCREEN_PLAYERS_PC": 30,
"GameConstants.Build.MAX_ON_SCREEN_PLAYERS_MOBILE": 20,
"GameConstants.Build.MAX_ON_SCREEN_FPS_LIMITED": 5,
"GameConstants.Build.MIN_ON_SCREEN_PLAYERS": 5,
"GameConstants.Build.SKIN_FOREGROUND_FPS_THRESHOLD_LIMIT": 25,
"GameConstants.Build.ENABLE_LOADING_METRICS": !0,
"GameConstants.Build.ENABLE_ADVANCED_METRICS": !0,
"GameConstants.Build.DRAW_TRIGGERS": !1,
"GameConstants.Tower.MAX_FREE_MEMBER_FLOOR": 5,
"GameConstants.Debug.AUTOSAVE_ENABLED": !0,
"GameConstants.Debug.POPUPS_ENABLED": !0,
"GameConstants.Debug.PLAYER_CARDS_ENABLED": !0,
"GameConstants.Debug.ENABLE_MAP": !1,
"GameConstants.Debug.AUTO_LOGIN": [],
"GameConstants.Debug.GET_PET": [],
"GameConstants.Debug.SET_LEVEL": 0,
"GameConstants.Debug.DISABLE_ACHIEVEMENTS": !1,
"GameConstants.Debug.GET_GOLD": 0,
"GameConstants.Debug.GET_SPELL": 0,
"GameConstants.Debug.COMPLETE_TUTORIAL": !1,
"GameConstants.Debug.FORCE_DROPS": [],
"GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE": 1,
"GameConstants.Debug.MONSTER_RESPAWN_TIME": 120,
"GameConstants.Debug.WIZARDS_ENABLED": !0,
"GameConstants.Debug.AUTO_RESOLVE_BATTLES_ENABLED": !1,
"GameConstants.Debug.GAME_SPEED": 1,
"GameConstants.Debug.FAST_GAME_SPEED": 0,
"GameConstants.Debug.FSM_LOGGING": !1,
"GameConstants.Debug.DEBUG_LOCALIZATION": !1,
"GameConstants.Debug.VERBOSE_LOCALIZATION": !1,
"GameConstants.Debug.AUTO_RESOLVE_TOWER_BATTLES_ENABLED": !1,
"GameConstants.Debug.EDUCATION_ENABLED": !0,
"GameConstants.Debug.EDUCATION_LOGGING_ENABLED": !1,
"GameConstants.Debug.AUTO_ANSWER_CORRECT_PERCENT": 1,
"GameConstants.Debug.UNLIMITED_WHEEL_SPINS": !1,
"GameConstants.Debug.SKIP_MEMBERSHIP_WEBSITE": !1,
"GameConstants.Debug.GIVES_MEMBERSHIP_AFTER_SKIP_WEBSITE": !1,
"GameConstants.Debug.MONSTER_RADIUS_VISIBLE": !1,
"GameConstants.Debug.CLOSE_BATTLE_RESULTS_SCREEN": !1,
"GameConstants.Debug.ADD_FAKE_PLAYERS_TO_SCREEN": 0,
"GameConstants.Debug.WINNER_EVERY_TIME": !1,
"GameConstants.Debug.DEBUG_TEST_SCREEN": !1,
"GameConstants.Debug.NEXT_SKILL_ID": void 0,
"GameConstants.Debug.PA_COOLDOWN_EXPIRED": void 0,
"GameConstants.Debug.DEPRECATED_IOS": !1,
"GameConstants.Debug.SCHOOL_START_HOUR": 8,
"GameConstants.Debug.SCHOOL_END_HOUR": 16,
"GameConstants.Debug.USER_DATA_PLATFORM": void 0,
"GameConstants.Mailer.TEST_MAIL": !1,
"GameConstants.FriendsList.TEST_FRIENDS_LIST": !1,
"GameConstants.Debug.ENV_URL": "",
"GameConstants.Features.ENABLE_HOUSE_MOVING": !0,
"GameConstants.Features.Wheel.COOLDOWN": 5,
"GameConstants.Features.Wheel.DEFAULT_SPINS": 1,
"GameConstants.Features.Wheel.MEMBER_SPINS": 2,
"GameConstants.Features.Wheel.SPIN_TIME": 15e3,
"GameConstants.Features.SplitTests.PLAY_AT_HOME": !0,
"GameConstants.Features.SplitTests.CHARACTER_CREATION_TIME": 0,
"GameConstants.Features.LevelLock.ACADEMY": 15,
"GameConstants.Features.ParentLink.TIMEOUT": 864e5,
"GameConstants.Features.DailyQuestions.NOTIFICATION_TIMEOUT": 9e5,
"GameConstants.Features.ENABLE_MONSTER_SPAWNING": !0,
"GameConstants.Battle.VALID_PARENT_EMAIL_STARS_PERCENTAGE": .05,
"GameConstants.Battle.MEMBER_STARS_PERCENTAGE": .5,
"GameConstants.Battle.STARS_EARNED_PER_OPPONENT": 10,
"GameConstants.Battle.MAX_NUM_PETS": 1,
"GameConstants.Battle.ATTACK_DAMAGE_OVERRIDE": null,
"GameConstants.Battle.ESCAPE_CHANCE": .75,
"GameConstants.Battle.CATCH_COST": 50,
"GameConstants.Battle.CATCH_COST_GOLD": 500,
"GameConstants.Battle.ALWAYS_SWITCH": !1,
"GameConstants.Battle.FORCE_CAST": -1,
"GameConstants.Battle.FORCE_OPPONENT_CAST": -1,
"GameConstants.Battle.ENEMY_ACCURACY_OVERRIDE": -1,
"GameConstants.Battle.SET_BENCH": null,
"GameConstants.Battle.FORCE_TARGETING_ENABLED": !1,
"GameConstants.Battle.AUTOMATION_ACTIONS": Object({}),
"GameConstants.Battle.AUTO_ATTACK_ENABLED": !1,
"GameConstants.Battle.AUTO_ATTACK_PAUSE": !1,
"GameConstants.Battle.AUTO_ATTACK_TARGET": 0,
"GameConstants.Battle.SKIP_ENEMY_TURN": !1,
"GameConstants.Battle.SKIP_PLAYER_TURN": !1,
"GameConstants.Battle.HIDE_TEMP_HEALTHBAR": !1,
"GameConstants.Battle.SHOW_HITBOXES": !1,
"GameConstants.Mira.MAX_HP": 1e5,
"GameConstants.Mira.DIFFICULTY": 10,
"GameConstants.Grandoff.MAX_HP": 12e3,
"GameConstants.Grandoff.DIFFICULTY": 3,
"GameConstants.Pippet.MAX_HP": null,
"GameConstants.Pippet.DIFFICULTY": 3,
"GameConstants.Cebollini.MAX_HP": null,
"GameConstants.Cebollini.DIFFICULTY": 3,
"GameConstants.ShadowGerald.MAX_HP": null,
"GameConstants.ShadowGerald.DIFFICULTY": 7,
"GameConstants.Gerald.MAX_HP": null,
"GameConstants.Gerald.DIFFICULTY": 4,
"GameConstants.OldOne.MAX_HP": null,
"GameConstants.OldOne.DIFFICULTY": 4,
"GameConstants.IceWyrm1.MAX_HP": null,
"GameConstants.IceWyrm1.DIFFICULTY": 3,
"GameConstants.IceWyrm2.MAX_HP": null,
"GameConstants.IceWyrm2.DIFFICULTY": 4,
"GameConstants.FrostyStorm.MAX_HP": null,
"GameConstants.FrostyStorm.DIFFICULTY": 3,
"GameConstants.StormyStorm.MAX_HP": null,
"GameConstants.StormyStorm.DIFFICULTY": 4,
"GameConstants.RainyStorm.MAX_HP": null,
"GameConstants.RainyStorm.DIFFICULTY": 3,
"GameConstants.SandyStorm.MAX_HP": null,
"GameConstants.SandyStorm.DIFFICULTY": 3,
"GameConstants.Inactivity.DIALOG_TIMER_SECONDS": 1500,
"GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS": 300,
"GameConstants.Inactivity.CANNOT_CONNECT_TIMER_SECONDS": 120,
"GameConstants.Inactivity.NETWORK_BOOT_TIMER_SECONDS": 6e4,
"GameConstants.Audio.DEFAULT_SOUND_VOLUME": .9,
"GameConstants.Audio.DEFAULT_MUSIC_VOLUME": .3,
"GameConstants.Audio.DEFAULT_VOICE_VOLUME": 1,
"GameConstants.LocationSelection.NONE": "none",
"GameConstants.LocationSelection.HOME": "home",
"GameConstants.LocationSelection.SCHOOL": "school",
"GameConstants.PVP.INVITE_TIMEOUT": 6e4,
"GameConstants.PVP.OVERRIDE_USER_RANK": null,
"GameConstants.PVP.OVERRIDE_USER_POINTS": null,
"GameConstants.PVP.OVERRIDE_USER_LEADERBOARD": null,
"GameConstants.PVP.BOT_TEAM": null,
"GameConstants.PVP.TIMER_ENABLED": !0,
"GameConstants.PVP.STARS_PER_QUESTION": 2,
"GameConstants.TITAN.HP_MULTIPLIER": 1.5,
"GameConstants.CO_OP_TITAN.TITAN_HP": 10,
"GameConstants.CO_OP_TITAN.CRYSTAL_HP": 5,
"GameConstants.CO_OP_TITAN.ATTACK_FREQUENCY": 2,
"GameConstants.CO_OP_TITAN.TITAN_DIFFICULTY": 5,
"GameConstants.CO_OP_TITAN.TITAN_BOUNTY": 10,
"GameConstants.CO_OP_TITAN.HOST_HEARTBEAT_TIME": 5e3,
"GameConstants.CO_OP_TITAN.CLIENT_HEARTBEAT_TIMEOUT": 2e4,
"GameConstants.DailyQuestions.OVERRIDE_LAST_LOGIN": -1,
"GameConstants.DailyQuestions.OVERRIDE_DATE_TODAY": -1,
"GameConstants.MorphMarbles.MORPH_DURATION_OVERRIDE": null,
"GameConstants.Network.CORTEX_ROOT": void 0
}), v.isMaxOnScreenOrigSet = !1, v.DAY_IN_MS = 864e5, v.MAX_SAFE_INTEGER = 9007199254740991, v.TOWER_COMMON_ROOM_SHORTFORM = "CR", v.TOWER_WARDEN_ROOM_SHORTFORM = "WR", v.TARGET_FPS_60_MS = 1e3 / 60, v.SECONDS_TO_MILLISECONDS_MULTIPLIER = 1e3, v
}();
O.b = m
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(1),
m = j(0),
g = j(491),
y = j(28),
_ = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O.onClick = new m.Signal, O.onEnabledClick = new m.Signal, O._lastClickTime = 0, O
}
return Object(p.__extends)(O, v), O.prototype.onUp = function (O, j, p) {
this.shouldDebounce() || (this._lastClickTime = Date.now(), this.currentState === y.a.Down && p && (this.onClick.dispatch(), this.getButtonState() === y.a.Down && this.onEnabledClick.dispatch()), v.prototype.onUp.call(this, O, j, p))
}, O.prototype.onDown = function (O, j) {
this.shouldDebounce() || v.prototype.onDown.call(this, O, j)
}, O.prototype.shouldDebounce = function () {
return this.debounceTimeMs > 0 && Date.now() < this._lastClickTime + this.debounceTimeMs
}, O.prototype.destroy = function () {
this.onClick.dispose(), this.onEnabledClick.dispose(), v.prototype.destroy.call(this)
}, Object(p.__decorate)([Object(m.serializeNumber)(), Object(p.__metadata)("design:type", Number)], O.prototype, "debounceTimeMs", void 0), Object(p.__decorate)([Object(m.serializeSignal)(), Object(p.__metadata)("design:type", m.Signal)], O.prototype, "onClick", void 0), Object(p.__decorate)([Object(m.serializeSignal)(), Object(p.__metadata)("design:type", m.Signal)], O.prototype, "onEnabledClick", void 0), O = Object(p.__decorate)([Object(m.componentable)("Button", m.EComponentPath.ui)], O)
}(g.a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return x
}));
var p = j(1),
m = j(20),
g = j(0),
y = j(6),
_ = j(2),
w = (j(11), j(5)),
E = j(62),
T = j(7),
I = j(153),
A = j(271),
S = j(219),
C = j(107),
D = j(69),
M = j(49),
x = function () {
function v() {}
return v.capitalize = function (v) {
return g.Utils.isDefined(v) ? v.charAt(0).toUpperCase() + v.slice(1) : ""
}, v.getDate = function () {
var v = new Date,
O = v.getDate(),
j = v.getMonth() + 1,
p = "" + O,
m = "" + j;
return O < 10 && (p = "0" + O), j < 10 && (m = "0" + j), "" + m + p + v.getFullYear()
}, v.getDateId = function () {
return Math.floor((new Date).getTime() / 864e5)
}, v.getDayName = function (v, O) {
return _.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.LocalizationService).getText("WEEKDAY_NAME_" + O)
}, v.addDays = function (v, O) {
var j = new Date(v);
return j.setDate(j.getDate() + O), j
}, v.convertItemToIcon = function (v) {
return "gold" === v.type ? "item/26" : "spell" === v.type ? (v.data = g.Utils.isDefined(v.data) ? v.data : w.a.getItem(v.type, v.ID).data, v.data.element) : "boss" === v.type ? "boss" : "player" === v.type ? "player" : "dorm" === v.type ? "" + v.ID : g.Utils.isDefined(v.metadata) && g.Utils.isDefined(v.metadata.icon) ? "" + String(v.metadata.icon) : g.Utils.isDefined(v.type) && g.Utils.isDefined(v.ID) ? v.type + "/" + v.ID : g.Utils.isDefined(v.tag) ? v.tag : "string" == typeof v ? v : "empty"
}, v.numberToString = function (v) {
for (var O = "" + v, j = "", p = 1, m = O.length - 1; m >= 0; m--) j = "" + O.charAt(m) + j, p % 3 == 0 && p > 0 && m > 0 && (j = "," + j), p++;
return j
}, v.isSchoolHours = function () {
var O = (new Date).getHours(),
j = v.getSchoolStartHour(),
p = v.getSchoolEndHour();
return O >= j && O <= p - 1
}, v.isDateWithinSchoolHours = function (O) {
var j = O.getHours(),
p = v.getSchoolStartHour(),
m = v.getSchoolEndHour();
return j >= p && j < m
}, v.getSchoolStartHour = function () {
return 8
}, v.getSchoolEndHour = function () {
return 16
}, v.isSchoolDay = function (v) {
var O = v.getDay();
return 0 !== O && 6 !== O
}, v.isNightTime = function () {
var v = (new Date).getHours();
return v >= 16 && v <= 23
}, v.isDefined = function (v) {
return !(null == v || "null" === v)
}, v.has = function (v, O) {
if (g.Utils.isDefined(v)) {
for (var j = O.split("."), p = v, m = 0; m < j.length; m++)
if (null == (p = p[j[m]]) || "null" === p) return !1;
return !0
}
return !1
}, v.getDateTime = function () {
var v = new Date;
return new Date(v.getUTCFullYear(), v.getUTCMonth(), v.getUTCDate()).getTime()
}, v.highlightAll = function (v, O, j, p) {
for (var m = 0; m < v.length; m++) g.Utils.isDefined(v[m].highlight) && v[m].highlight(O, j, p)
}, v.getObject = function (v) {
return "null" === v ? null : M.a.isString(v) ? JSON.parse(v) : v
}, v.copyObject = function (O) {
var j = {};
if (null === O || "object" != typeof O) return O;
if (O instanceof Array) {
j = [];
for (var p = O.length, m = 0; m < p; m++) j[m] = v.copyObject(O[m])
}
if (O instanceof Object)
for (var g in O) O.hasOwnProperty(g) && (j[g] = v.copyObject(O[g]));
return j
}, v.inArray = function (v, O) {
for (var j = 0; j < v.length; j++)
if (v[j] === O) return !0;
return !1
}, v.removeMultipleFromArray = function (v, O, j) {
var m = this,
g = Object(p.__spread)(v);
return O.forEach((function (v) {
return m.removeFromArray(v, g, j)
})), g
}, v.equalArrayContents = function (v, O) {
var j, m;
if (v === O) return !0;
if (null === v || null === O) return !1;
if (v.length !== O.length) return !1;
var g = Object(p.__spread)(v);
try {
for (var y = Object(p.__values)(O), _ = y.next(); !_.done; _ = y.next()) {
var w = _.value;
if (!this.removeFromArray(w, g)) return !1
}
} catch (E) {
j = {
error: E
}
} finally {
try {
_ && !_.done && (m = y.return) && m.call(y)
} finally {
if (j) throw j.error
}
}
return !(g.length > 0)
}, v.insertionSortY = function (v) {
for (var O = v.length, j = -1; ++j < O;) {
for (var p = v[j], m = p.y, g = j; --g >= 0;) {
var y = v[g];
if (y.y <= m) break;
v[g + 1] = y
}
v[g + 1] = p
}
}, v.removeFromArray = function (v, O, j) {
void 0 === j && (j = function (v, O) {
return v === O
});
for (var p = 0; p < O.length; p++)
if (j(O[p], v)) return O.splice(p, 1), !0;
return !1
}, v.centreObject = function (v, O, j, p, m) {
g.Utils.isDefined(O) && g.Utils.isDefined(p) && (v.x = O - .5 * p), g.Utils.isDefined(j) && g.Utils.isDefined(m) && (v.y = j - .5 * m)
}, v.calculateItemSpacing = function (v, O, j) {
return (j - v * O) / (v + 1)
}, v.calculateItemCoordinate = function (v, O, j) {
return (O + j) * v + j
}, v.centerItemsWithinContainer = function (O, j, p, m, y) {
var _ = {
width: 0,
height: 0
};
if (g.Utils.isDefined(y)) _.width = y.width, _.height = y.height;
else {
for (var w = 0; w < O.length; w++) {
var E = O[w];
E.width > _.width && (_.width = E.width), _.height += E.height
}
_.height /= O.length
}
var T = p ? 0 : j.x,
I = p ? 0 : j.y;
g.Utils.isDefined(m) && (T += g.Utils.isDefined(m.x) ? m.x : 0, I += g.Utils.isDefined(m.y) ? m.y : 0);
var A = v.calculateItemSpacing(O.length, _.width, j.width),
S = v.calculateItemSpacing(1, _.height, j.height),
C = I + v.calculateItemCoordinate(0, _.height, S);
O.forEach((function (O, j) {
O.x = T + v.calculateItemCoordinate(j, _.width, A), O.y = C
}))
}, v.frameDataToFrameJson = function (v) {
for (var O = {}, j = 0; j < v.length; j++) O[v[j].name] = {
frame: {
x: v[j].x,
y: v[j].y,
w: v[j].width,
h: v[j].height
},
trimmed: v[j].trimmed,
sourceSize: {
w: v[j].sourceSizeW,
h: v[j].sourceSizeH
},
spriteSourceSize: {
x: v[j].spriteSourceSizeX,
y: v[j].spriteSourceSizeY,
w: v[j].spriteSourceSizeW,
h: v[j].spriteSourceSizeH
}
};
return {
frames: O
}
}, v.filterDuplicateKeys = function (v, O) {
for (var j = [], p = _.a.instance.prodigy.gameContainer.get("497-7811").player, m = 0; m < O.length; m++) {
var y = O[m];
"key" === y.type && p.backpack.hasItem("key", y.ID) > 0 || "spell" === y.type && g.Utils.isDefined(p.data.spells) && -1 !== p.data.spells.indexOf(y.ID) || j.push(y)
}
return j
}, v.validateVersion = function (v) {
return /^[0-9-]+$/.test(v) ? v : "undefined"
}, v.trimText = function (v, O, j) {
void 0 === j && (j = !1);
var p = v;
return p.length > O && (p = v.substring(0, O), j && (p += "...")), p
}, v.joinByProperty = function (v, O, j) {
void 0 === j && (j = ",");
for (var p = "", m = v.length, g = 0; g < m; g++) p += "" + v[g][O] + (g < m - 1 ? j : "");
return p
}, v.cleanUpGameID = function (v) {
for (var O in v)
for (var j = 0; j < v[O].length; j++) v[O][j].hasOwnProperty("gameID") && (v[O][j].hasOwnProperty("ID") || (v[O][j].ID = v[O][j].gameID), delete v[O][j].gameID)
}, v.getEnvironment = function () {
var v = window.location.host,
O = window.location.search,
j = "local";
return v.indexOf("-qa") >= 0 || v.indexOf("dev.prodigygame.org") >= 0 ? j = "test" : v.indexOf("prodigygame.net") >= 0 || O.indexOf("env=dev") >= 0 ? j = "dev" : v.indexOf("prodigygame.org") >= 0 || O.indexOf("env=staging") >= 0 ? j = "staging" : (v.indexOf("prodigygame.com") >= 0 || O.indexOf("env=production") >= 0 || O.indexOf("env=prod") >= 0) && (j = "production"), j
}, v.getEnvironmentByHost = function () {
var v = window.location.host,
O = "local";
return v.indexOf("-qa") >= 0 || v.indexOf("dev.prodigygame.org") >= 0 ? O = "test" : v.indexOf("prodigygame.net") >= 0 ? O = "dev" : v.indexOf("prodigygame.org") >= 0 ? O = "staging" : v.indexOf("prodigygame.com") >= 0 && (O = "production"), O
}, v.getOptionalParameter = function (v, O) {
return void 0 === v ? O : v
}, v.getRealWorldPosition = function (v, O, j) {
return j ? {
x: v + j.viewMatrix.tx,
y: O + j.viewMatrix.ty
} : {
x: v,
y: O
}
}, v.resizeSpriteMaintainingAspectRatio = function (v, O, j) {
v.width > v.height ? (v.scale.x = O / v.width, v.scale.y = v.scale.x) : (v.scale.y = j / v.height, v.scale.x = v.scale.y)
}, v.safeDeleteObjectProperty = function (v, O) {
g.Utils.isDefined(v[O]) && delete v[O]
}, v.deleteFieldsWithNullsOrEmptyStrings = function (O, j) {
for (var p in void 0 === j && (j = !1), O) O.hasOwnProperty(p) && ("" === O[p] ? (j && g.Logger.log("Util.deleteFieldsWithNullsOrEmptyStrings - deleted key with empty string value named: " + p, g.LogLevel.Verbose), delete O[p]) : null === O[p] ? (j && g.Logger.log("Util.deleteFieldsWithNullsOrEmptyStrings - deleted key with null value named: " + p, g.LogLevel.Verbose), delete O[p]) : "object" == typeof O[p] && v.deleteFieldsWithNullsOrEmptyStrings(O[p]))
}, v.validateString = function (v, O) {
void 0 === O && (O = "");
for (var j = 0; j < v.length; j++)
if (g.Utils.isDefined(v[j])) return v[j];
return O
}, v.getFriendAndClassmateIds = function (v) {
var O = _.a.instance.prodigy.friendsListNetworkHandler.classList,
j = _.a.instance.prodigy.friendsListNetworkHandler.friendsList;
return y.map(O.concat(j), "userID")
}, v.renderFriendAndClassmateFace = function (v, O, j) {
var p = _.a.instance.prodigy.friendsListNetworkHandler.classList,
m = _.a.instance.prodigy.friendsListNetworkHandler.friendsList;
m = m.concat(p);
for (var g = 0; g < m.length; g++)
if (m[g].userID === O) {
var y = new E.a(v);
y.init(m[g]), _.a.instance.prodigy.create.player(j, y, 1, 0, 0, !0, !0, !1, !0).reload();
break
}
}, v.convertLegacyElements = function (v) {
return "wizard" === v ? "astral" : "mech" === v ? "storm" : "earth" === v ? "plant" : "ice & fire" === v ? "water" : v
}, v.spellConversion = function (v) {
var O = {
1: 55,
2: 56,
3: 57,
4: 58,
5: 59,
6: 60,
7: 81,
8: 82,
9: 83,
10: 84,
11: 85,
12: 86,
13: 67,
14: 68,
15: 69,
16: 70,
17: 71,
18: 72,
19: 61,
20: 62,
21: 63,
22: 64,
23: 65,
24: 66,
25: 75,
26: 76,
27: 77,
28: 78,
29: 79,
30: 80,
31: 49,
32: 50,
33: 51,
34: 52,
35: 53,
36: 54
};
return g.Utils.isDefined(O[v.ID]) ? O[v.ID] : v.ID
}, v.createGearMetadata = function (v) {
var O = w.a.getItemData("hat", v.hat),
j = w.a.getItemData("outfit", v.outfit),
p = w.a.getItemData("boots", v.boots),
m = w.a.getItemData("weapon", v.weapon),
g = w.a.getItemData("spellRelic", v.spellRelic);
return {
hat: y.get(O, "name", null),
hat_rarity: y.get(O, "rarity", null),
outfit: y.get(j, "name", null),
outfit_rarity: y.get(j, "rarity", null),
boots: y.get(p, "name", null),
boots_rarity: y.get(p, "rarity", null),
weapon: y.get(m, "name", null),
weapon_rarity: y.get(m, "rarity", null),
relic: y.get(g, "name", null),
relic_rarity: y.get(g, "rarity", null)
}
}, v.convertRarityToText = function (v) {
var O = _.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.LocalizationService);
switch (v) {
case I.a.Common:
return O.getText("RARITY_COMMON");
case I.a.Uncommon:
return O.getText("RARITY_UNCOMMON");
case I.a.Rare:
return O.getText("RARITY_RARE");
case I.a.Epic:
return O.getText("RARITY_HEROIC");
case I.a.Legendary:
return O.getText("RARITY_LEGENDARY");
default:
return O.getText("RARITY_COMMON")
}
}, v.bagItem = function (v, O, j, m, g) {
var y, _;
if (void 0 === g && (g = {}), "bundle" === v.type) {
var w = v;
try {
for (var E = Object(p.__values)(w.data.items), T = E.next(); !T.done; T = E.next()) {
var I = T.value;
this.bagItemByType(I, O, j, m, g)
}
} catch (A) {
y = {
error: A
}
} finally {
try {
T && !T.done && (_ = E.return) && _.call(E)
} finally {
if (y) throw y.error
}
}
} else this.bagItemByType(v, O, j, m, g)
}, v.bagItemByType = function (v, O, j, p, m) {
var E, I, A, S;
(void 0 === m && (m = {}), "debug" !== j) && (_.a.instance.prodigy.gameContainer.get("5f9-2316").sendItemChangeEvent(g.Utils.isDefined(j) ? j : "got-item", {
type: v.type,
ID: g.Utils.isDefined(v.ID) ? v.ID : -1,
N: g.Utils.isDefined(v.N) ? v.N : 1
}, p), _.a.instance.prodigy.gameContainer.get("974-9dfd").item.sendItemReceivedEvent("gold" === v.type ? 0 : v.ID, w.a.getItem(v.type, v.ID).data.name, v.type, null !== (E = v.N) && void 0 !== E ? E : 1, m));
var D = y.get(w.a.getItem(v.type, v.ID), "data", null),
M = ["store", "memberBox-reward", "parent-reward", "wheel-of-wonder", "twilight-wheel", "wheel-of-sun", "debug"],
x = _.a.instance.prodigy.gameContainer.get("497-7811").player;
if ("gold" === v.type) x.changeGold(v.N);
else if ("pet" === v.type) x.kennel.addPet(v.ID, v.data.hp, v.data.stars, v.data.level, v.data.nickname);
else if ("spell" === v.type) x.addSpell(v.ID);
else if ("dorm" === v.type) - 1 === M.indexOf(j) && _.a.instance.prodigy.notifications.initSocialNotification(C.a.ITEMGENERIC, [{
ID: v.ID,
type: v.type
}]), x.house.add(v.ID);
else if ("dormbg" === v.type) x.house.setCurrentHouseTag(v.data.tag);
else if ("key" === v.type) x.backpack.addKeyItem(v.ID, v.lvl, v.data);
else if ("giftBox" === v.type);
else if ("item" === v.type) {
g.Utils.isDefined(v.type) && "potion" === v.type ? x.backpack.add("item", v.ID, !(1 === D.member) || !x.hasMembership() && 1 === D.member, g.Utils.isDefined(v.N) ? v.N : 1) : g.Utils.isDefined(null === (I = v.data) || void 0 === I ? void 0 : I.seed) ? x.backpack.addBountyNote(v.type, v.ID, v.data.seed) : x.backpack.add("item", v.ID, !1, g.Utils.isDefined(v.N) ? v.N : 1)
} else if ("currency" === v.type) {
var N = 1 === w.a.getItemData(v.type, v.ID).member && !x.hasMembership();
x.backpack.add(v.type, v.ID, N, v.N)
} else if ("hair" === v.type) {
var P = x.appearance.getHair();
x.appearance.setHair(v.ID, P.color), x.appearanceChanged = !0, O.broadcaster.broadcast(T.t.PlayerAppearanceUpdated, T.d.Card, [])
} else if ("gender" === v.type) x.appearance.setGender(1 === v.ID ? "male" : "female"), x.appearance.setFace(1 === v.ID ? 4 : 12), x.appearanceChanged = !0, O.broadcaster.broadcast(T.t.PlayerAppearanceUpdated, T.d.Card, []);
else if ("eyeColor" === v.type) x.appearance.setEyeColor(v.ID), x.appearanceChanged = !0, O.broadcaster.broadcast(T.t.PlayerAppearanceUpdated, T.d.Card, []);
else if ("skinColor" === v.type) x.appearance.setSkinColor(v.ID), x.appearanceChanged = !0, O.broadcaster.broadcast(T.t.PlayerAppearanceUpdated, T.d.Card, []);
else if ("hairColor" === v.type) {
P = x.appearance.getHair();
x.appearance.setHair(P.style, v.ID), x.appearanceChanged = !0, O.broadcaster.broadcast(T.t.PlayerAppearanceUpdated, T.d.Card, [])
} else if ("face" === v.type) x.appearance.setFace(v.ID), x.appearanceChanged = !0, O.broadcaster.broadcast(T.t.PlayerAppearanceUpdated, T.d.Card, []);
else if ("bounty" !== v.type) {
N = 1 === w.a.getItemData(v.type, v.ID).member && !x.hasMembership();
g.Utils.isDefined(v.isGift) && v.isGift && (N = !1), g.Utils.isDefined(v.data.seed) ? x.backpack.addBountyNote(v.type, v.ID, v.data.seed) : (-1 === M.indexOf(j) && _.a.instance.prodigy.notifications.initSocialNotification(C.a.ITEMGENERIC, [{
ID: v.ID,
type: v.type
}]), x.backpack.add(v.type, v.ID, N, v.N))
}
x.appearanceChanged && ("gender" === v.type ? _.a.instance.prodigy.gameContainer.get("6b3-bc0f").create("avatar-change-gender", "menu", null, x.appearance.getGender()).broadcast() : _.a.instance.prodigy.gameContainer.get("6b3-bc0f").create("avatar-change", "menu", null, v.type).broadcast(), _.a.instance.prodigy.gameContainer.get("974-9dfd").playerIdentityAvatar.sendPlayerAvatarUpdatedEvent(v.type, null === (S = null === (A = w.a.getItem(v.type, v.ID)) || void 0 === A ? void 0 : A.data) || void 0 === S ? void 0 : S.name))
}, v.setOuterWidth = function (v, O) {
v.style.width = O - (v.style.borderLeftWidth ? parseInt(v.style.borderLeftWidth) : 0) - (v.style.borderRightWidth ? parseInt(v.style.borderRightWidth) : 0) + "px"
}, v.setOuterHeight = function (v, O) {
v.style.height = O - (v.style.borderTopWidth ? parseInt(v.style.borderTopWidth) : 0) - (v.style.borderBottomWidth ? parseInt(v.style.borderBottomWidth) : 0) + "px"
}, v.shouldSuppressAd = function (v, O) {
return void 0 === O && (O = !0), v.isPlayingAtSchool() && (!O || !v.hasMembership())
}, v.showYouTubeMembershipAd = function (O, j, p) {
void 0 === j && (j = !0);
var m, y = _.a.instance.prodigy.gameContainer.get("41c-f914"),
w = _.a.instance.prodigy.gameContainer.get("497-7811").player;
switch (p) {
case "Vla5PiXl_xI":
m = w.data.membershipVideoBuyItemTimeStamp;
break;
case "tiZVB-lGwnY":
m = w.data.membershipVideoEvolvePetsTimeStamp;
break;
default:
m = w.data.membershipVideoTimeStamp
}
var E, T;
return y.getValue("enableMembershipVideoAd", !1) && !w.isPlayingAtSchool() && (E = y.getValue("disableMembershipVideoAdDuringSchoolHours", !0), T = y.getValue("useServerTimeForVideoLockout", !0) ? new Date(_.a.instance.prodigy.timeManager.getServerTimeMs()) : new Date, !(E && v.isSchoolDay(T) && v.isDateWithinSchoolHours(T))) && !D.b.isNativeApp() && !(j && g.Utils.isDefined(m) && v.isDateWithinSameDay(new Date(m), new Date(_.a.instance.prodigy.timeManager.getServerTimeMs())))
}, v.isDateWithinSameDay = function (v, O) {
return v.getDate() === O.getDate() && v.getMonth() === O.getMonth() && v.getFullYear() === O.getFullYear()
}, v.wrapArrayIndex = function (v, O) {
if (O <= 0) return null;
for (var j = v; j < 0;) j += O;
for (; j >= O;) j -= O;
return j
}, v.guaranteeArray = function (v) {
return g.Utils.isDefined(v) ? Array.isArray(v) ? v : [v] : []
}, v.logUpdateUserFailed = function (v) {
void 0 === v && (v = 1);
var O = new m.StatsData;
O.setKey("prodigy_game.education.updateUserFailed"), O.setValue(v), _.a.instance.prodigy.gameContainer.get("c35-1b4b").logStat(O, m.EStatsType.Increment), g.Logger.log("Education update user failed.", g.LogLevel.Error)
}, v.createTransformEffectAssetKey = function (v) {
var O = v.effect.transform,
j = v.effect.ID,
p = w.a.getItem(O, j);
return "spine" === p.metadata.assets.default.type ? S.a.createSpineAssetSourceName(p, O, j) : A.a.createImageAssetSourceName(O, j)
}, v.isTransformEffectLoaded = function (v) {
var O = v.effect.transform,
j = v.effect.ID,
p = w.a.getItem(O, j),
m = this.createTransformEffectAssetKey(v);
return "spine" === p.metadata.assets.default.type ? _.a.instance.game.cache.checkSpineKey(m) : _.a.instance.game.cache.checkImageKey(m)
}, v.getEnvironmentURL = function () {
var O = "";
switch (v.getEnvironment()) {
case "test":
case "local":
O = window.location.hostname;
break;
case "dev":
O = "www.prodigygame.net";
break;
case "staging":
O = "www.prodigygame.org";
break;
case "production":
O = "www.prodigygame.com"
}
return O
}, v.convertItemDefinitionToItemDrop = function (v) {
return v.map((function (v) {
return {
ID: v.ID,
type: v.type,
N: v.quantity
}
}))
}, v.getPurchasePrice = function (v, O) {
var j;
return null !== (j = v.price) && void 0 !== j ? j : O.getAmount()
}, v.isAvgFrameRateAboveThreshold = function (v) {
return _.a.instance.game.fps.getAverageFramerate() >= v
}, v.cacheAsBitmap = function (v, O) {
v.cacheAsBitmap = !1, O && (v.cacheAsBitmap = O)
}, v.DEBUG_DAY_LENGTH = 864e5, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "b", (function () {
return p
})), j.d(O, "a", (function () {
return I
}));
var p, m = j(1),
g = j(0),
y = j(6),
_ = j(2),
w = j(11),
E = j(37),
T = j(13);
! function (v) {
v[v.UP = 0] = "UP", v[v.UP_RIGHT = 45] = "UP_RIGHT", v[v.RIGHT = 90] = "RIGHT", v[v.DOWN_RIGHT = 135] = "DOWN_RIGHT", v[v.DOWN = 180] = "DOWN", v[v.DOWN_LEFT = 225] = "DOWN_LEFT", v[v.LEFT = 270] = "LEFT", v[v.UP_LEFT = 315] = "UP_LEFT"
}(p || (p = {}));
var I = function (v) {
function O(O, j, m, E, T, I, A, S, C) {
void 0 === A && (A = p.UP);
var D = v.call(this, O, j, m.x, m.y) || this;
D.isBlocked = !1, D.data = {}, D.canReTrigger = !1, D.callback = null, D.frameCount = 0, D.fired = !1, D.data = m, D.user = E, D.path = T, D.canReTrigger = y.get(m, "canReTrigger", !1), D.callback = C ? null : I;
var M = y.get(m, "guideHandPathToX", m.x),
x = y.get(m, "guideHandPathToY", m.y),
N = A;
g.Utils.isDefined(N) || (N = m.x < 50 ? m.y < 50 ? p.UP_LEFT : m.y > 670 ? p.DOWN_LEFT : p.LEFT : m.x > 1230 ? m.y < 50 ? p.UP_RIGHT : m.y > 670 ? p.DOWN_RIGHT : p.RIGHT : m.y < 50 ? p.UP : m.y > 60 ? p.DOWN : p.LEFT);
var P = D.add(_.a.instance.prodigy.create.sprite(0, 0, "atlas-18", "area-pointer"));
P.anchor.set(.5, 0), P.angle = N, P.inputEnabled = !0, P.events.onInputDown.add(D.moveTo.bind(D, M, x));
var R = 0;
N > p.UP && N < p.DOWN ? R = -30 : N > p.DOWN && N < 360 && (R = 30);
var k = 0;
return N > p.LEFT || N < p.RIGHT ? k = 30 : N > p.RIGHT && N < p.LEFT && (k = -30), P.x = y.get(m, "arrowOffsetX", 0), P.y = y.get(m, "arrowOffsetY", 0), D.game.add.tween(P, D).to({
x: P.x + R,
y: P.y + k
}, 400, g.Easing.Quadratic.InOut, !0, 0, w.a.MAX_SAFE_INTEGER, !0), D.visible = !1, D.frameCount = 0, D
}
return Object(m.__extends)(O, v), O.prototype.moveTo = function (v, O) {
this.user.setValidPath(this.path, v, O, null)
}, O.prototype.update = function () {
if (v.prototype.update.call(this), !(this.user.evtProc || this.fired && !this.canReTrigger))
if (this.frameCount <= 0) {
this.frameCount = 5;
var O = !1;
g.Utils.isDefined(this.data.r) && g.MathUtils.distance(this.user.x, this.user.y, this.x, this.y) <= this.data.r || !g.Utils.isDefined(this.data.r) && g.Utils.isDefined(this.data.w) && this.user.x >= this.x - Math.floor(this.data.w / 2) && this.user.x <= this.x + Math.floor(this.data.w / 2) && this.user.y >= this.y - Math.floor(this.data.h / 2) && this.user.y <= this.y + Math.floor(this.data.h / 2) ? O = !this.fired : this.canReTrigger && (this.fired = !1), O && (this.fired = !0, g.Utils.isDefined(this.callback) && this.callback())
} else this.frameCount--
}, O.prototype.process = function (v, O, j) {
return void 0 === j && (j = ""), this.visible = !1, this.checkDistance(v, O, j)
}, O.prototype.setClosest = function () {
this.visible = !0
}, O.prototype.getTarget = function () {
return this.data.target
}, O.prototype.checkDistance = function (v, O, j) {
if (!g.Utils.isDefined(this.data.target) || !g.Utils.isDefined(j)) return null;
if (v.ID + "-" + O.getTag() === j) return 1;
var p = function (v, O, m) {
if (!g.Utils.isDefined(m) || T.a.inArray(O, m)) return null;
if (j === m) return O.length + 1;
var y = m.split("-"),
_ = v.getZone(y[0]);
if (!g.Utils.isDefined(_)) return null;
for (var w = _.getMap(y[1]).locations, E = null, I = 0; I < w.length; I++) {
var A = p(v, O.concat([m]), w[I]);
(!g.Utils.isDefined(E) || A < E && g.Utils.isDefined(A)) && (E = A)
}
return E
};
return p(_.a.instance.prodigy.world, [v.ID + "-" + O.getTag()], this.data.target)
}, O.prototype.getOverlay = function () {
var v, O, j, p;
g.Utils.isDefined(this.data.r) ? (v = this.x, O = this.y, j = p = this.data.r) : g.Utils.isDefined(this.data.rect) ? (v = this.x, O = this.y, j = this.data.w, p = this.data.h) : (v = this.x + (this.data.x < 100 ? -Math.floor(.5 * this.data.w) : this.data.x > 1180 ? Math.floor(.5 * this.data.w) : 0), O = this.y + (this.data.y < 100 ? -Math.floor(.5 * this.data.h) : this.data.y > 620 ? Math.floor(.5 * this.data.h) : 0), j = this.data.w * (this.data.x < 100 || this.data.x > 1180 ? 1 : .5), p = this.data.h * (this.data.y < 100 || this.data.y > 620 ? 1 : .5));
var m = this.game.add.graphics(0, 0);
return m.beginFill(0, .75), this.data.rect ? m.drawRect(v - .5 * j, O - .5 * p, j, p) : m.drawEllipse(v, O, j, p), m
}, O
}(E.a)
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.Verbose = 0] = "Verbose", v[v.Warning = 1] = "Warning", v[v.Error = 2] = "Error", v[v.Info = 3] = "Info"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
var p, m, g, y, _, w, E, T, I, A, S, C, D, M, x, N, P, R, k;
j.d(O, "a", (function () {
return D
})), j.d(O, "b", (function () {
return y
})), j.d(O, "c", (function () {
return g
})), j.d(O, "d", (function () {
return k
})), j.d(O, "e", (function () {
return M
})), j.d(O, "f", (function () {
return _
})), j.d(O, "g", (function () {
return p
})), j.d(O, "h", (function () {
return w
})), j.d(O, "i", (function () {
return x
})), j.d(O, "j", (function () {
return P
})), j.d(O, "k", (function () {
return C
})), j.d(O, "l", (function () {
return R
})), j.d(O, "m", (function () {
return N
})), j.d(O, "n", (function () {
return m
})), j.d(O, "o", (function () {
return I
})), j.d(O, "p", (function () {
return A
})), j.d(O, "q", (function () {
return E
})), j.d(O, "r", (function () {
return T
})), j.d(O, "s", (function () {
return S
})),
function (v) {
v[v.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", v[v.WEBGL = 1] = "WEBGL", v[v.WEBGL2 = 2] = "WEBGL2"
}(p || (p = {})),
function (v) {
v[v.UNKNOWN = 0] = "UNKNOWN", v[v.WEBGL = 1] = "WEBGL", v[v.CANVAS = 2] = "CANVAS"
}(m || (m = {})),
function (v) {
v[v.COLOR = 16384] = "COLOR", v[v.DEPTH = 256] = "DEPTH", v[v.STENCIL = 1024] = "STENCIL"
}(g || (g = {})),
function (v) {
v[v.NORMAL = 0] = "NORMAL", v[v.ADD = 1] = "ADD", v[v.MULTIPLY = 2] = "MULTIPLY", v[v.SCREEN = 3] = "SCREEN", v[v.OVERLAY = 4] = "OVERLAY", v[v.DARKEN = 5] = "DARKEN", v[v.LIGHTEN = 6] = "LIGHTEN", v[v.COLOR_DODGE = 7] = "COLOR_DODGE", v[v.COLOR_BURN = 8] = "COLOR_BURN", v[v.HARD_LIGHT = 9] = "HARD_LIGHT", v[v.SOFT_LIGHT = 10] = "SOFT_LIGHT", v[v.DIFFERENCE = 11] = "DIFFERENCE", v[v.EXCLUSION = 12] = "EXCLUSION", v[v.HUE = 13] = "HUE", v[v.SATURATION = 14] = "SATURATION", v[v.COLOR = 15] = "COLOR", v[v.LUMINOSITY = 16] = "LUMINOSITY", v[v.NORMAL_NPM = 17] = "NORMAL_NPM", v[v.ADD_NPM = 18] = "ADD_NPM", v[v.SCREEN_NPM = 19] = "SCREEN_NPM", v[v.NONE = 20] = "NONE", v[v.SRC_OVER = 0] = "SRC_OVER", v[v.SRC_IN = 21] = "SRC_IN", v[v.SRC_OUT = 22] = "SRC_OUT", v[v.SRC_ATOP = 23] = "SRC_ATOP", v[v.DST_OVER = 24] = "DST_OVER", v[v.DST_IN = 25] = "DST_IN", v[v.DST_OUT = 26] = "DST_OUT", v[v.DST_ATOP = 27] = "DST_ATOP", v[v.ERASE = 26] = "ERASE", v[v.SUBTRACT = 28] = "SUBTRACT", v[v.XOR = 29] = "XOR"
}(y || (y = {})),
function (v) {
v[v.POINTS = 0] = "POINTS", v[v.LINES = 1] = "LINES", v[v.LINE_LOOP = 2] = "LINE_LOOP", v[v.LINE_STRIP = 3] = "LINE_STRIP", v[v.TRIANGLES = 4] = "TRIANGLES", v[v.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", v[v.TRIANGLE_FAN = 6] = "TRIANGLE_FAN"
}(_ || (_ = {})),
function (v) {
v[v.RGBA = 6408] = "RGBA", v[v.RGB = 6407] = "RGB", v[v.RG = 33319] = "RG", v[v.RED = 6403] = "RED", v[v.RGBA_INTEGER = 36249] = "RGBA_INTEGER", v[v.RGB_INTEGER = 36248] = "RGB_INTEGER", v[v.RG_INTEGER = 33320] = "RG_INTEGER", v[v.RED_INTEGER = 36244] = "RED_INTEGER", v[v.ALPHA = 6406] = "ALPHA", v[v.LUMINANCE = 6409] = "LUMINANCE", v[v.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", v[v.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", v[v.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL"
}(w || (w = {})),
function (v) {
v[v.TEXTURE_2D = 3553] = "TEXTURE_2D", v[v.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", v[v.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", v[v.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", v[v.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", v[v.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", v[v.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", v[v.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", v[v.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z"
}(E || (E = {})),
function (v) {
v[v.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", v[v.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", v[v.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", v[v.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", v[v.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", v[v.UNSIGNED_INT = 5125] = "UNSIGNED_INT", v[v.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", v[v.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", v[v.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", v[v.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", v[v.BYTE = 5120] = "BYTE", v[v.SHORT = 5122] = "SHORT", v[v.INT = 5124] = "INT", v[v.FLOAT = 5126] = "FLOAT", v[v.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", v[v.HALF_FLOAT = 36193] = "HALF_FLOAT"
}(T || (T = {})),
function (v) {
v[v.FLOAT = 0] = "FLOAT", v[v.INT = 1] = "INT", v[v.UINT = 2] = "UINT"
}(I || (I = {})),
function (v) {
v[v.NEAREST = 0] = "NEAREST", v[v.LINEAR = 1] = "LINEAR"
}(A || (A = {})),
function (v) {
v[v.CLAMP = 33071] = "CLAMP", v[v.REPEAT = 10497] = "REPEAT", v[v.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT"
}(S || (S = {})),
function (v) {
v[v.OFF = 0] = "OFF", v[v.POW2 = 1] = "POW2", v[v.ON = 2] = "ON", v[v.ON_MANUAL = 3] = "ON_MANUAL"
}(C || (C = {})),
function (v) {
v[v.NPM = 0] = "NPM", v[v.UNPACK = 1] = "UNPACK", v[v.PMA = 2] = "PMA", v[v.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", v[v.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", v[v.PREMULTIPLY_ALPHA = 2] = "PREMULTIPLY_ALPHA"
}(D || (D = {})),
function (v) {
v[v.NO = 0] = "NO", v[v.YES = 1] = "YES", v[v.AUTO = 2] = "AUTO", v[v.BLEND = 0] = "BLEND", v[v.CLEAR = 1] = "CLEAR", v[v.BLIT = 2] = "BLIT"
}(M || (M = {})),
function (v) {
v[v.AUTO = 0] = "AUTO", v[v.MANUAL = 1] = "MANUAL"
}(x || (x = {})),
function (v) {
v.LOW = "lowp", v.MEDIUM = "mediump", v.HIGH = "highp"
}(N || (N = {})),
function (v) {
v[v.NONE = 0] = "NONE", v[v.SCISSOR = 1] = "SCISSOR", v[v.STENCIL = 2] = "STENCIL", v[v.SPRITE = 3] = "SPRITE"
}(P || (P = {})),
function (v) {
v[v.NONE = 0] = "NONE", v[v.LOW = 2] = "LOW", v[v.MEDIUM = 4] = "MEDIUM", v[v.HIGH = 8] = "HIGH"
}(R || (R = {})),
function (v) {
v[v.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", v[v.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", v[v.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER"
}(k || (k = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "c", (function () {
return y
})), j.d(O, "a", (function () {
return _
})), j.d(O, "b", (function () {
return w
})), j.d(O, "r", (function () {
return E
})), j.d(O, "m", (function () {
return T
})), j.d(O, "f", (function () {
return I
})), j.d(O, "l", (function () {
return A
})), j.d(O, "g", (function () {
return S
})), j.d(O, "u", (function () {
return C
})), j.d(O, "q", (function () {
return D
})), j.d(O, "k", (function () {
return M
})), j.d(O, "e", (function () {
return x
})), j.d(O, "h", (function () {
return N
})), j.d(O, "j", (function () {
return P
})), j.d(O, "o", (function () {
return R
})), j.d(O, "p", (function () {
return k
})), j.d(O, "i", (function () {
return L
})), j.d(O, "s", (function () {
return B
})), j.d(O, "t", (function () {
return U
})), j.d(O, "n", (function () {
return G
})), j.d(O, "d", (function () {
return F
}));
var p = j(267),
m = j(328),
g = j(120),
y = "custom:annotations:serializableProperties",
_ = "custom:annotations:propertyInfo",
w = function () {
function v() {}
return v.getPropertyTypeInfo = function (v, O) {
if (Reflect.hasMetadata(_, v.constructor, O)) return Reflect.getMetadata(_, v.constructor, O);
m.a.addProperty(y, v.constructor, O);
var j = {
property: O,
type: g.a.Unknown,
isArray: !1,
isReorderableList: !1
};
return Reflect.defineMetadata(_, j, v.constructor, O), j
}, v.addTypeMetadata = function (O, j, p, m, g, y) {
void 0 === m && (m = 0);
var _ = v.getPropertyTypeInfo(O, j),
w = j;
return null != g ? w = g : "_" === j[0] && (w = j.substr(1)), _.type = p, _.priority = m, _.toolTip = y, w !== j && (_.alias = w), _
}, v.setTypeMetadataIsArray = function (O, j, p) {
var m = v.getPropertyTypeInfo(O, j);
return m.isArray = p, m
}, v
}(),
E = function (v, O, j) {
return function (p, m) {
w.addTypeMetadata(p, m, g.a.String, v, O, j)
}
},
T = function (v, O, j) {
return function (p, m) {
w.addTypeMetadata(p, m, g.a.Number, v, O, j)
}
},
I = function (v, O, j) {
return function (p, m) {
w.addTypeMetadata(p, m, g.a.Boolean, v, O, j)
}
},
A = function (v, O, j) {
return function (p, m) {
w.addTypeMetadata(p, m, g.a.JSON, v, O, j)
}
},
S = function (v, O, j) {
return function (p, m) {
w.addTypeMetadata(p, m, g.a.Color, v, O, j)
}
},
C = function (v, O, j) {
return function (p, m) {
w.addTypeMetadata(p, m, g.a.Vector, v, O, j)
}
},
D = function (v, O, j) {
return function (p, m) {
w.addTypeMetadata(p, m, g.a.Size, v, O, j)
}
},
M = function (v, O, j) {
return function (p, m) {
w.addTypeMetadata(p, m, g.a.GameObjectReference, v, O, j)
}
},
x = function () {
return function (v, O) {
w.setTypeMetadataIsArray(v, O, !0)
}
},
N = function (v, O, j, p) {
return function (m, y) {
w.addTypeMetadata(m, y, g.a.ComponentReference, O, j, p).componentCtor = v
}
},
P = function (v, O, j, m) {
return function (v, y) {
w.addTypeMetadata(v, y, g.a.ComponentReference, O, j, m).componentCtor = p.a
}
},
R = function (v, O, j, p) {
return function (m, y) {
w.addTypeMetadata(m, y, g.a.SceneObjectReference, O, j, p).componentCtor = v
}
},
k = function (v, O, j) {
return function (p, m) {
w.addTypeMetadata(p, m, g.a.Signal, v, O, j)
}
},
L = function (v, O, j, p) {
return function (m, y) {
w.addTypeMetadata(m, y, g.a.Enum, O, j, p).referenceType = v
}
},
B = function (v, O, j) {
return function (p, m) {
w.addTypeMetadata(p, m, g.a.Unknown, v, O, j)
}
},
U = function (v, O, j) {
return function (p, m) {
w.addTypeMetadata(p, m, g.a.UnknownObject, v, O, j)
}
},
G = function (v, O, j, p) {
return function (m, y) {
w.addTypeMetadata(m, y, g.a.PrefabConstructable, O, j, p).categoryFilter = v
}
},
F = function (v) {
return function (O, j) {
w.addTypeMetadata(O, j, g.a.EditorAssetReference).assetType = v
}
}
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return m
}));
var p = j(1),
m = function () {
function v() {}
return v.addLogger = function (v) {
this._loggers.push(v)
}, v.removeLogger = function (v) {
this._loggers = this._loggers.filter((function (O) {
return O !== v
}))
}, v.log = function (v, O) {
for (var j = [], m = 2; m < arguments.length; m++) j[m - 2] = arguments[m];
this._loggers.forEach((function (m) {
m.log.apply(m, Object(p.__spread)([v, O], j))
}))
}, v.setLogLevel = function (v) {
this._loggers.forEach((function (O) {
O.setLogLevel(v)
}))
}, v._loggers = [], v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return E
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(103),
_ = j(78),
w = j(3),
E = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O._initialAtlas = "", O._initialFrame = null, O._initialAlpha = 1, O._initialTint = "#FFFFFF", O._sprite = null, O._isLoaded = !1, O.onLoaded = new m.Signal, O
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "isLoaded", {
get: function () {
return this._isLoaded
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "sprite", {
get: function () {
return this._sprite
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "OnLoaded", {
get: function () {
return this.onLoaded
},
enumerable: !1,
configurable: !0
}), O.prototype.create = function () {
v.prototype.create.call(this), this._sprite = g.a.instance.prodigy.create.sprite(0, 0), this.setRootContainer(this._sprite), this._initialAtlas && this.setAsset(this._initialAtlas, this._initialFrame), this.setAlpha(this._initialAlpha), this.tint(parseInt(this._initialTint.substring(1), 16))
}, O.prototype.setAnchor = function (v, O) {
this._sprite.anchor.set(v, O)
}, O.prototype.tint = function (v) {
this._sprite.tint = v
}, O.prototype.setScale = function (v, O) {
this._sprite.scale.set(v, O)
}, O.prototype.getScale = function () {
return this._sprite.scale
}, O.prototype.setAlpha = function (v) {
this._sprite.alpha = v
}, O.prototype.getWorld = function () {
return this._sprite.world
}, O.prototype.getWidth = function () {
return this._sprite.width
}, O.prototype.getHeight = function () {
return this._sprite.height
}, O.prototype.getEvents = function () {
return this._sprite.events
}, O.prototype.setInputEnabled = function (v) {
void 0 === v && (v = !0), this._sprite.inputEnabled = v
}, O.prototype.enableDragging = function (v, O, j, p) {
this._sprite.inputEnabled && (this._sprite.input.enableDrag(v, O), m.Utils.isDefined(j) && m.Utils.isDefined(p) && this._sprite.input.enableSnap(j, p))
}, O.prototype.disableDragging = function () {
this._sprite.input.disableDrag()
}, O.prototype.getBounds = function () {
var v = this._sprite.getBounds();
return new m.Rectangle(v.x, v.y, v.width, v.height)
}, O.prototype.resetToOrigin = function () {
this._sprite.position.set(0, 0)
}, O.prototype.setAsset = function (v, O) {
return Object(p.__awaiter)(this, void 0, void 0, (function () {
var j;
return Object(p.__generator)(this, (function (p) {
switch (p.label) {
case 0:
return this._isLoaded = !1, this._sprite ? (this._targetSource = v, this._targetFrame = O, (j = this.getAssetLoader()).isLoaded(v, y.a.Image) ? (this._sprite.key !== v ? (this._sprite.loadTexture(v, O), this._isLoaded = !0, this.onLoaded.dispatch()) : O && this.setFrameName(O), this.sprite.name || (this.sprite.name = v + "/" + O), [3, 4]) : [3, 1]) : [3, 5];
case 1:
return [4, j.loadAssets([v])];
case 2:
return p.sent(), v !== this._targetSource || this._sprite._destroyed || !j.isLoaded(v, y.a.Image) ? [3, 4] : [4, this.setAsset(v, this._targetFrame)];
case 3:
p.sent(), p.label = 4;
case 4:
return [3, 6];
case 5:
this._initialAtlas = v, this._initialFrame = O, p.label = 6;
case 6:
return [2]
}
}))
}))
}, O.prototype.getAssetKey = function () {
return this._sprite.key
}, O.prototype.getInputHandler = function () {
return this._sprite.input
}, O.prototype.hasUniqueInstance = function () {
return !0
}, O.prototype.setAngle = function (v) {
this._sprite.angle = v
}, O.prototype.setFrame = function (v) {
this._sprite.frame = v
}, O.prototype.sizeToSourceImage = function () {
var v = this.gameObject.transform;
v instanceof m.RectTransform && (v.fullWidth = this._sprite.width, v.fullHeight = this._sprite.height)
}, O.prototype.setFrameName = function (v) {
this._sprite && m.Utils.isDefined(this._sprite.key) ? this._sprite.frameName = v : (this._initialFrame = v, this._targetFrame = v)
}, O.prototype.destroy = function () {
null !== this._sprite && this._sprite.destroy(), this.onLoaded.dispose(), v.prototype.destroy.call(this)
}, O.prototype.getDimensions = function () {
return !this._sprite || this._sprite[_.a.DESTROYED] ? (m.Logger.log("Cannot get dimensions, sprite has been destroyed.", m.LogLevel.Error), new m.Size(0, 0)) : new m.Size(this._sprite.width, this._sprite.height)
}, O.prototype.getAssetLoader = function () {
var v;
return this.GameObject && null !== (v = this.assetLoader) && void 0 !== v ? v : g.a.instance.prodigy.gameContainer.get(m.EInjectionIdentifiers.AssetLoader)
}, Object(p.__decorate)([Object(m.injectComponentProperty)(m.EInjectionIdentifiers.AssetLoader), Object(p.__metadata)("design:type", Object)], O.prototype, "assetLoader", void 0), Object(p.__decorate)([Object(m.assetTag)(), Object(m.serializeString)(0, "atlas"), Object(p.__metadata)("design:type", String)], O.prototype, "_initialAtlas", void 0), Object(p.__decorate)([Object(m.serializeString)(0, "frame"), Object(p.__metadata)("design:type", String)], O.prototype, "_initialFrame", void 0), Object(p.__decorate)([Object(m.serializeNumber)(0, "alpha"), Object(p.__metadata)("design:type", Number)], O.prototype, "_initialAlpha", void 0), Object(p.__decorate)([Object(m.serializeColor)(0, "tint"), Object(p.__metadata)("design:type", String)], O.prototype, "_initialTint", void 0), Object(p.__decorate)([Object(m.serializeSignal)(), Object(p.__metadata)("design:type", m.Signal)], O.prototype, "onLoaded", void 0), O = Object(p.__decorate)([Object(m.componentable)("Image", w.a.root)], O)
}(m.RenderComponent)
}, function (v, O, j) {
"use strict";
Object.defineProperty(O, "__esModule", {
value: !0
});
var p = j(1);
j(1175), p.__exportStar(j(943), O), p.__exportStar(j(1176), O), p.__exportStar(j(1177), O), p.__exportStar(j(1178), O), p.__exportStar(j(1179), O), p.__exportStar(j(1180), O), p.__exportStar(j(1191), O), p.__exportStar(j(555), O), p.__exportStar(j(1192), O), p.__exportStar(j(1194), O), p.__exportStar(j(1195), O), p.__exportStar(j(1196), O), p.__exportStar(j(436), O), p.__exportStar(j(1197), O), p.__exportStar(j(1200), O), p.__exportStar(j(1202), O), p.__exportStar(j(1206), O), p.__exportStar(j(1216), O), p.__exportStar(j(1220), O), p.__exportStar(j(1235), O), p.__exportStar(j(1240), O), p.__exportStar(j(1242), O), p.__exportStar(j(1245), O), p.__exportStar(j(945), O), p.__exportStar(j(1247), O), p.__exportStar(j(1261), O), p.__exportStar(j(1278), O), p.__exportStar(j(1288), O)
}, function (v, O, j) {
"use strict";
var p, m, g, y;
j.d(O, "d", (function () {
return p
})), j.d(O, "c", (function () {
return m
})), j.d(O, "b", (function () {
return g
})), j.d(O, "a", (function () {
return y
})),
function (v) {
v.ClickableSprite = "clickable_image", v.Menu = "menu", v.Popup = "pop_up", v.DialogBox = "dialog_box", v.PetBook = "pet_book", v.InfoPanel = "info_panel", v.HUD = "hud", v.Screen = "screen", v.Modal = "modal"
}(p || (p = {})),
function (v) {
v.None = "none", v.Mail = "mail", v.HudClick = "hud_click", v.AutoSurfaced = "auto_surfaced", v.NPC = "npc", v.Door = "door", v.ButtonClick = "button_click", v.ButtonClickBadged = "button_click_badged", v.QuestComplete = "quest_complete", v.MouseHover = "mouse_hover", v.SignpostClick = "signpost_click"
}(m || (m = {})),
function (v) {
v.CloseButton = "close_button", v.CloseClicked = "close-clicked", v.ButtonClick = "button_click", v.CloseDialog = "close_dialog", v.Done = "done", v.KeystonePlaced = "keystone_placed", v.TeleportButton = "x_teleport", v.X = "x_button", v.EvolveNow = "evolve_now"
}(g || (g = {})),
function (v) {
v.Interactable = "interactable", v.Leaves = "bounty-run-leaves", v.Bush = "bounty-run-bush", v.Plant = "bounty-run-plant", v.Snowpile = "crystal-caverns-snowpile", v.Crate = "crystal-caverns-crate", v.WorldChest = "world-chest", v.WorldMemberChest = "world-member-chest", v.BattleChest = "battle-chest", v.BattleMemberChest = "battle-member-chest", v.ConjureCube = "conjure-cube", v.MonthlyMemberBox = "monthly-member-box"
}(y || (y = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return m
}));
var p = j(0),
m = function () {
function v(v) {
this.current = null, this.noSkipFrames = !1, this.tweens = [], this.tweenVars = {}, this.onEndCallbacks = [], this.index = 0, this.src = v
}
return v.prototype.start = function (v, O, j) {
this.current = null, this.index = 0, this.startTime = p.Utils.isDefined(v) ? v : Date.now();
for (var m = 0; m < this.tweens.length; m++) {
var g = this.tweens[m];
g.start = 0 === m ? this.startTime : this.tweens[m - 1].end, g.end = g.start + g.duration
}
this.noSkipFrames = !!p.Utils.isDefined(j) && j, this.onComplete = O
}, v.prototype.end = function (v) {
p.Utils.isDefined(v) && this.onEndCallbacks.push(v)
}, v.prototype.set = function (v, O, j, p) {
void 0 === p && (p = 1), this.tweens.push({
type: "set",
tag: v,
duration: O.length * j * p,
delay: j,
frames: O,
lastUpdate: 0
})
}, v.prototype.delay = function (v) {
this.tweens.push({
type: "delay",
duration: v
})
}, v.prototype.update = function (v) {
if (p.Utils.isDefined(this.startTime))
if (this.current && p.Utils.isDefined(this.current.frames) && 1 === this.current.frames.length) {
if ("set" !== this.current.type || p.Utils.isDefined(this.tweenVars.next)) {
if (v >= this.tweenVars.next) {
this.tweenVars.next += this.current.delay;
for (var O = 0; O < this.onEndCallbacks.length; O++) this.onEndCallbacks[O]()
}
} else this.tweenVars.next = this.current.start + this.current.delay, this.tweenVars.frame = 0, this.src[this.current.tag] = this.current.frames[0];
v >= this.current.end && (this.current = null, p.Utils.isDefined(this.onComplete) && this.onComplete())
} else {
if (this.current) {
var j = Math.floor((v - this.current.start) / this.current.delay) * this.current.delay + this.current.start,
m = v - this.current.delay,
g = m - this.current.lastUpdate > this.current.delay;
if (!this.noSkipFrames && m <= this.current.lastUpdate || g) return "set" !== this.current.type || p.Utils.isDefined(this.tweenVars.next) || (this.tweenVars.next = this.current.start + this.current.delay, this.tweenVars.frame = 0, this.src[this.current.tag] = this.current.frames[0]), g && (this.current.lastUpdate = j), null;
if (this.current.lastUpdate = j, "set" === this.current.type)
if (p.Utils.isDefined(this.tweenVars.next) || (this.tweenVars.next = this.current.start + this.current.delay, this.tweenVars.frame = 0, this.src[this.current.tag] = this.current.frames[0]), v >= this.current.end) this.src[this.current.tag] = this.current.frames[this.current.frames.length - 1];
else if (v >= this.tweenVars.next) {
if (this.tweenVars.next += this.current.delay, this.tweenVars.frame++, this.tweenVars.frame >= this.current.frames.length) {
this.tweenVars.frame = 0;
for (O = 0; O < this.onEndCallbacks.length; O++) this.onEndCallbacks[O]()
}
this.src[this.current.tag] = this.current.frames[this.tweenVars.frame]
}
v >= this.current.end && (this.current = null, p.Utils.isDefined(this.onComplete) && this.onComplete())
}
this.current || (this.tweenVars = {}, this.index >= this.tweens.length ? this.startTime = null : (this.current = this.tweens[this.index], this.index++))
}
}, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return g
}));
var p = j(1),
m = j(661),
g = function () {
function v() {
this._bindings = [], this._shouldPropagate = !0, this.active = !0
}
return v.prototype.add = function (v, O, j) {
void 0 === O && (O = null), void 0 === j && (j = 0);
for (var p = [], m = 3; m < arguments.length; m++) p[m - 3] = arguments[m];
return this.validateListener(v, "add"), this.addBinding(v, O, !1, j, p)
}, v.prototype.addOnce = function (v, O, j) {
void 0 === O && (O = null), void 0 === j && (j = 0);
for (var p = [], m = 3; m < arguments.length; m++) p[m - 3] = arguments[m];
return this.validateListener(v, "addOnce"), this.addBinding(v, O, !0, j, p)
}, v.prototype.remove = function (v, O) {
void 0 === O && (O = null), this.validateListener(v, "remove");
var j = this.indexOfListener(v, O); - 1 !== j && this.removeAtIndex(j)
}, v.prototype.removeAll = function (v) {
void 0 === v && (v = null);
for (var O = this._bindings.length - 1; O >= 0; --O) v && v !== this._bindings[O].context || this.removeAtIndex(O)
}, v.prototype.has = function (v, O) {
return void 0 === O && (O = null), -1 !== this.indexOfListener(v, O)
}, v.prototype.halt = function () {
this._shouldPropagate = !1
}, v.prototype.dispatch = function () {
for (var v = [], O = 0; O < arguments.length; O++) v[O] = arguments[O];
if (this.active) {
this._shouldPropagate = !0;
for (var j = Object(p.__spread)(this._bindings), m = j.length - 1; m >= 0 && this._shouldPropagate; --m) {
var g = j[m];
g.execute(v), g.isOnce && g.isBound() && this.remove(g.listener, g.context)
}
}
}, v.prototype.dispose = function () {
this.removeAll(), this._bindings.length = 0
}, v.prototype.getBindingsCount = function () {
return this._bindings.length
}, v.prototype.toString = function () {
return "[Signal bindings count: " + this.getBindingsCount() + ", active: " + String(this.active) + "]"
}, v.prototype.validateListener = function (v, O) {
if ("function" != typeof v) throw new Error("Signal: listener is a required param of " + O + "() and must be a function.")
}, v.prototype.addBinding = function (v, O, j, p, g) {
void 0 === O && (O = null), void 0 === j && (j = !1), void 0 === p && (p = 0);
var y, _ = this.indexOfListener(v, O);
if (_ >= 0) {
if ((y = this._bindings[_]).isOnce !== j) throw new Error("You cannot add " + (j ? "" : "Once") + "() then add " + (j ? "Once" : "") + "() the same listener without removing the relationship first")
} else {
y = new m.a(v, O, j, p, g);
for (var w = 0, E = this._bindings.length - 1; E >= 0; --E)
if (this._bindings[E].priority < y.priority) {
w = E + 1;
break
} this._bindings.splice(w, 0, y)
}
return y
}, v.prototype.removeAtIndex = function (v) {
this._bindings[v].destroy(), this._bindings.splice(v, 1)
}, v.prototype.indexOfListener = function (v, O) {
return void 0 === O && (O = null), this._bindings.findIndex((function (j) {
return j.listener === v && j.context === O
}))
}, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return p
}));
var p = function () {
function v(O, j, p) {
this.prefabLoaderInstance = null, this.getWorkerURL = null, v._instance || (v._instance = this), this._game = O, this.loader = j, this.prefabLoaderInstance = p
}
return Object.defineProperty(v, "instance", {
get: function () {
return this._instance
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "game", {
get: function () {
return this._game
},
enumerable: !0,
configurable: !0
}), v.prototype.destroy = function () {
v._instance = null, this._game = null
}, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return w
}));
var p = j(1),
m = j(10),
g = j(18),
y = j(15),
_ = j(659),
w = function () {
function v() {}
return v.isDefined = function (v) {
return null != v
}, v.generateGUID = function () {
var v = Date.now();
return "undefined" != typeof performance && "function" == typeof performance.now && (v += performance.now()), "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (function (O) {
var j = (v + 16 * Math.random()) % 16 | 0;
return v = Math.floor(v / 16), ("x" === O ? j : 3 & j | 8).toString(16)
}))
}, v.bufferToUtf8String = function (v) {
for (var O = 0, j = []; O < v.length;) {
var p = v[O++];
if (p > 127)
if (p > 191 && p < 224) {
if (O >= v.length) return g.a.log("JsonResponseInterceptor - Incomplete 2 byte sequence", y.a.Error), null;
p = (31 & p) << 6 | 63 & v[O++]
} else if (p > 223 && p < 240) {
if (O + 1 >= v.length) return g.a.log("JsonResponseInterceptor - Incomplete 3 byte sequence", y.a.Error), null;
p = (15 & p) << 12 | (63 & v[O++]) << 6 | 63 & v[O++]
} else {
if (!(p > 239 && p < 248)) return g.a.log("JsonResponseInterceptor - Invalid multi-byte start 0x" + p.toString(16), y.a.Error), null;
if (O + 2 >= v.length && O + 1 >= v.length) return g.a.log("JsonResponseInterceptor - Incomplete 4 byte sequence", y.a.Error), null;
p = (7 & p) << 18 | (63 & v[O++]) << 12 | (63 & v[O++]) << 6 | 63 & v[O++]
}
if (p <= 65535) j.push(String.fromCharCode(p));
else {
if (!(p <= 1114111)) return g.a.log("JSON conversion code 0x" + p.toString(16) + " could not be decoded", y.a.Error), null;
p -= 65536, j.push(String.fromCharCode(p >> 10 | 55296)), j.push(String.fromCharCode(1023 & p | 56320))
}
}
return j.join("")
}, v.utf8StringToBuffer = function (v) {
for (var O = 0, j = new Uint8Array(4 * v.length), p = 0; p !== v.length; ++p) {
var m = v.charCodeAt(p);
if (m < 128) j[O++] = m;
else {
if (m < 2048) j[O++] = m >> 6 | 192;
else {
if (m > 55295 && m < 56320) {
if (++p >= v.length) return g.a.log("UTF-8 encode: incomplete surrogate pair", y.a.Error), null;
var _ = v.charCodeAt(p);
if (_ < 56320 || _ > 57343) return g.a.log("UTF-8 encode: second surrogate character 0x" + _.toString(16) + " at index " + p + " out of range", y.a.Error), null;
m = ((1023 & m) << 10) + (1023 & _) + 65536, j[O++] = m >> 18 | 240, j[O++] = m >> 12 & 63 | 128
} else j[O++] = m >> 12 | 224;
j[O++] = m >> 6 & 63 | 128
}
j[O++] = 63 & m | 128
}
}
return new Uint8Array(j.buffer.slice(0, O))
}, v.toggleDisplayObjSmooth = function (O, j) {
if (O && ((O instanceof m.Sprite || O instanceof m.TilingSprite) && _.a.setSmoothed(O.texture, j), O instanceof m.Container))
for (var p = 0; p < O.children.length; ++p) v.toggleDisplayObjSmooth(O.children[p], j)
}, v.pad = function (v, O, j, p) {
void 0 === O && (O = 0), void 0 === j && (j = " "), void 0 === p && (p = 3);
var m = v.toString(),
g = 0;
if (O + 1 >= m.length) switch (p) {
case 1:
m = new Array(O + 1 - m.length).join(j) + m;
break;
case 3:
var y = Math.ceil((g = O - m.length) / 2);
m = new Array(g - y + 1).join(j) + m + new Array(y + 1).join(j);
break;
default:
m = v + new Array(O + 1 - m.length).join(j)
}
return m
}, v.getUrlVariable = function (v) {
var O = {};
return window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, (function (v, j, p) {
return O[j] = p
})), O[v]
}, v.setOuterWidth = function (v, O) {
v.style.width = O - (v.style.paddingLeft ? parseInt(v.style.paddingLeft) : 0) - (v.style.paddingRight ? parseInt(v.style.paddingRight) : 0) - (v.style.borderLeftWidth ? parseInt(v.style.borderLeftWidth) : 0) - (v.style.borderRightWidth ? parseInt(v.style.borderRightWidth) : 0) + "px"
}, v.setOuterHeight = function (v, O) {
v.style.height = O - (v.style.paddingTop ? parseInt(v.style.paddingTop) : 0) - (v.style.paddingBottom ? parseInt(v.style.paddingBottom) : 0) - (v.style.borderTopWidth ? parseInt(v.style.borderTopWidth) : 0) - (v.style.borderBottomWidth ? parseInt(v.style.borderBottomWidth) : 0) + "px"
}, v.getCenteredXY = function (v, O, j, p, g, y) {
return new m.Point(j + .5 * (g - v), p + .5 * (y - O))
}, v.wrapArrayIndex = function (v, O) {
if (O <= 0) return null;
for (var j = v; j < 0;) j += O;
for (; j >= O;) j -= O;
return j
}, v.equalArrayContents = function (v, O) {
var j, m;
if (v === O) return !0;
if (null === v || null === O) return !1;
if (v.length !== O.length) return !1;
var g = Object(p.__spread)(v);
try {
for (var y = Object(p.__values)(O), _ = y.next(); !_.done; _ = y.next()) {
var w = _.value;
if (!this.removeFromArray(w, g)) return !1
}
} catch (E) {
j = {
error: E
}
} finally {
try {
_ && !_.done && (m = y.return) && m.call(y)
} finally {
if (j) throw j.error
}
}
return !(g.length > 0)
}, v.removeFromArray = function (v, O, j) {
void 0 === j && (j = function (v, O) {
return v === O
});
for (var p = 0; p < O.length; p++)
if (j(O[p], v)) return O.splice(p, 1), !0;
return !1
}, v.removeMultipleFromArray = function (v, O, j) {
var m = this,
g = Object(p.__spread)(v);
return O.forEach((function (v) {
return m.removeFromArray(v, g, j)
})), g
}, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "c", (function () {
return p
})), j.d(O, "b", (function () {
return m
})), j.d(O, "a", (function () {
return E
}));
var p, m, g = j(1),
y = j(0),
_ = j(2),
w = j(251);
! function (v) {
v[v.Top = 0] = "Top", v[v.Middle = 1] = "Middle", v[v.Bottom = 2] = "Bottom"
}(p || (p = {})),
function (v) {
v[v.DEFAULT = 0] = "DEFAULT", v[v.STORE = 1] = "STORE", v[v.WHEEL = 2] = "WHEEL", v[v.EQUIP = 3] = "EQUIP", v[v.START = 4] = "START", v[v.FOLLOW = 5] = "FOLLOW", v[v.LEAVE = 6] = "LEAVE", v[v.CHANGE = 7] = "CHANGE"
}(m || (m = {}));
var E = function () {
function v(v) {
this.game = null, this.onClose = null, this.eventQueue = [], this.dataProvider = null, this.current = null, this.currentDialogue = null, this._skipCounter = 0, this._previousDialogueAudioTag = null, this._reenableInputOnClose = !0, this.game = v, this.dataProvider = new w.a
}
return Object.defineProperty(v.prototype, "skipCounter", {
get: function () {
return this._skipCounter
},
set: function (v) {
this._skipCounter = v
},
enumerable: !1,
configurable: !0
}), v.prototype.addEvents = function (v) {
var O;
(O = this.eventQueue).push.apply(O, Object(g.__spread)(v))
}, v.prototype.setParent = function (v) {
this._dialogueParent = v, this.currentDialogue && v.addChild(this.currentDialogue)
}, v.prototype.start = function (v, O, j) {
void 0 === v && (v = !1), void 0 === j && (j = !0), this.currentDialogue ? this._previousDialogueAudioTag = this.currentDialogue.dialogueConfig.dialogueData ? this.currentDialogue.dialogueConfig.dialogueData.audio.tag : null : this._previousDialogueAudioTag = null, this.closeDialogue(!1), this.game.input.enabled = !v, this.onClose = O, this._reenableInputOnClose = j, _.a.instance.prodigy.notifications.pause(this), this.next()
}, v.prototype.next = function () {
var v;
if (this.eventQueue.length > 0) {
if (this.current = this.eventQueue.splice(0, this.skipCounter + 1)[this.skipCounter], this.skipCounter = 0, Object.keys(this.current).length > 0)
if (y.Utils.isDefined(this.current.callback)) this.current.callback(), this.next();
else {
var O = [];
if (y.Utils.isDefined(this.current.dialogueData) && (O.push(this.current.dialogueData.audio.tag), O.push(this.current.dialogueData.avatar.atlas)), y.Utils.isDefined(this.currentDialogue) && this.currentDialogue.game) this.currentDialogue.updateSchema(this.current, O);
else if (this.currentDialogue = _.a.instance.prodigy.open.characterDialogue(this.current, this.next.bind(this), O), null === (v = this._dialogueParent) || void 0 === v || v.addChild(this.currentDialogue), y.Utils.isDefined(this._previousDialogueAudioTag) && (!this.currentDialogue.dialogueConfig.dialogueData || this.currentDialogue.dialogueConfig.dialogueData.audio.tag !== this._previousDialogueAudioTag)) {
var j = this.game.cache.getSound(this._previousDialogueAudioTag);
j && j.sound && !j.isDecoding && this.game.cache.removeSound(this._previousDialogueAudioTag), this._previousDialogueAudioTag = null
}
}
} else this.close(!1, !0)
}, v.prototype.closeDialogue = function (v) {
if (void 0 === v && (v = !1), this.game.input.enabled = this._reenableInputOnClose, y.Utils.isDefined(this.currentDialogue)) {
if (v && this.currentDialogue.dialogueConfig.dialogueData && "" !== this.currentDialogue.dialogueConfig.dialogueData.audio.tag) {
var O = this.game.cache.getSound(this.currentDialogue.dialogueConfig.dialogueData.audio.tag);
O && O.sound && !O.isDecoding && this.game.cache.removeSound(this.currentDialogue.dialogueConfig.dialogueData.audio.tag)
}
this.currentDialogue.close(), this.currentDialogue = null
}
}, v.prototype.close = function (v, O) {
void 0 === v && (v = !1), void 0 === O && (O = !1), this.closeDialogue(O), this.eventQueue = [], y.Utils.isDefined(this.onClose) && !v && this.onClose(), _.a.instance.prodigy.notifications.resume(this)
}, v.runDialogueSequence = function (O, j, p) {
void 0 === p && (p = !0);
var m = new v(_.a.instance.game);
return m.addEvents(O.map((function (v) {
return {
dialogueData: m.dataProvider.get(v),
blockInput: !0
}
}))), m.start(!0, j, p), m
}, v
}()
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.FunnelBuyMemberItem = "Buy-Member-Item", v.FunnelSecondWheelSpin = "Second-Wheel-Spin", v.FunnelEnterDarkTower = "Enter-Dark-Tower", v.FunnelCatchMorePets = "Catch-More-Pets", v.FunnelOpenMemberChestBattle = "Open-Member-Chest-Battle", v.FunnelOpenMemberChestWorld = "Open-Member-Chest-World", v.FunnelEquipNewLockedItem = "Equip-New-Locked-Item", v.FunnelEquipBackpackLockedItem = "Equip-Backpack-Locked-Item", v.FunnelEquipCardLockedItem = "Equip-Card-Locked-Item", v.FunnelCatchPetAgain = "Catch-Pet-Again", v.FunnelUseBoost = "Use-Boost", v.FunnelClickHUDButton = "Click-HUD-Button", v.FunnelEvolutionMemberLock = "Evolution-Member-Lock", v.FunnelTileScreen = "Tile-Screen-Load", v.FunnelCharSelect = "Char-Select-Load", v.FunnelPVEBattleScreen = "PVE-Battle-Screen-Load", v.FunnelPVPBattleScreen = "PVP-Battle-Screen-Load", v.FunnelVideoPlayer = "Video-Player", v.FunnelTransitMap = "Transit-First-Map", v.FunnelClickMemberDance = "Click-Member-Dance", v.FunnelFireTitanCatapult = "Fire-Titan-Catapult", v.FunnelSelectMemberNickname = "Select-Member-Nickname", v.FunnelClickMemberBounty = "Click-Member-Bounty", v.FunnelClickMemberBoxMail = "Click-Member-Box-Mail", v.FunnelEquipLevelLockedItem = "Equip-Level-Locked-Item", v.FunnelCatchUpToClass = "Catch-up-to-Your-Class", v.FunnelClickWizardWatch = "Click-Wizard-Watch-CTA", v.FunnelCatchMemberLockedPet = "Catch-Member-Locked-Pet", v.FunnelCatchEvolvedPet = "Catch-Evolved-Pet", v.FunnelLoginScreen = "login_screen_funnel", v.FunnelUltimatesTab = "Ultimates-Tab", v.FunnelMythics21Q4 = "mythics", v.StageClickItem = "Click-Item", v.StageClickBuy = "Click-Buy", v.StageClickMembership = "Click-Membership", v.StageClickParentConfirmation = "Click-Parent-Confirmation", v.StageClickSpinAgain = "Click-Spin-Again", v.StageEnterTower = "Enter-Tower", v.StageCatchPet = "Catch-Pet", v.StageOpenChest = "Open-Chest", v.StageEquipItem = "Equip-Item", v.StageCatchPetFail = "Catch-Pet-Fail", v.StageTryAgain = "Try-Again", v.StageClickBoost = "Click-Boost", v.StageClickStars = "Click-Stars", v.StageClickButton = "Click-Button", v.StageEvolutionSeeButton = "Evolution-See-Button", v.StageEvolutionClickButton = "Evolution-Click-Button", v.StageEvolutionEvolvePet = "Evolve-Pet", v.StageEvolutionConverted = "Evolution-Converted", v.StageTransitMap = "Transit-Map", v.StageDanceStart = "Dance", v.StageFireCatapult = "Fire-Catapult", v.StageSelectNickname = "Select-Nickname", v.StageClickBounty = "Click-Bounty", v.StageEquipFromBackpack = "Equip-From-Backpack", v.StageEquipFromPouch = "Equip-From-Pouch", v.StageLoadStart = "Load-Start", v.StageLoadEnd = "Load-End", v.StageSaved = "Character-Saved", v.StageVideoStart = "Video-Start", v.StageVideoEnd = "Video-Complete", v.StageCloseVideo = "Close-Video", v.StageInsufficientCurrency = "Insufficient-Currency", v.StageClickCTA = "Click-CTA", v.StageSessionLoadGame = "load_game", v.StageSessionLoadEnd = "load_end", v.StageSessionLoadLogin = "load_login", v.StageSessionLoadStart = "load_start", v.StageClickMembershipBenefits = "Click-Membership-Benefits"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.Over = 0] = "Over", v[v.Down = 1] = "Down", v[v.Up = 2] = "Up", v[v.Disabled = 3] = "Disabled"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return m
}));
var p = j(0),
m = function () {
function v() {}
return v.createHandler = function (v) {
var O = this;
return function (j) {
O.logError(j, v)
}
}, v.logError = function (O, j) {
p.Logger.log(j + ": " + v.stringify(O), p.LogLevel.Error)
}, v.stringify = function (v) {
var O;
return v instanceof Error ? "" + (null !== (O = v.stack) && void 0 !== O ? O : v.message) : JSON.stringify(v)
}, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "b", (function () {
return g
})), j.d(O, "a", (function () {
return p
}));
var p, m = j(265),
g = function (v, O, j) {
return function (p) {
m.a[v] = p, m.b[0] || (m.b[0] = {}, m.b[1] = {}), m.b[0][v] = O, m.b[1][v] = j
}
};
! function (v) {
v.root = "", v.animation = "Animation", v.filter = "Filter", v.injection = "Injection", v.input = "Input", v.map = "Map", v.motion = "Motion", v.primitive = "Primitive", v.saving = "Saving", v.tiled = "Tiled", v.transform = "Transform", v.transition = "Transition", v.ui = "UI", v.uiLayout = "UI/Layout"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return p
}));
var p = function () {
function v(v, O, j, p, m, g, y, _, w, E, T, I, A, S, C) {
void 0 === A && (A = null), void 0 === S && (S = null), void 0 === C && (C = null), this.collectionMaps = null, this.zone = v, this.assets = O, this.ID = j, this.descKey = p, this.descCacheKey = p, this.req = m, this.area = g, this.areaCache = g, this.onStart = y, this.onProc = _, this.onComplete = w, this.reward = E, this.chain = T || !1, this.questGiver = A, this.questReceiver = S, this.alternateOnStart = C, this.questStep = I
}
return v.prototype.setup = function (v, O, j) {
return {}
}, v.prototype.start = function (v, O, j) {
return {}
}, v.prototype.process = function (v, O, j) {}, v.prototype.update = function (v, O, j) {}, v
}()
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.BREADCRUMB = 0] = "BREADCRUMB", v[v.FLOOR_AWARD_FLOATLINGS = 1] = "FLOOR_AWARD_FLOATLINGS", v[v.FLOOR_PUSH_FLOATLING = 2] = "FLOOR_PUSH_FLOATLING", v[v.FLOOR_SET_BLOCK_COUNT = 3] = "FLOOR_SET_BLOCK_COUNT", v[v.FLOOR_SET_DECORATION_POSITIONS = 4] = "FLOOR_SET_DECORATION_POSITIONS", v[v.FLOOR_SET_DECORATIONS = 5] = "FLOOR_SET_DECORATIONS", v[v.FLOOR_SET_EXTERNAL_BUILD = 6] = "FLOOR_SET_EXTERNAL_BUILD", v[v.FLOOR_SET_FRAME_ID = 7] = "FLOOR_SET_FRAME_ID", v[v.FLOOR_SET_HAS_SHROUD = 8] = "FLOOR_SET_HAS_SHROUD", v[v.FLOOR_SET_NUM_SPELLS = 9] = "FLOOR_SET_NUM_SPELLS", v[v.FLOOR_SET_ROOM_ID = 10] = "FLOOR_SET_ROOM_ID", v[v.FLOOR_SET_SKILL_ID = 11] = "FLOOR_SET_SKILL_ID", v[v.FLOOR_SET_STATE = 12] = "FLOOR_SET_STATE", v[v.FLOOR_START_BUILDING = 13] = "FLOOR_START_BUILDING", v[v.TOWER_CREATE_FLOOR = 14] = "TOWER_CREATE_FLOOR", v[v.TOWER_MOVE_FLOOR = 15] = "TOWER_MOVE_FLOOR", v[v.TOWER_PUSH_FLOOR = 16] = "TOWER_PUSH_FLOOR", v[v.TOWER_REMOVE_FLOOR = 17] = "TOWER_REMOVE_FLOOR", v[v.TOWER_ROOM_BUILT = 18] = "TOWER_ROOM_BUILT", v[v.TOWER_COMPLETED = 19] = "TOWER_COMPLETED", v[v.TOWER_SET_ACTIVE_TOWER = 20] = "TOWER_SET_ACTIVE_TOWER", v[v.TOWER_SET_INFINITY_TOWER = 21] = "TOWER_SET_INFINITY_TOWER", v[v.TOWER_SET_SIDEWALK_ID = 22] = "TOWER_SET_SIDEWALK_ID", v[v.TOWN_CREATE_INFINITY_TOWER = 23] = "TOWN_CREATE_INFINITY_TOWER", v[v.TOWN_CREATE_TOWER = 24] = "TOWN_CREATE_TOWER", v[v.TOWN_PUSH_TOWER = 25] = "TOWN_PUSH_TOWER", v[v.TOWN_REMOVE_TOWER = 26] = "TOWN_REMOVE_TOWER", v[v.TOWN_FIND_DESCENDED_FLOATLINGS_TOWER = 27] = "TOWN_FIND_DESCENDED_FLOATLINGS_TOWER", v[v.FLOATLING_SET_ELEMENT = 28] = "FLOATLING_SET_ELEMENT", v[v.FLOATLING_SET_EXPLORER_LEVEL = 29] = "FLOATLING_SET_EXPLORER_LEVEL", v[v.FLOATLING_SET_FLOOR_ASSOCIATION = 30] = "FLOATLING_SET_FLOOR_ASSOCIATION", v[v.FLOATLING_SET_GEAR_ELEMENT = 31] = "FLOATLING_SET_GEAR_ELEMENT", v[v.FLOATLING_SET_LAST_THROWN = 32] = "FLOATLING_SET_LAST_THROWN", v[v.FLOATLING_SET_PERSONALITY = 33] = "FLOATLING_SET_PERSONALITY", v[v.FLOATLING_SET_STATE = 34] = "FLOATLING_SET_STATE", v[v.TOWER_TOWN_FLOATLING_FLING_END = 35] = "TOWER_TOWN_FLOATLING_FLING_END", v[v.TOWER_TOWN_FLOATLING_FLING_START = 36] = "TOWER_TOWN_FLOATLING_FLING_START", v[v.TOWER_TOWN_INFINITY_TOWER_OPEN = 37] = "TOWER_TOWN_INFINITY_TOWER_OPEN", v[v.TOWER_TOWN_QUESTION_ANSWERED = 38] = "TOWER_TOWN_QUESTION_ANSWERED", v[v.TOWER_TOWN_SAVE_TOWN = 39] = "TOWER_TOWN_SAVE_TOWN", v[v.TOWER_TOWN_SET_CURRENT_TOWN = 40] = "TOWER_TOWN_SET_CURRENT_TOWN", v[v.TOWER_TOWN_SETTINGS_OPEN = 41] = "TOWER_TOWN_SETTINGS_OPEN", v[v.TOWER_TOWN_STORE_OPEN = 42] = "TOWER_TOWN_STORE_OPEN", v[v.EDUCATION_QUESTION_ANSWER = 43] = "EDUCATION_QUESTION_ANSWER", v[v.EDUCATION_QUESTION_ANSWER_CORRECT = 44] = "EDUCATION_QUESTION_ANSWER_CORRECT", v[v.EDUCATION_QUESTION_ANSWER_INCORRECT = 45] = "EDUCATION_QUESTION_ANSWER_INCORRECT", v[v.EDUCATION_QUESTION_INTERFACE_CLOSE = 46] = "EDUCATION_QUESTION_INTERFACE_CLOSE", v[v.EDUCATION_QUESTION_INTERFACE_OPEN = 47] = "EDUCATION_QUESTION_INTERFACE_OPEN", v[v.EDUCATION_SET_ALGORITHM = 48] = "EDUCATION_SET_ALGORITHM", v[v.EDUCATION_SKILL_LOCKED = 49] = "EDUCATION_SKILL_LOCKED", v[v.EDUCATION_SKILL_MASTERED = 50] = "EDUCATION_SKILL_MASTERED", v[v.EDUCATION_SKILL_UNLOCKED = 51] = "EDUCATION_SKILL_UNLOCKED"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "t", (function () {
return T
})), j.d(O, "i", (function () {
return I
})), j.d(O, "k", (function () {
return A
})), j.d(O, "l", (function () {
return S
})), j.d(O, "c", (function () {
return C
})), j.d(O, "d", (function () {
return D
})), j.d(O, "f", (function () {
return M
})), j.d(O, "h", (function () {
return x
})), j.d(O, "j", (function () {
return N
})), j.d(O, "m", (function () {
return P
})), j.d(O, "b", (function () {
return R
})), j.d(O, "a", (function () {
return k
})), j.d(O, "o", (function () {
return L
})), j.d(O, "n", (function () {
return B
})), j.d(O, "r", (function () {
return U
})), j.d(O, "s", (function () {
return G
})), j.d(O, "p", (function () {
return F
})), j.d(O, "q", (function () {
return H
})), j.d(O, "e", (function () {
return K
})), j.d(O, "g", (function () {
return z
}));
var p, m = j(1),
g = j(0),
y = j(2),
_ = function () {
function v() {}
return v.play = function (O, j, p, g, y, _, w, E, T, A, S, C) {
return Object(m.__awaiter)(this, void 0, void 0, (function () {
return Object(m.__generator)(this, (function (m) {
switch (m.label) {
case 0:
return I(!1), M(O, v), z(j, !1), C(!1), L(T, S), L(A, S), [4, E()];
case 1:
return m.sent(), L(p, g), R(y, !0), [4, H(_, 0, 1, 500)];
case 2:
return m.sent(), [4, P([1124, 1125])];
case 3:
return m.sent(), z(j, !1), w(), [4, H(_, 1, 0, 500)];
case 4:
return m.sent(), R(y, !1), z(j, !0), x(O, v), I(!0), [2]
}
}))
}))
}, v
}(),
w = j(26),
E = j(50),
T = g.PromiseUtil.timeout,
I = function (v) {
y.a.instance.prodigy.gameContainer.get("497-7811").player.saveEnabled = v
},
A = function (v, O, j) {
void 0 === j && (j = !1), v.setAnimationByName(0, O, j)
},
S = function (v, O, j) {
return void 0 === j && (j = !1), Object(m.__awaiter)(void 0, void 0, void 0, (function () {
return Object(m.__generator)(this, (function (p) {
return [2, new Promise((function (p) {
A(v, O, j), v.onComplete.addOnce(p)
}))]
}))
}))
},
C = function (v, O, j, p, m) {
void 0 === O && (O = null), void 0 === j && (j = E.a.Interactable), void 0 === p && (p = null), void 0 === m && (m = null), y.a.instance.prodigy.open.gotItem(v, null, !0, O, void 0, void 0, {
source_type: j,
source_id: p,
transaction_id: m
})
},
D = function (v, O, j, p, g) {
return void 0 === O && (O = null), void 0 === j && (j = E.a.Interactable), void 0 === p && (p = null), void 0 === g && (g = null), Object(m.__awaiter)(void 0, void 0, void 0, (function () {
return Object(m.__generator)(this, (function (m) {
return [2, new Promise((function (m) {
v.length > 0 ? y.a.instance.prodigy.open.gotItem(v, m, !0, O, void 0, void 0, {
source_type: j,
source_id: p,
transaction_id: g
}) : m()
}))]
}))
}))
},
M = function (v, O) {
var j = y.a.instance.prodigy.notifications;
j.pause(O), j.clearNotifications(), v.Active = !1
},
x = function (v, O) {
y.a.instance.prodigy.notifications.resume(O), v.Active = !0
},
N = function (v, O, j, p, _) {
return void 0 === j && (j = 1e3), void 0 === p && (p = !1), Object(m.__awaiter)(void 0, void 0, void 0, (function () {
var w = this;
return Object(m.__generator)(this, (function (m) {
return [2, new Promise((function (m) {
var E = new g.Vector2;
E.copyFrom(v.localPosition);
var T = new g.Vector2;
T.copyFrom(O.worldPosition), T.subtract(v.worldPosition);
var I = {
percent: 0
};
_ && (_.shouldFollow = !1), y.a.instance.game.add.tween(I, w).to({
percent: 1
}, j, g.Easing.Quadratic.InOut, !0).onUpdateCallback((function () {
v.setPosition(E.x + T.x * I.percent, E.y + T.y * I.percent)
})).onTweenComplete.addOnce((function () {
v.setPosition(E.x + T.x, E.y + T.y), p && _ && (_.shouldFollow = !0), m()
}))
}))]
}))
}))
},
P = function (v) {
return Object(m.__awaiter)(void 0, void 0, void 0, (function () {
return Object(m.__generator)(this, (function (O) {
return [2, new Promise((function (O) {
w.a.runDialogueSequence(v, O)
}))]
}))
}))
},
R = function (v, O) {
v.active = O
},
k = function (v, O) {
v.Active = O
},
L = function (v, O) {
v.setPosition(O.x, O.y)
},
B = function (v, O, j) {
return Object(m.__awaiter)(void 0, void 0, void 0, (function () {
return Object(m.__generator)(this, (function (p) {
return [2, new Promise((function (p) {
var m = v.locomotionController;
m.onPathEnd.addOnce((function () {
if (j) {
var v = m.GameObject.transform;
v.setScale(v.worldPosition.x < j.worldPosition.x ? 1 : -1, v.localScale.y)
}
p()
})), v.pathTo(O)
}))]
}))
}))
},
U = function (v, O, j, p) {
return Object(m.__awaiter)(void 0, void 0, void 0, (function () {
var _ = this;
return Object(m.__generator)(this, (function (m) {
return [2, new Promise((function (m) {
var w;
w = p ? {
x: p.x,
y: p.y
} : {
x: v.worldPosition.x,
y: v.worldPosition.y
};
var E = y.a.instance.game.add.tween(w, _),
T = function () {
y.a.instance.game.tweens.remove(E)
};
E.to({
x: O.x,
y: O.y
}, j, g.Easing.Quadratic.InOut, !0).onUpdateCallback((function () {
v.setPosition(w.x, w.y)
})), E.onTweenComplete.addOnce((function () {
v.OnDestroy.remove(T, _), v.setPosition(O.x, O.y), m()
})), v.OnDestroy.addOnce(T, _)
}))]
}))
}))
},
G = function (v, O, j, p) {
return Object(m.__awaiter)(void 0, void 0, void 0, (function () {
var _ = this;
return Object(m.__generator)(this, (function (m) {
return [2, new Promise((function (m) {
var w;
w = p ? {
x: p.x,
y: p.y
} : {
x: v.worldScale.x,
y: v.worldScale.y
};
var E = y.a.instance.game.add.tween(w, _),
T = function () {
y.a.instance.game.tweens.remove(E)
};
E.to({
x: O.x,
y: O.y
}, j, g.Easing.Quadratic.InOut, !0).onUpdateCallback((function () {
v.setScale(w.x, w.y)
})), E.onTweenComplete.addOnce((function () {
v.OnDestroy.remove(T, _), v.setScale(O.x, O.y), m()
})), v.OnDestroy.addOnce(T, _)
}))]
}))
}))
},
F = function (v, O, j, p, _) {
return Object(m.__awaiter)(void 0, void 0, void 0, (function () {
var w, E = this;
return Object(m.__generator)(this, (function (m) {
return w = {
x: (w = null != _ ? _ : O.anchoredPivotOffset).x,
y: w.y
}, new g.Vector2(j.x, j.y).getDistanceSq(new g.Vector2(w.x, w.y)) <= 0 ? [2] : [2, new Promise((function (m) {
var _ = v.add.tween(w, E),
T = function () {
y.a.instance.game.tweens.remove(_)
};
_.to({
x: j.x,
y: j.y
}, p, g.Easing.Quadratic.InOut, !0).onUpdateCallback((function () {
O.setAnchoredPivotOffset(w.x, w.y)
})), _.onTweenComplete.addOnce((function () {
O.OnDestroy.remove(T, E), O.setAnchoredPivotOffset(j.x, j.y), m()
})), O.OnDestroy.addOnce(T, E)
}))]
}))
}))
},
H = function (v, O, j, p) {
return Object(m.__awaiter)(void 0, void 0, void 0, (function () {
var _, w, E = this;
return Object(m.__generator)(this, (function (m) {
return _ = {
value: O
}, (w = v.getRootContainer()).alpha = O, [2, new Promise((function (v) {
var O = y.a.instance.game.add.tween(_, E);
O.to({
value: j
}, p, g.Easing.Linear.None, !0).onUpdateCallback((function () {
w.alpha = _.value
})), O.onTweenComplete.addOnce((function () {
null == O || O.stop(), O = null, w.alpha = j, v()
}))
}))]
}))
}))
},
K = ((p = {}).LightTorchesForTier4 = _, p),
z = function (v, O) {
if (v.input.enabled = O, !O) {
v.input.reset();
for (var j = 0; j < v.input.pointers.length; j++) v.input.pointers[j].active = !1, v.input.pointers[j].isDown = !1
}
}
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return m
}));
var p = j(2),
m = function () {
function v() {}
return v.cacheAssets = function (O, j, p) {
for (var m = 0; m < j.length; ++m) v.cacheAsset(O, j[m], p)
}, v.addLocalGuidsToCommonAssetsCached = function () {
if (window.legacyAssetMappings)
for (var v = Object.keys(this.commonAssetsCached), O = 0; O < v.length; O++) {
var j = v[O];
this.cacheAsset(p.a.instance.game, j, this.commonAssetsCached)
}
}, v.cacheAsset = function (v, O, j) {
var m, g = p.a.instance.prodigy.gameContainer.get("41c-f914");
if (!g || !1 !== g.getValue("removeAssets")) {
var y = p.a.instance.prodigy.assets.getAsset(O);
if (y) switch (y.type) {
case "spine":
j[O + "Atlas"] = !0;
var _ = null,
w = O + ".png";
if ((null == y ? void 0 : y.filename) ? w = y.filename + ".png" : (null === (m = null == y ? void 0 : y.data) || void 0 === m ? void 0 : m.filename) && (w = y.data.filename + ".png"), j[w] = !0, window.legacyAssetMappings) {
var E = window.legacyAssetMappings[O];
E && (_ = E)
}
_ && (j[_ + "Atlas"] = !0, j[_ + ".png"] = !0);
default:
j[O] = !0;
var T = window.legacyAssetMappings[O];
T && (j[T] = !0)
}
}
}, v.getAssetID = function (v, O) {
return "number" == typeof O ? v + "-" + O : O
}, v.matchingAssets = function (v, O) {
var j, p, m;
v === O ? m = !0 : m = (null !== (j = window.legacyAssetMappings[v]) && void 0 !== j ? j : v) === (null !== (p = window.legacyAssetMappings[O]) && void 0 !== p ? p : O);
return m
}, v.commonAssetsCached = {
"atlas-160": !0,
"game-data": !0,
"map-pathing": !0,
"bgm-2": !0,
"bgm-1": !0,
"spine-70": !0,
"spine-70Atlas": !0,
"spine-85": !0,
"spine-85Atlas": !0,
"spine-23": !0,
"spine-23Atlas": !0,
"spine-22": !0,
"spine-22Atlas": !0,
"atlas-22": !0,
"atlas-17": !0,
"spine-pet-rescue.png": !0,
"spine-bam-aoa-button.png": !0,
"atlas-19": !0,
"spine-character-shine.png": !0,
"spine-xpbar.png": !0,
"general-gift-box": !0,
"atlas-164": !0,
"atlas-151": !0,
"atlas-168": !0,
"atlas-179": !0,
"icon-currency-1": !0,
"atlas-157": !0,
"atlas-81": !0,
"atlas-180": !0,
"bgm-3": !0,
"atlas-50": !0,
"spine-11": !0,
"spine-11Atlas": !0,
"spine-morph-marble.png": !0,
"atlas-159": !0,
"atlas-27": !0,
"spine-120": !0,
"sfx-8": !0,
"sfx-22": !0,
"sfx-23": !0,
"sfx-24": !0,
"sfx-26": !0,
"sfx-33": !0,
"sfx-19": !0,
"sfx-32": !0,
"spine-120Atlas": !0,
"spine-sparkle-worldmap.png": !0,
"icon-mini-member-b": !0,
"atlas-24": !0,
"atlas-10": !0,
"atlas-8": !0,
"atlas-12": !0,
"atlas-144": !0,
"atlas-145": !0,
"atlas-21": !0,
"atlas-148": !0,
"atlas-149": !0,
"atlas-166": !0,
"atlas-167": !0,
"atlas-169": !0,
"sfx-31": !0,
"atlas-9": !0,
"atlas-18": !0,
"atlas-161": !0,
"sfx-18": !0,
"spine-242": !0,
"spine-15": !0,
"spine-15Atlas": !0
}, v.zoneAssetsCached = {}, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return S
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(91),
_ = j(11),
w = j(71),
E = j(301),
T = j(7),
I = j(29),
A = j(13),
S = function (v) {
function O(O, j, p, y, _, w, E, T) {
var I = v.call(this, g.a.instance.prodigy.gameContainer) || this;
return I.tag = "", I.isScene = !1, I.nameKey = "", I.x = 0, I.y = 0, I.battleBG = "", I.locations = [], I.questParams = {}, I.mapMonsters = [], I.tag = j, I.nameKey = p, I.zoneName = O.ID + "-" + j, I.x = y, I.y = _, I.file = "map-" + I.zoneName.toLowerCase(), I.onFaint = O.onFaint, I.zone = O, I.battleBG = O.battleBG, m.Utils.isDefined(T) ? I.file = T.toLowerCase() : I.file = "map-" + I.zoneName.toLowerCase(), I.assets = [I.file, "atlas-160", "atlas-166", "sfx-31"].concat(E), I.locations = w, I
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "isQuestHub", {
get: function () {
return this.zone.questHub.indexOf(this.tag) >= 0
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "name", {
get: function () {
return this.getName()
},
enumerable: !1,
configurable: !0
}), O.prototype.getName = function () {
return g.a.instance.prodigy.gameContainer.get(m.GameIdentifiers.LocalizationService).getText(this.nameKey)
}, O.prototype.getLocation = function () {
return this.zoneName
}, O.prototype.setup = function (v, O, j) {
var p = this;
void 0 === j && (j = {}), this.questParams = m.Utils.isDefined(j) ? j : {};
var y = g.a.instance.prodigy.gameContainer.get("c19-b0bb"),
_ = y.timeToPlayMS;
null !== _ && (m.Logger.log("TTP: " + _, m.LogLevel.Verbose), g.a.instance.prodigy.gameContainer.get("65d-34e7").create("Game-Load", "Time-To-Play", void 0, void 0, void 0, "" + _).broadcast(), y.timeToPlayMS = null), g.a.instance.prodigy.gameContainer.get("6b3-bc0f").create("map-enter", "progression", this.zone.name, this.zone.ID).broadcast();
var w = g.a.instance.prodigy.bounty.hasBounty(this.zone.ID, this.tag);
m.Utils.isDefined(w) && g.a.instance.prodigy.bounty.placeBounty(w, O, this), this.zone.hasDaily(this) && m.Utils.isDefined(this.zone.monsters) && this.zone.placeDaily(this, v, O);
var E = g.a.instance.prodigy.gameContainer.get("064-d954"),
A = g.a.instance.prodigy.gameContainer.get("fb2-5446").meetsRequirements(24) ? "pmg_pet_spawn_variety_test" : "default";
this.canRegularMonsterSpawn() ? E.getSpawnDataForMap(this.zoneName, A).then((function (j) {
j.forEach((function (j, m) {
p.addMonster(v, O, m + 1, j.x, j.y, j.unique, j.mods, void 0, void 0, false)
})), p.onMonsterSpawns(v, O)
})).catch(I.a.createHandler("Error loading spawn data for map " + this.zoneName + "-" + A)) : this.onMonsterSpawns(v, O), this.game = v, this.screen = O, this.game.broadcaster.addAppListener(T.q.EnableDynamicLayer, this.toggleDynamicLayer.bind(this), this, null, !0)
}, O.prototype.start = function (v, O, j) {
var p = m.Utils.isDefined(j) ? j : this.zone.bgmID;
g.a.instance.prodigy.audio.playBGM(p, !0), g.a.instance.prodigy.audio.resumeBGM()
}, O.prototype.process = function (v, O, j) {}, O.prototype.update = function (v) {}, O.prototype.getTag = function () {
return this.tag
}, O.prototype.cleanup = function () {
this.game ? (this.game.broadcaster.removeAppListener(T.q.EnableDynamicLayer, this), v.prototype.cleanup.call(this)) : m.Logger.log("Map cleanup called after map destroyed.", m.LogLevel.Warning)
}, O.prototype.processDynamicLayers = function (v, O) {
var j, g;
try {
for (var _ = Object(p.__values)(this.dynamicSprites), w = _.next(); !w.done; w = _.next()) {
var E = w.value;
m.Utils.isDefined(E.collisionTile) && E.collisionTile ? E.destroy() : E.isAbove ? (y.a.bringToTop(this.dynamicLayerContainers["element-" + E.dynamicToggle].above), this.dynamicLayerContainers["element-" + E.dynamicToggle].above.add(E)) : (y.a.bringToTop(this.dynamicLayerContainers["element-" + E.dynamicToggle].below), this.dynamicLayerContainers["element-" + E.dynamicToggle].below.add(E))
}
} catch (T) {
j = {
error: T
}
} finally {
try {
w && !w.done && (g = _.return) && g.call(_)
} finally {
if (j) throw j.error
}
}
}, O.prototype.addAreaEvent = function (v, O, j, p, y, _, w, E, T, I) {
return void 0 === T && (T = !1), void 0 === I && (I = !1), j.target = p, !m.Utils.isDefined(w) && g.a.instance.prodigy.classModeController.isLockedZone(p) ? (j.canReTrigger = !0, O.addAreaEvent(j, g.a.instance.prodigy.classModeController.onClassMode.bind(g.a.instance.prodigy.classModeController, p), E, T, I)) : m.Utils.isDefined(w) ? O.addAreaEvent(j, w, E, T, I) : O.addAreaEvent(j, g.a.instance.prodigy.world._.bind(g.a.instance.prodigy.world, p, y, _), E, T, I)
}, O.prototype.addChest = function (v, O, j, p, g, y, _, w) {
return m.Utils.isDefined(this.questParams.enableChests) && !this.questParams.enableChests ? null : O.addChest(j, p, g, y, _, w)
}, O.prototype.addMonster = function (v, j, p, y, T, I, S, C, D, M) {
var x, N, P = this;
void 0 === C && (C = !1), void 0 === D && (D = null), void 0 === M && (M = !1);
var R = g.a.instance.prodigy.gameContainer.get("497-7811").player;
if (R.ultimateSessionStatus === w.a.TrackingNPC) {
var k = E.a.getSeededLocation(17),
L = k.split("-")[0],
B = k.split("-")[1],
U = g.a.instance.prodigy.world.getZone(L).getMap(B).locations;
if (this.zoneName === L + "-" + B || U.find((function (v) {
return v === P.zoneName
}))) return null;
R.setUltimateSessionStatus(w.a.None, null, 0)
}
if (m.Utils.isDefined(this.questParams.enableMonsters) && !this.questParams.enableMonsters || m.Utils.isDefined(this.questParams.overrideMonsterIDWithPippet) && p === this.questParams.overrideMonsterIDWithPippet) return null;
if (this.zone.inRespawnExperiment() && !C) {
var G = this.zone.getQuestState();
if ((null == G ? void 0 : G.req) && (null === (N = null === (x = G.monsterState) || void 0 === x ? void 0 : x[this.tag]) || void 0 === N ? void 0 : N[p]) > 0) return null
}
var F = A.a.copyObject(S);
if (m.Utils.isDefined(this.mapMonsters[p]) || (this.mapMonsters[p] = {}), !C && this.mapMonsters[p].respawn > (new Date).getTime()) return null;
F.onEnd = m.Utils.isDefined(F.onEnd) ? F.onEnd : this.zoneName, F.onFaint = m.Utils.isDefined(F.onFaint) ? F.onFaint : this.onFaint, F.screen = m.Utils.isDefined(F.screen) ? F.screen : this.battleBG, m.Utils.isDefined(this.mapMonsters[p].data) && !M && (F.encounter = [this.mapMonsters[p].data]);
var H = j.addMonster(p, y, T, I, F, O.resetMonsterRespawn.bind(this, this.mapMonsters[p], F, _.a.get("GameConstants.Debug.MONSTER_RESPAWN_TIME")), m.Utils.isDefined(this.mapMonsters[p].respawn), D);
return this.mapMonsters[p].data = H.monsterData, this.mapMonsters[p].event = H, delete this.mapMonsters[p].respawn, H
}, O.resetMonsterRespawn = function (v, O, j) {
v.monsterData = null, v.respawn = (new Date).getTime() + 1e3 * j, m.Utils.isDefined(O) && (v.data = null, m.Utils.isDefined(O.onEnc) && O.onEnc())
}, O.prototype.addPippet = function (v, O, j, p, y) {
var _ = this.questParams.enableMonsters || !1;
this.featureRequirements.meetsRequirements(1) && m.Utils.isDefined(g.a.instance.prodigy.world.pippetEncounterSpawn) && this.zoneName === g.a.instance.prodigy.world.pippetEncounterSpawn.location && !_ && (this.questParams.overrideMonsterIDWithPippet = m.Utils.isDefined(j) ? j : 1, O.addPippet(p, y))
}, O.prototype.addBounty = function (v, j, p, g, y, _, w, E) {
void 0 === E && (E = !1);
var T = A.a.copyObject(w);
if (m.Utils.isDefined(this.mapMonsters[p]) || (this.mapMonsters[p] = {}), !E && this.mapMonsters[p].respawn > (new Date).getTime()) return null;
T.onEnd = m.Utils.isDefined(T.onEnd) ? T.onEnd : this.zoneName, T.onFaint = m.Utils.isDefined(T.onFaint) ? T.onFaint : this.onFaint, T.screen = m.Utils.isDefined(T.screen) ? T.screen : this.battleBG, m.Utils.isDefined(this.mapMonsters[p].monsterData) && (T.encounter = [this.mapMonsters[p].monsterData]);
var I = j.addBounty(p, g, y, _, T, O.resetMonsterRespawn.bind(this, this.mapMonsters[p], null, 5), m.Utils.isDefined(this.mapMonsters[p].respawn));
return this.mapMonsters[p].data = I.monsterData, delete this.mapMonsters[p].respawn, I
}, O.prototype.addWizard = function (v, O, j, p, g, y, _) {
y.onEnd = m.Utils.isDefined(y.onEnd) ? y.onEnd : this.zoneName, y.onFaint = m.Utils.isDefined(y.onFaint) ? y.onFaint : this.onFaint, y.screen = m.Utils.isDefined(y.screen) ? y.screen : this.battleBG;
var w = O.addWizard(j, p, g, y);
return null !== w && (_ && w.flip(), m.Utils.isDefined(this.questParams.enableWizards) && !this.questParams.enableWizards && (w.visible = !1)), w
}, O.prototype.addConstructedNPC = function (v, O, j, p, g, y, _, w) {
return m.Utils.isDefined(this.questParams.hiddenNPCs) && this.questParams.hiddenNPCs.indexOf(g) > -1 ? null : O.addConstructedNPC(j, p, g, y, _, w)
}, O.prototype.addCollisionZone = function (v, O, j, p, m) {
for (var g = v.path.size, y = Math.floor(p / g), _ = Math.floor(m / g), w = Math.floor(O / g), E = Math.floor(j / g), T = w; T < w + y; T++)
for (var I = E; I < E + _; I++) v.path.area[I][T] = 0
}, O.prototype.addGuideHand = function (v, O, j, p, y, w, E, T, I) {
var A = O.foreground.addChild(g.a.instance.prodigy.create.sprite(j, p, "atlas-18", "area-pointer"));
A.anchor.set(m.Utils.isDefined(T) ? T : .5, m.Utils.isDefined(I) ? I : .5), E && (A.angle = E);
return v.add.tween(A, this).to({
x: A.x + (m.Utils.isDefined(y) ? y : 0),
y: A.y + (m.Utils.isDefined(w) ? w : 0)
}, 400, m.Easing.Quadratic.InOut, !0, 0, _.a.MAX_SAFE_INTEGER, !0), A
}, O.prototype.init = function (O, j, p, m) {
return v.prototype.init.call(this, O, j, p, m)
}, O.prototype.validPathTo = function (v, O, j, p) {
var m = g.a.instance.prodigy.event.create();
m.validPath(O.user, O.path, j, p), m.start()
}, O.prototype.playPortalEffectExit = function (v, O, j, p, m) {
var y = g.a.instance.prodigy.event.create();
if (this.portalActive) y.enableInput(!1), y.path(this.screen.user, [{
x: v,
y: O
}]), y.portalEffect(v, O, !1), y.enableInput(!0), y.function(g.a.instance.prodigy.world._.bind(g.a.instance.prodigy.world, j, p, m));
else {
this.landedOnPortal = !0, y.enableInput(!1), y.portalEffect(v, O, !1);
var _ = 640 - v,
w = 360 - O,
E = Math.sqrt(_ * _ + w * w);
0 === E && (E = 1, _ = 1), y.path(this.screen.user, [{
x: 80 * _ / E + v,
y: 80 * w / E + O
}]), y.set(this, "landedOnPortal", !1), y.set(this, "portalActive", !0), y.function(this.addAreaEvent.bind(this, this.game, this.screen, {
x: v,
y: O,
w: 100,
h: 80
}, j, p, m, this.playPortalEffectExit.bind(this, v, O, j, p, m))), y.enableInput(!0)
}
y.start()
}, O.prototype.playPortalEffectEnter = function (v, O, j, p) {
var y = g.a.instance.prodigy.event.create();
this.portalActive || (y.enableInput(!1), y.portalEffect(v, O, !1), m.Utils.isDefined(j) && m.Utils.isDefined(p) && y.path(this.screen.user, [{
x: j,
y: p
}]), y.set(this, "landedOnPortal", !1), y.set(this, "portalActive", !0), y.enableInput(!0), y.start())
}, O.prototype.showAllBounties = function (v, O) {
if (m.Utils.isDefined(this.coord))
for (var j = 0; j < this.coord.length; j++) {
var p = {
ID: 84,
seed: Math.floor(100 * Math.random()),
complete: 0
};
g.a.instance.prodigy.bounty.placeBountyHere(p, O, this, j)
}
}, O.prototype.toggleDynamicLayer = function (v, O, j, p) {
var g = this;
if (void 0 === p && (p = 1), m.Utils.isDefined(this.dynamicLayerContainers)) {
var y = j ? 1 : 0,
_ = this.dynamicLayerContainers["element-" + O],
w = this.dynamicLayerContainers["collision-" + O];
m.Utils.isDefined(_) && (p > 0 ? (v.add.tween([_.above], this).to({
alpha: y
}, m.Utils.isDefined(p) ? p : 1, m.Easing.Linear.None).start(), v.add.tween([_.below], this).to({
alpha: y
}, m.Utils.isDefined(p) ? p : 1, m.Easing.Linear.None).start()) : (_.above.alpha = y, _.below.alpha = y)), m.Utils.isDefined(w) && (w.forEach((function (v) {
g.screen.area[v.y][v.x] = j ? v.value : 1
})), this.screen.path.init(this.screen.area, this.screen.tileSize))
}
}, O.prototype.canRegularMonsterSpawn = function () {
return !0
}, O.prototype.onMonsterSpawns = function (v, O) {}, Object(p.__decorate)([Object(m.injectProperty)("fb2-5446"), Object(p.__metadata)("design:type", Object)], O.prototype, "featureRequirements", void 0), O
}(j(545).a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return S
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(5),
_ = j(389),
w = j(7),
E = j(136),
T = j(83),
I = j(204),
A = j(21),
S = function (v) {
function O(O, j, p, y, _) {
void 0 === p && (p = null), void 0 === _ && (_ = []);
var w = v.call(this, O, j) || this;
return w.isModal = !0, w.isFullScreenUI = !1, w.isLoaded = !1, w.assetID = null, w.isNotificationCell = !1, w.skipStopPlayer = !1, w.skipSetActiveMenuOnClose = !1, w.skipRenderTransparencyLayer = !1, w.background = null, w.uiElementTemplates = [], w._isModalWithTransparency = !1, w.onClose = null, w.uiElements = [], w.uiRoot = null, w.configModifiers = null, w.onLoadCallbacks = [], w.configObj = null, w._onCreate = new m.Signal, w._pendingClose = !1, w._currentInterfaceName = "", m.Utils.isDefined(g.a.instance.prodigy.notifications) && g.a.instance.prodigy.notifications.clearNotifications(), w.background = g.a.instance.prodigy.create.element(w), w.configModifiers = m.Utils.isDefined(y) ? y : {}, m.Utils.isDefined(w.configModifiers.isModal) && (w.isModal = w.configModifiers.isModal), m.Utils.isDefined(p) && (w.assetID = p), m.Utils.isDefined(w.assetID) ? w.startLoad(_.concat("atlas-157"), w.startLoadComplete.bind(w)) : m.Logger.log("Config file for this UI has not been specified", m.LogLevel.Error), w.onLoadCallbacks = [], w
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "isModalWithTransparency", {
get: function () {
return this._isModalWithTransparency
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "onCreate", {
get: function () {
return this._onCreate
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "pendingClose", {
set: function (v) {
this._pendingClose = v
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "currentInterfaceName", {
set: function (v) {
this._currentInterfaceName = v
},
enumerable: !1,
configurable: !0
}), O.prototype.init = function (v) {
v.addChild(this), this.process()
}, O.prototype.close = function () {
g.a.instance.game && g.a.instance.prodigy && !this.skipSetActiveMenuOnClose && g.a.instance.prodigy.open.setActiveMenu();
try {
m.Utils.isDefined(this.onClose) && this.onClose.apply(this)
} catch (v) {
m.Logger.log("Error in Menu Callback: " + v, m.LogLevel.Error)
}
m.Utils.isDefined(g.a.instance.game) && g.a.instance.prodigy.open.close(this), this.isFullScreenUI && this.setGameRenderState(!0), this.destroy()
}, O.prototype.processConfigObj = function () {
if (m.Utils.isDefined(this.assetID) && (this.configObj = y.a.getItem("ui", this.assetID).data), m.Utils.isDefined(this.configModifiers) && m.Utils.isDefined(this.configObj.elements)) {
if (m.Utils.isDefined(this.configModifiers.modifyProperty))
for (var v = 0; v < this.configModifiers.modifyProperty.length; v++) {
var O = this.configModifiers.modifyProperty[v];
this.updateConfigProperty(this.configObj.elements, O.element, O.property, O.value)
}
if (m.Utils.isDefined(this.configModifiers.addChildren))
for (v = 0; v < this.configModifiers.addChildren.length; v++) {
O = this.configModifiers.addChildren[v];
this.addConfigChild(this.configObj.elements, O.parent, O.child)
}
if (m.Utils.isDefined(this.configModifiers.modifyTemplateProperty) && m.Utils.isDefined(this.configObj.templates))
for (v = 0; v < this.configModifiers.modifyTemplateProperty.length; v++) {
O = this.configModifiers.modifyTemplateProperty[v];
this.updateConfigProperty(this.configObj.templates, O.element, O.property, O.value)
}
}
this.create(), this._onCreate.dispatch()
}, O.prototype.addTransparent = function (v) {
void 0 === v && (v = .75), this.skipRenderTransparencyLayer || (this._rearOverlay = this.background.add(g.a.instance.prodigy.create.sprite(-10, -10, "atlas-18", "overlay-small")), this._rearOverlay.width = 1300, this._rearOverlay.height = 740, this._rearOverlay.alpha = v, this._rearOverlay.inputEnabled = !0, g.a.instance.prodigy.gameContainer.get("ae1-d011").setBlockType(this._rearOverlay.input, E.a.REAR_OVERLAY)), this.isModal && !this.isNotificationCell && this.setElementAsModal(!0)
}, O.prototype.create = function () {
var v = m.Utils.isDefined(this.configModifiers.backgroundAlpha) ? this.configModifiers.backgroundAlpha : .75;
this.addTransparent(v), this.createUIElements(this.configObj, this);
for (var O = 0; O < this.uiElements.length; O++) m.Utils.isDefined(this.uiElements[O].name) && (this[this.uiElements[O].name] = this.uiElements[O]);
this.onLoad(), this.isModal && g.a.instance.prodigy.open.hideActiveMenu(), g.a.instance.prodigy.open.setActiveMenu(this), this.process(), this.isNotificationCell || this.skipStopPlayer || g.a.instance.game.broadcaster.broadcast(w.u.StopPlayer), this.isFullScreenUI && this.setGameRenderState(!1), g.a.instance.game.broadcaster.broadcast(w.B.MenuOpened, g.a.instance.game, [this.assetID])
}, O.prototype.queuePostCreateCallback = function () {
for (var v = [], O = 0; O < arguments.length; O++) v[O] = arguments[O];
for (var j = 0; j < v.length; j++) this.onLoadCallbacks.push(v[j])
}, O.prototype.findConfigElement = function (v, O) {
for (var j = 0; j < v.length; j++) {
if (m.Utils.isDefined(v[j].name) && v[j].name === O) return v[j];
if (m.Utils.isDefined(v[j].children)) {
var p = this.findConfigElement(v[j].children, O);
if (m.Utils.isDefined(p)) return p
}
}
return null
}, O.prototype.updateConfigProperty = function (v, O, j, p) {
var g = this.findConfigElement(v, O);
null !== g ? g[j] = p : m.Logger.log("Config file for this UI does not have " + O + " element!", m.LogLevel.Error)
}, O.prototype.updateConfigModifierProperty = function (v, O, j) {
m.Utils.isDefined(this.configModifiers) || (this.configModifiers = {}), m.Utils.isDefined(this.configModifiers.modifyProperty) || (this.configModifiers.modifyProperty = []), this.configModifiers.modifyProperty.push({
element: v,
property: O,
value: j
})
}, O.prototype.addConfigChild = function (v, O, j) {
var p = this.findConfigElement(v, O);
null !== p ? m.Utils.isDefined(p.children) ? p.children.push(j) : p.children = [j] : m.Logger.log("Config file for this UI does not have " + O + " element!", m.LogLevel.Error)
}, O.prototype.instantiateTemplate = function (v, O) {
for (var j = 0; j < this.uiElementTemplates.length; j++)
if (this.uiElementTemplates[j].name === v) {
for (var p = new I.a(g.a.instance.game).createUIElements(new Array(this.uiElementTemplates[j]), O), y = {}, _ = 0; _ < p.length; _++) y[p[_].name] = p[_];
return y
} return m.Logger.log("Could not find template with name: " + v, m.LogLevel.Verbose), null
}, O.prototype.update = function () {
v.prototype.update.call(this), this._pendingClose ? this.close() : this.isLoaded && (this.isLoaded = !1, this.processConfigObj())
}, O.prototype.setCloseCallback = function (v) {
this.onClose = v
}, O.prototype.openTween = function () {
if (m.Utils.isDefined(this.uiRoot)) {
var v = this.uiRoot;
v.pivot.x = v.width / 2, v.pivot.y = v.height / 2, v.x += v.pivot.x, v.y += v.pivot.y, v.scale.x = .1, v.scale.y = .1, v.alpha = 0, g.a.instance.game.add.tween(v.scale, this).to({
x: 1,
y: 1
}, 200, m.Easing.Back.Out, !0), g.a.instance.game.add.tween(v, this).to({
alpha: 1
}, 120, m.Easing.Linear.None, !0)
}
}, O.prototype.findUIElement = function (v) {
for (var O = null, j = 0; j < this.uiElements.length; j++)
if ((O = this.uiElements[j]).name === v) return O;
return m.Logger.log("Menu.findUIElement - couldn't find UIElement with name: " + v, m.LogLevel.Error), null
}, O.prototype.findElement = function (v, O) {
for (var j = null, p = 0; p < this.uiElements.length; p++)
if ((j = this.uiElements[p]).name === O && j instanceof v) return j;
return m.Logger.log("Menu.findElement - Couldn't find UIElement with name: " + O + ".", m.LogLevel.Error), null
}, O.prototype.debugDrawUIElementBounds = function (v) {}, O.prototype.setActive = function (v) {
this.visible = v, v && this.process()
}, O.prototype.setGameRenderState = function (v) {
this.game.broadcaster.broadcast(w.v.EnableBackground, void 0, [v]), this.game.broadcaster.broadcast(w.v.EnableContent, void 0, [v]);
var O = new Set([_.a.LEGACY_MENU_LAYER_NAME]);
m.SceneManager.getActiveScene().setAllLayerVisibility(v, O)
}, O.prototype.process = function (v) {
void 0 === v && (v = null);
var O = v;
m.Utils.isDefined(O) || (O = this, this.isModal && m.Utils.isDefined(g.a.instance.game) && g.a.instance.prodigy.textureMenu.clear());
for (var j = 0; j < O.children.length; j++)
if (O.children[j] instanceof T.a && !0 === O.children[j].renderOnly) {
for (var p = 0; p < O.children[j].images.length; p++) {
var y = O.children[j].images[p];
g.a.instance.prodigy.textureMenu.renderXY(y, y.x + O.children[j].x, y.y + O.children[j].y), y.visible = !1
}
this.process(O.children[j])
}
}, O.prototype.onLoad = function () {
this.onLoadCallbacks.forEach((function (v) {
"function" == typeof v && v()
})), this.onLoadCallbacks = []
}, O.prototype.startLoadComplete = function () {
this.isLoaded = !0
}, O.prototype.startLoad = function (v, O) {
g.a.instance.prodigy.load.assets(v, O)
}, O.prototype.createUIElements = function (v, O) {
var j = new I.a(g.a.instance.game);
m.Utils.isDefined(v.elements) && (this.uiRoot = new T.a(g.a.instance.game, O), this.uiRoot.populate({
type: "UIElement",
width: O.width,
height: O.height
}), this.uiElements = j.createUIElements(v.elements, this.uiRoot)), m.Utils.isDefined(v.templates) && (this.uiElementTemplates = v.templates)
}, O.prototype.getInjectedValue = function (v) {
return g.a.instance.prodigy.gameContainer.get(v)
}, O.prototype.setElementAsModal = function (v) {
this._isModalWithTransparency = v, g.a.instance.prodigy.open.bitmapCacheGameRender(v, this)
}, O.prototype.destroy = function (O) {
this._onCreate.dispose(), v.prototype.destroy.call(this, O)
}, O.prototype.fireEvent = function (v, O) {
var j = g.a.instance.prodigy.gameContainer.get("974-9dfd").featureCommon,
m = Object(p.__assign)({
interfaceName: this._currentInterfaceName,
interfaceType: A.d.Menu,
instanceType: "UI"
}, O);
switch (v) {
case "Interface Opened":
case "Interface Closed":
j.sendInterfaceEvent(m);
break;
case "Tab Clicked":
j.sendTabEvent(m)
}
}, O
}(T.a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(11),
_ = function (v) {
function O(O, j, p, m, y) {
var _ = v.call(this, O, j, null, null, null, null, p, m, y) || this;
return _._isModalWithTransparency = !1, _.game = O, _.metricsManager = g.a.instance.prodigy.gameContainer.get("c19-b0bb"), _.metricsManager.objectCreated("Element"), _
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "isModalWithTransparency", {
get: function () {
return this._isModalWithTransparency
},
enumerable: !1,
configurable: !0
}), O.prototype.setRenderState = function (v, O) {
this.renderOnly = v, this.tintElement = O
}, O.prototype.showTooltip = function (v, O) {
if (this.hasTooltip() && (this.tooltip.destroy(), this.tooltip = null), m.Utils.isDefined(v)) {
this.tooltip = g.a.instance.prodigy.create.element(this, O);
var j = this.tooltip.add(g.a.instance.prodigy.create.sprite(30, 0, "atlas-18", "tooltip"));
j.scale.x = -1, j.alpha = .9, j.width = 300, j.height = 50, g.a.instance.prodigy.create.font(this.tooltip, 90, 11, v, {
width: 230,
align: "center"
}), j = this.tooltip.add(g.a.instance.prodigy.create.sprite(0, 0, "atlas-21", "type")), this.game.add.tween(j, this).to({
x: 10
}, 1e3, m.Easing.Quadratic.InOut, !0, 0, y.a.MAX_SAFE_INTEGER, !0)
}
}, O.prototype.hasTooltip = function () {
return m.Utils.isDefined(this.tooltip)
}, O.prototype.highlight = function (v, O, j, p) {
void 0 === O && (O = 0), void 0 === j && (j = 0), void 0 === p && (p = 400), this.isHighlighted() && (this.arrow.destroy(), this.arrow = null), v && (this.arrow = this.add(g.a.instance.prodigy.create.sprite(0, 0, "atlas-21", "help")), this.arrow.x = O + Math.floor(this.width / 2), this.arrow.y = j - this.arrow.height + 10, this.game.add.tween(this.arrow, this).to({
y: this.arrow.y + 25
}, p, m.Easing.Quadratic.InOut, !0, 0, y.a.MAX_SAFE_INTEGER, !0))
}, O.prototype.isHighlighted = function () {
return m.Utils.isDefined(this.arrow)
}, O.prototype.setElementAsModal = function (v) {
this._isModalWithTransparency = v, g.a.instance.prodigy.open.bitmapCacheGameRender(v, this)
}, O.prototype.destroy = function (O) {
void 0 === O && (O = {
children: !0
}), this.cacheAsBitmap = !1, this.metricsManager && (this.metricsManager.objectDestroyed("Element"), this.metricsManager = null), this.tooltip = null, this.arrow = null, v.prototype.destroy.call(this, O), this.game = null
}, O.prototype.getInjectedValue = function (v) {
return g.a.instance.prodigy.gameContainer.get(v)
}, O
}(j(514).a)
}, function (v, O, j) {
"use strict";
var p, m;
j.d(O, "b", (function () {
return p
})), j.d(O, "a", (function () {
return m
})),
function (v) {
v.Walk = "Walk", v.FastTravel = "Fast-Travel", v.Teleported = "Teleported"
}(p || (p = {})),
function (v) {
v.Merchant = "Merchant", v.QuestGiver = "Quest-Giver", v.Warden = "Warden", v.Boss = "Boss", v.Pet = "pet", v.CareGiver = "Care-Giver", v.WheelGiver = "Wheel-Giver", v.Nicknamer = "Nicknamer", v.Guard = "Guard", v.SurveyGiver = "Survey-Giver", v.Bouncer = "Bouncer"
}(m || (m = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return I
}));
var p = j(20),
m = j(0),
g = j(2),
y = j(11),
_ = j(207),
w = j(5),
E = j(77),
T = j(124),
I = function () {
function v() {}
return v.getStrengths = function (v) {
return this.weakList[v]
}, v.getWeaknesses = function (v) {
return this.strongList[v]
}, v.getElementsStrongAgainst = function (v) {
var O = [];
for (var j in this.strongList) this.strongList[j].indexOf(v) > -1 && O.push(j);
return O
}, v.isWeakAgainst = function (O, j) {
return !!m.Utils.isDefined(v.weakList[O]) && v.weakList[O].indexOf(j) > -1
}, v.isStrongAgainst = function (O, j) {
return !!m.Utils.isDefined(v.strongList[O]) && v.strongList[O].indexOf(j) > -1
}, v.xpRequiredForLevel = function (v) {
if (1 === v) return 0;
if (2 === v) return 10;
var O = v - 2;
return Math.round((1 - Math.pow(this.xpConstant, O)) / (1 - this.xpConstant) * 20 + 10)
}, v.levelFromStars = function (O) {
for (var j = 1, p = 1; p <= 100 && O >= this.xpRequiredForLevel(p); p++) j = p;
return m.MathUtils.clamp(j, v.MIN_LEVEL, v.MAX_LEVEL)
}, v.rollMissChance = function (O, j) {
void 0 === j && (j = 0);
var p = y.b.get("GameConstants.Battle.ENEMY_ACCURACY_OVERRIDE");
if (m.Utils.isDefined(p) && p >= 0) return Math.random() >= p;
var g = E.a.clampedLerp(this.missDifficultyRange[0], this.missDifficultyRange[1], O / v.MAX_DIFFICULTY);
return Math.random() < g + j
}, v.getCreatureHP = function (v, O) {
void 0 === O && (O = null);
var j = v.getStatHealth(),
p = m.Utils.isDefined(O) ? O : v.getLevel();
return Math.floor(this.getHPFromParams(p, j))
}, v.getHPFromParams = function (v, O) {
var j = this.getLevel1Hp(O),
p = this.getHpInc(O);
return Math.ceil(j + (v - 1) * p)
}, v.calculateDamagePVP = function (O, j, p, m, g) {
void 0 === g && (g = 1);
var y = this.calculateSpellDamage(O, j, p),
_ = w.a.getItem("spell", p).data,
E = {
damage: y,
criticalChance: 0,
elementAdvantage: v.getTypeAdvantage(_, j),
attackElementType: _.element,
nFactor: 1,
damageModifiers: 0
},
T = {
damage: E.damage,
critical: !1,
elementAdvantage: E.elementAdvantage,
nFactor: 1,
miss: !1
},
I = m * (this.randomBaseRange[1] - this.randomBaseRange[0]) + this.randomBaseRange[0];
return T.damage = y * (E.elementAdvantage + I + g), T.damage = Math.round(T.damage), T
}, v.calculateDamage = function (O, j, p, g, _, E) {
void 0 === E && (E = !0);
var T = this.calculateSpellDamage(O, p, g),
I = w.a.getItem("spell", g).data,
A = {
damage: T,
criticalChance: this.criticalChance,
elementAdvantage: v.getTypeAdvantage(I, p),
attackElementType: I.element,
nFactor: 1,
damageModifiers: 0
};
A = this.applyModifiers(A, _, O, p);
var S = Math.random() <= A.criticalChance && E ? this.criticalBonus : 0,
C = E ? Math.random() * (this.randomBaseRange[1] - this.randomBaseRange[0]) + this.randomBaseRange[0] : 0,
D = 0;
j && (D = O.getDamageBonus() - 1);
var M = {
damage: A.damage,
critical: S > 0,
elementAdvantage: A.elementAdvantage,
nFactor: 1,
miss: !1
};
m.Utils.isDefined(A.nFactor) && (M.nFactor = A.nFactor);
var x = y.b.get("GameConstants.Battle.ATTACK_DAMAGE_OVERRIDE");
if (m.Utils.isDefined(x)) return M.damage = x, M;
var N = m.Utils.isDefined(p.modifiers.takenDamageMultiplier) ? p.modifiers.takenDamageMultiplier : 1;
return M.damage = A.damage * (A.elementAdvantage + D + S + C + this.nFactorMap[A.nFactor] + A.damageModifiers + 1) * N, M.damage = Math.round(M.damage), M
}, v.getLevel1Hp = function (v) {
return this.hpMidValue / this.hpStatRange * Math.pow(Math.pow(this.hpStatRange, .25), v - 1)
}, v.getHpInc = function (v) {
return this.hpMidIncrement / this.hpStatRange * Math.pow(Math.pow(this.hpStatRange, .25), v - 1)
}, v.calculateSpellDamage = function (v, O, j) {
var p, m = v.getStatPower(),
g = v.getLevel(),
y = null !== (p = w.a.getItem("spell", j).data.tier) && void 0 !== p ? p : 1,
_ = this.getLevel1Hp(m),
E = this.getHpInc(m),
T = 1 / this.hitsPerKillLevel1 * _;
return (T + T / (99 / ((_ + 99 * E) / this.hitsPerKillLevel100 / this.spellTierMultipliers[2] / T - 1)) * (g - 1)) * this.spellTierMultipliers[y - 1]
}, v.getTypeAdvantage = function (O, j) {
return v.isStrongAgainst(O.element, j.getElement()) ? .2 : v.isWeakAgainst(O.element, j.getElement()) ? -.2 : 0
}, v.applyModifiers = function (v, O, j, g) {
var y, E, T, I, A = j.modifiers,
S = g.modifiers;
if (m.Utils.isDefined(A)) {
if (m.Utils.isDefined(A.potion) && 0 !== A.potion) {
var C = w.a.getItem("item", A.potion).data;
if (_.a.isPotionConsumable(C))(M = (D = C.affix).type) === p.EPotionAffixType.BonusCriticalHitChance ? v.criticalChance = D.amount : M === p.EPotionAffixType.DamageBonus && (v.damageModifiers += D.amount)
}
m.Utils.isDefined(A.damage) && (v.damageModifiers += A.damage - 1), v.elementAdvantage *= null !== (E = null === (y = A.elementalAdvantageMultipliers) || void 0 === y ? void 0 : y.outgoing) && void 0 !== E ? E : 1
}
if (m.Utils.isDefined(S)) {
if (m.Utils.isDefined(S.potion) && 0 !== S.potion) {
C = w.a.getItem("item", S.potion).data;
if (_.a.isPotionConsumable(C)) {
var D, M = (D = C.affix).type;
p.PotionConsumable.isElementalPotionAffix(D) && M === p.EPotionAffixType.ElementalDamageResistance ? D.elements.indexOf(v.attackElementType) > -1 && (v.elementAdvantage -= D.amount) : M === p.EPotionAffixType.DamageReduction && (v.damageModifiers -= D.amount)
}
}
m.Utils.isDefined(S.ignoreElement) && S.ignoreElement > 0 && (v.elementAdvantage = Math.min(v.elementAdvantage, 0)), v.elementAdvantage *= null !== (I = null === (T = S.elementalAdvantageMultipliers) || void 0 === T ? void 0 : T.incoming) && void 0 !== I ? I : 1
}
return m.Utils.isDefined(O) && (m.Utils.isDefined(O.dmgMod) && (v.damageModifiers += O.dmgMod), m.Utils.isDefined(O.nFactor) && (v.nFactor = O.nFactor)), v
}, v.getBestAttack = function (v, O, j, p) {
if (v.length <= 0) return null;
for (var m = [], g = 0; g < v.length; g++) m[g] = {
dmg: this.calculateSpellDamage(O, j, v[g]),
ID: v[g]
};
m.sort((function (v, O) {
return O.dmg - v.dmg
}));
var y = m[m.length - 1].ID;
for (g = 0; g < m.length; g++)
if (Math.random() > p) {
y = m[g].ID;
break
} return y
}, v.getEnemyLevel = function (O, j) {
return m.MathUtils.clamp(Math.round(((this.hpMidValue + this.hpMidIncrement * (O - 1)) / this.difficultyHitsToKill[j] * 3 - this.hpMidValue) / this.hpMidIncrement) + 1, v.MIN_LEVEL, v.MAX_LEVEL)
}, v.getAllOutAttackDamage = function (O, j, p) {
var g = 1;
return g = p ? v.allOutAttackBossDamage[j.aoaTier][O.getLiving().length] : v.allOutAttackDamage[j.aoaTier][O.getLiving().length], m.Utils.isDefined(j.modifiers.takenDamageMultiplier) && (g *= j.modifiers.takenDamageMultiplier), {
damage: j.getMaxHearts() * g,
critical: !1,
elementAdvantage: 0,
nFactor: 1,
miss: !1
}
}, v.calculateXP = function (v, O, j) {
var p = v * (g.a.instance.prodigy.gameContainer.get("5e6-0152").getMultiplier(j, T.a.Xp) - 1),
m = g.a.instance.prodigy.gameContainer.get("497-7811").player.hasValidatedParentEmail() ? v * y.b.get("GameConstants.Battle.VALID_PARENT_EMAIL_STARS_PERCENTAGE") : 0,
_ = (v + O) * y.b.get("GameConstants.Battle.MEMBER_STARS_PERCENTAGE"),
w = v + p + m + O;
return {
baseXP: Math.ceil(v),
memberXP: Math.ceil(_),
parentLinkXP: Math.ceil(m),
pippetXP: Math.ceil(O),
multiXP: Math.ceil(p),
totalNonMemberXP: Math.ceil(w)
}
}, v.MAX_LEVEL = 100, v.MIN_LEVEL = 1, v.ALL_OUT_ATTACK_ENERGY_COST = 10, v.MAX_DIFFICULTY = 10, v.AI_SWITCH_COOLDOWN = 1, v.criticalChance = .05, v.criticalBonus = .15, v.randomBaseRange = [-.01, .01], v.nFactorMap = [-1, 0, 0, .15, .3, .5, 1, 1.5, 1.5, 1.5, 1.5], v.hitsPerKillLevel1 = 3, v.hitsPerKillLevel100 = 3, v.spellTierMultipliers = [1, 1.2, 1.4], v.missDifficultyRange = [.35, .25], v.difficultyHitsToKill = {
0: 4,
1: 3.6,
2: 3.5,
3: 3.4,
4: 3.3,
5: 3.2,
6: 3.1,
7: 3,
8: 3,
9: 3,
10: 3
}, v.xpConstant = 1.042, v.hpMidValue = 500, v.hpMidIncrement = 100, v.hpStatRange = 1.25, v.hpMaxStat = 9, v.strongList = {
fire: ["ice", "earth", "plant", "ice & fire"],
water: ["fire", "ice & fire"],
earth: ["water"],
plant: ["water"],
storm: ["water"],
mech: ["water"],
ice: ["storm", "mech"],
shadow: ["fire", "water", "earth", "plant", "storm", "mech", "ice"],
wizard: ["shadow"],
astral: ["shadow"]
}, v.weakList = {
fire: ["water", "fire", "shadow"],
water: ["earth", "plant", "storm", "mech", "water", "shadow"],
earth: ["fire", "ice & fire", "earth", "plant", "shadow"],
plant: ["fire", "ice & fire", "plant", "earth", "shadow"],
storm: ["ice", "ice & fire", "storm", "mech", "shadow"],
mech: ["ice", "ice & fire", "mech", "storm", "shadow"],
ice: ["fire", "ice & fire", "ice", "shadow"],
shadow: ["wizard", "astral"],
wizard: [],
astral: []
}, v.allOutAttackDamage = {
1: {
1: .34,
2: .67,
3: 1
},
2: {
1: .2,
2: .3,
3: .4
}
}, v.allOutAttackBossDamage = {
1: {
1: .2,
2: .3,
3: .5
},
2: {
1: .2,
2: .3,
3: .4
}
}, v
}()
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.Astral = "astral", v.Earth = "earth", v.Plant = "plant", v.Storm = "storm", v.Fire = "fire", v.Wizard = "wizard", v.Water = "water", v.Ice = "ice", v.Shadow = "shadow", v.Mech = "mech"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.Static = "static", v.Video = "video", v.Alternative = "alternative", v.Mythics21Q4 = "mythics21Q4", v.None = ""
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return T
}));
var p = j(0),
m = j(2),
g = j(5),
y = j(40),
_ = j(39),
w = j(200),
E = j(519),
T = function () {
function v() {}
return v.getEvolutionLVL = function (v) {
if (m.a.instance.prodigy.gameContainer.get("466-c04b").getFeatureVariable("conversion_september_batch_2021", "Pet_Evo_Decrease")) {
if ([136, 139, 142, 145, 148].includes(null == v ? void 0 : v.ID)) return 10
}
var O = null == v ? void 0 : v.data.curve.find((function (v) {
return v.evolveID
}));
return null == O ? void 0 : O.lvl
}, v.getEvolutionID = function (v) {
var O = null == v ? void 0 : v.data.curve.find((function (v) {
return v.evolveID
}));
return null == O ? void 0 : O.evolveID
}, v.hasEvolutionID = function (v, O) {
return !!(null == O ? void 0 : O.data.curve.find((function (O) {
return O.evolveID === v
})))
}, v.findPreviousEvolution = function (v, O) {
var j = this;
return O.find((function (O) {
return j.hasEvolutionID(null == v ? void 0 : v.ID, O)
}))
}, v.findNextEvolution = function (v) {
var O = this.getEvolutionID(v);
return p.Utils.isDefined(O) ? g.a.getItem("pet", O) : null
}, v.GetEvolutionaryLine = function (v) {
for (var O = g.a.getCategoryItems("pet"), j = [v.ID], p = this.findNextEvolution(v); p;) j.push(p.ID), p = this.findNextEvolution(p);
for (p = this.findPreviousEvolution(v, O); p;) j.unshift(p.ID), p = this.findPreviousEvolution(p, O);
return j
}, v.hasValidOrdinal = function (v) {
var O;
return p.Utils.isDefined(null === (O = v.data) || void 0 === O ? void 0 : O.ordinal) && v.data.ordinal > 0
}, v.isValidForPetBook = function (v) {
return this.hasValidOrdinal(v) && this.isValidForUltimatesExperiment(v)
}, v.isValidForUltimatesExperiment = function (v) {
var O = m.a.instance.prodigy.gameContainer.get("fb2-5446"),
j = O.meetsRequirements(16) || O.meetsRequirements(18),
p = this.isUltimate(v.ID);
return !p || p && j
}, v.isUltimatesFollow = function (v) {
var O = g.a.getItem("follow", v).metadata.petID;
return this.isUltimate(O)
}, v.isPetOnTeam = function (v) {
return p.Utils.isDefined(v.team)
}, v.getElementType = function (v) {
return v.data.element === y.a.Mech ? y.a.Storm : v.data.element === y.a.Earth ? y.a.Plant : v.data.element
}, v.getPetDisplayName = function (v, O, j) {
var m, g = null !== (m = null == O ? void 0 : O.nickname) && void 0 !== m ? m : v.name;
return p.Utils.isDefined(j) && g.length > j && (g = g.substr(0, j) + "..."), g
}, v.isPetEpic = function (v, O) {
return void 0 === O && (O = !0), Boolean(v >= 125 && v <= 133 || O && this.isUltimate(v))
}, v.isUltimate = function (v) {
return g.a.getItem("generic", 18).data.ultimatesData.some((function (O) {
return O.id === v
}))
}, v.isPetStater = function (v) {
return w.a.STARTER_PETS.includes(v)
}, v.isPetACrystalMonster = function (v) {
return w.a.CRYSTAL_MONSTERS.includes(v)
}, v.getPetLevel = function (v) {
return p.Utils.isDefined(v.level) ? p.MathUtils.clamp(v.level, 1, 100) : 1
}, v.getPetMaxHealth = function (O) {
var j = g.a.getItem("pet", O.ID);
return _.a.getHPFromParams(v.getPetLevel(O), j.data.statHealth)
}, v.getPetCurrentHealth = function (v) {
return p.Utils.isDefined(null == v ? void 0 : v.hp) ? v.hp : this.getPetMaxHealth(v)
}, v.getAtlasElementBackerPath = function (v) {
return "pet-icon-backers/pet-icon-backers-" + ("plant" === v ? "earth" : v)
}, v.getAllOwnedPetsFromList = function (v) {
return m.a.instance.prodigy.gameContainer.get("497-7811").player.kennel.getPets().filter((function (O) {
return v.find((function (v) {
return O.ID === v.ID
}))
}))
}, v.getAllOwnedPetsFromExcludeList = function (v) {
return m.a.instance.prodigy.gameContainer.get("497-7811").player.kennel.getPets().filter((function (O) {
return !v.some((function (v) {
return O.ID === v.ID
}))
}))
}, v.getAllOwnedEpicPetIDs = function (O) {
return void 0 === O && (O = !0), m.a.instance.prodigy.gameContainer.get("497-7811").player.kennel.getPets().map((function (v) {
return v.ID
})).filter((function (j, p, m) {
return v.isPetEpic(j, O) && m.indexOf(j) === p
}))
}, v.getAllOwnedUltimatePetIDs = function () {
return m.a.instance.prodigy.gameContainer.get("497-7811").player.kennel.getPets().map((function (v) {
return v.ID
})).filter((function (O, j, p) {
return v.isUltimate(O) && p.indexOf(O) === j
}))
}, v.getAllUltimatesPetData = function () {
var v = g.a.getItem("generic", 18).data,
O = [];
return v.ultimatesData.forEach((function (v) {
O.push({
ID: v.id
})
})), O
}, v.isUltimateLeavingSoon = function (v, O) {
return void 0 === O && (O = E.a.Week), m.a.instance.prodigy.gameContainer.get("668-164f").getServerTimeMs() + O >= v.valueOf()
}, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return E
}));
var p = j(1),
m = j(0),
g = j(6),
y = j(10),
_ = j(3),
w = j(55),
E = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O.onAnimationComplete = new m.Signal, O._initialAnimation = null, O._loopAnimation = !0, O._startTimeSeconds = 0, O._isLoaded = !1, O
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "spine", {
get: function () {
return this._spineComponent
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "OnAnimationComplete", {
get: function () {
return this.onAnimationComplete
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "isLoaded", {
get: function () {
return this._isLoaded
},
enumerable: !1,
configurable: !0
}), O.prototype.create = function () {
if (v.prototype.create.call(this), this._spineComponent = this.gameObject.findComponent(w.a), this._isLoaded = !1, !this._spineComponent) return m.Logger.log("SpineAnimator missing SpineComponent on " + this.gameObject.name, m.LogLevel.Error), void this.destroy();
this._spineComponent.isLoaded ? this.onLoaded() : this._spineComponent.OnLoaded.addOnce(this.onLoaded, this, 0)
}, O.prototype.onLoaded = function () {
this._isLoaded = !0, this._initialAnimation && this.playAnimation(this._initialAnimation, this._loopAnimation)
}, O.prototype.playAnimation = function (v, O, j) {
var p = this;
if (void 0 === j && (j = !1), !this._isLoaded) return this._initialAnimation = v, void(this._loopAnimation = O);
var m = this._spineComponent.getSpine();
if (m && m.state) {
var y = m.state.tracks[0];
if (!j && y && y.animation.name === v) return;
m.onComplete.removeAll(this), O ? m.onComplete.add((function () {
p.onAnimationComplete.dispatch()
}), this) : m.onComplete.addOnce((function () {
p.onAnimationComplete.dispatch()
}), this), m.lastTime = Date.now(), m.setToSetupPose(), m.setAnimationByName(0, v, O), g.set(m, "state.tracks[0].trackTime", this._startTimeSeconds), m.state.apply(m.skeleton)
} else this._spineComponent.OnLoaded.addOnce(this.playAnimation, this, 0, v, O)
}, O.prototype.stopAnimation = function () {
if (null !== this._spineComponent) {
var v = this._spineComponent.getSpine();
v && (v.onComplete.removeAll(this), v.setToSetupPose(), v.state.tracks = [])
}
}, O.prototype.applySkin = function (v) {
if (null !== this._spineComponent) {
var O = this._spineComponent.getSpine(),
j = O.skeleton.data.findSkin(v);
O.setSkin(j);
for (var p = O.skeleton.slots, g = 0; g < p.length; ++g) {
var y = p[g].data.attachmentName;
m.Utils.isDefined(y) && j.getAttachment(g, y) && p[g].setToSetupPose()
}
}
}, O.prototype.buildSkin = function (v, O) {
if (null !== this._spineComponent) {
for (var j = this._spineComponent.getSpine().skeleton.data, p = new y.spine.Spine(j), m = new y.spine.Skin(v), g = O.length, _ = 0; _ < g; ++_) m.addSkin(j.findSkin(O[_]));
p.skeleton.setSkin(m)
}
}, O.prototype.destroy = function () {
if (this._spineComponent) {
var O = this._spineComponent.getSpine();
(null == O ? void 0 : O.onComplete) && O.onComplete.removeAll(this)
}
this.onAnimationComplete.dispose(), v.prototype.destroy.call(this)
}, Object(p.__decorate)([Object(m.serializeSignal)(), Object(p.__metadata)("design:type", m.Signal)], O.prototype, "onAnimationComplete", void 0), Object(p.__decorate)([Object(m.serializeString)(0, "animation"), Object(p.__metadata)("design:type", String)], O.prototype, "_initialAnimation", void 0), Object(p.__decorate)([Object(m.serializeBoolean)(), Object(p.__metadata)("design:type", Boolean)], O.prototype, "_loopAnimation", void 0), Object(p.__decorate)([Object(m.serializeNumber)(), Object(p.__metadata)("design:type", Number)], O.prototype, "_startTimeSeconds", void 0), O = Object(p.__decorate)([Object(m.componentable)("SpineAnimator", _.a.animation)], O)
}(m.Component)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(46),
m = j(18),
g = j(15),
y = j(25),
_ = function () {
function v(v, O) {
void 0 === v && (v = 0), void 0 === O && (O = 0), this._x = 0, this._y = 0, this._magnitude = 0, this._magnitudeSq = 0, this._recalculateMagnitude = !1, this._recalculateMagnitudeSq = !1, this.x = v, this.y = O
}
return Object.defineProperty(v, "ZERO", {
get: function () {
return new v(0, 0)
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v, "ONE", {
get: function () {
return new v(1, 1)
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v, "UP", {
get: function () {
return new v(0, 1)
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v, "DOWN", {
get: function () {
return new v(0, -1)
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v, "RIGHT", {
get: function () {
return new v(1, 0)
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v, "LEFT", {
get: function () {
return new v(-1, 0)
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "x", {
get: function () {
return this._x
},
set: function (v) {
this._x = v, this._recalculateMagnitudeSq = !0, this._recalculateMagnitude = !0
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "y", {
get: function () {
return this._y
},
set: function (v) {
this._y = v, this._recalculateMagnitudeSq = !0, this._recalculateMagnitude = !0
},
enumerable: !0,
configurable: !0
}), v.prototype.getMagnitude = function () {
return this.recalculateMagnitude(), this._magnitude
}, v.prototype.getMagnitudeSq = function () {
return this.recalculateMagnitudeSq(), this._magnitudeSq
}, v.fromPoint = function (O) {
return new v(O.x, O.y)
}, v.prototype.setTo = function (v, O) {
this.set(v, O)
}, v.prototype.set = function (v, O) {
this.x = v, this.y = O
}, v.prototype.setToPolar = function (v, O) {
void 0 === O && (O = 1), this.set(Math.cos(v) * O, Math.sin(v) * O)
}, v.prototype.copyFrom = function (v) {
return this.set(v.x, v.y), this
}, v.prototype.copyTo = function (v) {
return v.set(this.x, this.y), v
}, v.prototype.equals = function (v) {
return this.isNearlyEqual(v)
}, v.prototype.isNearlyEqual = function (v, O) {
return this.isNearlyEqualToValues(v.x, v.y, O)
}, v.prototype.isNearlyEqualToValues = function (v, O, j) {
return p.a.isNearlyEqual(this.x, v, j) && p.a.isNearlyEqual(this.y, O, j)
}, v.prototype.invert = function () {
this.set(this._y, this._x)
}, v.prototype.perpendicular = function (v) {
void 0 === v && (v = !0), v ? this.set(this._y, -this._x) : this.set(-this._y, this._x)
}, v.prototype.normalRightHand = function () {
this.set(-1 * this._y, this._x)
}, v.prototype.floor = function () {
this.set(Math.floor(this._x), Math.floor(this._y))
}, v.prototype.ceil = function () {
this.set(Math.ceil(this._x), Math.ceil(this._y))
}, v.prototype.round = function () {
this.set(Math.round(this._x), Math.round(this._y))
}, v.prototype.negate = function () {
this.set(-this._x, -this._y)
}, v.prototype.add = function (v) {
this._x += v.x, this._y += v.y
}, v.prototype.subtract = function (v) {
this._x -= v.x, this._y -= v.y
}, v.prototype.multiply = function (v) {
this._x *= v.x, this._y *= v.y
}, v.prototype.divide = function (v) {
this._x /= v.x, this._y /= v.y
}, v.prototype.clamp = function (v, O, j) {
switch (j) {
case "x":
this._x = p.a.clamp(this._x, v, O);
break;
case "y":
this._y = p.a.clamp(this._y, v, O);
break;
default:
this._x = p.a.clamp(this._x, v, O), this._y = p.a.clamp(this._y, v, O)
}
}, v.prototype.clip = function (v) {
var O = v.left,
j = v.top,
p = v.right,
m = v.bottom;
this._x < O ? this._x = O : this._x > p && (this._x = p), this._y < j ? this._y = j : this._y > m && (this._y = m)
}, v.prototype.rotate = function (v, O, j) {
if (void 0 === j && (j = null), y.a.isDefined(j)) {
var p = O + Math.atan2(this._y - v.y, this._x - v.x);
this._x = v.x + j * Math.cos(p), this._y = v.y + j * Math.sin(p)
} else {
this.subtract(v);
var m = Math.sin(O),
g = Math.cos(O);
this._x = g * this._x - m * this._y + v.x, this._y = m * this._x + g * this._y + v.y
}
}, v.prototype.normalize = function () {
var v = this.getMagnitude();
v > 0 && (this._x /= v, this._y /= v, this._magnitude = 1, this._magnitudeSq = 1, this._recalculateMagnitude = !1, this._recalculateMagnitudeSq = !1)
}, v.prototype.interpolate = function (v, O) {
this.set(this._x + (v.x - this._x) * O, this._y + (v.y - this._y) * O)
}, v.prototype.project = function (v, O) {
void 0 === O && (O = !1);
var j = this.dot(v) / (O ? 1 : v.getMagnitudeSq());
0 !== j && this.set(j * v.x, j * v.y)
}, v.prototype.trunc = function () {
this.set(~~this._x, ~~this._y)
}, v.prototype.isZero = function () {
return this.isNearlyEqual(v.ZERO)
}, v.prototype.angle = function (v) {
return Math.atan2(v.y - this._y, v.x - this._x)
}, v.prototype.dot = function (v) {
return this._x * v.x + this._y * v.y
}, v.prototype.cross = function (v) {
return this._x * v.y - this._y * v.x
}, v.prototype.getDistanceSq = function (v) {
return Math.pow(this.x - v.x, 2) + Math.pow(this.y - v.y, 2)
}, v.prototype.getDistance = function (v) {
return Math.sqrt(this.getDistanceSq(v))
}, v.prototype.toString = function () {
return "[{Vector <x=" + this._x + " y=" + this._y + ">}]"
}, v.prototype.print = function (v) {
void 0 === v && (v = g.a.Info), m.a.log(this.toString(), v)
}, v.prototype.recalculateMagnitudeSq = function () {
this._recalculateMagnitudeSq && (this._magnitudeSq = Math.pow(this._x, 2) + Math.pow(this._y, 2), this._recalculateMagnitudeSq = !1)
}, v.prototype.recalculateMagnitude = function () {
this.recalculateMagnitudeSq(), this._recalculateMagnitude && (this._magnitude = Math.sqrt(this._magnitudeSq), this._recalculateMagnitude = !1)
}, v
}()
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.Interface = "interface", v.CrystalCaverns = "crystal-caverns", v.RuneRun = "rune-run", v.Archives = "archives", v.OpenWorld = "open-world", v.EndOfBattle = "end-of-battle", v.TowerRun = "tower-run"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return g
}));
var p = j(6),
m = j(10),
g = function () {
function v() {}
return v.degreesToRadians = function (O) {
return O * v.DEGREES_TO_RAD
}, v.radiansToDegrees = function (O) {
return O * v.RAD_TO_DEGREES
}, v.isNearlyEqual = function (v, O, j) {
return void 0 === j && (j = 1e-5), Math.abs(v - O) < j
}, v.clamp = function (v, O, j) {
return Math.max(Math.min(v, j), O)
}, v.degToRad = function (O) {
return O * v.DEG_TO_RAD
}, v.radToDeg = function (O) {
return O * v.RAD_TO_DEG
}, v.getNextPowerOfTwo = function (v) {
if (v > 0 && 0 == (v & v - 1)) return v;
for (var O = 1; O < v;) O <<= 1;
return O
}, v.isPowerOfTwo = function (v, O) {
return v > 0 && 0 == (v & v - 1) && O > 0 && 0 == (O & O - 1)
}, v.random = function (v, O) {
return void 0 === v && (v = 0), void 0 === O && (O = 1), v === O ? v : Math.random() * (O - v) + v
}, v.between = function (v, O) {
void 0 === v && (v = 0), void 0 === O && (O = 1);
var j = v,
p = O;
return j === p ? j : (j = Math.round(j), p = Math.round(p), Math.floor(Math.random() * (p - j + 1)) + j)
}, v.fuzzyEqual = function (O, j, p) {
return void 0 === p && (p = v.EPSILON), Math.abs(O - j) < p
}, v.fuzzyLessThan = function (O, j, p) {
return void 0 === p && (p = v.EPSILON), O < j + p
}, v.fuzzyGreaterThan = function (O, j, p) {
return void 0 === p && (p = v.EPSILON), O > j - p
}, v.average = function () {
for (var v = [], O = 0; O < arguments.length; O++) v[O] = arguments[O];
for (var j = 0, p = 0; p < v.length; p++) j += +v[p];
return j / v.length
}, v.shear = function (v) {
return v % 1
}, v.snapTo = function (v, O, j) {
if (void 0 === j && (j = 0), 0 === O) return v;
var p = v - j;
return j + (p = O * Math.round(p / O))
}, v.snapToFloor = function (v, O, j) {
if (void 0 === j && (j = 0), 0 === O) return v;
var p = v - j;
return j + (p = O * Math.floor(p / O))
}, v.snapToCeil = function (v, O, j) {
if (void 0 === j && (j = 0), 0 === O) return v;
var p = v - j;
return j + (p = O * Math.ceil(p / O))
}, v.roundTo = function (v, O, j) {
void 0 === O && (O = 0), void 0 === j && (j = 10);
var p = Math.pow(j, -O);
return Math.round(v * p) / p
}, v.floorTo = function (v, O, j) {
void 0 === O && (O = 0), void 0 === j && (j = 10);
var p = Math.pow(j, -O);
return Math.floor(v * p) / p
}, v.ceilTo = function (v, O, j) {
void 0 === O && (O = 0), void 0 === j && (j = 10);
var p = Math.pow(j, -O);
return Math.ceil(v * p) / p
}, v.trunc = function (v) {
return ~~v
}, v.rotateToAngle = function (O, j, p) {
void 0 === p && (p = .05);
var m = O,
g = j;
return O === j ? O : (Math.abs(g - m) <= p || Math.abs(g - m) >= v.PI2 - p ? m = g : (Math.abs(g - m) > Math.PI && (g < m ? g += v.PI2 : g -= v.PI2), g > m ? m += p : g < m && (m -= p)), m)
}, v.getShortestAngle = function (v, O) {
var j = O - v;
return 0 === j ? 0 : j - 360 * Math.floor((j + 180) / 360)
}, v.angleBetweenPoints = function (v, O) {
return Math.atan2(O.y - v.y, O.x - v.x)
}, v.maxAdd = function (v, O, j) {
return Math.min(v + O, j)
}, v.wrap = function (v, O, j) {
var p = j - O;
if (p <= 0) return 0;
var m = (v - O) % p;
return m < 0 && (m += p), m + O
}, v.wrapValue = function (v, O, j) {
return (Math.abs(v) + Math.abs(O)) % Math.abs(j)
}, v.isOdd = function (v) {
return 1 == (1 & v)
}, v.isEven = function (v) {
return 1 != (1 & v)
}, v.min = function () {
for (var v = [], O = 0; O < arguments.length; O++) v[O] = arguments[O];
for (var j = p.flatten(v), m = 1, g = 0, y = j.length; m < y; m++) j[m] < j[g] && (g = m);
return j[g]
}, v.max = function () {
for (var v = [], O = 0; O < arguments.length; O++) v[O] = arguments[O];
for (var j = p.flatten(v), m = 1, g = 0, y = j.length; m < y; m++) j[m] > j[g] && (g = m);
return j[g]
}, v.minProperty = function (v) {
for (var O = [], j = 1; j < arguments.length; j++) O[j - 1] = arguments[j];
for (var m = p.flatten(O), g = 1, y = 0, _ = m.length; g < _; g++) m[g][v] < m[y][v] && (y = g);
return m[y][v]
}, v.maxProperty = function (v) {
for (var O = [], j = 1; j < arguments.length; j++) O[j - 1] = arguments[j];
for (var m = p.flatten(O), g = 1, y = 0, _ = m.length; g < _; g++) m[g][v] > m[y][v] && (y = g);
return m[y][v]
}, v.wrapAngle = function (v, O) {
return O ? this.wrap(v, -Math.PI, Math.PI) : this.wrap(v, -180, 180)
}, v.linearInterpolation = function (v, O) {
var j = v.length - 1,
p = j * O,
m = Math.floor(p);
return O < 0 ? this.linear(v[0], v[1], p) : O > 1 ? this.linear(v[j], v[j - 1], j - p) : this.linear(v[m], v[m + 1 > j ? j : m + 1], p - m)
}, v.bezierInterpolation = function (v, O) {
for (var j = 0, p = v.length - 1, m = 0; m <= p; m++) j += Math.pow(1 - O, p - m) * Math.pow(O, m) * v[m] * this.bernstein(p, m);
return j
}, v.catmullRomInterpolation = function (v, O) {
var j = v.length - 1,
p = j * O,
m = Math.floor(p);
return v[0] === v[j] ? (O < 0 && (m = Math.floor(p = j * (O + 1))), this.catmullRom(v[(m - 1 + j) % j], v[m], v[(m + 1) % j], v[(m + 2) % j], p - m)) : O < 0 ? v[0] - (this.catmullRom(v[0], v[0], v[1], v[1], -p) - v[0]) : O > 1 ? v[j] - (this.catmullRom(v[j], v[j], v[j - 1], v[j - 1], p - j) - v[j]) : this.catmullRom(v[m > 0 ? m - 1 : 0], v[m], v[j < m + 1 ? j : m + 1], v[j < m + 2 ? j : m + 2], p - m)
}, v.linear = function (v, O, j) {
return (O - v) * j + v
}, v.bernstein = function (v, O) {
return this.factorial(v) / this.factorial(O) / this.factorial(v - O)
}, v.factorial = function (v) {
if (0 === v) return 1;
for (var O = v, j = v; --j > 0;) O *= j;
return this.clamp(O, Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER)
}, v.catmullRom = function (v, O, j, p, m) {
var g = .5 * (j - v),
y = .5 * (p - O),
_ = m * m;
return (2 * O - 2 * j + g + y) * (m * _) + (-3 * O + 3 * j - 2 * g - y) * _ + g * m + O
}, v.difference = function (v, O) {
return Math.abs(v - O)
}, v.roundAwayFromZero = function (v) {
return v > 0 ? Math.ceil(v) : Math.floor(v)
}, v.sinCosGenerator = function (v, O, j, p) {
void 0 === O && (O = 1), void 0 === j && (j = 1), void 0 === p && (p = 1);
for (var m = O, g = j, y = p * Math.PI / v, _ = [], w = [], E = 0; E < v; E++) m += (g -= m * y) * y, _[E] = g, w[E] = m;
return {
sin: w,
cos: _,
length: v
}
}, v.hypot = function (v, O) {
return Math.sqrt(v * v + O * O)
}, v.distance = function (v, O, j, p) {
var m = v - j,
g = O - p;
return Math.sqrt(m * m + g * g)
}, v.distanceSq = function (v, O, j, p) {
var m = v - j,
g = O - p;
return m * m + g * g
}, v.distancePow = function (v, O, j, p, m) {
return void 0 === m && (m = 2), Math.sqrt(Math.pow(j - v, m) + Math.pow(p - O, m))
}, v.clampBottom = function (v, O) {
return v < O ? O : v
}, v.within = function (v, O, j) {
return Math.abs(v - O) <= j
}, v.mapLinear = function (v, O, j, p, m) {
return p + (v - O) * (m - p) / (j - O)
}, v.smoothstep = function (v, O, j) {
var p = Math.max(0, Math.min(1, (v - O) / (j - O)));
return p * p * (3 - 2 * p)
}, v.smootherstep = function (v, O, j) {
var p = Math.max(0, Math.min(1, (v - O) / (j - O)));
return p * p * p * (p * (6 * p - 15) + 10)
}, v.sign = function (v) {
return v < 0 ? -1 : v > 0 ? 1 : 0
}, v.percent = function (v, O, j) {
return void 0 === j && (j = 0), v > O || j > O ? 1 : v < j || j > v ? 0 : (v - j) / O
}, v.circumferencePoint = function (O, j, p, g, y) {
void 0 === g && (g = -1), void 0 === y && (y = !0);
var _ = g > 0 ? .5 * g : 1,
w = p;
y || (w = v.degToRad(p));
var E = new m.Point;
return E.x = O + _ * Math.cos(w), E.y = j + _ * Math.sin(w), E
}, v.clampedLerp = function (v, O, j) {
var p = j < 0 ? 0 : j;
return v + (O - v) * (p = p > 1 ? 1 : p)
}, v.validateInt = function (v, O) {
if (void 0 === O && (O = 0), "number" != typeof v) {
var j = parseInt(v, 10);
return Number.isNaN(j) ? O : j
}
return Number.isNaN(v) ? O : v
}, v.normalizeRange = function (v, O, j) {
return O > v ? (j - v) / (O - v) : O < v ? this.normalizeRange(O, v, j) : 1
}, v.DEGREES_TO_RAD = Math.PI / 180, v.RAD_TO_DEGREES = 180 / Math.PI, v.EPSILON = 1e-4, v.PI2 = 2 * Math.PI, v.TAU = 2 * Math.PI, v.PHI = 1.61803398875, v.DEG_TO_RAD = Math.PI / 180, v.RAD_TO_DEG = 180 / Math.PI, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return E
}));
var p = j(1),
m = j(0),
g = j(10),
y = j(2),
_ = j(296),
w = j(274),
E = function (v) {
function O(j, p, y, _, w, E, T) {
void 0 === p && (p = 0), void 0 === y && (y = 0), void 0 === _ && (_ = 256), void 0 === w && (w = 256), void 0 === E && (E = null);
var I = v.call(this, O.getTexture(E), _, w) || this;
return I.fixedToCamera = !1, I.scaleMin = null, I.scaleMax = null, I.transformCallbackContext = null, I.pendingDestroy = !1, I.exists = !0, I.game = j, I.tileScale = new g.ObservablePoint(null, null, 1, 1), I.tilePosition = new g.ObservablePoint(null, null), I.frameWidth = 0, I.frameHeight = 0, I.texture.frame.width = I.frameWidth, I.texture.frame.height = I.frameHeight, I.width = _, I.height = w, I.key = E, I.position.set(p, y), I.previousPosition = new g.Point(p, y), I.events = new m.Events(I), I.bounds = new g.Rectangle, I.loadTexture(I.key, T), I.cameraOffset = new g.Point(p, y), I
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "inputEnabled", {
get: function () {
return _.a.isInputEnabled(this)
},
set: function (v) {
_.a.setInputEnabled(this, v, this)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "smoothed", {
get: function () {
return m.Smoothed.getSmoothed(this.texture)
},
set: function (v) {
m.Smoothed.setSmoothed(this.texture, v)
},
enumerable: !1,
configurable: !0
}), O.prototype.getOffsetX = function () {
return m.BoundsUtils.getOffsetX(this.getBounds())
}, O.prototype.getOffsetY = function () {
return m.BoundsUtils.getOffsetY(this.getBounds())
}, Object.defineProperty(O.prototype, "left", {
get: function () {
return m.BoundsUtils.getLeft(this)
},
set: function (v) {
m.BoundsUtils.setLeft(this, v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "right", {
get: function () {
return m.BoundsUtils.getRight(this)
},
set: function (v) {
m.BoundsUtils.setRight(this, v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "offsetX", {
get: function () {
return m.BoundsUtils.getOffsetX(this)
},
set: function (v) {
m.Logger.log("Cannot set offset of x.", m.LogLevel.Warning)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "offsetY", {
get: function () {
return m.BoundsUtils.getOffsetY(this)
},
set: function (v) {
m.Logger.log("Cannot set offset of y.", m.LogLevel.Warning)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "top", {
get: function () {
return m.BoundsUtils.getTop(this)
},
set: function (v) {
m.BoundsUtils.setTop(this, v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "bottom", {
get: function () {
return m.BoundsUtils.getBottom(this)
},
set: function (v) {
m.BoundsUtils.setBottom(this, v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "centerX", {
get: function () {
return m.BoundsUtils.getCenterX(this)
},
set: function (v) {
m.BoundsUtils.setCenterX(this, v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "centerY", {
get: function () {
return m.BoundsUtils.getCenterY(this)
},
set: function (v) {
m.BoundsUtils.setCenterY(this, v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "frame", {
get: function () {
return this._frame
},
set: function (v) {
this._frame = v, this.setTexture(this.game.cache.getTexture(this.key, v))
},
enumerable: !1,
configurable: !0
}), O.prototype.setTexture = function (v, O) {
void 0 === O && (O = !1), O && this.texture.baseTexture.destroy(), this.texture = v
}, O.prototype.setFrame = function (v) {
var O = this.texture;
this.texture.frame = v, O.frame.x = v.x, O.frame.y = v.y, O.frame.width = v.width, O.frame.height = v.height, v instanceof m.Frame && v.trimmed ? (O.trim ? (O.trim.x = v.spriteSourceSizeX, O.trim.y = v.spriteSourceSizeY, O.trim.width = v.sourceSizeW, O.trim.height = v.sourceSizeH) : O.trim = new g.Rectangle(v.spriteSourceSizeX, v.spriteSourceSizeY, v.sourceSizeW, v.sourceSizeH), O.frame.width = v.sourceSizeW, O.frame.height = v.sourceSizeH) : v instanceof m.Frame && !v.trimmed && O.trim && (O.trim = null), v instanceof m.Frame && v.rotated && (O.rotated = !0), O.updateUvs()
}, O.prototype.updateTransform = function () {
v.prototype.updateTransform.call(this), this.transformCallback && this.transformCallback.call(this.transformCallbackContext, this.worldTransform, this.parent.worldTransform)
}, Object.defineProperty(O.prototype, "world", {
get: function () {
return new g.Point(this.worldTransform.tx, this.worldTransform.ty)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "z", {
get: function () {
return this.zIndex
},
set: function (v) {
this.zIndex = v
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "bounds", {
get: function () {
var v;
return v = this._bounds.getRectangle(v)
},
set: function (v) {
this._bounds.minX = v.x, this._bounds.maxX = v.x + v.width, this._bounds.minY = v.y, this._bounds.maxY = v.y + v.height
},
enumerable: !1,
configurable: !0
}), O.prototype.destroy = function (O) {
this.pendingDestroy = !1, this.events && this.events.onDestroy.dispatch(this), this.input && this.input.destroy(), this.events && this.events.destroy(), y.a.instance.game.tweens.removeFrom(this, !1), this.filters = null, this.mask = null, this.exists = !1, this.visible = !1, this.renderable = !1, this.texture && "function" == typeof this.texture.off || (m.Logger.log("TileSprite had no texture assigned, which causes a stack trace in PIXI JS.", m.LogLevel.Warning), this.texture = g.Texture.EMPTY), v.prototype.destroy.call(this, O)
}, O.prototype.bringChildToTop = function (v) {
w.a.bringChildToTop(this, v)
}, O.prototype.sendChildToBack = function (v) {
w.a.sendChildToBack(this, v)
}, Object.defineProperty(O.prototype, "worldPosition", {
get: function () {
return this.getGlobalPosition()
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "worldScale", {
get: function () {
return this.transform.scale
},
set: function (v) {
this.transform.scale = v
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "worldRotation", {
get: function () {
return this.transform.rotation
},
set: function (v) {
this.transform.rotation = v
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "stage", {
get: function () {
return y.a.instance.game.stage
},
enumerable: !1,
configurable: !0
}), O.getTexture = function (v, O) {
return v ? y.a.instance.game.cache.getTexture(v, O) : new g.Texture(new g.BaseTexture)
}, O.prototype.loadTexture = function (v, O) {
var j = m.Utils.isDefined(O) ? O : 0;
this.setTexture(y.a.instance.game.cache.getTexture(v, j)), this.key = v, this.updateTexture(j)
}, O.prototype.updateFrame = function (v) {
this.setTexture(y.a.instance.game.cache.getTexture(this.key, v))
}, O.prototype.updateTexture = function (v) {
m.Utils.isDefined(v);
this.texture.baseTexture.scaleMode === g.SCALE_MODES.LINEAR || (this.texture.baseTexture.scaleMode = 1)
}, O
}(g.TilingSprite)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(1),
m = j(0),
g = j(6),
y = j(3),
_ = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O._onStateChanged = new m.Signal, O._currentState = null, O._animationStates = {}, O
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "onStateChanged", {
get: function () {
return this._onStateChanged
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "currentState", {
get: function () {
return this._currentState
},
enumerable: !1,
configurable: !0
}), O.prototype.destroy = function () {
this._currentState = null;
var O = [];
for (var j in this._animationStates) {
var p = this._animationStates[j];
O.indexOf(p) < 0 && (O.push(p), p.destroy())
}
O.length = 0, this._animationStates = null, this._onStateChanged.dispose(), this._onStateChanged = null, v.prototype.destroy.call(this)
}, O.prototype.update = function () {
var O;
v.prototype.update.call(this), null === (O = this._currentState) || void 0 === O || O.update()
}, O.prototype.changeState = function (v) {
var O = this._animationStates[v];
this.setCurrentAnimation(O)
}, O.prototype.setCurrentAnimation = function (v) {
var O;
this._currentState !== v && (null === (O = this._currentState) || void 0 === O || O.exit(), null == v || v.enter(), this._currentState = v, this._onStateChanged.dispatch())
}, O.prototype.setAnimationState = function (v, O) {
var j = this._animationStates[v];
1 === g.sumBy(Object.values(this._animationStates), (function (v) {
return v === j ? 1 : 0
})) && j.destroy(), this._animationStates[v] = O
}, Object(p.__decorate)([Object(m.serializeSignal)(), Object(p.__metadata)("design:type", m.Signal)], O.prototype, "_onStateChanged", void 0), O = Object(p.__decorate)([Object(m.componentable)("AnimationController", y.a.animation)], O)
}(m.Component)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return m
}));
var p = j(0),
m = function () {
function v() {}
return v.toKebabCase = function (v) {
return v ? String(v).match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map((function (v) {
return v.toLowerCase()
})).join("-") : ""
}, v.stringsToPath = function (v) {
var O = this;
return v.filter((function (v) {
return v
})).map((function (v) {
return O.toKebabCase(v)
})).join(".")
}, v.capitalizeFirstLetter = function (v) {
return v.charAt(0).toUpperCase() + v.slice(1).toLowerCase()
}, v.intToNth = function (v) {
if (!(v < 1 || v > 99)) return v < 5 ? this.onesExceptions[v - 1] : v < 10 ? this.prefix[v - 2] + "h" : v < 13 ? this.tensExceptions[v - 10] : 14 === v ? "fourteenth" : v < 19 ? this.prefix[v - 12] + "eenth" : 19 === v ? "nineteenth" : v % 10 == 0 ? this.prefix[Math.floor(v / 10) - 2] + "ieth" : this.prefix[Math.floor(v / 10) - 2] + "y-" + this.intToNth(v % 10);
p.Logger.log("Unsupported integer range", p.LogLevel.Error)
}, v.isString = function (v) {
return "string" == typeof v || v instanceof String
}, v.generateUID = function (v) {
void 0 === v && (v = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx");
var O = (new Date).getTime();
return "undefined" != typeof performance && "function" == typeof performance.now && (O += performance.now()), v.replace(/[xy]/g, (function (v) {
var j = (O + 16 * Math.random()) % 16 | 0;
return O = Math.floor(O / 16), ("x" === v ? j : 3 & j | 8).toString(16)
}))
}, v.format = function (v) {
for (var O = [], j = 1; j < arguments.length; j++) O[j - 1] = arguments[j];
if (!p.Utils.isDefined(v) || 0 === v.length) throw new Error("Unsupported string value");
if ("" === v.trim()) return v;
for (var m = v, g = 0; g < O.length; ++g) m = m.split("{" + g + "}").join(O[g].toString());
return m
}, v.addOrdinalSuffix = function (v) {
if (v <= 0) throw new Error("Unsupported integer");
var O = v % 10,
j = v % 100;
return 1 === O && 11 !== j ? v + "st" : 2 === O && 12 !== j ? v + "nd" : 3 === O && 13 !== j ? v + "rd" : v + "th"
}, v.onesExceptions = ["first", "second", "third", "fourth"], v.tensExceptions = ["tenth", "eleventh", "twelfth"], v.prefix = ["twent", "thirt", "fort", "fift", "sixt", "sevent", "eight", "nint"], v
}()
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.Achievement = "Achievement", v.Shop = "game_shop", v.Container = "container", v.Interactable = "Interactable", v.WorldChest = "world-chest", v.WorldMemberChest = "world-member-chest", v.QuestChest = "quest-chest", v.QuestReward = "quest-reward", v.Festival = "game_festival", v.MiniGame = "mini-game", v.PrizeWheel = "prize-wheel", v.Npc = "npc"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(1),
m = j(0),
g = j(8),
y = j(295),
_ = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O.onStatChanged = new m.Signal, O
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "player", {
get: function () {
return this._player
},
enumerable: !1,
configurable: !0
}), O.prototype.initialize = function (v) {
this._player = v
}, O.prototype.logout = function () {
this._player && (this._player.saveEnabled = !1, this._player = null)
}, O.prototype.addStars = function (v) {
var O = this._player.data.stars,
j = this.getLevel(),
p = this.getBaseHearts();
this._player.addStars(v), this.dispatchStatChange(y.a.Stars, this._player.data.stars, O);
var m = this.getLevel();
if (m > j) {
this.dispatchStatChange(y.a.Level, m, j), this.dispatchStatChange(y.a.MaxHearts, this.getBaseHearts(), p);
for (var g = this._player.getBamSpells(j), _ = this._player.getBamSpells(m), w = 0; w < g.length; ++w) g[w].locked && !_[w].locked ? this.dispatchStatChange(y.a.Spell, _[w].ID, null) : g[w].ID !== _[w].ID && this.dispatchStatChange(y.a.Spell, _[w].ID, g[w].ID)
}
}, O.prototype.setSavingEnabled = function (v) {
this._player.saveEnabled = v
}, O.prototype.hasParentLinkedEmail = function () {
return this._player.hasValidatedParentEmail()
}, O.prototype.giveItem = function (v, O, j) {
if (void 0 === j && (j = 1), "dorm" === v)
for (var p = 0; p < j; ++p) this._player.house.add(O);
else this._player.backpack.add(v, O, !1, j)
}, O.prototype.isActivePlayer = function () {
return !0
}, O.prototype.dispatchStatChange = function (v, O, j) {
j !== O && this.onStatChanged.dispatch(v, O, j)
}, O = Object(p.__decorate)([Object(g.injectable)()], O)
}(j(787).a)
}, function (v, O, j) {
"use strict";
j.d(O, "b", (function () {
return p
})), j.d(O, "a", (function () {
return P
}));
var p, m = j(1),
g = j(0),
y = j(10),
_ = j(304),
w = j(2),
E = j(157),
T = j(5),
I = j(152),
A = j(7),
S = j(37),
C = j(78),
D = (j(11), function () {
function v(v) {
this.target = {
x: -1,
y: -1
}, this.lastTargetBroadcasted = {
x: -1,
y: -1
}, this.lastUpdateCount = 0, this.isMainPlayer = !1, this.screen = null, this.onStopPlayerBound = null, this.creatureContainer = null, this.game = v
}
return v.prototype.setup = function (v, O, j) {
this.screen = v, this.creatureContainer = O, this.isMainPlayer = j, this.isMainPlayer && (this.game.broadcaster.addAppListener(A.u.MovePlayer, this.onMovePlayer.bind(this), this), this.game.broadcaster.addAppListener(A.u.StopPlayer, this.onStopPlayer.bind(this), this), this.game.broadcaster.addAppListener(A.u.GetTarget, this.onGetTarget.bind(this), this), this.onStopPlayerBound = this.onStopPlayer.bind(this), document.addEventListener("visibilitychange", this.onStopPlayerBound, !1))
}, v.prototype.destroy = function () {
this.isMainPlayer && (this.game.broadcaster.removeAppListener(A.u.MovePlayer, this), this.game.broadcaster.removeAppListener(A.u.StopPlayer, this), this.game.broadcaster.removeAppListener(A.u.GetTarget, this), document.removeEventListener("visibilitychange", this.onStopPlayerBound, !1)), this.creatureContainer = null, this.game = null, this.screen = null, this.onStopPlayerBound = null
}, v.prototype.update = function () {
if (w.a.instance.prodigy.updateCount % v.UPDATE_INTERVAL == 0) {
if (-1 === this.target.x && -1 === this.target.y && (this.creatureContainer.x > 0 || this.creatureContainer.y > 0)) {
var O = this.screen.path.xyToTile(this.creatureContainer.x, this.creatureContainer.y);
this.target.x = O.x, this.target.y = O.y
}
this.broadcastPosition()
}
}, v.prototype.broadcastPosition = function () {
if (this.isMainPlayer && !this.creatureContainer.evtProc && (this.lastTargetBroadcasted.x !== this.target.x || this.lastTargetBroadcasted.y !== this.target.y) && w.a.instance.prodigy.updateCount - this.lastUpdateCount > v.EMIT_MESSAGE && (g.MathUtils.distanceSq(this.target.x, this.target.y, this.lastTargetBroadcasted.x, this.lastTargetBroadcasted.y) > v.DISTANCE_THRESHOLD || w.a.instance.prodigy.updateCount - this.lastUpdateCount > 2 * v.EMIT_MESSAGE)) {
this.lastUpdateCount = w.a.instance.prodigy.updateCount, this.lastTargetBroadcasted.x = this.target.x, this.lastTargetBroadcasted.y = this.target.y;
var O = w.a.instance.prodigy.gameContainer.get("5f9-2316"),
j = w.a.instance.prodigy.gameContainer.get("497-7811").player;
O.emitMessage({
action: "move",
data: {
userID: j.userID,
target: this.target
}
})
}
}, v.prototype.onGetTarget = function (v) {
return void 0 === v && (v = !1), v ? {
x: this.creatureContainer.x,
y: this.creatureContainer.y
} : this.target
}, v.prototype.onFindPath = function (v) {
if (this.game && g.Utils.isDefined(v)) {
var O = this.screen.path.xyToTile(v[0].x, v[0].y);
this.creatureContainer.setPath(v, this.screen.path.getCallback(O.x, O.y, this.isMainPlayer)), this.broadcastPosition()
}
}, v.prototype.setNewTarget = function (v, O) {
if (this.screen.path.isNodeOpen(v, O)) {
var j = this.screen.path.tileToXY(v, O);
this.creatureContainer.x <= 0 && this.creatureContainer.y <= 0 ? (this.creatureContainer.x = j.x, this.creatureContainer.y = j.y, g.Utils.isDefined(this.creatureContainer.follow) && (this.creatureContainer.follow.x = j.x, this.creatureContainer.follow.y = j.y - 1)) : this.target.x === v && this.target.y === O || this.screen.path.findPath(this.creatureContainer.x, this.creatureContainer.y, j.x, j.y, this.onFindPath.bind(this), this.isMainPlayer), this.target.x = v, this.target.y = O
}
}, v.prototype.onMovePlayer = function (v, O) {
var j = this.screen.path.xyToTile(v, O);
return !!this.screen.path.isNodeOpen(j.x, j.y) && (this.target.x = j.x, this.target.y = j.y, this.screen.path.findPath(this.creatureContainer.x, this.creatureContainer.y, v, O, this.onFindPath.bind(this), this.isMainPlayer), !0)
}, v.prototype.onStopPlayer = function () {
if (this.screen.isMapScreen) {
var v = this.screen.path.xyToTile(this.creatureContainer.x, this.creatureContainer.y);
this.target.x = v.x, this.target.y = v.y, this.creatureContainer.stand(), this.creatureContainer.stopMoveTween()
}
}, v.DISTANCE_THRESHOLD = 4, v.EMIT_MESSAGE = 120, v.UPDATE_INTERVAL = 200, v
}()),
M = j(798),
x = j(522),
N = function () {
function v(v, O, j) {
this.game = v, this.x = O - 10, this.y = j - 10, this.animate()
}
return v.prototype.animate = function () {
for (var v = 0; v < 10; v++) this.addStar(80 * v + 50 * Math.random(), 9 === v)
}, v.prototype.finish = function () {
this.game.broadcaster.broadcast(A.h.Done, this.game, null)
}, v.prototype.addStar = function (v, O) {
var j = w.a.instance.prodigy.create.sprite(this.x + 20 * Math.random(), this.y + 20 * Math.random(), "atlas-19", "user-star");
j.anchor.set(.5, .5), j.scale.set(0, 0), j.angle += Math.round(90 * Math.random()), this.game.broadcaster.broadcast(A.v.AddChild, this.game, [j, "overlay"]);
var p = .3 * Math.random(),
m = this.game.add.tween(j.scale, this).to({
x: 1,
y: 1
}, 200, g.Easing.Quadratic.Out).delay(v),
y = this.game.add.tween(j.scale, this).to({
x: 1.3,
y: 1.3
}, 250, g.Easing.Quadratic.InOut),
_ = this.game.add.tween(j.scale, this).to({
x: p + 1,
y: p + 1
}, 250, g.Easing.Quadratic.InOut),
E = this.game.add.tween(j.scale, this).to({
x: 0,
y: 0
}, 200, g.Easing.Quadratic.In);
E.onTweenComplete.add(this.onStarComplete.bind(this, j), j), O && E.onTweenComplete.add(this.finish.bind(this), this), m.chain(y), y.chain(_), _.chain(E), this.game.add.tween(j, this).to({
y: 10 * Math.random() + 90
}, 900, g.Easing.Quadratic.In).delay(v).start(), this.game.add.tween(j, this).to({
x: 40 * Math.random() + 279
}, 900, g.Easing.Quadratic.Out).delay(v).start(), m.start()
}, v.prototype.onStarComplete = function (v) {
v.visible = !1
}, v
}();
! function (v) {
v[v.Walk = 0] = "Walk", v[v.Stand = 1] = "Stand", v[v.Moonwalk = 2] = "Moonwalk", v[v.Attack = 3] = "Attack", v[v.Stopped = 4] = "Stopped"
}(p || (p = {}));
var P = function (v) {
function O(O, j, p, m, y, _) {
var E, T = v.call(this, O, j) || this;
if (T.walkSpeed = 1.5, T.ran = !1, T._onLoad = new g.Signal, T.nameText = null, T.chatText = null, T.complete = !1, T.captured = null, T.potionIcon = null, T.potencyIcon = null, T.statusEffects = null, T.onPathFound = new g.Signal, T.onStopped = new g.Signal, T.onStand = new g.Signal, T.locomotion = null, T.speed = 10, T.fxQueue = 0, T.pairs = null, T.evtProc = !1, T.castDelay = 0, T.walkIntoBattle = !0, T.battleShy = !1, T.$ = null, T.source = p, T.setScale = g.Utils.isDefined(m) ? m : 1, T.x = Math.floor(y), T.y = Math.floor(_), T.ran = T.source.data.hp <= 0, T.sprites = w.a.instance.prodigy.create.element(T, 0, 0), T.indicatorE = w.a.instance.prodigy.create.element(T), T.$ = w.a.instance.prodigy.gameContainer.get("08b-e643"), null === (E = T.source.modifiers) || void 0 === E ? void 0 : E.barrier) {
var A = T.source.modifiers.barrier;
T.barrierSprite = w.a.instance.prodigy.create.sprite(0, 0, "atlas-141", "1", {
x: .5,
y: .5
}, T.addBarrierSpritesheet.bind(T, "deflect", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10])), T.barrierSpriteBreak = w.a.instance.prodigy.create.sprite(0, 0, "atlas-142", "1", {
x: .5,
y: .5
}, T.addBarrierSpritesheet.bind(T, "break", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10])), T.barrierSpriteSpark = w.a.instance.prodigy.create.sprite(-165 * A.scale.x, 19 * A.scale.y, "atlas-143", "1", {
x: .5,
y: .5
}, T.addBarrierSpritesheet.bind(T, "spark", [1, 2, 3])), T.add(T.barrierSprite), T.add(T.barrierSpriteBreak), T.add(T.barrierSpriteSpark)
}
var S = 1 === m ? -130 : -230;
return p instanceof I.a && (S = -150), T.nameText = w.a.instance.prodigy.create.nameFont(T, 0, S, ""), p instanceof I.a && T.showName(), T.chatText = w.a.instance.prodigy.create.nameFont(T, 0, S, ""), T.chatText.FillColor = "#FFB600", T.showChat(!1), T.onDestroy.add(T.stopListeners, T), T.initListeners(), T
}
return Object(m.__extends)(O, v), Object.defineProperty(O.prototype, "OnLoad", {
get: function () {
return this._onLoad
},
enumerable: !1,
configurable: !0
}), O.prototype.showName = function (v) {
void 0 === v && (v = null);
var O = null;
O = g.Utils.isDefined(v) ? v : this.source.getName(), g.Utils.isDefined(O) && (this.nameText.setText(O), this.nameText.Active = !0)
}, O.prototype.hideName = function () {
this.nameText.Active = !1, this.nameText.TextObject.TextObject.visible = !1
}, O.prototype.showChat = function (v) {
this.chatText.Active = v, this.chatText.TextObject.TextObject.visible = v
}, O.prototype.float = function (v) {
g.Utils.isDefined(this.floatTween) ? v || (this.sprites.y = this.sprites.oldY, this.floatTween.stop(), delete this.floatTween) : v && (this.sprites.children.length > 0 ? (this.sprites.oldY = this.sprites.y, this.sprites.y = this.sprites.y - 10, this.floatTween = this.game.add.tween(this.sprites, this.sprites).to({
y: "-=20"
}, 1400, g.Easing.Quadratic.InOut).to({
y: "+=20"
}, 1400, g.Easing.Quadratic.InOut).loop(!0), this.floatTween.start()) : g.Logger.log("Cannot tween float because sprites has no children", g.LogLevel.Warning))
}, O.prototype.chat = function (v, O, j) {
if (this.game) {
var p = v + 12;
this.chatBubble ? this.chatBubble.setID(p) : this.chatBubble = w.a.instance.prodigy.effects.chatBubble(this, p, O, j)
}
}, O.prototype.startChat = function (v) {
var O = this;
if (g.Utils.isDefined(this.game)) {
var j = this.$.getPhrase(v);
g.Utils.isDefined(j) && (g.Utils.isDefined(this.timer) && window.clearInterval(this.timer), this.hideName(), this.showChat(!0), this.game.add.tween(this.chatText.GameObject.legacyTransform.group, this).to({
y: this.nameText.GameObject.legacyTransform.y - 10
}, 500, g.Easing.Quadratic.Out).to({
y: this.nameText.GameObject.legacyTransform.y
}, 500, g.Easing.Quadratic.In).start(), this.chatText.setText('"' + j + '"'), this.timer = window.setInterval((function () {
O.endChat()
}), 5e3))
}
}, O.prototype.endChat = function () {
g.Utils.isDefined(this.timer) && window.clearInterval(this.timer), this.timer = null, this.chatText.Active = !1, this.showName()
}, O.prototype.hop = function (v, O, j, p) {
void 0 === v && (v = 100), void 0 === O && (O = null), void 0 === j && (j = 0), void 0 === p && (p = 20);
var m = this.game.add.tween(this, this).to({
y: this.y - p
}, v, g.Easing.Quadratic.Out).to({
y: this.y
}, v, g.Easing.Quadratic.In).start();
this.game.add.tween(this, this).to({
x: this.x + Math.floor(j / 2)
}, v, g.Easing.Linear.None).to({
x: this.x + j
}, v, g.Easing.Linear.None).start(), g.Utils.isDefined(O) && m.onTweenComplete.addOnce(O)
}, O.prototype.setPath = function (v, O, j) {
if (g.Utils.isDefined(v) && g.Utils.isDefined(this.game)) {
this.stopMoveTween();
for (var p = g.Utils.isDefined(j) ? j : this.walkSpeed, m = null, y = null, _ = this.x, w = this.y, E = v.length - 1; E >= 0; E--) {
var T = v[E];
g.Utils.isDefined(T.x) || (T.x = _), g.Utils.isDefined(T.y) || (T.y = w);
var I = g.MathUtils.distance(T.x, T.y, _, w);
if (0 !== I) {
g.Utils.isDefined(m) || (m = this.game.add.tween(this, this), y = this.game.add.tween(this.sprites.scale, this));
var A = Math.abs(this.sprites.scale.x);
m.to({
x: T.x,
y: T.y
}, 6 * I / p, g.Easing.Linear.None), y.to({
x: T.x > _ ? A : -A
}, 1, g.Easing.Linear.None), y.to({}, 6 * I / p - 100, g.Easing.Linear.None), _ = T.x, w = T.y
}
}
if (g.Utils.isDefined(m)) {
var S = 1,
C = function () {
0 == --S && g.Utils.isDefined(O) && O(v)
};
m.onTweenComplete.addOnce(this.stand, this), m.onTweenComplete.addOnce(C), g.Utils.isDefined(this.onPathFound) && this.onPathFound.dispatch(v), this.walk(), m.start(), this.moveTween = m, g.Utils.isDefined(y) && (++S, y.onTweenComplete.addOnce(C), y.start())
} else g.Utils.isDefined(O) && O(v), this.stand()
}
}, O.prototype.setValidPath = function (v, O, j, p, m) {
var g = this;
void 0 === m && (m = !0), v.findPath(this.x, this.y, O, j, (function (v) {
g.setPath(v, p)
}), m)
}, O.prototype.walk = function () {
this.mode !== p.Walk && (this.mode = p.Walk, this.playAll("walk"))
}, O.prototype.flip = function () {
this.sprites.scale.x = -this.sprites.scale.x
}, O.prototype.faceToward = function (v) {
var O = Math.abs(this.sprites.scale.x);
this.sprites.scale.x = v > this.x ? O : -O
}, O.prototype.stand = function () {
this.mode !== p.Stand && (this.mode = p.Stand, this.playAll("stand"), this.x = Math.round(this.x), this.y = Math.round(this.y), this.onStand.dispatch())
}, O.prototype.playAll = function (v) {
for (var O = this.sprites.children.length, j = 0; j < O; ++j) this.play(this.sprites.children[j], v)
}, O.prototype.play = function (v, O) {
if ((v instanceof C.a || v instanceof E.a) && v.animations.play(O, this.speed), v instanceof y.Container)
for (var j = v.children, p = 0; p < j.length; ++p) this.play(j[p], O)
}, O.prototype.stopTweens = function () {
g.Utils.isDefined(this.game) && (this.game.tweens.removeFrom(this, !1), this.game.tweens.removeFrom(this.sprites), g.Utils.isDefined(this.onStopped) && this.onStopped.dispatch())
}, O.prototype.stopMoveTween = function () {
g.Utils.isDefined(this.game) && (g.Utils.isDefined(this.moveTween) && (this.game.tweens.remove(this.moveTween), this.moveTween = null), g.Utils.isDefined(this.onStopped) && this.onStopped.dispatch())
}, O.prototype.stopAllAnimations = function () {
if (this.mode !== p.Stopped) {
this.mode = p.Stopped;
for (var v = this.sprites.children.length, O = 0; O < v; ++O) this.stopAnimation(this.sprites.children[O])
}
}, O.prototype.stopAnimation = function (v) {
(v instanceof C.a || v instanceof E.a) && v.animations.stop(null, !0)
}, O.prototype.startLoad = function () {
this.outOfDate = !1
}, O.prototype.loadPrefabs = function () {
return Object(m.__awaiter)(this, void 0, void 0, (function () {
return Object(m.__generator)(this, (function (v) {
return [2, []]
}))
}))
}, O.prototype.initListeners = function () {
this.game.broadcaster.addAppListener(A.f.LevelUp, this.onCreatureLevelUp.bind(this), this, this.source), this.game.broadcaster.addAppListener(A.f.StarsAdded, this.onStarsAdded.bind(this), this, this.source), this.game.broadcaster.addAppListener(A.h.Done, this.onFxAnimationDone.bind(this), this, this.game)
}, O.prototype.stopListeners = function () {
this.game.broadcaster.removeAppListener(A.f.LevelUp, this, this.source), this.game.broadcaster.removeAppListener(A.f.StarsAdded, this, this.source), this.game.broadcaster.removeAppListener(A.h.Done, this, this.game), this.game.broadcaster.removeAppListener(A.b.PopupClosed, this, this)
}, O.prototype.enableLocomotion = function (v, O) {
if (!g.Utils.isDefined(this.locomotion)) {
var j = w.a.instance.prodigy.gameContainer.get("497-7811").player;
this.locomotion = new D(this.game), this.locomotion.setup(v, O, this.source === j)
}
}, O.prototype.setNewTarget = function (v, O) {
g.Utils.isDefined(this.locomotion) && this.locomotion.setNewTarget(v, O)
}, O.prototype.setHitbox = function (v) {
var O, j;
this._hitbox = v ? {
xOffset: null !== (O = v.xOffset) && void 0 !== O ? O : 0,
yOffset: null !== (j = v.yOffset) && void 0 !== j ? j : 0,
width: v.width,
height: v.height
} : null
}, O.prototype.reload = function (v) {
this.outOfDate = !0, this.loadedCallback = v
}, O.prototype.update = function () {
v.prototype.update.call(this), !this.loading && this.outOfDate && this.startLoad()
}, O.prototype.emote = function (v, O, j) {
var p;
void 0 === O && (O = 100), void 0 === j && (j = !1);
var m = T.a.getItem("emote", v);
if (g.Utils.isDefined(this.chatBubble) && this.chatBubble.destroy(), g.Utils.isDefined(this.game) && g.Utils.isDefined(m))
if (m.data.isAnimated) {
if (g.Utils.isDefined(this.animatedEmote) && g.Utils.isDefined(this.animatedEmote.emoteAnimation) && this.animatedEmote.emoteAnimation.isPlaying) return this.animatedEmote.emoteAnimation.stop(!0, !0), void this.animatedEmote.setEmoteData(m);
this.animatedEmote = new M.a(this.game, this, m)
} else g.Utils.isDefined(this.animatedEmote) && (null === (p = this.animatedEmote.emoteAnimation) || void 0 === p ? void 0 : p.isPlaying) && this.animatedEmote.emoteAnimation.stop(!0, !0), this.chatBubble = w.a.instance.prodigy.effects.chatBubble(this, v, O, j);
var y = w.a.instance.prodigy.gameContainer.get("497-7811").player;
if (this.source === y) {
var E = g.Utils.isDefined(m.data) && g.Utils.isDefined(m.data.name) ? m.data.name : v.toString();
w.a.instance.prodigy.gameContainer.get("6b3-bc0f").create("emote-used", "progression", "emote", E).broadcast(), w.a.instance.prodigy.gameContainer.get("974-9dfd").playerIdentityAvatar.sendEmoteUsedEvent({
emote_name: E,
emote_type: _.a.Emote
})
}
}, O.prototype.moonwalk = function () {
this.mode !== p.Moonwalk && (this.mode = p.Moonwalk, this.playAll("walk"))
}, O.prototype.attack = function (v) {
this.mode !== p.Attack && (this.mode = p.Attack)
}, O.prototype.damaged = function () {}, O.prototype.switchOpponent = function (v) {}, O.prototype.defeated = function () {}, O.prototype.lockOpponentSpell = function () {}, O.prototype.isDefeated = function () {
return this.source.isKnockedOut() || this.captured
}, O.prototype.isFacingLeft = function () {
return this.sprites.scale.x < 0
}, O.prototype.addOnClick = function (v) {
for (var O = this, j = 0; j < this.sprites.children.length; j++) this.sprites.children[j].inputEnabled = !0, this.sprites.children[j].events.onInputDown.add((function () {
v(), O.source instanceof I.a && O.sendNpcClickedEvent()
}))
}, O.prototype.sendNpcClickedEvent = function () {
var v, O, j, p, m;
w.a.instance.prodigy.gameContainer.get("974-9dfd").gameWorld.sendNpcClickedEvent({
npc_name: "" === (null === (O = null === (v = this.source) || void 0 === v ? void 0 : v.name) || void 0 === O ? void 0 : O.getName()) ? "Merchant" : null === (p = null === (j = this.source) || void 0 === j ? void 0 : j.name) || void 0 === p ? void 0 : p.getName(),
npc_type: null === (m = this.source) || void 0 === m ? void 0 : m.getNpcType()
})
}, O.prototype.onFxAnimationDone = function () {
this.fxQueue > 0 && (this.fxQueue--, 0 === this.fxQueue && this.game.broadcaster.broadcast(A.f.AnimationDone, this.source, []))
}, O.prototype.onStarsAdded = function () {
!0 === this.game.broadcaster.broadcast(A.b.GetIsRunning, this.game) && (this.fxQueue++, this.flyingStars = new N(this.game, this.x, this.y - (this.height - 35)))
}, O.prototype.onCreatureLevelUp = function (v, O) {
"TileScreen" !== this.game.state.current && this.fxQueue++
}, O.prototype.doBarrierAnimation = function () {
this.barrierSprite.alpha = 1, this.barrierSpriteSpark.alpha = 1, this.barrierSprite.animations.play("deflect", 10), this.barrierSpriteSpark.animations.play("spark", 10)
}, O.prototype.doBarrierBreakAnimation = function () {
this.barrierSpriteBreak.alpha = 1, this.barrierSpriteSpark.alpha = 1, this.barrierSpriteBreak.animations.play("break", 10), this.barrierSpriteSpark.animations.play("spark", 10)
}, O.prototype.addBarrierSpritesheet = function (v, O, j) {
j.alpha = 0, j.name = v;
var p = this.source.modifiers.barrier;
j.x += p.offset.x, j.y += p.offset.y, j.scale.set(p.scale.x, p.scale.y), j.smoothed = !1, j.animations.add(v, O, 10, !1).onComplete.add((function () {
j.alpha = 0
}), j)
}, O.prototype.displayDamage = function (v, O, j, p) {
void 0 === p && (p = w.a.instance.prodigy.effects.characterText.bind(w.a.instance.prodigy.effects)), this.getSource().modifiers.barrier && (this.getSource().getCurrentHearts() > 0 ? this.doBarrierAnimation() : (this.doBarrierBreakAnimation(), v.damage = 9999, v.critical = !0, this.retreat())), this.healthOverlay ? this.healthOverlay.showDamage(v, O, j, p) : g.Logger.log("Health overlay missing from CreatureContainer.", g.LogLevel.Error)
}, O.prototype.displayHeal = function (v, O) {
this.healthOverlay.showHealingHealthBar(v, O)
}, O.prototype.createHealthBar = function (v) {
return this.nameText && this.hideName(), this.healthOverlay = null != v ? v : new x.a(this.game, this), this.healthOverlay
}, O.prototype.doPuppetBreakAnimation = function (v) {
this.healthOverlay.doPuppetBreakAnimation(v)
}, O.prototype.getHitboxWidth = function () {
return this._hitbox ? this._hitbox.width : Math.abs(this.sprites.width)
}, O.prototype.getHitboxHeight = function () {
return this._hitbox ? this._hitbox.height : Math.abs(this.sprites.height)
}, O.prototype.getHitboxLeft = function () {
return this._hitbox ? this._hitbox.xOffset - .5 * this._hitbox.width : g.BoundsUtils.getLeft(this.sprites)
}, O.prototype.getHitboxTop = function () {
return this._hitbox ? this._hitbox.yOffset - this._hitbox.height : g.BoundsUtils.getTop(this.sprites)
}, O.prototype.getTargetingOffset = function () {
return 0
}, O.prototype.destroy = function () {
g.Utils.isDefined(this.timer) && window.clearInterval(this.timer), this.timer = null, this.$ = null, this.stopTweens(), this.locomotion && (this.locomotion.destroy(), this.locomotion = null), this.healthOverlay && (this.healthOverlay.destroy(), this.healthOverlay = null), this.onPathFound.dispose(), this.onStopped.dispose(), this.onStand.dispose(), this._onLoad.dispose(), this.sprites && (g.FrameworkApp.instance.game.tweens.removeAllFromOwner(this.sprites), this.sprites.destroy()), v.prototype.destroy.call(this)
}, O.prototype.getSource = function () {
return this.source
}, O.prototype.retreat = function (v) {}, O.prototype.shouldPlayRetreatOnDefeat = function () {
return !1
}, O.prototype.patrol = function (v, O) {
this.setPath(v, this.patrol.bind(this, v, O))
}, O
}(S.a)
}, function (v, O, j) {
"use strict";
Object.defineProperty(O, "__esModule", {
value: !0
}), O.WebEvent = O.sendEvent = O.Mapper = O.GameEvent = O.Factory = O.EventEnum = O.Event = O.EducationEvent = O.DataFactory = O.ApiEvent = O.AnonymousEvent = O.AnalyticService = void 0;
var p = j(1317);
Object.defineProperty(O, "AnalyticService", {
enumerable: !0,
get: function () {
return p.AnalyticService
}
}), Object.defineProperty(O, "sendEvent", {
enumerable: !0,
get: function () {
return p.sendEvent
}
});
var m = j(998);
Object.defineProperty(O, "DataFactory", {
enumerable: !0,
get: function () {
return m.DataFactory
}
});
var g = j(473);
Object.defineProperty(O, "Event", {
enumerable: !0,
get: function () {
return g.Event
}
});
var y = j(115);
Object.defineProperty(O, "EventEnum", {
enumerable: !0,
get: function () {
return y.EventEnum
}
});
var _ = j(474);
Object.defineProperty(O, "Factory", {
enumerable: !0,
get: function () {
return _.Factory
}
});
var w = j(1392);
Object.defineProperty(O, "Mapper", {
enumerable: !0,
get: function () {
return w.Mapper
}
});
var E = j(1393);
O.AnonymousEvent = E;
var T = j(1394);
O.ApiEvent = T;
var I = j(1395);
O.GameEvent = I;
var A = j(1432);
O.EducationEvent = A;
var S = j(1441);
O.WebEvent = S
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.Vertical = 1] = "Vertical", v[v.Horizontal = 2] = "Horizontal"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(3),
_ = function (v) {
function O() {
return null !== v && v.apply(this, arguments) || this
}
return Object(p.__extends)(O, v), O.prototype.setAsset = function (O, j) {
var p = g.a.instance.prodigy.assets.getAsset(O);
p && p.guidMapping ? v.prototype.setAsset.call(this, p.guidMapping, j, this.loadAsset.bind(this)) : v.prototype.setAsset.call(this, O, j, this.loadAsset.bind(this))
}, O.prototype.loadAsset = function (O, j) {
var p = this;
g.a.instance.prodigy && g.a.instance.prodigy.load.assets([O], (function () {
v.prototype.setAsset.call(p, O, j)
}))
}, O = Object(p.__decorate)([Object(m.componentable)("Spine", y.a.animation)], O)
}(m.SpineComponent)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(0),
m = j(6),
g = j(706),
y = j.n(g),
_ = function () {
function v() {}
return v.integerInRange = function (O, j) {
return Math.floor(v.realInRange(O, j))
}, v.realInRange = function (v, O, j) {
return p.Utils.isDefined(j) ? new p.RandomDataGenerator([j]).realInRange(v, O) : Math.random() * (O - v) + v
}, v.seededRandom = function (v) {
return y()(v.toString())()
}, v.seededRange = function (v, O, j) {
return Math.floor(this.seededRandom(j) * (O - v + 1) + v)
}, v.normalDistribution = function (v, O) {
for (var j = 0, p = 0; p < 6; p++) j += Math.random();
return v + (j /= 6) * (O - v + 1)
}, v.weightedArrayElement = function (v, O) {
var j = 0,
g = [];
if (!p.Utils.isDefined(m.find(v, (function (v) {
return v.weight <= 0
}))) && v.length > 0) {
for (var y = Math.round(1 / (m.minBy(v, "weight").weight / 100)), _ = 0; _ < v.length; _++) p.Utils.isDefined(v[_].weight) && (j += v[_].weight * y), g.push(j);
var w = this.realInRange(0, j, O);
for (_ = 0; _ < v.length; _++)
if (w < g[_]) return v[_]
}
return null
}, v.weightedSample = function (v, O) {
var j = m.map(v, O),
p = Math.random() * m.sum(j),
g = 0;
return v[m.findIndex(j, (function (v) {
return p < (g += v)
}))]
}, v.getUniqueRandomNumbers = function (v, O, j) {
var p = O - v,
g = [];
g.length = p;
for (var y = 0; y < p; ++y) g[y] = v + y;
return m.shuffle(g).splice(0, j)
}, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return x
}));
var p = j(1),
m = j(0),
g = j(6),
y = j(21),
_ = j(2),
w = j(251),
E = j(5),
T = j(69),
I = j(56),
A = j(27),
S = j(81),
C = j(204),
D = j(41),
M = j(239),
x = function (v) {
function O(O, j, p, g, y, w, E, T) {
void 0 === T && (T = !1);
var I = this,
A = _.a.instance.prodigy.gameContainer.get("497-7811").player;
A.memberPrompt = !0;
var S = [],
C = 0;
return m.Utils.isDefined(E) ? S.push(E) : w ? (S.push("congrats"), S.push("amazingThings")) : (A.hasMembership() || 0 !== A.backpack.hasItem("mount", 1) || S.push("cloudMount"), S.push("monthlyPackage"), S.push("amazingThings")), m.Utils.isDefined(y) && (C = S.length - 1), (I = v.call(this, O, j, 11, S, null, ["atlas-128", "atlas-171", "atlas-149", "atlas-144"], C) || this).promotedAd = y, I.analyticEvents = m.Utils.isDefined(g) ? g : {
conversionFunnelName: "",
conversionFunnelMetadata: ""
}, I.hideSignup = !I.shouldShowSignupButton(T), I.analyticEvents.conversionStaticOrVideo = void 0 === I.analyticEvents.conversionStaticOrVideo || "" === I.analyticEvents.conversionStaticOrVideo ? D.a.Static : I.analyticEvents.conversionStaticOrVideo, I.setCloseCallback(p), I
}
return Object(p.__extends)(O, v), O.prototype.preprocess = function () {
this.queuePostCreateCallback(this.playRandomNootCongrats.bind(this)), v.prototype.preprocess.call(this)
}, O.prototype.close = function () {
_.a.instance.prodigy.audio.stopVoice(), v.prototype.close.call(this)
}, O.prototype.setup = function () {
this.loadAds(), m.Utils.isDefined(this.leftArrowSprite) && this.leftArrowSprite.flipHorizontally(), v.prototype.setup.call(this)
}, O.prototype.setCallbacks = function () {
var O = this;
this.buttonCallbacks.signUpButton = this.onMembershipButtonClick.bind(this, m.Utils.isDefined(this.sourceOverride) ? this.sourceOverride : "MemberButton"), this.buttonCallbacks.closeButton = function () {
_.a.instance.prodigy.gameContainer.get("974-9dfd").purchase.sendFunnelQuit("Click-Membership", "Close-Clicked"), _.a.instance.prodigy.gameContainer.get("974-9dfd").featureCommon.sendInterfaceEvent({
interfaceName: A.a.StageClickMembership,
interfaceType: y.d.InfoPanel,
originType: y.c.ButtonClick,
instanceType: "UI",
closeMethod: y.b.CloseClicked
}), O.close()
}, v.prototype.setCallbacks.call(this)
}, O.prototype.shouldShowSignupButton = function (v) {
void 0 === v && (v = !1);
var O = _.a.instance.prodigy.gameContainer.get("497-7811").player,
j = _.a.instance.prodigy.gameContainer.get("fb2-5446"),
p = j.meetsRequirements(17) || j.meetsRequirements(18) && !T.b.isNativeIOSApp();
return !O.hasMembership() || v && p
}, O.prototype.loadAds = function () {
if (this.availableIndices = this.getFilteredIconArray().map((function (v, O) {
return O
})), m.Utils.isDefined(this.promotedAd))
for (var v = 0; v < O.featureIconConfigs.length; v++)
if (g.isEqual(this.promotedAd, O.featureIconConfigs[v])) {
this.currentConfigIndex = v;
break
} this.adIcons = [], m.Utils.isDefined(this.currentConfigIndex) && (this.adIcons.push(this.availableIndices[this.currentConfigIndex]), this.availableIndices.splice(this.currentConfigIndex, 1)), this.adIcons = this.adIcons.concat(g.sampleSize(this.availableIndices, 15))
}, O.prototype.playRandomNootCongrats = function () {
if ("congrats" === this.pageSets[0]) {
var v = I.a.integerInRange(184, 190),
O = (new w.a).getLegacy("noot", v);
_.a.instance.prodigy.load.assets(O.audio.tag, (function () {
_.a.instance.prodigy.audio.playVoice(O.audio.tag, null, O.audio.s, O.audio.d)
}))
}
}, O.prototype.onMembershipButtonClick = function (v) {
var O = _.a.instance.prodigy.gameContainer,
j = O.get("497-7811").player;
if (this.shouldShowSignupButton(!0)) {
if (O.get("6b3-bc0f").create("member-ad", "conversion", "membership", v).broadcast(), O.get("6b3-bc0f").create("membership", "conversion", "membership-info", v).broadcast(), m.Utils.isDefined(this.analyticEvents)) {
O.get("5f9-2316").sendConversionFunnelEvent(this.analyticEvents.conversionFunnelName, A.a.StageClickMembership, this.analyticEvents.conversionFunnelMetadata, this.analyticEvents.conversionStaticOrVideo, M.a.parentID(this.analyticEvents.conversionFunnelName));
var p = O.get("974-9dfd");
p.featureCommon.sendInterfaceEvent({
interfaceName: A.a.StageClickMembership,
interfaceType: y.d.InfoPanel,
originType: y.c.ButtonClick,
originID: v,
instanceType: "UI"
}), p.featureCommon.sendButtonEvent({
buttonName: v,
interfaceName: this.analyticEvents.conversionFunnelName,
interfaceType: y.d.InfoPanel
})
}
O.get("974-9dfd").purchase.sendFunnelStep("Click-Membership"), O.get("65d-34e7").create(this.analyticEvents.conversionFunnelName, A.a.StageClickMembership).broadcast();
var g = j.isPlayingAtSchool();
_.a.instance.prodigy.open.isMenuOpen(M.a) || (_.a.instance.prodigy.audio.stopVoice(), _.a.instance.prodigy.open.membershipParent(this, !g, null, null, this.analyticEvents, !this.hideSignup))
}
}, O.prototype.onPageLoaded = function () {
if (v.prototype.onPageLoaded.call(this), this.hideSignup && m.Utils.isDefined(this.page.signUpButton) && (this.page.signUpButton.visible = !1), "monthlyPackage" === this.pageName) {
var O = _.a.instance.prodigy.gameContainer.get("497-7811").player;
this.page[this.pageName].children[4].visible = !O.hasMembership()
} else "playAtHome" === this.pageName || "playMemberAtHome" === this.pageName ? m.Utils.isDefined(this.promotedAd) && this.page[this.pageName].children[5].setText(this.getFlavourText()) : "amazingThings0" === this.pageName ? this.renderFeatureIcons(0, this.page[this.pageName].children[4]) : "amazingThings1" === this.pageName ? (this.renderFeatureIcons(3, this.page[this.pageName].children[4]), this.renderFeatureIcons(6, this.page[this.pageName].children[5])) : "amazingThings2" === this.pageName && (this.renderFeatureIcons(9, this.page[this.pageName].children[4]), this.renderFeatureIcons(12, this.page[this.pageName].children[5]));
if ("amazingThings0" === this.pageName) {
var j = this.page[this.pageName].children[3];
this.generateGearIcons(6, j)
}
"memberLockedPets" === this.pageName && m.Utils.isDefined(this.spineMonsterConfig) && new C.a(this.game).createUIElements([this.spineMonsterConfig], this.page.spineBG);
_.a.instance.prodigy.audio.stopVoice()
}, O.prototype.generateGearIcons = function (v, O) {
for (var j = null, p = [{
category: "boots",
count: 0
}, {
category: "hat",
count: 0
}, {
category: "outfit",
count: 0
}, {
category: "weapon",
count: 0
}], y = [], w = 0; w < p.length; w++)
for (var T = E.a.getCategoryItems(p[w].category), I = 0; I < T.length; I++)(j = T[I]).category = p[w].category, 1 === g.get(j, "data.member", 0) && (m.Utils.isDefined(j.data.memberAd) || g.get(j, "data.memberAd", 0) > 0) && (y.push(j), p[w].count++);
var A = g.sampleSize(y, v);
for (w = 0; w < v; w++) {
var C = this.onMembershipButtonClick.bind(this, A[w].ID),
D = _.a.instance.prodigy.create.item(O, 102 * w + 20, 60, {
ID: A[w].ID,
type: A[w].category
}, S.a.IconNoBackground, C),
M = _.a.instance.prodigy.create.sprite(0, 0, "atlas-18", "empty");
M.alpha = 0, M.width = D.width, M.height = D.height, M.inputEnabled = !0, M.events.onInputDown.add(this.onMembershipButtonClick.bind(this, "MemberButton")), D.add(M)
}
}, O.prototype.renderFeatureIcons = function (v, j, p, m) {
void 0 === p && (p = 3), void 0 === m && (m = 19);
for (var g = _.a.instance.prodigy.gameContainer.get("497-7811").player, y = v; y < this.adIcons.length && y < v + p; y++) {
var w = void 0,
E = this.adIcons[y];
w = O.featureIconConfigs[E], 2 === y && (w = O.MEMBER_BOX, 0 === g.backpack.hasItem("mount", 1) && Math.random() >= .5 && (w = O.CLOUD_MOUNT)), _.a.instance.prodigy.create.button(j, (m + 166) * (y - v), 0, "atlas-128", w.frameName, this.onMembershipButtonClick.bind(this, w.trackingEvent))
}
}, O.prototype.getFilteredIconArray = function () {
return O.featureIconConfigs.slice()
}, O.prototype.getFlavourText = function () {
for (var v = _.a.instance.prodigy.gameContainer.get(m.GameIdentifiers.LocalizationService), j = v.getText("PLAY_AT_HOME_PLACEHOLDER"), p = 0; p < O.flavourTextSources.length; p++) this.promotedAd === O.flavourTextSources[p] && (j = v.getText(O.flavourTextSources[p].flavourText));
return j
}, O.prototype.setUIConfig = function (v) {
this.spineMonsterConfig = v
}, O.prototype.nextPage = function () {
v.prototype.nextPage.call(this), _.a.instance.prodigy.gameContainer.get("6b3-bc0f").create("member-ad-browse", "conversion", "membership", this.pageName).broadcast(), _.a.instance.prodigy.gameContainer.get("974-9dfd").featureCommon.sendTabEvent({
tabName: this.pageName,
interfaceName: this.pageName,
interfaceType: y.d.InfoPanel
})
}, O.prototype.prevPage = function () {
v.prototype.prevPage.call(this), _.a.instance.prodigy.gameContainer.get("6b3-bc0f").create("member-ad-browse", "conversion", "membership", this.pageName).broadcast(), _.a.instance.prodigy.gameContainer.get("974-9dfd").featureCommon.sendTabEvent({
tabName: this.pageName,
interfaceName: this.pageName,
interfaceType: y.d.InfoPanel
})
}, O.DEFAULT = {
frameName: "icons/iconbox-TEST",
trackingEvent: "Feature-MemberChests"
}, O.MEMBER_HUD = {
frameName: "icons/iconbox-TEST",
trackingEvent: "Feature-MemberChests",
flavourText: "PLAY_AT_HOME_MEMBER_HUD"
}, O.NOT_MEMBER_HUD = {
frameName: "icons/iconbox-TEST",
trackingEvent: "Feature-MemberChests",
flavourText: "PLAY_AT_HOME_NOT_MEMBER_HUD"
}, O.TWILIGHT_WHEEL = {
frameName: "icons/iconbox-TEST",
trackingEvent: "Feature-MemberChests",
flavourText: "PLAY_AT_HOME_TWILIGHT_WHEEL"
}, O.MEMBER_BOUNTY = {
frameName: "icons/iconbox-TEST",
trackingEvent: "Feature-MemberChests",
flavourText: "PLAY_AT_HOME_MEMBER_BOUNTY"
}, O.MEMBER_CHESTS = {
frameName: "icons/member-chests",
trackingEvent: "Feature-MemberChests",
flavourText: "PLAY_AT_HOME_MEMBER_CHESTS"
}, O.BUDDIES = {
frameName: "icons/cute-and-cool-buddies",
trackingEvent: "Feature-Buddies",
flavourText: "PLAY_AT_HOME_BUY_ITEM"
}, O.HOUSE_ITEMS = {
frameName: "icons/special-house-furniture",
trackingEvent: "Feature-HouseItems",
flavourText: "PLAY_AT_HOME_BUY_ITEM"
}, O.NEW_HOUSE = {
frameName: "icons/new-house",
trackingEvent: "Feature-NewHouse",
flavourText: "PLAY_AT_HOME_BUY_ITEM"
}, O.MORE_GOLD = {
frameName: "icons/more-gold",
trackingEvent: "Feature-MoreGold",
flavourText: "PLAY_AT_HOME_MORE_GOLD"
}, O.MORE_EXP = {
frameName: "icons/level-faster",
trackingEvent: "Feature-LevelFaster",
flavourText: "PLAY_AT_HOME_MORE_EXP"
}, O.MORE_EXP_CLASS_LEADERS = {
frameName: "icons/level-faster",
trackingEvent: "Feature-LevelFaster",
flavourText: "PLAY_AT_HOME_MORE_EXP_CLASS_LEADERS"
}, O.WHEEL_SPIN = {
frameName: "icons/more-spins",
trackingEvent: "Feature-MoreSpins",
flavourText: "PLAY_AT_HOME_WHEEL_SPIN"
}, O.MEMBER_PETS = {
frameName: "icons/catch-more-pets",
trackingEvent: "Feature-MorePets",
flavourText: "PLAY_AT_HOME_MEMBER_PETS"
}, O.CATCH = {
frameName: "icons/second-catch",
trackingEvent: "Feature-SecondCatchChance"
}, O.BOOSTS = {
frameName: "icons/minigame-boosts",
trackingEvent: "Feature-MinigameBoosts"
}, O.STYLE = {
frameName: "icons/cool-new-styles",
trackingEvent: "Feature-NewStyles",
flavourText: "PLAY_AT_HOME_BUY_ITEM"
}, O.TOWER = {
frameName: "icons/climb-the-dark-tower",
trackingEvent: "Feature-DarkTower",
flavourText: "PLAY_AT_HOME_TOWER"
}, O.POTIONS = {
frameName: "icons/potions",
trackingEvent: "Feature-PowerfulPotions",
flavourText: "PLAY_AT_HOME_BUY_ITEM"
}, O.DANCE = {
frameName: "icons/dab-dance",
trackingEvent: "Feature-Dab",
flavourText: "PLAY_AT_HOME_DANCE"
}, O.CLOUD_MOUNT = {
frameName: "icons/cloud-mount",
trackingEvent: "Feature-CloudMount"
}, O.MEMBER_BOX = {
frameName: "icons/memberbox-popup-icon",
trackingEvent: "memberbox"
}, O.MORPH_MARBLE = {
frameName: "icons/morph-marble",
trackingEvent: "Feature-MorphMarble",
flavourText: "PLAY_AT_HOME_BUY_ITEM"
}, O.BUY_ITEM = {
frameName: "icons/iconbox-TEST",
trackingEvent: "PremiumItems",
flavourText: "PLAY_AT_HOME_BUY_ITEM"
}, O.PREMIUM_ITEM = {
frameName: "icons/iconbox-TEST",
trackingEvent: "PremiumItems",
flavourText: "PLAY_AT_HOME_PREMIUM_ITEM"
}, O.VISIT_HOUSE = {
frameName: "icons/friends-visit-house",
trackingEvent: "Feature-VisitHouse"
}, O.BIGGER_ROSTER = {
frameName: "icons/iconbox-TEST",
trackingEvent: "BiggerRoster"
}, O.NICKNAME = {
frameName: "icons/iconbox-TEST",
trackingEvent: "Nickname",
flavourText: "PLAY_AT_HOME_NICKNAME"
}, O.EVOLVE_PETS = {
frameName: "icons/evolve-pets",
trackingEvent: "Nickname",
flavourText: "PLAY_AT_HOME_EVOLVE_PETS"
}, O.flavourTextSources = [O.MEMBER_HUD, O.NOT_MEMBER_HUD, O.BUY_ITEM, O.MORPH_MARBLE, O.BUDDIES, O.STYLE, O.HOUSE_ITEMS, O.NEW_HOUSE, O.POTIONS, O.PREMIUM_ITEM, O.MEMBER_CHESTS, O.MORE_EXP, O.WHEEL_SPIN, O.TWILIGHT_WHEEL, O.EVOLVE_PETS, O.DANCE, O.MEMBER_BOUNTY, O.NICKNAME, O.MEMBER_PETS, O.TOWER, O.MORE_EXP_CLASS_LEADERS, O.MORE_GOLD], O.featureIconConfigs = [O.MEMBER_CHESTS, O.TOWER, O.BUDDIES, O.MORE_GOLD, O.MORE_EXP, O.WHEEL_SPIN, O.MEMBER_PETS, O.CATCH, O.BOOSTS, O.STYLE, O.HOUSE_ITEMS, O.NEW_HOUSE, O.POTIONS, O.DANCE, O.MORPH_MARBLE, O.EVOLVE_PETS], O
}(j(804).a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return w
}));
var p = j(1),
m = j(8),
g = j(25),
y = j(23),
_ = j(440),
w = function () {
function v() {
this.gameObject = null, this.updateFunction = this.firstUpdate, this.onActiveChanged = new y.a, this.onDestroy = new y.a, this.isActive = !0, this._isCreated = !1
}
return Object.defineProperty(v.prototype, "GameObject", {
get: function () {
return this.gameObject
},
set: function (v) {
!g.a.isDefined(this.gameObject) && g.a.isDefined(v) && (this.gameObject = v, _.a.addObject(this))
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "OnActiveChanged", {
get: function () {
return this.onActiveChanged
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "IsActiveInHierarchy", {
get: function () {
return this.Active && Boolean(this.GameObject) && this.GameObject.activeInHierarchy
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "OnDestroy", {
get: function () {
return this.onDestroy
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "Active", {
get: function () {
return this.isActive
},
set: function (v) {
this.isActive !== v && (this.isActive = v, v ? this.onEnable() : this.onDisable(), this.onActiveChanged.dispatch())
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "isCreated", {
get: function () {
return this._isCreated
},
enumerable: !0,
configurable: !0
}), v.prototype.create = function () {
this._isCreated = !0
}, v.prototype.postCreate = function () {}, v.prototype.firstUpdate = function () {
this.updateFunction = this.update, this.update()
}, v.prototype.update = function () {}, v.prototype.onEnable = function () {}, v.prototype.onDisable = function () {}, v.customSerialize = function (v, O, j) {}, v.prototype.customDeserialize = function (v) {}, v.prototype.preDeserialize = function (v) {}, v.prototype.postDeserialize = function () {}, v.prototype.destroy = function () {
_.a.removeObject(this), this.isActive && this.onDisable(), this.onActiveChanged.dispose(), this.onDestroy.dispatch(this), this.onDestroy.dispose(), this.gameObject = null
}, v.prototype.getInjectedValue = function (v) {
return j(361).InjectionUtil.getInjectedValue(this.gameObject, v)
}, v = Object(p.__decorate)([Object(m.injectable)()], v)
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return Q
}));
var p, m = j(1),
g = j(0),
y = (j(1442), j(11)),
_ = function () {
function v(v) {
this.callbacks = {}, this.listeners = {}, this.broadcastIdCount = 0, this.game = v
}
return v.prototype.clear = function () {
var v;
for (var O in this.callbacks)
for (var j in this.callbacks[O]) {
for (v = 0; this.callbacks[O][j].length > v;) this.callbacks[O][j].persistent ? v++ : this.callbacks[O][j].pop();
0 === v && (this.callbacks[O][j] = void 0, delete this.callbacks[O][j])
}
for (var O in this.listeners)
for (var p in this.listeners[O]) {
for (v = 0; this.listeners[O][p].length > v;) this.listeners[O][p].persistent ? v++ : this.listeners[O][p].pop();
0 === v && (this.listeners[O][p] = void 0, delete this.listeners[O][p])
}
}, v.prototype.addAppListener = function (v, O, j, p, m) {
void 0 === m && (m = null);
var y = g.Utils.isDefined(p) ? p : this.game;
g.Utils.isDefined(v) && g.Utils.isDefined(O) && g.Utils.isDefined(j) || g.Logger.log("addAppListener - Invalid arguments", g.LogLevel.Error), y = this.hashContext(y), void 0 === this.callbacks[y] && (this.callbacks[y] = {}), void 0 === this.listeners[y] && (this.listeners[y] = {}), void 0 === this.callbacks[y][v] && (this.callbacks[y][v] = []), void 0 === this.listeners[y][v] && (this.listeners[y][v] = []), this.callbacks[y][v].push(O), this.listeners[y][v].push(j), this.callbacks[y][v].persistent = g.Utils.isDefined(m), this.listeners[y][v].persistent = g.Utils.isDefined(m)
}, v.prototype.removeAppListener = function (v, O, j) {
var p = g.Utils.isDefined(j) ? j : this.game;
if (g.Utils.isDefined(v)) {
if (p = this.hashContext(p), void 0 !== this.callbacks[p] && void 0 !== this.callbacks[p][v] && void 0 !== this.listeners[p] && void 0 !== this.listeners[p][v]) {
for (var m = 0; m < this.callbacks[p][v].length; m++) g.Utils.isDefined(O) && this.listeners[p][v][m] !== O || (this.callbacks[p][v].splice(m, 1), this.listeners[p][v].splice(m, 1), m--);
0 === this.callbacks[p][v].length && delete this.callbacks[p][v], 0 === this.listeners[p][v].length && delete this.listeners[p][v]
}
} else g.Logger.log("removeAppListener - Invalid arguments", g.LogLevel.Error)
}, v.prototype.broadcast = function (v, O, j) {
var p = g.Utils.isDefined(O) ? O : this.game;
g.Utils.isDefined(v) || g.Logger.log("removeAppListener - Invalid arguments", g.LogLevel.Error), p = this.hashContext(p);
var m = this.callbacks[p],
y = this.listeners[p];
if (void 0 === m || void 0 === m[v] || void 0 === y || void 0 === y[v]) return null;
if (1 === m[v].length) return m[v][0].apply(y[v][0], j);
for (var _ = {
listeners: [],
output: []
}, w = y[v].slice(), E = m[v].slice(), T = 0; T < E.length; T++) _.listeners.push(w[T]), _.output.push(E[T].apply(w[T], j));
return _
}, v.prototype.hashContext = function (v) {
return "string" != typeof v ? (void 0 === v.broadcastId && (v.broadcastId = this.broadcastIdCount, this.broadcastIdCount++), "bId" + v.broadcastId) : v
}, v
}(),
w = function () {
function v(v) {
this.randomDataGenerator = v
}
return v.prototype.frac = function (v) {
this.randomDataGenerator.sow([v]);
var O = this.randomDataGenerator.frac();
return this.randomDataGenerator.sow([Date.now() * Math.random()]), O
}, v.prototype.pick = function (v, O) {
this.randomDataGenerator.sow([O]);
var j = this.randomDataGenerator.pick(v);
return this.randomDataGenerator.sow([Date.now() * Math.random()]), j
}, v.prototype.shuffleArray = function (v, O) {
for (var j, p = v.length; 0 !== p;) {
j = Math.floor(this.frac(O + p) * p), p--;
var m = v[j];
v[j] = v[p], v[p] = m
}
return v
}, v
}(),
E = j(2),
T = function () {
function v() {
this._framerate = 60, this._frames = 0, this._rollingCount = 1, this._rollingSum = 60, this._isPendingResumeRecordFPS = !1, this._record = !1, this._frames = 0, this._prevTime = this.timeNow()
}
return Object.defineProperty(v.prototype, "record", {
get: function () {
return this._record
},
set: function (v) {
v ? this._isPendingResumeRecordFPS = !0 : this._record = !1
},
enumerable: !1,
configurable: !0
}), v.prototype.timeNow = function () {
return window.performance ? window.performance.now() : Date.now()
}, v.prototype.endFrame = function () {
this._frames++;
var v = this.timeNow();
v >= this._prevTime + 1e3 && (this.record && (this._framerate = 1e3 * this._frames / (v - this._prevTime), this._rollingCount++, this._rollingSum += this._framerate), this._prevTime = v, this._frames = 0), this._isPendingResumeRecordFPS && (this._isPendingResumeRecordFPS = !1, this._record = !0)
}, v.prototype.getFramerate = function () {
return Math.round(this._framerate)
}, v.prototype.getAverageFramerate = function () {
return Math.round(this._rollingSum / this._rollingCount)
}, v
}(),
I = j(10),
A = j(69),
S = j(468),
C = j(270),
D = function () {
function v(v) {
this._enabled = !0, this.event = null, this.isDown = !1, this.isUp = !0, this.altKey = !1, this.ctrlKey = !1, this.shiftKey = !1, this.timeDown = 0, this.duration = 0, this.timeUp = -2500, this.durationUp = -2500, this.repeats = 0, this.onDown = new g.Signal, this.onHoldContext = null, this.onUp = new g.Signal, this._justDown = !1, this._justUp = !1, this.keyCode = v
}
return Object.defineProperty(v.prototype, "justDown", {
get: function () {
var v = this._justDown;
return this._justDown = !1, v
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "justUp", {
get: function () {
var v = this._justUp;
return this._justUp = !1, v
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "enabled", {
get: function () {
return this._enabled
},
set: function (v) {
var O = !!v;
O !== this._enabled && (O || this.reset(!1), this._enabled = O)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "game", {
get: function () {
return E.a.instance.game
},
enumerable: !1,
configurable: !0
}), v.prototype.update = function () {
this._enabled && (this.isDown ? (this.duration = this.game.time.timeMS - this.timeDown, this.repeats++, this.onHoldCallback && this.onHoldCallback.call(this.onHoldContext, this)) : this.durationUp = this.game.time.timeMS - this.timeUp)
}, v.prototype.processKeyDown = function (v) {
this._enabled && (this.event = v, this.isDown || (this.altKey = v.altKey, this.ctrlKey = v.ctrlKey, this.shiftKey = v.shiftKey, this.isDown = !0, this.isUp = !1, this.timeDown = this.game.time.timeMS, this.duration = 0, this.durationUp = this.game.time.timeMS - this.timeUp, this.repeats = 0, this._justDown = !0, this.onDown.dispatch(this)))
}, v.prototype.processKeyUp = function (v) {
this._enabled && (this.event = v, this.isUp || (this.isDown = !1, this.isUp = !0, this.timeUp = this.game.time.timeMS, this.duration = this.game.time.timeMS - this.timeDown, this.durationUp = 0, this._justUp = !0, this.onUp.dispatch(this)))
}, v.prototype.reset = function (v) {
void 0 === v && (v = !0), this.isDown = !1, this.isUp = !0, this.timeUp = this.game.time.timeMS, this.duration = 0, this.durationUp = -2500, this._enabled = !0, this._justDown = !1, this._justUp = !1, v && (this.onDown.removeAll(), this.onUp.removeAll(), this.onHoldCallback = null, this.onHoldContext = null)
}, v.prototype.downDuration = function (v) {
return void 0 === v && (v = 50), this.isDown && this.duration < v
}, v.prototype.upDuration = function (v) {
return void 0 === v && (v = 50), !this.isDown && this.game.time.timeMS - this.timeUp < v
}, v.prototype.justPressed = function () {
return this.isDown && 0 === this.duration
}, v.prototype.justReleased = function () {
return !this.isDown && 0 === this.durationUp
}, v.prototype.cleanUp = function () {
this.onDown.dispose(), this.onUp.dispose()
}, v
}(),
M = j(65),
x = function () {
function v() {
this.active = !1, this.enabled = !0, this.event = null, this.pressEvent = null, this.callbackContext = this, this.onDownCallback = null, this.onPressCallback = null, this.onUpCallback = null, this._keys = [], this._capture = [], this._onKeyDown = null, this._onKeyPress = null, this._onKeyUp = null, this._i = 0, this._k = 0
}
return Object.defineProperty(v.prototype, "lastChar", {
get: function () {
return this.event && 32 === this.event.charCode ? "" : this.pressEvent ? String.fromCharCode(this.pressEvent.charCode) : null
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "lastKey", {
get: function () {
return this._keys[this._k]
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "game", {
get: function () {
return g.FrameworkApp.instance.game
},
enumerable: !1,
configurable: !0
}), v.prototype.addCallbacks = function (v, O, j, p) {
this.callbackContext = v, null != O && (this.onDownCallback = O), null != j && (this.onUpCallback = j), null != p && (this.onPressCallback = p)
}, v.prototype.removeCallbacks = function () {
this.callbackContext = this, this.onDownCallback = null, this.onUpCallback = null, this.onPressCallback = null
}, v.prototype.addKey = function (v) {
return this._keys[v] || (this._keys[v] = new D(v), this.addKeyCapture(v)), this._keys[v]
}, v.prototype.addKeys = function (v) {
var O = {};
for (var j in v) O[j] = this.addKey(v[j]);
return O
}, v.prototype.removeKey = function (v) {
this._keys[v] && (this._keys[v] = null, this.removeKeyCapture(v))
}, v.prototype.createCursorKeys = function () {
return this.addKeys({
up: M.a.UP,
down: M.a.DOWN,
left: M.a.LEFT,
right: M.a.RIGHT
})
}, v.prototype.start = function () {
var v = this;
return !this.active && (this._onKeyDown = function (O) {
v.processKeyDown(O)
}, this._onKeyUp = function (O) {
v.processKeyUp(O)
}, this._onKeyPress = function (O) {
v.processKeyPress(O)
}, window.addEventListener("keydown", this._onKeyDown, !1), window.addEventListener("keyup", this._onKeyUp, !1), window.addEventListener("keypress", this._onKeyPress, !1), this.active = !0, this.enabled = !0, !0)
}, v.prototype.stop = function () {
window.removeEventListener("keydown", this._onKeyDown), window.removeEventListener("keyup", this._onKeyUp), window.removeEventListener("keypress", this._onKeyPress), this._onKeyDown = null, this._onKeyUp = null, this._onKeyPress = null, this.active = !1
}, v.prototype.destroy = function () {
this.stop(), this.clearCaptures();
for (var v = 0; v < this._keys.length; v++) this._keys[v].cleanUp();
this._keys.length = 0, this._i = 0
}, v.prototype.addKeyCapture = function (v) {
if ("object" == typeof v)
for (var O in v) this._capture[v[O]] = !0;
else this._capture[v] = !0
}, v.prototype.removeKeyCapture = function (v) {
delete this._capture[v]
}, v.prototype.clearCaptures = function () {
this._capture = {}
}, v.prototype.update = function () {
for (this._i = this._keys.length; this._i-- > 0;) this._keys[this._i] && this._keys[this._i].update()
}, v.prototype.processKeyDown = function (v) {
if (this.event = v, this.game.input.enabled && this.enabled) {
var O = v.keyCode;
this._capture[O] && v.preventDefault(), this._keys[O] || (this._keys[O] = new D(O)), this._keys[O].processKeyDown(v), this._k = O, this.onDownCallback && this.onDownCallback.call(this.callbackContext, v)
}
}, v.prototype.processKeyPress = function (v) {
this.pressEvent = v, this.game.input.enabled && this.enabled && this.onPressCallback && this.onPressCallback.call(this.callbackContext, String.fromCharCode(v.charCode), v)
}, v.prototype.processKeyUp = function (v) {
if (this.event = v, this.game.input.enabled && this.enabled) {
var O = v.keyCode;
this._capture[O] && v.preventDefault(), this._keys[O] || (this._keys[O] = new D(O)), this._keys[O].processKeyUp(v), this.onUpCallback && this.onUpCallback.call(this.callbackContext, v)
}
}, v.prototype.reset = function (v) {
void 0 === v && (v = !0), this.event = null;
for (var O = this._keys.length; O-- > 0;) this._keys[O] && this._keys[O].reset(v)
}, v.prototype.downDuration = function (v, O) {
return void 0 === O && (O = 50), this._keys[v] ? this._keys[v].downDuration(O) : null
}, v.prototype.upDuration = function (v, O) {
return void 0 === O && (O = 50), this._keys[v] ? this._keys[v].upDuration(O) : null
}, v.prototype.justPressed = function (v) {
return this._keys[v] ? this._keys[v].justPressed() : null
}, v.prototype.justReleased = function (v) {
return this._keys[v] ? this._keys[v].justReleased() : null
}, v.prototype.isDown = function (v) {
return this._keys[v] ? this._keys[v].isDown : null
}, v
}(),
N = function () {
function v() {
this.capture = !1, this.stopOnGameOut = !1, this.callbackContext = this.game
}
return v.prototype.addMouseWheelCallback = function (v) {
return this.input.mouseWheel.callbacks.push(v)
}, v.prototype.removeMouseWheelCallback = function (v) {
var O = this.input.mouseWheel.callbacks.indexOf(v, 0);
O > -1 && this.input.mouseWheel.callbacks.splice(O, 1)
}, Object.defineProperty(v.prototype, "wheelDelta", {
get: function () {
return this.input.mouseWheel.delta
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "game", {
get: function () {
return g.FrameworkApp.instance.game
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "input", {
get: function () {
return E.a.instance.game.input
},
enumerable: !1,
configurable: !0
}), v.prototype.start = function () {
var v = this;
if (g.DeviceUtils.isAndroidStockBrowser() && this.input.touch.active) return !1;
if (void 0 !== this._onMouseDown) return !1;
this._onMouseDown = function (O) {
v.onMouseDown(O)
}, this._onMouseMove = function (O) {
v.onMouseMove(O)
}, this._onMouseUp = function (O) {
v.onMouseUp(O)
}, this._onMouseUpGlobal = function (O) {
v.onMouseUpGlobal(O)
}, this._onMouseOutGlobal = function (O) {
v.onMouseOutGlobal(O)
}, this._onMouseOut = function (O) {
v.onMouseOut(O)
}, this._onMouseOver = function (O) {
v.onMouseOver(O)
};
var O = this.game.canvas;
return O.addEventListener("mousedown", this._onMouseDown, !0), O.addEventListener("mousemove", this._onMouseMove, !0), O.addEventListener("mouseup", this._onMouseUp, !0), window.addEventListener("mouseup", this._onMouseUpGlobal, !0), window.addEventListener("mouseout", this._onMouseOutGlobal, !0), O.addEventListener("mouseover", this._onMouseOver, !0), O.addEventListener("mouseout", this._onMouseOut, !0), this.active = !0, this.enabled = !0, !0
}, v.prototype.onMouseDown = function (v) {
this.event = v, this.capture && v.preventDefault(), this.mouseDownCallback && this.mouseDownCallback.call(this.callbackContext, v), this.input.enabled && this.enabled && (v.identifier = 0, this.input.mousePointer.start(v))
}, v.prototype.onMouseMove = function (v) {
this.event = v, this.capture && v.preventDefault(), this.mouseMoveCallback && this.mouseMoveCallback.call(this.callbackContext, v), this.input.enabled && this.enabled && (v.identifier = 0, this.input.mousePointer.move(v))
}, v.prototype.onMouseUp = function (v) {
this.event = v, this.capture && v.preventDefault(), this.mouseUpCallback && this.mouseUpCallback.call(this.callbackContext, v), this.input.enabled && this.enabled && (v.identifier = 0, this.input.mousePointer.stop(v))
}, v.prototype.onMouseUpGlobal = function (v) {
this.input.mousePointer.withinGame || (this.mouseUpCallback && this.mouseUpCallback.call(this.callbackContext, v), v.identifier = 0, this.input.mousePointer.stop(v))
}, v.prototype.onMouseOutGlobal = function (v) {
this.event = v, this.capture && v.preventDefault(), this.input.mousePointer.withinGame = !1, this.input.enabled && this.enabled && (this.input.mousePointer.stop(v), this.input.mousePointer.resetButtons())
}, v.prototype.onMouseOut = function (v) {
if (this.event = v, this.capture && v.preventDefault(), this.input.mousePointer.withinGame = !1, this.mouseOutCallback && this.mouseOutCallback.call(this.callbackContext, v), this.input.enabled && this.enabled) {
this.stopOnGameOut && (v.identifier = 0, this.input.mousePointer.stop(v));
for (var O, j = this.input.interactiveItems.list, p = j.length; p-- > 0;)(O = j[p]).enabled && O._pointerOutHandler(this.input.mousePointer)
}
}, v.prototype.onMouseOver = function (v) {
this.event = v, this.capture && v.preventDefault(), this.input.mousePointer.withinGame = !0, this.mouseOverCallback && this.mouseOverCallback.call(this.callbackContext, v)
}, v.prototype.stop = function () {
var v = this.game.canvas;
v.removeEventListener("mousedown", this._onMouseDown, !0), v.removeEventListener("mousemove", this._onMouseMove, !0), v.removeEventListener("mouseup", this._onMouseUp, !0), v.removeEventListener("mouseover", this._onMouseOver, !0), v.removeEventListener("mouseout", this._onMouseOut, !0), window.removeEventListener("mouseup", this._onMouseUpGlobal, !0), window.removeEventListener("mouseout", this._onMouseOutGlobal, !0), this.active = !1
}, v
}(),
P = function () {
function v() {
this.active = !1, this.callbacks = [], this.delta = 0, this.preventDefault = !0, this.element = this.game.canvas, this.callbackContext = this.game, this.wheelEventName = A.b.getWheelEventName(), this.boundOnWheelHandler = this.onWheelHandler.bind(this)
}
return Object.defineProperty(v.prototype, "game", {
get: function () {
return g.FrameworkApp.instance.game
},
enumerable: !1,
configurable: !0
}), v.prototype.start = function () {
return !(!this.wheelEventName || this.active) && (this.element.addEventListener(this.wheelEventName, this.boundOnWheelHandler, !0), this.active = !0, !0)
}, v.prototype.stop = function () {
this.active && (this.element.removeEventListener(this.wheelEventName, this.boundOnWheelHandler, !0), this.active = !1)
}, v.prototype.onWheelHandler = function (v) {
this.preventDefault && v.preventDefault(), this.delta = g.MathUtils.clamp(-v.deltaY, -1, 1);
for (var O = 0; O < this.callbacks.length; O++) this.callbacks[O] && this.callbacks[O].call(this.callbackContext, v)
}, v
}(),
R = function () {
function v() {
this.active = !1, this.pointerDownCallback = null, this.pointerMoveCallback = null, this.pointerUpCallback = null, this.callbackContext = this.game
}
return Object.defineProperty(v.prototype, "game", {
get: function () {
return g.FrameworkApp.instance.game
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "input", {
get: function () {
return this.game.input
},
enumerable: !1,
configurable: !0
}), v.prototype.start = function () {
var v = this;
if (!A.b.hasMSPointerSupport()) return !1;
if (void 0 !== this._onMSPointerDown) return !1;
this._onMSPointerDown = function (O) {
v.onPointerDown(O)
}, this._onMSPointerMove = function (O) {
v.onPointerMove(O)
}, this._onMSPointerUp = function (O) {
v.onPointerUp(O)
}, this._onMSPointerUpGlobal = function (O) {
v.onPointerUpGlobal(O)
}, this._onMSPointerOut = function (O) {
v.onPointerOut(O)
}, this._onMSPointerOver = function (O) {
v.onPointerOver(O)
};
var O = this.game.canvas;
return O.addEventListener("MSPointerDown", this._onMSPointerDown, !1), O.addEventListener("MSPointerMove", this._onMSPointerMove, !1), O.addEventListener("MSPointerUp", this._onMSPointerUp, !1), O.addEventListener("pointerdown", this._onMSPointerDown, !1), O.addEventListener("pointermove", this._onMSPointerMove, !1), O.addEventListener("pointerup", this._onMSPointerUp, !1), O.style["-ms-content-zooming"] = "none", O.style["-ms-touch-action"] = "none", window.addEventListener("MSPointerUp", this._onMSPointerUpGlobal, !0), O.addEventListener("MSPointerOver", this._onMSPointerOver, !0), O.addEventListener("MSPointerOut", this._onMSPointerOut, !0), window.addEventListener("pointerup", this._onMSPointerUpGlobal, !0), O.addEventListener("pointerover", this._onMSPointerOver, !0), O.addEventListener("pointerout", this._onMSPointerOut, !0), this.active = !0, !0
}, v.prototype.onPointerDown = function (O) {
this.input.executeTouchLockCallbacks(!1, O), this.event = O, this.capture && O.preventDefault(), this.pointerDownCallback && this.pointerDownCallback.call(this.callbackContext, O), this.input.enabled && this.enabled && (O.identifier = O.pointerId, "mouse" === O.pointerType || O.pointerType === v.POINTER_TYPE ? this.input.mousePointer.start(O) : this.input.startPointer(O))
}, v.prototype.onPointerMove = function (O) {
this.event = O, this.capture && O.preventDefault(), this.pointerMoveCallback && this.pointerMoveCallback.call(this.callbackContext, O), this.input.enabled && this.enabled && (O.identifier = O.pointerId, "mouse" === O.pointerType || O.pointerType === v.POINTER_TYPE ? this.input.mousePointer.move(O) : this.input.updatePointer(O))
}, v.prototype.onPointerUp = function (O) {
this.input.executeTouchLockCallbacks(!0, O), this.event = O, this.capture && O.preventDefault(), this.pointerUpCallback && this.pointerUpCallback.call(this.callbackContext, O), O.identifier = O.pointerId, "mouse" === O.pointerType || O.pointerType === v.POINTER_TYPE ? this.input.mousePointer.stop(O, !this.input.enabled || !this.enabled) : this.input.stopPointer(O, !this.input.enabled || !this.enabled)
}, v.prototype.onPointerUpGlobal = function (O) {
if ("mouse" !== O.pointerType && O.pointerType !== v.POINTER_TYPE || this.input.mousePointer.withinGame) {
var j = this.input.getPointerFromIdentifier(O.identifier);
j && j.withinGame && this.onPointerUp(O)
} else this.onPointerUp(O)
}, v.prototype.onPointerOut = function (O) {
var j, p;
this.event = O, this.capture && O.preventDefault(), "mouse" === O.pointerType || O.pointerType === v.POINTER_TYPE ? this.input.mousePointer.withinGame = !1 : (p = this.input.getPointerFromIdentifier(O.identifier)) && (p.withinGame = !1), null === (j = this.input.mouse.mouseOutCallback) || void 0 === j || j.call(this.input.mouse.callbackContext, O), this.input.enabled && this.enabled && this.input.mouse.stopOnGameOut && (O.identifier = 0, p ? p.stop(O) : this.input.mousePointer.stop(O))
}, v.prototype.onPointerOver = function (O) {
if (this.event = O, this.capture && O.preventDefault(), "mouse" === O.pointerType || O.pointerType === v.POINTER_TYPE) this.input.mousePointer.withinGame = !0;
else {
var j = this.input.getPointerFromIdentifier(O.identifier);
j && (j.withinGame = !0)
}
this.input.mouse.mouseOverCallback && this.input.mouse.mouseOverCallback.call(this.input.mouse.callbackContext, O)
}, v.prototype.stop = function () {
var v = this.game.canvas;
v.removeEventListener("MSPointerDown", this._onMSPointerDown, !1), v.removeEventListener("MSPointerMove", this._onMSPointerMove, !1), v.removeEventListener("MSPointerUp", this._onMSPointerUp, !1), v.removeEventListener("pointerdown", this._onMSPointerDown, !1), v.removeEventListener("pointermove", this._onMSPointerMove, !1), v.removeEventListener("pointerup", this._onMSPointerUp, !1), window.removeEventListener("MSPointerUp", this._onMSPointerUpGlobal, !0), v.removeEventListener("MSPointerOver", this._onMSPointerOver, !0), v.removeEventListener("MSPointerOut", this._onMSPointerOut, !0), window.removeEventListener("pointerup", this._onMSPointerUpGlobal, !0), v.removeEventListener("pointerover", this._onMSPointerOver, !0), v.removeEventListener("pointerout", this._onMSPointerOut, !0), this.active = !1
}, v.POINTER_TYPE = 4, v
}(),
k = function () {
function v(v, O) {
this.event = null, this.isDown = !1, this.isUp = !0, this.timeDown = 0, this.timeUp = 0, this.altKey = !1, this.shiftKey = !1, this.ctrlKey = !1, this.value = 0, this.onDown = new g.Signal, this.onUp = new g.Signal, this.parent = v, this.buttonCode = O
}
return Object.defineProperty(v.prototype, "time", {
get: function () {
return E.a.instance.game.time
},
enumerable: !1,
configurable: !0
}), v.prototype.start = function (v, O) {
this.isDown || (this.isDown = !0, this.isUp = !1, this.timeDown = this.time.timeMS, this.event = v, this.value = O, v && (this.altKey = v.altKey, this.shiftKey = v.shiftKey, this.ctrlKey = v.ctrlKey), this.onDown.dispatch(this, O))
}, v.prototype.stop = function (v, O) {
this.isUp || (this.isDown = !1, this.isUp = !0, this.timeUp = this.time.timeMS, this.event = v, this.value = O, v && (this.altKey = v.altKey, this.shiftKey = v.shiftKey, this.ctrlKey = v.ctrlKey), this.onUp.dispatch(this, O))
}, v.prototype.startStop = function (v, O, j) {
v ? this.start(O, j) : this.stop(O, j)
}, v.prototype.justPressed = function (v) {
return void 0 === v && (v = 250), this.isDown && this.timeDown + v > this.time.timeMS
}, v.prototype.justReleased = function (v) {
return void 0 === v && (v = 250), this.isUp && this.timeUp + v > this.time.timeMS
}, v.prototype.reset = function () {
this.isDown = !1, this.isUp = !0, this.timeDown = this.time.timeMS, this.altKey = !1, this.shiftKey = !1, this.ctrlKey = !1
}, v.prototype.destroy = function () {
this.onDown.dispose(), this.onUp.dispose(), this.parent = null
}, Object.defineProperty(v.prototype, "duration", {
get: function () {
return this.isUp ? -1 : this.time.timeMS - this.timeDown
},
enumerable: !1,
configurable: !0
}), v
}();
! function (v) {
v[v.CURSOR = 1] = "CURSOR", v[v.CONTACT = 2] = "CONTACT"
}(p || (p = {}));
p.CURSOR, p.CONTACT;
var L = function () {
function v(v, O) {
this.exists = !0, this.identifier = 0, this._holdSent = !1, this._history = [], this._nextDrop = 0, this._stateReset = !1, this.withinGame = !1, this.clientX = -1, this.clientY = -1, this.pageX = -1, this.pageY = -1, this.screenX = -1, this.screenY = -1, this.rawMovementX = 0, this.rawMovementY = 0, this.movementX = 0, this.movementY = 0, this.x = -1, this.y = -1, this.isDown = !1, this.isUp = !0, this.timeDown = 0, this.timeUp = 0, this.previousTapTime = 0, this.totalTouches = 0, this.msSinceLastClick = Number.MAX_VALUE, this.targetObject = null, this.interactiveCandidates = [], this.active = !1, this.dirty = !1, this.position = new g.Vector2, this.positionDown = new g.Vector2, this.positionUp = new g.Vector2, this.circle = new g.Circle(0, 0, 44), this.worldPosition = {
x: 0,
y: 0
}, this.id = v, this.isMouse = 0 === v, this.pointerMode = g.Utils.isDefined(O) ? O : p.CURSOR | p.CONTACT, this.leftButton = new k(this, 1), this.middleButton = new k(this, 4), this.rightButton = new k(this, 2), this.backButton = new k(this, 8), this.forwardButton = new k(this, 16), this.eraserButton = new k(this, 32)
}
return Object.defineProperty(v.prototype, "duration", {
get: function () {
return this.isUp ? -1 : this.game.time.timeMS - this.timeDown
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "game", {
get: function () {
return E.a.instance.game
},
enumerable: !1,
configurable: !0
}), v.prototype.resetButtons = function () {
this.isDown = !1, this.isUp = !0, this.isMouse && (this.leftButton.reset(), this.middleButton.reset(), this.rightButton.reset(), this.backButton.reset(), this.forwardButton.reset(), this.eraserButton.reset())
}, v.prototype.processButtonsDown = function (v, O) {
switch (v) {
case 0:
this.leftButton.start(O);
break;
case 2:
this.rightButton.start(O);
break;
case 1:
this.middleButton.start(O);
break;
case 3:
this.backButton.start(O);
break;
case 4:
this.forwardButton.start(O)
}
}, v.prototype.processButtonsUp = function (v, O) {
switch (v) {
case 0:
this.leftButton.stop(O);
break;
case 2:
this.rightButton.stop(O);
break;
case 1:
this.middleButton.stop(O);
break;
case 3:
this.backButton.stop(O);
break;
case 4:
this.forwardButton.stop(O)
}
}, v.prototype.processButtonsUpDown = function (v, O) {
var j = O.type.toLowerCase().substr(-4),
p = "down" === j,
m = "move" === j;
void 0 !== v ? (p && 1 === v && O.ctrlKey && (v = 2), this.leftButton.startStop(Boolean(1 & v), O), this.rightButton.startStop(Boolean(2 & v), O), this.middleButton.startStop(Boolean(4 & v), O), this.backButton.startStop(Boolean(8 & v), O), this.forwardButton.startStop(Boolean(16 & v), O), this.eraserButton.startStop(Boolean(32 & v), O)) : void 0 !== O.button ? p && O.ctrlKey && 0 === O.button ? this.rightButton.start(O) : p ? this.processButtonsDown(O.button, O) : m || this.processButtonsUp(O.button, O) : p ? O.ctrlKey ? this.rightButton.start(O) : this.leftButton.start(O) : (this.leftButton.stop(O), this.rightButton.stop(O))
}, v.prototype.updateButtons = function (v) {
this.button = v.button, this.processButtonsUpDown(v.buttons, v), this.isUp = !0, this.isDown = !1, (this.leftButton.isDown || this.rightButton.isDown || this.middleButton.isDown || this.backButton.isDown || this.forwardButton.isDown || this.eraserButton.isDown) && (this.isUp = !1, this.isDown = !0)
}, v.prototype.start = function (v) {
var O = this.game.input;
return g.Utils.isDefined(v.pointerId) && (this.pointerId = v.pointerId), this.identifier = v.identifier, this.target = v.target, this.isMouse ? this.updateButtons(v) : (this.isDown = !0, this.isUp = !1), this.active = !0, this.withinGame = !0, this.dirty = !1, this._history = [], this.msSinceLastClick = this.game.time.timeMS - this.timeDown, this.timeDown = this.game.time.timeMS, this._holdSent = !1, this.move(v, !0), this.positionDown.set(this.x, this.y), (0 === O.multiInputOverride || 1 === O.multiInputOverride || 2 === O.multiInputOverride && 0 === O.totalActivePointers) && (O.x = this.x, O.y = this.y, O.position.setTo(this.x, this.y), O.onDown.dispatch(this, v), O.resetSpeed(this.x, this.y)), this._stateReset = !1, this.totalTouches++, null !== this.targetObject && this.targetObject._touchedHandler(this), this
}, v.prototype.update = function () {
var v = this.game.input;
this.active && (this.updateWorldPosition(), this.dirty && (v.interactiveItems.total > 0 && this.processInteractiveObjects(!1), this.dirty = !1), !1 === this._holdSent && this.duration >= v.holdRate && ((0 === v.multiInputOverride || 1 === v.multiInputOverride || 2 === v.multiInputOverride && 0 === v.totalActivePointers) && v.onHold.dispatch(this), this._holdSent = !0), v.recordPointerHistory && this.game.time.timeMS >= this._nextDrop && (this._nextDrop = this.game.time.timeMS + v.recordRate, this._history.push({
x: this.position.x,
y: this.position.y
}), this._history.length > v.recordLimit && this._history.shift()))
}, v.prototype.updateWorldPosition = function () {
this.worldPosition.x = this.x, this.worldPosition.y = this.y;
var v = g.Camera.main;
if (v) {
var O = v.GameObject.transform.worldPosition;
this.worldPosition.x = this.x + O.x - v.viewportSize.getHalfWidth(), this.worldPosition.y = this.y + O.y - v.viewportSize.getHalfHeight()
}
}, v.prototype.move = function (v, O) {
void 0 === O && (O = !1);
var j = this.game.input;
return j.pollLocked ? null : (void 0 !== v.button && (this.button = v.button), this.isMouse && this.updateButtons(v), this.clientX = v.clientX, this.clientY = v.clientY, this.pageX = v.pageX, this.pageY = v.pageY, this.screenX = v.screenX, this.screenY = v.screenY, this.isMouse && j.pointerLock.locked && !O && (this.rawMovementX = g.Utils.isDefined(v.movementX) ? v.movementX : g.Utils.isDefined(v.mozMovementX) ? v.mozMovementX : g.Utils.isDefined(v.webkitMovementX) ? v.webkitMovementX : 0, this.rawMovementY = g.Utils.isDefined(v.movementY) ? v.movementY : g.Utils.isDefined(v.mozMovementY) ? v.mozMovementY : g.Utils.isDefined(v.webkitMovementY) ? v.webkitMovementY : 0, this.movementX += this.rawMovementX, this.movementY += this.rawMovementY), this.x = (this.pageX - this.game.scale.canvasOffset.x) * j.scale.x, this.y = (this.pageY - this.game.scale.canvasOffset.y) * j.scale.y, this.updateWorldPosition(), this.position.set(this.x, this.y), this.circle.x = this.x, this.circle.y = this.y, (0 === j.multiInputOverride || 1 === j.multiInputOverride || 2 === j.multiInputOverride && 0 === j.totalActivePointers) && (j.activePointer = this, j.x = this.x, j.y = this.y, j.position.setTo(j.x, j.y), j.circle.x = j.x, j.circle.y = j.y), this.withinGame = this.game.scale.bounds.contains(this.pageX, this.pageY), j.onPointerMove.dispatch(this, this.x, this.y, O, v), null === this.targetObject || this.game.paused || !0 !== this.targetObject.isDragged ? this.processInteractiveObjects(O) : !1 === this.targetObject.update(this) && (this.targetObject = null), this)
}, v.prototype.processInteractiveObjects = function (v) {
void 0 === v && (v = !1);
var O = -1,
j = null,
p = this.game.input.interactiveItems.first;
for (this.interactiveCandidates = []; p;) p.checked = !1, p.validForInput(O) && !this.game.paused && (p.checked = !0, (v && p.checkPointerDown(this) || !v && p.checkPointerOver(this)) && (O = p.priorityID, j = p, this.interactiveCandidates.push(p))), p = this.game.input.interactiveItems.next;
return this.game.input.customCandidateHandler && (j = this.game.input.customCandidateHandler.call(this.game.input.customCandidateHandlerContext, this, this.interactiveCandidates, j)), this.swapTarget(j, !1), null !== this.targetObject
}, v.prototype.swapTarget = function (v, O) {
void 0 === O && (O = !1), null === v ? this.targetObject && (this.targetObject._pointerOutHandler(this, O), this.targetObject = null) : null === this.targetObject ? (this.targetObject = v, v._pointerOverHandler(this, O)) : this.targetObject === v ? !1 === v.update(this) && (this.targetObject = null) : (this.targetObject._pointerOutHandler(this, O), this.targetObject = v, this.targetObject._pointerOverHandler(this, O))
}, v.prototype.leave = function (v) {
this.withinGame = !1, this.move(v, !1)
}, v.prototype.stop = function (v, O) {
void 0 === O && (O = !1);
var j = this.game.input;
if (this._stateReset && this.withinGame) return v.preventDefault(), null;
if (!O && (this.timeUp = this.game.time.timeMS, (0 === j.multiInputOverride || 1 === j.multiInputOverride || 2 === j.multiInputOverride && 0 === j.totalActivePointers) && (j.onUp.dispatch(this, v), this.duration >= 0 && this.duration <= j.tapRate))) {
var p = this.timeUp - this.previousTapTime < j.doubleTapRate;
j.onTap.dispatch(this, p, v), this.previousTapTime = this.timeUp
}
return this.isMouse ? this.updateButtons(v) : (this.isDown = !1, this.isUp = !0), this.id > 0 && (this.active = !1), this.withinGame = this.game.scale.bounds.contains(v.pageX, v.pageY), this.pointerId = null, this.identifier = null, this.positionUp.set(this.x, this.y), O || j.interactiveItems.callAll("_releasedHandler", this), this.targetObject = null, this
}, v.prototype.justPressed = function (v) {
return !0 === this.isDown && this.timeDown + (g.Utils.isDefined(v) ? v : this.game.input.justPressedRate) > this.game.time.timeMS
}, v.prototype.justReleased = function (v) {
return this.isUp && this.timeUp + (g.Utils.isDefined(v) ? v : this.game.input.justReleasedRate) > this.game.time.timeMS
}, v.prototype.reset = function () {
!1 === this.isMouse && (this.active = !1), this.pointerId = null, this.identifier = null, this.dirty = !1, this.totalTouches = 0, this._holdSent = !1, this._history.length = 0, this._stateReset = !0, this.resetButtons(), this.targetObject && this.targetObject._releasedHandler(this), this.targetObject = null
}, v.prototype.resetMovement = function () {
this.movementX = 0, this.movementY = 0
}, v
}(),
B = function () {
function v() {
this.active = !1, this.locked = !1, this.onChange = new g.Signal, this.onError = new g.Signal;
var v = this.game.device;
this.element = this.game.canvas, this.boundOnChangeHandler = this.onChangeHandler.bind(this), this.boundOnErrorHandler = this.onErrorHandler.bind(this), this.pointerLockElement = v.pointerLockElement, this.pointerlockchange = v.pointerlockchange, this.pointerlockerror = v.pointerlockerror
}
return Object.defineProperty(v.prototype, "game", {
get: function () {
return g.FrameworkApp.instance.game
},
enumerable: !1,
configurable: !0
}), v.prototype.start = function () {
return !(!A.b.hasPointerLockSupport() || this.active) && (this.element.requestPointerLock || (this.element.requestPointerLock = this.element.mozRequestPointerLock || this.element.webkitRequestPointerLock), document.exitPointerLock || (document.exitPointerLock = document.mozExitPointerLock || document.webkitExitPointerLock), document.addEventListener(this.pointerlockchange, this.boundOnChangeHandler, !0), document.addEventListener(this.pointerlockerror, this.boundOnErrorHandler, !0), this.active = !0, !0)
}, v.prototype.stop = function () {
this.active && (document.removeEventListener(this.pointerlockchange, this.boundOnChangeHandler, !0), document.removeEventListener(this.pointerlockerror, this.boundOnErrorHandler, !0), this.active = !1)
}, v.prototype.request = function () {
this.active && !this.locked && this.element.requestPointerLock()
}, v.prototype.exit = function () {
document.exitPointerLock()
}, v.prototype.onChangeHandler = function (v) {
this.locked = document[this.pointerLockElement] === this.element, this.onChange.dispatch(this.locked, v)
}, v.prototype.onErrorHandler = function (v) {
this.onError.dispatch(v)
}, v.prototype.cleanUp = function () {
this.onChange.dispose(), this.onError.dispose()
}, v
}(),
U = function () {
function v() {
this.active = !1, this.enabled = !0, this.callbackContext = this.game
}
return Object.defineProperty(v.prototype, "game", {
get: function () {
return g.FrameworkApp.instance.game
},
enumerable: !1,
configurable: !0
}), v.prototype.start = function () {
return !!A.b.hasTouchSupport() && (void 0 === this._onTouchStart && (this._onTouchStart = this.onTouchStart.bind(this), this._onTouchMove = this.onTouchMove.bind(this), this._onTouchEnd = this.onTouchEnd.bind(this), this._onTouchEnter = this.onTouchEnter.bind(this), this._onTouchLeave = this.onTouchLeave.bind(this), this._onTouchCancel = this.onTouchCancel.bind(this), this.game.canvas.addEventListener("touchstart", this._onTouchStart, !1), this.game.canvas.addEventListener("touchmove", this._onTouchMove, !1), this.game.canvas.addEventListener("touchend", this._onTouchEnd, !1), this.game.canvas.addEventListener("touchcancel", this._onTouchCancel, !1), this.game.canvas.addEventListener("touchenter", this._onTouchEnter, !1), this.game.canvas.addEventListener("touchleave", this._onTouchLeave, !1), this.active = !0, !0))
}, v.prototype.consumeDocumentTouches = function () {
this._documentTouchMove = function (v) {
v.preventDefault()
}, document.addEventListener("touchmove", this._documentTouchMove, !1)
}, v.prototype.onTouchStart = function (v) {
if (this.game.input.executeTouchLockCallbacks(!1, v), this.event = v, this.game.input.enabled && this.enabled) {
this.touchStartCallback && this.touchStartCallback.call(this.callbackContext, v), this.preventDefault && v.preventDefault();
for (var O = 0; O < v.changedTouches.length; O++) this.game.input.startPointer(v.changedTouches[O])
}
}, v.prototype.onTouchCancel = function (v) {
if (this.event = v, this.touchCancelCallback && this.touchCancelCallback.call(this.callbackContext, v), this.game.input.enabled && this.enabled) {
this.preventDefault && v.preventDefault();
for (var O = 0; O < v.changedTouches.length; O++) this.game.input.stopPointer(v.changedTouches[O])
}
}, v.prototype.onTouchEnter = function (v) {
this.event = v, this.touchEnterCallback && this.touchEnterCallback.call(this.callbackContext, v), this.game.input.enabled && this.enabled && this.preventDefault && v.preventDefault()
}, v.prototype.onTouchLeave = function (v) {
this.event = v, this.touchLeaveCallback && this.touchLeaveCallback.call(this.callbackContext, v), this.preventDefault && v.preventDefault()
}, v.prototype.onTouchMove = function (v) {
this.event = v, this.touchMoveCallback && this.touchMoveCallback.call(this.callbackContext, v), this.preventDefault && v.preventDefault();
for (var O = 0; O < v.changedTouches.length; O++) this.game.input.updatePointer(v.changedTouches[O])
}, v.prototype.onTouchEnd = function (v) {
this.game.input.executeTouchLockCallbacks(!0, v), this.event = v, this.touchEndCallback && this.touchEndCallback.call(this.callbackContext, v), this.preventDefault && v.preventDefault();
for (var O = 0; O < v.changedTouches.length; O++) this.game.input.stopPointer(v.changedTouches[O])
}, v.prototype.stop = function () {
A.b.hasTouchSupport() && (this.game.canvas.removeEventListener("touchstart", this._onTouchStart), this.game.canvas.removeEventListener("touchmove", this._onTouchMove), this.game.canvas.removeEventListener("touchend", this._onTouchEnd), this.game.canvas.removeEventListener("touchenter", this._onTouchEnter), this.game.canvas.removeEventListener("touchleave", this._onTouchLeave), this.game.canvas.removeEventListener("touchcancel", this._onTouchCancel), this.active = !1)
}, v
}(),
G = function () {
function v() {
this.onPointerMove = new g.Signal, this.onDown = null, this.onHold = null, this.onTap = null, this.onUp = null, this.onTouchStartEvent = new g.Signal, this.onTouchEndEvent = new g.Signal, this._x = 0, this._y = 0, this._oldPosition = null, this._pollCounter = 0, this.activePointer = null, this.doubleTapRate = 300, this.hitCanvas = null, this.hitContext = null, this.holdRate = 2e3, this.justPressedRate = 200, this.justReleasedRate = 200, this.maxPointers = -1, this.mousePointer = null, this.multiInputOverride = 1, this.pointer1 = null, this.pointer2 = null, this.pointers = [], this.pollRate = 0, this.position = null, this.recordLimit = 100, this.recordPointerHistory = !1, this.recordRate = 100, this.scale = null, this.speed = null, this.tapRate = 200, this.customCandidateHandler = null, this.customCandidateHandlerContext = null, this.resetLocked = !1, this.minPriorityID = 0, this.interactiveItems = new g.ArraySet, this.enabled = !0, this.keyboard = null, this.touch = null, this.mspointer = null, this.mouseWheel = null, this.mouse = null
}
return Object.defineProperty(v.prototype, "x", {
get: function () {
return this._x
},
set: function (v) {
this._x = Math.floor(v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "y", {
get: function () {
return this._y
},
set: function (v) {
this._y = Math.floor(v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "pollLocked", {
get: function () {
return this.pollRate > 0 && this._pollCounter < this.pollRate
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "totalInactivePointers", {
get: function () {
return this.pointers.length - this.countActivePointers()
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "totalActivePointers", {
get: function () {
return this.countActivePointers()
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "worldX", {
get: function () {
var v, O;
return null !== (O = null === (v = this.activePointer) || void 0 === v ? void 0 : v.worldPosition.x) && void 0 !== O ? O : this.x
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "worldY", {
get: function () {
var v, O;
return null !== (O = null === (v = this.activePointer) || void 0 === v ? void 0 : v.worldPosition.y) && void 0 !== O ? O : this.y
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "game", {
get: function () {
return g.FrameworkApp.instance.game
},
enumerable: !1,
configurable: !0
}), v.prototype.boot = function (v) {
"maxPointers" in v && (this.maxPointers = v.maxPointers), this.mousePointer = new L(0, p.CURSOR), this.addPointer(), this.pointer1 = this.pointers[0], this.addPointer(), this.pointer2 = this.pointers[1], this.mouse = new N, this.touch = new U, this.mspointer = new R, this.mouseWheel = new P, this.pointerLock = new B, x && (this.keyboard = new x), this.onDown = new g.Signal, this.onUp = new g.Signal, this.onTap = new g.Signal, this.onHold = new g.Signal, this.scale = new g.Vector2(1, 1), this.speed = new g.Vector2, this.position = new g.Vector2, this._oldPosition = new g.Vector2, this.circle = new g.Circle(0, 0, 45), this.activePointer = this.mousePointer, this.hitCanvas = S.a.create(this, 1, 1), this.hitContext = this.hitCanvas.getContext("2d"), A.b.hasMSPointerSupport() && !1 !== v.mspointer ? this.mspointer.start() : A.b.hasTouchSupport() && !1 !== v.touch ? this.touch.start() : !1 !== v.mouse && this.mouse.start(), this.mousePointer.active = !0, !1 !== v.mouseWheel && this.mouseWheel.start(), !1 !== v.pointerLock && this.pointerLock.start(), this.keyboard && !1 !== v.keyboard && this.keyboard.start()
}, v.prototype.destroy = function () {
var v;
this.mouse.stop(), this.mouseWheel.stop(), this.touch.stop(), this.mspointer.stop(), this.pointerLock.stop(), this.keyboard && this.keyboard.stop(), this.onPointerMove.dispose(), this.onTouchEndEvent.dispose(), this.onTouchStartEvent.dispose(), S.a.remove(this), null === (v = this.pointerLock) || void 0 === v || v.cleanUp()
}, v.prototype.addMoveCallback = function (v, O) {
this.onPointerMove.add(v, O)
}, v.prototype.addTouchLockCallback = function (v, O, j) {
void 0 === j && (j = !1), j ? this.onTouchEndEvent.add(v, O) : this.onTouchStartEvent.add(v, O)
}, v.prototype.removeTouchLockCallback = function (v, O) {
return !(!this.onTouchEndEvent.has(v, O) && !this.onTouchStartEvent.has(v, O)) && (this.onTouchEndEvent.remove(v, O), this.onTouchStartEvent.remove(v, O), !0)
}, v.prototype.executeTouchLockCallbacks = function (v, O) {
v ? this.onTouchEndEvent.dispatch(O) : this.onTouchStartEvent.dispatch(O)
}, v.prototype.deleteMoveCallback = function (v, O) {
this.onPointerMove.remove(v, O)
}, v.prototype.addPointer = function () {
if (this.pointers.length >= v.MAX_POINTERS) return null;
var O = this.pointers.length + 1,
j = new L(O, p.CONTACT);
return this.pointers.push(j), this["pointer" + O] = j, j
}, v.prototype.update = function () {
if (this.keyboard && this.keyboard.update(), this.pollLocked) this._pollCounter++;
else {
this.speed.x = this.position.x - this._oldPosition.x, this.speed.y = this.position.y - this._oldPosition.y, this._oldPosition.copyFrom(this.position), this.mousePointer.update();
for (var v = 0; v < this.pointers.length; v++) this.pointers[v].update();
this._pollCounter = 0
}
}, v.prototype.preUpdate = function () {
this.updateInteractiveItems()
}, v.prototype.updateInteractiveItems = function () {
this.interactiveItems.reset();
var v = this.game.stage;
this.updateChildren(v)
}, v.prototype.updateChildren = function (v) {
var O = v.input;
O && O.enabled && v.visible && this.interactiveItems.list.push(O);
for (var j = v.children.length, p = 0; p < j; ++p) {
var m = v.children[p];
if (m instanceof I.Container) this.updateChildren(m);
else {
var g = m.input;
g && g.enabled && m.visible && this.interactiveItems.list.push(g)
}
}
}, v.prototype.reset = function (v) {
if (void 0 === v && (v = !1), this.game.isBooted && !this.resetLocked) {
this.mousePointer.reset(), this.keyboard && this.keyboard.reset(v);
for (var O = 0; O < this.pointers.length; O++) this.pointers[O].reset();
"none" !== this.game.canvas.style.cursor && (this.game.canvas.style.cursor = ""), v && (this.onDown.dispose(), this.onUp.dispose(), this.onTap.dispose(), this.onHold.dispose(), this.onDown = new g.Signal, this.onUp = new g.Signal, this.onTap = new g.Signal, this.onHold = new g.Signal, this.onPointerMove.dispose(), this.onTouchStartEvent.dispose(), this.onTouchEndEvent.dispose()), this._pollCounter = 0
}
}, v.prototype.resetSpeed = function (v, O) {
this._oldPosition.setTo(v, O), this.speed.setTo(0, 0)
}, v.prototype.startPointer = function (v) {
var O;
if (this.maxPointers >= 0 && this.countActivePointers(this.maxPointers) >= this.maxPointers) return null;
if (!this.pointer1.active) return this.pointer1.start(v);
if (!this.pointer2.active) return this.pointer2.start(v);
for (var j = 2; j < this.pointers.length; j++)
if (!(O = this.pointers[j]).active) return O.start(v);
return null
}, v.prototype.updatePointer = function (v) {
var O;
if (this.pointer1.active && this.pointer1.identifier === v.identifier) return this.pointer1.move(v);
if (this.pointer2.active && this.pointer2.identifier === v.identifier) return this.pointer2.move(v);
for (var j = 2; j < this.pointers.length; j++)
if ((O = this.pointers[j]).active && O.identifier === v.identifier) return O.move(v);
return null
}, v.prototype.stopPointer = function (v, O) {
var j;
if (void 0 === O && (O = !1), this.pointer1.active && this.pointer1.identifier === v.identifier) return this.pointer1.stop(v, O);
if (this.pointer2.active && this.pointer2.identifier === v.identifier) return this.pointer2.stop(v, O);
for (var p = 2; p < this.pointers.length; p++)
if ((j = this.pointers[p]).active && j.identifier === v.identifier) return j.stop(v, O);
return null
}, v.prototype.countActivePointers = function (v) {
void 0 === v && (v = this.pointers.length);
for (var O = v, j = 0; j < this.pointers.length && O > 0; j++) this.pointers[j].active && O--;
return v - O
}, v.prototype.getPointer = function (v) {
var O;
void 0 === v && (v = !1);
for (var j = 0; j < this.pointers.length; j++)
if ((O = this.pointers[j]).active === v) return O;
return null
}, v.prototype.getPointerFromIdentifier = function (v) {
for (var O, j = 0; j < this.pointers.length; j++)
if ((O = this.pointers[j]).identifier === v) return O;
return null
}, v.prototype.getPointerFromId = function (v) {
for (var O, j = 0; j < this.pointers.length; j++)
if ((O = this.pointers[j]).pointerId === v) return O;
return null
}, v.prototype.getLocalPosition = function (v, O, j) {
void 0 === j && (j = new g.Vector2);
var p = v.worldTransform,
m = 1 / (p.a * p.d + p.c * -p.b);
return j.setTo(p.d * m * O.x + -p.c * m * O.y + (p.ty * p.c - p.tx * p.d) * m, p.a * m * O.y + -p.b * m * O.x + (-p.ty * p.a + p.tx * p.b) * m), j
}, v.prototype.hitTest = function (v, O) {
if (!v.worldVisible) return !1;
var j = !1;
if (v instanceof I.TilingSprite || v instanceof I.Sprite ? j = v.texture.orig && v.containsPoint(O) : v instanceof C.a && (j = v.containsPoint(O)), j) {
if (!v.isMask)
for (var p = v; null !== p;) {
if (p.mask) return this.hitTest(p.mask, O);
p = p.parent
}
return j
}
var m = v.children;
if (m)
for (var g = m.length, y = 0; y < g; y++) {
var _ = m[y];
if (_ && this.hitTest(_, O)) return !0
}
return !1
}, v.prototype.setInteractiveCandidateHandler = function (v, O) {
this.customCandidateHandler = v, this.customCandidateHandlerContext = O
}, v.MAX_POINTERS = 10, v
}(),
F = j(543),
H = function (v) {
function O(O) {
return v.call(this, O) || this
}
return Object(m.__extends)(O, v), O.prototype.getGameKey = function (v) {
return window.legacyAssetMappings && window.legacyAssetMappings[v] ? window.legacyAssetMappings[v] : window.legacyPrefabMappings && window.legacyPrefabMappings[v] ? window.legacyPrefabMappings[v] : v
}, O.prototype.getSpine = function (O) {
return v.prototype.getSpine.call(this, this.getGameKey(O))
}, O.prototype.getImage = function (O) {
return v.prototype.getImage.call(this, this.getGameKey(O))
}, O.prototype.getTexture = function (O, j) {
return v.prototype.getTexture.call(this, this.getGameKey(O), j)
}, O.prototype.getFrameData = function (O, j) {
return v.prototype.getFrameData.call(this, this.getGameKey(O), j)
}, O.prototype.getFrameByName = function (O, j, p) {
return v.prototype.getFrameByName.call(this, this.getGameKey(O), j, p)
}, O.prototype.getJSON = function (O) {
return v.prototype.getJSON.call(this, this.getGameKey(O))
}, O.prototype.getSound = function (O) {
return v.prototype.getSound.call(this, this.getGameKey(O))
}, O.prototype.getText = function (O) {
return v.prototype.getText.call(this, this.getGameKey(O))
}, O.prototype.getRenderTexture = function (O) {
return v.prototype.getRenderTexture.call(this, this.getGameKey(O))
}, O.prototype.getBitmapData = function (O) {
return v.prototype.getBitmapData.call(this, this.getGameKey(O))
}, O.prototype.addSpine = function (O, j) {
return v.prototype.addSpine.call(this, this.getGameKey(O), j)
}, O.prototype.addImage = function (O, j, p) {
return v.prototype.addImage.call(this, this.getGameKey(O), j, p)
}, O.prototype.addTextureAtlas = function (O, j, p) {
return v.prototype.addTextureAtlas.call(this, this.getGameKey(O), j, p)
}, O.prototype.addBitmapData = function (O, j, p) {
return v.prototype.addBitmapData.call(this, this.getGameKey(O), j, p)
}, O.prototype.addRenderTexture = function (O, j) {
return v.prototype.addRenderTexture.call(this, this.getGameKey(O), j)
}, O.prototype.addJSON = function (O, j) {
return v.prototype.addJSON.call(this, this.getGameKey(O), j)
}, O.prototype.addSound = function (O, j) {
return v.prototype.addSound.call(this, this.getGameKey(O), j)
}, O.prototype.addText = function (O, j) {
return v.prototype.addText.call(this, this.getGameKey(O), j)
}, O.prototype.checkImageKey = function (O) {
return v.prototype.checkImageKey.call(this, this.getGameKey(O))
}, O.prototype.checkRenderTextureKey = function (O) {
return v.prototype.checkRenderTextureKey.call(this, this.getGameKey(O))
}, O.prototype.checkBitmapDataKey = function (O) {
return v.prototype.checkBitmapDataKey.call(this, this.getGameKey(O))
}, O.prototype.checkJSONKey = function (O) {
return v.prototype.checkJSONKey.call(this, this.getGameKey(O))
}, O.prototype.checkSoundKey = function (O) {
return v.prototype.checkSoundKey.call(this, this.getGameKey(O))
}, O.prototype.checkTextKey = function (O) {
return v.prototype.checkTextKey.call(this, this.getGameKey(O))
}, O.prototype.checkFrameData = function (O) {
return v.prototype.checkFrameData.call(this, this.getGameKey(O))
}, O.prototype.checkSpineKey = function (O) {
return v.prototype.checkSpineKey.call(this, this.getGameKey(O))
}, O.prototype.removeSpine = function (O) {
return v.prototype.removeSpine.call(this, this.getGameKey(O))
}, O.prototype.removeImage = function (O) {
return v.prototype.removeImage.call(this, this.getGameKey(O))
}, O.prototype.removeJSON = function (O) {
return v.prototype.removeJSON.call(this, this.getGameKey(O))
}, O.prototype.removeSound = function (O) {
return v.prototype.removeSound.call(this, this.getGameKey(O))
}, O.prototype.removeText = function (O) {
return v.prototype.removeText.call(this, this.getGameKey(O))
}, O.prototype.removeTextureAtlas = function (O) {
return v.prototype.removeTextureAtlas.call(this, this.getGameKey(O))
}, O.prototype.removeBitmapData = function (O) {
return v.prototype.removeBitmapData.call(this, this.getGameKey(O))
}, O.prototype.removeRenderTexture = function (O) {
return v.prototype.removeRenderTexture.call(this, this.getGameKey(O))
}, O
}(g.Cache),
K = j(544),
z = j(183),
W = j(515),
V = j(47),
Y = j(459),
q = function (v) {
function O(O) {
var j = v.call(this, O) || this;
return j.prodigyGame = O, j
}
return Object(m.__extends)(O, v), O.prototype.sprite = function (v, O, j, p, m, g) {
void 0 === v && (v = 0), void 0 === O && (O = 0), void 0 === m && (m = this.stage);
var y = new W.a(this.prodigyGame, v, O, j, p, g);
return m.addChild(y), y
}, O.prototype.group = function (v, O, j) {
return void 0 === O && (O = "group"), void 0 === j && (j = !1), new z.a(this.prodigyGame, v, O, j)
}, O.prototype.tileSprite = function (v, O, j, p, m, g, y) {
void 0 === m && (m = null), void 0 === y && (y = this.stage);
var _ = new V.a(this.prodigyGame, v, O, j, p, m, g);
return y.addChild(_), _
}, O.prototype.renderTexture = function (v, O, j, p) {
void 0 === v && (v = 100), void 0 === O && (O = 100), void 0 === j && (j = this.prodigyGame.rnd.uuid()), void 0 === p && (p = !1);
var m = {
width: v,
height: O,
resolution: 1
},
g = new I.BaseRenderTexture(m),
y = new Y.a(g);
return p && this.prodigyGame.cache.addRenderTexture(j, y), y
}, O.prototype.bitmapData = function (v, O, j, p) {
void 0 === v && (v = 256), void 0 === O && (O = 256), void 0 === j && (j = this.prodigyGame.rnd.uuid()), void 0 === p && (p = !1);
var m = new K.a(this.prodigyGame, j, v, O);
return p && this.prodigyGame.cache.addBitmapData(j, m), m
}, O.prototype.graphics = function (v, O, j) {
void 0 === v && (v = 0), void 0 === O && (O = 0), void 0 === j && (j = this.stage);
var p = new C.a(this.prodigyGame, v, O);
return p.position.set(v, O), j.addChild(p), p
}, O
}(g.GameObjectFactory),
Q = function (v) {
function O(O, j) {
var p = v.call(this, O, j) || this;
return p.clientVersion = "undefined", p.versioned = !1, p.renderer.plugins.interaction && p.renderer.plugins.interaction.destroy(), p._consoleLogger = new g.ConsoleLogger, g.Logger.addLogger(p._consoleLogger), p
}
return Object(m.__extends)(O, v), Object.defineProperty(O.prototype, "scale", {
get: function () {
return this._scale
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "input", {
get: function () {
return this._input
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "state", {
get: function () {
return this._state
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "add", {
get: function () {
return this._add
},
enumerable: !1,
configurable: !0
}), O.prototype.init = function () {
this.broadcaster = new _(this), this.seededRandom = new w(new g.RandomDataGenerator), this.frameWorkManager = new g.FrameWorkManager(y.a.TARGET_FPS_60_MS), this.fps = new T
}, O.prototype.boot = function () {
v.prototype.boot.call(this), this._input.boot({
keyboard: !0,
mouse: !0,
touch: !0,
mspointer: !0
}), this._scale.boot(), this._cache = new H(this)
}, O.prototype.update = function (O) {
var j, p;
null === (j = this._stats) || void 0 === j || j.begin(), this.frameWorkManager.markFrameStart(), v.prototype.update.call(this, O), this.paused ? this._scale.pauseUpdate() : (this._scale.preUpdate(), this._input.preUpdate(), this._input.update()), this.postUpdate(this.time.timeMS), this.frameWorkManager.markFrameEnd(), null === (p = this._stats) || void 0 === p || p.end(), this.fps.endFrame()
}, O.prototype.postUpdate = function (v) {
E.a.instance.prodigy.load.postUpdate(v)
}, O.prototype.toggleFpsGraph = function () {
0
}, O.prototype.pauseGame = function (O) {
O || this.paused && this.input.reset(), v.prototype.pauseGame.call(this, O)
}, O.prototype.gameResumed = function (O) {
this.paused && (this.input.reset(), v.prototype.gameResumed.call(this, O))
}, O.prototype.createSystems = function () {
v.prototype.createSystems.call(this), this._scale = new F.a(this, this.width, this.height), this._input = new G, this._add = new q(this)
}, O.prototype.destroy = function () {
this._scale.destroy(), this._input.destroy(), this._scale = null, this._input = null, v.prototype.destroy.call(this)
}, O
}(g.Game)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(274),
m = j(183),
g = j(515),
y = j(47),
_ = function () {
function v() {}
return v.cacheAsBitmap = function (v) {
v && (v.cacheAsBitmap = !1, v.cacheAsBitmap = !0)
}, v.toggleDisplayObjSettings = function (O, j) {
if (O && (O.visible = j, O.renderable = j, O instanceof g.a || O instanceof y.a ? (O.exists = j, !j && O.inputEnabled && (O.inputEnabled = !1)) : O instanceof m.a && (O.exists = j, !j && O.interactiveChildren && (O.interactiveChildren = !1)), O instanceof p.a))
for (var _ = 0; _ < O.children.length; ++_) v.toggleDisplayObjSettings(O.children[_], j)
}, v.sortChildren = function (O, j, p) {
void 0 === j && (j = "zIndex"), void 0 === p && (p = m.b.SORT_ASCENDING), O.children.length < 2 || (p === m.b.SORT_ASCENDING ? O.children.sort((function (v, O) {
return v[j] < O[j] ? -1 : v[j] > O[j] ? 1 : v.zIndex < O.zIndex ? -1 : 1
})) : O.children.sort((function (v, O) {
return v[j] < O[j] ? 1 : v[j] > O[j] ? -1 : 0
})), v.updateZ(O))
}, v.updateZ = function (v) {
for (var O = v.children.length; O-- > 0;) v.children[O].zIndex = O
}, v.removeAll = function (v, O) {
void 0 === O && (O = !1);
var j = v.removeChildren();
if (O)
for (var p = 0; p < j.length; ++p) j[p].destroy()
}, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(3),
_ = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O._args = [], O.acceptUnlocalized = !1, O
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "localizedText", {
get: function () {
return this._localizedText
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "localizationKey", {
set: function (v) {
this.setLocalizationKey(v)
},
enumerable: !1,
configurable: !0
}), O.prototype.create = function () {
v.prototype.create.call(this), this._localizationKey && this.setLocalizationKey(this._localizationKey)
}, O.prototype.setLocalizationKey = function (v) {
this._localizationKey = v, this.getLocalizedText()
}, O.prototype.setTextArguments = function () {
for (var v = [], O = 0; O < arguments.length; O++) v[O] = arguments[O];
this._args = v, this.getLocalizedText()
}, O.prototype.getLocalizedText = function () {
var v = g.a.instance.prodigy.gameContainer.get(m.GameIdentifiers.LocalizationService);
this._localizedText.text = this.acceptUnlocalized && !v.hasText(this._localizationKey) ? this._localizationKey : v.getText.apply(v, Object(p.__spread)([this._localizationKey], this._args))
}, Object(p.__decorate)([Object(m.serializeComponent)(m.Text), Object(p.__metadata)("design:type", m.Text)], O.prototype, "_localizedText", void 0), Object(p.__decorate)([Object(m.serializeString)(), Object(p.__metadata)("design:type", String)], O.prototype, "_localizationKey", void 0), Object(p.__decorate)([Object(m.serializeArray)(), Object(m.serializeString)(), Object(p.__metadata)("design:type", Array)], O.prototype, "_args", void 0), Object(p.__decorate)([Object(m.serializeBoolean)(), Object(p.__metadata)("design:type", Boolean)], O.prototype, "acceptUnlocalized", void 0), O = Object(p.__decorate)([Object(m.componentable)("LocalizationKeyText", y.a.ui)], O)
}(m.Component)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return K
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(77),
_ = j(13),
w = j(11),
E = j(174),
T = j(5),
I = j(147),
A = j(196),
S = j(788),
C = j(238),
D = j(89),
M = j(793),
x = j(6),
N = function () {
function v() {
this.data = {
bg: {
active: 1,
own: [1]
},
items: {},
currentHouseTag: "suburbs"
}, this.updated = !1
}
return v.prototype.getDataAndClear = function () {
return this.updated = !1, this.data
}, v.prototype.getItems = function () {
return this.data.items
}, v.prototype.hasItems = function (v) {
var O = this;
return x.sumBy(v, (function (v) {
return "dorm" === v.type && O.data.items[v.ID] ? 1 : 0
}))
}, v.prototype.setItems = function (v) {
m.Utils.isDefined(v) && (m.Utils.isDefined(v.items) || (v.items = this.data.items), m.Utils.isDefined(v.bg) || (v.bg = this.data.bg), m.Utils.isDefined(v.currentHouseTag) || (v.currentHouseTag = this.data.currentHouseTag), this.data = v, m.Utils.isDefined(this.data.active) || (this.add(17), this.add(3), this.add(18), this.add(18), this.add(14), this.add(1), this.add(13), this.data.active = [], this.setActive(17, 480, 160, 1, 0, 0, 0, 0), this.setActive(3, 400, 160, 1, 0, 0, 0, 0), this.setActive(18, 440, 100, 1, 0, 0, 0, 0), this.setActive(18, 840, 100, 1, 0, 0, 0, 0), this.setActive(14, 880, 240, 1, 0, 0, 0, 0), this.setActive(1, 880, 140, 1, 0, 0, 0, 0), this.setActive(13, 640, 80, 1, 0, 0, 0, 0)))
}, v.prototype.add = function (v) {
var O = this.data.items[v];
m.Utils.isDefined(O) || (O = this.data.items[v] = {
N: 0,
A: []
}), O.N < 9 && O.N++, this.updated = !0
}, v.prototype.getSortedActive = function () {
var v = [];
if (!m.Utils.isDefined(this.data.active)) return v;
for (var O in this.data.items)
for (var j = 0; j < this.data.active.length; j++) {
var p = this.data.active[j];
p.ID === parseInt(O) && v.push(p)
}
return v.sort((function (v, O) {
return v.z - O.z
})), v
}, v.prototype.setAllInactive = function () {
this.data.active = [], this.updated = !0
}, v.prototype.setActive = function (v, O, j, p, g, y, _, w) {
var E = this.data.items[v];
if (m.Utils.isDefined(E) && E.N > this.getActive(v)) {
var T = {
ID: v,
x: O,
y: j,
dx: g,
dy: y,
z: p,
anchorY: _,
r: w,
stack: []
};
return this.data.active.push(T), this.updated = !0, T
}
return null
}, v.prototype.updateActive = function (v, O, j, p, m, g, y, _, w) {
for (var E = 0; E < this.data.active.length; E++) {
var T = this.data.active[E];
T === v && (T.ID = O, T.x = j, T.y = p, T.z = m, T.dx = g, T.dy = y, T.anchorY = _, T.r = w)
}
this.updated = !0
}, v.prototype.setInactive = function (v) {
_.a.removeFromArray(v, this.data.active), this.updated = !0
}, v.prototype.getCurrentHouseTag = function () {
return this.data.currentHouseTag
}, v.prototype.setCurrentHouseTag = function (v) {
this.data.currentHouseTag = v, this.updated = !0
}, v.prototype.getBackground = function () {
return m.Utils.isDefined(this.data.bg.active) ? this.data.bg.active : 1
}, v.prototype.getOwned = function (v) {
return x.get(this.data.items[v], "N", 0)
}, v.prototype.getItemCount = function () {
return x.size(this.data.items)
}, v.prototype.getActiveCount = function () {
return x.size(this.data.active)
}, v.prototype.getUnplacedItems = function () {
var v = [];
for (var O in this.data.items) {
var j = this.getActive(parseInt(O));
j < this.data.items[O].N && v.push({
ID: parseInt(O),
N: this.data.items[O].N - j
})
}
return v
}, v.prototype.hasMaxQuantityOfItem = function (v) {
var O = this.data.items[v];
return !!O && O.N >= 9
}, v.prototype.getActive = function (v) {
var O = 0;
if (m.Utils.isDefined(this.data.active))
for (var j = 0; j < this.data.active.length; j++) this.data.active[j].ID === v && O++;
return O
}, v
}(),
P = j(794),
R = j(20),
k = j(8),
L = j(56),
B = function (v) {
function O(O) {
var j = v.call(this) || this;
return j._name = null, j.updated = !1, j.playerService = null, j.playerService = O, j.generateRandom(), j.name = new R.NameData, j
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "name", {
get: function () {
return this._name
},
set: function (v) {
this._name = v
},
enumerable: !1,
configurable: !0
}), O.prototype.init = function (O) {
v.prototype.init.call(this, O);
var j = this.playerService.getAppearance(O);
j && (this.name = j.getName())
}, O.prototype.setGender = function (O) {
v.prototype.setGender.call(this, O), this.updated = !0
}, O.prototype.setHair = function (O, j) {
v.prototype.setHair.call(this, O, j), this.updated = !0
}, O.prototype.setFace = function (O) {
v.prototype.setFace.call(this, O), this.updated = !0
}, O.prototype.setEyeColor = function (O) {
v.prototype.setEyeColor.call(this, O), this.updated = !0
}, O.prototype.setSkinColor = function (O) {
v.prototype.setSkinColor.call(this, O), this.updated = !0
}, O.prototype.getData = function () {
return {
name: {
first: m.Utils.isDefined(this.name) ? this.name.getFirstName() : null,
middle: m.Utils.isDefined(this.name) ? this.name.getMiddleName() : null,
last: m.Utils.isDefined(this.name) ? this.name.getLastName() : null,
nick: m.Utils.isDefined(this.name) ? this.name.getNickname() : null
},
gender: this.gender,
hair: {
color: this.hairColor,
style: this.hairStyle
},
skinColor: this.skinColor,
eyeColor: this.eyeColor,
face: this.face
}
}, O.prototype.getDataAndClear = function () {
return this.updated = !1, this.getData()
}, O.prototype.getName = function () {
return this.name
}, O.prototype.setName = function (v) {
this.name = v, this.updated = !0
}, O.prototype.randomize = function () {
this.setGender(Math.random() > .5 ? "male" : "female"), this.setHair(T.a.getRandomItem("hair").ID, T.a.getRandomItem("hairColor").ID), this.setSkinColor(T.a.getRandomItem("skinColor").ID), this.setEyeColor(T.a.getRandomItem("eyeColor").ID), this.setFace("male" === this.getGender() ? x.sample([1, 2, 3, 4, 5, 6, 8, 9, 15, 16]) : L.a.integerInRange(1, 18));
var v = new R.NameData;
v.setFirstName(I.a.getRandomFirstName()), v.setMiddleName(I.a.getRandomMiddleName()), v.setLastName(I.a.getRandomLastName()), this.setName(v)
}, O.prototype.generateRandom = function () {
this.setName(null), this.setGender(Math.random() < .5 ? "female" : "male"), this.setHair(Math.floor(8 * Math.random()) + ("male" === this.getGender() ? 16 : 1), Math.floor(16 * Math.random()) + 1), this.setSkinColor(Math.floor(5 * Math.random() + 1)), this.setEyeColor(Math.floor(15 * Math.random() + 1)), this.setFace("male" === this.getGender() ? 4 : 12)
}, O = Object(p.__decorate)([Object(k.injectable)(), Object(p.__metadata)("design:paramtypes", [R.PlayerService])], O)
}(j(518).a),
U = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O.updated = !1, O._lastEquippedMount = 0, O
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "lastEquippedMount", {
get: function () {
return this._lastEquippedMount
},
enumerable: !1,
configurable: !0
}), O.prototype.setFollow = function (O) {
v.prototype.setFollow.call(this, O), this.updated = !0
}, O.prototype.setHat = function (O, j, p) {
void 0 === j && (j = !0), void 0 === p && (p = !0), v.prototype.setHat.call(this, O), j && (m.Utils.isDefined(O) && O > 0 ? this.handleItemEquip(O, "hat", p) : this.handleItemUnequip())
}, O.prototype.setOutfit = function (O, j, p) {
void 0 === j && (j = !0), void 0 === p && (p = !0), v.prototype.setOutfit.call(this, O), j && (m.Utils.isDefined(O) && O > 0 ? this.handleItemEquip(O, "outfit", p) : this.handleItemUnequip())
}, O.prototype.setWeapon = function (O, j, p) {
void 0 === j && (j = !0), void 0 === p && (p = !0), v.prototype.setWeapon.call(this, O), j && (m.Utils.isDefined(O) && O > 0 ? this.handleItemEquip(O, "weapon", p) : this.handleItemUnequip())
}, O.prototype.setSpellRelic = function (O, j, p) {
void 0 === j && (j = !0), void 0 === p && (p = !0), v.prototype.setSpellRelic.call(this, O), j && (m.Utils.isDefined(O) && O > 0 ? this.handleItemEquip(O, "spellRelic", p) : this.handleItemUnequip())
}, O.prototype.setBoots = function (O, j, p) {
void 0 === j && (j = !0), void 0 === p && (p = !0), v.prototype.setBoots.call(this, O), j && (m.Utils.isDefined(O) && O > 0 ? this.handleItemEquip(O, "boots", p) : this.handleItemUnequip())
}, O.prototype.setMount = function (O, j, p) {
void 0 === j && (j = !0), void 0 === p && (p = !0);
var g = this.mount;
v.prototype.setMount.call(this, O), !m.Utils.isDefined(O) && m.Utils.isDefined(g) && (this._lastEquippedMount = g), j && (m.Utils.isDefined(O) && O > 0 ? this.handleItemEquip(O, "mount", p) : this.handleItemUnequip())
}, O.prototype.getDataAndClear = function () {
return this.updated = !1, this.getData()
}, O.prototype.clearData = function () {
this.follow = null, this.hat = null, this.outfit = null, this.weapon = null, this.spellRelic = null, this.boots = null, this.mount = null
}, O.prototype.randomize = function () {
this.outfit = T.a.getRandomItem("outfit").ID, this.hat = T.a.getRandomItem("hat").ID, this.weapon = T.a.getRandomItem("weapon").ID, this.spellRelic = T.a.getRandomItem("spellRelic").ID
}, O.prototype.unequipLevelLockedItems = function () {
this.unequipLevelLockedItem("follow", this.follow), this.unequipLevelLockedItem("hat", this.hat), this.unequipLevelLockedItem("outfit", this.outfit), this.unequipLevelLockedItem("weapon", this.weapon), this.unequipLevelLockedItem("spellRelic", this.spellRelic), this.unequipLevelLockedItem("boots", this.boots), this.unequipLevelLockedItem("mount", this.mount)
}, O.prototype.unequipLevelLockedItem = function (v, O) {
var j, p, y = T.a.getItem(v, O),
_ = g.a.instance.prodigy.gameContainer.get("497-7811").player;
if (m.Utils.isDefined(y) && m.Utils.isDefined(y.data.lockLevel) && _.getLevel() < y.data.lockLevel) {
switch (v) {
case "follow":
this.setFollow(null);
break;
case "hat":
this.setHat(null);
break;
case "outfit":
this.setOutfit(null);
break;
case "weapon":
this.setWeapon(null);
break;
case "spellRelic":
this.setSpellRelic(null);
break;
case "boots":
this.setBoots(null);
break;
case "mount":
this.setMount(null)
}
g.a.instance.prodigy.gameContainer.get("974-9dfd").create.sendItemEquipFailedEvent({
item_name: null === (p = null === (j = T.a.getItem(v, O)) || void 0 === j ? void 0 : j.data) || void 0 === p ? void 0 : p.name,
item_type: v,
item_id: O,
fail_reason: "Level Locked"
}).send()
}
}, O.prototype.handleItemEquip = function (v, O, j) {
void 0 === j && (j = !0), this.updated = !0;
var p = T.a.getItem(O, v).data;
j && g.a.instance.prodigy.gameContainer.get("af8-b464").create(O, x.get(p, "name", ""), v).broadcast()
}, O.prototype.handleItemUnequip = function () {
this.updated = !0
}, O
}(j(792).a),
G = function () {
function v() {
this.data = {}, this.updated = !1
}
return v.hasEntryForMonster = function (v, O) {
if (!m.Utils.isDefined(v)) return !1;
for (var j = 0; j < v.length; j++)
if (v[j].ID === O) return !0;
return !1
}, v.prototype.defeatMonster = function (O, j, p) {
if (m.Utils.isDefined(this.data[O])) {
if (m.Utils.isDefined(j.req))
for (var g = 0; g < j.req.length; g++) "pet" === j.req[g].type && (this.data[O].M || (this.data[O].M = []), v.hasEntryForMonster(this.data[O].M, j.req[g].ID) || this.data[O].M.push({
ID: j.req[g].ID,
N: 0
}));
if (m.Utils.isDefined(this.data[O].M))
for (g = 0; g < this.data[O].M.length; g++) {
var y = this.data[O].M[g];
y.ID === p && y.N++
}
}
}, v.prototype.defeatBoss = function (v) {
m.Utils.isDefined(this.data[v]) && (this.data[v].B = 1)
}, v.prototype.setQuests = function (v) {
this.data = v
}, v.prototype.getDataAndClear = function () {
return this.updated = !1, this.data
}, v
}(),
F = function () {
function v() {
this.data = {
tutorial: {},
world: {},
zone: {}
}, this._updated = !1, this._dungeonStates = {}
}
return Object.defineProperty(v.prototype, "updated", {
get: function () {
var v = this._updated;
if (!v)
for (var O in this._dungeonStates)
if (this._dungeonStates[O].updated) {
v = !0;
break
} return v
},
set: function (v) {
this._updated = v
},
enumerable: !1,
configurable: !0
}), v.prototype.setData = function (v) {
if (this.data = v, m.Utils.isDefined(this.data.zone))
for (var O in this.data.zone) m.Utils.isDefined(this.data.zone[O].quest) && m.Utils.isDefined(this.data.zone[O].quest.gameID) && (this.data.zone[O].quest.ID = this.data.zone[O].quest.gameID, delete this.data.zone[O].quest.gameID)
}, v.prototype.getDataAndClear = function () {
for (var v in this._updated = !1, this._dungeonStates) this._dungeonStates[v].getDataAndClear();
return this.data
}, v.prototype.set = function (v, O) {
if (m.Utils.isDefined(v)) {
for (var j = v.split("-"), p = this.data, g = 0; g < j.length; g++) m.Utils.isDefined(p[j[g]]) || (p[j[g]] = {}), g === j.length - 1 ? p[j[g]] = O : p = p[j[g]];
this._updated = !0
}
}, v.prototype.get = function (v) {
if (m.Utils.isDefined(v)) {
for (var O = v.split("-"), j = this.data, p = 0; p < O.length; p++) {
if (!m.Utils.isDefined(j[O[p]])) return null;
j = j[O[p]]
}
return j
}
return null
}, v.prototype.getCompletedQuests = function (v) {
var O = this.get("zone-" + v + "-quest-ID");
return m.Utils.isDefined(O) ? O - 1 : -1
}, v.prototype.getZoneVars = function (v, O, j) {
var p = this.get("zone-" + O),
y = g.a.instance.prodigy.world.getZone(O),
_ = 0;
if (m.Utils.isDefined(p) && m.Utils.isDefined(y.states))
for (var w = 0; w < y.states.length; w++) {
y.states[w].indexOf(j) >= 0 && m.Utils.isDefined(p[w]) && p[w] > 0 && _++
}
return _
}, v.prototype.getDungeonState = function (v, O) {
var j = this._dungeonStates[O];
if (!j) {
j = g.a.instance.prodigy.gameContainer.resolve(v), this._dungeonStates[O] = j;
var p = this.getDungeonSchema(O);
p ? j.setData(p) : (p = j.getInitializationData(), this.data.dungeons[O] = p, j.setData(p, !0))
}
return j
}, v.prototype.getDungeonSchema = function (v) {
return this.data.dungeons || (this.data.dungeons = {}, this._updated = !0), this.data.dungeons[v]
}, v
}(),
H = function () {
function v() {
this.data = {
zones: {},
menus: {}
}, this.updated = !1
}
return v.prototype.getDataAndClear = function () {
return this.updated = !1, this.data
}, v.prototype.setData = function (v) {
m.Utils.isDefined(v.zones) || (v.zones = {}), m.Utils.isDefined(v.menus) || (v.menus = {}), this.data = v
}, v.prototype.getMenuValue = function (v) {
return this.getValue("menus", v.menu, v.ID)
}, v.prototype.setMenuValue = function (v, O) {
this.setValue("menus", v.menu, v.ID, O)
}, v.prototype.setValue = function (v, O, j, p) {
void 0 === j && (j = 0), void 0 === p && (p = 1), m.Utils.isDefined(this.data[v][O]) || (this.data[v][O] = []), this.data[v][O][j] !== p && (this.data[v][O][j] = p, this.updated = !0)
}, v.prototype.getValue = function (v, O, j) {
if (void 0 === j && (j = 0), !m.Utils.isDefined(this.data[v][O])) return 0;
var p = this.data[v][O];
return m.Utils.isDefined(p[j]) ? p[j] : 0
}, v
}(),
K = function (v) {
function O(O) {
var j = v.call(this, O) || this;
return j.tutorial = null, j.kennel = null, j.encounters = null, j.quests = null, j.house = null, j.backpack = null, j.achievements = null, j.state = null, j.tt = !1, j.userID = 0, j.appearanceChanged = !1, j.chatID = null, j.emoteID = null, j.danceID = null, j.grade = null, j.world = null, j.coOpTeam = null, j.earlyBirdLastChance = !1, j.transformID = null, j.currentVideoSkillId = null, j._isFocusModeEnabled = !1, j.appearance = new B(g.a.instance.prodigy.gameContainer.get("c32-1188")), j.equipment = new U, j.backpack = new S.a, j.achievements = new A.a, j.encounters = new M.a(g.a.instance.prodigy.gameContainer.get("668-164f")), j.kennel = new P.a(j, j.encounters, g.a.instance.prodigy.gameContainer.get("668-164f")), j.quests = new G, j.state = new F, j.house = new N, j.house.setItems(j.house.data), j.tutorial = new H, j
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "isFocusModeEnabled", {
get: function () {
return this._isFocusModeEnabled
},
enumerable: !1,
configurable: !0
}), O.prototype.createRandom = function () {
this.equipment.setHat(T.a.getRandomItem("hat").ID), this.equipment.setWeapon(T.a.getRandomItem("weapon").ID), this.equipment.setOutfit(T.a.getRandomItem("outfit").ID)
}, O.prototype.canCatch = function () {
return !1
}, O.prototype.getID = function () {
return this.userID
}, O.prototype.init = function (O) {
return !!v.prototype.init.call(this, O) && (m.Utils.isDefined(O.userID) ? this.userID = O.userID : m.Utils.isDefined(O.id) && (this.userID = parseInt(O.id)), m.Utils.isDefined(O.data) && (this.data = _.a.getObject(O.data)), m.Utils.isDefined(O.pets) && this.kennel.populateKennel(_.a.getObject(O.pets)), m.Utils.isDefined(O.tutorial) && this.tutorial.setData(_.a.getObject(O.tutorial)), m.Utils.isDefined(O.state) && this.state.setData(_.a.getObject(O.state)), this.house.setItems(m.Utils.isDefined(O.house) ? _.a.getObject(O.house) : this.house.data), m.Utils.isDefined(O.inventory) && (this.backpack.setItems(_.a.getObject(O.inventory)), this.backpack.consumeLegacyBounties()), m.Utils.isDefined(O.quests) && this.quests.setQuests(_.a.getObject(O.quests)), m.Utils.isDefined(O.achievements) && this.achievements.init(_.a.getObject(O.achievements)), m.Utils.isDefined(O.isMember) && (this.tt = 1 === O.isMember), O.appearance && O.appearance.morph && (this.getPlayerData().playerTransformation = {
transformType: O.appearance.morph.type,
transformID: O.appearance.morph.ID
}), this.encounters.setData(O.encounters), O.isTowerTownEnabled && (this._isFocusModeEnabled = !0), this.name = g.a.instance.prodigy.gameContainer.resolve(I.a), this.name.init(this.appearance.getName(), this.appearance.getGender()), !0)
}, O.prototype.initFromProtobuf = function (v) {
var O = null,
j = null;
v.appearance && (O = {
hair: {
style: v.appearance.hair.styleID,
color: v.appearance.hair.colorID
},
eyeColor: v.appearance.eyeColorID,
skinColor: v.appearance.skinColorID,
gender: v.appearance.gender,
face: v.appearance.faceID
}, v.appearance.morph && (j = {
transformType: "" !== v.appearance.morph.type ? v.appearance.morph.type : null,
transformID: v.appearance.morph.ID > 0 ? v.appearance.morph.ID : null
}));
var p = null;
v.equipment && (p = {
boots: v.equipment.bootsID > 0 ? v.equipment.bootsID : null,
hat: v.equipment.hatID > 0 ? v.equipment.hatID : null,
weapon: v.equipment.weaponID > 0 ? v.equipment.weaponID : null,
outfit: v.equipment.outfitID > 0 ? v.equipment.outfitID : null
});
var m = null;
v.name && (m = {
first: v.name.first > 0 ? v.name.first : null,
middle: v.name.middle > 0 ? v.name.middle : null,
last: v.name.last > 0 ? v.name.last : null,
nick: v.name.nick > 0 ? v.name.nick : null
}, O ? O.name = m : O = {
name: m
}), this.init({
appearance: O,
equipment: p,
data: {
level: v.level,
team: v.team,
playerTransformation: j
},
isMember: v.member,
userID: v.userID
})
}, O.prototype.hasMembership = function () {
return this.tt
}, O.prototype.setMembership = function (v) {
m.Utils.isDefined(v) ? this.tt = 1 === v.isMember : this.tt = !0
}, O.prototype.transformPlayer = function (v, O, j) {
if (void 0 === j && (j = 0), v === E.a.Player) this.getPlayerData().playerTransformation = null;
else {
var p = w.a.get("GameConstants.MorphMarbles.MORPH_DURATION_OVERRIDE");
m.Utils.isDefined(p) || (p = j), this.getPlayerData().playerTransformation = {
transformType: v,
transformID: O,
maxTime: p,
timeRemaining: p
}
}
}, O.prototype.isPlayerTransformed = function () {
return !!this.getPlayerData().playerTransformation
}, O.prototype.getAttacks = function (v) {
return void 0 === v && (v = null), m.Utils.isDefined(this.getPlayerData().spellbook) ? this.getPlayerData().spellbook.length < 6 && (this.getPlayerData().spellbook = this.getAllAttacks().splice(0, 6)) : this.getPlayerData().spellbook = this.getAllAttacks().splice(0, 6), m.Utils.isDefined(v) ? D.a.getAttacksOfType(this.getPlayerData().spellbook, v) : this.getPlayerData().spellbook
}, O.prototype.getAllAttacks = function () {
var v = D.a.getAttacksFromCurve(O.LEVEL_CURVE, 1, this.getLevel());
if (m.Utils.isDefined(this.getPlayerData().spells))
for (var j = 0; j < this.getPlayerData().spells.length; j++) _.a.inArray(v, this.getPlayerData().spells[j]) || v.push(this.getPlayerData().spells[j]);
return v
}, O.prototype.getNumAttacks = function () {
return this.getAllAttacks().length
}, O.prototype.getNumRelics = function () {
return this.backpack.getItemCount(["spellRelic"])
}, O.prototype.getBaseMaxHearts = function (O) {
return v.prototype.getMaxHearts.call(this, O) + 200
}, O.prototype.setDefault = function (v, O) {
"male" === v ? (this.appearance.setHair(19, Math.floor(5 * Math.random() + 1)), this.appearance.setFace(4)) : (this.appearance.setHair(5, Math.floor(5 * Math.random() + 1)), this.appearance.setFace(12)), this.appearance.setGender(v), this.appearance.setEyeColor(Math.floor(5 * Math.random() + 1)), this.appearance.setSkinColor(null != O ? O : Math.floor(5 * Math.random() + 1)), this.equipment.setHat(0)
}, O.prototype.getLevelingCurve = function (v) {
void 0 === v && (v = null);
for (var j = [], p = 0; p < O.LEVEL_CURVE.length; p++) {
var m = O.LEVEL_CURVE[p];
m.lvl === v && j.push(m)
}
return j
}, O.prototype.getAllowsHouseVisitors = function () {
return !!m.Utils.isDefined(this.getPlayerData().allowsHouseVisitors) && this.getPlayerData().allowsHouseVisitors
}, O.prototype.getPlayerData = function () {
return this.data
}, O.prototype.setEnergy = function (v) {
this.data.energy = v
}, O.prototype.getGold = function () {
var v, O = y.a.validateInt(null === (v = this.getPlayerData()) || void 0 === v ? void 0 : v.gold, 0);
return O < 0 && (O = 0), O
}, O.prototype.getTowerProgress = function () {
var v;
return y.a.validateInt(null === (v = this.getPlayerData()) || void 0 === v ? void 0 : v.tower, 0)
}, O.prototype.getBattles = function () {
return y.a.validateInt(this.getPlayerData().battleCounter, 0)
}, O.prototype.getWins = function () {
return y.a.validateInt(this.getPlayerData().win, 0)
}, O.prototype.getLosses = function () {
return y.a.validateInt(this.getPlayerData().loss, 0)
}, O.prototype.setAllowsHouseVisitors = function (v) {
this.getPlayerData().allowsHouseVisitors = v
}, O.prototype.hasMaxQuantityOfItem = function (v, O) {
return ["currency", "follow", "hat", "outfit", "boots", "weapon", "item"].indexOf(v) > -1 ? this.backpack.hasMaxQuantityOfItem(v, O) : "dorm" === v && this.house.hasMaxQuantityOfItem(O)
}, O.LEVEL_CURVE = [{
lvl: 1,
a: 31
}, {
lvl: 5,
a: 32
}, {
lvl: 12,
a: 33
}, {
lvl: 22,
a: 34
}, {
lvl: 38,
a: 35
}, {
lvl: 52,
a: 36
}], O
}(C.a)
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.DefaultItemsReceived = "DefaultItemsReceived", v.TutorialCompleted = "TutorialComplete", v.ShroudTutorialFirstTime = "ShroudTutorialFirstTime", v.ShroudTutorialCompleted = "ShroudTutorialCompleted", v.FlingUnlocked = "FlingUnlocked", v.FlingTutorialComplete = "FlingTutorialComplete", v.StoreFirstPurchaseComplete = "StoreFirstPurchaseComplete", v.DefaultFramesReceived = "DefaultFramesReceived", v.StubbornShadowTutorialOneCompleted = "StubbornShadowTutorialOneCompleted", v.StubbornShadowTutorialTwoCompleted = "StubbornShadowTutorialTwoCompleted"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(1),
m = j(0),
g = j(491),
y = j(28),
_ = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O._onSelected = new m.Signal, O._selected = !1, O._isSelectionLocked = !1, O
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "onSelected", {
get: function () {
return this._onSelected
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "isSelectionLocked", {
get: function () {
return this._isSelectionLocked
},
set: function (v) {
this._isSelectionLocked = v
},
enumerable: !1,
configurable: !0
}), O.prototype.setSelected = function (v) {
this._selected = v, this.applyCurrentState()
}, O.prototype.isSelected = function () {
return this._selected
}, O.prototype.onUp = function (O, j, p) {
!this._isSelectionLocked && this.currentState === y.a.Down && p && (this._onSelected.dispatch(), this.setSelected(!this.isSelected())), v.prototype.onUp.call(this, O, j, p)
}, O.prototype.destroy = function () {
this._onSelected.dispose(), v.prototype.destroy.call(this)
}, Object(p.__decorate)([Object(m.serializeSignal)(), Object(p.__metadata)("design:type", m.Signal)], O.prototype, "_onSelected", void 0), Object(p.__decorate)([Object(m.serializeBoolean)(), Object(p.__metadata)("design:type", Boolean)], O.prototype, "_selected", void 0), O = Object(p.__decorate)([Object(m.componentable)("Toggle", m.EComponentPath.ui)], O)
}(g.a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return p
}));
var p = function () {
function v() {}
return v.A = "A".charCodeAt(0), v.B = "B".charCodeAt(0), v.C = "C".charCodeAt(0), v.D = "D".charCodeAt(0), v.E = "E".charCodeAt(0), v.F = "F".charCodeAt(0), v.G = "G".charCodeAt(0), v.H = "H".charCodeAt(0), v.I = "I".charCodeAt(0), v.J = "J".charCodeAt(0), v.K = "K".charCodeAt(0), v.L = "L".charCodeAt(0), v.M = "M".charCodeAt(0), v.N = "N".charCodeAt(0), v.O = "O".charCodeAt(0), v.P = "P".charCodeAt(0), v.Q = "Q".charCodeAt(0), v.R = "R".charCodeAt(0), v.S = "S".charCodeAt(0), v.T = "T".charCodeAt(0), v.U = "U".charCodeAt(0), v.V = "V".charCodeAt(0), v.W = "W".charCodeAt(0), v.X = "X".charCodeAt(0), v.Y = "Y".charCodeAt(0), v.Z = "Z".charCodeAt(0), v.ZERO = "0".charCodeAt(0), v.ONE = "1".charCodeAt(0), v.TWO = "2".charCodeAt(0), v.THREE = "3".charCodeAt(0), v.FOUR = "4".charCodeAt(0), v.FIVE = "5".charCodeAt(0), v.SIX = "6".charCodeAt(0), v.SEVEN = "7".charCodeAt(0), v.EIGHT = "8".charCodeAt(0), v.NINE = "9".charCodeAt(0), v.NUMPAD_0 = 96, v.NUMPAD_1 = 97, v.NUMPAD_2 = 98, v.NUMPAD_3 = 99, v.NUMPAD_4 = 100, v.NUMPAD_5 = 101, v.NUMPAD_6 = 102, v.NUMPAD_7 = 103, v.NUMPAD_8 = 104, v.NUMPAD_9 = 105, v.NUMPAD_MULTIPLY = 106, v.NUMPAD_ADD = 107, v.NUMPAD_ENTER = 108, v.NUMPAD_SUBTRACT = 109, v.NUMPAD_DECIMAL = 110, v.NUMPAD_DIVIDE = 111, v.F1 = 112, v.F2 = 113, v.F3 = 114, v.F4 = 115, v.F5 = 116, v.F6 = 117, v.F7 = 118, v.F8 = 119, v.F9 = 120, v.F10 = 121, v.F11 = 122, v.F12 = 123, v.F13 = 124, v.F14 = 125, v.F15 = 126, v.COLON = 186, v.EQUALS = 187, v.COMMA = 188, v.UNDERSCORE = 189, v.PERIOD = 190, v.QUESTION_MARK = 191, v.TILDE = 192, v.OPEN_BRACKET = 219, v.BACKWARD_SLASH = 220, v.CLOSED_BRACKET = 221, v.QUOTES = 222, v.BACKSPACE = 8, v.TAB = 9, v.CLEAR = 12, v.ENTER = 13, v.SHIFT = 16, v.CONTROL = 17, v.ALT = 18, v.CAPS_LOCK = 20, v.ESC = 27, v.SPACEBAR = 32, v.PAGE_UP = 33, v.PAGE_DOWN = 34, v.END = 35, v.HOME = 36, v.LEFT = 37, v.UP = 38, v.RIGHT = 39, v.DOWN = 40, v.PLUS = 43, v.MINUS = 44, v.INSERT = 45, v.DELETE = 46, v.HELP = 47, v.NUM_LOCK = 144, v
}()
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.AcademyCommonRoomSignage = "699fc753-98db-4284-992a-f7fa5943fffe", v.AcademyTowerExitPopup = "81b1f0c0-a916-418d-819e-503b6cf2e1db", v.AcademyTowerExitSign = "f510a78c-c78e-4925-aa9a-f39e27e598d7", v.AcademyTowerGotoNextFloorPopup = "ce934a91-04c7-426f-8f15-e0e7cf286b95", v.AcademyTowerProgressHUD = "69653e47-a7bd-4d50-9d61-5e472da55d51", v.AchievementCard = "f027a0e2-6d68-4e54-93ec-8e98fe5c2fe9", v.AchievementCardWithReward = "4ce8d681-6a12-4845-b10f-ebf42407afde", v.AchievementScrollview = "7aa91b45-f736-468b-a230-f701e4e5d537", v.AdAutoCurrencyEvent = "89fa7581-e485-4b95-ae5c-6f4921b20e10", v.AdAutoTitanEvent = "65d4dc62-feb5-4865-8639-ee7a45f9e2eb", v.AdAutoXPStarEvent = "bfb47856-78c9-40b3-a61a-bea081f80625", v.AdBacking = "545d11fe-d959-46f7-a5ec-fd87b7b99485", v.AdGoNowTemplate = "deb4a8a1-51f0-426b-b93e-e10124aac6f5", v.AdImageTemplate = "e614e66d-6b42-47f9-8cfa-08ed393f42a7", v.AdOpenVideoBase = "4ab7d0d5-5304-4c57-9a27-db2268af61ec", v.AdTeleportBase = "cb7c9d1e-812d-4ba7-9033-c8b90d9d9fe2", v.AdUltimatesImageTemplate = "8760e766-0703-4cfb-900f-e57d5ff417d7", v.AdUltimatesTemplate = "4789d69d-6af5-4935-96bf-2bce636323c1", v.AdVideoAndGoNowTemplate = "6f1b9955-bab3-41ad-b547-25edaeb5ede9", v.AdVideoTemplate = "7f569c4c-25b8-4b44-8177-526b8ab8157b", v.AddFloor = "18ef3003-27e5-46fc-b71a-e59165184d9a", v.AdventureMap_BossBases = "34022fb5-3e06-4f9e-9e7d-afc2d3a5d223", v.AdventureMap_BossRewards = "cdd7bfe7-ebda-4a1c-80b1-e023608200b3", v.AdventureMap_ItemSlot = "39470ffd-5db7-49e5-9b0b-3365f386c002", v.AdventureMap_RowCurrent = "137f95a6-1efe-40bb-b5e3-5d73da563226", v.AdventureMap_RowDone = "f74b757b-499d-4d7e-82bc-44870a73d7ec", v.AdventureMap_RowUnrevealed = "50342091-df38-4d10-86d5-4b62ab768233", v.AdventureMap_ScrollViewLarge = "0cbeb534-cf83-4788-97c4-bb7bceed8e84", v.AdventureMap_ScrollViewSmall = "9da76592-c6fd-4435-873e-df5681edb1b9", v.AdventureMap_Template = "1de822c9-13b3-4b99-aded-e340240c382c", v.Adventure_Chest = "5997e7d2-1e39-4dcd-923e-d9596703a358", v.Adventure_Crate = "d17939e1-10d6-4fae-8695-1a70059c7564", v.Adventure_CrateItem = "02c62104-a3c5-44ad-acbc-d02398349e1f", v.Adventure_CrateMonster = "7e90ec3c-2d07-4fe5-b988-71712f531108", v.Adventure_EmptyCrate = "2d9e07e9-e5c9-4328-ad3d-7b76921e093f", v.Adventure_GolemEncounter = "b3424a57-d677-4d5e-9094-046c94cb3365", v.Adventure_MakaluEncounter = "20f58865-7c92-4b2c-9e8b-e44b024fa102", v.Adventure_MemberChest = "695f8d56-8dee-413f-acb7-d8d1d269286b", v.Adventure_Monster = "4ba5ecb4-f37b-4222-a1f0-723ca2ed5cfa", v.Adventure_SnowPileItem = "9db71127-4b69-474b-a14f-2f8e14492157", v.Adventure_SnowPileMonster = "75c94731-e067-4b07-ae7d-53520eff2dd8", v.Adventure_SnowPileTemplate = "8334b8dd-a9a3-45c7-918d-38deaa562c04", v.Adventure_Teleporter = "f640ee73-5520-4062-be29-72bae4e60e6e", v.Adventure_YetiEncounter = "3261fd98-0e15-4334-9f66-7ccd7991ee92", v.AncientTrialLockedDialog = "5591e0ad-ecc6-494a-9121-4f4f9171fee2", v.AnimatedSpineCreature = "1c053f80-afa4-4de7-83a9-7bd8658b01cb", v.AnimatedSpritesheetCreature = "3af064db-2afc-493c-930a-0b5591be4729", v.ArenaChestsContainer = "f23663c4-440a-4c4f-8d47-d91ee72e5b15", v.ArenaDivisionIcon = "73d018c9-176b-4f9a-ad9f-bb62d5fc4aae", v.ArenaDivisionTrophyCount = "078a5b4a-0019-46e7-a078-df1d9ffa46ab", v.ArenaLeaderboardList = "043bdba6-97c8-45ce-9ecc-1752efb7065c", v.ArenaLeaderboardPlayerCard = "bda88deb-aca1-423c-bf56-6ed7f614a5d9", v.ArenaModalDialogBackgroundBase = "a67c78cd-5248-4c80-be20-c1628ba91b03", v.ArenaPlayerLoadout = "8f7c6c8a-9d45-4e7f-8f7c-ab52017dca0c", v.ArenaPlayerLoadoutEditor = "e91873dd-cf4a-43bb-893f-31102f45108f", v.ArenaSeasonForeground = "f249ac19-1c03-424b-9cec-71ef1ca0bc0c", v.ArenaSeasonProgressBar = "b18a2200-71d6-4b84-8953-bc2b2fb1d2cc", v.ArenaTeleporter = "3824fd5e-d75f-4db5-9ef7-4bdaf8e25b77", v.ArenaTeleporterTarget = "1363552b-404e-4934-8a63-e3722ac40985", v.BannerDialogBody = "fe2b6457-7aa9-42b9-bcc9-c47ef41b8eb6", v.BannerDialogFooter = "9e0a7aab-93ac-4980-946e-25035091b8b2", v.BannerDialogHyperlink = "76ac585a-4bec-4c1b-958c-76d19b28dd8e", v.BattleCastSpell = "e8281bf1-1e28-4240-9568-9d6669265283", v.BattleEnergyOrb = "5f0eacd7-0dcd-4326-9856-4a20f3601365", v.BattleOverlayText = "ae5bdf4f-d891-4452-ab71-647090e19bbe", v.BattleResult = "5c305e63-28e3-4cca-8be4-5910196c4d5f", v.BattleScene = "1ac4dce7-c3a2-4341-ac23-02a5a4f6615e", v.BattleTeamHUD = "7c097985-7087-4043-abc7-985918c9c5d4", v.Battywork = "a405b70f-e6de-4ae6-8f3f-beed6d9ff4c2", v.BlueLargeButtonTextAndIconRight_RectTransform = "988176d0-042d-48e6-89a1-4e74ea299ed9", v.BlueLargeButtonText_RectTransform = "956e86c9-3164-409d-9601-4ee7a68f22ff", v.BlueMediumButtonTextAndIconLeft_RectTransform = "12a01b2f-9bdc-4562-9fe9-5b385632cd61", v.BlueMediumButtonTextAndIconRight_RectTransform = "4872669c-77d5-4f02-96ac-dca4174fc076", v.BlueMediumButtonText_RectTransform = "2040e562-f68c-4c50-a6fe-1261dd1a266c", v.BlueSmallButtonTextAndIconLeft_RectTransform = "cbfdca48-c3aa-438f-a67f-4d26d317e74d", v.BlueSmallButtonTextAndIconRight_RectTransform = "fd84b30d-b484-4f4d-9b46-e9f3976001cb", v.BlueSmallButtonText_RectTransform = "f70cce4d-e26c-4b8d-8ec4-13d249d99897", v.BodyMultipleTrophies = "c2a0bc7a-2fee-4e7b-a32c-62e32f4f90c5", v.BorderlessVideoPlayer = "0b7c3353-6edc-4c40-992a-8a23cae62ee3", v.BossChest = "2142f025-9e21-4f6b-a964-6cfef5d1bc6d", v.BossRewardUI = "384bdfdf-ce86-4f1c-9f7b-be95d344b250", v.Boss_icon_slot = "d0dcb964-e294-44c8-b39d-65aae4346034", v.Boss_icons_row = "7564f48e-bfa9-4b94-96ae-e628e30d3b7b", v.Boss_reward_missed = "b451c4b0-180b-402d-840b-26f383d0edfc", v.Boss_reward_revealed = "14284996-79c0-44c2-a36b-9cffece19bc4", v.Boss_reward_unrevealed = "dd3d3de4-5a08-42e2-92df-510a9ec718e6", v.BountyBoardCard = "d6e4a580-1b94-4c5d-b77b-f390863f8ba4", v.BountyBoardLootItem = "aedb7485-8e26-498c-8b7d-e717987c08f7", v.BountyCardBase = "bcf28ad1-373b-4fd7-bc43-1e159725341d", v.BountyRunBasicChestSpawner = "bc4f37ea-dd54-4a7c-97d5-9f64e3a9b2c8", v.BountyRunBossBoostDisplay = "156dbee9-e95d-4694-93c6-03b7aa8e98c5", v.BountyRunEncounterSpawner = "30f45757-15fb-4e3d-84e0-5d0e7c24f5a4", v.BountyRunHealstone = "e1442215-f547-4d1e-8b20-bd9952bb9b2c", v.BountyRunInteractableSpawner = "21ab0b7c-d369-4ba6-9787-24d385447f1d", v.BountyRunMemberChestSpawner = "a3d578cd-085b-4c7d-8d5c-5ac2728b517a", v.BountyRunScene = "dbe28384-132d-4ba1-9597-f5693a5c2e47", v.BountyRunTeleporterBase = "92fe4952-eb5c-47bb-8bf3-0fc019d6c49a", v.BountyRunTeleporterEasy = "5b6e5f17-5c5e-432b-a31b-2e8d726b7e0c", v.BountyRunTeleporterEnd = "f0105505-d0d4-41de-882b-db53c4cf184c", v.BountyRunTeleporterHard = "920cf589-b733-4530-a515-0cb2cf52197d", v.BountyRunTeleporterStart = "cba4e27b-007a-421b-ae3d-ca80bb7725f7", v.BountyRunTestMap = "ec303811-f85f-413f-9634-8caabfd06d2f", v.BountyRun_EnemySpawn = "1913f297-e6b6-4361-9eb6-080f71921f87", v.BronzeChest = "0d729724-f289-4e92-af91-33c01bc80ec2", v.BronzeDivisionBadge = "f6c73014-0236-41e8-a800-3377f3445a6f", v.ButtonBaseMediumBlue = "4e3cf812-02d1-4a90-8611-bc2783f08f82", v.ButtonBaseMediumGreenA = "2762f59d-5aa4-4257-ad69-76cc508bf31d", v.ButtonBaseMediumGreenB = "ddcc451d-87d8-43eb-85de-d5583367adfa", v.ButtonBaseMediumRed = "0d57eaa5-96d9-4270-aacc-917e8957dcae", v.ButtonBaseMediumWhite = "b9e3faf7-de48-4a5f-85dd-bad1dbae21e9", v.ButtonBlueMediumTextAndIconRight = "34247c91-a5c8-43d6-a462-2f24c20a0c50", v.ButtonGreenMediumTextAndIconLeft = "ed74cc80-3253-4820-9368-488434b7a019", v.ButtonGreenMediumTextCenter3States = "ed80cdbb-c6a6-4560-b28d-548a6f586f61", v.ButtonGreenMediumTextCenter4States = "0f5e554e-6640-4f35-aa08-5d9103c77231", v.ButtonGreenMedium_LargeTextCenter3States = "71a7c42f-f624-4ac1-882d-256ae0566f2c", v.ButtonRedMediumTextAndIconRight = "e3bccf0e-2afd-4f08-a113-0e653b79a2d7", v.ButtonRedSmallTextandIcon_RectTransform = "6f2053ec-0878-4085-a82c-82a175a34a24", v.ButtonWhiteLargeIconOnly_RectTransform = "b6eead11-6a94-4926-b209-a48c833fb284", v.ButtonWhiteLargeTextAndIconLeft = "5d45505f-721b-4c3c-b81f-7c862c3a172f", v.ButtonWhiteLargeTextCenter3States = "78543d0f-99f7-4779-85a0-fd5b4f1d8658", v.ButtonWhiteMediumIconOnly_RectTransform = "37b4be5c-46be-4db7-8830-a427be35944f", v.ButtonWhiteMediumTextAndIconLeft = "65207ca3-d40d-4e8f-a241-cc7f33ca9bdb", v.ButtonWhiteMediumTextCenter3States = "05bee47c-6bee-4961-b90b-9e47dbcbf6d7", v.ButtonWhiteSmallIconOnly_RectTransform = "d35485e1-ba06-4762-a8eb-8309202d1bbd", v.CTR3SpringfestAd = "ac514889-4da6-48d5-87aa-466390fc728f", v.CTR3VideoMenu = "445d5673-7b53-43d1-b8c5-4be32170061f", v.CameraControlHUD = "ee399d49-98ac-4e40-a608-ddb51f4c0e87", v.ChallengeAncientPopup = "36cb2e5d-2f22-478a-ba0e-ab457e71cae3", v.CharacterDialogGeneralButton = "504d0d3f-da75-43dd-92ba-fe5a30187a98", v.CharacterDialogue = "fc803f64-b097-4a02-9ccd-065a52f64d9f", v.ChestContainer = "358d439c-9469-437f-a4d2-f0141aee13b5", v.ChestRewardPopupFactory = "2900f01c-02af-4819-92ab-5b8f5cb70b4c", v.ChooseFloorLook = "9bedbfff-f5e9-47aa-bc9b-22ccfb0904d1", v.ClassCodeSection = "79470531-f247-41ab-9eae-7fe353f669e2", v.CloseButton = "5207b7a8-d8f8-47e0-9db3-4998301c1df8", v.CloseButtonSmall = "b942553b-a06a-4c8c-b0a0-160effb3ec7f", v.CloseButtonSmall_RectTransform = "c83f5774-380a-4bcd-9704-37b75eb535ac", v.ClosedRedRectangleMessage = "0be93aaf-2599-432b-8319-d25b7d3e4023", v.ClosedTag = "24ec6c09-a2d4-4872-8d10-f8fdf8951a10", v.Coffee = "b7a4af27-45c8-44c1-8e2d-c13e60c914dd", v.CompletedParentSection = "82acc4ed-cae0-4424-9bbe-27456d90adab", v.Confetti = "55dd2d85-d0ef-4e64-9941-a1bdf15510cb", v.ConfirmationDialogBody = "68cb0ab3-f4df-48b6-97e3-b51008bec534", v.ConfirmationDialogFooter = "4c912ea4-5042-49b0-ac2f-137cca73c26f", v.ConfirmationDialogFooterWideButtons = "0d366e67-7073-4a92-86ba-f92b9782ad83", v.ConfirmationDialogHeader = "30e7a29b-11ba-43b2-bd47-44bd53e31c69", v.ConjureCubeButton = "da1613c3-b786-49a9-a25c-0a6a5e7671a7", v.CornerQuit = "e5ecea46-b0a0-47ea-a0d6-fce83e3ea403", v.Cosmicworks = "3b3ada7c-845b-403a-b292-07d6058fef32", v.CrystalCafeStore = "9e6845cb-93e4-4780-8567-058bf635f143", v.CrystalCaverns1Streaming = "1dd59d6e-6bbc-44e8-b50f-80b60ed4abb0", v.CrystalCaverns_FixTracksTutorial = "4ebfee10-3b01-429e-a815-a5a2afdad49c", v.CrystalCaverns_GlaciasEncounter = "4d35970b-6c0d-4a82-a0ea-b49acdeece27", v.CrystalCaverns_MinecartTutorial = "2acaaf48-000f-48b0-8160-d7116868ee2e", v.CrystalCaverns_Phase1 = "d0886b67-9670-4eef-b452-0cd4f0a42d19", v.CrystalCaverns_Phase1Blocker = "c60bce9b-9f18-46f0-a29f-dcb64da8fbaa", v.CrystalCaverns_Phase2 = "c6982a43-eb94-41bd-8684-777ab5bd19c7", v.CrystalCaverns_Phase3 = "5f41427d-83e6-4de4-ac63-f14d0fc3447e", v.CrystalCaverns_SceneBase = "1579afec-dff4-41a0-936f-4111f4f96cb3", v.CrystalCaverns_WinstonVonLootEncounter = "c211f913-5ab3-4244-8fb5-1ef606760b42", v.CrystalCaverns_WinstonVonLootPost_Battle = "b611fcac-649e-4993-b135-3a29c49b870f", v.CurrentBounties = "3bba2a66-fa68-432e-875a-7f24223ff0d0", v.CurrentMemberChestRewardsPopup = "afc9e698-77b8-4aae-af6d-31898c9f4faa", v.CustomKeyboardLetter = "93877c15-e507-46d5-9534-31fba16886bd", v.DefaultBody = "01eb52e2-1dc9-4f65-99b7-157604cc777b", v.DefaultFooter = "c8062699-3d21-4fbd-9e5d-af23e8a9f969", v.DefaultHeader = "a9e11847-274a-406c-8599-93e017f4bc61", v.DialogBanner = "d17a542f-7dd9-43cb-ba9d-9fa34eb31e22", v.DialogMedium = "69bad6cf-14b6-412e-a50c-292cc979727a", v.Dialoglarge = "e19ecfda-8a24-4a40-92bd-035c7c7e79f2", v.Dialogsmall = "223de309-a870-4aed-adaa-5cbe162c5659", v.DivisionChestRewardPopup = "cc44b924-9b89-45a1-93c3-d957262ad0c2", v.DungeonCompleted = "43a6e25e-06ba-402e-98b6-633e2c9018b7", v.DungeonHealstone = "28bc7b7d-291a-429d-a618-5dfa0b0ed829", v.DungeonLoadingScreen = "2c1a7a79-398b-4c1e-acec-e877db67468e", v.DungeonMinerNPC = "64d59196-1650-40cf-ba3d-0e1ba89f5063", v.DungeonPlayer = "c4f5f284-e29c-489b-bc3d-3d093f71ba11", v.DynamicAppearance = "d52e1378-ee03-46d7-94a4-eabe3a7726ab", v.DynamicProgressBar = "9b53da2f-8af0-4c29-801e-5572b4069455", v.DynamicSpinePet = "7baf54d3-a94f-4217-a02c-de7a432d6473", v.DynamicSpritesheetPet = "f98eb440-a797-4315-96fa-58c36a040b47", v.DynamicallySizedNotificationBadge = "ecf56d28-6b95-4e39-add2-2527fae268b4", v.EGGuardianBattleMap = "8c28dd05-f858-4a22-b49f-44e0508da235", v.EGGuardianBattleMap2 = "af453859-a3bb-45f4-8137-ec59b3843a52", v.EGGuardianTeleporter = "6b3964e2-d7e7-4b09-9269-0fd0510607e6", v.EGHubMap = "cc2a740d-91ad-4148-af3f-ba8565d5a2b9", v.EGHubTeleporter = "71f54c3a-e70f-475b-be02-ac446e464434", v.EGMapCrystalBase = "22b45ec9-fe31-4cd5-a1f0-39aafecf1a89", v.EGMapPlant0 = "9048c6aa-ce8d-425d-9c14-efeb73cb3055", v.EGMapPlant1 = "87a018f2-463a-4df5-8282-a1baf5d2abe0", v.EGMapPlant3 = "9d21ed51-3879-4e7c-a998-a2403b193965", v.EGMapPlant5 = "cbfbce18-4263-4f68-b6ad-ccd75b3fc45f", v.EGMapPlant6 = "ce8b1180-02b5-4ce7-8e0d-f64739a1300b", v.EGMapRock1 = "aa2a8aa2-2eae-4e74-bebe-cc95eb57c917", v.EGMapRock2 = "a6b0b5e6-04f5-4156-a113-77d6f0ed461c", v.EGMapRuin2 = "cbe930d4-390b-479c-adc3-45983a21357c", v.EGMapRuin3 = "2148f49b-9ee4-4e60-ae71-60637575caa3", v.EGMapRuin4 = "dc392e6f-3bb5-4c22-ab64-1ece78d4b720", v.EGMapRuin5 = "079367aa-95f4-4a69-b611-0d8f5cadd88d", v.EGMapRuin6 = "563a4fcf-fd69-48f7-a33f-3aeb9cbbab12", v.EGMapRuin7 = "9107925c-10db-48c5-8be3-c79442878f50", v.EGMapTree1 = "b8fe6772-4e70-45db-ac94-03807d2c29cf", v.EGMapTree1_E1 = "f2d8e404-9426-4bc3-997b-20ee9614787b", v.EGMapTree1_Ripple1 = "4f4ca7b6-9e03-44d4-a7f5-f254372fe451", v.EGMapTree1_Ripple2 = "f4b85b2b-0865-4e0f-8bc2-92a42f9a9297", v.EGMapTree1_Ripple3 = "16a826f9-8d6d-4e6d-92bb-2c67fb5aa5a8", v.EGMapTree2 = "1c1e6d7f-cf57-456b-bb6e-7002dfd06b9e", v.EGMapTree2_E1 = "12dc2816-1bc7-4c91-8ec2-49f9e71fc56c", v.EGMapTree2_E2 = "dc9fe622-a67a-4b88-bdf3-f91931f84ac2", v.EGMapTree2_Ripple1 = "c913c045-2053-469f-aae9-64cabf3e22f8", v.EGMapTree2_Ripple2 = "53fe1e6b-3e89-4750-9a82-80ef6b7a3da7", v.EGMapTree2_Ripple3 = "14c030c3-e163-4167-a472-d57062c278a9", v.EGMapVeg2 = "84f91d37-1a29-423a-8869-7d6df2d58411", v.EGTeleportEffect = "9c798ef5-555b-4c03-b7c3-213652d21fa3", v.EGTikiTorch = "3c7dd26d-b97a-47f4-bd2f-78c59d1c51aa", v.EGTorch = "00d18425-5436-453f-aabb-2507cbfb8886", v.EditLoadout = "4e547add-25b8-4120-8c3f-abd47ad321fd", v.EditableLoadoutOrbSlot = "914cb856-6ae8-4492-bd57-195b4727dfe0", v.EditableOrbInventoryIcon = "2100645f-a74d-432b-9cbb-240600dbd60c", v.ElementalGuardianLoadout = "e71144dd-f093-4a36-b40b-79330b2c402f", v.ElementalGuardiansBountyBoard = "5b15b8d1-d9b9-4d50-90bc-e2420a380a8b", v.ErrorDialogContentRefresh = "a407adcf-e270-4c84-a40f-9ba0bd93d3b4", v.ErrorDialogFooter = "fc95e252-4c38-4cb9-bfe9-38839c054e00", v.ErrorDialogHeader = "20afb102-02db-45e7-b3d6-5c0985965a1a", v.FestivalChest = "209a53a5-e164-440f-8a03-e453015ab1e7", v.FestivalDateDisplay = "cf39a436-7856-4d41-960e-be932be6201d", v.FestivalMenuWeekReward = "e08bc592-7acd-4cca-9b14-7127e2011f44", v.FestivalMenuWeekStatus = "07b2384d-e4fa-4c87-9f53-c50d941cb8db", v.FestivalProgressBar = "762eb7cf-17c4-4936-9f9b-be4dea669179", v.FestivalProgressDialog = "bf41ddc8-c352-4705-8d44-b3dd9f30f37e", v.Firework = "cf900e63-412d-4e36-a708-1808d347e79f", v.FirstNameCellPrefab = "af3d0a70-f46e-4bdc-90a8-78b13e9e75d6", v.FirstNameSelector = "0591ca90-f9c8-43af-a85b-5629e9c71bf6", v.FirstNameSelectorScrollBar = "cc209739-9ca6-4781-8b81-d2369dab2477", v.FloatlingFlingResearchPointPanel = "48ee416d-121b-45d2-83ed-37f0c5f2ffe7", v.FloorDecorationPlacer = "c7179c8b-30a9-409a-8eb3-d132b660c0ac", v.FloorListLargeItem = "423af034-ebdf-406b-9ebb-18421ed7caa8", v.FloorListSmallItem = "c955c422-dd5f-42ce-bf12-bf7b04e17ab1", v.FloorLook = "8e2aed7d-ab4e-4424-814a-b2b169891551", v.FullScreenSpinner = "ace6a730-c3d8-485d-8e18-5d3206bf8d32", v.GoldChest = "0ab532ea-6c66-409f-8869-f030fbca04c6", v.GoldDivisionBadge = "44c2887e-33bb-4079-b86d-eb6c51355254", v.GreenLargeButtonTextAndIconLeft_RectTransform = "4143b4b9-7cc5-4088-9e07-edd2eb9409cc", v.GreenLargeButtonTextAndIconRight_RectTransform = "826fde9e-0f3a-4ae2-b50d-13940715f87f", v.GreenLargeButtonText_RectTransform = "43705ebf-a99d-4052-ba1f-db23639584e5", v.GreenMediumButtonTextAndIconLeft_RectTransform = "3909edca-f54d-4cad-90d7-6af556567289", v.GreenMediumButtonTextAndIconRight_RectTransform = "3528ffb5-8832-4313-a612-c502cd69d9c4", v.GreenMediumButtonText_RectTransform = "529faa7d-c2b9-4093-be2c-e846a7108135", v.GreenSmallButtonTextAndIconLeft_RectTransform = "8e9027db-2ad9-484f-8cf8-bcde815666ad", v.GreenSmallButtonTextAndIconRight_RectTransform = "579ffa03-9580-492c-ad39-52b5e4c1ab41", v.GreenSmallButtonText_RectTransform = "29f4b7f5-e3ba-446e-8cfc-72b5989ea676", v.GuardianLoadoutCard = "77758c5c-fc35-42f3-af54-b2afd2c62bae", v.GuardianStoneSpawnerLoreTablet = "d31a96eb-8190-4bc0-8a2c-93df4ce837d8", v.GuideHand = "171721fb-5707-4ca6-a63a-720ceb050943", v.HItoArenaPopup = "5c4a143c-6103-4499-b9d5-354947fc4ca8", v.HItoArenaPopup_EGHub = "04d027a6-0c1f-44ca-8533-0b4cdbf1625d", v.HUDMenuBar = "bfea05f6-bb3d-472d-ad13-2601f2f565e1", v.HUDMenuBar_House = "3e8bba0f-fc57-4411-8180-ac8948aa48ed", v.HUDMenuBar_Reduced = "2b053c1e-a454-4a8d-9cae-f9f435829ce9", v.HarmonyIslandAbandonDialog = "0704badf-9000-44e0-af63-42de090cfe62", v.HarmonyIslandErrorDialog = "147e34f5-e1a4-4186-8d71-b1760e105081", v.HarmonyIslandInitOrbError = "1c141553-8b65-4dd6-9398-3e4e458f8ddb", v.HarmonyIslandPart2Ad = "c2b1f0d2-b105-4e84-a25e-4767eb5d891d", v.HarmonyIslandReleaseAd = "04c98e28-ed1f-416c-81d3-4fc0784cf51a", v.HatStoreAdvertisement = "65b1cc51-052b-4ee9-8c52-4b808d009a57", v.HeaderTitleSubClose = "c778624c-abce-49cf-8363-426fee511af0", v.HopWalkCreature = "e3df5753-c17c-4b08-9627-11d136a75347", v.HorizontalFixableMinecartTracks = "25901cbc-1f86-46bf-9b6b-494de314da2f", v.HorizontalMinecartTracks = "e647a8e2-fa3c-4aa2-94f8-c1a652a734af", v.IceTowerBetaPopup = "6681990d-e0bb-405f-96d5-959779ec0ca8", v.Icyworks = "fed14908-e145-4d1a-ae31-7fe23cc1fccd", v.InfinityTowerProgress = "1f0be7f9-b5b9-4c2a-a34a-33db79e712d6", v.InfinityTowerTopRightContainer = "f80b20e9-24ce-4f0c-852f-09efd8903b32", v.InfoSection = "d2cdc4f1-9e27-4b36-ad39-9b9c6d9d8558", v.InformationDialogGraphicBody = "514acf6d-258c-4830-bc54-7acda35afa20", v.InteractableBush = "027d61cb-8ec9-48f2-9ae6-5d202b1afac9", v.InteractableLeaves = "b7b5dd59-f0bb-44b8-bae6-29ed6e99fbd4", v.InteractablePlant = "8950987c-6f03-4f45-a161-a2fdcb48d11b", v.InteractableSparkles = "cb02d3b3-66a3-428a-86eb-9ce6ff58f707", v.InteractableSpineBase = "f3c0de9d-4197-41ce-8506-9b9b3ee59a86", v.InteractableSpineRepeatable = "0526a8bd-8dff-4ecb-a9af-7deecbabd66b", v.InteractableSpineSingleDisappearing = "37e9abcd-f9e8-4759-a14d-a69c44d42833", v.InteractableSpineSinglePersistent = "354ee9b9-050b-4c02-962e-57dce14347c9", v.Interactable_BonfireCrate = "2521f763-4cda-4591-a900-a22b2165e0a6", v.Interactable_BonfireFlower = "6a8dfea7-4502-4076-bd16-b836a8c26dd8", v.Interactable_FireflyFlower = "8b5b7081-710b-4561-95b6-8962e2647505", v.Interactable_FireflyTrapBox = "9f91a551-bd15-4b87-a372-609aeb7f32c1", v.Interactable_ShipwreckChest = "071a9314-cf6e-4f72-96e3-1178184c8740", v.Interactable_ShipwreckSandPile = "d7f0d300-5a11-402c-8e3f-19799012508b", v.Interactable_ShiverchillCrate = "a0d3dd32-5238-43b2-b475-603291ec6c92", v.Interactable_ShiverchillSnowpile1 = "9e3ab9de-9b8a-4f21-8b6f-29edc0a1ba40", v.Interactable_ShiverchillSnowpile2 = "699b2e8b-3fa0-41d7-a611-5afa37d8a5db", v.Interactable_ShiverchillSnowpile3 = "edb041a3-1ca6-4227-aad1-375d9f64152f", v.Interactable_SkywatchBalloon = "fcae3fa5-7f32-4534-a4f5-b681d2703bdb", v.Interactable_SkywatchValve = "58577cd9-84d6-4ed6-aecb-a29fb9caaee4", v.ItemCard = "3c5fc766-a784-48e9-b076-d45a0cfd1b1c", v.ItemCardLockedBackground = "e3dc2984-f573-42cf-baf0-f1378b58701e", v.ItemCardRarityCommon = "bde236b5-b4e9-487e-98bb-260b68e1d508", v.ItemCardRarityCommonNoShadow = "c9340a5c-d410-4835-bcd7-3e5f27a61e5c", v.ItemCardRarityHeroic = "1d3b76f4-fb53-4c1d-82c2-3ab22372b314", v.ItemCardRarityHeroicNoShadow = "7dda15a9-d786-486c-9699-214c9d303c15", v.ItemCardRarityLegendary = "af47e456-af04-48ad-b12c-0c798e11f16f", v.ItemCardRarityLegendaryNoShadow = "b5d1f28e-d15d-4144-92b1-4597be72a854", v.ItemCardRarityRare = "89946068-4db0-4ddb-bccb-16d2581aa2c4", v.ItemCardRarityRareNoShadow = "f44accf3-0868-4fee-9903-4a6a31cb7d17", v.ItemCardRarityUncommon = "33921ba4-9f23-4b2f-b2b0-e2353ab80abc", v.ItemCardRarityUncommonNoShadow = "08f72fe4-cf27-44e9-9b22-eca718b4c84b", v.ItemCardSimple = "352d96fd-87a0-42c6-86ba-f5f5f2fbd199", v.ItemIcon = "2521a48e-7f55-4879-ac68-dd74bd1487a2", v.LamplightLockedPopup = "096c42b7-328f-4c0a-96c5-b73a6d5ae0a3", v.LargeButtonTextAndIconLeftBase_RectTransform = "f45d1d33-8e2f-4c9c-a47e-4cf1db19a1ca", v.LargeButtonTextAndIconRightBase_RectTransform = "7f9a4ec0-0d90-4b0f-a4f9-025a93bca33e", v.LargeButtonTextBase_RectTransform = "6f82f043-fad8-4549-b8ee-777661f42659", v.LearnMoreBody = "4213f26e-6502-4e1c-a0ab-155a252792fa", v.LeaveLamplightConfirmation = "decb2378-402e-4aa8-8c3c-60d53a3eb645", v.LegacyBattleNewIndicator = "1f087df3-8054-49d5-9146-e745fe16d006", v.LegacyEpicsChoiceCard = "c7db91ad-cca1-4b93-9d2e-7405e26fab5d", v.LegacyEpicsChoicePopup = "62f060d8-fe93-442f-8ee8-8fd134c62dc0", v.LegacyFollow_BabyReindeer = "12c7cd6a-8528-4f37-9db3-2c37422cfdad", v.LegacyFollow_BabySnowman = "81140ff9-5019-4538-909e-ecd0f4a96508", v.LegacyFollow_BarnOwl = "7858415c-b99f-4f6d-bff3-d9bf5e66f8dc", v.LegacyFollow_Beagle = "d9b2b923-1cef-4701-bb6b-66cf4fb18a7f", v.LegacyFollow_BlueParrot = "5673ba5e-d1a8-40b2-8cfd-2d91fdca9977", v.LegacyFollow_BrownHamster = "817a489d-a299-4873-8889-d37f96a20879", v.LegacyFollow_CalicoCat = "223a0cdc-8788-46dd-8654-96526508df14", v.LegacyFollow_Chameleon = "56e2cb99-bcff-4bc1-ab86-1631fc1c82c8", v.LegacyFollow_CloudSheep = "35f406ed-3d0e-41d7-b9c6-a5286ba584dc", v.LegacyFollow_Cockatiel = "e64ef4fa-2ae2-46f2-bfd8-ae4dab232e46", v.LegacyFollow_CuddlyCactus = "91e32f85-b86e-4024-874e-c0d6352fc92d", v.LegacyFollow_FlameSalamander = "8f9744b7-1e48-4b25-af31-e983dad3cfe1", v.LegacyFollow_FlowerTurtle = "4cb02221-b4fe-46b8-ad53-3ac666ae9d81", v.LegacyFollow_Fox = "31fe7b8f-b748-437b-9069-dee8587d8014", v.LegacyFollow_Gecko = "5e758c86-4462-4abd-9a4e-fa1b0fbcf0f7", v.LegacyFollow_GreyCat = "ff3837c0-5acb-4f1d-9581-b42634a9a5f4", v.LegacyFollow_GreyParrot = "8089f5bf-ad38-42e8-ae5b-6c77b9d60e2e", v.LegacyFollow_HornedOwl = "84b152d0-8202-420c-89bc-22a129ede8bf", v.LegacyFollow_Husky = "64f957f0-95ab-49a4-a8f1-8fb2d412962f", v.LegacyFollow_LeopardGecko = "c74886af-7e0d-41b1-b347-cf2b5ced4885", v.LegacyFollow_Penguin = "5072a2e8-93eb-478c-900a-80b8a6649496", v.LegacyFollow_PurpleOwl = "62292d8d-279f-406b-93ff-cfaf076b58aa", v.LegacyFollow_RainbowPanda = "80b17525-4e04-44a3-9c71-27b895a4e024", v.LegacyFollow_RedParrot = "cf0cfdeb-04d0-4218-8fb6-be4c31a186f8", v.LegacyFollow_Saber_ToothCat = "df4c4416-f741-4a2d-8f3a-a4417fc592c6", v.LegacyFollow_Shepherd = "4d7789ce-6b07-459b-9580-67fdd9f0ad4e", v.LegacyFollow_ShibaInu = "f3ec331d-35b8-421e-90a7-314ef44f0887", v.LegacyFollow_SiameseCat = "ac2837f7-5ccb-4059-8a74-ee2267b28eae", v.LegacyFollow_SparkleHamster = "8be164c6-81de-425c-84ea-7f0f5101ca4c", v.LegacyFollow_SparkleKitty = "1e2a857c-8213-4425-8264-bccffe30bf18", v.LegacyFollow_SparklePuppy = "903f80d7-8550-4469-a299-291251fe5cdf", v.LegacyFollow_SpottedHamster = "da4c7159-fbb2-4b7c-9f96-1b88e91b7c88", v.LegacyFollow_Steam_PoweredRobotBird9001 = "f42ddee5-4e78-44bd-bd3d-d9cbdb586bea", v.LegacyFollow_TabbyCat = "0b599ffd-5823-4b6b-930a-af1d4411f111", v.LegacyFollow_Turtle = "cfa2a157-1044-46cc-b7f7-fedc7f1a9efd", v.LegacyFollow_TuxedoCat = "aba7150b-4e2b-41db-8f88-9833a7905e5e", v.LegacyFollow_WhiteCat = "49a3cb34-0e8e-44fa-9087-da28f6ac3262", v.LegacyPlayerHead = "9e1081ce-6b5b-44b0-a3bb-17f03b746d32", v.LoadingOverlay = "04e0b298-53ac-452c-9f4f-477ee891cee2", v.LoadoutEditor = "63644092-6e0c-4008-b9bf-56e052e13bda", v.LoadoutMaskedPlayerIcon = "74a944e6-b977-4ab1-8676-62f6b3fa0852", v.LoadoutTeamPetIcon = "3a8f6b3a-fdb4-40e2-bb2f-f510c8dc7970", v.LoadoutViewOrbSlot = "2d92dc5a-4bf9-40e9-9e8d-e3927b0b006c", v.LoginPage = "dde06240-581b-4a49-ac08-1a678b4670f5", v.LootItemCard = "336e0c9c-cd1c-4301-b52a-b98e5fa5d9ba", v.LootItemCardwithQuantity = "bd404e85-187e-4418-a4c8-8138c889808a", v.MainDungeonPlayer = "34dc3421-4b81-4317-ba07-c49c197a17ed", v.MapLocationDialog = "bb95e49c-7053-4edb-9bb2-2d22a1a4d8fd", v.MaskedPlayerIcon = "3508c69a-337e-47fb-b694-9bd81bcf0200", v.MathTowerFloor = "096be956-d921-4b01-94cf-5296b2ad9dee", v.MathTowerShroudLock = "a1bd4731-a40a-4891-8cfd-6556e741c10d", v.MediumButtonTextAndIconLeftBase_RectTransform = "174e9865-8ac6-459f-abed-f6049c437d8a", v.MediumButtonTextAndIconRightBase_RectTransform = "c9d3b0f0-1385-4b5f-b73b-f755384c6d06", v.MediumButtonTextBase_RectTransform = "dc93dfc6-5aa8-4521-b827-d85cc1ccb7a7", v.MemberChest = "baf20088-5ecc-4def-941a-b0a57a0b74a1", v.MemberMartItemCard = "cb5e8924-3786-4bf9-bba2-093015746764", v.MemberStore = "5f381732-e54c-4979-b8fd-aca5397c8c6b", v.MemberSuccessVideoPopup = "fb7e84ef-e017-4834-a0ce-4cc11dffc8d2", v.MembershipSuppressionTooltip = "eb5a918a-3042-44ba-ae91-40445f35e8fc", v.MembershipSuppressionTooltipMenu = "8898a24e-c4c6-450b-b682-005af5b15d6b", v.MembershipVideoAd = "a77d89fb-0220-4cc8-b50d-d84720b2dfd5", v.MembershipYouTubeAd = "c37e0a92-7388-453a-9b3e-da705f84c1f9", v.MinecartSuppliesPile = "80fe2449-99e6-4f0d-bdd6-8179802906cd", v.MinecartTrackBoard = "c36b4076-771b-4e60-abaf-ddf0d4c86930", v.MinecartTrackRail = "94e1fe77-0dbe-4bbf-95e5-ea707007ed5c", v.ModalDialogBackgroundBanner = "cba8f9c9-b62c-4873-a571-57e29977ae5c", v.ModalDialogBackgroundBase = "2a318f65-0bae-4e36-b551-84f93be3eede", v.ModalDialogBackgroundLarge = "51511cac-c7c9-4d10-bb33-a78c42f5ec68", v.ModalDialogBackgroundMedium = "8aa8df9a-e2ed-4751-9188-d0527e41fbab", v.ModalDialogBackgroundSmall = "cb5675f1-a15c-4e61-9a93-feceb823d6e1", v.ModalDialogBackgroundX_Large = "54d80c70-5534-4a9b-86b2-208d52e07772", v.MorphMarbleIconSpine = "37a4238b-4bcf-4da7-9853-d249281c53fc", v.MorphedLegacyFollow = "99b8c066-153f-4b64-8f31-f013999bd6e8", v.MorphedSingleImageDorm = "7f4c0349-a4c2-471e-849e-418bc6f30b9a", v.MorphedSpineFollow = "67a7bd11-9c7a-42e4-a18d-3ee7e70ca835", v.Mount_CloudMount = "432cc4d2-be65-4a34-b1af-bd6415121788", v.MoveFloor = "c16c8fac-546e-4a8f-9699-96afe7d42bf2", v.NPCAspenFrost = "fd48539b-0b8e-4e4b-9e3e-ada16d096a68", v.NPCIndicator = "982b5f6c-e362-46df-95c3-6405f0a99286", v.NewBadge = "1a8e7925-9d17-495d-a588-bf0cfe636b1c", v.NewMemberChestRewardPopup = "dbbab5c9-3c7c-47ab-a896-3a757191aa1b", v.NewTownPopup = "6026dfea-1840-4632-a262-e0fefbfb2d37", v.NonMemberChestRewardPopup = "bcf8417b-6359-43e7-9785-2210028b6d20", v.Npc_kandi_korn = "b4abfa7e-97d4-4d44-b342-75a6bc828896", v.OneTimeEvolutionMenu = "b8cee333-14b0-4f38-91ef-e97c88af9320", v.OpenPWAInstallMenu = "e741c190-7589-4ab2-9a85-8668b3c4210a", v.OpponentCard = "b55a5daa-5286-4981-bca3-65a1fbeadfb0", v.OpponentCardManager = "373cceb4-7f45-4036-8a49-7de1c3ac67d6", v.OptionsMenu = "da0068bc-3803-4b05-8bda-f76f96a91a8b", v.OrbInventoryItem = "e260bc51-a481-463f-b2a8-d371934176e6", v.OrbInventoryTray = "b4933d6f-4730-445d-b4d9-d80153ea1e38", v.OrbSelection = "34d38842-b451-4a6d-9c0c-bb815b376e79", v.PVPArenaFTUE_Lobby = "dfeb3c65-9c38-451b-84a2-30695868d579", v.PVPArenaGate = "f5f8abfe-6766-4981-ad51-edc544561bf8", v.PVPArenaNPCArenaMaster = "dd4dc09f-9d51-40b5-8846-6393951c2bdd", v.PVPArenaOutsideTrophyCase = "da6bd42e-06e0-4dc5-b976-caf20800ba67", v.PVPArenaSignpost = "34a7a6af-968e-460b-8f8e-802b9ba7440c", v.PVPArenaTrophyCase = "b388ddef-c031-4e98-ae1c-e32975e7fb00", v.PVPArenaTrophyCount = "c248c8b1-4fae-42ed-8ef5-800be0d43eb3", v.PVPArenaUnlockedDialog = "97c8db6d-57ea-4be2-aff8-aba319fed26f", v.PVPAudienceMember = "666f2649-ace0-4696-9780-d034685220e2", v.PVPBattleConfig = "5b7fa77c-e106-49d1-8a50-fd30d6add7d0", v.PVPBattleScene = "ec371e9c-5108-48dc-91dc-f90e204868ad", v.PVPErrorPopup = "4f8ef35e-4f88-4a91-8504-50aa4c0b818c", v.PVPLeaderboardManager = "b89030af-5691-4493-b95b-6c55914a363d", v.PVPLevelReachedPop = "dff034f0-d1e4-4863-aa9f-9fc92e92467f", v.PVPMenu = "2d7788b8-e481-4f5d-aa39-b8c52ac29170", v.PVPPostBattlePopup = "82920f4f-16e2-49d0-b138-0e3189f59769", v.PVPPostBattleProgress = "4202a0d0-28c6-42e9-a685-23e8452513ff", v.PVPSeasonCompletePopup = "c9d43dce-e6fe-4893-be1a-57c7bd5d199c", v.PVPSocialDetailsRedirectUI = "0779b9be-f064-41cc-86d0-1880bb1fd21b", v.PVPWelcomeBack = "2ec4f959-a938-42d8-9dc4-c81d2aa10ee6", v.PWAEntryInitialization = "a898481f-808d-48dd-91db-cb9441348489", v.PWAErrorPopup = "505ae35e-457c-4dfb-a633-170572a4cdd7", v.PWAInstallMenu = "a36349f7-a54a-47e2-9847-3400811999f7", v.PWAInstallMenuBase = "2df094ca-b6bd-4ca1-aeb3-be207554ddba", v.PWAInstallMenuBaseSmall = "757fd180-0ff6-45e1-97c2-aa98f96f555b", v.PWAInstallMenuNoIncentive = "eb5cd5c8-25dd-4f7f-a72b-441a22e0f741", v.PaintBalloon = "e93677d9-c599-40f5-a1e0-29f8e18703ff", v.ParentAttach3 = "212a3c6e-0113-4c17-a647-f0362a5203c9", v.ParentSection = "819901b9-7cf0-4541-b1fb-e873f8c2dc3b", v.ParentalConsentBanner = "9dd203ff-6a15-4b0b-8d33-a049e2d40c81", v.ParentalConsentModal = "9f59a705-5589-4573-a782-afde8c8164b0", v.PathingStar = "9518748a-13e3-4f2e-852b-4e42bd85ca02", v.PetAboutInfoCard = "76bfd317-9e3d-4aaf-ac97-6feec08665a4", v.PetEvolutionDisplay = "4f7f09f0-0fb5-426b-b9c5-d127f0d91564", v.PetEvolutionPanel = "aad8dee1-2f6d-4a5c-9089-7a43f94b25af", v.PetEvolutionSequence = "7149027e-4544-4c4d-bc36-cf4311018916", v.PetInventoryScrollview = "239994b5-7083-45e2-a3ad-e50ca244de35", v.PetQuestInfo = "b8f1822d-03b5-4810-bae3-26ba898324c1", v.PetRescueExperiment = "5f1fc64c-f981-461c-967d-de22ba1c1500", v.PetStatsInfoCard = "bb0e4fe9-0e05-42b9-a1c6-8661eb5af225", v.PetTamingTaskProgressCard = "a49b5e5a-be60-4e4d-bd7d-d17997631f50", v.PetTamingTaskStatus = "c73d11f1-e4b7-41d6-bf14-a7b77d9c479d", v.PetTamingView = "af15c3bd-ba60-44ff-a3a6-b92fd7809ad6", v.PetTasksTab = "be90c9bf-2ec5-4056-93a1-e110fb943698", v.PetXPBoostFTUEPopup = "ff0b8d68-96a0-43f1-ae16-43d04f32bcf3", v.PetsHomeScreen = "6c070d30-d2d9-4f65-ba99-0e0c593e0374", v.Pets_Background = "deaf21f9-e416-437b-a348-38cf09bf8023", v.Pets_BackgroundPetBook = "366bbcde-0f91-4f9b-ba36-11537a853b13", v.Pets_BackgroundYourTeam = "1a816b0b-02b3-47ce-9d20-9a7728707697", v.Pets_ButtonTooltipOwnedPanel = "89bc34ad-a329-4d95-9d0a-81345dd3842b", v.Pets_ButtonTooltipTeamPanel = "dece6029-923b-43a5-b114-dce4e3c77c93", v.Pets_CarouselCreaturePreview = "510f2023-d98b-4671-be05-143e5accc46a", v.Pets_CustomDialogFooter = "c50c7501-139f-4d4d-a18c-8d07dfd8fa50", v.Pets_EmptyTeamCard = "fab69025-5aaa-4f86-b4c4-eea77d7b3734", v.Pets_FilledTeamCard = "7b25559d-d6f2-4a16-9d0c-24d2b9fe1118", v.Pets_LeftSideYourPetPanel = "ad005f96-ace1-427f-b7eb-a84d0fe6264a", v.Pets_MenuHeader = "603e642d-43f7-435d-adf8-111edc412559", v.Pets_OwnedPetCard = "83b0a5fd-afac-4336-b35c-d56592e8b7c6", v.Pets_OwnedPetsScrollviewPanel = "6a8bfe5b-80a8-4f8f-96ba-8355ca13383b", v.Pets_PetBookCard = "48479669-ed5a-4848-b260-343ab900084d", v.Pets_PetBookGridandUI = "fd5f0b3c-4985-4063-8578-592845359f4e", v.Pets_PetBookMenu = "d43edf90-57c6-44c0-b4df-01ea8fc2921b", v.Pets_PetEvolutionInfoPanel = "5a328e09-a4ef-4738-9aa9-1cb8d760826d", v.Pets_PetInfoMenu = "08027796-5d46-4e0a-b0aa-c428f0cf56f9", v.Pets_RightSideStatsPanel = "02b7bd8b-fea0-467c-aa98-5ab25670607c", v.Pets_TeamPanel = "4b2943f7-f0a7-4a6b-a86a-18b49719e0c2", v.Pets_TeamSwapUI = "3bdc600b-52e8-4267-b091-6c86ad4fd630", v.Pets_YourPetMenu = "bf29d664-f591-431c-af02-dfa8ec0c6b57", v.Pets_YourTeamMenu = "ad167b80-ec13-4619-95fe-198a3dcf76c5", v.PlayerLoadoutEditor = "99756734-c409-4a1c-9e2b-fb184385abfb", v.PlayerSummary = "7885b29f-39fc-4577-8145-63dfbceff6e5", v.PrefabAdTest = "f7e5db39-39fb-4bea-8b2a-1515077d59d6", v.ProgressBar = "026d935c-bcf3-4a4d-85fa-c757e464b020", v.ProgressBar200 = "56cd1746-83d6-43a6-b809-b1600abbcda4", v.ProgressMenuBase = "77a246b8-5f31-49c0-bc5a-ceccb805e439", v.Pumpki_poof = "503b6560-6454-44ce-897f-fb674c4de2a7", v.QuestGoalsInfoPanel = "47d51729-60f2-4943-9464-3df8c015ecab", v.QuestGoalsMain = "be6aefb5-aad2-4a1b-8d6a-818eea460b1a", v.QuestGoalsMenu = "99671b13-0b6b-4112-83a7-9198e5c55dbc", v.QuestGoalsTutorial = "8c331030-82c6-46f7-80d8-d5b19acc55be", v.QuickRenovationComponent = "be607cec-dcbd-4d1c-8f61-40ff7286279f", v.Rainbowworks = "af62580e-21e5-492c-95fd-1f9269b8dce4", v.RandomPlayerAppearanceLegacy = "b6fa975a-3c68-4fbd-8dbf-7b310fbb0ea5", v.RealLegacyFollow = "34b23e5f-0dff-43b8-bfff-90d1bf005095", v.RedMediumButtonTextAndIconRight_RectTransform = "81a31dc9-e710-409f-abe0-575f12761e94", v.RegistrationCell = "2e7d24a5-a7aa-45b5-9269-8cd3f972f4b4", v.RegistrationChooseCountry = "48eb9712-a0ad-4a6d-93f4-f0c9c7dbbd23", v.RegistrationChooseGrade = "5b26adea-cd56-478d-b787-f979e78cc136", v.RegistrationChooseName = "fd4a87c7-bd55-4dd1-9811-7be2859b9e20", v.RegistrationChoosePassword = "1a445a03-4696-4255-863b-ce63cbb0753c", v.RegistrationChooseSub = "71356bbf-7525-4350-be62-6a28d6efce72", v.RegistrationClassCode = "f8fad4de-39bd-4ae8-8e72-e0a9b1ee7c06", v.RegistrationCountryButton = "e0eb302d-d4cf-4162-a1a8-fa14b2e1ad01", v.RegistrationGradeButton = "6dfe4559-a044-40e8-850b-8b2496516e27", v.RegistrationHeader = "9282f708-e29e-4427-b9b6-450b710542ad", v.RegistrationHomeorSchool = "6ea9f2e8-3440-4c31-a895-d4d00b218d5a", v.RegistrationScrollBar = "f6dbd550-f849-4254-8c96-490327804add", v.RegistrationScrollView = "c3f4f422-e0a6-48ed-92ae-5b98281ee2bd", v.RegistrationSection = "7c530624-38bd-4e98-b6a9-4023db5660bf", v.RegistrationSignupSchool = "521eb027-0b88-479c-aa01-70f6b9598d70", v.RegistrationSuccess = "9349868c-3a29-47fe-8e77-ee003c8252e5", v.RemoteDungeonPlayer = "534113f9-fd78-4330-96cb-60ae8bd5e6bf", v.ReportPlayerPopup = "ea6aaff6-8dbc-4a64-8e11-819a603da40a", v.RescuePetPrompt = "63bc22d8-bce0-4e82-824d-5437f51107ef", v.RestartDungeon = "dfdd5ce8-8445-43a0-aaf0-3ab6d5b7d8d1", v.ResultsSkipInteractable = "9df8feaf-d5fa-4eb1-b5fb-9e8d49104c19", v.RideableMinecart = "7a3692c0-8cef-4962-a759-bcdd049a3184", v.RightSideHUDManager = "b5240209-033e-4227-a4d7-fa95a3ec3330", v.RooftopMastery = "60197ca4-edac-4623-a47c-0d949ddff287", v.RoomInfoStoreSideBar = "a4ce522d-ec9a-4f59-9875-15041ffdb810", v.Save_trigger = "4d8a543d-f259-4399-8bd9-95984910a158", v.ScreenSizeSection = "6181e9e3-bd5d-4e4c-827a-714e370e960e", v.SeasonProgressBackground_Bronze = "9d679a90-8501-4940-9516-82850969e803", v.SeasonProgressBackground_Gold = "8950c958-8bca-4c31-a8d6-fbd0720ca4e1", v.SeasonProgressBackground_Silver = "3419ced9-d7aa-41bd-9e5a-d6be9d8beb29", v.SeasonProgressChestRewardsManager = "0124ca74-995c-4ac0-94cd-5882208a64ff", v.SeasonProgressParallaxManager = "fa5bf8a3-11a4-40cc-a01b-741011b0cb0c", v.SeasonProgressScreen = "b609e72a-928c-48d6-ab30-829f4fe7a705", v.SeasonRewards = "aef5d065-6408-4e5e-a6f5-bdc395ce578e", v.SeasonRewardsCard = "419e1bcb-9354-4eae-8ab3-a650c4188540", v.SeasonTimer = "86c8c8fe-6fb5-47a5-81b8-00b9f9c91810", v.SecureBattleUnit = "811ff008-78cc-4ed3-bc80-3275890ff601", v.SecureBattleWaitingMessage = "c32fbece-26d7-43b7-bcad-698cd540b465", v.SilverChest = "5933364b-663b-40bb-84ac-ad2865a29a99", v.SilverDivisionBadge = "7b7e6f0d-4f5b-4fcf-981d-6e0bfdf041c1", v.SmallWarningMessage = "34767edb-4b03-48c6-b2eb-c150132d4b97", v.SmokeCloud = "6658ac4f-8942-4f2a-9694-49a5942f0e9a", v.Snowball = "e604ea87-d9c3-4fd2-b572-bdbaf660949a", v.SoundSection = "3e59e756-697c-46e5-9d68-6d6f024bfc5f", v.SpeechBubble = "22c5392d-7342-40aa-a40e-2ed4d599fc20", v.SpineFollow = "1e5c1c74-9b7e-4484-b118-d4023d624ac2", v.SpinePet = "606e07d8-e4dc-46fe-bd18-20fd59e29dc1", v.SpinePetFollow = "e776d8a6-115a-46fa-b2e8-00ce0241d654", v.SpringfestAboutMenu = "36b154b4-241f-4339-907b-3f9677d6e5b8", v.SpringfestProgressBar = "7b377a29-dc5a-4bca-8838-c6a6c900a881", v.SpringfestProgressMenu = "47070187-ba72-4128-a873-cba32f6c48a4", v.SpringfestProgressTier = "3087ecc6-97e0-4ca0-bc4e-5070828671eb", v.SpritesheetPet = "770d667d-f843-4269-95d6-3e1496233792", v.SpritesheetPetFollow = "4c780a71-5340-4cd3-84f0-a188391b8edb", v.StarlightFestivalAd = "070c7f92-2031-4aaa-b70b-a941bb3e1ca1", v.StaticAd = "02fdb444-8d07-4d29-a6e0-d838bd055fd2", v.StaticAd_EvolvePets = "cd7aebb2-b11c-4d0a-b42b-6375df078236", v.StaticAd_LevelUpFaster = "84d242fd-9351-49af-b7bc-80c63b642562", v.StaticAd_MemberBoxes = "6caba0df-9b6b-492c-afeb-b99819731377", v.StaticAd_MemberChests = "21b3713a-c1fc-400e-93fd-5549bff7bbbc", v.StaticAd_SoMuchMore = "77d7d87e-aee7-4586-88fb-b32c02aba256", v.StaticUltimatesTamingMeter = "006002b6-7b3c-4d69-8532-7f14bdcb4b00", v.StayLeaveModalDialog = "b22652bb-f0ef-4d81-be04-655b16e3a779", v.Store = "cb8a15b2-266f-4c7f-8d76-4df2e6128ea3", v.StoreRightPanel = "1a6c4a6b-6b28-4bd7-87c9-d6b85bd5214e", v.StoreTooltipAuto = "4a389156-2c69-4e74-8790-d55d464823f3", v.StoreTooltipManual = "36e72540-094c-4907-8f7f-e80dd07cc418", v.SubspaceMythicNotification = "b75dac05-c121-4cc7-b533-b5ddfd760082", v.SubtitleTitleHeader = "69c4ab16-bd61-4b1c-a899-9591324cb922", v.SupportDialogBody = "f098c29c-b502-49e6-a6ff-be7b70e95fb2", v.SupportDialogFooter = "4188e5ff-c5e3-48ab-8ed6-6447c2ac7665", v.SurveyAnswerPrefab = "65d81152-57d7-4976-a35d-866f93ae5815", v.SurveyOpenEndedAnswerPrefab = "16b34b84-6ca3-4641-9353-aac17071c28a", v.SurveyPrefab = "a82ab69c-02a3-40c8-a834-8385a80aebf1", v.TeamSummaryGrid = "612a1513-1a3b-4595-897a-86520dd1085f", v.TeamSummaryOrb = "48eaae11-08d6-4d6a-861a-d307655ad48e", v.ThreeStateCloseButton = "51050525-d8bb-4fcc-8db6-6a5bfa19a9e6", v.TidusAdVideo = "70c0a518-8be9-4213-880a-9e969145fbb8", v.TintableBanner = "924ac7e2-049c-4c98-8d9d-d59683000f3e", v.TitanDeadPopup = "940aa9a9-d8ba-40fe-8460-c2fd906a0187", v.TitanHealthThresholdAd = "200fc881-d6dc-4673-ae90-0f6e9fda7f67", v.TitanProgressBar = "bd1006eb-d5b1-4e58-b836-7b91368f2211", v.TitanProgressMenu = "5d5ac319-7b6f-475a-adfa-9c52aa02881f", v.TitanProgressTier = "d4d45271-c335-4236-84ad-8255bad372d8", v.TitanRewardsMenuBanner = "4135e928-81d6-4e19-83f3-d44e060a971a", v.TitanTeleportAd = "2326a266-af06-471d-91ac-2922aa209e6e", v.ToggleImageButton = "1a6b96e1-7505-4786-935e-cc99b5903dfa", v.ToolTip = "02ad1891-5703-477d-9de8-14148e9aff74", v.TooltipSpeech = "04b2dca3-c52e-4fef-afd3-171d8e1ee624", v.Tooltip_RectTransform = "fc775cb1-3fc9-4ca9-a6c4-44e09fb241bd", v.TopHeavyBody = "50d655d4-5e85-46c8-8e46-c33a449ca975", v.TopHeavyHeader = "23cb292f-e6e2-4f3c-88a5-fcaf8bdf179c", v.TowerTownHUD = "f0279fc2-fd10-44ee-b6d9-15c1635f42bb", v.TowerTownInProgressPrefab = "14227a70-675e-4dda-90ec-13013d75df46", v.TowerTownMallInterface = "632ea709-d268-4aa0-8792-4c0957c1829c", v.TowerTownMallScrollBar = "905106d0-0376-4006-8dbf-5852c553ee6a", v.TowerTownMallShopComponent = "91e08ac0-7aa4-4a2b-853d-b1850d86c32e", v.TowerTownShopScrollView = "ac3e6cab-d35e-4a46-bcc7-f3603b0186a8", v.TowerTownShoppingMallStore = "3cf83603-330a-4678-b0d4-2168d2f2eaee", v.TowerTownStoreItemDescriptor = "40a830be-16fe-4c13-99ed-24cf2d2acfaf", v.TowerTownUpdate = "57697f5a-34d8-4d25-85e3-0770f71f4b3e", v.TowerTownUpdateCard = "4ef72dff-a973-467c-8f7d-35883c5ec2a5", v.TowerTownUpdateInterface = "72fcf275-814c-406d-a7fd-a38cd3abaf51", v.TransformRelayFanfare = "7a9d0bf7-8454-4ec2-a98c-0d2bddf7f7d7", v.TransformRelayObject = "44cb5816-7653-4c8b-941f-27905efa541b", v.TransformRelayTitanFanfare = "864476a6-ef2d-4318-907e-993311b4c168", v.TutorialTag = "e691781a-5ef1-43fc-b1c4-1113ea9ad0da", v.UltimateBattleTeamHUD = "533091ab-295a-4cfe-8125-bb510b2f2642", v.UltimatePet = "a83cc8be-012b-4407-90b7-50c4f8d16238", v.UltimateProgressCard = "9c4f6c89-7f71-445e-8471-2a3ea3c9629c", v.UltimateTaskUI = "aba58103-a05e-47e6-90fb-8dcf6f46756b", v.UltimateTrail = "ca953f32-108c-4330-b4f7-7cf333d21598", v.UltimatesBattleHealthBar = "07a17daa-a30a-41e8-8a5c-341c2141910d", v.UltimatesBattleScene = "2561442e-2c52-47f9-9a7e-2a20636e4498", v.UltimatesInventoryCard = "5c30e061-478b-4eb3-aa29-cb10ee3c1ffa", v.UltimatesItemTradeCard = "b1c32946-40e5-4300-a9e1-ffebeca08c8d", v.UltimatesItemTradePopup = "e60eb95d-edd6-4059-aa5f-277638962bf4", v.UltimatesMembershipUpsellScroll = "53040e67-7fd4-4c57-8487-4b481b136848", v.UltimatesPlinth = "daa42dbd-2f77-4659-be6f-0f5c6422a99f", v.UltimatesTaskTooltip = "47738785-da61-4792-91cc-0995fc41df51", v.UltimatesTrialPostBattlePopup = "94ea5ff7-4ff7-485c-b768-b460294fea5e", v.UltimatesTurnCounter = "6aa5e0b9-7545-4667-94a1-ae40a3a30948", v.UltimatesUIManager = "25c946c9-e3b7-4b38-8ab6-23f677edea32", v.UltimatesWanderingNPC = "0ca8c9f6-2491-4de5-9bbd-5bd7f11c4279", v.UltimatesWanderingNPCBeginTrackingPopup = "ec57fae7-32d4-47e6-8d8d-7e29facca662", v.VerticalFixableMinecartTracks = "2dc4e86e-6667-4d39-9938-48539933a198", v.VerticalMinecartTracks = "48c32834-70fd-494c-bd4b-5d685c06eee1", v.VideoPopupDialog = "2f9ad04e-f86f-434e-beb3-482c05a3e99e", v.WanderingNPCTrail = "0b472392-029d-4f18-b03a-30585867d61c", v.WaterBalloon = "6c13c725-e537-4bb4-8692-f60ed2d0a86a", v.WaterBalloonInstructionPanel = "8527f4be-1522-4ceb-8161-c45c61d9b553", v.WeeklyChallengeDialog = "9b5ae8cd-bfba-40e0-bbc7-32784e6165e6", v.WeeklyChallengeMain = "54affc1b-d1b7-42b3-a6ad-cd14f5bccce5", v.WeeklyChallengeRewardDialog = "15e898ca-b84f-4012-bb0b-686247d7c475", v.WeeklyChallengeUI = "7cb490b2-199c-4b0e-a699-fdd6dd60bdd8", v.WhiteLargeButtonTextAndIconLeft_RectTransform = "c63d2ffd-78e9-4e0b-af32-9cb9729ee579", v.WhiteMediumButtonTextAndIconLeft_RectTransform = "5d2d8057-1d1a-4fdb-86db-163c94d7d7cd", v.WhiteSmallButtonTextAndIconLeft_RectTransform = "8d7d1956-7cae-43f6-ae50-5e6c864b27c5", v.WhiteSmallButtonTextAndIconRight_RectTransform = "4e95401f-26d8-4579-95aa-92c2e0848e17", v.WhiteSmallButtonText_RectTransform = "298d257a-cfc4-410f-b88f-7490a5919f60", v.WideSeasonRewardsCard = "e84b5762-b3d5-448b-9cb3-3d0985fcd04d", v.WidgetHeaderUI = "29a5332b-261f-4eec-8a63-717b263e9e64", v.WidgetIconUI = "edb51970-e30c-4ce7-b7b6-24188eaffeea", v.WinstonVonLoot = "db7991d2-4bb6-4849-a9d2-43f3df2a45fb", v.WinterfestSignpostTutorial = "afdbdd61-d980-4b30-90b4-cfe31c2f892d", v.Winterfest_Snowpile1 = "b2b8e49e-a347-4566-8308-9150ce129c14", v.Winterfest_Snowpile2 = "678c91f2-6b52-476e-a1c6-d4fa851a4f8f", v.Winterfest_Snowpile3 = "7253baac-774f-4afc-81c1-73dcf840292d", v.WizardHeadAppearance = "012158f8-2e88-4289-bc27-8ca0af20ae33", v.WizardNameObject = "3123994a-1477-447c-8c63-6015ab50065d", v.WizardNameSelector = "847f69fd-cca6-40af-878c-84aba7177752", v.WorldInfoCard = "f78090fc-5f1e-48dc-8215-2825d4eec7fb", v.WorldInfoSection = "81ac35d7-d7c5-45a8-b30c-3e0ed97297ff", v.WorldMap = "711f7aaf-c73a-45dc-a38c-8fce87d3a4ee", v.ZoneGoalsInfoPanel = "19014058-f949-495a-a843-c7fc972200b3", v.ZoneGoalsMain = "c4e33399-223e-4156-a111-546a61f7f47a"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return p
})), j.d(O, "b", (function () {
return y
}));
var p, m = j(1),
g = j(0);
! function (v) {
v[v.UP = 0] = "UP", v[v.DOWN = 1] = "DOWN", v[v.LEFT = 2] = "LEFT", v[v.RIGHT = 3] = "RIGHT"
}(p || (p = {}));
var y = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O._headerMessageText = null, O._bodyMessageText = null, O._indicatorArrowVertical = null, O._indicatorArrowHorizontal = null, O._leftSideBorderOffset = 0, O._rightSideBorderOffset = 0, O
}
return Object(m.__extends)(O, v), O.prototype.postCreate = function () {
v.prototype.postCreate.call(this), this.GameObject.active = !1, this._cachedTextPositionYHeader = this._headerMessageText.GameObject.legacyTransform.group.position.y, this._cachedTextPositionYBody = this._bodyMessageText.GameObject.legacyTransform.group.position.y, this._cachedTextPositionYAverage = .5 * (this._cachedTextPositionYHeader + this._cachedTextPositionYBody), this._leftSideBorderOffset = this._bodyMessageText.GameObject.legacyTransform.group.position.x, this._rightSideBorderOffset = this._background.GameObject.legacyTransform.width - this._bodyMessageText.GameObject.legacyTransform.group.position.x
}, O.prototype.initializeText = function (v, O, j) {
this._bodyMessageText.text = v, g.Utils.isDefined(O) && 0 !== O.length ? (this._headerMessageText.text = O, this._bodyMessageText.GameObject.legacyTransform.group.position.y = this._cachedTextPositionYBody) : (this._headerMessageText.text = "", this._bodyMessageText.GameObject.legacyTransform.group.position.y = this._cachedTextPositionYAverage), this.resizeSlicedGraphic(this._background, this.getBackgroundWidth(), this._background.GameObject.legacyTransform.height);
var p = this.GameObject.active;
this.GameObject.active = !0, this.GameObject.legacyTransform.anchorX = this.GameObject.legacyTransform.anchorX, this.GameObject.legacyTransform.anchorY = this.GameObject.legacyTransform.anchorY, this.GameObject.active = p
}, O.prototype.resizeSlicedGraphic = function (v, O, j) {
v.GameObject.legacyTransform.group.removeChild(v.elementsGroup), v.GameObject.legacyTransform.group.cacheAsBitmap = !1, v.elementsGroup.destroy(), v._rootContainer = null, v.elementsGroup = null, v.GameObject.legacyTransform.group.getChildAt(0).width = O, v.GameObject.legacyTransform.group.getChildAt(0).height = j, v.create()
}, O.prototype.getBackgroundWidth = function () {
var v = Math.max(this._headerMessageText.TextObject.width, this._bodyMessageText.TextObject.width);
return this._leftSideBorderOffset + v + this._rightSideBorderOffset
}, O.prototype.setIndicatorArrow = function (v, O, j) {
void 0 === O && (O = .5), void 0 === j && (j = .5);
var m = this.GameObject.legacyTransform;
switch (v) {
case p.UP:
this._indicatorArrowHorizontal.destroy(), this.setArrow(v, this._indicatorArrowVertical, 1, this.getBackgroundWidth() * O, 0), this.setAnchor(m, O, 0);
break;
case p.DOWN:
this.setArrow(v, this._indicatorArrowVertical, -1, this.getBackgroundWidth() * O, this._cachedGameObjectHeight), this.setAnchor(m, O, 1), this._indicatorArrowHorizontal.destroy();
break;
case p.LEFT:
this._indicatorArrowVertical.destroy(), this.setArrow(v, this._indicatorArrowHorizontal, -1, 2, this._cachedGameObjectHeight * j), this.setAnchor(m, 0, j);
break;
case p.RIGHT:
this._indicatorArrowVertical.destroy(), this.setArrow(v, this._indicatorArrowHorizontal, 1, this.getBackgroundWidth() - 2, this._cachedGameObjectHeight * j), this.setAnchor(m, 1, j);
break;
default:
this._indicatorArrowVertical.destroy(), this._indicatorArrowHorizontal.destroy()
}
}, O.prototype.setArrow = function (v, O, j, m, g) {
v === p.UP || v === p.DOWN ? O.legacyTransform.group.scale.y = j : O.legacyTransform.group.scale.x = j, O.legacyTransform.group.position.set(m, g)
}, O.prototype.setAnchor = function (v, O, j) {
v.anchorX = O, v.anchorY = j
}, Object(m.__decorate)([Object(g.objectSerializable)("headerMessageText"), Object(m.__metadata)("design:type", g.Text)], O.prototype, "_headerMessageText", void 0), Object(m.__decorate)([Object(g.objectSerializable)("bodyMessageText"), Object(m.__metadata)("design:type", g.Text)], O.prototype, "_bodyMessageText", void 0), Object(m.__decorate)([Object(g.objectSerializable)("background"), Object(m.__metadata)("design:type", g.SlicedGraphic)], O.prototype, "_background", void 0), Object(m.__decorate)([Object(g.objectSerializable)("indicatorArrow"), Object(m.__metadata)("design:type", g.GameObject)], O.prototype, "_indicatorArrowVertical", void 0), Object(m.__decorate)([Object(g.objectSerializable)("indicatorArrowHorizontal"), Object(m.__metadata)("design:type", g.GameObject)], O.prototype, "_indicatorArrowHorizontal", void 0), O
}(g.Component)
}, function (v, O, j) {
"use strict";
j.d(O, "b", (function () {
return p
})), j.d(O, "a", (function () {
return B
}));
var p, m = j(1),
g = j(6),
y = j(30),
_ = j(23),
w = j(24),
E = j(113),
T = j(290),
I = j(323),
A = j(397),
S = j(18),
C = j(15),
D = j(226),
M = j(25),
x = j(215),
N = j(571),
P = j(697),
R = j(488),
k = j(489),
L = j(576);
! function (v) {
v[v.none = 0] = "none", v[v.flippedVertically = 1073741824] = "flippedVertically", v[v.flippedHorizontally = 2147483648] = "flippedHorizontally", v[v.flippedDiagonally = 536870912] = "flippedDiagonally", v[v.all = -536870912] = "all"
}(p || (p = {}));
var B = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O.onMapLoaded = new _.a, O
}
var j;
return Object(m.__extends)(O, v), j = O, Object.defineProperty(O.prototype, "OnMapLoaded", {
get: function () {
return this.onMapLoaded
},
enumerable: !0,
configurable: !0
}), O.prototype.loadMap = function (v, O, p, g, y) {
var _ = this;
j.loadMapFile(v).then((function (v) {
return Object(m.__awaiter)(_, void 0, void 0, (function () {
return Object(m.__generator)(this, (function (O) {
return [2, j.loadTilesets(v)]
}))
}))
})).then((function (v) {
return _.parseMap(O, v, p, g, y)
})).catch((function (v) {
S.a.log("TMXMapLoader: " + v, C.a.Warning)
})).then((function (O) {
return Object(m.__awaiter)(_, void 0, void 0, (function () {
return Object(m.__generator)(this, (function (j) {
return this.optimizeMapLayer(O, g), this.optimizeMapLayer(O, y), this.onMapLoaded.dispatch(v), [2]
}))
}))
}))
}, O.loadMapFileFromUrl = function (v) {
return Object(m.__awaiter)(this, void 0, void 0, (function () {
return Object(m.__generator)(this, (function (O) {
return w.a.instance.loader.appendAssetData(v, {
type: "json",
fullURL: v
}), [2, j.loadMapFile(v)]
}))
}))
}, O.loadMapFile = function (v) {
return Object(m.__awaiter)(this, void 0, void 0, (function () {
var O, j = this;
return Object(m.__generator)(this, (function (p) {
return O = w.a.instance.game, w.a.instance.loader.isLoaded(v, A.a.JSON) ? [2, O.cache.getJSON(v)] : [2, w.a.instance.loader.loadAssets([v]).then((function (p) {
return Object(m.__awaiter)(j, void 0, void 0, (function () {
return Object(m.__generator)(this, (function (j) {
return [2, Promise.resolve(g.cloneDeep(O.cache.getJSON(v)))]
}))
}))
}))]
}))
}))
}, O.loadTilesets = function (v) {
return Object(m.__awaiter)(this, void 0, void 0, (function () {
var O, j, p, g = this;
return Object(m.__generator)(this, (function (y) {
for (O = v.tilesets.map((function (v) {
return v.name
})), w.a.instance.game, j = !0, p = 0; p < O.length; ++p)
if (!w.a.instance.loader.isLoaded(O[p], A.a.JSON)) {
j = !1;
break
} return j ? [2, Promise.resolve(v)] : [2, w.a.instance.loader.loadAssets(O).then((function (O) {
return Object(m.__awaiter)(g, void 0, void 0, (function () {
return Object(m.__generator)(this, (function (O) {
return [2, Promise.resolve(v)]
}))
}))
}))]
}))
}))
}, O.prototype.parseMap = function (v, O, j, p, m) {
for (var g = v.addComponent(R.a), y = 0; y < O.layers.length; ++y) {
var _ = O.layers[y],
w = _.visible,
E = p;
if (M.a.isDefined(_.properties) && (M.a.isDefined(_.properties.isAbove) ? E = m : M.a.isDefined(_.properties.content) && (E = j), M.a.isDefined(_.properties.reference) && (w = !1)), w)
for (var T = this.createLayer(E, _, O.tilesets), I = 0; I < T.length; ++I) g.addTile(T[I])
}
return g
}, O.prototype.createLayer = function (v, O, j) {
var p = new E.a(v);
return p.name = O.name, p.addComponent(T.a), M.a.isDefined(O.objects) ? this.createObjectLayer(p, O, j) : this.createTiledLayer(p, O, j)
}, O.prototype.createObjectLayer = function (v, O, j) {
for (var p, m = [], y = 0; y < O.objects.length; y++) {
var _ = O.objects[y],
w = g.get(O, "properties.dynamicToggle", -1),
E = this.createTile(v, _.gid, _.x, _.y, j, w, null, null === (p = O.properties) || void 0 === p ? void 0 : p.tag);
M.a.isDefined(E) && (E.GameObject.legacyTransform.group.position.set(_.x + 20, _.y - 20), E.GameObject.findComponent(D.a).setAnchor(.5, .5), m.push(E))
}
return m
}, O.prototype.createTiledLayer = function (v, O, j) {
for (var p, m = M.a.isDefined(O.properties) && O.properties.useAnimDuration, y = g.get(O, "properties.dynamicToggle", -1), _ = [], w = 0, E = O.height, T = O.width, I = 0; I < E; ++I)
for (var A = 0; A < T; ++A) {
var S = this.createTile(v, O.data[w++], 40 * A, 40 * I, j, y, m, null === (p = O.properties) || void 0 === p ? void 0 : p.tag);
M.a.isDefined(S) && _.push(S)
}
return _
}, O.prototype.createTile = function (v, O, m, y, _, I, S, C) {
if (void 0 === S && (S = !1), !this.GameObject) return null;
var x = O,
N = 0 != (x & p.flippedHorizontally),
R = 0 != (x & p.flippedVertically),
B = 0 != (x & p.flippedDiagonally);
x &= ~p.all;
var U = j.getTileset(_, x);
if (!M.a.isDefined(U) || !M.a.isDefined(x)) return null;
x -= U.firstgid;
var G = new E.a(v);
G.name = "TMX tile", G.addComponent(T.a), G.legacyTransform.group.position.set(m, y);
var F = g.get(U, ["tiles", x], null),
H = G.addComponent(D.a);
Object.defineProperty(H, "assetLoader", {
get: function () {
return {
isLoaded: function (v) {
return w.a.instance.loader.isLoaded(v, A.a.Image)
}
}
}
}), H.updateAsset("" + U.name, "" + x);
var K = M.a.isDefined(F) && M.a.isDefined(F.animation);
if (K) {
for (var z = w.a.instance.game, W = [], V = 0; V < F.animation.length; ++V) W.push(z.cache.getTexture(U.name, F.animation[V].tileid));
if (S) {
var Y = G.addComponent(P.a);
for (V = 0; V < F.animation.length; ++V) Y.animationData.push({
frame: "" + F.animation[V].tileid,
duration: F.animation[V].duration
});
Y.playAnimation()
}
}
G.addComponent(k.a).rotate(R, N, B);
var q = G.addComponent(L.a);
return M.a.isDefined(I) && (q.HasToggleGroup = I > -1, q.GroupID = I, q.IsAnimated = K, q.tag = C), q
}, O.getTileData = function (v, O) {
var m = v;
m &= ~p.all;
var g = j.getTileset(O, m);
return M.a.isDefined(g) && M.a.isDefined(m) ? {
tileset: g,
id: m -= g.firstgid,
transform: v & p.all
} : null
}, O.getTileset = function (v, O) {
for (var j = 0; j < v.length; j++) {
var p = v[j];
if (O >= p.firstgid && O < p.firstgid + p.tilecount) return p
}
return null
}, O.prototype.optimizeMapLayer = function (v, O) {
if (this.GameObject) {
var j = O.legacyTransform.group.width,
p = O.legacyTransform.group.height,
g = O.legacyTransform.group.scale,
y = j / g.x,
_ = p / g.y,
I = new E.a;
I.addComponent(T.a);
for (var A = [], S = Object(m.__spread)(O.children), C = 0; C < S.length; ++C) {
for (var D = S[C].children, M = D.length - 1; M > -1; --M) {
var P = D[M].findComponent(L.a);
null !== P && P.IsStatic && (A.push(P), D[M].parent = I)
}
0 === S[C].children.length && S[C].destroy()
}
if (A.length > 0 && y > 0 && _ > 0) {
var R = Math.max(0, N.a.getLeft(I.legacyTransform.group)),
k = Math.max(0, N.a.getTop(I.legacyTransform.group)),
B = (w.a.instance.game, w.a.instance.game.add.renderTexture(y, _));
x.a.renderXY(B, I.legacyTransform.group, -R, -k, !0);
var U = w.a.instance.game.add.sprite(R, k, void 0, void 0, void 0, B);
O.legacyTransform.group.addChildAt(U, 0), v.OnDestroy.addOnce((function () {
U.destroy(), B.destroy(!0)
}))
}
I.destroy()
}
}, O.prototype.destroy = function () {
this.onMapLoaded.dispose(), v.prototype.destroy.call(this)
}, O.TILE_SIZE = 40, O = j = Object(m.__decorate)([Object(y.b)("TMXMapLoader", y.a.tiled, "This is a component that parses a tmx file and then creates <br /> the tiles into the target game objects that are assigned.")], O)
}(I.a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return p
})), j.d(O, "b", (function () {
return T
}));
var p, m = j(1),
g = j(0),
y = (j(11), j(73)),
_ = j(123);
! function (v) {
v[v.NONE = 0] = "NONE", v[v.IOS_APP = 1] = "IOS_APP", v[v.NATIVE_APP = 2] = "NATIVE_APP"
}(p || (p = {}));
var w = ["requestFullscreen", "requestFullScreen", "webkitRequestFullscreen", "webkitRequestFullScreen", "msRequestFullscreen", "msRequestFullScreen", "mozRequestFullScreen", "mozRequestFullscreen"],
E = ["cancelFullScreen", "exitFullscreen", "webkitCancelFullScreen", "webkitExitFullscreen", "msCancelFullScreen", "msExitFullscreen", "mozCancelFullScreen", "mozExitFullscreen"],
T = function () {
function v() {}
return v.getMetricsPlatformName = function () {
var v = "web";
return g.DeviceUtils.isIOS() ? v = "ios" : g.DeviceUtils.isMobile() && (v = "android"), v
}, v.appType = function () {
return "1" === g.Utils.getUrlVariable("iosApp") ? p.IOS_APP : "1" === g.Utils.getUrlVariable("nativeApp") ? p.NATIVE_APP : p.NONE
}, v.isNativeApp = function () {
return this.appType() !== p.NONE
}, v.isNativeIOSApp = function () {
return this.isNativeApp() && (g.DeviceUtils.isIOS() || "OS X" === g.DeviceUtils.getOsName())
}, v.isNativeAndroidApp = function () {
return this.isNativeApp() && g.DeviceUtils.isAndroid() && !this.isNativeAmazonApp()
}, v.isNativeAmazonApp = function () {
var v = window.expoReleaseChannel;
return g.Utils.isDefined(v) && v.indexOf("amazon") > -1
}, v.isDeprecatedIOS = function () {
var v = !1,
O = screen.availWidth,
j = screen.availHeight;
return g.DeviceUtils.isIOS() && ((O <= 768 && j <= 1024 || O <= 1024 && j <= 768) && window.devicePixelRatio < 2 && (v = !0), (O <= 320 && j <= 480 || O <= 480 && j <= 320) && (v = !0)), v
}, v.getWheelEventName = function () {
var v = null;
return "onwheel" in window ? v = "wheel" : "onmousewheel" in window ? v = "mousewheel" : g.DeviceUtils.isFirefox() && "MouseScrollEvent" in window && (v = "DOMMouseScroll"), v
}, v.hasMSPointerSupport = function () {
return navigator.msPointerEnabled || navigator.pointerEnabled || !1
}, v.hasPointerLockSupport = function () {
return "pointerLockElement" in document || "mozPointerLockElement" in document || "webkitPointerLockElement" in document
}, v.hasTouchSupport = function () {
return "ontouchstart" in window
}, v.isFullscreenSupported = function () {
return null !== this.getFullscreenRequestMethod()
}, v.isFullscreenKeyboardSupported = function () {
var v;
return (null === (v = window.Element) || void 0 === v ? void 0 : v.ALLOW_KEYBOARD_INPUT) || !1
}, v.getFullscreenRequestMethod = function () {
var v, O;
if (void 0 !== this._requestFullscreenMethod) return this._requestFullscreenMethod;
this._requestFullscreenMethod = null;
var j = document.createElement("div");
try {
for (var p = Object(m.__values)(w), g = p.next(); !g.done; g = p.next()) {
var y = g.value;
if (j[y]) {
this._requestFullscreenMethod = y;
break
}
}
} catch (_) {
v = {
error: _
}
} finally {
try {
g && !g.done && (O = p.return) && O.call(p)
} finally {
if (v) throw v.error
}
}
return this._requestFullscreenMethod
}, v.getFullscreenCancelMethod = function () {
var v, O;
if (void 0 !== this._cancelFullscreenMethod) return this._cancelFullscreenMethod;
this._cancelFullscreenMethod = null;
try {
for (var j = Object(m.__values)(E), p = j.next(); !p.done; p = j.next()) {
var g = p.value;
if (document[g]) {
this._cancelFullscreenMethod = g;
break
}
}
} catch (y) {
v = {
error: y
}
} finally {
try {
p && !p.done && (O = j.return) && O.call(j)
} finally {
if (v) throw v.error
}
}
return this._cancelFullscreenMethod
}, v.PERFORMANCE_WARNING_CONFIG = new _.a("BUTTON_OKAY_CAPITAL", null, y.a.Medium, 500, "WARNING", "WARNING_DEVICE_PERFORMANCE", void 0, void 0, void 0, 74), v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return I
}));
var p, m = j(0),
g = j(6),
y = j(2),
_ = j(11),
w = j(5),
E = j(106),
T = j(77);
! function (v) {
v[v.UserID = 0] = "UserID", v[v.ClassID = 1] = "ClassID", v[v.Grade = 2] = "Grade"
}(p || (p = {}));
var I = function () {
function v() {}
return v.isEmptyObject = function (v) {
if (!m.Utils.isDefined(v)) return !0;
for (var O in v)
if (v.hasOwnProperty(O)) return !1;
return !0
}, v.inTestGroups = function (O, j, m, g, y) {
void 0 === m && (m = v.LANE_SIZE), void 0 === g && (g = v.TOTAL_LANES), void 0 === y && (y = p.UserID);
for (var _ = 0; _ < j.length; _++)
if (v.inTestGroup(O, j[_], m, g, y)) return !0;
return !1
}, v.inTestGroup = function (O, j, g, y, w) {
void 0 === g && (g = v.LANE_SIZE), void 0 === y && (y = v.TOTAL_LANES), void 0 === w && (w = p.UserID);
var E = null,
T = _.a.get("GameConstants.Features.SplitTests.DEBUG_LANE");
if (m.Utils.isDefined(T)) return j === T;
if (j > y - 1 || j < 0) return m.Logger.log("Lane " + j + " is invalid for totalLanes " + y, m.LogLevel.Error), !1;
switch (w) {
case p.UserID:
E = O.userID;
break;
case p.ClassID:
E = v.getLatestClassID(O.owners, O.playerTeachers, O.playerParents);
break;
case p.Grade:
E = O.grade;
break;
default:
return m.Logger.log("Invalid type " + w, m.LogLevel.Error), !1
}
return m.Utils.isDefined(E) ? Math.floor(E / g) % y === j : (m.Logger.log("Invalid ID being used. type = " + w + " player = " + JSON.stringify(O), m.LogLevel.Error), !1)
}, v.getTestLane = function (O, j, g, y) {
void 0 === j && (j = v.LANE_SIZE), void 0 === g && (g = v.TOTAL_LANES), void 0 === y && (y = p.UserID);
var w = null,
E = _.a.get("GameConstants.Features.SplitTests.DEBUG_LANE");
if (m.Utils.isDefined(E)) return E;
switch (y) {
case p.UserID:
w = O.userID;
break;
case p.ClassID:
w = v.getLatestClassID(O.owners, O.playerTeachers, O.playerParents);
break;
case p.Grade:
w = O.grade;
break;
default:
return m.Logger.log("Invalid type " + y, m.LogLevel.Error), -1
}
return m.Utils.isDefined(w) ? Math.floor(w / j) % g : (m.Logger.log("Invalid ID being used. type = " + y + " player = " + JSON.stringify(O), m.LogLevel.Error), -1)
}, v.getLatestClassID = function (v, O, j) {
var p = [],
g = null,
y = null,
_ = null;
m.Utils.isDefined(j) && j.length > 0 && (p = j), m.Utils.isDefined(O) && O.length > 0 && (p = O);
for (var w = 0; w < p.length; w++) {
y = p[w];
for (var E = 0; E < v.length; E++) g = v[E], y.startDate === g.startDate && (null === _ || g.startDate > _.startDate) && (_ = g)
}
return m.Utils.isDefined(_) ? _.id : 0
}, v.highlightObjectOnLayer = function (v, O, j, p, g) {
void 0 === O && (O = 0), void 0 === j && (j = 0);
var w = m.Utils.isDefined(g) ? g : p,
E = w.addChild(y.a.instance.prodigy.create.sprite(O, j, "atlas-21", "help"));
return E.anchor.set(.5, 1), m.Utils.isDefined(p) && (E.x += T.a.getWorldPosition(p).x - T.a.getWorldPosition(w).x, E.y += T.a.getWorldPosition(p).y - T.a.getWorldPosition(w).y), v.add.tween(E, this).to({
y: E.y + 25
}, 400, m.Easing.Quadratic.InOut, !0, 0, _.a.MAX_SAFE_INTEGER, !0), E
}, v.isLevelLocked = function (v, O) {
return v.getLevel() < O
}, v.isEquipableType = function (v) {
return g.includes(["weapon", "hat", "outfit", "boots"], v)
}, v.getStoreEventsCustomObject = function (v, O, j) {
void 0 === j && (j = !1);
var p = {};
if (O && (p.member_locked = Boolean(O.member), p.level_locked = O.lockLevel, p.rarity = O.rarity), v) {
var m = v.getCost();
m.length > 0 && (p.cost = j ? O.price : m[0].getAmount(), p.currency = w.a.getItem(m[0].getType(), m[0].getID()).data.name)
}
return p
}, v.isNumber = function (v) {
return !isNaN(parseFloat(v)) && isFinite(v)
}, v.wrapPrefabForPixiObject = function (v, O) {
var j = new m.GameObject;
return j.layer = "default", j.addComponent(m.Transform), j.addComponent(E.a).getRootContainer().setParent(O), v.parent = j, j
}, v.LANE_SIZE = 1e3, v.TOTAL_LANES = 10, v
}()
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.None = 0] = "None", v[v.CollectingItems = 1] = "CollectingItems", v[v.TrackingNPC = 2] = "TrackingNPC", v[v.TamingUltimate = 3] = "TamingUltimate", v[v.Transition = 4] = "Transition"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
function p(v, O, j, p) {
var m = {
timer: void 0,
lastArgs: []
},
g = function () {
for (var p = this, g = [], y = 0; y < arguments.length; y++) g[y] = arguments[y];
m.lastArgs = g, m.timer ? (clearTimeout(m.timer), m.timer = setTimeout((function () {
O || j.apply(p, m.lastArgs), m.timer = void 0
}), v)) : (O && j.apply(this, m.lastArgs), m.timer = setTimeout((function () {
O || j.apply(p, m.lastArgs), m.timer = void 0
}), v))
};
return p && (g = g.bind(p)), g.options = m, g
}
function m(v, O, j, m) {
var g;
Object.defineProperty(j, m, {
configurable: !0,
enumerable: !1,
get: function () {
return g
},
set: function (j) {
g = p(v, O, j, this)
}
})
}
function g(v, O, j) {
var m = j.value;
return j.value = p(v, O, m), j
}
function y(v, O) {
for (var j = [], p = 2; p < arguments.length; p++) j[p - 2] = arguments[p];
if (0 === j.length) throw new Error("function applied debounce decorator should be a method");
if (1 === j.length) throw new Error("method applied debounce decorator should have valid name");
var y = j[0],
_ = j[1],
w = 3 === j.length && j[2] ? j[2] : Object.getOwnPropertyDescriptor(y, _);
if (w) return g(v, O, w);
m(v, O, y, _)
}
Object.defineProperty(O, "__esModule", {
value: !0
}), O.cancel = function (v) {
v && v.options && clearTimeout(v.options.timer)
}, O.debounce = function () {
for (var v = [], O = 0; O < arguments.length; O++) v[O] = arguments[O];
var j = 500,
p = !0;
if (v.length && ("number" == typeof v[0] || "object" == typeof v[0] && void 0 !== v[0].leading)) {
"number" == typeof v[0] && (j = v[0]);
var m = void 0;
return "object" == typeof v[0] && void 0 !== v[0].leading && (m = v[0]), v.length > 1 && "object" == typeof v[1] && void 0 !== v[1].leading && (m = v[1]), m && (p = m.leading),
function () {
for (var v = [], O = 0; O < arguments.length; O++) v[O] = arguments[O];
return y.apply(void 0, [j, p].concat(v))
}
}
return y.apply(void 0, [j, p].concat(v))
}
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.Small = 16] = "Small", v[v.Medium = 20] = "Medium", v[v.Large = 93] = "Large", v[v.Banner = 95] = "Banner"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
var p, m;
j.d(O, "b", (function () {
return p
})), j.d(O, "a", (function () {
return m
})),
function (v) {
v[v.BITMAPDATA = 0] = "BITMAPDATA", v[v.IMAGE = 1] = "IMAGE", v[v.JSON = 2] = "JSON", v[v.RENDER_TEXTURE = 3] = "RENDER_TEXTURE", v[v.SOUND = 4] = "SOUND", v[v.SPINE = 5] = "SPINE", v[v.TEXT = 6] = "TEXT", v[v.TEXTURE_ATLAS = 7] = "TEXTURE_ATLAS"
}(p || (p = {})),
function (v) {
v.BITMAPDATA = "BitmapData", v.IMAGE = "Image", v.JSON = "Json", v.RENDER_TEXTURE = "RenderTexture", v.SOUND = "Sound", v.SPINE = "Spine", v.TEXT = "Text", v.TEXTURE_ATLAS = "TextureAtlas"
}(m || (m = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return z
})), j.d(O, "c", (function () {
return H
})), j.d(O, "d", (function () {
return K
})), j.d(O, "e", (function () {
return F
})), j.d(O, "f", (function () {
return V
})), j.d(O, "g", (function () {
return N
})), j.d(O, "h", (function () {
return Y
})), j.d(O, "i", (function () {
return S
})), j.d(O, "j", (function () {
return C
})), j.d(O, "l", (function () {
return R
})), j.d(O, "m", (function () {
return A
})), j.d(O, "n", (function () {
return k
})), j.d(O, "o", (function () {
return P
})), j.d(O, "p", (function () {
return M
})), j.d(O, "q", (function () {
return x
})), j.d(O, "r", (function () {
return L
})), j.d(O, "s", (function () {
return D
})), j.d(O, "t", (function () {
return I
})), j.d(O, "u", (function () {
return U
}));
var p = j(88);
j.d(O, "k", (function () {
return p.a
}));
var m = j(987),
g = j.n(m);
j.d(O, "b", (function () {
return g.a
}));
j(988);
var y = j(860),
_ = j(16),
w = {
parse: y.parse,
format: y.format,
resolve: y.resolve
};
p.b.RETINA_PREFIX = /@([0-9\.]+)x/, p.b.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = !1;
var E, T = !1;
function I(v) {
var O;
if (!T) {
if (navigator.userAgent.toLowerCase().indexOf("chrome") > -1) {
var j = ["\n %c %c %c PixiJS 6.1.0 - ✰ " + v + " ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n", "background: #ff66a5; padding:5px 0;", "background: #ff66a5; padding:5px 0;", "color: #ff66a5; background: #030307; padding:5px 0;", "background: #ff66a5; padding:5px 0;", "background: #ffc3dc; padding:5px 0;", "background: #ff66a5; padding:5px 0;", "color: #ff2424; background: #fff; padding:5px 0;", "color: #ff2424; background: #fff; padding:5px 0;", "color: #ff2424; background: #fff; padding:5px 0;"];
(O = self.console).log.apply(O, j)
} else self.console && self.console.log("PixiJS 6.1.0 - " + v + " - http://www.pixijs.com/");
T = !0
}
}
function A() {
return void 0 === E && (E = function () {
var v = {
stencil: !0,
failIfMajorPerformanceCaveat: p.b.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT
};
try {
if (!self.WebGLRenderingContext) return !1;
var O = document.createElement("canvas"),
j = O.getContext("webgl", v) || O.getContext("experimental-webgl", v),
m = !(!j || !j.getContextAttributes().stencil);
if (j) {
var g = j.getExtension("WEBGL_lose_context");
g && g.loseContext()
}
return j = null, m
} catch (y) {
return !1
}
}()), E
}
function S(v, O) {
return void 0 === O && (O = []), O[0] = (v >> 16 & 255) / 255, O[1] = (v >> 8 & 255) / 255, O[2] = (255 & v) / 255, O
}
function C(v) {
var O = v.toString(16);
return "#" + (O = "000000".substr(0, 6 - O.length) + O)
}
function D(v) {
return (255 * v[0] << 16) + (255 * v[1] << 8) + (255 * v[2] | 0)
}
var M = function () {
for (var v = [], O = [], j = 0; j < 32; j++) v[j] = j, O[j] = j;
v[_.b.NORMAL_NPM] = _.b.NORMAL, v[_.b.ADD_NPM] = _.b.ADD, v[_.b.SCREEN_NPM] = _.b.SCREEN, O[_.b.NORMAL] = _.b.NORMAL_NPM, O[_.b.ADD] = _.b.ADD_NPM, O[_.b.SCREEN] = _.b.SCREEN_NPM;
var p = [];
return p.push(O), p.push(v), p
}();
function x(v, O) {
if (1 === O) return (255 * O << 24) + v;
if (0 === O) return 0;
var j = v >> 16 & 255,
p = v >> 8 & 255,
m = 255 & v;
return (255 * O << 24) + ((j = j * O + .5 | 0) << 16) + ((p = p * O + .5 | 0) << 8) + (m = m * O + .5 | 0)
}
function N(v) {
if (4 === v.BYTES_PER_ELEMENT) return v instanceof Float32Array ? "Float32Array" : v instanceof Uint32Array ? "Uint32Array" : "Int32Array";
if (2 === v.BYTES_PER_ELEMENT) {
if (v instanceof Uint16Array) return "Uint16Array"
} else if (1 === v.BYTES_PER_ELEMENT && v instanceof Uint8Array) return "Uint8Array";
return null
}
Float32Array, Uint32Array, Int32Array, Uint8Array;
function P(v) {
return v += 0 === v ? 1 : 0, --v, v |= v >>> 1, v |= v >>> 2, v |= v >>> 4, v |= v >>> 8, (v |= v >>> 16) + 1
}
function R(v) {
return !(v & v - 1 || !v)
}
function k(v) {
var O = (v > 65535 ? 1 : 0) << 4,
j = ((v >>>= O) > 255 ? 1 : 0) << 3;
return O |= j, O |= j = ((v >>>= j) > 15 ? 1 : 0) << 2, (O |= j = ((v >>>= j) > 3 ? 1 : 0) << 1) | (v >>>= j) >> 1
}
function L(v, O, j) {
var p, m = v.length;
if (!(O >= m || 0 === j)) {
var g = m - (j = O + j > m ? m - O : j);
for (p = O; p < g; ++p) v[p] = v[p + j];
v.length = g
}
}
var B = 0;
function U() {
return ++B
}
var G = {};
function F(v, O, j) {
if (void 0 === j && (j = 3), !G[O]) {
var p = (new Error).stack;
void 0 === p ? console.warn("PixiJS Deprecation Warning: ", O + "\nDeprecated since v" + v) : (p = p.split("\n").splice(j).join("\n"), console.groupCollapsed ? (console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s", "color:#614108;background:#fffbe6", "font-weight:normal;color:#614108;background:#fffbe6", O + "\nDeprecated since v" + v), console.warn(p), console.groupEnd()) : (console.warn("PixiJS Deprecation Warning: ", O + "\nDeprecated since v" + v), console.warn(p))), G[O] = !0
}
}
var H = {},
K = Object.create(null),
z = Object.create(null);
! function () {
function v(v, O, j) {
this.canvas = document.createElement("canvas"), this.context = this.canvas.getContext("2d"), this.resolution = j || p.b.RESOLUTION, this.resize(v, O)
}
v.prototype.clear = function () {
this.context.setTransform(1, 0, 0, 1, 0, 0), this.context.clearRect(0, 0, this.canvas.width, this.canvas.height)
}, v.prototype.resize = function (v, O) {
this.canvas.width = Math.round(v * this.resolution), this.canvas.height = Math.round(O * this.resolution)
}, v.prototype.destroy = function () {
this.context = null, this.canvas = null
}, Object.defineProperty(v.prototype, "width", {
get: function () {
return this.canvas.width
},
set: function (v) {
this.canvas.width = Math.round(v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(v.prototype, "height", {
get: function () {
return this.canvas.height
},
set: function (v) {
this.canvas.height = Math.round(v)
},
enumerable: !1,
configurable: !0
})
}();
var W;
function V(v, O) {
if (void 0 === O && (O = self.location), 0 === v.indexOf("data:")) return "";
O = O || self.location, W || (W = document.createElement("a")), W.href = v;
var j = w.parse(W.href),
p = !j.port && "" === O.port || j.port === O.port;
return j.hostname === O.hostname && p && j.protocol === O.protocol ? "" : "anonymous"
}
function Y(v, O) {
var j = p.b.RETINA_PREFIX.exec(v);
return j ? parseFloat(j[1]) : void 0 !== O ? O : 1
}
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return I
}));
var p = j(1),
m = j(20),
g = j(8),
y = j(5),
_ = j(342),
w = j(6),
E = function () {
function v(v) {
this._secureCharacterState = v
}
return v.prototype.getBountyTier = function () {
return this._secureCharacterState.data.egInfo.tier
}, v.prototype.getOrbData = function () {
return this._secureCharacterState.data.inventory.orb
}, v.prototype.getOrbQuantity = function (v) {
var O;
return null !== (O = this.getOrbData().find((function (O) {
return O.ID === v
})).quantity) && void 0 !== O ? O : 0
}, v.prototype.getTierOrbs = function (v) {
return void 0 === v && (v = this.getBountyTier()), this.getOrbData().filter((function (O) {
return y.a.getItem("orb", O.ID).data.tier === v
}))
}, v.prototype.getTierOrbCount = function (v) {
void 0 === v && (v = this.getBountyTier());
var O = this.getTierOrbs(v).map((function (v) {
return v.quantity
}));
return w.sum(O)
}, v.prototype.getTotalEquippedOrbs = function () {
return this._secureCharacterState.data.loadouts.map((function (v) {
var O;
return null !== (O = v.orbs) && void 0 !== O ? O : []
})).reduce((function (v, O) {
return O.concat(v)
}), []).filter((function (v) {
return v > 0
})).length
}, v.prototype.anyOrbsForTier = function (v) {
return void 0 === v && (v = this.getBountyTier()), this.getTierOrbCount(v) > 0
}, v
}(),
T = j(384),
I = function () {
function v(v, O) {
var j = this;
this._playerMeetsMinRequirementFunctions = new Map([
["gold", function (v) {
return j._activePlayer.getGold() < v.minAmountPresent
}],
["pet", function (v) {
return j._activePlayer.kennel.amountOfPet(v.ID) < v.minAmountPresent
}],
["dorm", function (v) {
return j._activePlayer.house.getOwned(v.ID) < v.minAmountPresent
}]
]), this.DEFAULT_PLAYER_MEETS_MIN_REQUIREMENT_FUNC = function (v) {
return j._activePlayer.backpack.hasItem(v.type, v.ID) < v.minAmountPresent
}, this._activePlayer = v.player, this.battleData = new E(O)
}
var O;
return O = v, v.prototype.getTorchesLitCount = function () {
var v, O;
return null !== (O = null === (v = this.getGlobalData()) || void 0 === v ? void 0 : v.torchesLit) && void 0 !== O ? O : 0
}, v.prototype.meetsGuardianBattleRequirements = function () {
return this.battleData.getTierOrbCount() >= m.EGConstants.GUARDIAN_BATTLE_ORBS_REQUIREMENT
}, v.prototype.getGuardianBattleZoneKey = function () {
var v, O = y.a.getItem("generic", 8).data,
j = null === (v = O.tiers[this.battleData.getBountyTier()]) || void 0 === v ? void 0 : v.guardianMapKey;
return "elemental_guardian-" + O.guardianMaps[j].zoneName
}, v.prototype.checkNoOrbAlign = function () {
var v, O = y.a.getItem("generic", 8).data,
j = null === (v = O.tiers[this.battleData.getBountyTier()]) || void 0 === v ? void 0 : v.guardianMapKey;
return O.guardianMaps[j].noOrbAlign
}, v.prototype.areAllTorchesLit = function () {
return this.getTorchesLitCount() >= m.EGConstants.GUARDIAN_BATTLE_ORBS_REQUIREMENT
}, v.prototype.getPendingTorches = function () {
return Math.min(this.battleData.getTierOrbCount(), m.EGConstants.GUARDIAN_BATTLE_ORBS_REQUIREMENT) - this.getTorchesLitCount()
}, v.prototype.setTorchesLitCount = function (v) {
var O, j = null !== (O = this.getGlobalData()) && void 0 !== O ? O : {};
j.torchesLit = v, 0 === v && delete j.torchesLit, this.setGlobalData(j)
}, v.prototype.getTabletsSpawned = function () {
var v, O;
return null !== (O = null === (v = this.getGlobalData()) || void 0 === v ? void 0 : v.tabletsSpawned) && void 0 !== O ? O : 0
}, v.prototype.incrementTabletsSpawned = function () {
var v, O, j = null !== (v = this.getGlobalData()) && void 0 !== v ? v : {};
j.tabletsSpawned = null !== (O = j.tabletsSpawned) && void 0 !== O ? O : 0, ++j.tabletsSpawned, this.setGlobalData(j)
}, v.prototype.setFavoriteLoadoutIndex = function (v) {
var O, j = null !== (O = this.getGlobalData()) && void 0 !== O ? O : {};
j.favoriteLoadoutIndex = v, this.setGlobalData(j)
}, v.prototype.getFavoriteLoadoutIndex = function () {
var v, O;
return null !== (O = null === (v = this.getGlobalData()) || void 0 === v ? void 0 : v.favoriteLoadoutIndex) && void 0 !== O ? O : 0
}, v.prototype.getGlobalData = function () {
return this._activePlayer.state.get(T.a.CLIENT_EG_DATA)
}, v.prototype.setGlobalData = function (v) {
this._activePlayer.state.set(T.a.CLIENT_EG_DATA, v)
}, v.prototype.setTeamCurrentHP = function (v) {
var O, j = null !== (O = this.getGlobalData()) && void 0 !== O ? O : {};
j.teamCurrentHP = v, this.setGlobalData(j)
}, v.prototype.getTeamCurrentHP = function () {
var v;
return null === (v = this.getGlobalData()) || void 0 === v ? void 0 : v.teamCurrentHP
}, v.prototype.getUnsecureRewards = function (v) {
var j = this,
p = y.a.getItem("generic", 8).data.tiers[v].guardianId,
m = y.a.getItem("boss", p).data.unsecureRewards,
g = [];
return m && m.forEach((function (v) {
var p, m;
v.minAmountPresent = null !== (p = v.minAmountPresent) && void 0 !== p ? p : O.MIN_AMOUNT_OF_UNSECURE_REWARD;
var _ = y.a.getItem(v.type, v.ID);
(null !== (m = j._playerMeetsMinRequirementFunctions.get(_.type)(v)) && void 0 !== m ? m : j.DEFAULT_PLAYER_MEETS_MIN_REQUIREMENT_FUNC(v)) && g.push(_)
})), g
}, v.prototype.getRelicRewardId = function (v) {
var O = y.a.getItem("generic", 8).data.tiers[v].guardianId;
return y.a.getItem("boss", O).data.relicRingReward
}, v.prototype.getRelicRewardItemDrop = function (v) {
return {
type: "spellRelic",
ID: v,
N: 1,
data: {
seed: 0
}
}
}, v.prototype.playerHasRelicForPreviousTier = function () {
var v = this.battleData.getBountyTier(),
O = Math.max(1, v - 1),
j = this.getRelicRewardId(O);
return v < 2 || this._activePlayer.backpack.hasItem("spellRelic", j) > 0
}, v.getMaxTier = function () {
return y.a.getItem("generic", 8).data.maxTier
}, v.prototype.isPlayerAtMaxTier = function () {
return this.battleData.getBountyTier() === O.getMaxTier()
}, v.MIN_AMOUNT_OF_UNSECURE_REWARD = 1, v = O = Object(p.__decorate)([Object(g.injectable)(), Object(p.__param)(0, Object(g.inject)("497-7811")), Object(p.__param)(1, Object(g.inject)("bf4-51ea")), Object(p.__metadata)("design:paramtypes", [Object, _.a])], v)
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return m
}));
var p = j(0),
m = function () {
function v() {}
return v.validateInt = function (v, O) {
if (void 0 === O && (O = 0), "number" != typeof v) {
var j = parseInt(v, 10);
return Number.isNaN(j) ? O : j
}
return Number.isNaN(v) ? O : v
}, v.getWorldPosition = function (v) {
var O = 0,
j = 0;
if (p.Utils.isDefined(v)) {
O = v.position.x, j = v.position.y;
for (var m = v.parent; p.Utils.isDefined(m);) O += m.position.x, j += m.position.y, m = m.parent
}
return {
x: O,
y: j
}
}, v.convertWorldToScreenPosition = function (v) {
var O = v.x,
j = v.y;
return p.Camera.main && (O = O - p.Camera.main.GameObject.transform.worldPosition.x + p.Camera.main.viewportSize.getHalfWidth(), j = j - p.Camera.main.GameObject.transform.worldPosition.y + p.Camera.main.viewportSize.getHalfHeight()), {
x: O,
y: j
}
}, v.convertScreenToWorldPosition = function (v) {
var O = v.x,
j = v.y;
return p.Camera.main && (O = O + p.Camera.main.GameObject.transform.worldPosition.x - p.Camera.main.viewportSize.getHalfWidth(), j = j + p.Camera.main.GameObject.transform.worldPosition.y - p.Camera.main.viewportSize.getHalfHeight()), {
x: O,
y: j
}
}, v.normalizeRange = function (v, O, j) {
return O > v ? (j - v) / (O - v) : O < v ? this.normalizeRange(O, v, j) : O
}, v.clampedLerp = function (v, O, j) {
var p = j < 0 ? 0 : j;
return v + (O - v) * (p = p > 1 ? 1 : p)
}, v.roundToNearestMultiplier = function (v, O) {
return Math.round(v / O) * O
}, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return w
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(157),
_ = j(11),
w = function (v) {
function O(O, j, p, y, w, E, T, I, A, S) {
void 0 === E && (E = null);
var C = this,
D = "atlas-18",
M = "empty",
x = g.a.instance.prodigy.load.isFileLoaded(y);
x ? (D = y, M = w) : S && (M = "icon-loading"), (C = v.call(this, O, j, p, D, M) || this).forcedWidth = I, C.forcedHeight = A, C.onTextureLoaded = T, C.loadingTween = null;
var N = !1;
return x ? (C.checkSpriteDimension(), N = !0, m.Utils.isDefined(E) && C.anchor.set(E.x, E.y)) : (m.Utils.isDefined(S) && S && (C.anchor.set(.5, .5), C.x += 40, C.y += 40, C.loadingTween = C.game.add.tween(C, C).to({
angle: 360
}, 2e3, m.Easing.Linear.None, !0, 0, _.a.MAX_SAFE_INTEGER, !1)), C.checkSpriteDimension(), C._loadingAsset = {
source: y,
frame: w
}, g.a.instance.prodigy.load.assets(y, C.onSourceAssetLoaded.bind(C, j, p, y, w, E))), N && C.checkCallback(), C
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "isLoaded", {
get: function () {
return !this._loadingAsset
},
enumerable: !1,
configurable: !0
}), O.prototype.setActive = function (v) {
this.tint = v ? 16777215 : 5789784
}, O.prototype.loadNewTexture = function (v, O, j, p) {
void 0 === j && (j = null), void 0 === p && (p = !1), m.Utils.isDefined(this.loadingTween) && (this.loadingTween.stop(), this.loadingTween = null, this.anchor.set(0, 0), this.x -= 40, this.y -= 40, this.angle = 0), this._loadingAsset = {
source: v,
frame: O
}, this._updateFrame = null, g.a.instance.prodigy.load.isFileLoaded(v) ? this.onSourceAssetLoaded(this.x, this.y, v, O, j) : (p ? (this.loadTexture("atlas-18", "icon-loading"), this.anchor.set(.5, .5), this.x += 40, this.y += 40, this.loadingTween = this.game.add.tween(this, this).to({
angle: 360
}, 2e3, m.Easing.Linear.None, !0, 0, _.a.MAX_SAFE_INTEGER, !1)) : this.loadTexture("atlas-18", "empty"), g.a.instance.prodigy.load.assets(v, this.onSourceAssetLoaded.bind(this, this.x, this.y, v, O, j)))
}, O.prototype.checkSpriteDimension = function () {
m.Utils.isDefined(this.forcedWidth) && (this.width = this.forcedWidth), m.Utils.isDefined(this.forcedHeight) && (this.height = this.forcedHeight)
}, O.prototype.rotateMiddleBased = function (v) {
this.middleRotatedAngle = v, this.anchor.set(.5, .5), this.angle = this.middleRotatedAngle
}, O.prototype.onSourceAssetLoaded = function (v, O, j, p, g) {
var y;
if (void 0 === g && (g = null), this.game && this.exists && this._loadingAsset && this._loadingAsset.source === j && this._loadingAsset.frame === p) {
if (m.Utils.isDefined(this.loadingTween) && (this.loadingTween.stop(), this.loadingTween = null, this.anchor.set(0, 0), this.x -= 40, this.y -= 40, this.angle = 0), this.key = j, null !== this.key) {
var _ = null !== (y = this._updateFrame) && void 0 !== y ? y : p;
0 === j.indexOf("icon-") && (_ = void 0), this.loadTexture(j, _)
}
this._loadingAsset = null, this._updateFrame = null, this.cameraOffset = new m.Vector2(v, O), m.Utils.isDefined(this.middleRotatedAngle) ? this.rotateMiddleBased(this.middleRotatedAngle) : m.Utils.isDefined(g) && this.anchor.set(g.x, g.y), this.checkSpriteDimension(), this.checkCallback()
}
}, O.prototype.updateFrame = function (O) {
this.isLoaded ? v.prototype.updateFrame.call(this, O) : this._updateFrame = O
}, O.prototype.checkCallback = function () {
var v;
null === (v = this.onTextureLoaded) || void 0 === v || v.call(this, this)
}, O.prototype.destroy = function () {
this.onTextureLoaded = null, this.loadingTween = null, v.prototype.destroy.call(this)
}, O.DESTROYED = "_destroyed", O
}(y.a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return C
}));
var p = j(1),
m = j(0),
g = j(6),
y = j(2),
_ = j(39),
w = j(7),
E = j(101),
T = j(13),
I = j(5),
A = j(122),
S = j(89),
C = function (v) {
function O(O, j) {
var p = v.call(this, O) || this;
return p.nickname = null, p.setData(j), p
}
return Object(p.__extends)(O, v), O.prototype.assignRandomSpells = function () {
if (m.Utils.isDefined(this.source.foreignSpellPools)) {
this.data.foreignSpells = [];
for (var v = g.map(this.source.nativeSpells, (function (v) {
return v.spell
})), O = 0; O < this.source.foreignSpellPools.length; O++) {
var j = this.source.foreignSpellPools[O];
j = g.difference(j, v), j = g.uniq(j), this.data.foreignSpells.push(g.sample(j.length > 0 ? j : this.source.foreignSpellPools[O]))
}
} else m.Logger.log(this.getName() + ": failed to assign random spells", m.LogLevel.Warning)
}, O.prototype.setData = function (O) {
if (v.prototype.setData.call(this, O), m.Utils.isDefined(this.data)) {
this.data.ID = m.Utils.isDefined(O.ID) ? O.ID : O.gameID, this.nickname = this.data.nickname, delete this.data.R;
var j = I.a.getItem("pet", this.data.ID);
this.source = j.data, m.Utils.isDefined(j.metadata.assets.default) && (this.source.assetType = j.metadata.assets.default.type, this.source.defaultScale = j.metadata.assets.default.defaultScale), this.type = this.source.life, this.immortal = O.immortal
}
}, O.prototype.canCatch = function () {
var v = this.game.state.get("Battle");
return !(this.game.state.getCurrentState() !== v || !v.mods.bounty) || !m.Utils.isDefined(this.nickname)
}, O.prototype.getAttacks = function (v) {
void 0 === v && (v = null);
for (var O = [], j = this.getBamSpells(), p = 0; p < j.length; p++) j[p].locked || m.Utils.isDefined(v) && I.a.getItem("spell", j[p].ID).data.element !== v || O.push(j[p].ID);
return O
}, O.prototype.getBamSpells = function (v) {
var O;
void 0 === v && (v = this.getLevel()), m.Utils.isDefined(this.data.levelCaught) || (this.data.levelCaught = null !== (O = this.data.level) && void 0 !== O ? O : 1), m.Utils.isDefined(this.data.foreignSpells) || this.assignRandomSpells();
var j = this.source.nativeSpells;
if (!m.Utils.isDefined(j)) {
m.Logger.log(this.getName() + ": Invalid nativeSpells, reassigning from curve", m.LogLevel.Warning);
var p = S.a.getAttacksFromCurve(I.a.getItemData("pet", this.getID()).curve, 1, 100);
p = p.slice(0, 2), j = [{
spell: T.a.spellConversion({
ID: p[0]
}),
tierLevels: [0, 15, 40]
}, {
spell: T.a.spellConversion({
ID: p[1]
}),
tierLevels: [5, 20, 45]
}]
}
return [this.getNativeSpell(0, j[0].spell, v), this.getNativeSpell(1, j[1].spell, v), this.getForeignSpell(2, this.data.foreignSpells[0], v), this.getForeignSpell(3, this.data.foreignSpells[1], v)]
}, O.prototype.getNativeSpell = function (v, j, p) {
var m = O.getSpellEvolutionLevels(v, j),
g = E.b.getSpellTierAtLevel(p, m);
return {
ID: E.b.getNextTierSpell(j, g - 1).ID,
locked: g <= 0,
type: E.a.Native,
unlockLevel: m[0]
}
}, O.prototype.getForeignSpell = function (v, j, p) {
var m = O.getSpellEvolutionLevels(v, j),
g = E.b.getSpellTierAtLevel(p, m),
y = O.getUnlockLevelForeignSpell(this.data.levelCaught, v, p);
return {
ID: E.b.getNextTierSpell(j, g - 1).ID,
locked: g <= 0 || p < y,
type: E.a.Foreign,
unlockLevel: y
}
}, O.getUnlockLevelNativeSpell = function (v, j) {
return O.getSpellEvolutionLevels(v, j)[0]
}, O.getUnlockLevelForeignSpell = function (v, O, j) {
var p = 5 - Math.max(0, Math.floor((v - 1) / 20));
return 3 === O && (p += j <= 50 ? 2 : 1), Math.min(v + p, 100)
}, O.getSpellEvolutionLevels = function (v, O) {
var j, p = [1, 1, 2, 3],
m = I.a.getItem("generic", 6).data;
I.a.getItem("spell", O).data.targetType === A.a.AOE ? (j = m.aoe.map((function (v) {
return v.level
})))[0] += p[v] : j = m.singleShot.map((function (v) {
return v.level
}));
for (var g = 1; g < j.length; g++) j[g] += p[v];
return j
}, O.prototype.getMaxHearts = function (v) {
var O = m.Utils.isDefined(v) ? v : this.getLevel(),
j = Math.min(Math.floor(_.a.getCreatureHP(this, O)), S.a.MAX_HEARTS);
return Math.round(j * this.modifiers.maxHearts)
}, O.prototype.evolve = function (v, O) {
var j = m.Utils.isDefined(O) ? O : this.getLevel();
m.Utils.isDefined(this.data.evolve) || (this.data.evolve = []), this.data.evolve.push({
ID: this.data.ID,
lvl: j
}), this.data.ID = v, this.source = I.a.getItem("pet", this.data.ID).data, y.a.instance.prodigy.gameContainer.get("497-7811").player.encounters.addToPetTimesRescued(v), this.type = this.source.life, this.game.broadcaster.broadcast(w.f.Evolved, null, [this])
}, O.prototype.getID = function () {
return this.data.ID
}, O.prototype.getName = function () {
return m.Utils.isDefined(this.nickname) ? this.nickname : this.source.name
}, O.prototype.getFirstName = function () {
return this.source.name
}, O.prototype.getElement = function () {
return this.source.element
}, O.prototype.generate = function (v, O) {
var j = Math.max(1, v - O);
this.data.stars = S.a.starsToLevel(j), this.data.level = j
}, O.prototype.getLevelingCurve = function (v) {
var O, j = [],
p = [],
g = I.a.getItem("pet", this.getID()).data.curve;
if (y.a.instance.prodigy.gameContainer.get("466-c04b").getFeatureVariable("conversion_september_batch_2021", "Pet_Evo_Decrease")) {
[136, 139, 142, 145, 148].includes(this.getID()) && (g = [{
lvl: 10,
evolveID: null === (O = g[0]) || void 0 === O ? void 0 : O.evolveID
}])
}
for (var _ = 0; _ < g.length; _++) {
var w = g[_];
m.Utils.isDefined(w.evolveID) && m.Utils.isDefined(w.lvl) || m.Utils.isDefined(w.e) && w.lvl <= v ? p.push(w) : w.lvl === v && j.push(w)
}
return p.concat(j)
}, O.prototype.getDrops = function () {
return v.prototype.getDrops.call(this).concat({
type: "gold",
N: 100
}, I.a.getItemDrops(this.data.drops))
}, O.prototype.getStatPower = function () {
return m.Utils.isDefined(this.source.statPower) ? this.source.statPower : 5
}, O.prototype.getStatHealth = function () {
return m.Utils.isDefined(this.source.statHealth) ? this.source.statHealth : 5
}, O
}(S.a)
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.Complete = 0] = "Complete", v[v.UnderConstruction = 1] = "UnderConstruction", v[v.SkillLocked = 2] = "SkillLocked", v[v.RooftopMastery = 3] = "RooftopMastery", v[v.TowerRoof = 4] = "TowerRoof", v[v.ChooseLook = 5] = "ChooseLook", v[v.QuickReno = 6] = "QuickReno", v[v.MoveFloor = 7] = "MoveFloor"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.Key = 0] = "Key", v[v.View = 1] = "View", v[v.Icon = 2] = "Icon", v[v.IconNoBackground = 3] = "IconNoBackground", v[v.Store = 4] = "Store", v[v.Inventory = 5] = "Inventory", v[v.Card = 6] = "Card", v[v.Info = 7] = "Info", v[v.StylistCard = 8] = "StylistCard", v[v.Buy = 9] = "Buy", v[v.Equip = 10] = "Equip", v[v.Item = 11] = "Item"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return p
})), j.d(O, "b", (function () {
return y
}));
var p, m = j(1),
g = j(0);
! function (v) {
v.MemberLocked = "MEMBER_LOCKED", v.LevelLocked = "LEVEL_LOCKED", v.NotEnoughCurrency = "NOT_ENOUGH_CURRENCY", v.OutsideOfHours = "Outside of Hours"
}(p || (p = {}));
var y = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O.onPurchaseSuccess = new g.Signal, O.onPurchaseFailure = new g.Signal, O
}
return Object(m.__extends)(O, v), O.prototype.destroy = function () {
this.onPurchaseSuccess.dispose(), this.onPurchaseFailure.dispose(), v.prototype.destroy.call(this)
}, O.prototype.showNewStoreMerchant = function (v, O, j) {}, O.prototype.showStoreMerchant = function () {}, O.prototype.renderSelectedItem = function (v, O) {}, O.prototype.renderBottomPanel = function () {}, Object(m.__decorate)([Object(g.serializeSignal)(), Object(m.__metadata)("design:type", g.Signal)], O.prototype, "onPurchaseSuccess", void 0), Object(m.__decorate)([Object(g.serializeSignal)(), Object(m.__metadata)("design:type", g.Signal)], O.prototype, "onPurchaseFailure", void 0), O = Object(m.__decorate)([Object(g.componentable)("StoreItemDetailPanelBase (abstract)")], O)
}(g.Component)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return w
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(11),
_ = j(7),
w = function (v) {
function O(O, j) {
var p = v.call(this, O, j) || this;
return p.name = "", p.layoutElement = null, p.dimensionPlaceholderImage = null, p.game = O, p.metricsManager = g.a.instance.prodigy.gameContainer.get("c19-b0bb"), p.metricsManager.objectCreated("UIElement"), p.onDestroy.add(p.handleUIDestroy.bind(p)), p
}
return Object(p.__extends)(O, v), O.prototype.handleUIDestroy = function () {
this.metricsManager.objectDestroyed("UIElement")
}, O.prototype.processRelativeFields = function (v, O) {
m.Utils.isDefined(v.relativeWidth) && (v.width = Math.floor(O.width * v.relativeWidth)), m.Utils.isDefined(v.relativeHeight) && (v.height = Math.floor(O.height * v.relativeHeight)), m.Utils.isDefined(v.relativeX) ? v.x = Math.floor(O.width * v.relativeX) : m.Utils.isDefined(v.x) || (v.x = 0), m.Utils.isDefined(v.relativeY) ? v.y = Math.floor(O.height * v.relativeY) : m.Utils.isDefined(v.y) || (v.y = 0), m.Utils.isDefined(v.scaleX) && (this.scale.x = v.scaleX), m.Utils.isDefined(v.scaleY) && (this.scale.y = v.scaleY), m.Utils.isDefined(v.visible) && (this.visible = v.visible)
}, O.prototype.populate = function (v) {
var O = 0,
j = 0;
m.Utils.isDefined(v.name) && (this.name = v.name), (m.Utils.isDefined(v.width) && v.width > this.width || m.Utils.isDefined(v.height) && v.height > this.height) && (m.Utils.isDefined(this.dimensionPlaceholderImage) && this.dimensionPlaceholderImage.destroy(), this.dimensionPlaceholderImage = g.a.instance.prodigy.create.image(0, 0, "atlas-18", "empty"), this.dimensionPlaceholderImage.alpha = 0, this.add(this.dimensionPlaceholderImage), m.Utils.isDefined(v.width) && (this.dimensionPlaceholderImage.width = v.width), m.Utils.isDefined(v.height) && (this.dimensionPlaceholderImage.height = v.height)), m.Utils.isDefined(v.anchorX) && (O = -Math.floor(v.anchorX * this.width)), m.Utils.isDefined(v.anchorY) && (j = -Math.floor(v.anchorY * this.height)), m.Utils.isDefined(v.x) && (this.x = v.x), m.Utils.isDefined(v.y) && (this.y = v.y), this.x += O, this.y += j
}, O.prototype.postPopulate = function () {}, O.prototype.setActive = function (v) {
this.isActive = v;
for (var O = 0; O < this.children.length; O++) m.Utils.isDefined(this.children[O].setActive) && this.children[O].setActive(v)
}, O.prototype.setVisible = function (v) {
this.visible = v
}, O.prototype.highlight = function (v, O, j) {
void 0 === O && (O = 0), void 0 === j && (j = 0), this.isHighlighted() && (this.arrow.destroy(), this.arrow = null), v && (this.arrow = this.add(g.a.instance.prodigy.create.sprite(0, 0, "atlas-21", "help")), this.arrow.x = O + Math.floor(this.width / 2), this.arrow.y = j - this.arrow.height + 10, this.game.add.tween(this.arrow, this).to({
y: this.arrow.y + 25
}, 400, m.Easing.Quadratic.InOut, !0, 0, y.a.MAX_SAFE_INTEGER, !0))
}, O.prototype.isHighlighted = function () {
return m.Utils.isDefined(this.arrow)
}, O.prototype.debugDrawBounds = function (v) {}, O.prototype.addChild = function () {
for (var O = [], j = 0; j < arguments.length; j++) O[j] = arguments[j];
var g = v.prototype.addChild.apply(this, Object(p.__spread)(O));
return m.Utils.isDefined(this.game) && this.game.broadcaster.broadcast(_.B.ChildAdded, this), g
}, O.prototype.removeChild = function () {
for (var O = [], j = 0; j < arguments.length; j++) O[j] = arguments[j];
var g = v.prototype.removeChild.apply(this, Object(p.__spread)(O));
return m.Utils.isDefined(this.game) && this.game.broadcaster.broadcast(_.B.ChildRemoved, this), g
}, O
}(j(514).a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return I
}));
var p = j(0),
m = j(2),
g = j(502),
y = j(719),
_ = j(588),
w = j(1),
E = j(3),
T = function (v) {
function O() {
return null !== v && v.apply(this, arguments) || this
}
return Object(w.__extends)(O, v), O.prototype.postCreate = function () {
v.prototype.postCreate.call(this), this._cachedGameObjectHeight = this.GameObject.legacyTransform.height
}, O.prototype.initializeText = function (O, j) {
v.prototype.initializeText.call(this, O, j), this.GameObject.active = !0
}, O.prototype.close = function () {
this.GameObject.active = !1
}, O = Object(w.__decorate)([Object(p.componentable)("ToolTipSpeech", E.a.ui)], O)
}(j(67).b),
I = function () {
function v() {}
return v.displayToolTipAuto = function (O, j, p) {
var m = v.setToolTip(g.a, O, j, v.TOOLTIP_AUTO);
return v.updateBaseDisplay(m, p), m.close(), m.startTimer(), m
}, v.displayToolTipManual = function (O, j, m) {
var g = v.setToolTip(_.a, O, j, v.TOOLTIP_MANUAL),
y = p.Utils.isDefined(m.proceedButtonCallback);
return y ? (g.setProceedButtonVisibility(!0), g.setCallback(m.proceedButtonCallback)) : g.setProceedButtonVisibility(!1), v.updateBaseDisplay(g, m, y), p.Utils.isDefined(m.arrowXRelPos) || p.Utils.isDefined(m.arrowYRelPos) ? g.setIndicatorArrow(m.arrowDirection, m.arrowXRelPos, m.arrowYRelPos) : g.setIndicatorArrow(m.arrowDirection, .5, null), g
}, v.displayToolTipSpeech = function (O, j, p) {
var m = v.setToolTip(T, O, j, v.TOOLTIP_SPEECH);
return v.updateBaseDisplay(m, p), m.setIndicatorArrow(p.arrowDirection, p.arrowXRelPos, p.arrowYRelPos), m
}, v.displayToolTipCustomManual = function (O, j, p, m) {
var g = v.setToolTip(_.a, O, j, p);
return g.setProceedButtonVisibility(!1), v.updateBaseDisplay(g, m), g.setIndicatorArrow(m.arrowDirection, m.arrowXRelPos, m.arrowYRelPos), g
}, v.displayToolTipButtonGrid = function (O, j, m, g, _, w) {
void 0 === _ && (_ = !0);
var E = v.setToolTip(y.a, O, j, g);
return E.GameObject.active = _, v.updateBaseDisplay(E, m), p.Utils.isDefined(m.arrowDirection) && E.setIndicatorArrow(m.arrowDirection, m.arrowXRelPos, m.arrowYRelPos), p.Utils.isDefined(w) && w.length > 0 && E.setCallbacks(w), E
}, v.updateBaseDisplay = function (v, O, j) {
v.initializeText(O.bodyText, O.headerText, j), p.Utils.isDefined(O.xPosition) && (v.GameObject.legacyTransform.group.position.x = O.xPosition), p.Utils.isDefined(O.yPosition) && (v.GameObject.legacyTransform.group.position.y = O.yPosition)
}, v.setToolTip = function (v, O, j, p) {
return O || m.a.instance.prodigy.gameContainer.get("c9d-7243").load(p, j).findComponentInChildren(v)
}, v.TOOLTIP_AUTO = 10, v.TOOLTIP_MANUAL = 11, v.TOOLTIP_SPEECH = 108, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(152),
_ = function (v) {
function O(O, j, p, _, w, E, T, I, A) {
var S = this,
C = new y.a(O);
(S = v.call(this, O, w, C, null, E, T) || this).onClick = new m.Signal;
var D = g.a.instance.prodigy.gameContainer.get(m.GameIdentifiers.LocalizationService);
return S.spineNPC = g.a.instance.prodigy.create.spineNPC(S, p, I, 0, 0, {
text: D.getText(j),
parent: A
}, {
npcType: _,
npcXCoord: E,
npcYCoord: T
}, (function () {
S.onClick.dispatch()
})), S
}
return Object(p.__extends)(O, v), O.prototype.flip = function () {
this.spineNPC.legacyTransform.group.scale.x = -1
}, O
}(j(52).a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(47),
_ = function (v) {
function O(O, j, p, m, g, y) {
void 0 === g && (g = 0), void 0 === y && (y = 0);
var _ = v.call(this, O, j, "", g, y, [], p, m) || this;
return _.isScene = !0, _.isScene = !0, _.loadingData = {
fadeIn: !0,
time: 1,
fadeOut: !0,
save: !1
}, _
}
return Object(p.__extends)(O, v), O.prototype.setup = function (O, j, p) {
this.zone.hideFollow(j), j.walkEnabled = !1, j.user.clickEnabled = !1, j.menuBar.active = !1, g.a.instance.prodigy.notifications.stopFriendTimer(), g.a.instance.prodigy.notifications.clearNotifications(), v.prototype.setup.call(this, O, j, p)
}, O.prototype.start = function (O, j, p) {
v.prototype.start.call(this, O, j, p)
}, O.prototype.end = function (v, O) {}, O.prototype.enterScene = function (v, O, j) {
var p, g = v.state.getCurrentState();
null === (p = g.hideParentalConsentBanner) || void 0 === p || p.call(g);
var _ = v.width,
w = v.height;
this.sceneTop = O.menus.addChild(new y.a(v, 0, -50, _, 50, "atlas-161", "overlay-small")), this.sceneBot = O.menus.addChild(new y.a(v, 0, w, _, 50, "atlas-161", "overlay-small"));
var E = v.add.tween(this.sceneTop, this).to({
y: 0
}, 1e3, m.Easing.Quadratic.Out).start();
m.Utils.isDefined(j) && E.onTweenComplete.add(j), v.add.tween(this.sceneBot, this).to({
y: w - 50
}, 1e3, m.Easing.Quadratic.Out).start(), O.user.unmount()
}, O.prototype.cleanup = function () {
this.sceneTop && (this.sceneTop.destroy(), this.sceneTop = null), this.sceneBot && (this.sceneBot.destroy(), this.sceneBot = null), v.prototype.cleanup.call(this)
}, O
}(j(35).a)
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.Top = "-top", v.Bottom = "-bottom", v.Left = "-left", v.Right = "-right", v.Middle = "-middle", v.TopLeft = "-topLeft", v.TopRight = "-topRight", v.BottomLeft = "-bottomLeft", v.BottomRight = "-bottomRight"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return $
})), j.d(O, "b", (function () {
return tt
}));
var p = /iPhone/i,
m = /iPod/i,
g = /iPad/i,
y = /\biOS-universal(?:.+)Mac\b/i,
_ = /\bAndroid(?:.+)Mobile\b/i,
w = /Android/i,
E = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,
T = /Silk/i,
I = /Windows Phone/i,
A = /\bWindows(?:.+)ARM\b/i,
S = /BlackBerry/i,
C = /BB10/i,
D = /Opera Mini/i,
M = /\b(CriOS|Chrome)(?:.+)Mobile/i,
x = /Mobile(?:.+)Firefox\b/i,
N = function (v) {
return void 0 !== v && "MacIntel" === v.platform && "number" == typeof v.maxTouchPoints && v.maxTouchPoints > 1 && "undefined" == typeof MSStream
};
var P, R, k, L, B, U, G, F, H, K, z, W, V, Y, q, Q, X, J, Z, $ = function (v) {
var O = {
userAgent: "",
platform: "",
maxTouchPoints: 0
};
v || "undefined" == typeof navigator ? "string" == typeof v ? O.userAgent = v : v && v.userAgent && (O = {
userAgent: v.userAgent,
platform: v.platform,
maxTouchPoints: v.maxTouchPoints || 0
}) : O = {
userAgent: navigator.userAgent,
platform: navigator.platform,
maxTouchPoints: navigator.maxTouchPoints || 0
};
var j = O.userAgent,
P = j.split("[FBAN");
void 0 !== P[1] && (j = P[0]), void 0 !== (P = j.split("Twitter"))[1] && (j = P[0]);
var R = function (v) {
return function (O) {
return O.test(v)
}
}(j),
k = {
apple: {
phone: R(p) && !R(I),
ipod: R(m),
tablet: !R(p) && (R(g) || N(O)) && !R(I),
universal: R(y),
device: (R(p) || R(m) || R(g) || R(y) || N(O)) && !R(I)
},
amazon: {
phone: R(E),
tablet: !R(E) && R(T),
device: R(E) || R(T)
},
android: {
phone: !R(I) && R(E) || !R(I) && R(_),
tablet: !R(I) && !R(E) && !R(_) && (R(T) || R(w)),
device: !R(I) && (R(E) || R(T) || R(_) || R(w)) || R(/\bokhttp\b/i)
},
windows: {
phone: R(I),
tablet: R(A),
device: R(I) || R(A)
},
other: {
blackberry: R(S),
blackberry10: R(C),
opera: R(D),
firefox: R(x),
chrome: R(M),
device: R(S) || R(C) || R(D) || R(x) || R(M)
},
any: !1,
phone: !1,
tablet: !1
};
return k.any = k.apple.device || k.android.device || k.windows.device || k.other.device, k.phone = k.apple.phone || k.android.phone || k.windows.phone, k.tablet = k.apple.tablet || k.android.tablet || k.windows.tablet, k
}(self.navigator);
! function (v) {
v[v.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", v[v.WEBGL = 1] = "WEBGL", v[v.WEBGL2 = 2] = "WEBGL2"
}(P || (P = {})),
function (v) {
v[v.UNKNOWN = 0] = "UNKNOWN", v[v.WEBGL = 1] = "WEBGL", v[v.CANVAS = 2] = "CANVAS"
}(R || (R = {})),
function (v) {
v[v.COLOR = 16384] = "COLOR", v[v.DEPTH = 256] = "DEPTH", v[v.STENCIL = 1024] = "STENCIL"
}(k || (k = {})),
function (v) {
v[v.NORMAL = 0] = "NORMAL", v[v.ADD = 1] = "ADD", v[v.MULTIPLY = 2] = "MULTIPLY", v[v.SCREEN = 3] = "SCREEN", v[v.OVERLAY = 4] = "OVERLAY", v[v.DARKEN = 5] = "DARKEN", v[v.LIGHTEN = 6] = "LIGHTEN", v[v.COLOR_DODGE = 7] = "COLOR_DODGE", v[v.COLOR_BURN = 8] = "COLOR_BURN", v[v.HARD_LIGHT = 9] = "HARD_LIGHT", v[v.SOFT_LIGHT = 10] = "SOFT_LIGHT", v[v.DIFFERENCE = 11] = "DIFFERENCE", v[v.EXCLUSION = 12] = "EXCLUSION", v[v.HUE = 13] = "HUE", v[v.SATURATION = 14] = "SATURATION", v[v.COLOR = 15] = "COLOR", v[v.LUMINOSITY = 16] = "LUMINOSITY", v[v.NORMAL_NPM = 17] = "NORMAL_NPM", v[v.ADD_NPM = 18] = "ADD_NPM", v[v.SCREEN_NPM = 19] = "SCREEN_NPM", v[v.NONE = 20] = "NONE", v[v.SRC_OVER = 0] = "SRC_OVER", v[v.SRC_IN = 21] = "SRC_IN", v[v.SRC_OUT = 22] = "SRC_OUT", v[v.SRC_ATOP = 23] = "SRC_ATOP", v[v.DST_OVER = 24] = "DST_OVER", v[v.DST_IN = 25] = "DST_IN", v[v.DST_OUT = 26] = "DST_OUT", v[v.DST_ATOP = 27] = "DST_ATOP", v[v.ERASE = 26] = "ERASE", v[v.SUBTRACT = 28] = "SUBTRACT", v[v.XOR = 29] = "XOR"
}(L || (L = {})),
function (v) {
v[v.POINTS = 0] = "POINTS", v[v.LINES = 1] = "LINES", v[v.LINE_LOOP = 2] = "LINE_LOOP", v[v.LINE_STRIP = 3] = "LINE_STRIP", v[v.TRIANGLES = 4] = "TRIANGLES", v[v.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", v[v.TRIANGLE_FAN = 6] = "TRIANGLE_FAN"
}(B || (B = {})),
function (v) {
v[v.RGBA = 6408] = "RGBA", v[v.RGB = 6407] = "RGB", v[v.RG = 33319] = "RG", v[v.RED = 6403] = "RED", v[v.RGBA_INTEGER = 36249] = "RGBA_INTEGER", v[v.RGB_INTEGER = 36248] = "RGB_INTEGER", v[v.RG_INTEGER = 33320] = "RG_INTEGER", v[v.RED_INTEGER = 36244] = "RED_INTEGER", v[v.ALPHA = 6406] = "ALPHA", v[v.LUMINANCE = 6409] = "LUMINANCE", v[v.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", v[v.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", v[v.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL"
}(U || (U = {})),
function (v) {
v[v.TEXTURE_2D = 3553] = "TEXTURE_2D", v[v.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", v[v.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", v[v.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", v[v.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", v[v.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", v[v.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", v[v.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", v[v.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z"
}(G || (G = {})),
function (v) {
v[v.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", v[v.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", v[v.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", v[v.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", v[v.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", v[v.UNSIGNED_INT = 5125] = "UNSIGNED_INT", v[v.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", v[v.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", v[v.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", v[v.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", v[v.BYTE = 5120] = "BYTE", v[v.SHORT = 5122] = "SHORT", v[v.INT = 5124] = "INT", v[v.FLOAT = 5126] = "FLOAT", v[v.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", v[v.HALF_FLOAT = 36193] = "HALF_FLOAT"
}(F || (F = {})),
function (v) {
v[v.FLOAT = 0] = "FLOAT", v[v.INT = 1] = "INT", v[v.UINT = 2] = "UINT"
}(H || (H = {})),
function (v) {
v[v.NEAREST = 0] = "NEAREST", v[v.LINEAR = 1] = "LINEAR"
}(K || (K = {})),
function (v) {
v[v.CLAMP = 33071] = "CLAMP", v[v.REPEAT = 10497] = "REPEAT", v[v.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT"
}(z || (z = {})),
function (v) {
v[v.OFF = 0] = "OFF", v[v.POW2 = 1] = "POW2", v[v.ON = 2] = "ON", v[v.ON_MANUAL = 3] = "ON_MANUAL"
}(W || (W = {})),
function (v) {
v[v.NPM = 0] = "NPM", v[v.UNPACK = 1] = "UNPACK", v[v.PMA = 2] = "PMA", v[v.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", v[v.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", v[v.PREMULTIPLY_ALPHA = 2] = "PREMULTIPLY_ALPHA"
}(V || (V = {})),
function (v) {
v[v.NO = 0] = "NO", v[v.YES = 1] = "YES", v[v.AUTO = 2] = "AUTO", v[v.BLEND = 0] = "BLEND", v[v.CLEAR = 1] = "CLEAR", v[v.BLIT = 2] = "BLIT"
}(Y || (Y = {})),
function (v) {
v[v.AUTO = 0] = "AUTO", v[v.MANUAL = 1] = "MANUAL"
}(q || (q = {})),
function (v) {
v.LOW = "lowp", v.MEDIUM = "mediump", v.HIGH = "highp"
}(Q || (Q = {})),
function (v) {
v[v.NONE = 0] = "NONE", v[v.SCISSOR = 1] = "SCISSOR", v[v.STENCIL = 2] = "STENCIL", v[v.SPRITE = 3] = "SPRITE"
}(X || (X = {})),
function (v) {
v[v.NONE = 0] = "NONE", v[v.LOW = 2] = "LOW", v[v.MEDIUM = 4] = "MEDIUM", v[v.HIGH = 8] = "HIGH"
}(J || (J = {})),
function (v) {
v[v.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", v[v.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", v[v.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER"
}(Z || (Z = {}));
var tt = {
MIPMAP_TEXTURES: W.POW2,
ANISOTROPIC_LEVEL: 0,
RESOLUTION: 1,
FILTER_RESOLUTION: 1,
FILTER_MULTISAMPLE: J.NONE,
SPRITE_MAX_TEXTURES: function (v) {
var O = !0;
if ($.tablet || $.phone) {
var j;
if ($.apple.device)
if (j = navigator.userAgent.match(/OS (\d+)_(\d+)?/)) parseInt(j[1], 10) < 11 && (O = !1);
if ($.android.device)
if (j = navigator.userAgent.match(/Android\s([0-9.]*)/)) parseInt(j[1], 10) < 7 && (O = !1)
}
return O ? v : 4
}(32),
SPRITE_BATCH_SIZE: 4096,
RENDER_OPTIONS: {
view: null,
antialias: !1,
autoDensity: !1,
backgroundColor: 0,
backgroundAlpha: 1,
useContextAlpha: !0,
clearBeforeRender: !0,
preserveDrawingBuffer: !1,
width: 800,
height: 600,
legacy: !1
},
GC_MODE: q.AUTO,
GC_MAX_IDLE: 3600,
GC_MAX_CHECK_COUNT: 600,
WRAP_MODE: z.CLAMP,
SCALE_MODE: K.LINEAR,
PRECISION_VERTEX: Q.HIGH,
PRECISION_FRAGMENT: $.apple.device ? Q.HIGH : Q.MEDIUM,
CAN_UPLOAD_SAME_BUFFER: !$.apple.device,
CREATE_IMAGE_BITMAP: !1,
ROUND_PIXELS: !1
}
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return I
}));
var p = j(0),
m = j(6),
g = j(2),
y = j(40),
_ = j(39),
w = j(7),
E = j(77),
T = j(5),
I = function () {
function v(v) {
this.immortal = !1, this.justLeveled = !1, this.starsEarned = 0, this.data = {}, this.modifiers = null, this.type = "B", this.source = null, this.game = null, this.inPVP = !1, this.catchAttempt = 0, this.starsToProcess = 0, this.starsRewardBase = 100, this.starsReward = 100, this.pvpHP = 0, this.isOpponent = !1, this.showHealthBar = !0, this.onHPChange = new p.Signal, this.aoaTier = 1, this.game = v, this.resetModifiers()
}
return Object.defineProperty(v.prototype, "team", {
get: function () {
return this.data.team
},
set: function (v) {
this.data.team = v
},
enumerable: !1,
configurable: !0
}), v.prototype.removeTeam = function () {
delete this.data.team
}, Object.defineProperty(v.prototype, "bench", {
get: function () {
var v, O, j, p = this,
m = g.a.instance.prodigy.gameContainer.get("fb2-5446"),
y = null === (v = T.a.getItem("generic", 21)) || void 0 === v ? void 0 : v.data.benchData;
return y && m.meetsRequirements(24) && null !== (j = null === (O = y.find((function (v) {
return v.petID === p.data.ID
}))) || void 0 === O ? void 0 : O.bench) && void 0 !== j ? j : this.source.bench
},
enumerable: !1,
configurable: !0
}), v.prototype.init = function (v) {
return p.Utils.isDefined(v)
}, v.prototype.createDataClone = function () {
var v = new this.constructor(this.game);
return v.setData(m.cloneDeep(this.data)), v
}, v.prototype.setData = function (v) {
this.data = v
}, v.getHeartsFromCurve = function (O, j, p) {
var m = v.HP_BONUS[O];
return 20 * (Math.floor((m + 20) * p / 100) - Math.floor((m + 20) * (j - 1) / 100))
}, v.getLevelPercent = function (O) {
var j = v.levelFromStars(O);
if (j >= 100) return 1;
var p = v.starsToLevel(j + 1),
m = v.starsToLevel(j);
return (O - m) / (p - m)
}, v.getAttacksFromCurve = function (v, O, j) {
for (var m = [], g = 0; g < v.length; g++) {
var y = v[g];
y.lvl >= O && y.lvl <= j && p.Utils.isDefined(y.a) && m.push(y.a)
}
return m
}, v.getEvolutionsFromCurve = function (v, O, j) {
for (var m = [], g = !1, y = 0; y < v.length; y++) {
var _ = v[y],
w = null;
p.Utils.isDefined(_.evolveID) ? (w = _.evolveID, g = !0) : p.Utils.isDefined(_.e) && (w = _.e), _.lvl >= O && _.lvl <= j && p.Utils.isDefined(w) && m.push(_)
}
if (g)
for (y = m.length; y-- > 0;) p.Utils.isDefined(m[y].e) && m[y].e > 0 && m.splice(y, 1);
return m
}, v.getAttacksOfType = function (v, O) {
void 0 === O && (O = null);
for (var j = [], p = 0; p < v.length; p++) {
var g = T.a.getItem("spell", v[p]);
null !== O && m.get(g, "data.element", "") !== O || j.push(v[p])
}
return j
}, v.starsToLevel = function (v) {
return _.a.xpRequiredForLevel(v)
}, v.levelFromStars = function (v) {
return _.a.levelFromStars(v)
}, v.enemiesPerLevel = function (v) {
return Math.max(0, Math.floor(Math.pow(1.7, .085 * v) + .8))
}, v.prototype.resetModifiers = function () {
this.modifiers = {
maxHearts: 1,
damage: 1,
miss: 0,
ignoreElement: 0,
potion: null,
barrier: null
}
}, v.prototype.getDataAndClear = function () {
return this.data
}, v.prototype.getID = function () {
return 0
}, v.prototype.canCatch = function () {
return !1
}, v.prototype.getAttacks = function (v) {
return [1]
}, v.prototype.evolve = function (v, O) {
p.Logger.log("You're calling evolve on a Creature subclass that hasn't overridden the evolve function", p.LogLevel.Verbose)
}, v.prototype.isKnockedOut = function () {
return this.getCurrentHearts() <= 0
}, v.prototype.diffAttackSlots = function (v) {
for (var O = [], j = this.getCurrentBamSpells(), p = this.getBamSpells(v), g = 0; g < j.length; g++) m.isEqual(j[g], p[g]) || O.push({
oldID: j[g].ID,
newID: p[g].ID,
newlyUnlocked: j[g].locked && !p[g].locked
});
return O
}, v.prototype.getAvailableEvolutions = function () {
var O = this.getLevel(),
j = v.getEvolutionsFromCurve(this.getLevelingCurve(O), 1, O),
p = this.getID(),
g = [];
j.sort((function (v, O) {
return v.lvl - O.lvl
}));
var y = m.findIndex(j, (function (v) {
return v.evolveID === p
}));
y <= -1 && (y = m.findIndex(j, (function (v) {
return v.e === p
})));
var _ = y + 1;
return _ >= 0 && _ < j.length && (g = j.slice(_, j.length)), g
}, v.prototype.getAllEvolutions = function () {
return v.getEvolutionsFromCurve(this.getLevelingCurve(_.a.MAX_LEVEL), 1, _.a.MAX_LEVEL)
}, v.prototype.getCurrentHearts = function () {
var v = 0;
return this.inPVP ? (p.Utils.isDefined(this.pvpHP) || (this.pvpHP = this.getMaxHearts()), v = this.pvpHP) : p.Utils.isDefined(this.data.hp) ? (this.data.hp > this.getMaxHearts() && (this.data.hp = this.getMaxHearts()), v = this.data.hp) : v = this.getMaxHearts(), E.a.validateInt(v, this.getMaxHearts())
}, v.prototype.getMaxHearts = function (O) {
var j = p.Utils.isDefined(O) ? O : this.getLevel();
return Math.min(Math.floor(_.a.getCreatureHP(this, j)), v.MAX_HEARTS)
}, v.prototype.getBaseMaxHearts = function (v) {
return this.getMaxHearts(v)
}, v.prototype.updateModifier = function (v, O) {
"potion" === v ? this.modifiers.potion = O : "barrier" === v ? this.modifiers.barrier = O : p.Utils.isDefined(this.modifiers[v]) && (this.modifiers[v] += O, this.modifiers[v] <= 0 && (this.modifiers[v] = .01))
}, v.prototype.registerIncomingAttack = function (v, O, j, p) {}, v.prototype.changeCurrentHeartsPercent = function (v) {
var O = Math.round(this.getMaxHearts() * v);
this.changeCurrentHearts(O)
}, v.prototype.changeCurrentHearts = function (v, O) {
void 0 === O && (O = 0);
var j = this.getCurrentHearts();
this.setCurrentHearts(j + v, O)
}, v.prototype.setCurrentHearts = function (v, O) {
void 0 === O && (O = 0);
var j = this.getCurrentHearts(),
m = p.MathUtils.clamp(v, O, this.getMaxHearts());
this.inPVP ? this.pvpHP = Math.round(m) : this.data.hp = Math.round(m), this.onHPChange.dispatch(this, m - j)
}, v.prototype.processStars = function () {
this.starsToProcess > 0 ? this.addStars(this.starsToProcess) : this.game.broadcaster.broadcast(w.f.AnimationDone, this)
}, v.prototype.addStars = function (O, j, m) {
if (void 0 === j && (j = !1), void 0 === m && (m = !1), j) return !1;
if (this.isOpponent) return !1;
var y = Math.round(O),
_ = !1;
this.starsToProcess = 0;
var E = this.getLevel();
if (this.game.broadcaster.broadcast(w.f.StarsAdded, this, null), E >= 100) return !1;
if (p.Utils.isDefined(this.data.stars) ? this.data.stars += y : this.data.stars = y, m || (this.starsEarned += y), this.data.level = v.levelFromStars(this.data.stars), E !== this.data.level) {
var I = this.data.level - E;
if (I > 0) {
var A = g.a.instance.prodigy.gameContainer.get("497-7811").player;
this.data === A.data && this.data.ID === A.data.ID ? (g.a.instance.prodigy.gameContainer.get("6b3-bc0f").create("level_up", "progression").setCustom({
isMemberStars: m,
stars: O
}).broadcast(), g.a.instance.prodigy.gameContainer.get("974-9dfd").playerProgression.sendPlayerProgressionAdvancedEvent({
progressionType: "Player Level",
progressionNewValue: this.getLevel().toString(),
progressionPreviousValue: E.toString(),
creatureName: "Player"
}, {
pointType: "stars",
pointCount: this.getStars()
})) : p.Utils.isDefined(T.a.getItem("pet", this.getID())) && (g.a.instance.prodigy.gameContainer.get("6b3-bc0f").create("pet-level-up", "progression", null, this.getName()).setCustom({
pet_level: this.getLevel(),
rarity: T.a.getItem("pet", this.getID()).data.rarity
}).broadcast(), g.a.instance.prodigy.gameContainer.get("974-9dfd").playerProgression.sendPlayerProgressionAdvancedEvent({
progressionType: "Pet Level",
progressionNewValue: this.getLevel().toString(),
progressionPreviousValue: E.toString(),
creatureName: T.a.getItem("pet", this.getID()).data.name
}, {
pointType: "stars",
pointCount: this.getStars()
}))
}
this.justLeveled = !0, _ = !0, this.game.broadcaster.broadcast(w.f.LevelUp, this, [I])
}
return _
}, v.prototype.getStarsToLevel = function () {
var O = this.getStars(),
j = this.getLevel() >= 100 ? this.getLevel() : this.getLevel() + 1,
p = v.starsToLevel(j);
return Math.max(0, p - O)
}, v.prototype.getPercentToLevel = function () {
if (this.getLevel() >= 100) return 1;
var O = v.starsToLevel(this.getLevel()),
j = v.starsToLevel(this.getLevel() + 1);
return (this.getStars() - O) / (j - O)
}, v.prototype.getStars = function () {
var v;
return p.Utils.isDefined(this.data.stars) || (this.data.stars = 0), E.a.validateInt(null === (v = this.data) || void 0 === v ? void 0 : v.stars, 0)
}, v.prototype.getStarRewardByDamage = function (v) {
var O = this.getMaxHearts(this.getLevel()),
j = this.getCurrentHearts(),
p = 0,
m = v;
return m >= j ? (m = j, (p = Math.floor(this.starsRewardBase * (m / O))) < this.starsReward && (p = this.starsReward)) : p = Math.floor(this.starsRewardBase * (m / O)), p <= 0 && (p = 1), this.starsReward -= p, p
}, v.prototype.getStarReward = function () {
return 0
}, v.prototype.getLevel = function () {
return Math.min(E.a.validateInt(this.data.level, _.a.MIN_LEVEL), _.a.MAX_LEVEL)
}, v.prototype.getLevelingCurve = function (v) {
return []
}, v.prototype.getElement = function () {
return y.a.Wizard
}, v.prototype.getDamageBonus = function () {
return 0
}, v.prototype.getDrops = function () {
return []
}, v.prototype.getName = function () {
return p.Utils.isDefined(this.name) ? this.name.getName() : ""
}, v.prototype.getNameWithoutNickname = function () {
return p.Utils.isDefined(this.name) ? this.name.getNameWithoutNickname() : ""
}, v.prototype.getFirstName = function () {
return p.Utils.isDefined(this.name) ? this.name.getFirstName() : ""
}, v.prototype.getCurrentBamSpells = function () {
return this.getBamSpells(this.getLevel())
}, v.prototype.getSpellAssets = function () {
return m.flatMap(this.getCurrentBamSpells(), (function (v) {
return T.a.getItem("spell", v.ID).metadata.assets
}))
}, v.MAX_HEARTS = 5e4, v.HP_BONUS = {
"A+": 4,
A: 3,
"A-": 2,
"B+": 1,
B: 0,
"B-": -1,
"C+": -2,
C: -3,
"C-": -4
}, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "b", (function () {
return p
})), j.d(O, "a", (function () {
return Z
}));
var p, m = j(1),
g = j(0),
y = j(2),
_ = j(11),
w = j(5),
E = j(275),
T = j(9),
I = j(49),
A = j(134),
S = j(149),
C = j(796),
D = j(35),
M = function (v) {
function O(O, j) {
var p = v.call(this, O, "CR1", "MAP_ACADEMY_SECOND_FLOOR", 640, 520, ["academy-CR1"], j.concat(["spine-102", "spine-91"])) || this;
return p.localizer = null, p.academyZone = null, p.academyZone = O, p
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, m) {
var _ = this;
v.prototype.setup.call(this, O, j, m), this.localizer = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.LocalizationService);
var E = this.game.width,
I = this.game.height;
this.addAreaEvent(O, j, {
x: 162,
y: I,
w: 500,
h: 80,
rect: !0
}, "academy-CR2", 162, 100), this.addAreaEvent(O, j, {
x: E - 162,
y: I,
w: 500,
h: 80,
rect: !0
}, "academy-CR2", 1114, 100);
for (var A = Z.getAllTowerData(), D = y.a.instance.prodigy.gameContainer.get("497-7811").player, M = function (v) {
var m = A[v],
E = m.keystone.zone,
I = m.element,
M = m.enabled;
if ("academy" === E) return "continue";
var N = x.screen.contentGameObject.findChildByName(E + "_tower_lock"),
P = x.screen.aboveGameObject.findChildByName(E + "_warden");
if (D.data.previousZone.includes(m.towerID) && (D.playerContainer.x = .5 * (N.transform.worldPosition.x + P.transform.worldPosition.x), D.playerContainer.y = .5 * (N.transform.worldPosition.y + P.transform.worldPosition.y)), P) {
var R = y.a.instance.prodigy.world.getZone(I + "tower");
if (P.active = !1, g.Utils.isDefined(R) && R.isBossDefeated && R.isWardenSaved) {
var k = new C.a(j, j.content, P.transform.localPosition.x + m.warden.offset.x, P.transform.localPosition.y + m.warden.offset.y, m.warden);
m.warden.flipSpine && k.flip()
}
}
if (x.academyZone.getKeystoneState(E) === p.Placed) {
if (N.active = !1, x.screen.addDoor({
x: N.transform.localPosition.x - 100,
y: N.transform.localPosition.y - 70,
w: 120,
h: 150,
targetX: N.transform.localPosition.x - 40,
targetY: N.transform.localPosition.y + 20,
disableSound: !1
}, (function () {
y.a.instance.prodigy.world._(I + "tower-CR"), _.onTowerDoorClicked(I, M)
})), !y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(T.a.FEATURE_ACADEMY, "BREADCRUMB_" + I.toUpperCase() + "_TOWER")) {
var L = N.transform.worldPosition.x <= y.a.instance.game.width / 2 ? -90 : 0;
x.addGuideHand(O, j, N.transform.worldPosition.x, N.transform.worldPosition.y, 25, 0, L)
}
} else {
x.addCollisionZone(j, N.transform.localPosition.x - 40, N.transform.localPosition.y, 80, 80);
var B = N.findComponentInChildren(S.a);
B.InputEnabled = !0, B.onClicked.add((function () {
var v = _.localizer.getText("BUTTON_OKAY_UPPERCASE"),
O = _.localizer.getText("ACADEMY_TOWER_NOT_RELEASED");
if (M)
if (m.minLevel > 0) O = _.localizer.getText("ACADEMY_TOWER_LOCKED", m.minLevel, w.a.getItem("key", m.keystone.itemID).data.name);
else {
var j = D.backpack.hasItem("key", m.keystone.itemID) > 0 ? "ACADEMY_TOWER_LOCKED_HAS_GEM" : "ACADEMY_TOWER_LOCKED_NO_LEVEL";
O = _.localizer.getText(j, w.a.getItem("key", m.keystone.itemID).data.name)
} y.a.instance.prodigy.open.messageBoxOkay(O, v, null), _.onTowerDoorClicked(I, M)
}))
}
}, x = this, N = 0; N < A.length; N++) M(N)
}, O.prototype.onTowerDoorClicked = function (v, O) {
void 0 === O && (O = !1), y.a.instance.prodigy.gameContainer.get("65d-34e7").create(v + "_tower", "door_clicked", void 0, void 0, void 0, O ? "true" : "false").broadcast()
}, O
}(D.a),
x = function (v) {
function O(O, j) {
return v.call(this, O, "CR2", "MAP_ACADEMY_SECOND_FLOOR", 640, 530, ["academy-CR2"], j.concat([])) || this
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, p) {
var m = this;
v.prototype.setup.call(this, O, j, p), this.localizer = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.LocalizationService), this.addAreaEvent(O, j, {
x: 162,
y: 40,
w: 500,
h: 80,
rect: !0
}, "academy-CR1", 200, 660), this.addAreaEvent(O, j, {
x: 1114,
y: 40,
w: 500,
h: 80,
rect: !0
}, "academy-CR1", 1090, 660), this.addAreaEvent(O, j, {
x: 640,
y: 655,
w: this.game.width,
h: 130,
rect: !0
}, "academy-GH1", 640, 100), y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(T.a.FEATURE_ACADEMY, T.a.BREADCRUMB_ACADEMY_SECOND_FLOOR) || this.addGuideHand(O, j, 180, 40, 0, 25);
var _ = j.contentGameObject.findChildByName("astral_tower_lock");
if (g.Utils.isDefined(_)) {
var w = _.findComponentInChildren(S.a);
w.InputEnabled = !0, w.onClicked.add((function () {
var v = m.localizer.getText("BUTTON_OKAY_UPPERCASE"),
O = m.localizer.getText("ACADEMY_TOWER_NOT_RELEASED");
y.a.instance.prodigy.open.messageBoxOkay(O, v, null)
}))
}
}, O
}(D.a),
N = function (v) {
function O(O, j) {
var p = v.call(this, O, "GH1", "MAP_ACADEMY_GREATHALL", 640, 500, ["academy-GH2"], j.concat(["spine-68", "spine-69", "spine-71", "spine-73", "spine-78"])) || this;
return p.academyZone = null, p.academyZone = O, p
}
return Object(m.__extends)(O, v), O.prototype.init = function (O, j, p, m) {
return this.enableLayerID(1, !this.academyZone.anyKeystonesPlaced()), v.prototype.init.call(this, O, j, p, m)
}, O.prototype.setup = function (j, p, m) {
if (v.prototype.setup.call(this, j, p, m), this.addAreaEvent(j, p, {
x: 640,
y: 655,
w: 1110,
h: 150,
rect: !0
}, "academy-GH2", 640, 100), O.addEffects(j, p), this.academyZone.anyKeystonesPlaced()) this.addAreaEvent(j, p, {
x: 640,
y: 40,
w: 1110,
h: 80,
rect: !0
}, "academy-CR2", 640, 560);
else {
var g = j.add.spine(640, 250, "spine-78");
g.setToSetupPose(), g.setAnimationByName(0, "animation2", !0), g.name = "stairLock", p.content.addChild(g);
var _ = y.a.instance.prodigy.create.sprite(g.x, g.y - 20, "atlas-18", "empty", {
x: .5,
y: .5
}, null, 500, 140);
_.events.onInputUp.add((function () {
var v = y.a.instance.prodigy.dialogue.create();
v.setText(15), v.setText(16), v.startDeprecated("gale")
})), _.alpha = 0, _.inputEnabled = !0, this.screen.content.addChild(_)
}
y.a.instance.prodigy.world.getZone("academy").anyKeystonesPlaced() && !y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(T.a.FEATURE_ACADEMY, T.a.BREADCRUMB_ACADEMY_SECOND_FLOOR) && this.addGuideHand(j, p, 640, 40, 0, 25)
}, O.addEffects = function (v, O) {
var j = 265,
p = 420,
m = 1015,
g = 420,
y = v.add.spine(419, 212, "spine-68");
y.setToSetupPose(), y.setAnimationByName(0, "animation", !0);
var _ = v.add.spine(861, 212, "spine-68");
_.setToSetupPose(), _.setAnimationByName(0, "animation", !0), O.foreground.addChild(y), O.foreground.addChild(_);
var w = v.add.spine(j, p, "spine-71");
w.setToSetupPose(), w.setAnimationByName(0, "animation", !0), w.scale.x = -1;
var E = v.add.spine(m, g, "spine-71");
E.setToSetupPose(), E.setAnimationByName(0, "animation", !0), O.foreground.addChild(w), O.foreground.addChild(E);
var T = v.add.spine(j, p, "spine-73");
T.setToSetupPose(), T.setAnimationByName(0, "animation", !0), T.scale.x = -1;
var I = v.add.spine(m, g, "spine-73");
I.setToSetupPose(), I.setAnimationByName(0, "animation", !0), O.background.addChild(T), O.background.addChild(I)
}, O
}(D.a),
P = j(350),
R = j(38),
k = j(85),
L = j(351),
B = function (v) {
function O(O, j) {
return v.call(this, O, "GH3", "MAP_ACADEMY_GREATHALL", 640, 500, ["academy-GH2"], j.concat(["spine-69", "spine-75", "spine-83", "spine-84"])) || this
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, p) {
var m = this;
v.prototype.setup.call(this, O, j, p), this.addAreaEvent(O, j, {
x: 640,
y: 40,
w: 1110,
h: 80,
rect: !0
}, "academy-GH2", 640, 570), this.addAreaEvent(O, j, {
x: 640,
y: 600,
w: 500,
h: 180,
canReTrigger: !0
}, null, null, null, (function () {
y.a.instance.prodigy.open.map(!1, y.a.instance.prodigy.classModeController.getInClassDisabledZones())
})), this._archiveEntranceAreaEvent = this.addAreaEvent(O, j, {
x: 900,
y: 465,
w: 150,
h: 120,
rect: !0,
canReTrigger: !0
}, null, null, null, (function () {
y.a.instance.prodigy.open.archiveEntranceMenu("archives", (function () {
m.moveOffArchiveEntrance()
}))
}));
var _ = y.a.instance.prodigy.create.sprite(900, 465, "atlas-18", "empty", {
x: .5,
y: .5
}, null, 150, 120);
_.events.onInputUp.add((function () {
m.screen.path.findPath(m.screen.user.x, m.screen.user.y, _.x - 40, _.y + 20, (function (v) {
g.Utils.isDefined(v) && m.screen.user.setPath(v, null)
}), !0)
})), _.alpha = 0, _.inputEnabled = !0, this.screen.content.addChild(_), new k.a(O, "NPC_NAME_GALE", 83, R.a.CareGiver, j.content, 915, 180, "animation").onClick.add((function () {
var v = y.a.instance.prodigy.event.create();
v.text(14, "gale"), v.start()
}), this), new k.a(O, "NPC_NAME_ACADEMY_MERCHANT", 84, R.a.Merchant, j.content, 345, 180, "animation").onClick.add((function () {
return y.a.instance.prodigy.open.store(35)
}));
var w = O.add.spine(949, 450, "spine-75");
(w.setAnimationByName(0, "animation", !0), w.scale.x = -1, g.Utils.isDefined(L.a.getLastDungeonRun(this.game, "archives")) && 0 !== L.a.getLastDungeonRun(this.game, "archives").lastRunTimeStamp) ? y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(T.a.FEATURE_ACADEMY_TOWERS, T.a.BREADCRUMB_ACADEMY_UNPLACED_KEYSTONES) || y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(T.a.FEATURE_ACADEMY_TOWERS, T.a.BREADCRUMB_ACADEMY_NO_KEYSTONES) || this.addGuideHand(O, j, 640, 30, 0, 20): y.a.instance.prodigy.create.element(j.foreground, 880, 410).highlight(!0);
j.content.addChild(w)
}, O.prototype.moveOffArchiveEntrance = function () {
if (this._archiveEntranceAreaEvent) {
var v = y.a.instance.prodigy.gameContainer.get("497-7811").player.playerContainer;
v.setValidPath(this.screen.path, this._archiveEntranceAreaEvent.x - v.width, v.y)
}
}, O
}(D.a),
U = function (v) {
function O(O, j) {
return v.call(this, O, j, 1, "", {
type: "seq",
N: 1
}, ["academy-GH1"], [], [], [], [], !1) || this
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, p) {
return v.prototype.setup.call(this, O, j, p), "GH3" === p.getTag() ? y.a.instance.prodigy.world.playScene("academy-greatHallPt1") : "GH2" === p.getTag() ? y.a.instance.prodigy.world.playScene("academy-greatHallPt2") : "GH1" === p.getTag() && (this.zone.isOnSequence(1, 0) ? y.a.instance.prodigy.world.playScene("academy-greatHallPt3") : y.a.instance.prodigy.world.playScene("academy-greatHallPt4")), {
quit: !0
}
}, O
}(j(31).a),
G = j(86),
F = function (v) {
function O(O, j) {
var p = v.call(this, O, "GH2", j.concat(["atlas-81", "atlas-83", "spine-15", "atlas-116", "bgm-11", "bgm-12", "spine-67", "spine-69", "spine-72", "spine-73", "spine-74", "sfx-38", "sfx-36", "sfx-39", "sfx-40", "sfx-41"]), "map-academy-GH2") || this;
return p.noot = null, p
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, p) {
v.prototype.setup.call(this, O, j, p), this.screen.user.position.x = 640, this.screen.user.position.y = 570, this.noot = this.screen.addNPC(700, 570, "atlas-81"), this.noot.float(!0), P.a.initKeystones(this.game, this.screen), P.a.addEffects(O, j)
}, O.prototype.start = function (O, j) {
v.prototype.start.call(this, O, j);
var p = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.IFSMController),
m = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.FSMService),
_ = y.a.instance.prodigy.gameContainer.get("497-7811").player.state.get("keystones-first"),
w = Z.getAllTowerData().find((function (v) {
return v.keystone.zone === _.zone
})).element;
p.execute(m.getStateMachine(79), {
game: O,
screen: j,
scene: this,
player: j.user,
noot: this.noot,
keystoneData: _,
element: w,
pathfinder: j.path
}, null)
}, O.prototype.placeKeystone = function (v, O) {
y.a.instance.prodigy.gameContainer.get("974-9dfd").academyTowers.sendFunnelEvent({
funnelName: "academy_towers",
funnelType: "story",
step: E.a.FirstKeystonePlaced
}, O), P.a.placeKeystone(this.game, this.screen, v, O)
}, O.prototype.cleanup = function () {
this.noot && (this.noot.destroy(), this.noot = null), v.prototype.cleanup.call(this)
}, O
}(G.a),
H = j(800),
K = function (v) {
function O(O, j) {
var p = v.call(this, O, "B0", j.concat(["tileset-generic-new", "tileset-town-new", "tileset-forest-new", "spine-81", "bgm-9", "bgm-12", "sfx-34", "sfx-35", "spine-15"]), "map-lamplight-B0") || this;
return p.noot = null, p.pippet = null, p.portal = null, p
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, p) {
v.prototype.setup.call(this, O, j, p), j.user.position.x = 120, j.user.position.y = 880, this.portal = O.add.spine(870, 425, "spine-81"), this.portal.setToSetupPose(), j.content.addChild(this.portal)
}, O.prototype.start = function (O, j) {
v.prototype.start.call(this, O, j), this.noot = j.addNPC(150, 850, "atlas-81"), this.noot.float(!0), this.noot.walkSpeed = 2, this.pippet = new H.a(O, "NPC_NAME_PIPPET", 15, j.content, 120, 880, "idle", j.user);
var p = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.IFSMController),
m = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.FSMService);
p.execute(m.getStateMachine(67), {
game: O,
screen: j,
scene: this,
player: j.user,
noot: this.noot,
pippet: this.pippet,
path: j.path,
pathfinder: j.path,
portal: this.portal
}, null)
}, O.prototype.cleanup = function () {
this.noot && (this.noot.destroy(), this.noot = null), this.pippet && (this.pippet.destroy(), this.pippet = null), this.portal && (this.portal.destroy(), this.portal = null), v.prototype.cleanup.call(this)
}, O.prototype.resizeContainer = function (v, O) {
y.a.instance.prodigy.effects.resizeContainer(v, O)
}, O.prototype.removePippet = function () {
this.pippet.destroy()
}, O.prototype.playNextScene = function () {
y.a.instance.prodigy.world.playScene("academy-introPt2")
}, O
}(G.a),
z = function (v) {
function O(O, j) {
var p = v.call(this, O, "GH3", j.concat(["atlas-81", "atlas-83", "spine-15", "atlas-116", "bgm-11", "bgm-12", "spine-81", "spine-83", "spine-84", "spine-75", "sfx-34", "sfx-35"]), "map-academy-GH3") || this;
return p.noot = null, p.gale = null, p.academyMerchan = null, p.portal = null, p.trapDoor = null, p
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, p) {
v.prototype.setup.call(this, O, j, p), j.user.scale.set(0, 0), j.user.position.x = 370, j.user.position.y = 350, this.gale = new k.a(O, "NPC_NAME_GALE", 83, R.a.CareGiver, j.content, 915, 235, "animation"), this.gale.walkSpeed = 2, this.academyMerchan = new k.a(O, "NPC_NAME_ACADEMY_MERCHANT", 84, R.a.Merchant, j.content, 350, 180, "animation"), this.portal = O.add.spine(370, 300, "spine-81"), this.portal.setToSetupPose(), j.content.addChild(this.portal), this.trapDoor = O.add.spine(949, 450, "spine-75"), this.trapDoor.setAnimationByName(0, "animation", !0), this.trapDoor.scale.x = -1, j.content.addChild(this.trapDoor)
}, O.prototype.start = function (O, j) {
v.prototype.start.call(this, O, j), this.noot = j.addNPC(370, 350, "atlas-81"), this.noot.scale.set(0, 0), this.noot.float(!0), this.noot.walkSpeed = 2;
var p = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.IFSMController),
m = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.FSMService);
p.execute(m.getStateMachine(76), {
game: O,
screen: j,
scene: this,
player: j.user,
noot: this.noot,
gale: this.gale,
path: j.path,
pathfinder: j.path,
portal: this.portal
}, null)
}, O.prototype.cleanup = function () {
this.noot && (this.noot.destroy(), this.noot = null), this.gale && (this.gale.destroy(), this.gale = null), this.portal && (this.portal.destroy(), this.portal = null), this.trapDoor && (this.trapDoor.destroy(), this.trapDoor = null), v.prototype.cleanup.call(this)
}, O.prototype.resizeContainer = function (v, O) {
y.a.instance.prodigy.effects.resizeContainer(v, O)
}, O
}(G.a),
W = function (v) {
function O(O, j) {
var p = v.call(this, O, "CR2", j.concat([]), "map-academy-CR2") || this;
return p.noot = null, p
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, p) {
v.prototype.setup.call(this, O, j, p), this.screen.user.position.x = 640, this.screen.user.position.y = 900, this.noot = this.screen.addNPC(700, 900, "atlas-81"), this.noot.float(!0)
}, O.prototype.start = function (O, j) {
v.prototype.start.call(this, O, j);
var p = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.IFSMController),
m = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.FSMService);
p.execute(m.getStateMachine(81), {
game: O,
screen: j,
scene: this,
player: j.user,
noot: this.noot,
pathfinder: j.path
}, null)
}, O.prototype.cleanup = function () {
this.noot && (this.noot.destroy(), this.noot = null), v.prototype.cleanup.call(this)
}, O
}(G.a),
V = function (v) {
function O(O, j) {
var p = v.call(this, O, "GH1", j.concat(["atlas-81", "atlas-83", "spine-15", "atlas-116", "bgm-11", "bgm-12", "spine-67", "spine-68", "spine-69", "spine-71", "spine-72", "spine-73", "spine-74", "spine-78", "sfx-38", "sfx-36"]), "map-academy-GH1") || this;
return p.noot = null, p
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, p) {
v.prototype.setup.call(this, O, j, p), this.screen.user.position.x = 640, this.screen.user.position.y = 900, this.noot = this.screen.addNPC(700, 900, "atlas-81"), this.noot.float(!0), N.addEffects(O, j)
}, O.prototype.start = function (O, j) {
v.prototype.start.call(this, O, j);
var p = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.IFSMController),
m = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.FSMService);
p.execute(m.getStateMachine(80), {
game: O,
screen: j,
scene: this,
player: j.user,
noot: this.noot,
pathfinder: j.path
}, null)
}, O.prototype.cleanup = function () {
this.noot && (this.noot.destroy(), this.noot = null), v.prototype.cleanup.call(this)
}, O
}(G.a),
Y = function (v) {
function O(O, j) {
var p = v.call(this, O, "GH3", j.concat(["atlas-81", "atlas-83", "spine-15", "atlas-116", "bgm-11", "bgm-12", "spine-67", "spine-69", "spine-72", "sfx-37"]), "map-academy-GH3") || this;
return p.noot = null, p
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, p) {
v.prototype.setup.call(this, O, j, p), j.user.position.x = 640, j.user.position.y = 850, this.debris = this.game.add.spine(640, 480, "spine-67"), this.debris.setToSetupPose(), this.screen.foreground.addChild(this.debris)
}, O.prototype.start = function (O, j) {
v.prototype.start.call(this, O, j, 20), this.noot = j.addNPC(640, 760, "atlas-81"), this.noot.float(!0), this.noot.walkSpeed = 2;
var p = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.IFSMController),
m = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.FSMService);
p.execute(m.getStateMachine(53), {
game: O,
screen: j,
scene: this,
player: j.user,
noot: this.noot,
path: j.path,
pathfinder: j.path,
debris: this.debris
}, null)
}, O.prototype.cleanup = function () {
this.noot && (this.noot.destroy(), this.noot = null), this.debris && (this.debris.destroy(), this.debris = null), v.prototype.cleanup.call(this)
}, O
}(G.a),
q = function (v) {
function O(O, j) {
var p = v.call(this, O, "GH2", j.concat(["atlas-81", "atlas-83", "atlas-116", "bgm-11", "bgm-12", "spine-15", "spine-67", "spine-69", "spine-72", "spine-73", "spine-74", "spine-65", "spine-67", "sfx-38", "sfx-36"]), "map-academy-GH2") || this;
return p.noot = null, p
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, p) {
v.prototype.setup.call(this, O, j, p), j.user.position.x = 640, j.user.position.y = 850, this.keystonesSpine = this.game.add.spine(640, 403, "spine-65"), this.keystonesSpine.setToSetupPose(), this.screen.content.addChild(this.keystonesSpine), this.debris = this.game.add.spine(640, 480, "spine-67"), this.debris.setToSetupPose(), this.screen.foreground.addChild(this.debris), P.a.addEffects(O, j)
}, O.prototype.start = function (O, j) {
v.prototype.start.call(this, O, j, 12), this.noot = j.addNPC(640, 800, "atlas-81"), this.noot.float(!0), this.noot.walkSpeed = 2;
var p = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.IFSMController),
m = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.FSMService);
p.execute(m.getStateMachine(54), {
game: O,
screen: j,
scene: this,
player: j.user,
noot: this.noot,
keystones: this.keystonesSpine,
debris: this.debris
}, null)
}, O.prototype.cleanup = function () {
this.noot && (this.noot.destroy(), this.noot = null), this.keystonesSpine && (this.keystonesSpine.destroy(), this.keystonesSpine = null), this.debris && (this.debris.destroy(), this.debris = null), v.prototype.cleanup.call(this)
}, O
}(G.a),
Q = j(333),
X = function (v) {
function O(O, j) {
var p = v.call(this, O, "GH1", j.concat(["atlas-81", "atlas-83", "atlas-116", "bgm-11", "bgm-12", "spine-68", "spine-69", "spine-71", "spine-73", "spine-15"]), "map-academy-GH1") || this;
return p.noot = null, p
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, p) {
v.prototype.setup.call(this, O, j, p), j.user.position.x = 640, j.user.position.y = 850, this.master = new Q.a(O, j.content, 640, 0), this.pippet = new k.a(O, "NPC_NAME_PIPPET", 15, R.a.Boss, j.content, 640, 0, "idle"), this.pippet.flip(), this.master.alpha = this.pippet.alpha = 1, N.addEffects(O, j)
}, O.prototype.start = function (O, j) {
v.prototype.start.call(this, O, j, 12), this.noot = j.addNPC(640, 800, "atlas-81"), this.noot.float(!0), this.noot.walkSpeed = 2;
var p = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.IFSMController),
m = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.FSMService);
p.execute(m.getStateMachine(55), {
game: O,
screen: j,
scene: this,
player: j.user,
noot: this.noot,
path: j.path,
puppetmaster: this.master,
pippet: this.pippet,
pathfinder: j.path
}, null)
}, O.prototype.battle = function (v) {
var O = this,
j = {
intro: y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.LocalizationService).getText("COMBAT_MINION_BATTLE"),
screen: "battle-academy-gh-stairs",
encounter: [{
ID: 69
}],
drops: [{
type: "gold",
N: 50
}],
dropsDisabled: !0,
epicAttacksDisabled: !0,
switchDisabled: !0,
difficulty: 3,
minTeamSize: 2,
maxTeamSize: 2,
playerImmortal: !0,
catch: !1,
bench: [{
petID: 122,
weight: 1
}]
};
y.a.instance.prodigy.gameContainer.get("497-7811").player.setEnergy(1), y.a.instance.prodigy.battle.battleStats.type = "AcademyTutorialBattle", y.a.instance.prodigy.battle.start(j, (function () {
O.endBattle()
}), (function () {
O.endBattle()
}), (function () {
O.endBattle()
}), "academy-GH1")
}, O.prototype.endBattle = function () {
y.a.instance.prodigy.gameContainer.get("65d-34e7").create("tutorial_2", "academy_minion_battle").broadcast(), y.a.instance.prodigy.world._("academy-GH1"), this.zone.completeSequence(1, 0)
}, O.prototype.cleanup = function () {
this.noot && (this.noot.destroy(), this.noot = null), this.master && (this.master.destroy(), this.master = null), this.pippet && (this.pippet.destroy(), this.pippet = null), v.prototype.cleanup.call(this)
}, O
}(G.a),
J = function (v) {
function O(O, j) {
var p = v.call(this, O, "GH1", j.concat(["atlas-81", "atlas-83", "atlas-116", "bgm-11", "bgm-12", "spine-68", "spine-69", "spine-71", "spine-73", "spine-15"]), "map-academy-GH1") || this;
return p.noot = null, p
}
return Object(m.__extends)(O, v), O.prototype.setup = function (O, j, p) {
v.prototype.setup.call(this, O, j, p), j.user.position.x = 320, j.user.position.y = 520, this.noot = j.addNPC(430, 520, "atlas-81"), this.noot.float(!0), this.noot.walkSpeed = 2, this.master = new Q.a(O, j.content, 640, 480), this.pippet = new k.a(O, "NPC_NAME_PIPPET", 15, R.a.Boss, j.content, 815, 490, "idle"), this.pippet.flip(), this.master.alpha = this.pippet.alpha = 1, N.addEffects(O, j)
}, O.prototype.start = function (O, j) {
v.prototype.start.call(this, O, j, 12);
var p = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.IFSMController),
m = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.FSMService);
p.execute(m.getStateMachine(77), {
game: this.game,
screen: this.screen,
scene: this,
player: j.user,
noot: this.noot,
path: this.screen.path,
puppetmaster: this.master,
pippet: this.pippet,
pathfinder: this.screen.path
}, null)
}, O.prototype.cleanup = function () {
this.noot && (this.noot.destroy(), this.noot = null), this.master && (this.master.destroy(), this.master = null), this.pippet && (this.pippet.destroy(), this.pippet = null), v.prototype.cleanup.call(this)
}, O
}(G.a);
! function (v) {
v[v.None = 0] = "None", v[v.Placed = 1] = "Placed"
}(p || (p = {}));
var Z = function (v) {
function O(O) {
var j = v.call(this, O) || this;
j.name = "The Academy", j.ID = "academy", j.battleBG = "battle-academy-gh-stairs", j.onFaint = "academy-GH3", j.questHub = "academy-GH3", j.bgmID = 20, j.currency = 13, j.states = ["daily"], j.monsters = [];
var p = ["tileset-academy", "tileset-academy-sup", "tileset-collisions", "bgm-" + j.bgmID, "sfx-15"];
return j.maps = {
GH1: new N(j, p),
GH2: new P.a(j, p),
GH3: new B(j, p),
CR1: new M(j, p),
CR2: new x(j, p)
}, j.quests = {
1: new U(j, p)
}, j.scenes = {
greatHallPt1: new Y(j, p),
greatHallPt2: new q(j, p),
greatHallPt3: new X(j, p),
greatHallPt4: new J(j, p),
introPt1: new K(j, p),
introPt2: new z(j, p),
firstKeystone: new F(j, p),
stairsUnlocked: new V(j, p),
secondFloor: new W(j, p)
}, j
}
return Object(m.__extends)(O, v), O.prototype.placeDaily = function (v, O, j) {}, O.prototype.init = function (O, j, p) {
v.prototype.init.call(this, O, j, p);
var m = y.a.instance.prodigy.gameContainer.get("497-7811").player;
!g.Utils.isDefined(this.getCurrentQuest()) && m.backpack.hasItem("key", 22) <= 0 && !y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(T.a.BREADCRUMB_UNLOCK_ACADEMY, T.a.BREADCRUMB_UNLOCK_ACADEMY_NOOT_DIALOGUE) ? (this.bgmID = 12, this.startQuest(1)) : this.bgmID = 20
}, O.prototype.teleport = function (O, j, p, m, g) {
var _ = y.a.instance.prodigy.gameContainer.get("497-7811").player;
_.hasCompletedTutorial() && _.backpack.hasItem("key", 22) <= 0 ? y.a.instance.prodigy.world._("lamplight-B0") : (y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(T.a.FEATURE_ACADEMY_TOWERS, T.a.BREADCRUMB_ACADEMY_VISITED) || (y.a.instance.prodigy.gameContainer.get("6b3-bc0f").create("breadcrumb", "menu", "map_academy_breadcrumb_clicked").broadcast(), y.a.instance.prodigy.breadcrumbManager.completeBreadcrumb(T.a.FEATURE_ACADEMY_TOWERS, T.a.BREADCRUMB_ACADEMY_VISITED)), v.prototype.teleport.call(this, O, j, p, m, g), this.sendSegmentTrackingEvents())
}, O.prototype.sendSegmentTrackingEvents = function () {
var v, j = this,
m = y.a.instance.prodigy.gameContainer.get("497-7811").player,
g = m.data.zone,
w = m.data.previousZone;
y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(T.a.FEATURE_ACADEMY_TOWERS, T.a.BREADCRUMB_ACADEMY_VISITED_AFTER_RECIEVING_KEYSTONE) || (v = O.getAllTowerData().filter((function (v) {
return m.backpack.hasItem("key", v.keystone.itemID)
}))) && (v.forEach((function (v) {
y.a.instance.prodigy.gameContainer.get("974-9dfd").academyTowers.sendFunnelEvent({
funnelName: I.a.format("{0}_tower", v.element),
funnelType: "feature",
step: E.a.AcademyTeleport
})
})), y.a.instance.prodigy.breadcrumbManager.completeBreadcrumb(T.a.FEATURE_ACADEMY_TOWERS, T.a.BREADCRUMB_ACADEMY_VISITED_AFTER_RECIEVING_KEYSTONE));
g === "academy-" + _.a.TOWER_COMMON_ROOM_SHORTFORM + "1" && w === "academy-" + _.a.TOWER_COMMON_ROOM_SHORTFORM + "2" && (y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(T.a.FEATURE_ACADEMY_TOWERS, T.a.BREADCRUMB_ACADEMY_TOWER_LOBBY_VISITED_AFTER_PLACING_KEYSTONE) || (v = O.getAllTowerData().filter((function (v) {
return j.getKeystoneState(v.keystone.zone) === p.Placed
}))) && (v.forEach((function (v) {
y.a.instance.prodigy.gameContainer.get("974-9dfd").academyTowers.sendFunnelEvent({
funnelName: I.a.format("{0}_tower", v.element),
funnelType: "feature",
step: E.a.AcademyTowerLobby
})
})), y.a.instance.prodigy.breadcrumbManager.completeBreadcrumb(T.a.FEATURE_ACADEMY_TOWERS, T.a.BREADCRUMB_ACADEMY_TOWER_LOBBY_VISITED_AFTER_PLACING_KEYSTONE)));
"academy-GH2" === g && "academy-GH3" === w && (y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(T.a.FEATURE_ACADEMY_TOWERS, T.a.BREADCRUMB_ACADEMY_PEDESTAL_ROOM_VISITED_AFTER_RECIEVING_KEYSTONE) || (v = O.getAllTowerData().filter((function (v) {
return m.backpack.hasItem("key", v.keystone.itemID)
}))) && (v.forEach((function (v) {
y.a.instance.prodigy.gameContainer.get("974-9dfd").academyTowers.sendFunnelEvent({
funnelName: I.a.format("{0}_tower", v.element),
funnelType: "feature",
step: E.a.PedestalRoom
})
})), y.a.instance.prodigy.breadcrumbManager.completeBreadcrumb(T.a.FEATURE_ACADEMY_TOWERS, T.a.BREADCRUMB_ACADEMY_PEDESTAL_ROOM_VISITED_AFTER_RECIEVING_KEYSTONE)))
}, O.getAllTowerData = function () {
return w.a.getCategoryItems("academyTower").sort((function (v, O) {
return v.ID - O.ID
})).map((function (v) {
return v.data
}))
}, O.getTowerData = function (v) {
for (var j = O.getAllTowerData(), p = 0; p < j.length; p++)
if (j[p].towerID === v || j[p].element === v) return j[p];
return null
}, O.prototype.setKeystoneState = function (v, O) {
var j = y.a.instance.prodigy.gameContainer.get("497-7811").player;
j.state.set("keystones-" + v.zone, O), O === p.Placed && (j.backpack.consume("key", v.itemID, 1), j.state.set("keystones-" + v.zone + "Date", Date.now()))
}, O.prototype.getKeystoneState = function (v) {
return y.a.instance.prodigy.gameContainer.get("497-7811").player.state.get("keystones-" + v)
}, O.prototype.anyKeystonesPlaced = function () {
var v = y.a.instance.prodigy.gameContainer.get("497-7811").player;
return g.Utils.isDefined(v.state.get("keystones"))
}, O.prototype.resetAllKeystones = function () {
y.a.instance.prodigy.gameContainer.get("497-7811").player.state.set("keystones", null)
}, O.anyKeystonesToPlace = function () {
for (var v = y.a.instance.prodigy.gameContainer.get("497-7811").player, j = O.getAllTowerData(), p = 0; p < j.length; p++) {
var m = j[p];
if (v.backpack.hasItem("key", m.keystone.itemID) > 0 && v.getLevel() >= m.minLevel && m.enabled) return !0
}
return !1
}, O
}(A.a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return m
}));
var p = j(183),
m = function () {
function v() {}
return v.bringToTop = function (v) {
return v.parent ? (v.parent.setChildIndex(v, v.parent.children.length - 1), v) : v
}, v.sendToBack = function (v) {
return v.parent ? (v.parent.setChildIndex(v, 0), v) : v
}, v.moveUp = function (v) {
if (!v.parent) return v;
if (v.parent instanceof p.a) v.parent.moveUp(v);
else {
var O = v.parent.getChildIndex(v);
O < v.parent.children.length && v.parent.setChildIndex(v, O + 1)
}
return v
}, v.moveDown = function (v) {
if (!v.parent) return v;
if (v.parent instanceof p.a) v.parent.moveDown(v);
else {
var O = v.parent.getChildIndex(v);
O > 0 && v.parent.setChildIndex(v, O - 1)
}
return v
}, v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return g
}));
var p = j(6),
m = j(4),
g = function () {
function v() {}
return v.determineJustLocked = function (v, O) {
return !this.isSkillLocked(v) && this.isSkillLocked(O)
}, v.determineJustUnlocked = function (v, O) {
return this.isSkillLocked(v) && !this.isSkillLocked(O)
}, v.determineJustMastered = function (v, O) {
return !this.isSkillMastered(v) && this.isSkillMastered(O)
}, v.shouldHaveShroud = function (v) {
return this.isSkillLocked(v)
}, v.shouldHaveStubbornShadow = function (v, O) {
return !this.isSkillMastered(v) && !this.isSkillLocked(v) && this.isBlockCountIsAtMaximumAllowed(O) && this.isSkillCorrectCountAtBlockCountMaximum(v)
}, v.getBlockDiscrepancy = function (v, O) {
var j = v.totalCorrectCount - O.blockCount,
p = m.a.MAX_SMART_BLOCKS - O.blockCount;
return p < j ? p : j
}, v.determineNewBlockCount = function (v, O) {
if (!v) return m.a.MAX_SMART_BLOCKS;
var j = this.getBlockDiscrepancy(v, O) + O.blockCount;
return this.isSkillMastered(v) || this.isBlockCountIsAtMaximumAllowed(j) ? m.a.MAX_SMART_BLOCKS : j
}, v.isBlockCountIsAtMaximumAllowed = function (v) {
return v >= m.a.MAX_SMART_BLOCKS
}, v.isSkillCorrectCountAtBlockCountMaximum = function (v) {
return v.totalCorrectCount >= m.a.MAX_SMART_BLOCKS
}, v.getCurrentSkillByGrade = function (v, O) {
var j = this;
return Object(p.first)(this.getSkillsByGrade(v, O).filter((function (v) {
return !j.isSkillMastered(v) && !j.isSkillLocked(v)
})))
}, v.getSkillsByGrade = function (v, O) {
return v.filter((function (v) {
return v.grade === O
}))
}, v.getSkillsMasteredByGrade = function (v, O) {
var j = this;
return Object(p.orderBy)(v.filter((function (v) {
return j.isSkillMastered(v)
})), ["dateMastered"]).filter((function (v) {
return v.grade === O
}))
}, v.getPendingSkillsByGrade = function (v, O) {
var j = this;
return v.filter((function (v) {
return !j.isSkillMastered(v) && v.grade === O
}))
}, v.getSkillById = function (v, O) {
return Object(p.find)(v, ["ID", O])
}, v.answersToUnlock = function (v) {
return v ? v.lock : 0
}, v.isAvailable = function (v) {
return v.isAvailable
}, v.isSkillMastered = function (v) {
return v.hasBeenMastered
}, v.isSkillLocked = function (v) {
return v.lock > 0
}, v.hasMaximumTheta = function (v) {
return v.theta === m.a.THETA_MAXIMUM
}, v.hasMinimumTheta = function (v) {
return v.theta === m.a.THETA_MINIMUM
}, v.isSkillIdMobileFriendly = function (v, O) {
return !Object(p.includes)(O, v)
}, v
}()
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.Start = "start", v.EasyPath = "easyPath", v.HardPath = "hardPath", v.End = "end"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return g
}));
var p = j(1),
m = j(2),
g = function (v) {
function O(O, j, p, g, y, _, w, E, T, I) {
void 0 === O && (O = "Quit"), void 0 === j && (j = null), void 0 === p && (p = "Stay"), void 0 === g && (g = null), void 0 === y && (y = null);
var A = v.call(this, _, w, E, T, I) || this;
return A._confirmButtonText = O, A._confirmButtonCallback = function () {
m.a.instance.prodigy.audio.playSFX(18, "pop"), null == j || j()
}, A._dismissButtonText = p, A._dismissButtonCallback = function () {
m.a.instance.prodigy.audio.playSFX(18, "pop"), null == g || g()
}, A._headerIcon = y, A
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "confirmButtonText", {
get: function () {
return this._confirmButtonText
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "confirmButtonCallback", {
get: function () {
return this._confirmButtonCallback
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "dismissButtonText", {
get: function () {
return this._dismissButtonText
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "dismissButtonCallback", {
get: function () {
return this._dismissButtonCallback
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "headerIcon", {
get: function () {
return this._headerIcon
},
enumerable: !1,
configurable: !0
}), O
}(j(401).a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return y
}));
var p = j(1),
m = j(0),
g = j(3),
y = function (v) {
function O() {
return null !== v && v.apply(this, arguments) || this
}
return Object(p.__extends)(O, v), O.prototype.create = function () {
var O;
v.prototype.create.call(this), this.setValue((null === (O = this._saveData) || void 0 === O ? void 0 : O.getData()) || this._booleanValue)
}, O.prototype.setValue = function (O) {
v.prototype.setValue.call(this, O), this._booleanValue = O, this._saveData && this._saveData.setData(O)
}, Object(p.__decorate)([Object(m.serializeBoolean)(), Object(p.__metadata)("design:type", Boolean)], O.prototype, "_booleanValue", void 0), Object(p.__decorate)([Object(m.serializeComponent)(m.SaveDataComponent), Object(p.__metadata)("design:type", m.SaveDataComponent)], O.prototype, "_saveData", void 0), O = Object(p.__decorate)([Object(m.componentable)("BooleanState", g.a.utility)], O)
}(j(285).a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return E
}));
var p = j(1),
m = j(0),
g = j(5),
y = j(3),
_ = j(19),
w = j(43),
E = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O.onIconLoaded = new m.Signal, O._updateHasBeenCalled = !1, O
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "itemID", {
get: function () {
return this._itemID
},
enumerable: !1,
configurable: !0
}), O.prototype.create = function () {
v.prototype.create.call(this), this._updateHasBeenCalled || this.updateIconImage()
}, O.prototype.setItem = function (v, O, j) {
void 0 === j && (j = !1), this._itemAssetType !== v || this._itemID !== O ? (this._itemAssetType = v, this._itemID = O, this.updateIconImage()) : j && this.onIconLoaded.dispatch()
}, O.prototype.setItemAssetType = function (v) {
this._itemAssetType !== v && (this._itemAssetType = v, this.updateIconImage())
}, O.prototype.setItemID = function (v) {
this._itemID !== v && (this._itemID = v, this.updateIconImage())
}, O.prototype.setIconTarget = function (v) {
this._iconTarget = v, this.updateIconImage()
}, O.prototype.updateIconImage = function () {
if (this._updateHasBeenCalled = !0, m.Utils.isDefined(this._itemAssetType) && ("gold" === this._itemAssetType || m.Utils.isDefined(this._itemID))) switch (this._morphMarbleSpine && (this._morphMarbleSpine.GameObject.active = !1), this._iconTarget.OnLoaded.addOnce(this.onIconLoaded.dispatch, this.onIconLoaded), this._itemAssetType) {
case "gold":
this._iconTarget.setAsset("icon-currency-1");
break;
case "item":
var v = g.a.getItem(this._itemAssetType, this._itemID).data;
v.effect && m.Utils.isDefined(v.effect.transform) ? (this._iconTarget.setAsset("icon-" + v.effect.transform + "-" + v.effect.ID), this._morphMarbleSpine && (this._morphMarbleSpine.GameObject.active = !0, this._morphMarbleSpine.playAnimation("animation", !0))) : this._iconTarget.setAsset("icon-" + this._itemAssetType + "-" + this._itemID);
break;
default:
this._iconTarget.setAsset("icon-" + this._itemAssetType + "-" + this._itemID)
}
}, O.prototype.destroy = function () {
this.onIconLoaded.dispose(), v.prototype.destroy.call(this)
}, Object(p.__decorate)([Object(m.serializeComponent)(_.a), Object(p.__metadata)("design:type", _.a)], O.prototype, "_iconTarget", void 0), Object(p.__decorate)([Object(m.serializeComponent)(w.a), Object(p.__metadata)("design:type", w.a)], O.prototype, "_morphMarbleSpine", void 0), Object(p.__decorate)([Object(m.serializeString)(), Object(p.__metadata)("design:type", String)], O.prototype, "_itemAssetType", void 0), Object(p.__decorate)([Object(m.serializeNumber)(), Object(p.__metadata)("design:type", Number)], O.prototype, "_itemID", void 0), Object(p.__decorate)([Object(m.serializeSignal)(), Object(p.__metadata)("design:type", m.Signal)], O.prototype, "onIconLoaded", void 0), O = Object(p.__decorate)([Object(m.componentable)("ItemAssetIcon", y.a.ui)], O)
}(m.Component)
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.MathTower = "MathTower", v.DefaultItems = "DefaultItems", v.Storage = "Storage", v.StorageSerializer = "StorageSerializer", v.StoreManager = "StoreManager", v.BreadcrumbManager = "TowerTownBreadcrumbManager", v.Education = "Education", v.DialogueFactory = "DialogueFactory", v.Events = "Events"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return y
}));
var p = j(1),
m = j(0),
g = j(101),
y = function (v) {
function O(O, j) {
var p = v.call(this, O) || this;
return p.showHealthBar = !1, p.data.level = j.level, p.source = j, p
}
return Object(p.__extends)(O, v), O.prototype.getAttacks = function (v) {
return this.source.attacks || []
}, O.prototype.getMaxHearts = function () {
return this.source.maxHP
}, O.prototype.getName = function () {
return this.source.name
}, O.prototype.getElement = function () {
return this.source.element
}, O.prototype.getID = function () {
return this.source.ID
}, O.prototype.getStarReward = function () {
return m.Utils.isDefined(this.source.starBonus) ? this.source.starBonus : v.prototype.getStarReward.call(this)
}, O.prototype.canCatch = function () {
return !1
}, O.prototype.chooseAction = function (v, O, j, p, m, g) {
return !1
}, O.prototype.getBamSpells = function (v) {
for (var O = this.getAttacks(), j = [], p = 0; p < O.length; p++) j.push({
ID: O[p],
locked: !1,
type: g.a.Native
});
return j
}, O.prototype.getStatPower = function () {
return 5
}, O.prototype.getStatHealth = function () {
return 5
}, O.prototype.getAssets = function () {
var v = this.getID();
return v > 0 ? ["default-boss-" + v] : []
}, O
}(j(89).a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return m
}));
var p = j(46),
m = function () {
function v(v, O) {
void 0 === v && (v = 0), void 0 === O && (O = 0), this._width = 0, this._halfWidth = 0, this._height = 0, this._halfHeight = 0, this.width = v, this.height = O
}
return Object.defineProperty(v.prototype, "width", {
get: function () {
return this._width
},
set: function (v) {
this._width = v, this._halfWidth = .5 * v
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "height", {
get: function () {
return this._height
},
set: function (v) {
this._height = v, this._halfHeight = .5 * v
},
enumerable: !0,
configurable: !0
}), v.prototype.getHalfWidth = function () {
return this._halfWidth
}, v.prototype.getHalfHeight = function () {
return this._halfHeight
}, v.prototype.isNearlyEqual = function (v, O) {
return this.isNearlyEqualToValues(v.width, v.height, O)
}, v.prototype.isNearlyEqualToValues = function (v, O, j) {
return p.a.isNearlyEqual(this.width, v, j) && p.a.isNearlyEqual(this.height, O, j)
}, v.prototype.setTo = function (v, O) {
this.width = v, this.height = O
}, v.prototype.copyFrom = function (v) {
this.width = v.width, this.height = v.height
}, v.ZERO = new v(0, 0), v
}()
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return I
}));
var p = j(1),
m = j(10),
g = j(99),
y = j(17),
_ = j(58),
w = j(30),
E = j(24),
T = j(138),
I = function (v) {
function O() {
var O = v.call(this) || this;
return O._viewportSize = new g.a(E.a.instance.game.world.width, E.a.instance.game.world.height), O._cameraMatrix = new m.Matrix, O._transformWorldID = -1, O._attachedTransform = null, j._main || (j._main = O), O
}
var j;
return Object(p.__extends)(O, v), j = O, Object.defineProperty(O, "main", {
get: function () {
return j._main
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(O.prototype, "viewportSize", {
get: function () {
return this._viewportSize
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(O.prototype, "cameraMatrixID", {
get: function () {
return this.recalculateViewMatrix(), this._transformWorldID
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(O.prototype, "viewMatrix", {
get: function () {
return this.recalculateViewMatrix(), this._cameraMatrix
},
enumerable: !0,
configurable: !0
}), O.prototype.create = function () {
v.prototype.create.call(this), this.GameObject.transform ? this.attachToTransform() : this.GameObject.onComponentAdded.add(this.componentWasAdded, this)
}, O.prototype.destroy = function () {
j._main === this && (j._main = null), this.GameObject.transform && this.GameObject.transform.OnDestroy.remove(this.transformDestroyed, this), this.GameObject.onComponentAdded.remove(this.componentWasAdded, this), v.prototype.destroy.call(this)
}, O.prototype.reset = function () {
var v = this.GameObject.transform;
v.setPosition(0, 0), v.setScale(1, 1), v.setRotation(0)
}, O.prototype.setViewportSize = function (v, O) {
this._viewportSize.setTo(v, O), this._transformWorldID = -1
}, O.prototype.setCameraActive = function (v, O) {
var j = O.projection;
v !== (j.transform === this._cameraMatrix) && (O.batch.flush(), j.transform = v ? this.viewMatrix : null, j.update(j.destinationFrame, j.sourceFrame, O.resolution, !O.renderTexture.current))
}, O.prototype.attachToTransform = function () {
null === this._attachedTransform && (this._attachedTransform = this.GameObject.transform, this._attachedTransform.OnDestroy.add(this.transformDestroyed, this))
}, O.prototype.transformDestroyed = function () {
this._cameraMatrix.identity(), this._attachedTransform = null
}, O.prototype.componentWasAdded = function (v) {
v instanceof T.a && (this.GameObject.onComponentAdded.remove(this.componentWasAdded, this), this.attachToTransform())
}, O.prototype.recalculateViewMatrix = function () {
if (this._attachedTransform) {
var v = this._attachedTransform.pixiTransform._worldID;
if (v !== this._transformWorldID) {
var O = this._attachedTransform.worldMatrix,
j = this._attachedTransform.worldScale,
p = O.a / j.x,
m = O.c / j.y;
this._cameraMatrix.set(p, m, -m, p, -O.tx * p - -O.ty * m + this._viewportSize.getHalfWidth(), -O.tx * m + -O.ty * p + this._viewportSize.getHalfHeight()), this._transformWorldID = v
}
}
}, Object(p.__decorate)([Object(y.q)(), Object(p.__metadata)("design:type", g.a)], O.prototype, "_viewportSize", void 0), O = j = Object(p.__decorate)([Object(w.b)("Camera", w.a.root, "Represents a camera and provides a matrix from translating <br /> from world space into view space"), Object(p.__metadata)("design:paramtypes", [])], O)
}(_.a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return p
})), j.d(O, "b", (function () {
return _
}));
var p, m = j(0),
g = j(6),
y = j(5);
! function (v) {
v.Native = "native", v.Foreign = "foreign", v.Weapon = "weapon", v.SpellRelic = "spellRelic"
}(p || (p = {}));
var _ = function () {
function v() {}
return v.getSpellTierAtLevel = function (v, O) {
var j = g.sortBy(O);
return g.sortedLastIndex(j, v)
}, v.getNextTierSpell = function (v, O) {
for (var j = y.a.getItem("spell", v), p = 0; p < O && m.Utils.isDefined(j.data.nextTierID); p++) j = y.a.getItem("spell", j.data.nextTierID);
return j
}, v.getLockedEquipmentBamSpell = function (v) {
return {
ID: 0,
type: v,
locked: !0
}
}, v
}()
}, function (v, O, j) {
"use strict";
Object.defineProperty(O, "__esModule", {
value: !0
});
var p = j(1);
p.__exportStar(j(1445), O), p.__exportStar(j(1580), O)
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.JSON = 0] = "JSON", v[v.Image = 1] = "Image", v[v.Atlas = 2] = "Atlas", v[v.Music = 3] = "Music", v[v.Sound = 4] = "Sound", v[v.Spine = 5] = "Spine"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
var p, m, g;
j.d(O, "c", (function () {
return p
})), j.d(O, "b", (function () {
return m
})), j.d(O, "d", (function () {
return g
})), j.d(O, "e", (function () {
return y
})), j.d(O, "a", (function () {
return _
})),
function (v) {
v.Front = "front", v.Top = "top", v.bottom = "bottom"
}(p || (p = {})),
function (v) {
v.Unconscious = "unconscious", v.Conscious = "conscious", v.Fled = "fled"
}(m || (m = {})),
function (v) {
v.Player = "Player", v.Opponent = "Opponent"
}(g || (g = {}));
var y = ["pvp"],
_ = ["guardian", "bounty-boss", "ultimates"]
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return C
}));
var p = j(1),
m = j(0),
g = j(5),
y = j(3),
_ = j(341),
w = j(447),
E = j(448),
T = j(449),
I = j(450),
A = j(365),
S = j(451),
C = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O.onAppearanceLoaded = new m.Signal, O.onAppearanceDone = new m.Signal, O.requestedHair = null, O.skinColorID = null, O.hair = null, O.isHairDirty = !1, O.face = null, O.isFaceDirty = !1, O.head = null, O.isHeadDirty = !1, O.hat = null, O.isHatDirty = !1, O.neck = null, O.isNeckDirty = !1, O.outfit = null, O.isOutfitDirty = !1, O.weapon = null, O.isWeaponDirty = !1, O
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "HairID", {
get: function () {
return null !== this.hair ? this.hair.ID : null
},
set: function (v) {
if (null !== this.hair) {
this.requestedHair = v;
var O = this.validateHairForHat(this.HatID, v);
this.isHairDirty = this.isHairDirty || this.hair.ID !== O, this.hair.ID = O
}
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "FaceID", {
get: function () {
return null !== this.face ? this.face.ID : null
},
set: function (v) {
null !== this.face && (this.isFaceDirty = this.isFaceDirty || this.face.ID !== v, this.face.ID = v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "SkinColor", {
get: function () {
return this.skinColorID
},
set: function (v) {
if (this.skinColorID = v, null !== this.head && (this.isHeadDirty = this.isHeadDirty || this.head.ColorID !== v, this.head.ColorID = v), null !== this.neck && (this.isNeckDirty = this.isNeckDirty || this.neck.ColorID !== v, this.neck.ColorID = v), null !== this.face) {
var O = g.a.getItem("skinColor", v);
null !== O && (this.isFaceDirty = this.isFaceDirty || this.face.ColorID !== O.metadata.faceColor, this.face.ColorID = O.metadata.faceColor)
}
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "HairColor", {
get: function () {
return null !== this.hair ? this.hair.ColorID : null
},
set: function (v) {
null !== this.hair && (this.isHairDirty = this.isHairDirty || this.hair.ColorID !== v, this.hair.ColorID = v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "EyeColor", {
get: function () {
return null !== this.face ? this.face.EyeColorID : null
},
set: function (v) {
null !== this.face && (this.isFaceDirty = this.isFaceDirty || this.face.EyeColorID !== v, this.face.EyeColorID = v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "HatID", {
get: function () {
return null !== this.hat ? this.hat.ID : null
},
set: function (v) {
if (null !== this.hat && (this.isHatDirty = this.isHatDirty || this.hat.ID !== v, this.hat.ID = v, null !== this.hair)) {
var O = this.validateHairForHat(v, this.requestedHair);
this.isHairDirty = this.isHairDirty || this.hair.ID !== O, this.hair.ID = O
}
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "OutfitID", {
get: function () {
return null !== this.outfit ? this.outfit.ID : null
},
set: function (v) {
null !== this.outfit && (this.isOutfitDirty = this.isOutfitDirty || this.outfit.ID !== v, this.outfit.ID = v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "Gender", {
get: function () {
return null !== this.outfit ? this.outfit.Gender : null
},
set: function (v) {
null !== this.outfit && (this.isOutfitDirty = this.isOutfitDirty || this.outfit.Gender !== v, this.outfit.Gender = v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "WeaponID", {
get: function () {
return null !== this.weapon ? this.weapon.ID : null
},
set: function (v) {
null !== this.weapon && (this.isWeaponDirty = this.isWeaponDirty || this.weapon.ID !== v, this.weapon.ID = v)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "Hair", {
get: function () {
return this.hair
},
set: function (v) {
this.hair = v
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "Face", {
get: function () {
return this.face
},
set: function (v) {
this.face = v
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "Head", {
get: function () {
return this.head
},
set: function (v) {
this.head = v
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "Hat", {
get: function () {
return this.hat
},
set: function (v) {
this.hat = v
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "Neck", {
get: function () {
return this.neck
},
set: function (v) {
this.neck = v
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "Outfit", {
get: function () {
return this.outfit
},
set: function (v) {
this.outfit = v
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "Weapon", {
get: function () {
return this.weapon
},
set: function (v) {
this.weapon = v
},
enumerable: !1,
configurable: !0
}), O.prototype.create = function () {
v.prototype.create.call(this), this._appearanceData && this.setAppearance(this._appearanceData)
}, O.prototype.setAppearance = function (v) {
var O, j, m;
return Object(p.__awaiter)(this, void 0, void 0, (function () {
return Object(p.__generator)(this, (function (p) {
return null !== this.head && (this.head.ID = 1), null !== this.neck && (this.neck.ID = 1), this.FaceID = v.face, this.HatID = null !== (O = v.hat) && void 0 !== O ? O : null, this.HairID = v.hair.style, this.HairColor = v.hair.color, this.SkinColor = v.skin, this.EyeColor = v.eyeColor, this.OutfitID = null !== (j = v.outfit) && void 0 !== j ? j : 1, this.Gender = v.gender, this.WeaponID = null !== (m = v.weapon) && void 0 !== m ? m : null, [2, this.updateAppearance()]
}))
}))
}, O.prototype.updateAppearance = function () {
return Object(p.__awaiter)(this, void 0, void 0, (function () {
var v, O = this;
return Object(p.__generator)(this, (function (j) {
return v = [], this.isFaceDirty && null !== this.face && (v.push(this.face.updateAttribute()), this.isFaceDirty = !1), this.isHairDirty && null !== this.hair && (v.push(this.hair.updateAttribute()), this.isHairDirty = !1, this.hair.GameObject.active = null !== this.hair.ID), this.isHatDirty && null !== this.hat && (v.push(this.hat.updateAttribute()), this.isHatDirty = !1, this.hat.GameObject.active = null !== this.hat.ID), this.isHeadDirty && null !== this.head && (v.push(this.head.updateAttribute()), this.isHeadDirty = !1), this.isNeckDirty && null !== this.neck && (v.push(this.neck.updateAttribute()), this.isNeckDirty = !1), this.isOutfitDirty && null !== this.outfit && (v.push(this.outfit.updateAttribute()), this.isOutfitDirty = !1), this.isWeaponDirty && null !== this.weapon && (v.push(this.weapon.updateAttribute()), this.isWeaponDirty = !1, this.weapon.GameObject.active = null !== this.weapon.ID), [2, Promise.all(v).then((function () {
O.onAppearanceLoaded.dispatch(), O.onAppearanceDone.dispatch()
})).catch((function (v) {
O.onAppearanceDone.dispatch(), m.Logger.log("PlayerAppearanceSelector - Warning: Unable to load all appearances", m.LogLevel.Warning)
}))]
}))
}))
}, O.prototype.getAppearanceAssets = function () {
var v = [];
return this.hat && null !== this.HatID && v.push("player-hat-" + this.HatID), this.hair && v.push(this.hair.getCacheKey()), this.face && v.push(this.face.getCacheKey()), this.head && v.push(this.head.getCacheKey()), this.outfit && v.push(this.Gender + "-outfit-" + this.OutfitID), this.weapon && this.WeaponID > 0 && v.push("player-weapon-" + this.WeaponID), v
}, O.prototype.validateHairForHat = function (v, O) {
if (null === v) return O;
var j = g.a.getItem("hat", v);
if (null !== j && Array.isArray(j.metadata.hairHide)) {
var p = j.metadata.hideReplace;
if (-1 === p && (p = null), 1 === j.metadata.hairHide.length && -1 === j.metadata.hairHide[0]) return p;
for (var m = 0; m < j.metadata.hairHide.length; ++m)
if (O === j.metadata.hairHide[m]) return p
}
return O
}, O.prototype.destroy = function () {
this.onAppearanceLoaded.dispose(), this.onAppearanceDone.dispose(), v.prototype.destroy.call(this)
}, Object(p.__decorate)([Object(m.serializeSignal)(), Object(p.__metadata)("design:type", m.Signal)], O.prototype, "onAppearanceLoaded", void 0), Object(p.__decorate)([Object(m.serializeSignal)(), Object(p.__metadata)("design:type", m.Signal)], O.prototype, "onAppearanceDone", void 0), Object(p.__decorate)([Object(m.serializeComponent)(w.a), Object(p.__metadata)("design:type", w.a)], O.prototype, "hair", void 0), Object(p.__decorate)([Object(m.serializeComponent)(_.a), Object(p.__metadata)("design:type", _.a)], O.prototype, "face", void 0), Object(p.__decorate)([Object(m.serializeComponent)(T.a), Object(p.__metadata)("design:type", T.a)], O.prototype, "head", void 0), Object(p.__decorate)([Object(m.serializeComponent)(E.a), Object(p.__metadata)("design:type", E.a)], O.prototype, "hat", void 0), Object(p.__decorate)([Object(m.serializeComponent)(I.a), Object(p.__metadata)("design:type", I.a)], O.prototype, "neck", void 0), Object(p.__decorate)([Object(m.serializeComponent)(A.a), Object(p.__metadata)("design:type", A.a)], O.prototype, "outfit", void 0), Object(p.__decorate)([Object(m.serializeComponent)(S.a), Object(p.__metadata)("design:type", S.a)], O.prototype, "weapon", void 0), Object(p.__decorate)([Object(m.serializeJSON)(), Object(p.__metadata)("design:type", Object)], O.prototype, "_appearanceData", void 0), O = Object(p.__decorate)([Object(m.componentable)("PlayerAppearanceSelector", y.a.playerAnimation)], O)
}(m.Component)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return _
}));
var p = j(1),
m = j(0),
g = j(789),
y = j(3),
_ = function (v) {
function O() {
return null !== v && v.apply(this, arguments) || this
}
return Object(p.__extends)(O, v), O.prototype.destroy = function () {
var O;
null === (O = this._groupContainer) || void 0 === O || O.destroy(), v.prototype.destroy.call(this)
}, O = Object(p.__decorate)([Object(m.componentable)("SortingAnchor", y.a.map)], O)
}(g.a)
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.DEFAULT = 0] = "DEFAULT", v[v.ACHIEVEMENTS = 1] = "ACHIEVEMENTS", v[v.ITEMRARE = 2] = "ITEMRARE", v[v.MEMBERSHIP = 3] = "MEMBERSHIP", v[v.STOREPURCHASE = 4] = "STOREPURCHASE", v[v.MEMBERBOX = 5] = "MEMBERBOX", v[v.PARENTREWARD = 6] = "PARENTREWARD", v[v.ITEMGENERIC = 7] = "ITEMGENERIC", v[v.LAMPLIGHTPURCHASE = 8] = "LAMPLIGHTPURCHASE", v[v.ITEMWHEEL = 9] = "ITEMWHEEL", v[v.QUESTIONSANSWERED = 10] = "QUESTIONSANSWERED", v[v.NAMECHANGE = 13] = "NAMECHANGE"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return w
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(5),
_ = j(49),
w = function (v) {
function O(j, p, _, w, E, T) {
void 0 === E && (E = {}), void 0 === T && (T = null);
var I = v.call(this, j, p, _, w) || this;
I.icon = null, I.selected = !1, I.callback = null, I.btnGroup = null, I.bg = null, I.text = null, I.iconSide = null, I.isActive = !0, I.callback = T, I.btnGroup = g.a.instance.prodigy.create.element(I, 0, 0);
var A = E,
S = m.Utils.isDefined(A.size) ? A.size : O.SMALL,
C = null;
switch (S) {
case O.CONFIRM:
C = "btn-med-confirm";
break;
case O.TALL:
C = "btn-tall";
break;
case O.MED:
C = "btn-med";
break;
case O.MINI:
C = "btn-mini";
break;
case O.LG:
C = "btn-lg";
break;
case O.GRADE:
C = "btn-grade";
break;
default:
C = "btn-small"
}
var D = m.Utils.isDefined(A.text) ? A.text : "";
I.name = D;
var M = 0,
x = m.Utils.isDefined(A.textY) ? A.textY : 0,
N = S - 85,
P = m.Utils.isDefined(A.atlas) ? A.atlas : y.a.getIconAtlas(A.icon),
R = A.icon,
k = m.Utils.isDefined(A.needsMemberIcon) && A.needsMemberIcon;
if (I.iconSide = A.iconSide, I.bg = g.a.instance.prodigy.create.sprite(0, 0, "atlas-18", C), I.btnGroup.add(I.bg), m.Utils.isDefined(R) || A.singleImage ? (I.icon = I.btnGroup.add(g.a.instance.prodigy.create.sprite(0, 0, P, R)), I.setIcon(R), M = "right" === A.iconSide ? 10 : I.icon.width + 15, N = I.bg.width - 25 - I.icon.width) : (N = S - 20, M = 10), I.text = g.a.instance.prodigy.create.font(I.btnGroup, M, x, "" + D, {
size: 36,
fontID: 9,
width: N,
align: "center"
}), k) {
var L = g.a.instance.prodigy.create.sprite(0, 0, "atlas-21", "mail-member");
L.x = I.bg.width - L.width / 2, L.y = -L.height / 2, I.btnGroup.add(L)
}
return I.bg.inputEnabled = !0, I.bg.events.onInputDown.add(I.onDown, I), I.bg.events.onInputUp.add(I.onUp, I), I.bg.events.onInputOver.add(I.onOver, I), I.bg.events.onInputOut.add(I.onOut, I), I
}
return Object(p.__extends)(O, v), O.prototype.setActive = function () {
this.isActive = !0, this.bg.tint = 16777215, this.tintActive()
}, O.prototype.setInactive = function () {
this.isActive = !1, this.bg.tint = 5789784, this.icon && (this.icon.tint = 5789784)
}, O.prototype.select = function () {
this.selected = !0, this.bg.tint = 7447253, this.icon && (this.icon.tint = 7447253)
}, O.prototype.deselect = function () {
this.selected = !1, this.bg.tint = 16777215, this.tintActive()
}, O.prototype.setIcon = function (v) {
this.icon.frameName = _.a.isString(v) ? v : null, this.icon.x = "right" === this.iconSide ? this.bg.width - this.icon.width - 10 : 10, this.icon.y = -Math.floor((this.icon.height - 50) / 2), "btn-tall" === this.bg.frameName && (this.icon.x = Math.floor((100 - this.icon.width) / 2), this.icon.y = Math.floor((200 - this.icon.height) / 2))
}, O.prototype.setEnabled = function (v) {
this.isActive = v, this.alpha = this.isActive ? 1 : .5
}, O.prototype.setText = function (v) {
this.text.setText(v)
}, O.prototype.onDown = function () {
this.isActive && (g.a.instance.prodigy.audio.playSFX(18, "pop"), this.btnGroup.y = 0, m.Utils.isDefined(this.callback) && this.callback())
}, O.prototype.onUp = function () {
this.isActive && (this.btnGroup.y = -3)
}, O.prototype.onOver = function () {
this.isActive && (this.btnGroup.y = -3)
}, O.prototype.onOut = function () {
this.isActive && (this.btnGroup.y = 0)
}, O.prototype.tintActive = function () {
this.icon && (this.icon.tint = 16777215)
}, O.createNextButton = function (v, O, j, p, y) {
return g.a.instance.prodigy.create.textButton(O, j, p, {
icon: "next",
iconSide: "right",
text: g.a.instance.prodigy.gameContainer.get(m.GameIdentifiers.LocalizationService).getText("BUTTON_NEXT")
}, y)
}, O.createCloseButton = function (v, O, j, p, y) {
return g.a.instance.prodigy.create.textButton(O, j, p, {
icon: "close",
text: g.a.instance.prodigy.gameContainer.get(m.GameIdentifiers.LocalizationService).getText("BUTTON_CLOSE")
}, y)
}, O.createYesButton = function (v, O, j, p, y) {
return g.a.instance.prodigy.create.textButton(O, j, p, {
icon: "yes",
text: g.a.instance.prodigy.gameContainer.get(m.GameIdentifiers.LocalizationService).getText("BUTTON_YES")
}, y)
}, O.createNoButton = function (v, O, j, p, y) {
return g.a.instance.prodigy.create.textButton(O, j, p, {
icon: "close",
text: g.a.instance.prodigy.gameContainer.get(m.GameIdentifiers.LocalizationService).getText("BUTTON_NO")
}, y)
}, O.MINI = 100, O.SMALL = 200, O.TALL = 100.1, O.MED = 300, O.CONFIRM = 301, O.LG = 350, O.GRADE = 80, O
}(j(37).a)
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.Miss = "miss", v.Hit = "normal-hit", v.CriticalHit = "critical-hit", v.Cast = "cast"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.Local = 0] = "Local", v[v.QABox = 1] = "QABox", v[v.Dev = 2] = "Dev", v[v.Staging = 3] = "Staging", v[v.Production = 4] = "Production"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return E
}));
var p = j(1),
m = j(0),
g = j(2),
y = j(60),
_ = j(5),
w = j(34),
E = function (v) {
function O(O, j, p, m, g) {
var y = v.call(this, O, j, p, 2, m, g) || this;
return y.game = O, y.source = p, y.assets = y.getListOfAssets(), y.walkIntoBattle = !1, y
}
return Object(p.__extends)(O, v), O.prototype.startLoad = function () {
v.prototype.startLoad.call(this), this.loading = !0, this.assets = this.getListOfAssets(), g.a.instance.prodigy.load.assets(this.assets, this.setup.bind(this))
}, O.prototype.setup = function (v, O) {
if (m.Utils.isDefined(this.game) && O && m.Utils.isDefined(this.assets)) {
this.cacheBoss(), y.a.removeAll(this.sprites, !0);
var j, p = this.assets[0];
j = g.a.instance.prodigy.assets.getImageBounds(p), this.body = g.a.instance.prodigy.create.sprite(0, 0, p), this.sprites.addChild(this.body), this.body.x = -j[0], this.body.y = -j[3];
var w = null;
try {
this.sprites.children.forEach((function (v) {
v.animations.add("walk", [0, 1, 2, 3, 4, 5, 6, 7], 10, !0, !0), v.animations.add("stand", [0, 1, 2, 3, 4, 5, 6, 7], 10, !0, !0)
})), w = this.body.animations.add("attack", [8, 9, 10, 11, 12, 13, 14, 15], 10)
} catch (E) {
this.sprites.children.forEach((function (v) {
v.animations.add("walk", [0], 10, !0, !0), v.animations.add("stand", [0], 10, !0, !0)
})), w = this.body.animations.add("attack", [0], 10)
}
w.onComplete.add(this.stand, this), this.sprites.children.forEach((function (v) {
v.animations.play("stand")
})), this.setHitbox(_.a.getItem("boss", this.source.getID()).metadata.assets.default.hitbox), this.complete = !0, this.loading = !1, this._onLoad.dispatch()
}
}, O.prototype.attack = function () {
try {
v.prototype.attack.call(this), this.sprites.children.forEach((function (v) {
v.animations.play("attack")
}))
} catch (O) {
m.Logger.log("Error trying to play BossContainer Attack animation", m.LogLevel.Error)
}
}, O.prototype.getListOfAssets = function () {
return O.getAssets(this.source)
}, O.getAssets = function (v) {
return v.getAssets()
}, O.prototype.cacheBoss = function () {
w.a.cacheAssets(this.game, this.getListOfAssets(), w.a.zoneAssetsCached)
}, O.prototype.setRootOffset = function (v) {
this._rootOffset = v ? {
x: v.x,
y: v.y
} : {
x: 0,
y: 0
}
}, O
}(j(52).a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return g
}));
var p = j(1),
m = j(0),
g = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O.loggingTag = null, O
}
return Object(p.__extends)(O, v), O.prototype.setTag = function (v) {
this.loggingTag = v
}, O.prototype.logMessage = function (v) {
null !== this.loggingTag && (this.getInjectedValue("ENABLE_" + this.loggingTag + "_LOGGING") && m.Logger.log("(" + this.loggingTag + ") - " + v, m.LogLevel.Verbose))
}, O
}(m.InjectableClass)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return A
}));
var p = j(6),
m = j(18),
g = j(15),
y = j(367),
_ = j(25),
w = j(23),
E = j(24),
T = j(290),
I = j(138),
A = function () {
function v(v) {
void 0 === v && (v = null), this.onActiveChanged = new w.a, this.onActiveInHierarchyChanged = new w.a, this.onHierarchyChanged = new w.a, this.onChildAdded = new w.a, this.onChildRemoved = new w.a, this.onLayerChanged = new w.a, this.onComponentAdded = new w.a, this.onComponentRemoved = new w.a, this.onComponentAddedToHierarchy = new w.a, this.onDestroy = new w.a, this.updateFunction = this.firstUpdate, this._parent = null, this._isActive = !0, this._components = [], this._children = [], this._isActiveInHierarchy = !0, this._legacyTransform = null, this._transform = null, this._name = "", this._destroyed = !1, this.setParent(v)
}
return Object.defineProperty(v.prototype, "name", {
get: function () {
return this._name
},
set: function (v) {
this._name = v
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "components", {
get: function () {
return this._components
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "layer", {
get: function () {
return this._layer ? this._layer : this._parent ? this._parent.layer : y.a.DEFAULT_NAME
},
set: function (v) {
this.setLayer(v, !1)
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "parent", {
get: function () {
return this._parent
},
set: function (v) {
this.removeFromParent(), this.setParent(v), v && v.onChildAdded.dispatch(this)
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "children", {
get: function () {
return this._children
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "active", {
get: function () {
return this._isActive
},
set: function (v) {
this._isActive !== v && (this._isActive = v, this.onActiveChanged.dispatch(), this.activeInHierarchyChanged())
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "activeInHierarchy", {
get: function () {
return this._isActiveInHierarchy
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "legacyTransform", {
get: function () {
return null === this._legacyTransform && (this._legacyTransform = this.findComponent(T.a)), this._legacyTransform
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "isDestroyed", {
get: function () {
return this._destroyed
},
enumerable: !0,
configurable: !0
}), Object.defineProperty(v.prototype, "transform", {
get: function () {
return null === this._transform && (this._transform = this.findComponent(I.a)), this._transform
},
enumerable: !0,
configurable: !0
}), v.prototype.addChild = function (v) {
v.removeFromParent(), v.setParent(this), this.onChildAdded.dispatch(v)
}, v.prototype.addChildAt = function (v, O) {
v.removeFromParent(), v.setParent(this, O), this.onChildAdded.dispatch(v)
}, v.prototype.getRenderOrder = function () {
return this._parent._children.indexOf(this)
}, v.prototype.isInFront = function () {
var v = this._parent._children;
return v[v.length - 1] === this
}, v.prototype.isInBack = function () {
return this._parent._children[0] === this
}, v.prototype.sendToBack = function () {
var v = this._parent._children.indexOf(this); - 1 !== v ? (this._parent._children.splice(v, 1), this._parent._children.unshift(this), this._parent.onHierarchyChanged.dispatch()) : m.a.log("Parent did not have this game object in its list of children!", g.a.Error)
}, v.prototype.setRenderOrder = function (v) {
var O = this._parent._children.indexOf(this); - 1 !== O ? (this._parent._children.splice(O, 1), this._parent._children.splice(v, 0, this), this._parent.onHierarchyChanged.dispatch()) : m.a.log("Parent did not have this game object in its list of children!", g.a.Error)
}, v.prototype.firstUpdate = function () {
this.updateFunction = this.update, this.update()
}, v.prototype.update = function () {
if (this.activeInHierarchy) {
for (var v = this._components.length - 1; v >= 0; --v) {
var O = this._components[v];
O.Active && O.updateFunction()
}
for (v = this._children.length - 1; v >= 0; --v) this._children[v].updateFunction()
}
}, v.prototype.addComponent = function (v, O) {
void 0 === O && (O = !0);
var j = new v;
this._components.push(j), j.GameObject = this, j.OnDestroy.addOnce(this.removeComponent.bind(this)), O && (j.create(), j.Active && j.onEnable(), j.postCreate()), this.onComponentAdded.dispatch(j);
for (var p = this._children.length, m = 0; m < p; ++m) this._children[m].dispatchComponentAddedInHierarchy(this, j);
return j
}, v.prototype.findComponent = function (v) {
var O = this._components.find((function (O) {
return O instanceof v
}));
return _.a.isDefined(O) ? O : null
}, v.prototype.findComponents = function (v) {
return this._components.filter((function (O) {
return O instanceof v
}))
}, v.prototype.hasComponent = function (v) {
return _.a.isDefined(this.findComponent(v))
}, v.prototype.bringToFront = function () {
var v = this._parent._children.indexOf(this); - 1 !== v ? v !== this._parent.children.length - 1 && (this._parent._children.splice(v, 1), this._parent._children.push(this), this._parent.onHierarchyChanged.dispatch()) : m.a.log("Parent did not have this game object in its list of children!", g.a.Error)
}, v.prototype.destroy = function () {
this._destroyed = !0, this.onDestroy.dispatch();
for (var v = this._children.length - 1; v >= 0; --v) this._children[v].destroy();
for (v = this._components.length - 1; v >= 0; --v) this._components[v].destroy();
this.removeFromParent(), this.onComponentAdded.dispose(), this.onComponentRemoved.dispose(), this.onComponentAddedToHierarchy.dispose(), this.onChildAdded.dispose(), this.onChildRemoved.dispose(), this.onActiveChanged.dispose(), this.onActiveInHierarchyChanged.dispose(), this.onHierarchyChanged.dispose(), this.onDestroy.dispose(), this.onLayerChanged.dispose()
}, v.prototype.destroyDeferred = function () {
E.a.instance.game.destroyQueue.addGameObjectToDestroyQueue(this)
}, v.prototype.setLayer = function (v, O) {
if (void 0 === O && (O = !1), this._layer = v, this.onLayerChanged.dispatch(), O)
for (var j = this._children, p = j.length, m = 0; m < p; ++m) j[m].setLayer(v, !0)
}, v.prototype.removeComponent = function (v) {
for (var O = 0; O < this._components.length; O++)
if (this._components[O] === v) {
this._components.splice(O, 1), v === this._transform ? this._transform = null : v === this._legacyTransform && (this._legacyTransform = null), this.onComponentRemoved.dispatch(v);
break
}
}, v.prototype.findComponentInParent = function (v, O) {
void 0 === O && (O = !0);
var j = O ? this.findComponent(v) : null;
return null === j && null !== this._parent ? this._parent.findComponentInParent(v) : j
}, v.prototype.findComponentsInChildren = function (v, O) {
void 0 === O && (O = !0);
var j = [];
if (O) {
var m = this.findComponent(v);
m && j.push(m)
}
for (var g = this._children.length, y = 0; y < g; ++y) j = p.concat(j, this._children[y].findComponentsInChildren(v));
return j
}, v.prototype.findComponentInChildren = function (v, O) {
void 0 === O && (O = !0);
for (var j = O ? this.findComponent(v) : null, p = this._children.length, m = 0; null === j && m < p;) j = this._children[m].findComponentInChildren(v), ++m;
return j
}, v.prototype.removeFromParent = function () {
if (this._parent) {
var v = this._parent._children.indexOf(this);
if (-1 === v) return void m.a.log("Parent did not have this game object in its list of children!", g.a.Error);
this._parent.onActiveInHierarchyChanged.remove(this.activeInHierarchyChanged, this), this._parent.onHierarchyChanged.remove(this.onHierarchyChanged.dispatch, this.onHierarchyChanged), this._parent._children.splice(v, 1), this._parent.onChildRemoved.dispatch(this), this._parent = null
}
}, v.prototype.setParent = function (v, O) {
if (v) {
if (_.a.isDefined(O)) {
if (!(O <= v._children.length && O >= 0)) return void m.a.log("index " + O + " out-of-bounds of child array length " + v._children.length, g.a.Error);
v._children.splice(O, 0, this)
} else v._children.push(this);
this._parent = v, this._parent.onActiveInHierarchyChanged.add(this.activeInHierarchyChanged, this), this._parent.onHierarchyChanged.add(this.onHierarchyChanged.dispatch, this.onHierarchyChanged)
}
this.onHierarchyChanged.dispatch();
var j = this.isActiveInHierarchy();
j !== this._isActiveInHierarchy && (this._isActiveInHierarchy = j, this.onActiveInHierarchyChanged.dispatch())
}, v.prototype.activeInHierarchyChanged = function () {
this._isActiveInHierarchy = this.isActiveInHierarchy();
for (var v = this._components.length, O = 0; O < v; ++O) this._components[O].Active && (this._isActiveInHierarchy ? this._components[O].onEnable() : this._components[O].onDisable());
this.onActiveInHierarchyChanged.dispatch()
}, v.prototype.isActiveInHierarchy = function () {
return this._isActive && (null === this._parent || this._parent.isActiveInHierarchy())
}, v.prototype.dispatchComponentAddedInHierarchy = function (v, O) {
this.onComponentAddedToHierarchy.dispatch(v, O);
for (var j = this._children.length, p = 0; p < j; ++p) this._children[p].dispatchComponentAddedInHierarchy(v, O)
}, v.prototype.findChildByName = function (v) {
for (var O = 0; O < this.children.length; O++) {
if (this.children[O].name === v) return this.children[O];
var j = this.children[O].findChildByName(v);
if (j) return j
}
return null
}, v
}()
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.StartBuilding = 0] = "StartBuilding", v[v.Quit = 1] = "Quit", v[v.Rooms = 2] = "Rooms", v[v.Frames = 3] = "Frames", v[v.Decorations = 4] = "Decorations", v[v.PageLeft = 5] = "PageLeft", v[v.PageRight = 6] = "PageRight"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
Object.defineProperty(O, "__esModule", {
value: !0
}), O.EventEnum = void 0,
function (v) {
v.EducationLessonEncounter = "education_lesson_encounter_v3", v.EducationQuestionInterface = "education_question_interface_v3", v.GameAvatar = "game_avatar_v3", v.GameDiscovery = "game_discovery_v3", v.GameBattle = "game_battle_v3", v.GameSessionEnd = "game_session_end_v3", v.GameComplete = "game_complete_v3", v.GameQuestion = "game_question_v3", v.GameSocial = "game_social_v3", v.GameSessionStart = "game_session_start_v3", v.GameSink = "game_sink_v3", v.GameSource = "game_source_v3", v.WebMembership = "web_membership", v.AnonymousGameComplete = "anonymous_game_complete_v3", v.AnonymousGameDiscovery = "anonymous_game_discovery", v.AnonymousWebMembership = "anonymous_membership", v.ApiStudentAttachedToParent = "api_student_attached_to_parent", v.ApiMembershipCreated = "api_membership_created", v.ApiCancelMembership = "api_cancel_membership", v.ApiMembershipAssign = "api_membership_assign", v.ApiIdentityAnonymous = "api_identity_anonymous", v.ApiIdentityAuthentication = "api_identity_authentication", v.ApiIdentityInvitationCreated = "api_identity_invitation_created", v.ApiIdentityInvitationAccepted = "api_identity_invitation_accepted", v.ApiIdentityAutologinLinkFollowed = "api_identity_autologin_link_followed", v.ExternalAnalytics = "external_analytics", v.AnonymousIdentity = "anonymous_identity"
}(O.EventEnum || (O.EventEnum = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return J
}));
var p = j(1),
m = j(227),
g = j(0),
y = j(2),
_ = j(12),
w = j(66),
E = j(11),
T = j(5),
I = j(167),
A = j(306),
S = j(71),
C = j(325),
D = j(301),
M = j(7),
x = j(154),
N = j(578),
P = j(709),
R = j(276),
k = j(26),
L = j(21),
B = j(190),
U = j(9),
G = j(145),
F = j(783),
H = j(312),
K = j(90),
z = j(311),
W = j(146),
V = j(293),
Y = j(391),
q = j(36),
Q = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O._menuContainer = null, O._backgroundContainer = null, O._menuTitle = null, O._closeButton = null, O._mapLocations = [], O._disabledLocations = [], O._lockObjects = [], O._lockTransition = [], O._iconContainer = [], O
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "menuContainer", {
get: function () {
return this._menuContainer
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "backgroundContainer", {
get: function () {
return this._backgroundContainer
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "menuTitle", {
get: function () {
return this._menuTitle
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "closeButton", {
get: function () {
return this._closeButton
},
enumerable: !1,
configurable: !0
}), O.prototype.getMapLocation = function (v) {
return this._mapLocations[v]
}, O.prototype.getDisabledLocation = function (v) {
return this._disabledLocations[v]
}, O.prototype.getLockObject = function (v) {
return this._lockObjects[v]
}, O.prototype.getLockTransition = function (v) {
return this._lockTransition[v]
}, O.prototype.getIconContainer = function (v) {
return this._iconContainer[v]
}, Object(p.__decorate)([Object(g.serializeGameObject)(), Object(p.__metadata)("design:type", g.GameObject)], O.prototype, "_menuContainer", void 0), Object(p.__decorate)([Object(g.serializeGameObject)(), Object(p.__metadata)("design:type", g.GameObject)], O.prototype, "_backgroundContainer", void 0), Object(p.__decorate)([Object(g.serializeComponent)(g.Text), Object(p.__metadata)("design:type", g.Text)], O.prototype, "_menuTitle", void 0), Object(p.__decorate)([Object(g.serializeComponent)(_.a), Object(p.__metadata)("design:type", _.a)], O.prototype, "_closeButton", void 0), Object(p.__decorate)([Object(g.serializeArray)(), Object(g.serializeGameObject)(), Object(p.__metadata)("design:type", Array)], O.prototype, "_mapLocations", void 0), Object(p.__decorate)([Object(g.serializeArray)(), Object(g.serializeGameObject)(), Object(p.__metadata)("design:type", Array)], O.prototype, "_disabledLocations", void 0), Object(p.__decorate)([Object(g.serializeArray)(), Object(g.serializeGameObject)(), Object(p.__metadata)("design:type", Array)], O.prototype, "_lockObjects", void 0), Object(p.__decorate)([Object(g.serializeArray)(), Object(g.serializeGameObject)(), Object(p.__metadata)("design:type", Array)], O.prototype, "_lockTransition", void 0), Object(p.__decorate)([Object(g.serializeArray)(), Object(g.serializeGameObject)(), Object(p.__metadata)("design:type", Array)], O.prototype, "_iconContainer", void 0), O = Object(p.__decorate)([Object(g.componentable)("WorldMapPrefab")], O)
}(g.Component),
X = function () {
function v(v) {
Object.assign(this, v)
}
return v.prototype.getLocalizer = function () {
var v;
return null !== (v = this._localizer) && void 0 !== v ? v : this._localizer = y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.LocalizationService)
}, v.prototype.meetsRequirements = function () {
var v = this.getRequirementsID();
return !g.Utils.isDefined(v) || y.a.instance.prodigy.gameContainer.get("fb2-5446").meetsRequirements(v)
}, v.prototype.getRequiredLevel = function () {
var v;
return null !== (v = this._requiredLevel) && void 0 !== v ? v : this._requiredLevel = y.a.instance.prodigy.gameContainer.get("fb2-5446").getLevelRequirement(this.getRequirementsID())
}, v.prototype.getRequirementsID = function () {
var v;
return null !== (v = this.zoneRequirementsID) && void 0 !== v ? v : this.requirementsID
}, v.prototype.getGenericLockMessage = function () {
return this.getLocalizer().getText("ZONE_LEVEL_REQUIREMENT", this.getRequiredLevel(), this.getName())
}, v.prototype.getLockMessage = function () {
return this.lockKey ? this.getLocalizer().getText(this.lockKey, this.getRequiredLevel()) : null
}, v.prototype.getName = function () {
return this.nameKey ? this.getLocalizer().getText(this.nameKey) : null
}, v.prototype.getLockName = function () {
return this.lockNameKey ? this.getLocalizer().getText(this.lockNameKey) : null
}, v.prototype.getSummary = function () {
return this.summaryKey ? this.getLocalizer().getText(this.summaryKey) : null
}, v.prototype.getGoButtonText = function () {
return this.goButtonKey ? this.getLocalizer().getText(this.goButtonKey) : null
}, v
}(),
J = function (v) {
function O(j, p, m, g, y, _) {
void 0 === m && (m = !1), void 0 === g && (g = []);
var w = v.call(this, j, p, 70, {}, O.BASE_ASSETS.concat(y)) || this;
return w.dialogueContainer = null, w._prefabComponent = null, w._prefabObj = null, w._strokeObjects = [], w._isZoneGoalsActive = !0, w.game = j, w._disableClose = m, w._forceLock = g, w.onClose = _, w.isFullScreenUI = !0, w
}
return Object(p.__extends)(O, v), O.prototype.create = function () {
var j = this;
v.prototype.create.call(this);
var p = y.a.instance.prodigy.gameContainer.get("c9d-7243");
this._prefabObj = p.load(13), this._prefabComponent = this._prefabObj.findComponentInChildren(Q), this.dialogueContainer.addChild(this._prefabObj.legacyTransform.group);
var m = !1,
_ = y.a.instance.prodigy.gameContainer.get("497-7811").player;
if (_.ultimateSessionStatus === S.a.None && _.hasCompletedTutorial()) {
G.a.areRequirementsMet({
requireExperiment: "pmg_zone_goals_test",
requireFeature: "pmg_zone_goals"
}) ? (m = !0, this._zoneGoalsPromise = p.loadWithDependenciesFromGUID(w.a.ZoneGoalsMain).then((function (v) {
j._prefabObj && !j._prefabObj.isDestroyed && (j._zoneGoalsObject = v, g.SceneManager.getActiveScene().addGameObject(j._zoneGoalsObject), g.SceneManager.getActiveScene().addLayer(O.ZONE_GOALS_LAYER_NAME, O.ZONE_GOALS_LAYER_DEPTH, !0), j._zoneGoalsObject.setLayer(O.ZONE_GOALS_LAYER_NAME, !0), j._zoneGoalsController = j._zoneGoalsObject.findComponentInChildren(F.b), j._zoneGoalsController.onApplyCustomDisplay.add(j.applyCustomHighlight, j), j._zoneGoalsController.onClearCustomDisplay.add(j.clearCustomHighlight, j), j._isZoneGoalsActive ? j._zoneGoalsController.tryAutoTrigger() : j.enableZoneGoals(!1), j.sendInterfaceOpenEvent(j._zoneGoalsController.getCurrentActivePanels()))
})).catch((function (v) {
g.Logger.log("Failed to load zone goals UI", g.LogLevel.Error)
}))) : this.sendInterfaceOpenEvent()
}
this.initializePrefab(m)
}, O.prototype.initializePrefab = function (v) {
var j = this;
if (this._prefabComponent.GameObject.legacyTransform.group.updateTransform(), this._strokeObjects = this._prefabComponent.menuContainer.findComponentsInChildren(N.a), !g.DeviceUtils.isIOS() && !g.DeviceUtils.isAndroid())
for (var p = function (p) {
w._strokeObjects[p].initialize("world-map-stroke-" + p), v && w._strokeObjects[p].GameObject.onActiveChanged.add((function () {
var v, m = O.ZONE_GOALS_STROKE_OBJECT_MAPPING.indexOf(p); - 1 !== m && (null === (v = j._zoneGoalsController) || void 0 === v || v.setPanelActive(m, j._strokeObjects[p].GameObject.active, !0))
}))
}, w = this, T = 0; T < this._strokeObjects.length; T++) p(T);
this._prefabComponent.menuTitle.text = this.localizer.getText("WORLD_MAP_TITLE"), this._disableClose ? this._prefabComponent.closeButton.GameObject.active = !1 : this._prefabComponent.closeButton.onClick.add((function () {
y.a.instance.prodigy.audio.playSFX(18, "pop"), y.a.instance.prodigy.world.getZone(y.a.instance.prodigy.world.getCurrentZone()).createQuestGoals(), j.close()
})), this._indicatorContainer = y.a.instance.game.add.container(), this._prefabObj.legacyTransform.group.addChild(this._indicatorContainer);
var I = function (v) {
for (var p = O.BUTTONS_CONFIG[v], y = O.isZoneLockedParams(p, C.featureRequirements, C._forceLock), w = p.useLocationDialogPrefab ? function () {
return j.openLocationDialogPrefab(p, y)
} : function () {
return j.openLocation(p, y)
}, E = C._prefabComponent.getMapLocation(p.prefabIndex), T = E.findComponentsInChildren(_.a), I = 0; I < T.length; I++) T[I].inputEnabled = !y, y || (T[I].onClick.add(w), T[I].onClick.addOnce((function () {
j.sendButtonClickedEvent(p.target)
})));
var A = C._prefabComponent.getDisabledLocation(p.prefabIndex);
A.active = y, C._prefabComponent.getLockTransition(p.prefabIndex).active = y;
var S = C._prefabComponent.getLockObject(p.prefabIndex);
S.active = y;
var D = S.findComponent(_.a);
if (D.inputEnabled = y, y)
if (D.onClick.add(w), R.a.useFilter(C.game)) {
var M = new m.a;
M.brightness(O.BRIGHTNESS_VALUE_LOCATION, !0), E.legacyTransform.group.filters = [M]
} else {
A.findComponentInChildren(P.a).initialize("world-map-disable-tint-" + v)
} g.Utils.isDefined(p.isNew) && p.isNew() && !y && C.createIsNewIcon(p), !g.Utils.isDefined(p.isVisited) || p.isVisited() || y || C.createSparkles(p.tag, S)
},
C = this;
for (T = 0; T < O.BUTTONS_CONFIG.length; T++) I(T);
this.startDialogue();
var D = this.playerData.player;
if (D.tutorial.getMenuValue(A.a.WORLD_MAP.INTRO) < 1) {
D.tutorial.setMenuValue(A.a.WORLD_MAP.INTRO, 1);
var x = new k.a(this.game);
x.addEvents([{
dialogueData: x.dataProvider.get(28),
blockInput: !0
}]), x.start()
}
D.ultimateSessionStatus === S.a.TrackingNPC && this._forceLock.indexOf("DISABLE_ULTIMATES_QUEST") < 0 && this.setupNPCLocation(), D.ultimateSessionStatus === S.a.TamingUltimate && this._forceLock.indexOf("DISABLE_ULTIMATES_QUEST") < 0 && this.setupUltimateLocation(), this._forceLock.indexOf("DISABLE_TITAN") < 0 && (this.game.broadcaster.addAppListener(M.z.GotTitans, this.setupTitan.bind(this), this, "Titan"), y.a.instance.prodigy.titansNetworkHandler.getTitans()), this._forceLock.indexOf("DISABLE_DUNGEON") < 0 && this.setupDungeonIcons(), this._indicatorTween = this.game.add.tween(this._indicatorContainer, this._indicatorContainer).to({
y: 10
}, 400, g.Easing.Quadratic.InOut, !0, 0, E.a.MAX_SAFE_INTEGER, !0), this.game.broadcaster.broadcast(M.i.GetTotalFriendRequests, "FriendsList", [!1])
}, O.prototype.applyCustomHighlight = function (v) {
for (var j, p, g = 0; g < O.BUTTONS_CONFIG.length; g++) {
var y = O.BUTTONS_CONFIG[g],
_ = this._prefabComponent.getMapLocation(y.prefabIndex);
if (-1 !== v.indexOf(y.prefabIndex)) null === (j = this._zoneGoalsController) || void 0 === j || j.setPanelActive(y.prefabIndex, !0, !1), R.a.useFilter(this.game) && (_.legacyTransform.group.filters = []);
else if (null === (p = this._zoneGoalsController) || void 0 === p || p.setPanelActive(y.prefabIndex, !1, !1), R.a.useFilter(this.game)) {
var w = new m.a;
w.brightness(O.BRIGHTNESS_VALUE_LOCATION, !0), _.legacyTransform.group.filters = [w]
}
}
if (R.a.useFilter(this.game)) {
var E = new m.a;
E.brightness(O.BRIGHTNESS_VALUE_BACKGROUND, !0), this._prefabComponent.backgroundContainer.legacyTransform.group.filters = [E]
}
this._indicatorContainer.visible = !1
}, O.prototype.clearCustomHighlight = function () {
for (var v, j = 0; j < O.BUTTONS_CONFIG.length; j++) {
var p = O.BUTTONS_CONFIG[j];
null === (v = this._zoneGoalsController) || void 0 === v || v.setPanelActive(p.prefabIndex, !1, !1);
var g = O.isZoneLockedParams(p, this.featureRequirements, this._forceLock),
y = this._prefabComponent.getMapLocation(p.prefabIndex);
if (g) {
if (R.a.useFilter(this.game)) {
var _ = new m.a;
_.brightness(O.BRIGHTNESS_VALUE_LOCATION, !0), y.legacyTransform.group.filters = [_]
}
} else R.a.useFilter(this.game) && (y.legacyTransform.group.filters = [])
}
R.a.useFilter(this.game) && (this._prefabComponent.backgroundContainer.legacyTransform.group.filters = []), this._indicatorContainer.visible = !0
}, O.prototype.sendInterfaceOpenEvent = function (v) {
y.a.instance.prodigy.gameContainer.get("974-9dfd").featureCommon.sendInterfaceEvent({
interfaceName: "world_map",
interfaceType: L.d.Screen,
instanceType: "ui",
originType: L.c.ButtonClick,
originID: "map_hud"
}, {
item_list: null != v ? v : []
})
}, O.prototype.sendButtonClickedEvent = function (v) {
y.a.instance.prodigy.gameContainer.get("974-9dfd").featureCommon.sendButtonEvent({
buttonName: "destination_zone",
interfaceType: L.d.Screen,
destinationName: v,
interfaceName: "world_map",
elementType: "map_screen"
})
}, O.prototype.setupDungeonIcons = function () {
for (var v = O.BUTTONS_CONFIG.length, j = y.a.instance.prodigy.gameContainer.get("41c-f914"), p = this.playerData.player, m = 0; m < v; ++m) {
var g = O.BUTTONS_CONFIG[m];
if (g.dungeon) {
var _ = g.dungeon;
if (j.getValue(_.featureFlagName, !0)) {
var w = p.state.getDungeonState(_.dungeonStateCtor, _.dungeonStateKey);
if (w.isRunStarted() || w.getCompletedRuns() <= 0) {
var E = y.a.instance.prodigy.create.dungeonIndicator(_.iconOffset.x, _.iconOffset.y),
T = this._prefabComponent.getIconContainer(g.prefabIndex).legacyTransform.group;
if (E.anchor.set(.5, .5), this._indicatorContainer.addChild(E), E.position.x += T.getGlobalPosition().x, E.position.y += T.getGlobalPosition().y, !this.breadcrumbManager.isBreadcrumbComplete(U.a.FEATURE_DUNGEONS, _.breadcrumbName)) {
var I = y.a.instance.prodigy.create.indicator(0, -50);
I.anchor.set(.5, .5), E.addChild(I)
}
}
}
}
}
}, O.openLockMessage = function (v) {
var j = y.a.instance.prodigy.world.getZone(v);
j.showZoneLocked ? j.showZoneLocked() : this.openLockMessageParams(O.BUTTONS_CONFIG.find((function (O) {
return O.zone === v
})), y.a.instance.prodigy.gameContainer.get("fb2-5446"), y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.LocalizationService), !1)
}, O.openLockMessageParams = function (v, O, j, p, m) {
void 0 === m && (m = null), this.newAccountLock(O, v) ? y.a.instance.prodigy.open.message(v.getLockMessage(), m, v.icon, v.getName(), null, {
isModal: !1
}) : !p && g.Utils.isDefined(null == v ? void 0 : v.classCodeKey) && y.a.instance.prodigy.classModeController.isClassMode() ? y.a.instance.prodigy.open.classModeMessage(j.getText(v.classCodeKey), m, null, v.getName(), v.classModeFrame, {
isModal: !0
}, v.nameKey) : y.a.instance.prodigy.open.message(j.getText("WORLD_MAP_ZONE_LOCKED"), m, v.icon, v.getName(), null, {
isModal: !1
})
}, O.prototype.openLocation = function (v, j) {
var p = this;
y.a.instance.prodigy.audio.playSFX(18, "pop"), this.enableZoneGoals(!1), j ? O.openLockMessageParams(v, this.featureRequirements, this.localizer, this._disableClose, (function () {
p.enableZoneGoals(!0)
})) : !g.Utils.isDefined(v.tag) || v.tag && !v.msgKeys ? y.a.instance.prodigy.open.messageBox(this.localizer.getText("WORLD_MAP_CONFIRM_TRAVEL", v.getSummary()), O.goTo.bind(this, v.target, v.clickEventName), (function () {
p.enableZoneGoals(!0)
}), v.icon, v.getName(), null, {
isModal: !1
}) : O.openZoneProgressDialog(this._titanAsset, v, this.playerData.player, this._ultimateQuestTarget, !1, (function () {
p.enableZoneGoals(!0)
}))
}, O.openZoneProgressDialog = function (v, j, p, m, _, w) {
void 0 === _ && (_ = !1);
var E = "";
g.Utils.isDefined(v) && (E = v.zone + "-Titan");
var T = O.generateZoneData(j),
I = j.target,
A = !0;
p.ultimateSessionStatus === S.a.TrackingNPC && (null == m ? void 0 : m.startsWith(j.zone)) && (T.npcAtlasID = 229, T.npcFrameName = "icon-npc-loc-assembled", T.zoneActionText = "UI_ZONE_TRADE", I = this.getQuestLocation(m), A = !1), p.ultimateSessionStatus === S.a.TamingUltimate && (null == m ? void 0 : m.startsWith(j.zone)) && (T.npcAtlasID = 229, T.npcFrameName = "icon-epics-loc-assembled", T.zoneActionText = "UI_ZONE_TAME", I = y.a.instance.prodigy.world.getZone(m.split("-")[0]).questHub, A = !1), _ && (T.dungeonAvailable = !1), y.a.instance.prodigy.open.zoneProgress(T, O.goTo.bind(this, I, j.clickEventName, A), O.goTo.bind(this, E, j.clickEventName), O.enterDungeon.bind(this, j.dungeon, j.clickEventName), w)
}, O.generateZoneData = function (v) {
var O = y.a.instance.prodigy.gameContainer.get("41c-f914");
return {
zone: v.zone,
msgKeys: v.msgKeys,
summary: v.getSummary(),
atlasID: v.atlasID,
tag: v.tag,
dungeonAvailable: g.Utils.isDefined(v.dungeon) && O.getValue(v.dungeon.featureFlagName, !0)
}
}, O.getQuestLocation = function (v) {
var O = v.split("-")[0],
j = v.split("-")[1],
p = O + "-" + j,
m = T.a.getItem("generic", 17).data,
g = y.a.instance.prodigy.world.getZone(O).getMap(j);
return m.safeTeleportLocations[p] ? H.a.getRandomItem(m.safeTeleportLocations[p]) : H.a.getRandomItem(g.locations)
}, O.prototype.openLocationDialogPrefab = function (v, j) {
var p = this;
if (y.a.instance.prodigy.audio.playSFX(18, "pop"), this.enableZoneGoals(!1), O.isZoneFeatureFlagLocked(v)) y.a.instance.prodigy.open.messageBoxOkay(y.a.instance.prodigy.gameContainer.get(g.GameIdentifiers.LocalizationService).getText("FEATURE_DISABLED"), null, (function () {
p.enableZoneGoals(!0)
}));
else {
var m = y.a.instance.prodigy.gameContainer.get("c9d-7243").load(399);
this.dialogueContainer.addChild(m.legacyTransform.group);
var _ = m.findComponent(Y.a);
j ? _.showOneButton(v.splashImage, v.getLockName(), v.getLockMessage(), this.localizer.getText("BUTTON_OKAY_CAPITAL"), j) : _.showTwoButton(v.splashImage, v.getName(), v.getSummary(), this.localizer.getText("NOT_NOW"), v.getGoButtonText(), j), _.onClose.addOnce((function () {
m.destroy(), p.enableZoneGoals(!0)
})), _.onConfirm.addOnce((function () {
O.goTo(v.target, v.clickEventName)
}))
}
}, O.enterDungeon = function (v, j) {
y.a.instance.prodigy.gameContainer.get("6b3-bc0f").create("dungeon", "enter-hub", "world-map", v.eventValue).broadcast(), O.goTo(v.dungeonHub, j)
}, O.goTo = function (v, O, j) {
void 0 === j && (j = !0), g.Utils.isDefined(O) && y.a.instance.game.broadcaster.broadcast(O, "UI");
var p = y.a.instance.prodigy.world.getCurrentZone(),
m = y.a.instance.prodigy.world.getZone(p),
_ = v.split("-")[0];
m.handleLeaving(W.a.mapTeleport, (function () {
y.a.instance.game.broadcaster.broadcast(M.B.WorldMapZoneSelected);
var O = y.a.instance.prodigy.gameContainer.get("497-7811").player;
m instanceof z.a && (m.resetCooldown(), m.consumeTargetCollectible()), j && O.isTrackingQuestEnabled && p !== _ && O.setUltimateSessionStatus(S.a.None, "", 0), "Dorm" === v ? (y.a.instance.game.state[v].player = O, y.a.instance.prodigy.start(v)) : v.indexOf("-") > 0 ? (O.hasCompletedTutorial() || (y.a.instance.prodigy.world.getZone("house").completeQuest(1), O.onTutorialComplete()), y.a.instance.prodigy.world._(v)) : y.a.instance.prodigy.start(v)
}))
}, O.prototype.setupNPCLocation = function () {
this._ultimateQuestTarget = D.a.getSeededLocation(17);
var v = O.getZoneData(this._ultimateQuestTarget.split("-")[0]);
this.createUltimateQuestIndicator(v, y.a.instance.prodigy.create.npcIndicator.bind(this, v.ultimatesQuestIconOffset.x, v.ultimatesQuestIconOffset.y))
}, O.prototype.setupUltimateLocation = function () {
var v = this,
j = y.a.instance.prodigy.gameContainer.get("497-7811").player;
y.a.instance.prodigy.gameContainer.get("5dc-7e2b").getQuestMetaData(j.ultimateQuestId).then((function (j) {
var p = j.petID;
v._ultimateQuestTarget = C.a.getUltimatesPetLocation(p);
var m = O.getZoneData(v._ultimateQuestTarget.split("-")[0]);
v.createUltimateQuestIndicator(m, y.a.instance.prodigy.create.ultimatesIndicator.bind(v, m.ultimatesQuestIconOffset.x, m.ultimatesQuestIconOffset.y))
})).catch((function (v) {
g.Logger.log("Error getting quest data " + v.message, g.LogLevel.Error)
}))
}, O.prototype.createUltimateQuestIndicator = function (v, O) {
if (v) {
var j = O(v.ultimatesQuestIconOffset.x, v.ultimatesQuestIconOffset.y),
p = this._prefabComponent.getIconContainer(v.prefabIndex).legacyTransform.group;
j.anchor.set(.5, .5), this._indicatorContainer.addChild(j), j.position.x += p.getGlobalPosition().x, j.position.y += p.getGlobalPosition().y
} else g.Logger.log("Unable to retrieve Zone Data from target string. Indicator creation aborted.", g.LogLevel.Error)
}, O.prototype.setupTitan = function (v) {
if (this.game.broadcaster.removeAppListener(M.z.GotTitans, this, "Titan"), v && g.Utils.isDefined(v.assetID) && y.a.instance.prodigy.titansNetworkHandler.isTitanAlive()) {
var j = T.a.getItem("titan", v.assetID);
if (g.Utils.isDefined(j)) {
this._titanAsset = j.data;
for (var p = void 0, m = 0; m < O.BUTTONS_CONFIG.length; m++)
if (this._titanAsset.zone === O.BUTTONS_CONFIG[m].zone) {
p = O.BUTTONS_CONFIG[m];
break
} if (g.Utils.isDefined(p)) {
var _ = y.a.instance.prodigy.create.titanIndicator(p.titanIconOffset.x, p.titanIconOffset.y),
w = this._prefabComponent.getIconContainer(p.prefabIndex).legacyTransform.group;
if (_.anchor.set(.5, .5), this._indicatorContainer.addChild(_), _.position.x += w.getGlobalPosition().x, _.position.y += w.getGlobalPosition().y, this.featureRequirements.meetsRequirements(10) && this.featureRequirements.meetsRequirements(8) && !this.breadcrumbManager.isBreadcrumbComplete(U.a.FEATURE_TITAN_UNLOCKED, U.a.BREADCRUMB_TITAN_UNLOCKED_BUTTONS)) {
var E = y.a.instance.prodigy.create.indicator(0, -50);
E.anchor.set(.5, .5), _.addChild(E), this.breadcrumbManager.completeBreadcrumb(U.a.FEATURE_TITAN_UNLOCKED, U.a.BREADCRUMB_TITAN_UNLOCKED_HUD_BUTTON)
}
}
}
}
}, O.prototype.startDialogue = function () {
y.a.instance.prodigy.titansNetworkHandler.isTitanAlive() && this.featureRequirements.meetsRequirements(10) && this.featureRequirements.meetsRequirements(8) && !this.breadcrumbManager.isBreadcrumbComplete(U.a.FEATURE_TITAN_UNLOCKED, U.a.BREADCRUMB_TITAN_UNLOCKED_DIALOGUE) ? this.startTitanUnlockedDialogue() : this.featureRequirements.meetsRequirements(13) && !this.breadcrumbManager.isBreadcrumbComplete(U.a.FEATURE_ELEMENTAL_GUARDIAN, U.a.BREADCRUMB_EG_ISLAND_UNLOCKED) && this.startIslandRevealDialogue()
}, O.prototype.startTitanUnlockedDialogue = function () {
var v = this;
this.enableZoneGoals(!1);
var O = new k.a(this.game);
O.addEvents([{
dialogueData: O.dataProvider.get(862),
blockInput: !0
}, {
dialogueData: O.dataProvider.get(863),
blockInput: !0
}, {
dialogueData: O.dataProvider.get(864),
blockInput: !0
}, {
dialogueData: O.dataProvider.get(865),
blockInput: !0
}, {
callback: function () {
v.breadcrumbManager.completeBreadcrumb(U.a.FEATURE_TITAN_UNLOCKED, U.a.BREADCRUMB_TITAN_UNLOCKED_DIALOGUE), v.enableZoneGoals(!0)
}
}]), O.start()
}, O.prototype.startIslandRevealDialogue = function () {
var v = this;
this.enableZoneGoals(!1);
var j = new k.a(this.game);
j.addEvents([{
dialogueData: j.dataProvider.get(1031),
blockInput: !0
}, {
dialogueData: j.dataProvider.get(1043),
blockInput: !0
}, {
dialogueData: j.dataProvider.get(1044),
blockInput: !0
}, {
dialogueData: j.dataProvider.get(1032),
blockInput: !0,
yes: function () {
O.goTo(V.a.HUB, "")
}
}, {
callback: function () {
var j = O.BUTTONS_CONFIG.findIndex((function (v) {
return "elementalguardian" === v.tag
})),
p = O.BUTTONS_CONFIG[j];
v.createIsNewIcon(p), v.breadcrumbManager.completeBreadcrumb(U.a.FEATURE_ELEMENTAL_GUARDIAN, U.a.BREADCRUMB_EG_ISLAND_UNLOCKED), v.enableZoneGoals(!0), y.a.instance.prodigy.gameContainer.get("6b3-bc0f").create("hi-run", "hi-reveal-watched").broadcast()
}
}]), j.start();
var p = this._prefabComponent.getMapLocation(x.a.ElementalGuardian);
p.onActiveInHierarchyChanged.addOnce((function () {
p.findComponentInChildren(N.a).initialize("world-map-guardian-button-stroke")
}))
}, O.prototype.enableZoneGoals = function (v) {
this._isZoneGoalsActive = v, this._zoneGoalsObject && (this._zoneGoalsObject.active = v)
}, O.prototype.destroy = function () {
var j;
if (this._titanAsset = null, this._indicatorTween && y.a.instance.game.tweens.remove(this._indicatorTween), this._strokeObjects && this._strokeObjects.length > 0)
for (var p = 0; p < this._strokeObjects.length; p++) this._strokeObjects[p].GameObject.onActiveChanged.removeAll();
this._zoneGoalsController && (this._zoneGoalsController.onApplyCustomDisplay.remove(this.applyCustomHighlight, this), this._zoneGoalsController.onClearCustomDisplay.remove(this.clearCustomHighlight, this), this._zoneGoalsController = null), null === (j = this._zoneGoalsPromise) || void 0 === j || j.cancel(), this._zoneGoalsPromise = null, this._zoneGoalsObject && (g.SceneManager.getActiveScene().removeGameObject(this._zoneGoalsObject), g.SceneManager.getActiveScene().destroyLayer(O.ZONE_GOALS_LAYER_NAME), this._zoneGoalsObject.destroy(), this._zoneGoalsObject = null), this._prefabObj && this._prefabObj.destroy(), y.a.instance.prodigy.gameContainer.get("974-9dfd").featureCommon.sendInterfaceEvent({
interfaceName: "world_map",
interfaceType: L.d.Screen,
instanceType: "ui",
closeMethod: L.b.CloseButton
}), v.prototype.destroy.call(this)
}, O.getTeleportMapTag = function (v) {
return "crystal_caverns" === v ? y.a.instance.prodigy.world.getZone(v).questHub : "elemental_guardian" === v ? v + "-hub" : y.a.instance.prodigy.world.getZone(v).onFaint
}, O.getZoneData = function (v) {
return O.BUTTONS_CONFIG.find((function (O) {
return O.zone === v
}))
}, O.getZoneDataFromDungeon = function (v) {
return O.BUTTONS_CONFIG.find((function (O) {
var j;
return (null === (j = O.dungeon) || void 0 === j ? void 0 : j.zone) === v
}))
}, O.isZoneLocked = function (v) {
var j = O.BUTTONS_CONFIG.find((function (O) {
var j;
return O.zone === v || (null === (j = O.dungeon) || void 0 === j ? void 0 : j.zone) === v
}));
return j ? y.a.instance.prodigy.classModeController.isLockedZone(v) || this.isZoneLockedParams(j, y.a.instance.prodigy.gameContainer.get("fb2-5446")) : !K.a.getAllTowerData().find((function (O) {
return O.towerID === v
}))
}, O.isZoneLockedParams = function (v, j, p) {
var m = (null == p ? void 0 : p.indexOf(v.nameKey)) > -1,
y = g.Utils.isDefined(v.isLocked) && v.isLocked(),
_ = g.Utils.isDefined(v.zoneRequirementsID) && !j.meetsRequirements(v.zoneRequirementsID),
w = O.isZoneFeatureFlagLocked(v);
return m || y || this.newAccountLock(j, v) || _ || w
}, O.newAccountLock = function (v, O) {
return v.meetsRequirements(10) && g.Utils.isDefined(O.requirementsID) && !v.meetsRequirements(O.requirementsID)
}, O.isZoneFeatureFlagLocked = function (v) {
return g.Utils.isDefined(v.featureFlagLock) && !y.a.instance.prodigy.gameContainer.get("41c-f914").getValue(v.featureFlagLock, !0)
}, O.applyZoneLocking = function (v, j, p, m, _) {
var w = this.getZoneData(j);
if (g.Utils.isDefined(w) || (w = this.getZoneDataFromDungeon(j)), g.Utils.isDefined(w)) {
if (O.isZoneLockedParams(w, m)) {
var E = w.getLockMessage(),
T = _.getText(w.nameKey);
p.action = function () {
return y.a.instance.prodigy.open.message(E, null, w.icon, T, null, {
isModal: !1
})
}, p.configModifiers = {
modifyProperty: [{
element: "actionButton",
property: "toggle",
value: !1
}]
}
}
} else g.Logger.log("Error getting zone map config for zone " + j + ". Zone locking check not applied.", g.LogLevel.Warning)
}, O.prototype.createIsNewIcon = function (v) {
var O = v.iconOffset ? v.iconOffset : {
x: 0,
y: 10
},
j = this._indicatorContainer.addChild(y.a.instance.prodigy.create.sprite(O.x, O.y, "atlas-21", "exclamation"));
j.anchor.set(.5, .5);
var p = this._prefabComponent.getIconContainer(v.prefabIndex).legacyTransform.group;
j.position.x += p.getGlobalPosition().x, j.position.y += p.getGlobalPosition().y
}, O.prototype.createSparkles = function (v, O) {
var j = O.legacyTransform.group,
p = this.game.add.spine(j.getGlobalPosition().x, j.getGlobalPosition().y, "spine-120");
p.setAnimationByName(0, v, !0), this.dialogueContainer.addChild(p)
}, O.BASE_ASSETS = ["spine-120", "atlas-21", "atlas-27", "atlas-179", "atlas-208", "atlas-192", "atlas-181", "atlas-145", "atlas-148", "atlas-149", "atlas-180", "atlas-229", "sfx-42", "sfx-43"], O.ZONE_GOALS_LAYER_NAME = "zonegoals", O.ZONE_GOALS_LAYER_DEPTH = 110, O.ZONE_GOALS_STROKE_OBJECT_MAPPING = [7, 5, 2, 3, 4], O.BRIGHTNESS_VALUE_LOCATION = .2, O.BRIGHTNESS_VALUE_BACKGROUND = .5, O.BUTTONS_CONFIG = [{
prefabIndex: x.a.Firefly,
nameKey: "WORLD_FIREFLY_FOREST",
zone: "forest",
tag: "forest",
atlasID: 146,
target: "forest-C8",
summaryKey: "WORLD_FIREFLY_FOREST_DESC",
lockKey: "WORLD_MAP_ZONE_LOCKED",
titanIconOffset: {
x: -70,
y: 10
},
ultimatesQuestIconOffset: {
x: 0,
y: 10
},
msgKeys: {
1: "WORLD_MAP_FOREST_QUEST_0",
2: "WORLD_MAP_FOREST_QUEST_1",
3: "WORLD_MAP_FOREST_QUEST_2",
4: "WORLD_MAP_FOREST_QUEST_3",
5: "WORLD_MAP_FOREST_QUEST_4",
6: "WORLD_MAP_FOREST_QUEST_5",
7: "WORLD_MAP_FOREST_QUEST_6",
8: "WORLD_MAP_FOREST_QUEST_7",
9: "WORLD_MAP_FOREST_QUEST_8",
10: "WORLD_MAP_FOREST_QUEST_9",
11: "WORLD_MAP_FOREST_QUEST_10",
12: "WORLD_MAP_FOREST_QUEST_11"
},
isVisited: function () {
return g.Utils.isDefined(y.a.instance.prodigy.gameContainer.get("497-7811").player.state.get("zone-forest"))
}
}, {
prefabIndex: x.a.Shiverchill,
nameKey: "WORLD_SHIVERCHILL_MOUNTAINS",
zone: "shiverchill",
tag: "shiverchill",
atlasID: 149,
target: "shiverchill-A10",
summaryKey: "WORLD_SHIVERCHILL_MOUNTAINS_DESC",
lockKey: "WORLD_MAP_ZONE_LOCKED",
dungeon: {
zone: "crystal_caverns",
iconOffset: {
x: 60,
y: -20
},
breadcrumbName: U.a.BREADCRUMB_STARTED_CRYSTAL_CAVERNS,
dungeonHub: "crystal_caverns-DungeonHub",
dungeonStateCtor: I.a,
dungeonStateKey: "crystal_caverns",
eventValue: "Crystal Caverns",
featureFlagName: "enableCrystalCaverns"
},
ultimatesQuestIconOffset: {
x: -70,
y: 10
},
msgKeys: {
1: "WORLD_MAP_SHIVERCHILL_QUEST_0",
2: "WORLD_MAP_SHIVERCHILL_QUEST_1",
3: "WORLD_MAP_SHIVERCHILL_QUEST_2",
4: "WORLD_MAP_SHIVERCHILL_QUEST_3",
5: "WORLD_MAP_SHIVERCHILL_QUEST_4",
6: "WORLD_MAP_SHIVERCHILL_QUEST_5",
7: "WORLD_MAP_SHIVERCHILL_QUEST_6",
8: "WORLD_MAP_SHIVERCHILL_QUEST_7",
9: "WORLD_MAP_SHIVERCHILL_QUEST_8",
10: "WORLD_MAP_SHIVERCHILL_QUEST_9",
11: "WORLD_MAP_SHIVERCHILL_QUEST_10",
12: "WORLD_MAP_SHIVERCHILL_QUEST_11",
13: "WORLD_MAP_SHIVERCHILL_QUEST_12",
14: "WORLD_MAP_SHIVERCHILL_QUEST_13",
15: "WORLD_MAP_SHIVERCHILL_QUEST_14"
},
isVisited: function () {
return g.Utils.isDefined(y.a.instance.prodigy.gameContainer.get("497-7811").player.state.get("zone-shiverchill"))
}
}, {
prefabIndex: x.a.Skywatch,
nameKey: "WORLD_SKYWATCH",
zone: "skywatch",
tag: "skywatch",
atlasID: 150,
target: "skywatch-A1",
summaryKey: "WORLD_SKYWATCH_DESC",
lockKey: "WORLD_MAP_ZONE_LOCKED",
titanIconOffset: {
x: 0,
y: -65
},
ultimatesQuestIconOffset: {
x: -20,
y: 20
},
msgKeys: {
1: "WORLD_MAP_SKYWATCH_QUEST_0",
2: "WORLD_MAP_SKYWATCH_QUEST_1",
3: "WORLD_MAP_SKYWATCH_QUEST_2",
4: "WORLD_MAP_SKYWATCH_QUEST_3",
5: "WORLD_MAP_SKYWATCH_QUEST_4",
6: "WORLD_MAP_SKYWATCH_QUEST_5",
7: "WORLD_MAP_SKYWATCH_QUEST_6",
8: "WORLD_MAP_SKYWATCH_QUEST_7",
9: "WORLD_MAP_SKYWATCH_QUEST_8",
10: "WORLD_MAP_SKYWATCH_QUEST_9",
11: "WORLD_MAP_SKYWATCH_QUEST_10",
12: "WORLD_MAP_SKYWATCH_QUEST_11",
13: "WORLD_MAP_SKYWATCH_QUEST_12"
},
isVisited: function () {
return g.Utils.isDefined(y.a.instance.prodigy.gameContainer.get("497-7811").player.state.get("zone-skywatch"))
}
}, {
prefabIndex: x.a.Dyno,
nameKey: "WORLD_DYNO_DIG_OASIS",
zone: "dyno",
target: "dyno-A0",
summaryKey: "WORLD_DYNO_DIG_OASIS_DESC",
lockKey: "WORLD_MAP_ZONE_LEVEL_LOCKED",
classCodeKey: "WORLD_DYNO_DIG_OASIS_CLASS_MODE",
classModeFrame: "popup-travel-dinodig",
requirementsID: 11
}, {
prefabIndex: x.a.Portal,
nameKey: "WORLD_EPICS_SUBSPACE",
zone: "toyzone",
target: "toyzone-B1",
summaryKey: "WORLD_EPICS_SUBSPACE_DESC",
lockKey: "WORLD_MAP_ZONE_LEVEL_LOCKED",
requirementsID: 11
}, {
prefabIndex: x.a.Bonfire,
nameKey: "WORLD_BONFIRE_SPIRE",
zone: "bonfire_spire",
tag: "bonfire",
atlasID: 147,
target: "bonfire_spire-B1",
summaryKey: "WORLD_BONFIRE_SPIRE_DESC",
lockKey: "WORLD_MAP_ZONE_LOCKED",
titanIconOffset: {
x: -45,
y: -20
},
ultimatesQuestIconOffset: {
x: 25,
y: -20
},
msgKeys: {
1: "WORLD_MAP_BONFIRE_QUEST_0",
2: "WORLD_MAP_BONFIRE_QUEST_1",
3: "WORLD_MAP_BONFIRE_QUEST_2",
4: "WORLD_MAP_BONFIRE_QUEST_3",
5: "WORLD_MAP_BONFIRE_QUEST_4",
6: "WORLD_MAP_BONFIRE_QUEST_5",
7: "WORLD_MAP_BONFIRE_QUEST_6",
8: "WORLD_MAP_BONFIRE_QUEST_7",
9: "WORLD_MAP_BONFIRE_QUEST_8",
10: "WORLD_MAP_BONFIRE_QUEST_9",
11: "WORLD_MAP_BONFIRE_QUEST_10",
12: "WORLD_MAP_BONFIRE_QUEST_11",
13: "WORLD_MAP_BONFIRE_QUEST_12",
14: "WORLD_MAP_BONFIRE_QUEST_13"
},
isVisited: function () {
return g.Utils.isDefined(y.a.instance.prodigy.gameContainer.get("497-7811").player.state.get("zone-bonfire_spire"))
}
}, {
prefabIndex: x.a.Shipwreck,
nameKey: "WORLD_SHIPWRECK_SHORE",
zone: "shipwreck_shore",
tag: "shipwreck",
atlasID: 148,
icon: "zone-water",
target: "shipwreck_shore-B12",
summaryKey: "WORLD_SHIPWRECK_SHORE_DESC",
lockKey: "WORLD_MAP_ZONE_LOCKED",
titanIconOffset: {
x: -50,
y: 40
},
ultimatesQuestIconOffset: {
x: 20,
y: 40
},
msgKeys: {
1: "WORLD_MAP_SHIPWRECK_QUEST_0",
2: "WORLD_MAP_SHIPWRECK_QUEST_1",
3: "WORLD_MAP_SHIPWRECK_QUEST_2",
4: "WORLD_MAP_SHIPWRECK_QUEST_3",
5: "WORLD_MAP_SHIPWRECK_QUEST_4",
6: "WORLD_MAP_SHIPWRECK_QUEST_5",
7: "WORLD_MAP_SHIPWRECK_QUEST_6",
8: "WORLD_MAP_SHIPWRECK_QUEST_7",
9: "WORLD_MAP_SHIPWRECK_QUEST_8",
10: "WORLD_MAP_SHIPWRECK_QUEST_9",
11: "WORLD_MAP_SHIPWRECK_QUEST_10"
},
isVisited: function () {
return g.Utils.isDefined(y.a.instance.prodigy.gameContainer.get("497-7811").player.state.get("zone-shipwreck_shore"))
}
}, {
prefabIndex: x.a.Darktower,
nameKey: "WORLD_DARK_TOWER",
zone: "darktower",
target: "darktower-A1",
summaryKey: "WORLD_DARK_TOWER_DESC",
lockKey: "WORLD_MAP_DARK_TOWER_LEVEL_LOCKED",
requirementsID: 11
}, {
prefabIndex: x.a.Lamplight,
nameKey: "WORLD_LAMPLIGHT_TOWN",
zone: "lamplight",
target: "lamplight-B3",
summaryKey: "WORLD_LAMPLIGHT_TOWN_DESC",
classCodeKey: "WORLD_LAMPLIGHT_TOWN_CLASS_MODE",
classModeFrame: "popup-travel-lamplight",
lockKey: "WORLD_MAP_ZONE_LEVEL_LOCKED",
requirementsID: 11,
iconOffset: {
x: 10,
y: -90
},
ultimatesQuestIconOffset: {
x: -70,
y: 10
},
isNew: function (v) {
return !y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(U.a.FEATURE_EG_ARENA, U.a.BREADCRUMB_EG_ARENA_VISITED_ARENA) && y.a.instance.prodigy.gameContainer.get("fb2-5446").meetsRequirements(13) && y.a.instance.prodigy.gameContainer.get("7cd-a01a").hasValidSeasonData
}
}, {
prefabIndex: x.a.Academy,
nameKey: "WORLD_THE_ACADEMY",
zone: "academy",
target: "academy-GH3",
summaryKey: "WORLD_THE_ACADEMY_DESC",
lockKey: "WORLD_MAP_ACADEMY_LEVEL_LOCKED",
requirementsID: 12,
isLocked: function () {
return !y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(U.a.BREADCRUMB_UNLOCK_ACADEMY, U.a.BREADCRUMB_UNLOCK_ACADEMY_NOOT_DIALOGUE) && y.a.instance.prodigy.gameContainer.get("497-7811").player.backpack.hasItem("key", 22) <= 0
},
isNew: function () {
return y.a.instance.prodigy.gameContainer.get("497-7811").player.backpack.hasItem("key", 22) <= 0 || !y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(U.a.FEATURE_ACADEMY_TOWERS, U.a.BREADCRUMB_ACADEMY_VISITED)
}
}, {
prefabIndex: x.a.House,
nameKey: "WORLD_YOUR_HOUSE",
zone: "house",
target: "house-suburbs",
summaryKey: "WORLD_YOUR_HOUSE_DESC",
lockKey: "WORLD_MAP_ZONE_LEVEL_LOCKED",
classCodeKey: "WORLD_YOUR_HOUSE_CLASS_MODE",
classModeFrame: "popup-travel-home",
clickEventName: M.m.ClickedHouseIcon,
requirementsID: 11
}, {
prefabIndex: x.a.TowerTown,
nameKey: "TOWER_TOWN_MAP",
zone: "tower_town",
tag: "towertown",
target: "tower_town-A1",
summaryKey: "TOWER_TOWN_MAP_DESC",
lockKey: "WORLD_MAP_ZONE_LOCKED",
isLocked: function () {
return y.a.instance.prodigy.gameContainer.get("41c-f914").getValue("lockTowerTown", !1)
},
isVisited: function () {
return g.Utils.isDefined(y.a.instance.prodigy.gameContainer.get("497-7811").player.state.get("zone-tower_town"))
}
}, {
prefabIndex: x.a.ElementalGuardian,
nameKey: "WORLD_ELEMENTAL_GUARDIAN",
lockNameKey: "WORLDMAP_HARMONY_LOCK_TITLE",
goButtonKey: "WORLDMAP_HARMONY_GO_BUTTON",
zone: "elemental_guardian",
tag: "elementalguardian",
target: V.a.HUB,
summaryKey: "WORLDMAP_HARMONY_UNLOCKED",
lockKey: "WORLDMAP_HARMONY_LOCKED",
zoneRequirementsID: 13,
featureFlagLock: "enableElementalGuardianZone",
iconOffset: {
x: 50,
y: -110
},
isNew: function () {
return y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(U.a.FEATURE_ELEMENTAL_GUARDIAN, U.a.BREADCRUMB_EG_ISLAND_UNLOCKED) && !y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(U.a.FEATURE_ELEMENTAL_GUARDIAN, U.a.BREADCRUMB_EG_FTUE_COMPLETED)
},
isVisited: function () {
return y.a.instance.prodigy.breadcrumbManager.isBreadcrumbComplete(U.a.FEATURE_ELEMENTAL_GUARDIAN, U.a.BREADCRUMB_EG_FTUE_COMPLETED)
},
useLocationDialogPrefab: !0,
splashImage: {
atlas: "atlas-27",
frame: "harmony-splash"
}
}].map((function (v) {
return new X(v)
})), Object(p.__decorate)([Object(g.injectProperty)("fb2-5446"), Object(p.__metadata)("design:type", Object)], O.prototype, "featureRequirements", void 0), Object(p.__decorate)([Object(g.injectProperty)("822-80a0"), Object(p.__metadata)("design:type", B.a)], O.prototype, "breadcrumbManager", void 0), Object(p.__decorate)([Object(g.injectProperty)(g.GameIdentifiers.LocalizationService), Object(p.__metadata)("design:type", g.BaseLocalizer)], O.prototype, "localizer", void 0), Object(p.__decorate)([Object(g.injectProperty)("497-7811"), Object(p.__metadata)("design:type", Object)], O.prototype, "playerData", void 0), O
}(q.a)
}, function (v, O, j) {
"use strict";
j.d(O, "b", (function () {
return E
})), j.d(O, "a", (function () {
return I
}));
var p, m = j(1),
g = j(40),
y = j(4),
_ = j(32),
w = j(551);
! function (v) {
v[v.Stubborn = 0] = "Stubborn", v[v.Shy = 1] = "Shy", v[v.Socialite = 2] = "Socialite", v[v.ChillDude = 3] = "ChillDude"
}(p || (p = {}));
var E, T = j(258);
! function (v) {
v[v.Wandering = 0] = "Wandering", v[v.Awake = 1] = "Awake", v[v.Asleep = 2] = "Asleep", v[v.Floating = 3] = "Floating", v[v.ScaredAway = 4] = "ScaredAway"
}(E || (E = {}));
var I = function (v) {
function O() {
var O = null !== v && v.apply(this, arguments) || this;
return O._state = E.Asleep, O._gearElement = 0, O._explorerLevel = 0, O._lastThrown = 0, O._floor = null, O._personality = p.ChillDude, O._element = g.a.Fire, O
}
return Object(m.__extends)(O, v), Object.defineProperty(O.prototype, "state", {
get: function () {
return this._state
},
set: function (v) {
this._state !== v && (this._state = v, this.notifyUpdate(_.a.FLOATLING_SET_STATE))
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "gearElement", {
get: function () {
return this._gearElement
},
set: function (v) {
this._gearElement = v, this.notifyUpdate(_.a.FLOATLING_SET_GEAR_ELEMENT)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "explorerLevel", {
get: function () {
return this._explorerLevel
},
set: function (v) {
this._explorerLevel = v, this.notifyUpdate(_.a.FLOATLING_SET_EXPLORER_LEVEL)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "lastThrown", {
get: function () {
return this._lastThrown
},
set: function (v) {
this._lastThrown = v, this.updateState(), this.notifyUpdate(_.a.FLOATLING_SET_LAST_THROWN)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "floor", {
get: function () {
return this._floor
},
set: function (v) {
this._floor = v, this.notifyUpdate(_.a.FLOATLING_SET_FLOOR_ASSOCIATION)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "element", {
get: function () {
return this._element
},
set: function (v) {
this._element = v, this.notifyUpdate(_.a.FLOATLING_SET_ELEMENT)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "personality", {
get: function () {
return this._personality
},
set: function (v) {
this._personality = v, this.notifyUpdate(_.a.FLOATLING_SET_PERSONALITY)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "spineID", {
get: function () {
return "spine-" + w.a.getFloatlingAssetID(this.element, this.explorerLevel)
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "researchPointID", {
get: function () {
return "researchpoint-sm-" + this.element
},
enumerable: !1,
configurable: !0
}), O.prototype.updateState = function () {
this.state !== E.Floating && this.state !== E.ScaredAway && (this.lastThrown <= Date.now() - y.a.MS_DAY ? this.state !== E.Wandering && (this.state = E.Awake) : this.state = E.Asleep)
}, O.organizeFloatlings = function (v) {
var O = new Map;
return y.a.ELEMENT_STRINGS.forEach((function (v) {
O.set(v, [])
})), v.forEach((function (v) {
for (var j = !1, p = 0; p < O.get(v.element).length; p++)
if (v.explorerLevel > O.get(v.element)[p].explorerLevel) {
O.get(v.element).splice(p, 0, v), j = !0;
break
} j || O.get(v.element).push(v)
})), O
}, O
}(T.a)
}, function (v, O, j) {
"use strict";
j.d(O, "c", (function () {
return m
})), j.d(O, "f", (function () {
return I
})), j.d(O, "a", (function () {
return _
})), j.d(O, "b", (function () {
return w
})), j.d(O, "e", (function () {
return E
})), j.d(O, "d", (function () {
return T
}));
var p, m, g, y = j(93);
! function (v) {
v.Exit = "exit", v.Restart = "Restart", v.Success = "Success", v.Fail = "Fail", v.Abandon = "Abandon"
}(m || (m = {})),
function (v) {
v.Easy = "Easy", v.Hard = "Hard", v.None = "None"
}(g || (g = {}));
var _, w, E, T, I = ((p = {})[y.a.Start] = {
difficulty: g.None,
roomNumber: 0
}, p[y.a.EasyPath] = {
difficulty: g.Easy,
roomNumber: -1
}, p[y.a.HardPath] = {
difficulty: g.Hard,
roomNumber: -1
}, p[y.a.End] = {
difficulty: g.None,
roomNumber: 3
}, p);
! function (v) {
v.New = "New", v.Continue = "Continue", v.Restart = "Restart", v.Spawn = "Spawn"
}(_ || (_ = {})),
function (v) {
v.Healstone = "Healstone", v.Bridge = "Bridge", v.Boss = "Boss", v.Complete = "Complete"
}(w || (w = {})),
function (v) {
v.DarkTower = "Dark Tower", v.EarthTower = "Earth Tower", v.IceTower = "Ice Tower"
}(E || (E = {})),
function (v) {
v.Normal = "Normal", v.Random = "Random"
}(T || (T = {}))
}, function (v, O, j) {
"use strict";
Object.defineProperty(O, "__esModule", {
value: !0
});
var p = j(224);
p.__exportStar(j(1301), O), p.__exportStar(j(438), O), p.__exportStar(j(1304), O), p.__exportStar(j(1305), O), p.__exportStar(j(642), O), p.__exportStar(j(1306), O), p.__exportStar(j(1307), O), p.__exportStar(j(1308), O), p.__exportStar(j(1310), O)
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.String = "string", v.Number = "number", v.JSON = "json", v.JSONFile = "jsonFile", v.Boolean = "boolean", v.Color = "color", v.Vector = "vector", v.Size = "size", v.ComponentReference = "componentReference", v.GameObjectReference = "gameObjectReference", v.SceneObjectReference = "sceneObjectReference", v.PrefabConstructable = "prefabConstructable", v.Signal = "signal", v.EditorAssetReference = "editorAssetReference", v.Enum = "enum", v.Unknown = "unknown", v.UnknownObject = "unknownObject", v.GenericObject = "GenericObject"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
var p;
j.d(O, "a", (function () {
return p
})),
function (v) {
v[v.TrackLocked = 0] = "TrackLocked", v[v.TrackUnlocked = 1] = "TrackUnlocked", v[v.TrackInProgress = 2] = "TrackInProgress", v[v.Finished = 3] = "Finished"
}(p || (p = {}))
}, function (v, O, j) {
"use strict";
var p, m;
j.d(O, "a", (function () {
return p
})),
function (v) {
v.Single = "single", v.AOE = "aoe", v.None = "none"
}(p || (p = {})),
function (v) {
v.Team = "team", v.Unit = "unit"
}(m || (m = {}))
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return g
}));
var p = j(1),
m = j(2),
g = function (v) {
function O(O, j, p, g, y, _, w, E, T, I, A, S) {
void 0 === O && (O = "DEFAULT");
var C = v.call(this, p, g, y, _, w) || this;
return C._buttonText = O, C._buttonCallback = function () {
m.a.instance.prodigy.audio.playSFX(18, "pop"), null == j || j()
}, C._graphicSource = E, C._graphicFrame = T, C._headerPrefabID = I, C._footerPrefabID = A, C._bodyPrefabID = S, C
}
return Object(p.__extends)(O, v), Object.defineProperty(O.prototype, "buttonText", {
get: function () {
return this._buttonText
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "buttonCallback", {
get: function () {
return this._buttonCallback
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "graphicSource", {
get: function () {
return this._graphicSource
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "graphicFrame", {
get: function () {
return this._graphicFrame
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "headerPrefabID", {
get: function () {
return void 0 !== this._headerPrefabID ? this._headerPrefabID : 17
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "footerPrefabID", {
get: function () {
return void 0 !== this._footerPrefabID ? this._footerPrefabID : 19
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(O.prototype, "bodyPrefabID", {
get: function () {
return void 0 !== this._bodyPrefabID ? this._bodyPrefabID : 18
},
enumerable: !1,
configurable: !0
}), O
}(j(401).a)
}, function (v, O, j) {
"use strict";
j.d(O, "a", (function () {
return p
})), j.d(O, "b", (function () {
return m
})), j.d(O, "c", (function () {
return N
}));
var p, m, g = j(1),
y = j(119),
_ = j(0),
w = j(8),
E = j(6),
T = j.n(E),
I = j(2),
A = j(66),
S = j(5),
C = j(269),
D = j(458),
M = j(248),
x = j(21);
! function (v) {
v.Xp = "Xp", v.Currency = "Currency", v.TitanShard = "TitanShard", v.Springfest = "Springfest", v.Summerfest = "Summerfest", v.Pumpkinfest = "Pumpkinfest", v.Winterfest = "Winterfest", v.StarlightFestival = "Starlight"
}(p || (p = {})),
function (v) {
v.AllZones = "all_zones", v.Global = "global", v.AllInstances = "all_instances"
}(m || (m = {}));
var N = function () {
function v() {
this.ELEMENTAL_ZONES = ["bonfire_spire", "forest", "shipwreck_shore", "shiverchill", "skywatch"], this.INSTANCE_ZONES = ["archives", "astraltower", "crystal_caverns", "darktower", "earthtower", "elemental_guardian", "firetower", "icetower", "lamplight", "stormtower", "watertower"], this._lastFetchTime = 0, this._eventMap = {}
}
var O;
return O = v, v.prototype.awaitLoad = function () {
return Object(g.__awaiter)(this, void 0, void 0, (function () {
return Object(g.__generator)(this, (function (v) {
switch (v.label) {
case 0:
return 18e5, Date.now() > this._lastFetchTime + 18e5 && (this._lastFetchTime = Date.now(), this._fetchPromise = this.fetchData()), [4, this._fetchPromise];
case 1:
return v.sent(), [2,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment