From d7a857697faa2be9cce25a7bae83842e222495d7 Mon Sep 17 00:00:00 2001 From: Svipal Date: Fri, 7 Feb 2020 14:05:42 +0100 Subject: [PATCH] fixed worldToTileXY and tileToWorldXY undefined point mistakes. Fixed getTilesWithinXY incorrect snaptoFloor setting --- dist/phaser-arcade-physics.js | 10633 ++++++----- dist/phaser-arcade-physics.min.js | 2 +- dist/phaser.js | 15771 ++++++---------- dist/phaser.min.js | 2 +- package.json | 8 +- .../arcade/tilemap/TileIntersectsBody.js | 1 - src/tilemaps/components/CreateFromTiles.js | 2 +- src/tilemaps/components/CullTiles.js | 2 +- src/tilemaps/components/GetTileAt.js | 1 + src/tilemaps/components/GetTileAtWorldXY.js | 2 +- .../components/GetTilesWithinShape.js | 6 +- .../components/GetTilesWithinWorldXY.js | 5 +- src/tilemaps/components/HasTileAtWorldXY.js | 2 +- src/tilemaps/components/PutTileAtWorldXY.js | 2 +- .../components/RemoveTileAtWorldXY.js | 2 +- src/tilemaps/mapdata/LayerData.js | 4 +- src/tilemaps/mapdata/MapData.js | 1 - 17 files changed, 11059 insertions(+), 15387 deletions(-) diff --git a/dist/phaser-arcade-physics.js b/dist/phaser-arcade-physics.js index 7e9f6b3d2..b4885daea 100644 --- a/dist/phaser-arcade-physics.js +++ b/dist/phaser-arcade-physics.js @@ -91,7 +91,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 1461); +/******/ return __webpack_require__(__webpack_require__.s = 1427); /******/ }) /************************************************************************/ /******/ ([ @@ -1162,7 +1162,7 @@ module.exports = Point; var Class = __webpack_require__(0); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -1566,6 +1566,141 @@ module.exports = FileTypesManager; /***/ }), /* 9 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Renderer.WebGL.Utils + * @since 3.0.0 + */ +module.exports = { + + /** + * Packs four floats on a range from 0.0 to 1.0 into a single Uint32 + * + * @function Phaser.Renderer.WebGL.Utils.getTintFromFloats + * @since 3.0.0 + * + * @param {number} r - Red component in a range from 0.0 to 1.0 + * @param {number} g - Green component in a range from 0.0 to 1.0 + * @param {number} b - Blue component in a range from 0.0 to 1.0 + * @param {number} a - Alpha component in a range from 0.0 to 1.0 + * + * @return {number} The packed RGBA values as a Uint32. + */ + getTintFromFloats: function (r, g, b, a) + { + var ur = ((r * 255.0)|0) & 0xFF; + var ug = ((g * 255.0)|0) & 0xFF; + var ub = ((b * 255.0)|0) & 0xFF; + var ua = ((a * 255.0)|0) & 0xFF; + + return ((ua << 24) | (ur << 16) | (ug << 8) | ub) >>> 0; + }, + + /** + * Packs a Uint24, representing RGB components, with a Float32, representing + * the alpha component, with a range between 0.0 and 1.0 and return a Uint32 + * + * @function Phaser.Renderer.WebGL.Utils.getTintAppendFloatAlpha + * @since 3.0.0 + * + * @param {number} rgb - Uint24 representing RGB components + * @param {number} a - Float32 representing Alpha component + * + * @return {number} Packed RGBA as Uint32 + */ + getTintAppendFloatAlpha: function (rgb, a) + { + var ua = ((a * 255.0)|0) & 0xFF; + return ((ua << 24) | rgb) >>> 0; + }, + + /** + * Packs a Uint24, representing RGB components, with a Float32, representing + * the alpha component, with a range between 0.0 and 1.0 and return a + * swizzled Uint32 + * + * @function Phaser.Renderer.WebGL.Utils.getTintAppendFloatAlphaAndSwap + * @since 3.0.0 + * + * @param {number} rgb - Uint24 representing RGB components + * @param {number} a - Float32 representing Alpha component + * + * @return {number} Packed RGBA as Uint32 + */ + getTintAppendFloatAlphaAndSwap: function (rgb, a) + { + var ur = ((rgb >> 16)|0) & 0xff; + var ug = ((rgb >> 8)|0) & 0xff; + var ub = (rgb|0) & 0xff; + var ua = ((a * 255.0)|0) & 0xFF; + + return ((ua << 24) | (ub << 16) | (ug << 8) | ur) >>> 0; + }, + + /** + * Unpacks a Uint24 RGB into an array of floats of ranges of 0.0 and 1.0 + * + * @function Phaser.Renderer.WebGL.Utils.getFloatsFromUintRGB + * @since 3.0.0 + * + * @param {number} rgb - RGB packed as a Uint24 + * + * @return {array} Array of floats representing each component as a float + */ + getFloatsFromUintRGB: function (rgb) + { + var ur = ((rgb >> 16)|0) & 0xff; + var ug = ((rgb >> 8)|0) & 0xff; + var ub = (rgb|0) & 0xff; + + return [ ur / 255.0, ug / 255.0, ub / 255.0 ]; + }, + + /** + * Counts how many attributes of 32 bits a vertex has + * + * @function Phaser.Renderer.WebGL.Utils.getComponentCount + * @since 3.0.0 + * + * @param {array} attributes - Array of attributes + * @param {WebGLRenderingContext} glContext - WebGLContext used for check types + * + * @return {number} Count of 32 bit attributes in vertex + */ + getComponentCount: function (attributes, glContext) + { + var count = 0; + + for (var index = 0; index < attributes.length; ++index) + { + var element = attributes[index]; + + if (element.type === glContext.FLOAT) + { + count += element.size; + } + else + { + count += 1; // We'll force any other type to be 32 bit. for now + } + } + + return count; + } + +}; + + +/***/ }), +/* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -1907,141 +2042,6 @@ if (true) { } -/***/ }), -/* 10 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @author Felipe Alfonso <@bitnenfer> - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Renderer.WebGL.Utils - * @since 3.0.0 - */ -module.exports = { - - /** - * Packs four floats on a range from 0.0 to 1.0 into a single Uint32 - * - * @function Phaser.Renderer.WebGL.Utils.getTintFromFloats - * @since 3.0.0 - * - * @param {number} r - Red component in a range from 0.0 to 1.0 - * @param {number} g - Green component in a range from 0.0 to 1.0 - * @param {number} b - Blue component in a range from 0.0 to 1.0 - * @param {number} a - Alpha component in a range from 0.0 to 1.0 - * - * @return {number} [description] - */ - getTintFromFloats: function (r, g, b, a) - { - var ur = ((r * 255.0)|0) & 0xFF; - var ug = ((g * 255.0)|0) & 0xFF; - var ub = ((b * 255.0)|0) & 0xFF; - var ua = ((a * 255.0)|0) & 0xFF; - - return ((ua << 24) | (ur << 16) | (ug << 8) | ub) >>> 0; - }, - - /** - * Packs a Uint24, representing RGB components, with a Float32, representing - * the alpha component, with a range between 0.0 and 1.0 and return a Uint32 - * - * @function Phaser.Renderer.WebGL.Utils.getTintAppendFloatAlpha - * @since 3.0.0 - * - * @param {number} rgb - Uint24 representing RGB components - * @param {number} a - Float32 representing Alpha component - * - * @return {number} Packed RGBA as Uint32 - */ - getTintAppendFloatAlpha: function (rgb, a) - { - var ua = ((a * 255.0)|0) & 0xFF; - return ((ua << 24) | rgb) >>> 0; - }, - - /** - * Packs a Uint24, representing RGB components, with a Float32, representing - * the alpha component, with a range between 0.0 and 1.0 and return a - * swizzled Uint32 - * - * @function Phaser.Renderer.WebGL.Utils.getTintAppendFloatAlphaAndSwap - * @since 3.0.0 - * - * @param {number} rgb - Uint24 representing RGB components - * @param {number} a - Float32 representing Alpha component - * - * @return {number} Packed RGBA as Uint32 - */ - getTintAppendFloatAlphaAndSwap: function (rgb, a) - { - var ur = ((rgb >> 16)|0) & 0xff; - var ug = ((rgb >> 8)|0) & 0xff; - var ub = (rgb|0) & 0xff; - var ua = ((a * 255.0)|0) & 0xFF; - - return ((ua << 24) | (ub << 16) | (ug << 8) | ur) >>> 0; - }, - - /** - * Unpacks a Uint24 RGB into an array of floats of ranges of 0.0 and 1.0 - * - * @function Phaser.Renderer.WebGL.Utils.getFloatsFromUintRGB - * @since 3.0.0 - * - * @param {number} rgb - RGB packed as a Uint24 - * - * @return {array} Array of floats representing each component as a float - */ - getFloatsFromUintRGB: function (rgb) - { - var ur = ((rgb >> 16)|0) & 0xff; - var ug = ((rgb >> 8)|0) & 0xff; - var ub = (rgb|0) & 0xff; - - return [ ur / 255.0, ug / 255.0, ub / 255.0 ]; - }, - - /** - * Counts how many attributes of 32 bits a vertex has - * - * @function Phaser.Renderer.WebGL.Utils.getComponentCount - * @since 3.0.0 - * - * @param {array} attributes - Array of attributes - * @param {WebGLRenderingContext} glContext - WebGLContext used for check types - * - * @return {number} Count of 32 bit attributes in vertex - */ - getComponentCount: function (attributes, glContext) - { - var count = 0; - - for (var index = 0; index < attributes.length; ++index) - { - var element = attributes[index]; - - if (element.type === glContext.FLOAT) - { - count += element.size; - } - else - { - count += 1; // We'll force any other type to be 32 bit. for now - } - } - - return count; - } - -}; - - /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { @@ -2058,28 +2058,28 @@ module.exports = { module.exports = { - Alpha: __webpack_require__(533), - AlphaSingle: __webpack_require__(268), - Animation: __webpack_require__(504), - BlendMode: __webpack_require__(271), - ComputedSize: __webpack_require__(552), - Crop: __webpack_require__(553), - Depth: __webpack_require__(272), - Flip: __webpack_require__(554), - GetBounds: __webpack_require__(555), - Mask: __webpack_require__(276), - Origin: __webpack_require__(572), - PathFollower: __webpack_require__(573), - Pipeline: __webpack_require__(154), - ScrollFactor: __webpack_require__(279), - Size: __webpack_require__(574), - Texture: __webpack_require__(575), - TextureCrop: __webpack_require__(576), - Tint: __webpack_require__(577), - ToJSON: __webpack_require__(280), - Transform: __webpack_require__(281), + Alpha: __webpack_require__(532), + AlphaSingle: __webpack_require__(266), + Animation: __webpack_require__(503), + BlendMode: __webpack_require__(269), + ComputedSize: __webpack_require__(551), + Crop: __webpack_require__(552), + Depth: __webpack_require__(270), + Flip: __webpack_require__(553), + GetBounds: __webpack_require__(554), + Mask: __webpack_require__(274), + Origin: __webpack_require__(571), + PathFollower: __webpack_require__(572), + Pipeline: __webpack_require__(151), + ScrollFactor: __webpack_require__(277), + Size: __webpack_require__(573), + Texture: __webpack_require__(574), + TextureCrop: __webpack_require__(575), + Tint: __webpack_require__(576), + ToJSON: __webpack_require__(278), + Transform: __webpack_require__(279), TransformMatrix: __webpack_require__(30), - Visible: __webpack_require__(282) + Visible: __webpack_require__(280) }; @@ -2096,11 +2096,11 @@ module.exports = { var Class = __webpack_require__(0); var Contains = __webpack_require__(47); -var GetPoint = __webpack_require__(150); -var GetPoints = __webpack_require__(273); +var GetPoint = __webpack_require__(147); +var GetPoints = __webpack_require__(271); var GEOM_CONST = __webpack_require__(46); var Line = __webpack_require__(56); -var Random = __webpack_require__(153); +var Random = __webpack_require__(150); /** * @classdesc @@ -2606,10 +2606,10 @@ module.exports = Rectangle; */ var Class = __webpack_require__(0); -var ComponentsToJSON = __webpack_require__(280); -var DataManager = __webpack_require__(113); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(90); +var ComponentsToJSON = __webpack_require__(278); +var DataManager = __webpack_require__(110); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(89); /** * @classdesc @@ -2767,10 +2767,10 @@ var GameObject = new Class({ this.input = null; /** - * If this Game Object is enabled for physics then this property will contain a reference to a Physics Body. + * If this Game Object is enabled for Arcade or Matter Physics then this property will contain a reference to a Physics Body. * * @name Phaser.GameObjects.GameObject#body - * @type {?(object|Phaser.Physics.Arcade.Body|Phaser.Physics.Impact.Body)} + * @type {?(object|Phaser.Physics.Arcade.Body|MatterJS.BodyType)} * @default null * @since 3.0.0 */ @@ -3246,7 +3246,7 @@ module.exports = GameObject; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH = __webpack_require__(169); +var MATH = __webpack_require__(166); var GetValue = __webpack_require__(6); /** @@ -3427,7 +3427,7 @@ module.exports = MATH_CONST; var Class = __webpack_require__(0); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -3698,67 +3698,28 @@ module.exports = Extend; module.exports = { - BLUR: __webpack_require__(556), - BOOT: __webpack_require__(557), - CONTEXT_LOST: __webpack_require__(558), - CONTEXT_RESTORED: __webpack_require__(559), - DESTROY: __webpack_require__(560), - FOCUS: __webpack_require__(561), - HIDDEN: __webpack_require__(562), - PAUSE: __webpack_require__(563), - POST_RENDER: __webpack_require__(564), - POST_STEP: __webpack_require__(565), - PRE_RENDER: __webpack_require__(566), - PRE_STEP: __webpack_require__(567), - READY: __webpack_require__(568), - RESUME: __webpack_require__(569), - STEP: __webpack_require__(570), - VISIBLE: __webpack_require__(571) + BLUR: __webpack_require__(555), + BOOT: __webpack_require__(556), + CONTEXT_LOST: __webpack_require__(557), + CONTEXT_RESTORED: __webpack_require__(558), + DESTROY: __webpack_require__(559), + FOCUS: __webpack_require__(560), + HIDDEN: __webpack_require__(561), + PAUSE: __webpack_require__(562), + POST_RENDER: __webpack_require__(563), + POST_STEP: __webpack_require__(564), + PRE_RENDER: __webpack_require__(565), + PRE_STEP: __webpack_require__(566), + READY: __webpack_require__(567), + RESUME: __webpack_require__(568), + STEP: __webpack_require__(569), + VISIBLE: __webpack_require__(570) }; /***/ }), /* 19 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Scenes.Events - */ - -module.exports = { - - BOOT: __webpack_require__(706), - CREATE: __webpack_require__(707), - DESTROY: __webpack_require__(708), - PAUSE: __webpack_require__(709), - POST_UPDATE: __webpack_require__(710), - PRE_UPDATE: __webpack_require__(711), - READY: __webpack_require__(712), - RENDER: __webpack_require__(713), - RESUME: __webpack_require__(714), - SHUTDOWN: __webpack_require__(715), - SLEEP: __webpack_require__(716), - START: __webpack_require__(717), - TRANSITION_COMPLETE: __webpack_require__(718), - TRANSITION_INIT: __webpack_require__(719), - TRANSITION_OUT: __webpack_require__(720), - TRANSITION_START: __webpack_require__(721), - TRANSITION_WAKE: __webpack_require__(722), - UPDATE: __webpack_require__(723), - WAKE: __webpack_require__(724) - -}; - - -/***/ }), -/* 20 */ /***/ (function(module, exports) { /** @@ -3910,7 +3871,7 @@ module.exports = FILE_CONST; /***/ }), -/* 21 */ +/* 20 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -3920,13 +3881,13 @@ module.exports = FILE_CONST; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var Events = __webpack_require__(82); +var CONST = __webpack_require__(19); +var Events = __webpack_require__(81); var GetFastValue = __webpack_require__(2); -var GetURL = __webpack_require__(134); -var MergeXHRSettings = __webpack_require__(214); -var XHRLoader = __webpack_require__(452); -var XHRSettings = __webpack_require__(135); +var GetURL = __webpack_require__(133); +var MergeXHRSettings = __webpack_require__(211); +var XHRLoader = __webpack_require__(450); +var XHRSettings = __webpack_require__(134); /** * @classdesc @@ -4450,6 +4411,45 @@ File.revokeObjectURL = function (image) module.exports = File; +/***/ }), +/* 21 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Scenes.Events + */ + +module.exports = { + + BOOT: __webpack_require__(705), + CREATE: __webpack_require__(706), + DESTROY: __webpack_require__(707), + PAUSE: __webpack_require__(708), + POST_UPDATE: __webpack_require__(709), + PRE_UPDATE: __webpack_require__(710), + READY: __webpack_require__(711), + RENDER: __webpack_require__(712), + RESUME: __webpack_require__(713), + SHUTDOWN: __webpack_require__(714), + SLEEP: __webpack_require__(715), + START: __webpack_require__(716), + TRANSITION_COMPLETE: __webpack_require__(717), + TRANSITION_INIT: __webpack_require__(718), + TRANSITION_OUT: __webpack_require__(719), + TRANSITION_START: __webpack_require__(720), + TRANSITION_WAKE: __webpack_require__(721), + UPDATE: __webpack_require__(722), + WAKE: __webpack_require__(723) + +}; + + /***/ }), /* 22 */ /***/ (function(module, exports) { @@ -4851,7 +4851,7 @@ module.exports = PropertyValueSet; */ var CONST = __webpack_require__(29); -var Smoothing = __webpack_require__(165); +var Smoothing = __webpack_require__(162); // The pool into which the canvas elements are placed. var pool = []; @@ -5347,7 +5347,7 @@ var CONST = { BlendModes: __webpack_require__(52), - ScaleModes: __webpack_require__(233), + ScaleModes: __webpack_require__(231), /** * AUTO Detect Renderer. @@ -6725,61 +6725,6 @@ module.exports = Shape; /***/ }), /* 32 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Tilemaps.Formats - */ - -module.exports = { - - /** - * CSV Map Type - * - * @name Phaser.Tilemaps.Formats.CSV - * @type {number} - * @since 3.0.0 - */ - CSV: 0, - - /** - * Tiled JSON Map Type - * - * @name Phaser.Tilemaps.Formats.TILED_JSON - * @type {number} - * @since 3.0.0 - */ - TILED_JSON: 1, - - /** - * 2D Array Map Type - * - * @name Phaser.Tilemaps.Formats.ARRAY_2D - * @type {number} - * @since 3.0.0 - */ - ARRAY_2D: 2, - - /** - * Weltmeister (Impact.js) Map Type - * - * @name Phaser.Tilemaps.Formats.WELTMEISTER - * @type {number} - * @since 3.0.0 - */ - WELTMEISTER: 3 - -}; - - -/***/ }), -/* 33 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -6789,10 +6734,10 @@ module.exports = { */ var Class = __webpack_require__(0); -var GetColor = __webpack_require__(163); -var GetColor32 = __webpack_require__(294); -var HSVToRGB = __webpack_require__(164); -var RGBToHSV = __webpack_require__(295); +var GetColor = __webpack_require__(160); +var GetColor32 = __webpack_require__(292); +var HSVToRGB = __webpack_require__(161); +var RGBToHSV = __webpack_require__(293); /** * @namespace Phaser.Display.Color @@ -7641,6 +7586,61 @@ var Color = new Class({ module.exports = Color; +/***/ }), +/* 33 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Tilemaps.Formats + */ + +module.exports = { + + /** + * CSV Map Type + * + * @name Phaser.Tilemaps.Formats.CSV + * @type {number} + * @since 3.0.0 + */ + CSV: 0, + + /** + * Tiled JSON Map Type + * + * @name Phaser.Tilemaps.Formats.TILED_JSON + * @type {number} + * @since 3.0.0 + */ + TILED_JSON: 1, + + /** + * 2D Array Map Type + * + * @name Phaser.Tilemaps.Formats.ARRAY_2D + * @type {number} + * @since 3.0.0 + */ + ARRAY_2D: 2, + + /** + * Weltmeister (Impact.js) Map Type + * + * @name Phaser.Tilemaps.Formats.WELTMEISTER + * @type {number} + * @since 3.0.0 + */ + WELTMEISTER: 3 + +}; + + /***/ }), /* 34 */ /***/ (function(module, exports) { @@ -8151,21 +8151,21 @@ module.exports = Contains; module.exports = { - DESTROY: __webpack_require__(647), - FADE_IN_COMPLETE: __webpack_require__(648), - FADE_IN_START: __webpack_require__(649), - FADE_OUT_COMPLETE: __webpack_require__(650), - FADE_OUT_START: __webpack_require__(651), - FLASH_COMPLETE: __webpack_require__(652), - FLASH_START: __webpack_require__(653), - PAN_COMPLETE: __webpack_require__(654), - PAN_START: __webpack_require__(655), - POST_RENDER: __webpack_require__(656), - PRE_RENDER: __webpack_require__(657), - SHAKE_COMPLETE: __webpack_require__(658), - SHAKE_START: __webpack_require__(659), - ZOOM_COMPLETE: __webpack_require__(660), - ZOOM_START: __webpack_require__(661) + DESTROY: __webpack_require__(646), + FADE_IN_COMPLETE: __webpack_require__(647), + FADE_IN_START: __webpack_require__(648), + FADE_OUT_COMPLETE: __webpack_require__(649), + FADE_OUT_START: __webpack_require__(650), + FLASH_COMPLETE: __webpack_require__(651), + FLASH_START: __webpack_require__(652), + PAN_COMPLETE: __webpack_require__(653), + PAN_START: __webpack_require__(654), + POST_RENDER: __webpack_require__(655), + PRE_RENDER: __webpack_require__(656), + SHAKE_COMPLETE: __webpack_require__(657), + SHAKE_START: __webpack_require__(658), + ZOOM_COMPLETE: __webpack_require__(659), + ZOOM_START: __webpack_require__(660) }; @@ -8347,7 +8347,7 @@ module.exports = CONST; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTileAt = __webpack_require__(138); +var GetTileAt = __webpack_require__(137); var GetTilesWithin = __webpack_require__(24); /** @@ -8792,52 +8792,52 @@ module.exports = DistanceBetween; module.exports = { - BOOT: __webpack_require__(817), - DESTROY: __webpack_require__(818), - DRAG_END: __webpack_require__(819), - DRAG_ENTER: __webpack_require__(820), - DRAG: __webpack_require__(821), - DRAG_LEAVE: __webpack_require__(822), - DRAG_OVER: __webpack_require__(823), - DRAG_START: __webpack_require__(824), - DROP: __webpack_require__(825), - GAME_OUT: __webpack_require__(826), - GAME_OVER: __webpack_require__(827), - GAMEOBJECT_DOWN: __webpack_require__(828), - GAMEOBJECT_DRAG_END: __webpack_require__(829), - GAMEOBJECT_DRAG_ENTER: __webpack_require__(830), - GAMEOBJECT_DRAG: __webpack_require__(831), - GAMEOBJECT_DRAG_LEAVE: __webpack_require__(832), - GAMEOBJECT_DRAG_OVER: __webpack_require__(833), - GAMEOBJECT_DRAG_START: __webpack_require__(834), - GAMEOBJECT_DROP: __webpack_require__(835), - GAMEOBJECT_MOVE: __webpack_require__(836), - GAMEOBJECT_OUT: __webpack_require__(837), - GAMEOBJECT_OVER: __webpack_require__(838), - GAMEOBJECT_POINTER_DOWN: __webpack_require__(839), - GAMEOBJECT_POINTER_MOVE: __webpack_require__(840), - GAMEOBJECT_POINTER_OUT: __webpack_require__(841), - GAMEOBJECT_POINTER_OVER: __webpack_require__(842), - GAMEOBJECT_POINTER_UP: __webpack_require__(843), - GAMEOBJECT_POINTER_WHEEL: __webpack_require__(844), - GAMEOBJECT_UP: __webpack_require__(845), - GAMEOBJECT_WHEEL: __webpack_require__(846), - MANAGER_BOOT: __webpack_require__(847), - MANAGER_PROCESS: __webpack_require__(848), - MANAGER_UPDATE: __webpack_require__(849), - POINTER_DOWN: __webpack_require__(850), - POINTER_DOWN_OUTSIDE: __webpack_require__(851), - POINTER_MOVE: __webpack_require__(852), - POINTER_OUT: __webpack_require__(853), - POINTER_OVER: __webpack_require__(854), - POINTER_UP: __webpack_require__(855), - POINTER_UP_OUTSIDE: __webpack_require__(856), - POINTER_WHEEL: __webpack_require__(857), - POINTERLOCK_CHANGE: __webpack_require__(858), - PRE_UPDATE: __webpack_require__(859), - SHUTDOWN: __webpack_require__(860), - START: __webpack_require__(861), - UPDATE: __webpack_require__(862) + BOOT: __webpack_require__(816), + DESTROY: __webpack_require__(817), + DRAG_END: __webpack_require__(818), + DRAG_ENTER: __webpack_require__(819), + DRAG: __webpack_require__(820), + DRAG_LEAVE: __webpack_require__(821), + DRAG_OVER: __webpack_require__(822), + DRAG_START: __webpack_require__(823), + DROP: __webpack_require__(824), + GAME_OUT: __webpack_require__(825), + GAME_OVER: __webpack_require__(826), + GAMEOBJECT_DOWN: __webpack_require__(827), + GAMEOBJECT_DRAG_END: __webpack_require__(828), + GAMEOBJECT_DRAG_ENTER: __webpack_require__(829), + GAMEOBJECT_DRAG: __webpack_require__(830), + GAMEOBJECT_DRAG_LEAVE: __webpack_require__(831), + GAMEOBJECT_DRAG_OVER: __webpack_require__(832), + GAMEOBJECT_DRAG_START: __webpack_require__(833), + GAMEOBJECT_DROP: __webpack_require__(834), + GAMEOBJECT_MOVE: __webpack_require__(835), + GAMEOBJECT_OUT: __webpack_require__(836), + GAMEOBJECT_OVER: __webpack_require__(837), + GAMEOBJECT_POINTER_DOWN: __webpack_require__(838), + GAMEOBJECT_POINTER_MOVE: __webpack_require__(839), + GAMEOBJECT_POINTER_OUT: __webpack_require__(840), + GAMEOBJECT_POINTER_OVER: __webpack_require__(841), + GAMEOBJECT_POINTER_UP: __webpack_require__(842), + GAMEOBJECT_POINTER_WHEEL: __webpack_require__(843), + GAMEOBJECT_UP: __webpack_require__(844), + GAMEOBJECT_WHEEL: __webpack_require__(845), + MANAGER_BOOT: __webpack_require__(846), + MANAGER_PROCESS: __webpack_require__(847), + MANAGER_UPDATE: __webpack_require__(848), + POINTER_DOWN: __webpack_require__(849), + POINTER_DOWN_OUTSIDE: __webpack_require__(850), + POINTER_MOVE: __webpack_require__(851), + POINTER_OUT: __webpack_require__(852), + POINTER_OVER: __webpack_require__(853), + POINTER_UP: __webpack_require__(854), + POINTER_UP_OUTSIDE: __webpack_require__(855), + POINTER_WHEEL: __webpack_require__(856), + POINTERLOCK_CHANGE: __webpack_require__(857), + PRE_UPDATE: __webpack_require__(858), + SHUTDOWN: __webpack_require__(859), + START: __webpack_require__(860), + UPDATE: __webpack_require__(861) }; @@ -8894,10 +8894,10 @@ module.exports = Contains; */ var Class = __webpack_require__(0); -var GetPoint = __webpack_require__(274); -var GetPoints = __webpack_require__(151); +var GetPoint = __webpack_require__(272); +var GetPoints = __webpack_require__(148); var GEOM_CONST = __webpack_require__(46); -var Random = __webpack_require__(152); +var Random = __webpack_require__(149); var Vector2 = __webpack_require__(3); /** @@ -9296,29 +9296,29 @@ module.exports = Wrap; module.exports = { - COMPLETE: __webpack_require__(885), - DECODED: __webpack_require__(886), - DECODED_ALL: __webpack_require__(887), - DESTROY: __webpack_require__(888), - DETUNE: __webpack_require__(889), - GLOBAL_DETUNE: __webpack_require__(890), - GLOBAL_MUTE: __webpack_require__(891), - GLOBAL_RATE: __webpack_require__(892), - GLOBAL_VOLUME: __webpack_require__(893), - LOOP: __webpack_require__(894), - LOOPED: __webpack_require__(895), - MUTE: __webpack_require__(896), - PAUSE_ALL: __webpack_require__(897), - PAUSE: __webpack_require__(898), - PLAY: __webpack_require__(899), - RATE: __webpack_require__(900), - RESUME_ALL: __webpack_require__(901), - RESUME: __webpack_require__(902), - SEEK: __webpack_require__(903), - STOP_ALL: __webpack_require__(904), - STOP: __webpack_require__(905), - UNLOCKED: __webpack_require__(906), - VOLUME: __webpack_require__(907) + COMPLETE: __webpack_require__(884), + DECODED: __webpack_require__(885), + DECODED_ALL: __webpack_require__(886), + DESTROY: __webpack_require__(887), + DETUNE: __webpack_require__(888), + GLOBAL_DETUNE: __webpack_require__(889), + GLOBAL_MUTE: __webpack_require__(890), + GLOBAL_RATE: __webpack_require__(891), + GLOBAL_VOLUME: __webpack_require__(892), + LOOP: __webpack_require__(893), + LOOPED: __webpack_require__(894), + MUTE: __webpack_require__(895), + PAUSE_ALL: __webpack_require__(896), + PAUSE: __webpack_require__(897), + PLAY: __webpack_require__(898), + RATE: __webpack_require__(899), + RESUME_ALL: __webpack_require__(900), + RESUME: __webpack_require__(901), + SEEK: __webpack_require__(902), + STOP_ALL: __webpack_require__(903), + STOP: __webpack_require__(904), + UNLOCKED: __webpack_require__(905), + VOLUME: __webpack_require__(906) }; @@ -9334,8 +9334,8 @@ module.exports = { */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); @@ -9790,122 +9790,6 @@ module.exports = MultiFile; /***/ }), /* 62 */, /* 63 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from world X coordinates (pixels) to tile X coordinates (tile units), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.WorldToTileX - * @private - * @since 3.0.0 - * - * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. - * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} The X location in tile units. - */ -var WorldToTileX = function (worldX, snapToFloor, camera, layer) -{ - - var orientation = layer.orientation; - if (snapToFloor === undefined) { snapToFloor = true; } - - var tileWidth = layer.baseTileWidth; - var tilemapLayer = layer.tilemapLayer; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's horizontal scroll - worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); - - tileWidth *= tilemapLayer.scaleX; - } - - if (orientation === "orthogonal") { - return snapToFloor - ? Math.floor(worldX / tileWidth) - : worldX / tileWidth; - } else if (orientation === "isometric") { - console.warn('With isometric map types you have to use the WorldToTileXY function.'); - return null - } - -}; - -module.exports = WorldToTileX; - - -/***/ }), -/* 64 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from world Y coordinates (pixels) to tile Y coordinates (tile units), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.WorldToTileY - * @private - * @since 3.0.0 - * - * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. - * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} The Y location in tile units. - */ -var WorldToTileY = function (worldY, snapToFloor, camera, layer) -{ - var orientation = layer.orientation; - if (snapToFloor === undefined) { snapToFloor = true; } - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's vertical scroll - worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - - tileHeight *= tilemapLayer.scaleY; - - } - - if (orientation === "orthogonal") { - return snapToFloor - ? Math.floor(worldY / tileHeight) - : worldY / tileHeight; - } else if (orientation === "isometric") { - console.warn('With isometric map types you have to use the WorldToTileXY function.'); - return null - - } -}; - -module.exports = WorldToTileY; - - -/***/ }), -/* 65 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -9916,10 +9800,10 @@ module.exports = WorldToTileY; var Class = __webpack_require__(0); var Contains = __webpack_require__(55); -var GetPoint = __webpack_require__(265); -var GetPoints = __webpack_require__(266); +var GetPoint = __webpack_require__(263); +var GetPoints = __webpack_require__(264); var GEOM_CONST = __webpack_require__(46); -var Random = __webpack_require__(148); +var Random = __webpack_require__(145); /** * @classdesc @@ -10280,7 +10164,7 @@ module.exports = Circle; /***/ }), -/* 66 */ +/* 64 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10962,7 +10846,7 @@ earcut.flatten = function (data) { /***/ }), -/* 67 */ +/* 65 */ /***/ (function(module, exports) { /** @@ -11004,7 +10888,7 @@ module.exports = Clone; /***/ }), -/* 68 */ +/* 66 */ /***/ (function(module, exports) { /** @@ -11053,7 +10937,7 @@ module.exports = SafeRange; /***/ }), -/* 69 */ +/* 67 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -11062,186 +10946,8 @@ module.exports = SafeRange; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var SpriteRender = __webpack_require__(963); - -/** - * @classdesc - * A Sprite Game Object. - * - * A Sprite Game Object is used for the display of both static and animated images in your game. - * Sprites can have input events and physics bodies. They can also be tweened, tinted, scrolled - * and animated. - * - * The main difference between a Sprite and an Image Game Object is that you cannot animate Images. - * As such, Sprites take a fraction longer to process and have a larger API footprint due to the Animation - * Component. If you do not require animation then you can safely use Images to replace Sprites in all cases. - * - * @class Sprite - * @extends Phaser.GameObjects.GameObject - * @memberof Phaser.GameObjects - * @constructor - * @since 3.0.0 - * - * @extends Phaser.GameObjects.Components.Alpha - * @extends Phaser.GameObjects.Components.BlendMode - * @extends Phaser.GameObjects.Components.Depth - * @extends Phaser.GameObjects.Components.Flip - * @extends Phaser.GameObjects.Components.GetBounds - * @extends Phaser.GameObjects.Components.Mask - * @extends Phaser.GameObjects.Components.Origin - * @extends Phaser.GameObjects.Components.Pipeline - * @extends Phaser.GameObjects.Components.ScrollFactor - * @extends Phaser.GameObjects.Components.Size - * @extends Phaser.GameObjects.Components.TextureCrop - * @extends Phaser.GameObjects.Components.Tint - * @extends Phaser.GameObjects.Components.Transform - * @extends Phaser.GameObjects.Components.Visible - * - * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time. - * @param {number} x - The horizontal position of this Game Object in the world. - * @param {number} y - The vertical position of this Game Object in the world. - * @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. - * @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with. - */ -var Sprite = new Class({ - - Extends: GameObject, - - Mixins: [ - Components.Alpha, - Components.BlendMode, - Components.Depth, - Components.Flip, - Components.GetBounds, - Components.Mask, - Components.Origin, - Components.Pipeline, - Components.ScrollFactor, - Components.Size, - Components.TextureCrop, - Components.Tint, - Components.Transform, - Components.Visible, - SpriteRender - ], - - initialize: - - function Sprite (scene, x, y, texture, frame) - { - GameObject.call(this, scene, 'Sprite'); - - /** - * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method. - * - * @name Phaser.GameObjects.Sprite#_crop - * @type {object} - * @private - * @since 3.11.0 - */ - this._crop = this.resetCropObject(); - - /** - * The Animation Controller of this Sprite. - * - * @name Phaser.GameObjects.Sprite#anims - * @type {Phaser.GameObjects.Components.Animation} - * @since 3.0.0 - */ - this.anims = new Components.Animation(this); - - this.setTexture(texture, frame); - this.setPosition(x, y); - this.setSizeToFrame(); - this.setOriginFromFrame(); - this.initPipeline(); - }, - - /** - * Update this Sprite's animations. - * - * @method Phaser.GameObjects.Sprite#preUpdate - * @protected - * @since 3.0.0 - * - * @param {number} time - The current timestamp. - * @param {number} delta - The delta time, in ms, elapsed since the last frame. - */ - preUpdate: function (time, delta) - { - this.anims.update(time, delta); - }, - - /** - * Start playing the given animation. - * - * @method Phaser.GameObjects.Sprite#play - * @since 3.0.0 - * - * @param {string} key - The string-based key of the animation to play. - * @param {boolean} [ignoreIfPlaying=false] - If an animation is already playing then ignore this call. - * @param {integer} [startFrame=0] - Optionally start the animation playing from this frame index. - * - * @return {this} This Game Object. - */ - play: function (key, ignoreIfPlaying, startFrame) - { - this.anims.play(key, ignoreIfPlaying, startFrame); - - return this; - }, - - /** - * Build a JSON representation of this Sprite. - * - * @method Phaser.GameObjects.Sprite#toJSON - * @since 3.0.0 - * - * @return {Phaser.Types.GameObjects.JSONGameObject} A JSON representation of the Game Object. - */ - toJSON: function () - { - var data = Components.ToJSON(this); - - // Extra Sprite data is added here - - return data; - }, - - /** - * Handles the pre-destroy step for the Sprite, which removes the Animation component. - * - * @method Phaser.GameObjects.Sprite#preDestroy - * @private - * @since 3.14.0 - */ - preDestroy: function () - { - this.anims.destroy(); - - this.anims = undefined; - } - -}); - -module.exports = Sprite; - - -/***/ }), -/* 70 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var EaseMap = __webpack_require__(167); -var UppercaseFirst = __webpack_require__(180); +var EaseMap = __webpack_require__(164); +var UppercaseFirst = __webpack_require__(177); /** * This internal function is used to return the correct ease function for a Tween. @@ -11340,7 +11046,7 @@ module.exports = GetEaseFunction; /***/ }), -/* 71 */ +/* 68 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -11349,7 +11055,7 @@ module.exports = GetEaseFunction; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders a stroke outline around the given Shape. @@ -11415,7 +11121,7 @@ module.exports = StrokePathWebGL; /***/ }), -/* 72 */ +/* 69 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -11425,12 +11131,12 @@ module.exports = StrokePathWebGL; */ var Class = __webpack_require__(0); -var Contains = __webpack_require__(83); -var GetPoint = __webpack_require__(422); -var GetPoints = __webpack_require__(423); +var Contains = __webpack_require__(82); +var GetPoint = __webpack_require__(420); +var GetPoints = __webpack_require__(421); var GEOM_CONST = __webpack_require__(46); var Line = __webpack_require__(56); -var Random = __webpack_require__(156); +var Random = __webpack_require__(153); /** * @classdesc @@ -11862,7 +11568,7 @@ module.exports = Triangle; /***/ }), -/* 73 */ +/* 70 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -11872,8 +11578,8 @@ module.exports = Triangle; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -12136,7 +11842,7 @@ module.exports = ImageFile; /***/ }), -/* 74 */ +/* 71 */ /***/ (function(module, exports) { /** @@ -12172,7 +11878,92 @@ module.exports = SetTileCollision; /***/ }), -/* 75 */ +/* 72 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var WorldToTileX = __webpack_require__(473); +var WorldToTileY = __webpack_require__(474); +var Vector2 = __webpack_require__(3); + +/** + * Converts from world XY coordinates (pixels) to tile XY coordinates (tile units), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.WorldToTileXY + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in tile units. + */ +var WorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) +{ + var orientation = layer.orientation; + if (point === undefined) { point = new Vector2(0, 0); } + + if (orientation === 'orthogonal') + { + point.x = WorldToTileX(worldX, snapToFloor, camera, layer, orientation); + point.y = WorldToTileY(worldY, snapToFloor, camera, layer, orientation); + } + else if (orientation === 'isometric') + { + + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + // console.log(1,worldY) + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + // console.log(worldY) + tileHeight *= tilemapLayer.scaleY; + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's horizontal scroll + worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); + + tileWidth *= tilemapLayer.scaleX; + } + + point.x = snapToFloor + ? Math.floor((worldX / (tileWidth / 2) + worldY / (tileHeight / 2)) / 2) + : ((worldX / (tileWidth / 2) + worldY / (tileHeight / 2)) / 2); + + point.y = snapToFloor + ? Math.floor((worldY / (tileHeight / 2) - worldX / (tileWidth / 2)) / 2) + : ((worldY / (tileHeight / 2) - worldX / (tileWidth / 2)) / 2); + } + + + + return point; +}; + +module.exports = WorldToTileXY; + + +/***/ }), +/* 73 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -12183,7 +11974,7 @@ module.exports = SetTileCollision; var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var Rectangle = __webpack_require__(441); +var Rectangle = __webpack_require__(439); /** * @classdesc @@ -12224,7 +12015,7 @@ var Tile = new Class({ initialize: - function Tile (layer, index, x, y, width, height, baseWidth, baseHeight ) + function Tile (layer, index, x, y, width, height, baseWidth, baseHeight) { /** * The LayerData in the Tilemap data that this tile belongs to. @@ -12885,22 +12676,28 @@ var Tile = new Class({ */ updatePixelXY: function () { - if (this.layer.orientation === "orthogonal") { + if (this.layer.orientation === 'orthogonal') + { // In orthogonal mode, Tiled places tiles on a grid of baseWidth x baseHeight. The origin for a tile is the // bottom left, while the Phaser renderer assumes the origin is the top left. The y // coordinate needs to be adjusted by the difference. this.pixelX = this.x * this.baseWidth; this.pixelY = this.y * this.baseHeight; + // console.log("orthopix "+this.pixelX+","+this.pixelY) - } else if (this.layer.orientation === "isometric" ) { + } + else if (this.layer.orientation === 'isometric') + { // reminder : for the tilemap to be centered we have to move the image to the right with the camera ! // this is crucial for wordtotile, tiletoworld to work. - this.pixelX = (this.x - this.y) * this.baseWidth *0.5; - this.pixelY = (this.x + this.y) * this.baseHeight *0.5; + this.pixelX = (this.x - this.y) * this.baseWidth * 0.5; + this.pixelY = (this.x + this.y) * this.baseHeight * 0.5; + // console.log("isopix from",this.x, this.y,"to", this.pixelX+","+this.pixelY) - } else { - // console.warn("this map orientation is not supported in this version of phaser") - // console.log("tile orientation 3: "+this.layer.orientation) + } + else + { + // console.warn("this map orientation is is.layer.orientation) } // this.pixelY = this.y * this.baseHeight - (this.height - this.baseHeight); @@ -13024,7 +12821,185 @@ module.exports = Tile; /***/ }), -/* 76 */ +/* 74 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var Class = __webpack_require__(0); +var Components = __webpack_require__(11); +var GameObject = __webpack_require__(13); +var SpriteRender = __webpack_require__(962); + +/** + * @classdesc + * A Sprite Game Object. + * + * A Sprite Game Object is used for the display of both static and animated images in your game. + * Sprites can have input events and physics bodies. They can also be tweened, tinted, scrolled + * and animated. + * + * The main difference between a Sprite and an Image Game Object is that you cannot animate Images. + * As such, Sprites take a fraction longer to process and have a larger API footprint due to the Animation + * Component. If you do not require animation then you can safely use Images to replace Sprites in all cases. + * + * @class Sprite + * @extends Phaser.GameObjects.GameObject + * @memberof Phaser.GameObjects + * @constructor + * @since 3.0.0 + * + * @extends Phaser.GameObjects.Components.Alpha + * @extends Phaser.GameObjects.Components.BlendMode + * @extends Phaser.GameObjects.Components.Depth + * @extends Phaser.GameObjects.Components.Flip + * @extends Phaser.GameObjects.Components.GetBounds + * @extends Phaser.GameObjects.Components.Mask + * @extends Phaser.GameObjects.Components.Origin + * @extends Phaser.GameObjects.Components.Pipeline + * @extends Phaser.GameObjects.Components.ScrollFactor + * @extends Phaser.GameObjects.Components.Size + * @extends Phaser.GameObjects.Components.TextureCrop + * @extends Phaser.GameObjects.Components.Tint + * @extends Phaser.GameObjects.Components.Transform + * @extends Phaser.GameObjects.Components.Visible + * + * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time. + * @param {number} x - The horizontal position of this Game Object in the world. + * @param {number} y - The vertical position of this Game Object in the world. + * @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. + * @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with. + */ +var Sprite = new Class({ + + Extends: GameObject, + + Mixins: [ + Components.Alpha, + Components.BlendMode, + Components.Depth, + Components.Flip, + Components.GetBounds, + Components.Mask, + Components.Origin, + Components.Pipeline, + Components.ScrollFactor, + Components.Size, + Components.TextureCrop, + Components.Tint, + Components.Transform, + Components.Visible, + SpriteRender + ], + + initialize: + + function Sprite (scene, x, y, texture, frame) + { + GameObject.call(this, scene, 'Sprite'); + + /** + * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method. + * + * @name Phaser.GameObjects.Sprite#_crop + * @type {object} + * @private + * @since 3.11.0 + */ + this._crop = this.resetCropObject(); + + /** + * The Animation Controller of this Sprite. + * + * @name Phaser.GameObjects.Sprite#anims + * @type {Phaser.GameObjects.Components.Animation} + * @since 3.0.0 + */ + this.anims = new Components.Animation(this); + + this.setTexture(texture, frame); + this.setPosition(x, y); + this.setSizeToFrame(); + this.setOriginFromFrame(); + this.initPipeline(); + }, + + /** + * Update this Sprite's animations. + * + * @method Phaser.GameObjects.Sprite#preUpdate + * @protected + * @since 3.0.0 + * + * @param {number} time - The current timestamp. + * @param {number} delta - The delta time, in ms, elapsed since the last frame. + */ + preUpdate: function (time, delta) + { + this.anims.update(time, delta); + }, + + /** + * Start playing the given animation. + * + * @method Phaser.GameObjects.Sprite#play + * @since 3.0.0 + * + * @param {string} key - The string-based key of the animation to play. + * @param {boolean} [ignoreIfPlaying=false] - If an animation is already playing then ignore this call. + * @param {integer} [startFrame=0] - Optionally start the animation playing from this frame index. + * + * @return {this} This Game Object. + */ + play: function (key, ignoreIfPlaying, startFrame) + { + this.anims.play(key, ignoreIfPlaying, startFrame); + + return this; + }, + + /** + * Build a JSON representation of this Sprite. + * + * @method Phaser.GameObjects.Sprite#toJSON + * @since 3.0.0 + * + * @return {Phaser.Types.GameObjects.JSONGameObject} A JSON representation of the Game Object. + */ + toJSON: function () + { + var data = Components.ToJSON(this); + + // Extra Sprite data is added here + + return data; + }, + + /** + * Handles the pre-destroy step for the Sprite, which removes the Animation component. + * + * @method Phaser.GameObjects.Sprite#preDestroy + * @private + * @since 3.14.0 + */ + preDestroy: function () + { + this.anims.destroy(); + + this.anims = undefined; + } + +}); + +module.exports = Sprite; + + +/***/ }), +/* 75 */ /***/ (function(module, exports) { /** @@ -13052,7 +13027,7 @@ module.exports = GetCenterX; /***/ }), -/* 77 */ +/* 76 */ /***/ (function(module, exports) { /** @@ -13087,7 +13062,7 @@ module.exports = SetCenterX; /***/ }), -/* 78 */ +/* 77 */ /***/ (function(module, exports) { /** @@ -13115,7 +13090,7 @@ module.exports = GetCenterY; /***/ }), -/* 79 */ +/* 78 */ /***/ (function(module, exports) { /** @@ -13150,7 +13125,7 @@ module.exports = SetCenterY; /***/ }), -/* 80 */ +/* 79 */ /***/ (function(module, exports) { /** @@ -13196,7 +13171,7 @@ module.exports = SpliceOne; /***/ }), -/* 81 */ +/* 80 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -13206,7 +13181,7 @@ module.exports = SpliceOne; */ var Class = __webpack_require__(0); -var FromPoints = __webpack_require__(175); +var FromPoints = __webpack_require__(172); var Rectangle = __webpack_require__(12); var Vector2 = __webpack_require__(3); @@ -13816,7 +13791,7 @@ module.exports = Curve; /***/ }), -/* 82 */ +/* 81 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -13831,22 +13806,22 @@ module.exports = Curve; module.exports = { - ADD: __webpack_require__(864), - COMPLETE: __webpack_require__(865), - FILE_COMPLETE: __webpack_require__(866), - FILE_KEY_COMPLETE: __webpack_require__(867), - FILE_LOAD_ERROR: __webpack_require__(868), - FILE_LOAD: __webpack_require__(869), - FILE_PROGRESS: __webpack_require__(870), - POST_PROCESS: __webpack_require__(871), - PROGRESS: __webpack_require__(872), - START: __webpack_require__(873) + ADD: __webpack_require__(863), + COMPLETE: __webpack_require__(864), + FILE_COMPLETE: __webpack_require__(865), + FILE_KEY_COMPLETE: __webpack_require__(866), + FILE_LOAD_ERROR: __webpack_require__(867), + FILE_LOAD: __webpack_require__(868), + FILE_PROGRESS: __webpack_require__(869), + POST_PROCESS: __webpack_require__(870), + PROGRESS: __webpack_require__(871), + START: __webpack_require__(872) }; /***/ }), -/* 83 */ +/* 82 */ /***/ (function(module, exports) { /** @@ -13899,7 +13874,7 @@ module.exports = Contains; /***/ }), -/* 84 */ +/* 83 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -13975,7 +13950,7 @@ module.exports = LineToLine; /***/ }), -/* 85 */ +/* 84 */ /***/ (function(module, exports) { /** @@ -14003,8 +13978,8 @@ module.exports = Angle; /***/ }), -/* 86 */, -/* 87 */ +/* 85 */, +/* 86 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -14038,7 +14013,7 @@ module.exports = FromPercent; /***/ }), -/* 88 */ +/* 87 */ /***/ (function(module, exports) { /** @@ -14079,7 +14054,7 @@ module.exports = GetBoolean; /***/ }), -/* 89 */ +/* 88 */ /***/ (function(module, exports) { /** @@ -14251,7 +14226,7 @@ module.exports = TWEEN_CONST; /***/ }), -/* 90 */ +/* 89 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -14266,23 +14241,23 @@ module.exports = TWEEN_CONST; module.exports = { - DESTROY: __webpack_require__(582), - VIDEO_COMPLETE: __webpack_require__(583), - VIDEO_CREATED: __webpack_require__(584), - VIDEO_ERROR: __webpack_require__(585), - VIDEO_LOOP: __webpack_require__(586), - VIDEO_PLAY: __webpack_require__(587), - VIDEO_SEEKED: __webpack_require__(588), - VIDEO_SEEKING: __webpack_require__(589), - VIDEO_STOP: __webpack_require__(590), - VIDEO_TIMEOUT: __webpack_require__(591), - VIDEO_UNLOCKED: __webpack_require__(592) + DESTROY: __webpack_require__(581), + VIDEO_COMPLETE: __webpack_require__(582), + VIDEO_CREATED: __webpack_require__(583), + VIDEO_ERROR: __webpack_require__(584), + VIDEO_LOOP: __webpack_require__(585), + VIDEO_PLAY: __webpack_require__(586), + VIDEO_SEEKED: __webpack_require__(587), + VIDEO_SEEKING: __webpack_require__(588), + VIDEO_STOP: __webpack_require__(589), + VIDEO_TIMEOUT: __webpack_require__(590), + VIDEO_UNLOCKED: __webpack_require__(591) }; /***/ }), -/* 91 */ +/* 90 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -14294,11 +14269,11 @@ module.exports = { var Class = __webpack_require__(0); var Components = __webpack_require__(11); var DegToRad = __webpack_require__(35); -var EventEmitter = __webpack_require__(9); +var EventEmitter = __webpack_require__(10); var Events = __webpack_require__(48); var Rectangle = __webpack_require__(12); var TransformMatrix = __webpack_require__(30); -var ValueToColor = __webpack_require__(162); +var ValueToColor = __webpack_require__(159); var Vector2 = __webpack_require__(3); /** @@ -16203,7 +16178,7 @@ module.exports = BaseCamera; /***/ }), -/* 92 */ +/* 91 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -16218,18 +16193,18 @@ module.exports = BaseCamera; module.exports = { - ENTER_FULLSCREEN: __webpack_require__(700), - FULLSCREEN_FAILED: __webpack_require__(701), - FULLSCREEN_UNSUPPORTED: __webpack_require__(702), - LEAVE_FULLSCREEN: __webpack_require__(703), - ORIENTATION_CHANGE: __webpack_require__(704), - RESIZE: __webpack_require__(705) + ENTER_FULLSCREEN: __webpack_require__(699), + FULLSCREEN_FAILED: __webpack_require__(700), + FULLSCREEN_UNSUPPORTED: __webpack_require__(701), + LEAVE_FULLSCREEN: __webpack_require__(702), + ORIENTATION_CHANGE: __webpack_require__(703), + RESIZE: __webpack_require__(704) }; /***/ }), -/* 93 */ +/* 92 */ /***/ (function(module, exports) { /** @@ -16273,7 +16248,7 @@ module.exports = SnapFloor; /***/ }), -/* 94 */ +/* 93 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -17092,7 +17067,7 @@ module.exports = Frame; /***/ }), -/* 95 */ +/* 94 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -17102,11 +17077,11 @@ module.exports = Frame; */ var Class = __webpack_require__(0); -var Contains = __webpack_require__(96); -var GetPoint = __webpack_require__(395); -var GetPoints = __webpack_require__(396); +var Contains = __webpack_require__(95); +var GetPoint = __webpack_require__(393); +var GetPoints = __webpack_require__(394); var GEOM_CONST = __webpack_require__(46); -var Random = __webpack_require__(155); +var Random = __webpack_require__(152); /** * @classdesc @@ -17474,7 +17449,7 @@ module.exports = Ellipse; /***/ }), -/* 96 */ +/* 95 */ /***/ (function(module, exports) { /** @@ -17516,7 +17491,7 @@ module.exports = Contains; /***/ }), -/* 97 */ +/* 96 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -17525,15 +17500,15 @@ module.exports = Contains; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Actions = __webpack_require__(240); +var Actions = __webpack_require__(238); var Class = __webpack_require__(0); -var Events = __webpack_require__(90); +var Events = __webpack_require__(89); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); var IsPlainObject = __webpack_require__(7); -var Range = __webpack_require__(389); -var Set = __webpack_require__(108); -var Sprite = __webpack_require__(69); +var Range = __webpack_require__(387); +var Set = __webpack_require__(128); +var Sprite = __webpack_require__(74); /** * @classdesc @@ -19154,7 +19129,7 @@ module.exports = Group; /***/ }), -/* 98 */ +/* 97 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -19163,137 +19138,7 @@ module.exports = Group; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var ImageRender = __webpack_require__(966); - -/** - * @classdesc - * An Image Game Object. - * - * An Image is a light-weight Game Object useful for the display of static images in your game, - * such as logos, backgrounds, scenery or other non-animated elements. Images can have input - * events and physics bodies, or be tweened, tinted or scrolled. The main difference between an - * Image and a Sprite is that you cannot animate an Image as they do not have the Animation component. - * - * @class Image - * @extends Phaser.GameObjects.GameObject - * @memberof Phaser.GameObjects - * @constructor - * @since 3.0.0 - * - * @extends Phaser.GameObjects.Components.Alpha - * @extends Phaser.GameObjects.Components.BlendMode - * @extends Phaser.GameObjects.Components.Depth - * @extends Phaser.GameObjects.Components.Flip - * @extends Phaser.GameObjects.Components.GetBounds - * @extends Phaser.GameObjects.Components.Mask - * @extends Phaser.GameObjects.Components.Origin - * @extends Phaser.GameObjects.Components.Pipeline - * @extends Phaser.GameObjects.Components.ScrollFactor - * @extends Phaser.GameObjects.Components.Size - * @extends Phaser.GameObjects.Components.TextureCrop - * @extends Phaser.GameObjects.Components.Tint - * @extends Phaser.GameObjects.Components.Transform - * @extends Phaser.GameObjects.Components.Visible - * - * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time. - * @param {number} x - The horizontal position of this Game Object in the world. - * @param {number} y - The vertical position of this Game Object in the world. - * @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. - * @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with. - */ -var Image = new Class({ - - Extends: GameObject, - - Mixins: [ - Components.Alpha, - Components.BlendMode, - Components.Depth, - Components.Flip, - Components.GetBounds, - Components.Mask, - Components.Origin, - Components.Pipeline, - Components.ScrollFactor, - Components.Size, - Components.TextureCrop, - Components.Tint, - Components.Transform, - Components.Visible, - ImageRender - ], - - initialize: - - function Image (scene, x, y, texture, frame) - { - GameObject.call(this, scene, 'Image'); - - /** - * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method. - * - * @name Phaser.GameObjects.Image#_crop - * @type {object} - * @private - * @since 3.11.0 - */ - this._crop = this.resetCropObject(); - - this.setTexture(texture, frame); - this.setPosition(x, y); - this.setSizeToFrame(); - this.setOriginFromFrame(); - this.initPipeline(); - } - -}); - -module.exports = Image; - - -/***/ }), -/* 99 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Determine whether the source object has a property with the specified key. - * - * @function Phaser.Utils.Objects.HasValue - * @since 3.0.0 - * - * @param {object} source - The source object to be checked. - * @param {string} key - The property to check for within the object - * - * @return {boolean} `true` if the provided `key` exists on the `source` object, otherwise `false`. - */ -var HasValue = function (source, key) -{ - return (source.hasOwnProperty(key)); -}; - -module.exports = HasValue; - - -/***/ }), -/* 100 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders a filled path for the given Shape. @@ -19348,9 +19193,9 @@ module.exports = FillPathWebGL; /***/ }), -/* 101 */, -/* 102 */, -/* 103 */ +/* 98 */, +/* 99 */, +/* 100 */ /***/ (function(module, exports) { /** @@ -19381,7 +19226,7 @@ module.exports = IsInLayerBounds; /***/ }), -/* 104 */ +/* 101 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -19496,13 +19341,13 @@ var LayerData = new Class({ this.baseTileHeight = GetFastValue(config, 'baseTileHeight', this.tileHeight); /** - * The layer's orientation, necessary to be able to determine q tile's pixelX and pixelY as well as the layer's width and height. + * The layer's orientation, necessary to be able to determine a tile's pixelX and pixelY as well as the layer's width and height. * * @name Phaser.Tilemaps.LayerData#orientation * @type {string} - * @since 3.22.PR_svipal + * @since 3.23beta.PR_svipal */ - this.orientation = GetFastValue(config, 'orientation', "orthogonal"); + this.orientation = GetFastValue(config, 'orientation', 'orthogonal'); /** @@ -19613,7 +19458,7 @@ module.exports = LayerData; /***/ }), -/* 105 */ +/* 102 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -19735,7 +19580,7 @@ var MapData = new Class({ * @since 3.0.0 */ this.orientation = GetFastValue(config, 'orientation', 'orthogonal'); - console.log("map data orientation : " + this.orientation) + /** * Determines the draw order of tilemap. Default is right-down * @@ -19838,7 +19683,7 @@ module.exports = MapData; /***/ }), -/* 106 */ +/* 103 */ /***/ (function(module, exports) { /** @@ -19972,52 +19817,7 @@ module.exports = ALIGN_CONST; /***/ }), -/* 107 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Clone = __webpack_require__(67); - -/** - * Creates a new Object using all values from obj1 and obj2. - * If a value exists in both obj1 and obj2, the value in obj1 is used. - * - * This is only a shallow copy. Deeply nested objects are not cloned, so be sure to only use this - * function on shallow objects. - * - * @function Phaser.Utils.Objects.Merge - * @since 3.0.0 - * - * @param {object} obj1 - The first object. - * @param {object} obj2 - The second object. - * - * @return {object} A new object containing the union of obj1's and obj2's properties. - */ -var Merge = function (obj1, obj2) -{ - var clone = Clone(obj1); - - for (var key in obj2) - { - if (!clone.hasOwnProperty(key)) - { - clone[key] = obj2[key]; - } - } - - return clone; -}; - -module.exports = Merge; - - -/***/ }), -/* 108 */ +/* 104 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -20027,447 +19827,128 @@ module.exports = Merge; */ var Class = __webpack_require__(0); - -/** - * @callback EachSetCallback - * - * @param {E} entry - The Set entry. - * @param {number} index - The index of the entry within the Set. - * - * @return {?boolean} The callback result. - */ +var Components = __webpack_require__(11); +var GameObject = __webpack_require__(13); +var ImageRender = __webpack_require__(965); /** * @classdesc - * A Set is a collection of unique elements. + * An Image Game Object. * - * @class Set - * @memberof Phaser.Structs + * An Image is a light-weight Game Object useful for the display of static images in your game, + * such as logos, backgrounds, scenery or other non-animated elements. Images can have input + * events and physics bodies, or be tweened, tinted or scrolled. The main difference between an + * Image and a Sprite is that you cannot animate an Image as they do not have the Animation component. + * + * @class Image + * @extends Phaser.GameObjects.GameObject + * @memberof Phaser.GameObjects * @constructor * @since 3.0.0 * - * @generic T - * @genericUse {T[]} - [elements] + * @extends Phaser.GameObjects.Components.Alpha + * @extends Phaser.GameObjects.Components.BlendMode + * @extends Phaser.GameObjects.Components.Depth + * @extends Phaser.GameObjects.Components.Flip + * @extends Phaser.GameObjects.Components.GetBounds + * @extends Phaser.GameObjects.Components.Mask + * @extends Phaser.GameObjects.Components.Origin + * @extends Phaser.GameObjects.Components.Pipeline + * @extends Phaser.GameObjects.Components.ScrollFactor + * @extends Phaser.GameObjects.Components.Size + * @extends Phaser.GameObjects.Components.TextureCrop + * @extends Phaser.GameObjects.Components.Tint + * @extends Phaser.GameObjects.Components.Transform + * @extends Phaser.GameObjects.Components.Visible * - * @param {Array.<*>} [elements] - An optional array of elements to insert into this Set. + * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time. + * @param {number} x - The horizontal position of this Game Object in the world. + * @param {number} y - The vertical position of this Game Object in the world. + * @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. + * @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with. */ -var Set = new Class({ +var Image = new Class({ + + Extends: GameObject, + + Mixins: [ + Components.Alpha, + Components.BlendMode, + Components.Depth, + Components.Flip, + Components.GetBounds, + Components.Mask, + Components.Origin, + Components.Pipeline, + Components.ScrollFactor, + Components.Size, + Components.TextureCrop, + Components.Tint, + Components.Transform, + Components.Visible, + ImageRender + ], initialize: - function Set (elements) + function Image (scene, x, y, texture, frame) { + GameObject.call(this, scene, 'Image'); + /** - * The entries of this Set. Stored internally as an array. + * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method. * - * @genericUse {T[]} - [$type] - * - * @name Phaser.Structs.Set#entries - * @type {Array.<*>} - * @default [] - * @since 3.0.0 + * @name Phaser.GameObjects.Image#_crop + * @type {object} + * @private + * @since 3.11.0 */ - this.entries = []; - - if (Array.isArray(elements)) - { - for (var i = 0; i < elements.length; i++) - { - this.set(elements[i]); - } - } - }, - - /** - * Inserts the provided value into this Set. If the value is already contained in this Set this method will have no effect. - * - * @method Phaser.Structs.Set#set - * @since 3.0.0 - * - * @genericUse {T} - [value] - * @genericUse {Phaser.Structs.Set.} - [$return] - * - * @param {*} value - The value to insert into this Set. - * - * @return {Phaser.Structs.Set} This Set object. - */ - set: function (value) - { - if (this.entries.indexOf(value) === -1) - { - this.entries.push(value); - } - - return this; - }, - - /** - * Get an element of this Set which has a property of the specified name, if that property is equal to the specified value. - * If no elements of this Set satisfy the condition then this method will return `null`. - * - * @method Phaser.Structs.Set#get - * @since 3.0.0 - * - * @genericUse {T} - [value,$return] - * - * @param {string} property - The property name to check on the elements of this Set. - * @param {*} value - The value to check for. - * - * @return {*} The first element of this Set that meets the required condition, or `null` if this Set contains no elements that meet the condition. - */ - get: function (property, value) - { - for (var i = 0; i < this.entries.length; i++) - { - var entry = this.entries[i]; - - if (entry[property] === value) - { - return entry; - } - } - }, - - /** - * Returns an array containing all the values in this Set. - * - * @method Phaser.Structs.Set#getArray - * @since 3.0.0 - * - * @genericUse {T[]} - [$return] - * - * @return {Array.<*>} An array containing all the values in this Set. - */ - getArray: function () - { - return this.entries.slice(0); - }, - - /** - * Removes the given value from this Set if this Set contains that value. - * - * @method Phaser.Structs.Set#delete - * @since 3.0.0 - * - * @genericUse {T} - [value] - * @genericUse {Phaser.Structs.Set.} - [$return] - * - * @param {*} value - The value to remove from the Set. - * - * @return {Phaser.Structs.Set} This Set object. - */ - delete: function (value) - { - var index = this.entries.indexOf(value); - - if (index > -1) - { - this.entries.splice(index, 1); - } - - return this; - }, - - /** - * Dumps the contents of this Set to the console via `console.group`. - * - * @method Phaser.Structs.Set#dump - * @since 3.0.0 - */ - dump: function () - { - // eslint-disable-next-line no-console - console.group('Set'); - - for (var i = 0; i < this.entries.length; i++) - { - var entry = this.entries[i]; - console.log(entry); - } - - // eslint-disable-next-line no-console - console.groupEnd(); - }, - - /** - * Passes each value in this Set to the given callback. - * Use this function when you know this Set will be modified during the iteration, otherwise use `iterate`. - * - * @method Phaser.Structs.Set#each - * @since 3.0.0 - * - * @genericUse {EachSetCallback.} - [callback] - * @genericUse {Phaser.Structs.Set.} - [$return] - * - * @param {EachSetCallback} callback - The callback to be invoked and passed each value this Set contains. - * @param {*} [callbackScope] - The scope of the callback. - * - * @return {Phaser.Structs.Set} This Set object. - */ - each: function (callback, callbackScope) - { - var i; - var temp = this.entries.slice(); - var len = temp.length; - - if (callbackScope) - { - for (i = 0; i < len; i++) - { - if (callback.call(callbackScope, temp[i], i) === false) - { - break; - } - } - } - else - { - for (i = 0; i < len; i++) - { - if (callback(temp[i], i) === false) - { - break; - } - } - } - - return this; - }, - - /** - * Passes each value in this Set to the given callback. - * For when you absolutely know this Set won't be modified during the iteration. - * - * @method Phaser.Structs.Set#iterate - * @since 3.0.0 - * - * @genericUse {EachSetCallback.} - [callback] - * @genericUse {Phaser.Structs.Set.} - [$return] - * - * @param {EachSetCallback} callback - The callback to be invoked and passed each value this Set contains. - * @param {*} [callbackScope] - The scope of the callback. - * - * @return {Phaser.Structs.Set} This Set object. - */ - iterate: function (callback, callbackScope) - { - var i; - var len = this.entries.length; - - if (callbackScope) - { - for (i = 0; i < len; i++) - { - if (callback.call(callbackScope, this.entries[i], i) === false) - { - break; - } - } - } - else - { - for (i = 0; i < len; i++) - { - if (callback(this.entries[i], i) === false) - { - break; - } - } - } - - return this; - }, - - /** - * Goes through each entry in this Set and invokes the given function on them, passing in the arguments. - * - * @method Phaser.Structs.Set#iterateLocal - * @since 3.0.0 - * - * @genericUse {Phaser.Structs.Set.} - [$return] - * - * @param {string} callbackKey - The key of the function to be invoked on each Set entry. - * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child. - * - * @return {Phaser.Structs.Set} This Set object. - */ - iterateLocal: function (callbackKey) - { - var i; - var args = []; - - for (i = 1; i < arguments.length; i++) - { - args.push(arguments[i]); - } - - var len = this.entries.length; - - for (i = 0; i < len; i++) - { - var entry = this.entries[i]; - - entry[callbackKey].apply(entry, args); - } - - return this; - }, - - /** - * Clears this Set so that it no longer contains any values. - * - * @method Phaser.Structs.Set#clear - * @since 3.0.0 - * - * @genericUse {Phaser.Structs.Set.} - [$return] - * - * @return {Phaser.Structs.Set} This Set object. - */ - clear: function () - { - this.entries.length = 0; - - return this; - }, - - /** - * Returns `true` if this Set contains the given value, otherwise returns `false`. - * - * @method Phaser.Structs.Set#contains - * @since 3.0.0 - * - * @genericUse {T} - [value] - * - * @param {*} value - The value to check for in this Set. - * - * @return {boolean} `true` if the given value was found in this Set, otherwise `false`. - */ - contains: function (value) - { - return (this.entries.indexOf(value) > -1); - }, - - /** - * Returns a new Set containing all values that are either in this Set or in the Set provided as an argument. - * - * @method Phaser.Structs.Set#union - * @since 3.0.0 - * - * @genericUse {Phaser.Structs.Set.} - [set,$return] - * - * @param {Phaser.Structs.Set} set - The Set to perform the union with. - * - * @return {Phaser.Structs.Set} A new Set containing all the values in this Set and the Set provided as an argument. - */ - union: function (set) - { - var newSet = new Set(); - - set.entries.forEach(function (value) - { - newSet.set(value); - }); - - this.entries.forEach(function (value) - { - newSet.set(value); - }); - - return newSet; - }, - - /** - * Returns a new Set that contains only the values which are in this Set and that are also in the given Set. - * - * @method Phaser.Structs.Set#intersect - * @since 3.0.0 - * - * @genericUse {Phaser.Structs.Set.} - [set,$return] - * - * @param {Phaser.Structs.Set} set - The Set to intersect this set with. - * - * @return {Phaser.Structs.Set} The result of the intersection, as a new Set. - */ - intersect: function (set) - { - var newSet = new Set(); - - this.entries.forEach(function (value) - { - if (set.contains(value)) - { - newSet.set(value); - } - }); - - return newSet; - }, - - /** - * Returns a new Set containing all the values in this Set which are *not* also in the given Set. - * - * @method Phaser.Structs.Set#difference - * @since 3.0.0 - * - * @genericUse {Phaser.Structs.Set.} - [set,$return] - * - * @param {Phaser.Structs.Set} set - The Set to perform the difference with. - * - * @return {Phaser.Structs.Set} A new Set containing all the values in this Set that are not also in the Set provided as an argument to this method. - */ - difference: function (set) - { - var newSet = new Set(); - - this.entries.forEach(function (value) - { - if (!set.contains(value)) - { - newSet.set(value); - } - }); - - return newSet; - }, - - /** - * The size of this Set. This is the number of entries within it. - * Changing the size will truncate the Set if the given value is smaller than the current size. - * Increasing the size larger than the current size has no effect. - * - * @name Phaser.Structs.Set#size - * @type {integer} - * @since 3.0.0 - */ - size: { - - get: function () - { - return this.entries.length; - }, - - set: function (value) - { - if (value < this.entries.length) - { - return this.entries.length = value; - } - else - { - return this.entries.length; - } - } + this._crop = this.resetCropObject(); + this.setTexture(texture, frame); + this.setPosition(x, y); + this.setSizeToFrame(); + this.setOriginFromFrame(); + this.initPipeline(); } }); -module.exports = Set; +module.exports = Image; /***/ }), -/* 109 */, -/* 110 */ +/* 105 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * Determine whether the source object has a property with the specified key. + * + * @function Phaser.Utils.Objects.HasValue + * @since 3.0.0 + * + * @param {object} source - The source object to be checked. + * @param {string} key - The property to check for within the object + * + * @return {boolean} `true` if the provided `key` exists on the `source` object, otherwise `false`. + */ +var HasValue = function (source, key) +{ + return (source.hasOwnProperty(key)); +}; + +module.exports = HasValue; + + +/***/ }), +/* 106 */, +/* 107 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -20477,7 +19958,7 @@ module.exports = Set; */ var BlendModes = __webpack_require__(52); -var Circle = __webpack_require__(65); +var Circle = __webpack_require__(63); var CircleContains = __webpack_require__(55); var Class = __webpack_require__(0); var Components = __webpack_require__(11); @@ -20780,7 +20261,7 @@ module.exports = Zone; /***/ }), -/* 111 */ +/* 108 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -20795,30 +20276,30 @@ module.exports = Zone; module.exports = { - ADD_ANIMATION: __webpack_require__(534), - ANIMATION_COMPLETE: __webpack_require__(535), - ANIMATION_REPEAT: __webpack_require__(536), - ANIMATION_RESTART: __webpack_require__(537), - ANIMATION_START: __webpack_require__(538), - PAUSE_ALL: __webpack_require__(539), - REMOVE_ANIMATION: __webpack_require__(540), - RESUME_ALL: __webpack_require__(541), - SPRITE_ANIMATION_COMPLETE: __webpack_require__(542), - SPRITE_ANIMATION_KEY_COMPLETE: __webpack_require__(543), - SPRITE_ANIMATION_KEY_REPEAT: __webpack_require__(544), - SPRITE_ANIMATION_KEY_RESTART: __webpack_require__(545), - SPRITE_ANIMATION_KEY_START: __webpack_require__(546), - SPRITE_ANIMATION_KEY_UPDATE: __webpack_require__(547), - SPRITE_ANIMATION_REPEAT: __webpack_require__(548), - SPRITE_ANIMATION_RESTART: __webpack_require__(549), - SPRITE_ANIMATION_START: __webpack_require__(550), - SPRITE_ANIMATION_UPDATE: __webpack_require__(551) + ADD_ANIMATION: __webpack_require__(533), + ANIMATION_COMPLETE: __webpack_require__(534), + ANIMATION_REPEAT: __webpack_require__(535), + ANIMATION_RESTART: __webpack_require__(536), + ANIMATION_START: __webpack_require__(537), + PAUSE_ALL: __webpack_require__(538), + REMOVE_ANIMATION: __webpack_require__(539), + RESUME_ALL: __webpack_require__(540), + SPRITE_ANIMATION_COMPLETE: __webpack_require__(541), + SPRITE_ANIMATION_KEY_COMPLETE: __webpack_require__(542), + SPRITE_ANIMATION_KEY_REPEAT: __webpack_require__(543), + SPRITE_ANIMATION_KEY_RESTART: __webpack_require__(544), + SPRITE_ANIMATION_KEY_START: __webpack_require__(545), + SPRITE_ANIMATION_KEY_UPDATE: __webpack_require__(546), + SPRITE_ANIMATION_REPEAT: __webpack_require__(547), + SPRITE_ANIMATION_RESTART: __webpack_require__(548), + SPRITE_ANIMATION_START: __webpack_require__(549), + SPRITE_ANIMATION_UPDATE: __webpack_require__(550) }; /***/ }), -/* 112 */ +/* 109 */ /***/ (function(module, exports) { /** @@ -20846,7 +20327,7 @@ module.exports = Perimeter; /***/ }), -/* 113 */ +/* 110 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -20856,7 +20337,7 @@ module.exports = Perimeter; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(283); +var Events = __webpack_require__(281); /** * @callback DataEachCallback @@ -21487,7 +20968,7 @@ module.exports = DataManager; /***/ }), -/* 114 */ +/* 111 */ /***/ (function(module, exports) { /** @@ -21528,7 +21009,7 @@ module.exports = Shuffle; /***/ }), -/* 115 */ +/* 112 */ /***/ (function(module, exports) { /** @@ -21558,7 +21039,7 @@ module.exports = Linear; /***/ }), -/* 116 */ +/* 113 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** @@ -21727,10 +21208,10 @@ function init () module.exports = init(); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(726))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(725))) /***/ }), -/* 117 */ +/* 114 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -21739,7 +21220,7 @@ module.exports = init(); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var OS = __webpack_require__(116); +var OS = __webpack_require__(113); /** * Determines the browser type and version running this Phaser Game instance. @@ -21840,7 +21321,7 @@ module.exports = init(); /***/ }), -/* 118 */ +/* 115 */ /***/ (function(module, exports) { /** @@ -21870,7 +21351,7 @@ module.exports = IsSizePowerOfTwo; /***/ }), -/* 119 */ +/* 116 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -21885,17 +21366,17 @@ module.exports = IsSizePowerOfTwo; module.exports = { - ADD: __webpack_require__(776), - ERROR: __webpack_require__(777), - LOAD: __webpack_require__(778), - READY: __webpack_require__(779), - REMOVE: __webpack_require__(780) + ADD: __webpack_require__(775), + ERROR: __webpack_require__(776), + LOAD: __webpack_require__(777), + READY: __webpack_require__(778), + REMOVE: __webpack_require__(779) }; /***/ }), -/* 120 */ +/* 117 */ /***/ (function(module, exports) { /** @@ -21953,7 +21434,7 @@ module.exports = AddToDOM; /***/ }), -/* 121 */ +/* 118 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -21962,7 +21443,7 @@ module.exports = AddToDOM; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SpliceOne = __webpack_require__(80); +var SpliceOne = __webpack_require__(79); /** * Removes the given item, or array of items, from the array. @@ -22044,7 +21525,7 @@ module.exports = Remove; /***/ }), -/* 122 */ +/* 119 */ /***/ (function(module, exports) { /** @@ -22950,7 +22431,7 @@ module.exports = KeyCodes; /***/ }), -/* 123 */ +/* 120 */ /***/ (function(module, exports) { /** @@ -23073,7 +22554,52 @@ module.exports = CONST; /***/ }), -/* 124 */ +/* 121 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var Clone = __webpack_require__(65); + +/** + * Creates a new Object using all values from obj1 and obj2. + * If a value exists in both obj1 and obj2, the value in obj1 is used. + * + * This is only a shallow copy. Deeply nested objects are not cloned, so be sure to only use this + * function on shallow objects. + * + * @function Phaser.Utils.Objects.Merge + * @since 3.0.0 + * + * @param {object} obj1 - The first object. + * @param {object} obj2 - The second object. + * + * @return {object} A new object containing the union of obj1's and obj2's properties. + */ +var Merge = function (obj1, obj2) +{ + var clone = Clone(obj1); + + for (var key in obj2) + { + if (!clone.hasOwnProperty(key)) + { + clone[key] = obj2[key]; + } + } + + return clone; +}; + +module.exports = Merge; + + +/***/ }), +/* 122 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -23084,8 +22610,8 @@ module.exports = CONST; */ var Class = __webpack_require__(0); -var Clone = __webpack_require__(67); -var EventEmitter = __webpack_require__(9); +var Clone = __webpack_require__(65); +var EventEmitter = __webpack_require__(10); var Events = __webpack_require__(59); var GameEvents = __webpack_require__(18); var NOOP = __webpack_require__(1); @@ -23698,7 +23224,7 @@ module.exports = BaseSoundManager; /***/ }), -/* 125 */ +/* 123 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -23709,7 +23235,7 @@ module.exports = BaseSoundManager; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); +var EventEmitter = __webpack_require__(10); var Events = __webpack_require__(59); var Extend = __webpack_require__(17); var NOOP = __webpack_require__(1); @@ -24198,7 +23724,7 @@ module.exports = BaseSound; /***/ }), -/* 126 */ +/* 124 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -24207,10 +23733,10 @@ module.exports = BaseSound; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayUtils = __webpack_require__(182); +var ArrayUtils = __webpack_require__(179); var Class = __webpack_require__(0); var NOOP = __webpack_require__(1); -var StableSort = __webpack_require__(128); +var StableSort = __webpack_require__(126); /** * @callback EachListCallback @@ -25014,7 +24540,7 @@ module.exports = List; /***/ }), -/* 127 */ +/* 125 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -25023,8 +24549,8 @@ module.exports = List; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CheckMatrix = __webpack_require__(183); -var TransposeMatrix = __webpack_require__(387); +var CheckMatrix = __webpack_require__(180); +var TransposeMatrix = __webpack_require__(385); /** * Rotates the array matrix based on the given rotation value. @@ -25086,7 +24612,7 @@ module.exports = RotateMatrix; /***/ }), -/* 128 */ +/* 126 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -25231,7 +24757,7 @@ else {} })(); /***/ }), -/* 129 */ +/* 127 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -25243,10 +24769,10 @@ else {} var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameObject = __webpack_require__(13); -var GetBitmapTextSize = __webpack_require__(941); -var ParseFromAtlas = __webpack_require__(942); -var ParseXMLBitmapFont = __webpack_require__(186); -var Render = __webpack_require__(943); +var GetBitmapTextSize = __webpack_require__(940); +var ParseFromAtlas = __webpack_require__(941); +var ParseXMLBitmapFont = __webpack_require__(183); +var Render = __webpack_require__(942); /** * @classdesc @@ -25960,7 +25486,456 @@ module.exports = BitmapText; /***/ }), -/* 130 */ +/* 128 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var Class = __webpack_require__(0); + +/** + * @callback EachSetCallback + * + * @param {E} entry - The Set entry. + * @param {number} index - The index of the entry within the Set. + * + * @return {?boolean} The callback result. + */ + +/** + * @classdesc + * A Set is a collection of unique elements. + * + * @class Set + * @memberof Phaser.Structs + * @constructor + * @since 3.0.0 + * + * @generic T + * @genericUse {T[]} - [elements] + * + * @param {Array.<*>} [elements] - An optional array of elements to insert into this Set. + */ +var Set = new Class({ + + initialize: + + function Set (elements) + { + /** + * The entries of this Set. Stored internally as an array. + * + * @genericUse {T[]} - [$type] + * + * @name Phaser.Structs.Set#entries + * @type {Array.<*>} + * @default [] + * @since 3.0.0 + */ + this.entries = []; + + if (Array.isArray(elements)) + { + for (var i = 0; i < elements.length; i++) + { + this.set(elements[i]); + } + } + }, + + /** + * Inserts the provided value into this Set. If the value is already contained in this Set this method will have no effect. + * + * @method Phaser.Structs.Set#set + * @since 3.0.0 + * + * @genericUse {T} - [value] + * @genericUse {Phaser.Structs.Set.} - [$return] + * + * @param {*} value - The value to insert into this Set. + * + * @return {Phaser.Structs.Set} This Set object. + */ + set: function (value) + { + if (this.entries.indexOf(value) === -1) + { + this.entries.push(value); + } + + return this; + }, + + /** + * Get an element of this Set which has a property of the specified name, if that property is equal to the specified value. + * If no elements of this Set satisfy the condition then this method will return `null`. + * + * @method Phaser.Structs.Set#get + * @since 3.0.0 + * + * @genericUse {T} - [value,$return] + * + * @param {string} property - The property name to check on the elements of this Set. + * @param {*} value - The value to check for. + * + * @return {*} The first element of this Set that meets the required condition, or `null` if this Set contains no elements that meet the condition. + */ + get: function (property, value) + { + for (var i = 0; i < this.entries.length; i++) + { + var entry = this.entries[i]; + + if (entry[property] === value) + { + return entry; + } + } + }, + + /** + * Returns an array containing all the values in this Set. + * + * @method Phaser.Structs.Set#getArray + * @since 3.0.0 + * + * @genericUse {T[]} - [$return] + * + * @return {Array.<*>} An array containing all the values in this Set. + */ + getArray: function () + { + return this.entries.slice(0); + }, + + /** + * Removes the given value from this Set if this Set contains that value. + * + * @method Phaser.Structs.Set#delete + * @since 3.0.0 + * + * @genericUse {T} - [value] + * @genericUse {Phaser.Structs.Set.} - [$return] + * + * @param {*} value - The value to remove from the Set. + * + * @return {Phaser.Structs.Set} This Set object. + */ + delete: function (value) + { + var index = this.entries.indexOf(value); + + if (index > -1) + { + this.entries.splice(index, 1); + } + + return this; + }, + + /** + * Dumps the contents of this Set to the console via `console.group`. + * + * @method Phaser.Structs.Set#dump + * @since 3.0.0 + */ + dump: function () + { + // eslint-disable-next-line no-console + console.group('Set'); + + for (var i = 0; i < this.entries.length; i++) + { + var entry = this.entries[i]; + console.log(entry); + } + + // eslint-disable-next-line no-console + console.groupEnd(); + }, + + /** + * Passes each value in this Set to the given callback. + * Use this function when you know this Set will be modified during the iteration, otherwise use `iterate`. + * + * @method Phaser.Structs.Set#each + * @since 3.0.0 + * + * @genericUse {EachSetCallback.} - [callback] + * @genericUse {Phaser.Structs.Set.} - [$return] + * + * @param {EachSetCallback} callback - The callback to be invoked and passed each value this Set contains. + * @param {*} [callbackScope] - The scope of the callback. + * + * @return {Phaser.Structs.Set} This Set object. + */ + each: function (callback, callbackScope) + { + var i; + var temp = this.entries.slice(); + var len = temp.length; + + if (callbackScope) + { + for (i = 0; i < len; i++) + { + if (callback.call(callbackScope, temp[i], i) === false) + { + break; + } + } + } + else + { + for (i = 0; i < len; i++) + { + if (callback(temp[i], i) === false) + { + break; + } + } + } + + return this; + }, + + /** + * Passes each value in this Set to the given callback. + * For when you absolutely know this Set won't be modified during the iteration. + * + * @method Phaser.Structs.Set#iterate + * @since 3.0.0 + * + * @genericUse {EachSetCallback.} - [callback] + * @genericUse {Phaser.Structs.Set.} - [$return] + * + * @param {EachSetCallback} callback - The callback to be invoked and passed each value this Set contains. + * @param {*} [callbackScope] - The scope of the callback. + * + * @return {Phaser.Structs.Set} This Set object. + */ + iterate: function (callback, callbackScope) + { + var i; + var len = this.entries.length; + + if (callbackScope) + { + for (i = 0; i < len; i++) + { + if (callback.call(callbackScope, this.entries[i], i) === false) + { + break; + } + } + } + else + { + for (i = 0; i < len; i++) + { + if (callback(this.entries[i], i) === false) + { + break; + } + } + } + + return this; + }, + + /** + * Goes through each entry in this Set and invokes the given function on them, passing in the arguments. + * + * @method Phaser.Structs.Set#iterateLocal + * @since 3.0.0 + * + * @genericUse {Phaser.Structs.Set.} - [$return] + * + * @param {string} callbackKey - The key of the function to be invoked on each Set entry. + * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child. + * + * @return {Phaser.Structs.Set} This Set object. + */ + iterateLocal: function (callbackKey) + { + var i; + var args = []; + + for (i = 1; i < arguments.length; i++) + { + args.push(arguments[i]); + } + + var len = this.entries.length; + + for (i = 0; i < len; i++) + { + var entry = this.entries[i]; + + entry[callbackKey].apply(entry, args); + } + + return this; + }, + + /** + * Clears this Set so that it no longer contains any values. + * + * @method Phaser.Structs.Set#clear + * @since 3.0.0 + * + * @genericUse {Phaser.Structs.Set.} - [$return] + * + * @return {Phaser.Structs.Set} This Set object. + */ + clear: function () + { + this.entries.length = 0; + + return this; + }, + + /** + * Returns `true` if this Set contains the given value, otherwise returns `false`. + * + * @method Phaser.Structs.Set#contains + * @since 3.0.0 + * + * @genericUse {T} - [value] + * + * @param {*} value - The value to check for in this Set. + * + * @return {boolean} `true` if the given value was found in this Set, otherwise `false`. + */ + contains: function (value) + { + return (this.entries.indexOf(value) > -1); + }, + + /** + * Returns a new Set containing all values that are either in this Set or in the Set provided as an argument. + * + * @method Phaser.Structs.Set#union + * @since 3.0.0 + * + * @genericUse {Phaser.Structs.Set.} - [set,$return] + * + * @param {Phaser.Structs.Set} set - The Set to perform the union with. + * + * @return {Phaser.Structs.Set} A new Set containing all the values in this Set and the Set provided as an argument. + */ + union: function (set) + { + var newSet = new Set(); + + set.entries.forEach(function (value) + { + newSet.set(value); + }); + + this.entries.forEach(function (value) + { + newSet.set(value); + }); + + return newSet; + }, + + /** + * Returns a new Set that contains only the values which are in this Set and that are also in the given Set. + * + * @method Phaser.Structs.Set#intersect + * @since 3.0.0 + * + * @genericUse {Phaser.Structs.Set.} - [set,$return] + * + * @param {Phaser.Structs.Set} set - The Set to intersect this set with. + * + * @return {Phaser.Structs.Set} The result of the intersection, as a new Set. + */ + intersect: function (set) + { + var newSet = new Set(); + + this.entries.forEach(function (value) + { + if (set.contains(value)) + { + newSet.set(value); + } + }); + + return newSet; + }, + + /** + * Returns a new Set containing all the values in this Set which are *not* also in the given Set. + * + * @method Phaser.Structs.Set#difference + * @since 3.0.0 + * + * @genericUse {Phaser.Structs.Set.} - [set,$return] + * + * @param {Phaser.Structs.Set} set - The Set to perform the difference with. + * + * @return {Phaser.Structs.Set} A new Set containing all the values in this Set that are not also in the Set provided as an argument to this method. + */ + difference: function (set) + { + var newSet = new Set(); + + this.entries.forEach(function (value) + { + if (!set.contains(value)) + { + newSet.set(value); + } + }); + + return newSet; + }, + + /** + * The size of this Set. This is the number of entries within it. + * Changing the size will truncate the Set if the given value is smaller than the current size. + * Increasing the size larger than the current size has no effect. + * + * @name Phaser.Structs.Set#size + * @type {integer} + * @since 3.0.0 + */ + size: { + + get: function () + { + return this.entries.length; + }, + + set: function (value) + { + if (value < this.entries.length) + { + return this.entries.length = value; + } + else + { + return this.entries.length; + } + } + + } + +}); + +module.exports = Set; + + +/***/ }), +/* 129 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -25972,7 +25947,7 @@ module.exports = BitmapText; var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameObject = __webpack_require__(13); -var MeshRender = __webpack_require__(1073); +var MeshRender = __webpack_require__(1072); var NOOP = __webpack_require__(1); /** @@ -26131,7 +26106,7 @@ module.exports = Mesh; /***/ }), -/* 131 */ +/* 130 */ /***/ (function(module, exports) { /** @@ -26169,7 +26144,7 @@ module.exports = RectangleToRectangle; /***/ }), -/* 132 */ +/* 131 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26277,7 +26252,7 @@ module.exports = InputPluginCache; /***/ }), -/* 133 */ +/* 132 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26292,19 +26267,19 @@ module.exports = InputPluginCache; module.exports = { - ANY_KEY_DOWN: __webpack_require__(1212), - ANY_KEY_UP: __webpack_require__(1213), - COMBO_MATCH: __webpack_require__(1214), - DOWN: __webpack_require__(1215), - KEY_DOWN: __webpack_require__(1216), - KEY_UP: __webpack_require__(1217), - UP: __webpack_require__(1218) + ANY_KEY_DOWN: __webpack_require__(1211), + ANY_KEY_UP: __webpack_require__(1212), + COMBO_MATCH: __webpack_require__(1213), + DOWN: __webpack_require__(1214), + KEY_DOWN: __webpack_require__(1215), + KEY_UP: __webpack_require__(1216), + UP: __webpack_require__(1217) }; /***/ }), -/* 134 */ +/* 133 */ /***/ (function(module, exports) { /** @@ -26345,7 +26320,7 @@ module.exports = GetURL; /***/ }), -/* 135 */ +/* 134 */ /***/ (function(module, exports) { /** @@ -26414,7 +26389,7 @@ module.exports = XHRSettings; /***/ }), -/* 136 */ +/* 135 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26424,8 +26399,8 @@ module.exports = XHRSettings; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(216); -var Sprite = __webpack_require__(69); +var Components = __webpack_require__(213); +var Sprite = __webpack_require__(74); /** * @classdesc @@ -26515,7 +26490,7 @@ module.exports = ArcadeSprite; /***/ }), -/* 137 */ +/* 136 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26530,54 +26505,54 @@ module.exports = ArcadeSprite; module.exports = { - CalculateFacesAt: __webpack_require__(219), + CalculateFacesAt: __webpack_require__(216), CalculateFacesWithin: __webpack_require__(51), - Copy: __webpack_require__(1310), - CreateFromTiles: __webpack_require__(1311), - CullTiles: __webpack_require__(1312), - Fill: __webpack_require__(1313), - FilterTiles: __webpack_require__(1314), - FindByIndex: __webpack_require__(1315), - FindTile: __webpack_require__(1316), - ForEachTile: __webpack_require__(1317), - GetTileAt: __webpack_require__(138), - GetTileAtWorldXY: __webpack_require__(1318), + Copy: __webpack_require__(1307), + CreateFromTiles: __webpack_require__(1308), + CullTiles: __webpack_require__(1309), + Fill: __webpack_require__(1310), + FilterTiles: __webpack_require__(1311), + FindByIndex: __webpack_require__(1312), + FindTile: __webpack_require__(1313), + ForEachTile: __webpack_require__(1314), + GetTileAt: __webpack_require__(137), + GetTileAtWorldXY: __webpack_require__(1315), GetTilesWithin: __webpack_require__(24), - GetTilesWithinShape: __webpack_require__(1319), - GetTilesWithinWorldXY: __webpack_require__(1320), - HasTileAt: __webpack_require__(476), - HasTileAtWorldXY: __webpack_require__(1321), - IsInLayerBounds: __webpack_require__(103), - PutTileAt: __webpack_require__(220), - PutTileAtWorldXY: __webpack_require__(1322), - PutTilesAt: __webpack_require__(1323), - Randomize: __webpack_require__(1324), - RemoveTileAt: __webpack_require__(477), - RemoveTileAtWorldXY: __webpack_require__(1325), - RenderDebug: __webpack_require__(1326), - ReplaceByIndex: __webpack_require__(474), - SetCollision: __webpack_require__(1327), - SetCollisionBetween: __webpack_require__(1328), - SetCollisionByExclusion: __webpack_require__(1329), - SetCollisionByProperty: __webpack_require__(1330), - SetCollisionFromCollisionGroup: __webpack_require__(1331), - SetTileIndexCallback: __webpack_require__(1332), - SetTileLocationCallback: __webpack_require__(1333), - Shuffle: __webpack_require__(1334), - SwapByIndex: __webpack_require__(1335), - TileToWorldX: __webpack_require__(139), - TileToWorldXY: __webpack_require__(1336), - TileToWorldY: __webpack_require__(140), - WeightedRandomize: __webpack_require__(1337), - WorldToTileX: __webpack_require__(63), - WorldToTileXY: __webpack_require__(475), - WorldToTileY: __webpack_require__(64) + GetTilesWithinShape: __webpack_require__(1316), + GetTilesWithinWorldXY: __webpack_require__(1317), + HasTileAt: __webpack_require__(475), + HasTileAtWorldXY: __webpack_require__(1318), + IsInLayerBounds: __webpack_require__(100), + PutTileAt: __webpack_require__(218), + PutTileAtWorldXY: __webpack_require__(1319), + PutTilesAt: __webpack_require__(1320), + Randomize: __webpack_require__(1321), + RemoveTileAt: __webpack_require__(476), + RemoveTileAtWorldXY: __webpack_require__(1322), + RenderDebug: __webpack_require__(1323), + ReplaceByIndex: __webpack_require__(472), + SetCollision: __webpack_require__(1324), + SetCollisionBetween: __webpack_require__(1325), + SetCollisionByExclusion: __webpack_require__(1326), + SetCollisionByProperty: __webpack_require__(1327), + SetCollisionFromCollisionGroup: __webpack_require__(1328), + SetTileIndexCallback: __webpack_require__(1329), + SetTileLocationCallback: __webpack_require__(1330), + Shuffle: __webpack_require__(1331), + SwapByIndex: __webpack_require__(1332), + TileToWorldX: __webpack_require__(470), + TileToWorldXY: __webpack_require__(217), + TileToWorldY: __webpack_require__(471), + WeightedRandomize: __webpack_require__(1333), + WorldToTileX: __webpack_require__(473), + WorldToTileXY: __webpack_require__(72), + WorldToTileY: __webpack_require__(474) }; /***/ }), -/* 138 */ +/* 137 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26586,7 +26561,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var IsInLayerBounds = __webpack_require__(103); +var IsInLayerBounds = __webpack_require__(100); /** * Gets a tile at the given tile coordinates from the given layer. @@ -26621,6 +26596,7 @@ var GetTileAt = function (tileX, tileY, nonNull, layer) else { return tile; + } } @@ -26634,112 +26610,7 @@ module.exports = GetTileAt; /***/ }), -/* 139 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from tile X coordinates (tile units) to world X coordinates (pixels), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.TileToWorldX - * @private - * @since 3.0.0 - * - * @param {integer} tileX - The x coordinate, in tiles, not pixels. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} - */ -var TileToWorldX = function (tileX, camera, layer) -{ - var orientation = layer.orientation; - var tileWidth = layer.baseTileWidth; - var tilemapLayer = layer.tilemapLayer; - var layerWorldX = 0; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); - - tileWidth *= tilemapLayer.scaleX; - } - - - if (orientation === "orthogonal") { - return layerWorldX + tileX * tileWidth; - } else if (orientation === "isometric") { - // Not Best Solution ? - console.warn('With isometric map types you have to use the TileToWorldXY function.'); - return null; - } - - -}; - -module.exports = TileToWorldX; - - -/***/ }), -/* 140 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.TileToWorldY - * @private - * @since 3.0.0 - * - * @param {integer} tileY - The x coordinate, in tiles, not pixels. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} - */ -var TileToWorldY = function (tileY, camera, layer) -{ - var orientation = layer.orientation; - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - var layerWorldY = 0; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - tileHeight *= tilemapLayer.scaleY; - } - - if (orientation === "orthogonal") { - return layerWorldY + tileY * tileHeight; - } else if (orientation === "isometric") { - // Not Best Solution ? - console.warn('With isometric map types you have to use the TileToWorldXY function.'); - return null; - } -}; - -module.exports = TileToWorldY; - - -/***/ }), -/* 141 */ +/* 138 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -27143,7 +27014,7 @@ module.exports = Tileset; /***/ }), -/* 142 */ +/* 139 */ /***/ (function(module, exports) { /** @@ -27207,7 +27078,7 @@ module.exports = GetNewValue; /***/ }), -/* 143 */ +/* 140 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -27216,17 +27087,17 @@ module.exports = GetNewValue; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Defaults = __webpack_require__(229); +var Defaults = __webpack_require__(227); var GetAdvancedValue = __webpack_require__(14); -var GetBoolean = __webpack_require__(88); -var GetEaseFunction = __webpack_require__(70); -var GetNewValue = __webpack_require__(142); -var GetProps = __webpack_require__(498); -var GetTargets = __webpack_require__(227); +var GetBoolean = __webpack_require__(87); +var GetEaseFunction = __webpack_require__(67); +var GetNewValue = __webpack_require__(139); +var GetProps = __webpack_require__(497); +var GetTargets = __webpack_require__(225); var GetValue = __webpack_require__(6); -var GetValueOp = __webpack_require__(228); -var Tween = __webpack_require__(230); -var TweenData = __webpack_require__(232); +var GetValueOp = __webpack_require__(226); +var Tween = __webpack_require__(228); +var TweenData = __webpack_require__(230); /** * Creates a new Tween. @@ -27340,7 +27211,7 @@ module.exports = TweenBuilder; /***/ }), -/* 144 */ +/* 141 */ /***/ (function(module, exports) { /** @@ -27374,7 +27245,7 @@ module.exports = Equal; /***/ }), -/* 145 */ +/* 142 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -27385,7 +27256,7 @@ module.exports = Equal; */ var Class = __webpack_require__(0); -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * @classdesc @@ -28143,8 +28014,8 @@ module.exports = WebGLPipeline; /***/ }), -/* 146 */, -/* 147 */ +/* 143 */, +/* 144 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -28183,7 +28054,7 @@ module.exports = CircumferencePoint; /***/ }), -/* 148 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -28227,7 +28098,7 @@ module.exports = Random; /***/ }), -/* 149 */ +/* 146 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -28238,10 +28109,10 @@ module.exports = Random; var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(111); -var FindClosestInSorted = __webpack_require__(269); -var Frame = __webpack_require__(270); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(108); +var FindClosestInSorted = __webpack_require__(267); +var Frame = __webpack_require__(268); var GetValue = __webpack_require__(6); /** @@ -28456,7 +28327,7 @@ var Animation = new Class({ * @method Phaser.Animations.Animation#addFrame * @since 3.0.0 * - * @param {(string|Phaser.Types.Animations.AnimationFrame[])} config - [description] + * @param {(string|Phaser.Types.Animations.AnimationFrame[])} config - Either a string, in which case it will use all frames from a texture with the matching key, or an array of Animation Frame configuration objects. * * @return {Phaser.Animations.Animation} This Animation object. */ @@ -28472,7 +28343,7 @@ var Animation = new Class({ * @since 3.0.0 * * @param {integer} index - The index to insert the frame at within the animation. - * @param {(string|Phaser.Types.Animations.AnimationFrame[])} config - [description] + * @param {(string|Phaser.Types.Animations.AnimationFrame[])} config - Either a string, in which case it will use all frames from a texture with the matching key, or an array of Animation Frame configuration objects. * * @return {Phaser.Animations.Animation} This Animation object. */ @@ -28520,13 +28391,14 @@ var Animation = new Class({ }, /** - * [description] + * Called internally when this Animation completes playback. + * Optionally, hides the parent Game Object, then stops playback. * * @method Phaser.Animations.Animation#completeAnimation * @protected * @since 3.0.0 * - * @param {Phaser.GameObjects.Components.Animation} component - [description] + * @param {Phaser.GameObjects.Components.Animation} component - The Animation Component belonging to the Game Object invoking this call. */ completeAnimation: function (component) { @@ -28539,14 +28411,15 @@ var Animation = new Class({ }, /** - * [description] + * Called internally when this Animation first starts to play. + * Sets the accumulator and nextTick properties. * * @method Phaser.Animations.Animation#getFirstTick * @protected * @since 3.0.0 * - * @param {Phaser.GameObjects.Components.Animation} component - [description] - * @param {boolean} [includeDelay=true] - [description] + * @param {Phaser.GameObjects.Components.Animation} component - The Animation Component belonging to the Game Object invoking this call. + * @param {boolean} [includeDelay=true] - If `true` the Animation Components delay value will be added to the `nextTick` total. */ getFirstTick: function (component, includeDelay) { @@ -28579,16 +28452,16 @@ var Animation = new Class({ }, /** - * [description] + * Creates AnimationFrame instances based on the given frame data. * * @method Phaser.Animations.Animation#getFrames * @since 3.0.0 * - * @param {Phaser.Textures.TextureManager} textureManager - [description] - * @param {(string|Phaser.Types.Animations.AnimationFrame[])} frames - [description] - * @param {string} [defaultTextureKey] - [description] + * @param {Phaser.Textures.TextureManager} textureManager - A reference to the global Texture Manager. + * @param {(string|Phaser.Types.Animations.AnimationFrame[])} frames - Either a string, in which case it will use all frames from a texture with the matching key, or an array of Animation Frame configuration objects. + * @param {string} [defaultTextureKey] - The key to use if no key is set in the frame configuration object. * - * @return {Phaser.Animations.AnimationFrame[]} [description] + * @return {Phaser.Animations.AnimationFrame[]} An array of newly created AnimationFrame instances. */ getFrames: function (textureManager, frames, defaultTextureKey) { @@ -28681,12 +28554,12 @@ var Animation = new Class({ }, /** - * [description] + * Called internally. Sets the accumulator and nextTick values of the current Animation. * * @method Phaser.Animations.Animation#getNextTick * @since 3.0.0 * - * @param {Phaser.GameObjects.Components.Animation} component - [description] + * @param {Phaser.GameObjects.Components.Animation} component - The Animation Component belonging to the Game Object invoking this call. */ getNextTick: function (component) { @@ -28856,12 +28729,13 @@ var Animation = new Class({ }, /** - * [description] + * Called internally when the Animation is playing backwards. + * Sets the previous frame, causing a yoyo, repeat, complete or update, accordingly. * * @method Phaser.Animations.Animation#previousFrame * @since 3.0.0 * - * @param {Phaser.GameObjects.Components.Animation} component - [description] + * @param {Phaser.GameObjects.Components.Animation} component - The Animation Component belonging to the Game Object invoking this call. */ previousFrame: function (component) { @@ -28919,12 +28793,13 @@ var Animation = new Class({ }, /** - * [description] + * Removes the given AnimationFrame from this Animation instance. + * This is a global action. Any Game Object using this Animation will be impacted by this change. * * @method Phaser.Animations.Animation#removeFrame * @since 3.0.0 * - * @param {Phaser.Animations.AnimationFrame} frame - [description] + * @param {Phaser.Animations.AnimationFrame} frame - The AnimationFrame to be removed. * * @return {Phaser.Animations.Animation} This Animation object. */ @@ -28961,7 +28836,8 @@ var Animation = new Class({ }, /** - * [description] + * Called internally during playback. Forces the animation to repeat, providing there are enough counts left + * in the repeat counter. * * @method Phaser.Animations.Animation#repeatAnimation * @fires Phaser.Animations.Events#ANIMATION_REPEAT @@ -28969,7 +28845,7 @@ var Animation = new Class({ * @fires Phaser.Animations.Events#SPRITE_ANIMATION_KEY_REPEAT * @since 3.0.0 * - * @param {Phaser.GameObjects.Components.Animation} component - [description] + * @param {Phaser.GameObjects.Components.Animation} component - The Animation Component belonging to the Game Object invoking this call. */ repeatAnimation: function (component) { @@ -29014,7 +28890,7 @@ var Animation = new Class({ * @method Phaser.Animations.Animation#setFrame * @since 3.0.0 * - * @param {Phaser.GameObjects.Components.Animation} component - [description] + * @param {Phaser.GameObjects.Components.Animation} component - The Animation Component belonging to the Game Object invoking this call. */ setFrame: function (component) { @@ -29035,7 +28911,7 @@ var Animation = new Class({ * @method Phaser.Animations.Animation#toJSON * @since 3.0.0 * - * @return {Phaser.Types.Animations.JSONAnimation} [description] + * @return {Phaser.Types.Animations.JSONAnimation} The resulting JSONAnimation formatted object. */ toJSON: function () { @@ -29063,7 +28939,7 @@ var Animation = new Class({ }, /** - * [description] + * Called internally whenever frames are added to, or removed from, this Animation. * * @method Phaser.Animations.Animation#updateFrameSequence * @since 3.0.0 @@ -29120,7 +28996,7 @@ var Animation = new Class({ }, /** - * [description] + * Pauses playback of this Animation. The paused state is set immediately. * * @method Phaser.Animations.Animation#pause * @since 3.0.0 @@ -29135,7 +29011,7 @@ var Animation = new Class({ }, /** - * [description] + * Resumes playback of this Animation. The paused state is reset immediately. * * @method Phaser.Animations.Animation#resume * @since 3.0.0 @@ -29150,7 +29026,9 @@ var Animation = new Class({ }, /** - * [description] + * Destroys this Animation instance. It will remove all event listeners, + * remove this animation and its key from the global Animation Manager, + * and then destroy all Animation Frames in turn. * * @method Phaser.Animations.Animation#destroy * @since 3.0.0 @@ -29180,7 +29058,7 @@ module.exports = Animation; /***/ }), -/* 150 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29189,22 +29067,26 @@ module.exports = Animation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Perimeter = __webpack_require__(112); +var Perimeter = __webpack_require__(109); var Point = __webpack_require__(4); /** - * Position is a value between 0 and 1 where 0 = the top-left of the rectangle and 0.5 = the bottom right. + * Calculates the coordinates of a point at a certain `position` on the Rectangle's perimeter. + * + * The `position` is a fraction between 0 and 1 which defines how far into the perimeter the point is. + * + * A value of 0 or 1 returns the point at the top left corner of the rectangle, while a value of 0.5 returns the point at the bottom right corner of the rectangle. Values between 0 and 0.5 are on the top or the right side and values between 0.5 and 1 are on the bottom or the left side. * * @function Phaser.Geom.Rectangle.GetPoint * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Rectangle} rectangle - [description] - * @param {number} position - [description] - * @param {(Phaser.Geom.Point|object)} [out] - [description] + * @param {Phaser.Geom.Rectangle} rectangle - The Rectangle to get the perimeter point from. + * @param {number} position - The normalized distance into the Rectangle's perimeter to return. + * @param {(Phaser.Geom.Point|object)} [out] - An object to update with the `x` and `y` coordinates of the point. * - * @return {Phaser.Geom.Point} [description] + * @return {Phaser.Geom.Point} The updated `output` object, or a new Point if no `output` object was given. */ var GetPoint = function (rectangle, position, out) { @@ -29257,7 +29139,7 @@ module.exports = GetPoint; /***/ }), -/* 151 */ +/* 148 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29322,7 +29204,7 @@ module.exports = GetPoints; /***/ }), -/* 152 */ +/* 149 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29362,7 +29244,7 @@ module.exports = Random; /***/ }), -/* 153 */ +/* 150 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29400,7 +29282,7 @@ module.exports = Random; /***/ }), -/* 154 */ +/* 151 */ /***/ (function(module, exports) { /** @@ -29529,7 +29411,7 @@ module.exports = Pipeline; /***/ }), -/* 155 */ +/* 152 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29570,7 +29452,7 @@ module.exports = Random; /***/ }), -/* 156 */ +/* 153 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29582,17 +29464,17 @@ module.exports = Random; var Point = __webpack_require__(4); /** - * [description] + * Returns a random Point from within the area of the given Triangle. * * @function Phaser.Geom.Triangle.Random * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Triangle} triangle - [description] - * @param {Phaser.Geom.Point} [out] - [description] + * @param {Phaser.Geom.Triangle} triangle - The Triangle to get a random point from. + * @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created. * - * @return {Phaser.Geom.Point} [description] + * @return {Phaser.Geom.Point} A Point object holding the coordinates of a random position within the Triangle. */ var Random = function (triangle, out) { @@ -29626,7 +29508,7 @@ module.exports = Random; /***/ }), -/* 157 */ +/* 154 */ /***/ (function(module, exports) { /** @@ -29663,7 +29545,7 @@ module.exports = RotateAroundDistance; /***/ }), -/* 158 */ +/* 155 */ /***/ (function(module, exports) { /** @@ -29702,7 +29584,7 @@ module.exports = SmootherStep; /***/ }), -/* 159 */ +/* 156 */ /***/ (function(module, exports) { /** @@ -29749,7 +29631,7 @@ module.exports = SmoothStep; /***/ }), -/* 160 */ +/* 157 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30122,7 +30004,7 @@ module.exports = Map; /***/ }), -/* 161 */ +/* 158 */ /***/ (function(module, exports) { /** @@ -30198,7 +30080,7 @@ module.exports = Pad; /***/ }), -/* 162 */ +/* 159 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30207,10 +30089,10 @@ module.exports = Pad; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HexStringToColor = __webpack_require__(293); -var IntegerToColor = __webpack_require__(296); -var ObjectToColor = __webpack_require__(298); -var RGBStringToColor = __webpack_require__(299); +var HexStringToColor = __webpack_require__(291); +var IntegerToColor = __webpack_require__(294); +var ObjectToColor = __webpack_require__(296); +var RGBStringToColor = __webpack_require__(297); /** * Converts the given source color value into an instance of a Color class. @@ -30254,7 +30136,7 @@ module.exports = ValueToColor; /***/ }), -/* 163 */ +/* 160 */ /***/ (function(module, exports) { /** @@ -30284,7 +30166,7 @@ module.exports = GetColor; /***/ }), -/* 164 */ +/* 161 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30293,7 +30175,7 @@ module.exports = GetColor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetColor = __webpack_require__(163); +var GetColor = __webpack_require__(160); /** * Converts an HSV (hue, saturation and value) color value to RGB. @@ -30385,7 +30267,7 @@ module.exports = HSVToRGB; /***/ }), -/* 165 */ +/* 162 */ /***/ (function(module, exports) { /** @@ -30517,7 +30399,7 @@ module.exports = Smoothing(); /***/ }), -/* 166 */ +/* 163 */ /***/ (function(module, exports) { /** @@ -30554,7 +30436,7 @@ module.exports = CenterOn; /***/ }), -/* 167 */ +/* 164 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30563,18 +30445,18 @@ module.exports = CenterOn; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Back = __webpack_require__(301); -var Bounce = __webpack_require__(302); -var Circular = __webpack_require__(303); -var Cubic = __webpack_require__(304); -var Elastic = __webpack_require__(305); -var Expo = __webpack_require__(306); -var Linear = __webpack_require__(307); -var Quadratic = __webpack_require__(308); -var Quartic = __webpack_require__(309); -var Quintic = __webpack_require__(310); -var Sine = __webpack_require__(311); -var Stepped = __webpack_require__(312); +var Back = __webpack_require__(299); +var Bounce = __webpack_require__(300); +var Circular = __webpack_require__(301); +var Cubic = __webpack_require__(302); +var Elastic = __webpack_require__(303); +var Expo = __webpack_require__(304); +var Linear = __webpack_require__(305); +var Quadratic = __webpack_require__(306); +var Quartic = __webpack_require__(307); +var Quintic = __webpack_require__(308); +var Sine = __webpack_require__(309); +var Stepped = __webpack_require__(310); // EaseMap module.exports = { @@ -30635,7 +30517,7 @@ module.exports = { /***/ }), -/* 168 */ +/* 165 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30644,8 +30526,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var OS = __webpack_require__(116); -var Browser = __webpack_require__(117); +var OS = __webpack_require__(113); +var Browser = __webpack_require__(114); var CanvasPool = __webpack_require__(26); /** @@ -30827,7 +30709,7 @@ module.exports = init(); /***/ }), -/* 169 */ +/* 166 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30846,62 +30728,62 @@ var Extend = __webpack_require__(17); var PhaserMath = { // Collections of functions - Angle: __webpack_require__(731), - Distance: __webpack_require__(739), - Easing: __webpack_require__(744), - Fuzzy: __webpack_require__(745), - Interpolation: __webpack_require__(748), - Pow2: __webpack_require__(753), - Snap: __webpack_require__(755), + Angle: __webpack_require__(730), + Distance: __webpack_require__(738), + Easing: __webpack_require__(743), + Fuzzy: __webpack_require__(744), + Interpolation: __webpack_require__(747), + Pow2: __webpack_require__(752), + Snap: __webpack_require__(754), // Expose the RNG Class - RandomDataGenerator: __webpack_require__(757), + RandomDataGenerator: __webpack_require__(756), // Single functions - Average: __webpack_require__(758), - Bernstein: __webpack_require__(322), - Between: __webpack_require__(171), - CatmullRom: __webpack_require__(170), - CeilTo: __webpack_require__(759), + Average: __webpack_require__(757), + Bernstein: __webpack_require__(320), + Between: __webpack_require__(168), + CatmullRom: __webpack_require__(167), + CeilTo: __webpack_require__(758), Clamp: __webpack_require__(22), DegToRad: __webpack_require__(35), - Difference: __webpack_require__(760), - Factorial: __webpack_require__(323), - FloatBetween: __webpack_require__(329), - FloorTo: __webpack_require__(761), - FromPercent: __webpack_require__(87), - GetSpeed: __webpack_require__(762), - IsEven: __webpack_require__(763), - IsEvenStrict: __webpack_require__(764), - Linear: __webpack_require__(115), - MaxAdd: __webpack_require__(765), - MinSub: __webpack_require__(766), - Percent: __webpack_require__(767), - RadToDeg: __webpack_require__(172), - RandomXY: __webpack_require__(768), - RandomXYZ: __webpack_require__(769), - RandomXYZW: __webpack_require__(770), - Rotate: __webpack_require__(330), - RotateAround: __webpack_require__(275), - RotateAroundDistance: __webpack_require__(157), - RoundAwayFromZero: __webpack_require__(331), - RoundTo: __webpack_require__(771), - SinCosTableGenerator: __webpack_require__(772), - SmootherStep: __webpack_require__(158), - SmoothStep: __webpack_require__(159), - ToXY: __webpack_require__(773), - TransformXY: __webpack_require__(332), - Within: __webpack_require__(774), + Difference: __webpack_require__(759), + Factorial: __webpack_require__(321), + FloatBetween: __webpack_require__(327), + FloorTo: __webpack_require__(760), + FromPercent: __webpack_require__(86), + GetSpeed: __webpack_require__(761), + IsEven: __webpack_require__(762), + IsEvenStrict: __webpack_require__(763), + Linear: __webpack_require__(112), + MaxAdd: __webpack_require__(764), + MinSub: __webpack_require__(765), + Percent: __webpack_require__(766), + RadToDeg: __webpack_require__(169), + RandomXY: __webpack_require__(767), + RandomXYZ: __webpack_require__(768), + RandomXYZW: __webpack_require__(769), + Rotate: __webpack_require__(328), + RotateAround: __webpack_require__(273), + RotateAroundDistance: __webpack_require__(154), + RoundAwayFromZero: __webpack_require__(329), + RoundTo: __webpack_require__(770), + SinCosTableGenerator: __webpack_require__(771), + SmootherStep: __webpack_require__(155), + SmoothStep: __webpack_require__(156), + ToXY: __webpack_require__(772), + TransformXY: __webpack_require__(330), + Within: __webpack_require__(773), Wrap: __webpack_require__(58), // Vector classes Vector2: __webpack_require__(3), - Vector3: __webpack_require__(173), - Vector4: __webpack_require__(333), - Matrix3: __webpack_require__(334), - Matrix4: __webpack_require__(335), - Quaternion: __webpack_require__(336), - RotateVec3: __webpack_require__(775) + Vector3: __webpack_require__(170), + Vector4: __webpack_require__(331), + Matrix3: __webpack_require__(332), + Matrix4: __webpack_require__(333), + Quaternion: __webpack_require__(334), + RotateVec3: __webpack_require__(774) }; @@ -30915,7 +30797,7 @@ module.exports = PhaserMath; /***/ }), -/* 170 */ +/* 167 */ /***/ (function(module, exports) { /** @@ -30925,16 +30807,16 @@ module.exports = PhaserMath; */ /** - * Calculates a Catmull-Rom value. + * Calculates a Catmull-Rom value from the given points, based on an alpha of 0.5. * * @function Phaser.Math.CatmullRom * @since 3.0.0 * - * @param {number} t - [description] - * @param {number} p0 - [description] - * @param {number} p1 - [description] - * @param {number} p2 - [description] - * @param {number} p3 - [description] + * @param {number} t - The amount to interpolate by. + * @param {number} p0 - The first control point. + * @param {number} p1 - The second control point. + * @param {number} p2 - The third control point. + * @param {number} p3 - The fourth control point. * * @return {number} The Catmull-Rom value. */ @@ -30952,7 +30834,7 @@ module.exports = CatmullRom; /***/ }), -/* 171 */ +/* 168 */ /***/ (function(module, exports) { /** @@ -30981,7 +30863,7 @@ module.exports = Between; /***/ }), -/* 172 */ +/* 169 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31011,7 +30893,7 @@ module.exports = RadToDeg; /***/ }), -/* 173 */ +/* 170 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31821,7 +31703,7 @@ module.exports = Vector3; /***/ }), -/* 174 */ +/* 171 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31922,7 +31804,7 @@ module.exports = DefaultPlugins; /***/ }), -/* 175 */ +/* 172 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -32008,7 +31890,7 @@ module.exports = FromPoints; /***/ }), -/* 176 */ +/* 173 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -32019,10 +31901,10 @@ module.exports = FromPoints; var CONST = { - CENTER: __webpack_require__(358), - ORIENTATION: __webpack_require__(359), - SCALE_MODE: __webpack_require__(360), - ZOOM: __webpack_require__(361) + CENTER: __webpack_require__(356), + ORIENTATION: __webpack_require__(357), + SCALE_MODE: __webpack_require__(358), + ZOOM: __webpack_require__(359) }; @@ -32030,7 +31912,7 @@ module.exports = CONST; /***/ }), -/* 177 */ +/* 174 */ /***/ (function(module, exports) { /** @@ -32059,7 +31941,7 @@ module.exports = RemoveFromDOM; /***/ }), -/* 178 */ +/* 175 */ /***/ (function(module, exports) { /** @@ -32157,7 +32039,7 @@ module.exports = INPUT_CONST; /***/ }), -/* 179 */ +/* 176 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -32167,13 +32049,13 @@ module.exports = INPUT_CONST; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(123); -var DefaultPlugins = __webpack_require__(174); -var Events = __webpack_require__(19); -var GetPhysicsPlugins = __webpack_require__(874); -var GetScenePlugins = __webpack_require__(875); +var CONST = __webpack_require__(120); +var DefaultPlugins = __webpack_require__(171); +var Events = __webpack_require__(21); +var GetPhysicsPlugins = __webpack_require__(873); +var GetScenePlugins = __webpack_require__(874); var NOOP = __webpack_require__(1); -var Settings = __webpack_require__(374); +var Settings = __webpack_require__(372); /** * @classdesc @@ -32931,7 +32813,7 @@ module.exports = Systems; /***/ }), -/* 180 */ +/* 177 */ /***/ (function(module, exports) { /** @@ -32968,7 +32850,7 @@ module.exports = UppercaseFirst; /***/ }), -/* 181 */ +/* 178 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -32978,8 +32860,8 @@ module.exports = UppercaseFirst; */ var Class = __webpack_require__(0); -var Frame = __webpack_require__(94); -var TextureSource = __webpack_require__(377); +var Frame = __webpack_require__(93); +var TextureSource = __webpack_require__(375); var TEXTURE_MISSING_ERROR = 'Texture.frame missing: '; @@ -33488,7 +33370,7 @@ module.exports = Texture; /***/ }), -/* 182 */ +/* 179 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33503,45 +33385,45 @@ module.exports = Texture; module.exports = { - Matrix: __webpack_require__(910), + Matrix: __webpack_require__(909), - Add: __webpack_require__(917), - AddAt: __webpack_require__(918), - BringToTop: __webpack_require__(919), - CountAllMatching: __webpack_require__(920), - Each: __webpack_require__(921), - EachInRange: __webpack_require__(922), - FindClosestInSorted: __webpack_require__(269), - GetAll: __webpack_require__(923), - GetFirst: __webpack_require__(924), - GetRandom: __webpack_require__(184), - MoveDown: __webpack_require__(925), - MoveTo: __webpack_require__(926), - MoveUp: __webpack_require__(927), - NumberArray: __webpack_require__(928), - NumberArrayStep: __webpack_require__(929), - QuickSelect: __webpack_require__(388), - Range: __webpack_require__(389), - Remove: __webpack_require__(121), - RemoveAt: __webpack_require__(930), - RemoveBetween: __webpack_require__(931), - RemoveRandomElement: __webpack_require__(932), - Replace: __webpack_require__(933), - RotateLeft: __webpack_require__(285), - RotateRight: __webpack_require__(286), - SafeRange: __webpack_require__(68), - SendToBack: __webpack_require__(934), - SetAll: __webpack_require__(935), - Shuffle: __webpack_require__(114), - SpliceOne: __webpack_require__(80), - StableSort: __webpack_require__(128), - Swap: __webpack_require__(936) + Add: __webpack_require__(916), + AddAt: __webpack_require__(917), + BringToTop: __webpack_require__(918), + CountAllMatching: __webpack_require__(919), + Each: __webpack_require__(920), + EachInRange: __webpack_require__(921), + FindClosestInSorted: __webpack_require__(267), + GetAll: __webpack_require__(922), + GetFirst: __webpack_require__(923), + GetRandom: __webpack_require__(181), + MoveDown: __webpack_require__(924), + MoveTo: __webpack_require__(925), + MoveUp: __webpack_require__(926), + NumberArray: __webpack_require__(927), + NumberArrayStep: __webpack_require__(928), + QuickSelect: __webpack_require__(386), + Range: __webpack_require__(387), + Remove: __webpack_require__(118), + RemoveAt: __webpack_require__(929), + RemoveBetween: __webpack_require__(930), + RemoveRandomElement: __webpack_require__(931), + Replace: __webpack_require__(932), + RotateLeft: __webpack_require__(283), + RotateRight: __webpack_require__(284), + SafeRange: __webpack_require__(66), + SendToBack: __webpack_require__(933), + SetAll: __webpack_require__(934), + Shuffle: __webpack_require__(111), + SpliceOne: __webpack_require__(79), + StableSort: __webpack_require__(126), + Swap: __webpack_require__(935) }; /***/ }), -/* 183 */ +/* 180 */ /***/ (function(module, exports) { /** @@ -33602,7 +33484,7 @@ module.exports = CheckMatrix; /***/ }), -/* 184 */ +/* 181 */ /***/ (function(module, exports) { /** @@ -33637,7 +33519,7 @@ module.exports = GetRandom; /***/ }), -/* 185 */ +/* 182 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33647,8 +33529,8 @@ module.exports = GetRandom; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(938); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(937); /** * @classdesc @@ -33928,7 +33810,7 @@ module.exports = ProcessQueue; /***/ }), -/* 186 */ +/* 183 */ /***/ (function(module, exports) { /** @@ -34067,7 +33949,7 @@ module.exports = ParseXMLBitmapFont; /***/ }), -/* 187 */ +/* 184 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34076,13 +33958,13 @@ module.exports = ParseXMLBitmapFont; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BlitterRender = __webpack_require__(946); -var Bob = __webpack_require__(949); +var BlitterRender = __webpack_require__(945); +var Bob = __webpack_require__(948); var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var Frame = __webpack_require__(94); +var Frame = __webpack_require__(93); var GameObject = __webpack_require__(13); -var List = __webpack_require__(126); +var List = __webpack_require__(124); /** * @callback CreateCallback @@ -34366,7 +34248,7 @@ module.exports = Blitter; /***/ }), -/* 188 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34376,15 +34258,15 @@ module.exports = Blitter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayUtils = __webpack_require__(182); +var ArrayUtils = __webpack_require__(179); var BlendModes = __webpack_require__(52); var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var Events = __webpack_require__(90); +var Events = __webpack_require__(89); var GameObject = __webpack_require__(13); var Rectangle = __webpack_require__(12); -var Render = __webpack_require__(950); -var Union = __webpack_require__(391); +var Render = __webpack_require__(949); +var Union = __webpack_require__(389); var Vector2 = __webpack_require__(3); /** @@ -35691,7 +35573,7 @@ module.exports = Container; /***/ }), -/* 189 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35700,9 +35582,9 @@ module.exports = Container; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(129); +var BitmapText = __webpack_require__(127); var Class = __webpack_require__(0); -var Render = __webpack_require__(955); +var Render = __webpack_require__(954); /** * @classdesc @@ -35924,7 +35806,7 @@ module.exports = DynamicBitmapText; /***/ }), -/* 190 */ +/* 187 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35933,26 +35815,26 @@ module.exports = DynamicBitmapText; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCamera = __webpack_require__(91); +var BaseCamera = __webpack_require__(90); var Class = __webpack_require__(0); -var Commands = __webpack_require__(191); -var ComponentsAlpha = __webpack_require__(268); -var ComponentsBlendMode = __webpack_require__(271); -var ComponentsDepth = __webpack_require__(272); -var ComponentsMask = __webpack_require__(276); -var ComponentsPipeline = __webpack_require__(154); -var ComponentsTransform = __webpack_require__(281); -var ComponentsVisible = __webpack_require__(282); -var ComponentsScrollFactor = __webpack_require__(279); +var Commands = __webpack_require__(188); +var ComponentsAlpha = __webpack_require__(266); +var ComponentsBlendMode = __webpack_require__(269); +var ComponentsDepth = __webpack_require__(270); +var ComponentsMask = __webpack_require__(274); +var ComponentsPipeline = __webpack_require__(151); +var ComponentsTransform = __webpack_require__(279); +var ComponentsVisible = __webpack_require__(280); +var ComponentsScrollFactor = __webpack_require__(277); var TransformMatrix = __webpack_require__(30); -var Ellipse = __webpack_require__(95); +var Ellipse = __webpack_require__(94); var GameObject = __webpack_require__(13); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); var MATH_CONST = __webpack_require__(15); -var Render = __webpack_require__(961); +var Render = __webpack_require__(960); /** * @classdesc @@ -37474,7 +37356,7 @@ module.exports = Graphics; /***/ }), -/* 191 */ +/* 188 */ /***/ (function(module, exports) { /** @@ -37511,7 +37393,7 @@ module.exports = { /***/ }), -/* 192 */ +/* 189 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -37553,7 +37435,7 @@ module.exports = CircumferencePoint; /***/ }), -/* 193 */ +/* 190 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -37565,10 +37447,10 @@ module.exports = CircumferencePoint; var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameObject = __webpack_require__(13); -var GravityWell = __webpack_require__(399); -var List = __webpack_require__(126); -var ParticleEmitter = __webpack_require__(401); -var Render = __webpack_require__(971); +var GravityWell = __webpack_require__(397); +var List = __webpack_require__(124); +var ParticleEmitter = __webpack_require__(399); +var Render = __webpack_require__(970); /** * @classdesc @@ -38042,7 +37924,7 @@ module.exports = ParticleEmitterManager; /***/ }), -/* 194 */ +/* 191 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -38052,16 +37934,16 @@ module.exports = ParticleEmitterManager; */ var BlendModes = __webpack_require__(52); -var Camera = __webpack_require__(91); +var Camera = __webpack_require__(90); var CanvasPool = __webpack_require__(26); var Class = __webpack_require__(0); var Components = __webpack_require__(11); var CONST = __webpack_require__(29); -var Frame = __webpack_require__(94); +var Frame = __webpack_require__(93); var GameObject = __webpack_require__(13); -var Render = __webpack_require__(975); -var Utils = __webpack_require__(10); -var UUID = __webpack_require__(195); +var Render = __webpack_require__(974); +var Utils = __webpack_require__(9); +var UUID = __webpack_require__(192); /** * @classdesc @@ -39281,7 +39163,7 @@ module.exports = RenderTexture; /***/ }), -/* 195 */ +/* 192 */ /***/ (function(module, exports) { /** @@ -39316,7 +39198,7 @@ module.exports = UUID; /***/ }), -/* 196 */ +/* 193 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -39328,7 +39210,7 @@ module.exports = UUID; var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameObject = __webpack_require__(13); -var RopeRender = __webpack_require__(981); +var RopeRender = __webpack_require__(980); var Vector2 = __webpack_require__(3); /** @@ -40422,7 +40304,7 @@ module.exports = Rope; /***/ }), -/* 197 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -40431,17 +40313,17 @@ module.exports = Rope; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AddToDOM = __webpack_require__(120); +var AddToDOM = __webpack_require__(117); var CanvasPool = __webpack_require__(26); var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameEvents = __webpack_require__(18); var GameObject = __webpack_require__(13); -var GetTextSize = __webpack_require__(984); +var GetTextSize = __webpack_require__(983); var GetValue = __webpack_require__(6); -var RemoveFromDOM = __webpack_require__(177); -var TextRender = __webpack_require__(985); -var TextStyle = __webpack_require__(988); +var RemoveFromDOM = __webpack_require__(174); +var TextRender = __webpack_require__(984); +var TextStyle = __webpack_require__(987); /** * @classdesc @@ -41831,7 +41713,7 @@ module.exports = Text; /***/ }), -/* 198 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -41845,9 +41727,9 @@ var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameEvents = __webpack_require__(18); var GameObject = __webpack_require__(13); -var GetPowerOfTwo = __webpack_require__(327); -var Smoothing = __webpack_require__(165); -var TileSpriteRender = __webpack_require__(990); +var GetPowerOfTwo = __webpack_require__(325); +var Smoothing = __webpack_require__(162); +var TileSpriteRender = __webpack_require__(989); var Vector2 = __webpack_require__(3); // bitmask flag for GameObject.renderMask @@ -42483,7 +42365,7 @@ module.exports = TileSprite; /***/ }), -/* 199 */ +/* 196 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -42495,12 +42377,12 @@ module.exports = TileSprite; var Class = __webpack_require__(0); var Clamp = __webpack_require__(22); var Components = __webpack_require__(11); -var Events = __webpack_require__(90); +var Events = __webpack_require__(89); var GameEvents = __webpack_require__(18); var GameObject = __webpack_require__(13); var SoundEvents = __webpack_require__(59); -var UUID = __webpack_require__(195); -var VideoRender = __webpack_require__(993); +var UUID = __webpack_require__(192); +var VideoRender = __webpack_require__(992); var MATH_CONST = __webpack_require__(15); /** @@ -44252,7 +44134,7 @@ module.exports = Video; /***/ }), -/* 200 */ +/* 197 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -44262,8 +44144,8 @@ module.exports = Video; */ var Class = __webpack_require__(0); -var Contains = __webpack_require__(201); -var GetPoints = __webpack_require__(416); +var Contains = __webpack_require__(198); +var GetPoints = __webpack_require__(414); var GEOM_CONST = __webpack_require__(46); /** @@ -44486,7 +44368,7 @@ module.exports = Polygon; /***/ }), -/* 201 */ +/* 198 */ /***/ (function(module, exports) { /** @@ -44535,7 +44417,7 @@ module.exports = Contains; /***/ }), -/* 202 */ +/* 199 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -44545,7 +44427,7 @@ module.exports = Contains; */ var Class = __webpack_require__(0); -var Mesh = __webpack_require__(130); +var Mesh = __webpack_require__(129); /** * @classdesc @@ -45196,7 +45078,7 @@ module.exports = Quad; /***/ }), -/* 203 */ +/* 200 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -45210,8 +45092,8 @@ var Components = __webpack_require__(11); var GameObject = __webpack_require__(13); var GetFastValue = __webpack_require__(2); var Extend = __webpack_require__(17); -var SetValue = __webpack_require__(424); -var ShaderRender = __webpack_require__(1076); +var SetValue = __webpack_require__(422); +var ShaderRender = __webpack_require__(1075); var TransformMatrix = __webpack_require__(30); /** @@ -46419,7 +46301,7 @@ module.exports = Shader; /***/ }), -/* 204 */ +/* 201 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46450,7 +46332,7 @@ module.exports = CircleToCircle; /***/ }), -/* 205 */ +/* 202 */ /***/ (function(module, exports) { /** @@ -46504,7 +46386,7 @@ module.exports = CircleToRectangle; /***/ }), -/* 206 */ +/* 203 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46515,7 +46397,7 @@ module.exports = CircleToRectangle; */ var Point = __webpack_require__(4); -var LineToCircle = __webpack_require__(207); +var LineToCircle = __webpack_require__(204); /** * Checks for intersection between the line segment and circle, @@ -46596,7 +46478,7 @@ module.exports = GetLineToCircle; /***/ }), -/* 207 */ +/* 204 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46680,7 +46562,7 @@ module.exports = LineToCircle; /***/ }), -/* 208 */ +/* 205 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46691,8 +46573,8 @@ module.exports = LineToCircle; */ var Point = __webpack_require__(4); -var LineToLine = __webpack_require__(84); -var LineToRectangle = __webpack_require__(429); +var LineToLine = __webpack_require__(83); +var LineToRectangle = __webpack_require__(427); /** * Checks for intersection between the Line and a Rectangle shape, @@ -46740,7 +46622,7 @@ module.exports = GetLineToRectangle; /***/ }), -/* 209 */ +/* 206 */ /***/ (function(module, exports) { /** @@ -46827,7 +46709,7 @@ module.exports = ContainsArray; /***/ }), -/* 210 */ +/* 207 */ /***/ (function(module, exports) { /** @@ -46875,7 +46757,7 @@ module.exports = RotateAroundXY; /***/ }), -/* 211 */ +/* 208 */ /***/ (function(module, exports) { /** @@ -46903,7 +46785,7 @@ module.exports = GetAspectRatio; /***/ }), -/* 212 */ +/* 209 */ /***/ (function(module, exports) { /** @@ -46957,7 +46839,7 @@ module.exports = RotateAroundXY; /***/ }), -/* 213 */ +/* 210 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46972,18 +46854,18 @@ module.exports = RotateAroundXY; module.exports = { - BUTTON_DOWN: __webpack_require__(1198), - BUTTON_UP: __webpack_require__(1199), - CONNECTED: __webpack_require__(1200), - DISCONNECTED: __webpack_require__(1201), - GAMEPAD_BUTTON_DOWN: __webpack_require__(1202), - GAMEPAD_BUTTON_UP: __webpack_require__(1203) + BUTTON_DOWN: __webpack_require__(1197), + BUTTON_UP: __webpack_require__(1198), + CONNECTED: __webpack_require__(1199), + DISCONNECTED: __webpack_require__(1200), + GAMEPAD_BUTTON_DOWN: __webpack_require__(1201), + GAMEPAD_BUTTON_UP: __webpack_require__(1202) }; /***/ }), -/* 214 */ +/* 211 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46993,7 +46875,7 @@ module.exports = { */ var Extend = __webpack_require__(17); -var XHRSettings = __webpack_require__(135); +var XHRSettings = __webpack_require__(134); /** * Takes two XHRSettings Objects and creates a new XHRSettings object from them. @@ -47031,7 +46913,7 @@ module.exports = MergeXHRSettings; /***/ }), -/* 215 */ +/* 212 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47041,12 +46923,12 @@ module.exports = MergeXHRSettings; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); -var ParseXML = __webpack_require__(363); +var ParseXML = __webpack_require__(361); /** * @classdesc @@ -47216,7 +47098,7 @@ module.exports = XMLFile; /***/ }), -/* 216 */ +/* 213 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47231,24 +47113,24 @@ module.exports = XMLFile; module.exports = { - Acceleration: __webpack_require__(1258), - Angular: __webpack_require__(1259), - Bounce: __webpack_require__(1260), - Debug: __webpack_require__(1261), - Drag: __webpack_require__(1262), - Enable: __webpack_require__(1263), - Friction: __webpack_require__(1264), - Gravity: __webpack_require__(1265), - Immovable: __webpack_require__(1266), - Mass: __webpack_require__(1267), - Size: __webpack_require__(1268), - Velocity: __webpack_require__(1269) + Acceleration: __webpack_require__(1257), + Angular: __webpack_require__(1258), + Bounce: __webpack_require__(1259), + Debug: __webpack_require__(1260), + Drag: __webpack_require__(1261), + Enable: __webpack_require__(1262), + Friction: __webpack_require__(1263), + Gravity: __webpack_require__(1264), + Immovable: __webpack_require__(1265), + Mass: __webpack_require__(1266), + Size: __webpack_require__(1267), + Velocity: __webpack_require__(1268) }; /***/ }), -/* 217 */ +/* 214 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47263,21 +47145,21 @@ module.exports = { module.exports = { - COLLIDE: __webpack_require__(1271), - OVERLAP: __webpack_require__(1272), - PAUSE: __webpack_require__(1273), - RESUME: __webpack_require__(1274), - TILE_COLLIDE: __webpack_require__(1275), - TILE_OVERLAP: __webpack_require__(1276), - WORLD_BOUNDS: __webpack_require__(1277), - WORLD_STEP: __webpack_require__(1278) + COLLIDE: __webpack_require__(1270), + OVERLAP: __webpack_require__(1271), + PAUSE: __webpack_require__(1272), + RESUME: __webpack_require__(1273), + TILE_COLLIDE: __webpack_require__(1274), + TILE_OVERLAP: __webpack_require__(1275), + WORLD_BOUNDS: __webpack_require__(1276), + WORLD_STEP: __webpack_require__(1277) }; /***/ }), -/* 218 */, -/* 219 */ +/* 215 */, +/* 216 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47286,7 +47168,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTileAt = __webpack_require__(138); +var GetTileAt = __webpack_require__(137); /** * Calculates interesting faces at the given tile coordinates of the specified layer. Interesting @@ -47353,7 +47235,7 @@ module.exports = CalculateFacesAt; /***/ }), -/* 220 */ +/* 217 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47362,10 +47244,87 @@ module.exports = CalculateFacesAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tile = __webpack_require__(75); -var IsInLayerBounds = __webpack_require__(103); -var CalculateFacesAt = __webpack_require__(219); -var SetTileCollision = __webpack_require__(74); +var TileToWorldX = __webpack_require__(470); +var TileToWorldY = __webpack_require__(471); +var Vector2 = __webpack_require__(3); + +/** + * Converts from tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.TileToWorldXY + * @private + * @since 3.0.0 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {integer} tileY - The y coordinate, in tiles, not pixels. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in world coordinates. + */ +var TileToWorldXY = function (tileX, tileY, point, camera, layer) +{ + var orientation = layer.orientation; + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (point === undefined) { point = new Vector2(0, 0); } + + + + + + if (orientation === 'orthogonal') + { + point.x = TileToWorldX(tileX, camera, layer, orientation); + point.y = TileToWorldY(tileY, camera, layer, orientation); + } + else if (orientation === 'isometric') + { + + var layerWorldX = 0; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + tileWidth *= tilemapLayer.scaleX; + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + + + point.x = layerWorldX + (tileX - tileY) * (tileWidth / 2); + point.y = layerWorldY + (tileX + tileY) * (tileHeight / 2); + + } + + return point; +}; + +module.exports = TileToWorldXY; + + +/***/ }), +/* 218 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var Tile = __webpack_require__(73); +var IsInLayerBounds = __webpack_require__(100); +var CalculateFacesAt = __webpack_require__(216); +var SetTileCollision = __webpack_require__(71); /** * Puts a tile at the given tile coordinates in the specified layer. You can pass in either an index @@ -47415,6 +47374,7 @@ var PutTileAt = function (tile, tileX, tileY, recalculateFaces, layer) layer.data[tileY][tileX].index = index; } } + // Updating colliding flag on the new tile var newTile = layer.data[tileY][tileX]; var collides = layer.collideIndexes.indexOf(newTile.index) !== -1; @@ -47434,7 +47394,7 @@ module.exports = PutTileAt; /***/ }), -/* 221 */ +/* 219 */ /***/ (function(module, exports) { /** @@ -47473,7 +47433,7 @@ module.exports = SetLayerCollisionIndex; /***/ }), -/* 222 */ +/* 220 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47482,10 +47442,10 @@ module.exports = SetLayerCollisionIndex; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Formats = __webpack_require__(32); -var LayerData = __webpack_require__(104); -var MapData = __webpack_require__(105); -var Tile = __webpack_require__(75); +var Formats = __webpack_require__(33); +var LayerData = __webpack_require__(101); +var MapData = __webpack_require__(102); +var Tile = __webpack_require__(73); /** * Parses a 2D array of tile indexes into a new MapData object with a single layer. @@ -47512,7 +47472,6 @@ var Parse2DArray = function (name, data, tileWidth, tileHeight, insertNull) tileWidth: tileWidth, tileHeight: tileHeight }); - console.log("parsing 2D array") var mapData = new MapData({ name: name, tileWidth: tileWidth, @@ -47565,7 +47524,7 @@ module.exports = Parse2DArray; /***/ }), -/* 223 */ +/* 221 */ /***/ (function(module, exports) { /** @@ -47655,7 +47614,7 @@ module.exports = ParseGID; /***/ }), -/* 224 */ +/* 222 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47716,7 +47675,7 @@ module.exports = CreateGroupLayer; /***/ }), -/* 225 */ +/* 223 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47725,8 +47684,8 @@ module.exports = CreateGroupLayer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Pick = __webpack_require__(486); -var ParseGID = __webpack_require__(223); +var Pick = __webpack_require__(485); +var ParseGID = __webpack_require__(221); var copyPoints = function (p) { return { x: p.x, y: p.y }; }; @@ -47798,7 +47757,7 @@ module.exports = ParseObject; /***/ }), -/* 226 */ +/* 224 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47807,10 +47766,10 @@ module.exports = ParseObject; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Formats = __webpack_require__(32); -var MapData = __webpack_require__(105); -var Parse = __webpack_require__(478); -var Tilemap = __webpack_require__(494); +var Formats = __webpack_require__(33); +var MapData = __webpack_require__(102); +var Parse = __webpack_require__(477); +var Tilemap = __webpack_require__(493); /** * Create a Tilemap from the given key or data. If neither is given, make a blank Tilemap. When @@ -47869,7 +47828,7 @@ var ParseToTilemap = function (scene, key, tileWidth, tileHeight, width, height, if (mapData === null) { - console.log("null mapdata") + console.log('null mapdata'); mapData = new MapData({ tileWidth: tileWidth, tileHeight: tileHeight, @@ -47885,7 +47844,7 @@ module.exports = ParseToTilemap; /***/ }), -/* 227 */ +/* 225 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -47934,7 +47893,7 @@ module.exports = GetTargets; /***/ }), -/* 228 */ +/* 226 */ /***/ (function(module, exports) { /** @@ -48202,7 +48161,7 @@ module.exports = GetValueOp; /***/ }), -/* 229 */ +/* 227 */ /***/ (function(module, exports) { /** @@ -48246,7 +48205,7 @@ module.exports = TWEEN_DEFAULTS; /***/ }), -/* 230 */ +/* 228 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -48256,11 +48215,11 @@ module.exports = TWEEN_DEFAULTS; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(231); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(229); var GameObjectCreator = __webpack_require__(16); var GameObjectFactory = __webpack_require__(5); -var TWEEN_CONST = __webpack_require__(89); +var TWEEN_CONST = __webpack_require__(88); var MATH_CONST = __webpack_require__(15); /** @@ -49890,7 +49849,7 @@ module.exports = Tween; /***/ }), -/* 231 */ +/* 229 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -49905,25 +49864,25 @@ module.exports = Tween; module.exports = { - TIMELINE_COMPLETE: __webpack_require__(1354), - TIMELINE_LOOP: __webpack_require__(1355), - TIMELINE_PAUSE: __webpack_require__(1356), - TIMELINE_RESUME: __webpack_require__(1357), - TIMELINE_START: __webpack_require__(1358), - TIMELINE_UPDATE: __webpack_require__(1359), - TWEEN_ACTIVE: __webpack_require__(1360), - TWEEN_COMPLETE: __webpack_require__(1361), - TWEEN_LOOP: __webpack_require__(1362), - TWEEN_REPEAT: __webpack_require__(1363), - TWEEN_START: __webpack_require__(1364), - TWEEN_UPDATE: __webpack_require__(1365), - TWEEN_YOYO: __webpack_require__(1366) + TIMELINE_COMPLETE: __webpack_require__(1350), + TIMELINE_LOOP: __webpack_require__(1351), + TIMELINE_PAUSE: __webpack_require__(1352), + TIMELINE_RESUME: __webpack_require__(1353), + TIMELINE_START: __webpack_require__(1354), + TIMELINE_UPDATE: __webpack_require__(1355), + TWEEN_ACTIVE: __webpack_require__(1356), + TWEEN_COMPLETE: __webpack_require__(1357), + TWEEN_LOOP: __webpack_require__(1358), + TWEEN_REPEAT: __webpack_require__(1359), + TWEEN_START: __webpack_require__(1360), + TWEEN_UPDATE: __webpack_require__(1361), + TWEEN_YOYO: __webpack_require__(1362) }; /***/ }), -/* 232 */ +/* 230 */ /***/ (function(module, exports) { /** @@ -50050,7 +50009,7 @@ module.exports = TweenData; /***/ }), -/* 233 */ +/* 231 */ /***/ (function(module, exports) { /** @@ -50104,7 +50063,7 @@ module.exports = ScaleModes; /***/ }), -/* 234 */ +/* 232 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50136,7 +50095,7 @@ module.exports = Wrap; /***/ }), -/* 235 */ +/* 233 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50168,7 +50127,7 @@ module.exports = WrapDegrees; /***/ }), -/* 236 */ +/* 234 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50179,14 +50138,14 @@ module.exports = WrapDegrees; */ var Class = __webpack_require__(0); -var Earcut = __webpack_require__(66); +var Earcut = __webpack_require__(64); var GetFastValue = __webpack_require__(2); -var ModelViewProjection = __webpack_require__(237); -var ShaderSourceFS = __webpack_require__(339); -var ShaderSourceVS = __webpack_require__(340); +var ModelViewProjection = __webpack_require__(235); +var ShaderSourceFS = __webpack_require__(337); +var ShaderSourceVS = __webpack_require__(338); var TransformMatrix = __webpack_require__(30); -var Utils = __webpack_require__(10); -var WebGLPipeline = __webpack_require__(145); +var Utils = __webpack_require__(9); +var WebGLPipeline = __webpack_require__(142); /** * @classdesc @@ -51676,7 +51635,7 @@ module.exports = TextureTintPipeline; /***/ }), -/* 237 */ +/* 235 */ /***/ (function(module, exports) { /** @@ -52426,9 +52385,9 @@ module.exports = ModelViewProjection; /***/ }), -/* 238 */, -/* 239 */, -/* 240 */ +/* 236 */, +/* 237 */, +/* 238 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52443,65 +52402,65 @@ module.exports = ModelViewProjection; module.exports = { - AlignTo: __webpack_require__(527), - Angle: __webpack_require__(528), - Call: __webpack_require__(529), - GetFirst: __webpack_require__(530), - GetLast: __webpack_require__(531), - GridAlign: __webpack_require__(532), - IncAlpha: __webpack_require__(593), - IncX: __webpack_require__(594), - IncXY: __webpack_require__(595), - IncY: __webpack_require__(596), - PlaceOnCircle: __webpack_require__(597), - PlaceOnEllipse: __webpack_require__(598), - PlaceOnLine: __webpack_require__(599), - PlaceOnRectangle: __webpack_require__(600), - PlaceOnTriangle: __webpack_require__(601), - PlayAnimation: __webpack_require__(602), + AlignTo: __webpack_require__(526), + Angle: __webpack_require__(527), + Call: __webpack_require__(528), + GetFirst: __webpack_require__(529), + GetLast: __webpack_require__(530), + GridAlign: __webpack_require__(531), + IncAlpha: __webpack_require__(592), + IncX: __webpack_require__(593), + IncXY: __webpack_require__(594), + IncY: __webpack_require__(595), + PlaceOnCircle: __webpack_require__(596), + PlaceOnEllipse: __webpack_require__(597), + PlaceOnLine: __webpack_require__(598), + PlaceOnRectangle: __webpack_require__(599), + PlaceOnTriangle: __webpack_require__(600), + PlayAnimation: __webpack_require__(601), PropertyValueInc: __webpack_require__(34), PropertyValueSet: __webpack_require__(25), - RandomCircle: __webpack_require__(603), - RandomEllipse: __webpack_require__(604), - RandomLine: __webpack_require__(605), - RandomRectangle: __webpack_require__(606), - RandomTriangle: __webpack_require__(607), - Rotate: __webpack_require__(608), - RotateAround: __webpack_require__(609), - RotateAroundDistance: __webpack_require__(610), - ScaleX: __webpack_require__(611), - ScaleXY: __webpack_require__(612), - ScaleY: __webpack_require__(613), - SetAlpha: __webpack_require__(614), - SetBlendMode: __webpack_require__(615), - SetDepth: __webpack_require__(616), - SetHitArea: __webpack_require__(617), - SetOrigin: __webpack_require__(618), - SetRotation: __webpack_require__(619), - SetScale: __webpack_require__(620), - SetScaleX: __webpack_require__(621), - SetScaleY: __webpack_require__(622), - SetScrollFactor: __webpack_require__(623), - SetScrollFactorX: __webpack_require__(624), - SetScrollFactorY: __webpack_require__(625), - SetTint: __webpack_require__(626), - SetVisible: __webpack_require__(627), - SetX: __webpack_require__(628), - SetXY: __webpack_require__(629), - SetY: __webpack_require__(630), - ShiftPosition: __webpack_require__(631), - Shuffle: __webpack_require__(632), - SmootherStep: __webpack_require__(633), - SmoothStep: __webpack_require__(634), - Spread: __webpack_require__(635), - ToggleVisible: __webpack_require__(636), - WrapInRectangle: __webpack_require__(637) + RandomCircle: __webpack_require__(602), + RandomEllipse: __webpack_require__(603), + RandomLine: __webpack_require__(604), + RandomRectangle: __webpack_require__(605), + RandomTriangle: __webpack_require__(606), + Rotate: __webpack_require__(607), + RotateAround: __webpack_require__(608), + RotateAroundDistance: __webpack_require__(609), + ScaleX: __webpack_require__(610), + ScaleXY: __webpack_require__(611), + ScaleY: __webpack_require__(612), + SetAlpha: __webpack_require__(613), + SetBlendMode: __webpack_require__(614), + SetDepth: __webpack_require__(615), + SetHitArea: __webpack_require__(616), + SetOrigin: __webpack_require__(617), + SetRotation: __webpack_require__(618), + SetScale: __webpack_require__(619), + SetScaleX: __webpack_require__(620), + SetScaleY: __webpack_require__(621), + SetScrollFactor: __webpack_require__(622), + SetScrollFactorX: __webpack_require__(623), + SetScrollFactorY: __webpack_require__(624), + SetTint: __webpack_require__(625), + SetVisible: __webpack_require__(626), + SetX: __webpack_require__(627), + SetXY: __webpack_require__(628), + SetY: __webpack_require__(629), + ShiftPosition: __webpack_require__(630), + Shuffle: __webpack_require__(631), + SmootherStep: __webpack_require__(632), + SmoothStep: __webpack_require__(633), + Spread: __webpack_require__(634), + ToggleVisible: __webpack_require__(635), + WrapInRectangle: __webpack_require__(636) }; /***/ }), -/* 241 */ +/* 239 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52510,22 +52469,22 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ALIGN_CONST = __webpack_require__(106); +var ALIGN_CONST = __webpack_require__(103); var AlignToMap = []; -AlignToMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(242); -AlignToMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(243); -AlignToMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(244); -AlignToMap[ALIGN_CONST.LEFT_BOTTOM] = __webpack_require__(245); -AlignToMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(246); -AlignToMap[ALIGN_CONST.LEFT_TOP] = __webpack_require__(247); -AlignToMap[ALIGN_CONST.RIGHT_BOTTOM] = __webpack_require__(248); -AlignToMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(249); -AlignToMap[ALIGN_CONST.RIGHT_TOP] = __webpack_require__(250); -AlignToMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(251); -AlignToMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(252); -AlignToMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(253); +AlignToMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(240); +AlignToMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(241); +AlignToMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(242); +AlignToMap[ALIGN_CONST.LEFT_BOTTOM] = __webpack_require__(243); +AlignToMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(244); +AlignToMap[ALIGN_CONST.LEFT_TOP] = __webpack_require__(245); +AlignToMap[ALIGN_CONST.RIGHT_BOTTOM] = __webpack_require__(246); +AlignToMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(247); +AlignToMap[ALIGN_CONST.RIGHT_TOP] = __webpack_require__(248); +AlignToMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(249); +AlignToMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(250); +AlignToMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(251); /** * Takes a Game Object and aligns it next to another, at the given position. @@ -52553,7 +52512,7 @@ module.exports = QuickSet; /***/ }), -/* 242 */ +/* 240 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52563,8 +52522,8 @@ module.exports = QuickSet; */ var GetBottom = __webpack_require__(38); -var GetCenterX = __webpack_require__(76); -var SetCenterX = __webpack_require__(77); +var GetCenterX = __webpack_require__(75); +var SetCenterX = __webpack_require__(76); var SetTop = __webpack_require__(39); /** @@ -52597,7 +52556,7 @@ module.exports = BottomCenter; /***/ }), -/* 243 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52641,7 +52600,7 @@ module.exports = BottomLeft; /***/ }), -/* 244 */ +/* 242 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52685,7 +52644,7 @@ module.exports = BottomRight; /***/ }), -/* 245 */ +/* 243 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52729,7 +52688,7 @@ module.exports = LeftBottom; /***/ }), -/* 246 */ +/* 244 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52738,9 +52697,9 @@ module.exports = LeftBottom; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(78); +var GetCenterY = __webpack_require__(77); var GetLeft = __webpack_require__(40); -var SetCenterY = __webpack_require__(79); +var SetCenterY = __webpack_require__(78); var SetRight = __webpack_require__(43); /** @@ -52773,7 +52732,7 @@ module.exports = LeftCenter; /***/ }), -/* 247 */ +/* 245 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52817,7 +52776,7 @@ module.exports = LeftTop; /***/ }), -/* 248 */ +/* 246 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52861,7 +52820,7 @@ module.exports = RightBottom; /***/ }), -/* 249 */ +/* 247 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52870,9 +52829,9 @@ module.exports = RightBottom; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(78); +var GetCenterY = __webpack_require__(77); var GetRight = __webpack_require__(42); -var SetCenterY = __webpack_require__(79); +var SetCenterY = __webpack_require__(78); var SetLeft = __webpack_require__(41); /** @@ -52905,7 +52864,7 @@ module.exports = RightCenter; /***/ }), -/* 250 */ +/* 248 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52949,7 +52908,7 @@ module.exports = RightTop; /***/ }), -/* 251 */ +/* 249 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52958,10 +52917,10 @@ module.exports = RightTop; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterX = __webpack_require__(76); +var GetCenterX = __webpack_require__(75); var GetTop = __webpack_require__(45); var SetBottom = __webpack_require__(44); -var SetCenterX = __webpack_require__(77); +var SetCenterX = __webpack_require__(76); /** * Takes given Game Object and aligns it so that it is positioned next to the top center position of the other. @@ -52993,7 +52952,7 @@ module.exports = TopCenter; /***/ }), -/* 252 */ +/* 250 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53037,7 +52996,7 @@ module.exports = TopLeft; /***/ }), -/* 253 */ +/* 251 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53081,7 +53040,7 @@ module.exports = TopRight; /***/ }), -/* 254 */ +/* 252 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53090,19 +53049,19 @@ module.exports = TopRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ALIGN_CONST = __webpack_require__(106); +var ALIGN_CONST = __webpack_require__(103); var AlignInMap = []; -AlignInMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(255); -AlignInMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(256); -AlignInMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(257); -AlignInMap[ALIGN_CONST.CENTER] = __webpack_require__(258); -AlignInMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(260); -AlignInMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(261); -AlignInMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(262); -AlignInMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(263); -AlignInMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(264); +AlignInMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(253); +AlignInMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(254); +AlignInMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(255); +AlignInMap[ALIGN_CONST.CENTER] = __webpack_require__(256); +AlignInMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(258); +AlignInMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(259); +AlignInMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(260); +AlignInMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(261); +AlignInMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(262); AlignInMap[ALIGN_CONST.LEFT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_LEFT]; AlignInMap[ALIGN_CONST.LEFT_TOP] = AlignInMap[ALIGN_CONST.TOP_LEFT]; AlignInMap[ALIGN_CONST.RIGHT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_RIGHT]; @@ -53134,7 +53093,7 @@ module.exports = QuickSet; /***/ }), -/* 255 */ +/* 253 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53144,9 +53103,9 @@ module.exports = QuickSet; */ var GetBottom = __webpack_require__(38); -var GetCenterX = __webpack_require__(76); +var GetCenterX = __webpack_require__(75); var SetBottom = __webpack_require__(44); -var SetCenterX = __webpack_require__(77); +var SetCenterX = __webpack_require__(76); /** * Takes given Game Object and aligns it so that it is positioned in the bottom center of the other. @@ -53178,7 +53137,7 @@ module.exports = BottomCenter; /***/ }), -/* 256 */ +/* 254 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53222,7 +53181,7 @@ module.exports = BottomLeft; /***/ }), -/* 257 */ +/* 255 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53266,7 +53225,7 @@ module.exports = BottomRight; /***/ }), -/* 258 */ +/* 256 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53275,9 +53234,9 @@ module.exports = BottomRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CenterOn = __webpack_require__(259); -var GetCenterX = __webpack_require__(76); -var GetCenterY = __webpack_require__(78); +var CenterOn = __webpack_require__(257); +var GetCenterX = __webpack_require__(75); +var GetCenterY = __webpack_require__(77); /** * Takes given Game Object and aligns it so that it is positioned in the center of the other. @@ -53308,7 +53267,7 @@ module.exports = Center; /***/ }), -/* 259 */ +/* 257 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53317,8 +53276,8 @@ module.exports = Center; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetCenterX = __webpack_require__(77); -var SetCenterY = __webpack_require__(79); +var SetCenterX = __webpack_require__(76); +var SetCenterY = __webpack_require__(78); /** * Positions the Game Object so that it is centered on the given coordinates. @@ -53345,7 +53304,7 @@ module.exports = CenterOn; /***/ }), -/* 260 */ +/* 258 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53354,9 +53313,9 @@ module.exports = CenterOn; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(78); +var GetCenterY = __webpack_require__(77); var GetLeft = __webpack_require__(40); -var SetCenterY = __webpack_require__(79); +var SetCenterY = __webpack_require__(78); var SetLeft = __webpack_require__(41); /** @@ -53389,7 +53348,7 @@ module.exports = LeftCenter; /***/ }), -/* 261 */ +/* 259 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53398,9 +53357,9 @@ module.exports = LeftCenter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(78); +var GetCenterY = __webpack_require__(77); var GetRight = __webpack_require__(42); -var SetCenterY = __webpack_require__(79); +var SetCenterY = __webpack_require__(78); var SetRight = __webpack_require__(43); /** @@ -53433,7 +53392,7 @@ module.exports = RightCenter; /***/ }), -/* 262 */ +/* 260 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53442,9 +53401,9 @@ module.exports = RightCenter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterX = __webpack_require__(76); +var GetCenterX = __webpack_require__(75); var GetTop = __webpack_require__(45); -var SetCenterX = __webpack_require__(77); +var SetCenterX = __webpack_require__(76); var SetTop = __webpack_require__(39); /** @@ -53477,7 +53436,7 @@ module.exports = TopCenter; /***/ }), -/* 263 */ +/* 261 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53521,7 +53480,7 @@ module.exports = TopLeft; /***/ }), -/* 264 */ +/* 262 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53565,7 +53524,7 @@ module.exports = TopRight; /***/ }), -/* 265 */ +/* 263 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53574,8 +53533,8 @@ module.exports = TopRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CircumferencePoint = __webpack_require__(147); -var FromPercent = __webpack_require__(87); +var CircumferencePoint = __webpack_require__(144); +var FromPercent = __webpack_require__(86); var MATH_CONST = __webpack_require__(15); var Point = __webpack_require__(4); @@ -53608,7 +53567,7 @@ module.exports = GetPoint; /***/ }), -/* 266 */ +/* 264 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53617,9 +53576,9 @@ module.exports = GetPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circumference = __webpack_require__(267); -var CircumferencePoint = __webpack_require__(147); -var FromPercent = __webpack_require__(87); +var Circumference = __webpack_require__(265); +var CircumferencePoint = __webpack_require__(144); +var FromPercent = __webpack_require__(86); var MATH_CONST = __webpack_require__(15); /** @@ -53660,7 +53619,7 @@ module.exports = GetPoints; /***/ }), -/* 267 */ +/* 265 */ /***/ (function(module, exports) { /** @@ -53688,7 +53647,7 @@ module.exports = Circumference; /***/ }), -/* 268 */ +/* 266 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -53798,7 +53757,7 @@ module.exports = AlphaSingle; /***/ }), -/* 269 */ +/* 267 */ /***/ (function(module, exports) { /** @@ -53882,7 +53841,7 @@ module.exports = FindClosestInSorted; /***/ }), -/* 270 */ +/* 268 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54056,7 +54015,7 @@ module.exports = AnimationFrame; /***/ }), -/* 271 */ +/* 269 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54178,7 +54137,7 @@ module.exports = BlendMode; /***/ }), -/* 272 */ +/* 270 */ /***/ (function(module, exports) { /** @@ -54271,7 +54230,7 @@ module.exports = Depth; /***/ }), -/* 273 */ +/* 271 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54280,8 +54239,8 @@ module.exports = Depth; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetPoint = __webpack_require__(150); -var Perimeter = __webpack_require__(112); +var GetPoint = __webpack_require__(147); +var Perimeter = __webpack_require__(109); // Return an array of points from the perimeter of the rectangle // each spaced out based on the quantity or step required @@ -54325,7 +54284,7 @@ module.exports = GetPoints; /***/ }), -/* 274 */ +/* 272 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54364,7 +54323,7 @@ module.exports = GetPoint; /***/ }), -/* 275 */ +/* 273 */ /***/ (function(module, exports) { /** @@ -54404,7 +54363,7 @@ module.exports = RotateAround; /***/ }), -/* 276 */ +/* 274 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54413,8 +54372,8 @@ module.exports = RotateAround; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapMask = __webpack_require__(277); -var GeometryMask = __webpack_require__(278); +var BitmapMask = __webpack_require__(275); +var GeometryMask = __webpack_require__(276); /** * Provides methods used for getting and setting the mask of a Game Object. @@ -54551,7 +54510,7 @@ module.exports = Mask; /***/ }), -/* 277 */ +/* 275 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54844,7 +54803,7 @@ module.exports = BitmapMask; /***/ }), -/* 278 */ +/* 276 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -55159,7 +55118,7 @@ module.exports = GeometryMask; /***/ }), -/* 279 */ +/* 277 */ /***/ (function(module, exports) { /** @@ -55266,7 +55225,7 @@ module.exports = ScrollFactor; /***/ }), -/* 280 */ +/* 278 */ /***/ (function(module, exports) { /** @@ -55327,7 +55286,7 @@ module.exports = ToJSON; /***/ }), -/* 281 */ +/* 279 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -55338,8 +55297,8 @@ module.exports = ToJSON; var MATH_CONST = __webpack_require__(15); var TransformMatrix = __webpack_require__(30); -var WrapAngle = __webpack_require__(234); -var WrapAngleDegrees = __webpack_require__(235); +var WrapAngle = __webpack_require__(232); +var WrapAngleDegrees = __webpack_require__(233); // global bitmask flag for GameObject.renderMask (used by Scale) var _FLAG = 4; // 0100 @@ -55866,7 +55825,7 @@ module.exports = Transform; /***/ }), -/* 282 */ +/* 280 */ /***/ (function(module, exports) { /** @@ -55955,7 +55914,7 @@ module.exports = Visible; /***/ }), -/* 283 */ +/* 281 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -55970,16 +55929,16 @@ module.exports = Visible; module.exports = { - CHANGE_DATA: __webpack_require__(578), - CHANGE_DATA_KEY: __webpack_require__(579), - REMOVE_DATA: __webpack_require__(580), - SET_DATA: __webpack_require__(581) + CHANGE_DATA: __webpack_require__(577), + CHANGE_DATA_KEY: __webpack_require__(578), + REMOVE_DATA: __webpack_require__(579), + SET_DATA: __webpack_require__(580) }; /***/ }), -/* 284 */ +/* 282 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -55988,25 +55947,25 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Perimeter = __webpack_require__(112); +var Perimeter = __webpack_require__(109); var Point = __webpack_require__(4); /** - * Return an array of points from the perimeter of the rectangle - * each spaced out based on the quantity or step required + * Returns an array of points from the perimeter of the Rectangle, where each point is spaced out based + * on either the `step` value, or the `quantity`. * * @function Phaser.Geom.Rectangle.MarchingAnts * @since 3.0.0 * * @generic {Phaser.Geom.Point[]} O - [out,$return] * - * @param {Phaser.Geom.Rectangle} rect - [description] - * @param {number} step - [description] - * @param {integer} quantity - [description] - * @param {(array|Phaser.Geom.Point[])} [out] - [description] + * @param {Phaser.Geom.Rectangle} rect - The Rectangle to get the perimeter points from. + * @param {number} [step] - The distance between each point of the perimeter. Set to `null` if you wish to use the `quantity` parameter instead. + * @param {integer} [quantity] - The total number of points to return. The step is then calculated based on the length of the Rectangle, divided by this value. + * @param {(array|Phaser.Geom.Point[])} [out] - An array in which the perimeter points will be stored. If not given, a new array instance is created. * - * @return {(array|Phaser.Geom.Point[])} [description] + * @return {(array|Phaser.Geom.Point[])} An array containing the perimeter points from the Rectangle. */ var MarchingAnts = function (rect, step, quantity, out) { @@ -56098,7 +56057,7 @@ module.exports = MarchingAnts; /***/ }), -/* 285 */ +/* 283 */ /***/ (function(module, exports) { /** @@ -56138,7 +56097,7 @@ module.exports = RotateLeft; /***/ }), -/* 286 */ +/* 284 */ /***/ (function(module, exports) { /** @@ -56178,7 +56137,7 @@ module.exports = RotateRight; /***/ }), -/* 287 */ +/* 285 */ /***/ (function(module, exports) { /** @@ -56252,7 +56211,7 @@ module.exports = BresenhamPoints; /***/ }), -/* 288 */ +/* 286 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -56261,14 +56220,14 @@ module.exports = BresenhamPoints; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Animation = __webpack_require__(149); +var Animation = __webpack_require__(146); var Class = __webpack_require__(0); -var CustomMap = __webpack_require__(160); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(111); +var CustomMap = __webpack_require__(157); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(108); var GameEvents = __webpack_require__(18); var GetValue = __webpack_require__(6); -var Pad = __webpack_require__(161); +var Pad = __webpack_require__(158); /** * @classdesc @@ -56519,7 +56478,34 @@ var AnimationManager = new Class({ }, /** - * [description] + * Generate an array of {@link Phaser.Types.Animations.AnimationFrame} objects from a texture key and configuration object. + * + * Generates objects with string based frame names, as configured by the given {@link Phaser.Types.Animations.GenerateFrameNames}. + * + * It's a helper method, designed to make it easier for you to extract all of the frame names from texture atlases. + * If you're working with a sprite sheet, see the `generateFrameNumbers` method instead. + * + * Example: + * + * If you have a texture atlases loaded called `gems` and it contains 6 frames called `ruby_0001`, `ruby_0002`, and so on, + * then you can call this method using: `this.anims.generateFrameNames('gems', { prefix: 'ruby_', end: 6, zeroPad: 4 })`. + * + * The `end` value tells it to look for 6 frames, incrementally numbered, all starting with the prefix `ruby_`. The `zeroPad` + * value tells it how many zeroes pad out the numbers. To create an animation using this method, you can do: + * + * ```javascript + * this.anims.create({ + * key: 'ruby', + * repeat: -1, + * frames: this.anims.generateFrameNames('gems', { + * prefix: 'ruby_', + * end: 6, + * zeroPad: 4 + * }) + * }); + * ``` + * + * Please see the animation examples for further details. * * @method Phaser.Animations.AnimationManager#generateFrameNames * @since 3.0.0 @@ -56597,6 +56583,8 @@ var AnimationManager = new Class({ * Generate an array of {@link Phaser.Types.Animations.AnimationFrame} objects from a texture key and configuration object. * * Generates objects with numbered frame names, as configured by the given {@link Phaser.Types.Animations.GenerateFrameNumbers}. + * + * If you're working with a texture atlas, see the `generateFrameNames` method instead. * * @method Phaser.Animations.AnimationManager#generateFrameNumbers * @since 3.0.0 @@ -56762,7 +56750,10 @@ var AnimationManager = new Class({ }, /** - * Remove an animation. + * Removes an Animation from this Animation Manager, based on the given key. + * + * This is a global action. Once an Animation has been removed, no Game Objects + * can carry on using it. * * @method Phaser.Animations.AnimationManager#remove * @fires Phaser.Animations.Events#REMOVE_ANIMATION @@ -56770,7 +56761,7 @@ var AnimationManager = new Class({ * * @param {string} key - The key of the animation to remove. * - * @return {Phaser.Animations.Animation} [description] + * @return {Phaser.Animations.Animation} The Animation instance that was removed from the Animation Manager. */ remove: function (key) { @@ -56848,35 +56839,36 @@ var AnimationManager = new Class({ }, /** - * Get the animation data as javascript object by giving key, or get the data of all animations as array of objects, if key wasn't provided. + * Returns the Animation data as JavaScript object based on the given key. + * Or, if not key is defined, it will return the data of all animations as array of objects. * * @method Phaser.Animations.AnimationManager#toJSON * @since 3.0.0 * - * @param {string} key - [description] + * @param {string} [key] - The animation to get the JSONAnimation data from. If not provided, all animations are returned as an array. * - * @return {Phaser.Types.Animations.JSONAnimations} [description] + * @return {Phaser.Types.Animations.JSONAnimations} The resulting JSONAnimations formatted object. */ toJSON: function (key) { + var output = { + anims: [], + globalTimeScale: this.globalTimeScale + }; + if (key !== undefined && key !== '') { - return this.anims.get(key).toJSON(); + output.anims.push(this.anims.get(key).toJSON()); } else { - var output = { - anims: [], - globalTimeScale: this.globalTimeScale - }; - this.anims.each(function (animationKey, animation) { output.anims.push(animation.toJSON()); }); - - return output; } + + return output; }, /** @@ -56901,7 +56893,7 @@ module.exports = AnimationManager; /***/ }), -/* 289 */ +/* 287 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -56911,9 +56903,9 @@ module.exports = AnimationManager; */ var Class = __webpack_require__(0); -var CustomMap = __webpack_require__(160); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(290); +var CustomMap = __webpack_require__(157); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(288); /** * @classdesc @@ -57087,7 +57079,7 @@ module.exports = BaseCache; /***/ }), -/* 290 */ +/* 288 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57102,14 +57094,14 @@ module.exports = BaseCache; module.exports = { - ADD: __webpack_require__(640), - REMOVE: __webpack_require__(641) + ADD: __webpack_require__(639), + REMOVE: __webpack_require__(640) }; /***/ }), -/* 291 */ +/* 289 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57118,7 +57110,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCache = __webpack_require__(289); +var BaseCache = __webpack_require__(287); var Class = __webpack_require__(0); var GameEvents = __webpack_require__(18); @@ -57343,7 +57335,7 @@ module.exports = CacheManager; /***/ }), -/* 292 */ +/* 290 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57352,14 +57344,14 @@ module.exports = CacheManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCamera = __webpack_require__(91); +var BaseCamera = __webpack_require__(90); var CanvasPool = __webpack_require__(26); -var CenterOn = __webpack_require__(166); +var CenterOn = __webpack_require__(163); var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var Effects = __webpack_require__(300); -var Linear = __webpack_require__(115); +var Effects = __webpack_require__(298); +var Linear = __webpack_require__(112); var Rectangle = __webpack_require__(12); var Vector2 = __webpack_require__(3); @@ -58361,7 +58353,7 @@ module.exports = Camera; /***/ }), -/* 293 */ +/* 291 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58370,7 +58362,7 @@ module.exports = Camera; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); /** * Converts a hex string into a Phaser Color object. @@ -58414,7 +58406,7 @@ module.exports = HexStringToColor; /***/ }), -/* 294 */ +/* 292 */ /***/ (function(module, exports) { /** @@ -58445,7 +58437,7 @@ module.exports = GetColor32; /***/ }), -/* 295 */ +/* 293 */ /***/ (function(module, exports) { /** @@ -58525,7 +58517,7 @@ module.exports = RGBToHSV; /***/ }), -/* 296 */ +/* 294 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58534,8 +58526,8 @@ module.exports = RGBToHSV; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Color = __webpack_require__(33); -var IntegerToRGB = __webpack_require__(297); +var Color = __webpack_require__(32); +var IntegerToRGB = __webpack_require__(295); /** * Converts the given color value into an instance of a Color object. @@ -58558,7 +58550,7 @@ module.exports = IntegerToColor; /***/ }), -/* 297 */ +/* 295 */ /***/ (function(module, exports) { /** @@ -58606,7 +58598,7 @@ module.exports = IntegerToRGB; /***/ }), -/* 298 */ +/* 296 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58615,7 +58607,7 @@ module.exports = IntegerToRGB; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); /** * Converts an object containing `r`, `g`, `b` and `a` properties into a Color class instance. @@ -58636,7 +58628,7 @@ module.exports = ObjectToColor; /***/ }), -/* 299 */ +/* 297 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58645,7 +58637,7 @@ module.exports = ObjectToColor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); /** * Converts a CSS 'web' string into a Phaser Color object. @@ -58682,7 +58674,7 @@ module.exports = RGBStringToColor; /***/ }), -/* 300 */ +/* 298 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58697,11 +58689,57 @@ module.exports = RGBStringToColor; module.exports = { - Fade: __webpack_require__(662), - Flash: __webpack_require__(663), - Pan: __webpack_require__(664), - Shake: __webpack_require__(697), - Zoom: __webpack_require__(698) + Fade: __webpack_require__(661), + Flash: __webpack_require__(662), + Pan: __webpack_require__(663), + Shake: __webpack_require__(696), + Zoom: __webpack_require__(697) + +}; + + +/***/ }), +/* 299 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Math.Easing.Back + */ + +module.exports = { + + In: __webpack_require__(664), + Out: __webpack_require__(665), + InOut: __webpack_require__(666) + +}; + + +/***/ }), +/* 300 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Math.Easing.Bounce + */ + +module.exports = { + + In: __webpack_require__(667), + Out: __webpack_require__(668), + InOut: __webpack_require__(669) }; @@ -58717,14 +58755,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Back + * @namespace Phaser.Math.Easing.Circular */ module.exports = { - In: __webpack_require__(665), - Out: __webpack_require__(666), - InOut: __webpack_require__(667) + In: __webpack_require__(670), + Out: __webpack_require__(671), + InOut: __webpack_require__(672) }; @@ -58740,14 +58778,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Bounce + * @namespace Phaser.Math.Easing.Cubic */ module.exports = { - In: __webpack_require__(668), - Out: __webpack_require__(669), - InOut: __webpack_require__(670) + In: __webpack_require__(673), + Out: __webpack_require__(674), + InOut: __webpack_require__(675) }; @@ -58763,14 +58801,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Circular + * @namespace Phaser.Math.Easing.Elastic */ module.exports = { - In: __webpack_require__(671), - Out: __webpack_require__(672), - InOut: __webpack_require__(673) + In: __webpack_require__(676), + Out: __webpack_require__(677), + InOut: __webpack_require__(678) }; @@ -58786,14 +58824,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Cubic + * @namespace Phaser.Math.Easing.Expo */ module.exports = { - In: __webpack_require__(674), - Out: __webpack_require__(675), - InOut: __webpack_require__(676) + In: __webpack_require__(679), + Out: __webpack_require__(680), + InOut: __webpack_require__(681) }; @@ -58809,16 +58847,10 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Elastic + * @namespace Phaser.Math.Easing.Linear */ -module.exports = { - - In: __webpack_require__(677), - Out: __webpack_require__(678), - InOut: __webpack_require__(679) - -}; +module.exports = __webpack_require__(682); /***/ }), @@ -58832,14 +58864,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Expo + * @namespace Phaser.Math.Easing.Quadratic */ module.exports = { - In: __webpack_require__(680), - Out: __webpack_require__(681), - InOut: __webpack_require__(682) + In: __webpack_require__(683), + Out: __webpack_require__(684), + InOut: __webpack_require__(685) }; @@ -58855,10 +58887,16 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Linear + * @namespace Phaser.Math.Easing.Quartic */ -module.exports = __webpack_require__(683); +module.exports = { + + In: __webpack_require__(686), + Out: __webpack_require__(687), + InOut: __webpack_require__(688) + +}; /***/ }), @@ -58872,14 +58910,14 @@ module.exports = __webpack_require__(683); */ /** - * @namespace Phaser.Math.Easing.Quadratic + * @namespace Phaser.Math.Easing.Quintic */ module.exports = { - In: __webpack_require__(684), - Out: __webpack_require__(685), - InOut: __webpack_require__(686) + In: __webpack_require__(689), + Out: __webpack_require__(690), + InOut: __webpack_require__(691) }; @@ -58895,14 +58933,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Quartic + * @namespace Phaser.Math.Easing.Sine */ module.exports = { - In: __webpack_require__(687), - Out: __webpack_require__(688), - InOut: __webpack_require__(689) + In: __webpack_require__(692), + Out: __webpack_require__(693), + InOut: __webpack_require__(694) }; @@ -58918,62 +58956,16 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Quintic + * @namespace Phaser.Math.Easing.Stepped */ -module.exports = { - - In: __webpack_require__(690), - Out: __webpack_require__(691), - InOut: __webpack_require__(692) - -}; +module.exports = __webpack_require__(695); /***/ }), /* 311 */ /***/ (function(module, exports, __webpack_require__) { -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Math.Easing.Sine - */ - -module.exports = { - - In: __webpack_require__(693), - Out: __webpack_require__(694), - InOut: __webpack_require__(695) - -}; - - -/***/ }), -/* 312 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Math.Easing.Stepped - */ - -module.exports = __webpack_require__(696); - - -/***/ }), -/* 313 */ -/***/ (function(module, exports, __webpack_require__) { - /** * @author Richard Davey * @copyright 2020 Photon Storm Ltd. @@ -58982,14 +58974,14 @@ module.exports = __webpack_require__(696); var Class = __webpack_require__(0); var CONST = __webpack_require__(29); -var Device = __webpack_require__(314); +var Device = __webpack_require__(312); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); var IsPlainObject = __webpack_require__(7); -var PhaserMath = __webpack_require__(169); +var PhaserMath = __webpack_require__(166); var NOOP = __webpack_require__(1); -var DefaultPlugins = __webpack_require__(174); -var ValueToColor = __webpack_require__(162); +var DefaultPlugins = __webpack_require__(171); +var ValueToColor = __webpack_require__(159); /** * @classdesc @@ -59552,7 +59544,7 @@ module.exports = Config; /***/ }), -/* 314 */ +/* 312 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -59586,20 +59578,20 @@ module.exports = Config; module.exports = { - os: __webpack_require__(116), - browser: __webpack_require__(117), - features: __webpack_require__(168), - input: __webpack_require__(727), - audio: __webpack_require__(728), - video: __webpack_require__(729), - fullscreen: __webpack_require__(730), - canvasFeatures: __webpack_require__(315) + os: __webpack_require__(113), + browser: __webpack_require__(114), + features: __webpack_require__(165), + input: __webpack_require__(726), + audio: __webpack_require__(727), + video: __webpack_require__(728), + fullscreen: __webpack_require__(729), + canvasFeatures: __webpack_require__(313) }; /***/ }), -/* 315 */ +/* 313 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -59713,7 +59705,7 @@ module.exports = init(); /***/ }), -/* 316 */ +/* 314 */ /***/ (function(module, exports) { /** @@ -59744,7 +59736,7 @@ module.exports = Between; /***/ }), -/* 317 */ +/* 315 */ /***/ (function(module, exports) { /** @@ -59781,7 +59773,7 @@ module.exports = Normalize; /***/ }), -/* 318 */ +/* 316 */ /***/ (function(module, exports) { /** @@ -59813,7 +59805,7 @@ module.exports = DistanceBetweenPoints; /***/ }), -/* 319 */ +/* 317 */ /***/ (function(module, exports) { /** @@ -59847,7 +59839,7 @@ module.exports = DistanceSquared; /***/ }), -/* 320 */ +/* 318 */ /***/ (function(module, exports) { /** @@ -59881,7 +59873,7 @@ module.exports = GreaterThan; /***/ }), -/* 321 */ +/* 319 */ /***/ (function(module, exports) { /** @@ -59915,7 +59907,7 @@ module.exports = LessThan; /***/ }), -/* 322 */ +/* 320 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -59924,18 +59916,18 @@ module.exports = LessThan; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Factorial = __webpack_require__(323); +var Factorial = __webpack_require__(321); /** - * [description] + * Calculates the Bernstein basis from the three factorial coefficients. * * @function Phaser.Math.Bernstein * @since 3.0.0 * - * @param {number} n - [description] - * @param {number} i - [description] + * @param {number} n - The first value. + * @param {number} i - The second value. * - * @return {number} [description] + * @return {number} The Bernstein basis of Factorial(n) / Factorial(i) / Factorial(n - i) */ var Bernstein = function (n, i) { @@ -59946,7 +59938,7 @@ module.exports = Bernstein; /***/ }), -/* 323 */ +/* 321 */ /***/ (function(module, exports) { /** @@ -59986,7 +59978,7 @@ module.exports = Factorial; /***/ }), -/* 324 */ +/* 322 */ /***/ (function(module, exports) { /** @@ -60056,7 +60048,7 @@ module.exports = CubicBezierInterpolation; /***/ }), -/* 325 */ +/* 323 */ /***/ (function(module, exports) { /** @@ -60115,7 +60107,7 @@ module.exports = QuadraticBezierInterpolation; /***/ }), -/* 326 */ +/* 324 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -60124,7 +60116,7 @@ module.exports = QuadraticBezierInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SmoothStep = __webpack_require__(159); +var SmoothStep = __webpack_require__(156); /** * A Smooth Step interpolation method. @@ -60148,7 +60140,7 @@ module.exports = SmoothStepInterpolation; /***/ }), -/* 327 */ +/* 325 */ /***/ (function(module, exports) { /** @@ -60178,7 +60170,7 @@ module.exports = GetPowerOfTwo; /***/ }), -/* 328 */ +/* 326 */ /***/ (function(module, exports) { /** @@ -60222,7 +60214,7 @@ module.exports = SnapCeil; /***/ }), -/* 329 */ +/* 327 */ /***/ (function(module, exports) { /** @@ -60251,7 +60243,7 @@ module.exports = FloatBetween; /***/ }), -/* 330 */ +/* 328 */ /***/ (function(module, exports) { /** @@ -60286,7 +60278,7 @@ module.exports = Rotate; /***/ }), -/* 331 */ +/* 329 */ /***/ (function(module, exports) { /** @@ -60315,7 +60307,7 @@ module.exports = RoundAwayFromZero; /***/ }), -/* 332 */ +/* 330 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -60370,7 +60362,7 @@ module.exports = TransformXY; /***/ }), -/* 333 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -60915,7 +60907,7 @@ module.exports = Vector4; /***/ }), -/* 334 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -61428,12 +61420,12 @@ var Matrix3 = new Class({ }, /** - * [description] + * Set the values of this Matrix3 to be normalized from the given Matrix4. * * @method Phaser.Math.Matrix3#normalFromMat4 * @since 3.0.0 * - * @param {Phaser.Math.Matrix4} m - [description] + * @param {Phaser.Math.Matrix4} m - The Matrix4 to normalize the values from. * * @return {Phaser.Math.Matrix3} This Matrix3. */ @@ -61508,7 +61500,7 @@ module.exports = Matrix3; /***/ }), -/* 335 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -62072,12 +62064,12 @@ var Matrix4 = new Class({ }, /** - * [description] + * Multiply the values of this Matrix4 by those given in the `src` argument. * * @method Phaser.Math.Matrix4#multiplyLocal * @since 3.0.0 * - * @param {Phaser.Math.Matrix4} src - [description] + * @param {Phaser.Math.Matrix4} src - The source Matrix4 that this Matrix4 is multiplied by. * * @return {Phaser.Math.Matrix4} This Matrix4. */ @@ -62869,9 +62861,9 @@ var Matrix4 = new Class({ * @method Phaser.Math.Matrix4#yawPitchRoll * @since 3.0.0 * - * @param {number} yaw - [description] - * @param {number} pitch - [description] - * @param {number} roll - [description] + * @param {number} yaw - The yaw value. + * @param {number} pitch - The pitch value. + * @param {number} roll - The roll value. * * @return {Phaser.Math.Matrix4} This Matrix4. */ @@ -62970,7 +62962,7 @@ module.exports = Matrix4; /***/ }), -/* 336 */ +/* 334 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -62983,8 +62975,8 @@ module.exports = Matrix4; // and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl var Class = __webpack_require__(0); -var Vector3 = __webpack_require__(173); -var Matrix3 = __webpack_require__(334); +var Vector3 = __webpack_require__(170); +var Matrix3 = __webpack_require__(332); var EPSILON = 0.000001; @@ -63292,13 +63284,13 @@ var Quaternion = new Class({ }, /** - * [description] + * Rotates this Quaternion based on the two given vectors. * * @method Phaser.Math.Quaternion#rotationTo * @since 3.0.0 * - * @param {Phaser.Math.Vector3} a - [description] - * @param {Phaser.Math.Vector3} b - [description] + * @param {Phaser.Math.Vector3} a - The transform rotation vector. + * @param {Phaser.Math.Vector3} b - The target rotation vector. * * @return {Phaser.Math.Quaternion} This Quaternion. */ @@ -63742,7 +63734,7 @@ module.exports = Quaternion; /***/ }), -/* 337 */ +/* 335 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63751,10 +63743,10 @@ module.exports = Quaternion; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasInterpolation = __webpack_require__(338); +var CanvasInterpolation = __webpack_require__(336); var CanvasPool = __webpack_require__(26); var CONST = __webpack_require__(29); -var Features = __webpack_require__(168); +var Features = __webpack_require__(165); /** * Called automatically by Phaser.Game and responsible for creating the renderer it will use. @@ -63844,8 +63836,8 @@ var CreateRenderer = function (game) if (true) { - CanvasRenderer = __webpack_require__(505); - WebGLRenderer = __webpack_require__(508); + CanvasRenderer = __webpack_require__(504); + WebGLRenderer = __webpack_require__(507); // Let the config pick the renderer type, as both are included if (config.renderType === CONST.WEBGL) @@ -63870,7 +63862,7 @@ module.exports = CreateRenderer; /***/ }), -/* 338 */ +/* 336 */ /***/ (function(module, exports) { /** @@ -63933,7 +63925,7 @@ module.exports = CanvasInterpolation; /***/ }), -/* 339 */ +/* 337 */ /***/ (function(module, exports) { module.exports = [ @@ -63977,7 +63969,7 @@ module.exports = [ /***/ }), -/* 340 */ +/* 338 */ /***/ (function(module, exports) { module.exports = [ @@ -64012,7 +64004,7 @@ module.exports = [ /***/ }), -/* 341 */ +/* 339 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64142,7 +64134,7 @@ module.exports = DebugHeader; /***/ }), -/* 342 */ +/* 340 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64154,7 +64146,7 @@ module.exports = DebugHeader; var Class = __webpack_require__(0); var GetValue = __webpack_require__(6); var NOOP = __webpack_require__(1); -var RequestAnimationFrame = __webpack_require__(343); +var RequestAnimationFrame = __webpack_require__(341); // http://www.testufo.com/#test=animation-time-graph @@ -64872,7 +64864,7 @@ module.exports = TimeStep; /***/ }), -/* 343 */ +/* 341 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65086,7 +65078,7 @@ module.exports = RequestAnimationFrame; /***/ }), -/* 344 */ +/* 342 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65177,7 +65169,7 @@ module.exports = VisibilityHandler; /***/ }), -/* 345 */ +/* 343 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65186,19 +65178,47 @@ module.exports = VisibilityHandler; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Arne16 = __webpack_require__(346); +var Arne16 = __webpack_require__(344); var CanvasPool = __webpack_require__(26); var GetValue = __webpack_require__(6); /** - * [description] + * Generates a texture based on the given Create configuration object. + * + * The texture is drawn using a fixed-size indexed palette of 16 colors, where the hex value in the + * data cells map to a single color. For example, if the texture config looked like this: + * + * ```javascript + * var star = [ + * '.....828.....', + * '....72227....', + * '....82228....', + * '...7222227...', + * '2222222222222', + * '8222222222228', + * '.72222222227.', + * '..787777787..', + * '..877777778..', + * '.78778887787.', + * '.27887.78872.', + * '.787.....787.' + * ]; + * + * this.textures.generate('star', { data: star, pixelWidth: 4 }); + * ``` + * + * Then it would generate a texture that is 52 x 48 pixels in size, because each cell of the data array + * represents 1 pixel multiplied by the `pixelWidth` value. The cell values, such as `8`, maps to color + * number 8 in the palette. If a cell contains a period character `.` then it is transparent. + * + * The default palette is Arne16, but you can specify your own using the `palette` property. * * @function Phaser.Create.GenerateTexture * @since 3.0.0 * - * @param {Phaser.Types.Create.GenerateTextureConfig} config - [description] + * @param {Phaser.Types.Create.GenerateTextureConfig} config - The Generate Texture Configuration object. * - * @return {HTMLCanvasElement} [description] + * @return {HTMLCanvasElement} An HTMLCanvasElement which contains the generated texture drawn to it. */ var GenerateTexture = function (config) { @@ -65271,7 +65291,7 @@ module.exports = GenerateTexture; /***/ }), -/* 346 */ +/* 344 */ /***/ (function(module, exports) { /** @@ -65309,7 +65329,7 @@ module.exports = { /***/ }), -/* 347 */ +/* 345 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65321,8 +65341,8 @@ module.exports = { // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var CubicBezier = __webpack_require__(324); -var Curve = __webpack_require__(81); +var CubicBezier = __webpack_require__(322); +var Curve = __webpack_require__(80); var Vector2 = __webpack_require__(3); /** @@ -65536,7 +65556,7 @@ module.exports = CubicBezierCurve; /***/ }), -/* 348 */ +/* 346 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65548,10 +65568,10 @@ module.exports = CubicBezierCurve; // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var Curve = __webpack_require__(81); +var Curve = __webpack_require__(80); var DegToRad = __webpack_require__(35); var GetValue = __webpack_require__(6); -var RadToDeg = __webpack_require__(172); +var RadToDeg = __webpack_require__(169); var Vector2 = __webpack_require__(3); /** @@ -66160,7 +66180,7 @@ module.exports = EllipseCurve; /***/ }), -/* 349 */ +/* 347 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -66172,8 +66192,8 @@ module.exports = EllipseCurve; // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var Curve = __webpack_require__(81); -var FromPoints = __webpack_require__(175); +var Curve = __webpack_require__(80); +var FromPoints = __webpack_require__(172); var Rectangle = __webpack_require__(12); var Vector2 = __webpack_require__(3); @@ -66465,7 +66485,7 @@ module.exports = LineCurve; /***/ }), -/* 350 */ +/* 348 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -66475,8 +66495,8 @@ module.exports = LineCurve; */ var Class = __webpack_require__(0); -var Curve = __webpack_require__(81); -var QuadraticBezierInterpolation = __webpack_require__(325); +var Curve = __webpack_require__(80); +var QuadraticBezierInterpolation = __webpack_require__(323); var Vector2 = __webpack_require__(3); /** @@ -66679,7 +66699,7 @@ module.exports = QuadraticBezier; /***/ }), -/* 351 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -66690,9 +66710,9 @@ module.exports = QuadraticBezier; // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) -var CatmullRom = __webpack_require__(170); +var CatmullRom = __webpack_require__(167); var Class = __webpack_require__(0); -var Curve = __webpack_require__(81); +var Curve = __webpack_require__(80); var Vector2 = __webpack_require__(3); /** @@ -66904,7 +66924,7 @@ module.exports = SplineCurve; /***/ }), -/* 352 */ +/* 350 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67028,7 +67048,7 @@ module.exports = BaseShader; /***/ }), -/* 353 */ +/* 351 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67037,32 +67057,32 @@ module.exports = BaseShader; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); -Color.ColorToRGBA = __webpack_require__(805); -Color.ComponentToHex = __webpack_require__(354); -Color.GetColor = __webpack_require__(163); -Color.GetColor32 = __webpack_require__(294); -Color.HexStringToColor = __webpack_require__(293); -Color.HSLToColor = __webpack_require__(806); -Color.HSVColorWheel = __webpack_require__(807); -Color.HSVToRGB = __webpack_require__(164); -Color.HueToComponent = __webpack_require__(355); -Color.IntegerToColor = __webpack_require__(296); -Color.IntegerToRGB = __webpack_require__(297); -Color.Interpolate = __webpack_require__(808); -Color.ObjectToColor = __webpack_require__(298); -Color.RandomRGB = __webpack_require__(809); -Color.RGBStringToColor = __webpack_require__(299); -Color.RGBToHSV = __webpack_require__(295); -Color.RGBToString = __webpack_require__(810); -Color.ValueToColor = __webpack_require__(162); +Color.ColorToRGBA = __webpack_require__(804); +Color.ComponentToHex = __webpack_require__(352); +Color.GetColor = __webpack_require__(160); +Color.GetColor32 = __webpack_require__(292); +Color.HexStringToColor = __webpack_require__(291); +Color.HSLToColor = __webpack_require__(805); +Color.HSVColorWheel = __webpack_require__(806); +Color.HSVToRGB = __webpack_require__(161); +Color.HueToComponent = __webpack_require__(353); +Color.IntegerToColor = __webpack_require__(294); +Color.IntegerToRGB = __webpack_require__(295); +Color.Interpolate = __webpack_require__(807); +Color.ObjectToColor = __webpack_require__(296); +Color.RandomRGB = __webpack_require__(808); +Color.RGBStringToColor = __webpack_require__(297); +Color.RGBToHSV = __webpack_require__(293); +Color.RGBToString = __webpack_require__(809); +Color.ValueToColor = __webpack_require__(159); module.exports = Color; /***/ }), -/* 354 */ +/* 352 */ /***/ (function(module, exports) { /** @@ -67092,7 +67112,7 @@ module.exports = ComponentToHex; /***/ }), -/* 355 */ +/* 353 */ /***/ (function(module, exports) { /** @@ -67148,7 +67168,7 @@ module.exports = HueToComponent; /***/ }), -/* 356 */ +/* 354 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67157,7 +67177,7 @@ module.exports = HueToComponent; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var OS = __webpack_require__(116); +var OS = __webpack_require__(113); /** * @callback ContentLoadedCallback @@ -67211,7 +67231,7 @@ module.exports = DOMContentLoaded; /***/ }), -/* 357 */ +/* 355 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67220,7 +67240,7 @@ module.exports = DOMContentLoaded; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(176); +var CONST = __webpack_require__(173); /** * Attempts to determine the screen orientation using the Orientation API. @@ -67277,7 +67297,7 @@ module.exports = GetScreenOrientation; /***/ }), -/* 358 */ +/* 356 */ /***/ (function(module, exports) { /** @@ -67363,7 +67383,7 @@ module.exports = { /***/ }), -/* 359 */ +/* 357 */ /***/ (function(module, exports) { /** @@ -67416,7 +67436,7 @@ module.exports = { /***/ }), -/* 360 */ +/* 358 */ /***/ (function(module, exports) { /** @@ -67514,7 +67534,7 @@ module.exports = { /***/ }), -/* 361 */ +/* 359 */ /***/ (function(module, exports) { /** @@ -67588,7 +67608,7 @@ module.exports = { /***/ }), -/* 362 */ +/* 360 */ /***/ (function(module, exports) { /** @@ -67639,7 +67659,7 @@ module.exports = GetTarget; /***/ }), -/* 363 */ +/* 361 */ /***/ (function(module, exports) { /** @@ -67696,7 +67716,7 @@ module.exports = ParseXML; /***/ }), -/* 364 */ +/* 362 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67706,16 +67726,16 @@ module.exports = ParseXML; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(178); -var EventEmitter = __webpack_require__(9); +var CONST = __webpack_require__(175); +var EventEmitter = __webpack_require__(10); var Events = __webpack_require__(54); var GameEvents = __webpack_require__(18); -var Keyboard = __webpack_require__(365); -var Mouse = __webpack_require__(366); -var Pointer = __webpack_require__(367); -var Touch = __webpack_require__(368); +var Keyboard = __webpack_require__(363); +var Mouse = __webpack_require__(364); +var Pointer = __webpack_require__(365); +var Touch = __webpack_require__(366); var TransformMatrix = __webpack_require__(30); -var TransformXY = __webpack_require__(332); +var TransformXY = __webpack_require__(330); /** * @classdesc @@ -68778,7 +68798,7 @@ module.exports = InputManager; /***/ }), -/* 365 */ +/* 363 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -68787,11 +68807,11 @@ module.exports = InputManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayRemove = __webpack_require__(121); +var ArrayRemove = __webpack_require__(118); var Class = __webpack_require__(0); var GameEvents = __webpack_require__(18); var InputEvents = __webpack_require__(54); -var KeyCodes = __webpack_require__(122); +var KeyCodes = __webpack_require__(119); var NOOP = __webpack_require__(0); /** @@ -69228,7 +69248,7 @@ module.exports = KeyboardManager; /***/ }), -/* 366 */ +/* 364 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -69238,7 +69258,7 @@ module.exports = KeyboardManager; */ var Class = __webpack_require__(0); -var Features = __webpack_require__(168); +var Features = __webpack_require__(165); var InputEvents = __webpack_require__(54); var NOOP = __webpack_require__(0); @@ -69714,7 +69734,7 @@ module.exports = MouseManager; /***/ }), -/* 367 */ +/* 365 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -69723,11 +69743,11 @@ module.exports = MouseManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Angle = __webpack_require__(316); +var Angle = __webpack_require__(314); var Class = __webpack_require__(0); var Distance = __webpack_require__(53); -var FuzzyEqual = __webpack_require__(144); -var SmoothStepInterpolation = __webpack_require__(326); +var FuzzyEqual = __webpack_require__(141); +var SmoothStepInterpolation = __webpack_require__(324); var Vector2 = __webpack_require__(3); /** @@ -70992,7 +71012,7 @@ module.exports = Pointer; /***/ }), -/* 368 */ +/* 366 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71405,7 +71425,7 @@ module.exports = TouchManager; /***/ }), -/* 369 */ +/* 367 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71416,13 +71436,13 @@ module.exports = TouchManager; var Class = __webpack_require__(0); var GameEvents = __webpack_require__(18); -var EventEmitter = __webpack_require__(9); +var EventEmitter = __webpack_require__(10); var FileTypesManager = __webpack_require__(8); var GameObjectCreator = __webpack_require__(16); var GameObjectFactory = __webpack_require__(5); var GetFastValue = __webpack_require__(2); var PluginCache = __webpack_require__(23); -var Remove = __webpack_require__(121); +var Remove = __webpack_require__(118); /** * @classdesc @@ -72307,7 +72327,7 @@ module.exports = PluginManager; /***/ }), -/* 370 */ +/* 368 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -72316,18 +72336,18 @@ module.exports = PluginManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(176); +var CONST = __webpack_require__(173); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(92); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(91); var GameEvents = __webpack_require__(18); -var GetInnerHeight = __webpack_require__(863); -var GetTarget = __webpack_require__(362); -var GetScreenOrientation = __webpack_require__(357); +var GetInnerHeight = __webpack_require__(862); +var GetTarget = __webpack_require__(360); +var GetScreenOrientation = __webpack_require__(355); var NOOP = __webpack_require__(1); var Rectangle = __webpack_require__(12); -var Size = __webpack_require__(371); -var SnapFloor = __webpack_require__(93); +var Size = __webpack_require__(369); +var SnapFloor = __webpack_require__(92); var Vector2 = __webpack_require__(3); /** @@ -74024,7 +74044,7 @@ module.exports = ScaleManager; /***/ }), -/* 371 */ +/* 369 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -74035,7 +74055,7 @@ module.exports = ScaleManager; var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); -var SnapFloor = __webpack_require__(93); +var SnapFloor = __webpack_require__(92); var Vector2 = __webpack_require__(3); /** @@ -74802,7 +74822,7 @@ module.exports = Size; /***/ }), -/* 372 */ +/* 370 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -74812,14 +74832,14 @@ module.exports = Size; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(123); -var Events = __webpack_require__(19); +var CONST = __webpack_require__(120); +var Events = __webpack_require__(21); var GameEvents = __webpack_require__(18); var GetValue = __webpack_require__(6); -var LoaderEvents = __webpack_require__(82); +var LoaderEvents = __webpack_require__(81); var NOOP = __webpack_require__(1); -var Scene = __webpack_require__(373); -var Systems = __webpack_require__(179); +var Scene = __webpack_require__(371); +var Systems = __webpack_require__(176); /** * @classdesc @@ -76442,7 +76462,7 @@ module.exports = SceneManager; /***/ }), -/* 373 */ +/* 371 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -76452,7 +76472,7 @@ module.exports = SceneManager; */ var Class = __webpack_require__(0); -var Systems = __webpack_require__(179); +var Systems = __webpack_require__(176); /** * @classdesc @@ -76672,16 +76692,6 @@ var Scene = new Class({ */ this.physics; - /** - * A scene level Impact Physics Plugin. - * This property will only be available if defined in the Scene Injection Map, the plugin is installed and configured. - * - * @name Phaser.Scene#impact - * @type {Phaser.Physics.Impact.ImpactPhysics} - * @since 3.0.0 - */ - this.impact; - /** * A scene level Matter Physics Plugin. * This property will only be available if defined in the Scene Injection Map, the plugin is installed and configured. @@ -76738,7 +76748,7 @@ module.exports = Scene; /***/ }), -/* 374 */ +/* 372 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -76747,10 +76757,10 @@ module.exports = Scene; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(123); +var CONST = __webpack_require__(120); var GetValue = __webpack_require__(6); -var Merge = __webpack_require__(107); -var InjectionMap = __webpack_require__(876); +var Merge = __webpack_require__(121); +var InjectionMap = __webpack_require__(875); /** * @namespace Phaser.Scenes.Settings @@ -76834,7 +76844,7 @@ module.exports = Settings; /***/ }), -/* 375 */ +/* 373 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -76844,17 +76854,17 @@ module.exports = Settings; */ var CanvasPool = __webpack_require__(26); -var CanvasTexture = __webpack_require__(376); +var CanvasTexture = __webpack_require__(374); var Class = __webpack_require__(0); -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); var CONST = __webpack_require__(29); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(119); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(116); var GameEvents = __webpack_require__(18); -var GenerateTexture = __webpack_require__(345); +var GenerateTexture = __webpack_require__(343); var GetValue = __webpack_require__(6); -var Parser = __webpack_require__(378); -var Texture = __webpack_require__(181); +var Parser = __webpack_require__(376); +var Texture = __webpack_require__(178); /** * @callback EachTextureCallback @@ -77138,8 +77148,8 @@ var TextureManager = new Class({ * * @param {string} key - The unique string-based key of the Texture. * @param {(string|integer)} [frame] - The string-based name, or integer based index, of the Frame to get from the Texture. - * @param {string} [type='image/png'] - [description] - * @param {number} [encoderOptions=0.92] - [description] + * @param {string} [type='image/png'] - A DOMString indicating the image format. The default format type is image/png. + * @param {number} [encoderOptions=0.92] - A Number between 0 and 1 indicating the image quality to use for image formats that use lossy compression such as image/jpeg and image/webp. If this argument is anything else, the default value for image quality is used. The default value is 0.92. Other arguments are ignored. * * @return {string} The base64 encoded data, or an empty string if the texture frame could not be found. */ @@ -77282,14 +77292,44 @@ var TextureManager = new Class({ /** * Creates a new Texture using the given config values. + * * Generated textures consist of a Canvas element to which the texture data is drawn. - * See the Phaser.Create function for the more direct way to create textures. + * + * Generates a texture based on the given Create configuration object. + * + * The texture is drawn using a fixed-size indexed palette of 16 colors, where the hex value in the + * data cells map to a single color. For example, if the texture config looked like this: + * + * ```javascript + * var star = [ + * '.....828.....', + * '....72227....', + * '....82228....', + * '...7222227...', + * '2222222222222', + * '8222222222228', + * '.72222222227.', + * '..787777787..', + * '..877777778..', + * '.78778887787.', + * '.27887.78872.', + * '.787.....787.' + * ]; + * + * this.textures.generate('star', { data: star, pixelWidth: 4 }); + * ``` + * + * Then it would generate a texture that is 52 x 48 pixels in size, because each cell of the data array + * represents 1 pixel multiplied by the `pixelWidth` value. The cell values, such as `8`, maps to color + * number 8 in the palette. If a cell contains a period character `.` then it is transparent. + * + * The default palette is Arne16, but you can specify your own using the `palette` property. * * @method Phaser.Textures.TextureManager#generate * @since 3.0.0 * * @param {string} key - The unique string-based key of the Texture. - * @param {object} config - The configuration object needed to generate the texture. + * @param {Phaser.Types.Create.GenerateTextureConfig} config - The configuration object needed to generate the texture. * * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use. */ @@ -78006,7 +78046,7 @@ module.exports = TextureManager; /***/ }), -/* 376 */ +/* 374 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -78017,10 +78057,10 @@ module.exports = TextureManager; var Class = __webpack_require__(0); var Clamp = __webpack_require__(22); -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); var CONST = __webpack_require__(29); -var IsSizePowerOfTwo = __webpack_require__(118); -var Texture = __webpack_require__(181); +var IsSizePowerOfTwo = __webpack_require__(115); +var Texture = __webpack_require__(178); /** * @classdesc @@ -78637,7 +78677,7 @@ module.exports = CanvasTexture; /***/ }), -/* 377 */ +/* 375 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -78648,8 +78688,8 @@ module.exports = CanvasTexture; var CanvasPool = __webpack_require__(26); var Class = __webpack_require__(0); -var IsSizePowerOfTwo = __webpack_require__(118); -var ScaleModes = __webpack_require__(233); +var IsSizePowerOfTwo = __webpack_require__(115); +var ScaleModes = __webpack_require__(231); /** * @classdesc @@ -78978,7 +79018,7 @@ module.exports = TextureSource; /***/ }), -/* 378 */ +/* 376 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -78993,20 +79033,20 @@ module.exports = TextureSource; module.exports = { - AtlasXML: __webpack_require__(877), - Canvas: __webpack_require__(878), - Image: __webpack_require__(879), - JSONArray: __webpack_require__(880), - JSONHash: __webpack_require__(881), - SpriteSheet: __webpack_require__(882), - SpriteSheetFromAtlas: __webpack_require__(883), - UnityYAML: __webpack_require__(884) + AtlasXML: __webpack_require__(876), + Canvas: __webpack_require__(877), + Image: __webpack_require__(878), + JSONArray: __webpack_require__(879), + JSONHash: __webpack_require__(880), + SpriteSheet: __webpack_require__(881), + SpriteSheetFromAtlas: __webpack_require__(882), + UnityYAML: __webpack_require__(883) }; /***/ }), -/* 379 */ +/* 377 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -79016,9 +79056,9 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HTML5AudioSoundManager = __webpack_require__(380); -var NoAudioSoundManager = __webpack_require__(382); -var WebAudioSoundManager = __webpack_require__(384); +var HTML5AudioSoundManager = __webpack_require__(378); +var NoAudioSoundManager = __webpack_require__(380); +var WebAudioSoundManager = __webpack_require__(382); /** * Creates a Web Audio, HTML5 Audio or No Audio Sound Manager based on config and device settings. @@ -79058,7 +79098,7 @@ module.exports = SoundManagerCreator; /***/ }), -/* 380 */ +/* 378 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -79068,10 +79108,10 @@ module.exports = SoundManagerCreator; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSoundManager = __webpack_require__(124); +var BaseSoundManager = __webpack_require__(122); var Class = __webpack_require__(0); var Events = __webpack_require__(59); -var HTML5AudioSound = __webpack_require__(381); +var HTML5AudioSound = __webpack_require__(379); /** * HTML5 Audio implementation of the Sound Manager. @@ -79523,7 +79563,7 @@ module.exports = HTML5AudioSoundManager; /***/ }), -/* 381 */ +/* 379 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -79533,7 +79573,7 @@ module.exports = HTML5AudioSoundManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSound = __webpack_require__(125); +var BaseSound = __webpack_require__(123); var Class = __webpack_require__(0); var Events = __webpack_require__(59); @@ -80448,7 +80488,7 @@ module.exports = HTML5AudioSound; /***/ }), -/* 382 */ +/* 380 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -80458,10 +80498,10 @@ module.exports = HTML5AudioSound; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSoundManager = __webpack_require__(124); +var BaseSoundManager = __webpack_require__(122); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var NoAudioSound = __webpack_require__(383); +var EventEmitter = __webpack_require__(10); +var NoAudioSound = __webpack_require__(381); var NOOP = __webpack_require__(1); /** @@ -80566,7 +80606,7 @@ module.exports = NoAudioSoundManager; /***/ }), -/* 383 */ +/* 381 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -80576,9 +80616,9 @@ module.exports = NoAudioSoundManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSound = __webpack_require__(125); +var BaseSound = __webpack_require__(123); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); +var EventEmitter = __webpack_require__(10); var Extend = __webpack_require__(17); /** @@ -80693,7 +80733,7 @@ module.exports = NoAudioSound; /***/ }), -/* 384 */ +/* 382 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -80703,11 +80743,11 @@ module.exports = NoAudioSound; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Base64ToArrayBuffer = __webpack_require__(385); -var BaseSoundManager = __webpack_require__(124); +var Base64ToArrayBuffer = __webpack_require__(383); +var BaseSoundManager = __webpack_require__(122); var Class = __webpack_require__(0); var Events = __webpack_require__(59); -var WebAudioSound = __webpack_require__(386); +var WebAudioSound = __webpack_require__(384); /** * @classdesc @@ -81152,7 +81192,7 @@ module.exports = WebAudioSoundManager; /***/ }), -/* 385 */ +/* 383 */ /***/ (function(module, exports) { /** @@ -81227,7 +81267,7 @@ module.exports = Base64ToArrayBuffer; /***/ }), -/* 386 */ +/* 384 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -81237,7 +81277,7 @@ module.exports = Base64ToArrayBuffer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSound = __webpack_require__(125); +var BaseSound = __webpack_require__(123); var Class = __webpack_require__(0); var Events = __webpack_require__(59); @@ -82133,7 +82173,7 @@ module.exports = WebAudioSound; /***/ }), -/* 387 */ +/* 385 */ /***/ (function(module, exports) { /** @@ -82181,7 +82221,7 @@ module.exports = TransposeMatrix; /***/ }), -/* 388 */ +/* 386 */ /***/ (function(module, exports) { /** @@ -82303,7 +82343,7 @@ module.exports = QuickSelect; /***/ }), -/* 389 */ +/* 387 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -82313,7 +82353,7 @@ module.exports = QuickSelect; */ var GetValue = __webpack_require__(6); -var Shuffle = __webpack_require__(114); +var Shuffle = __webpack_require__(111); var BuildChunk = function (a, b, qty) { @@ -82441,7 +82481,7 @@ module.exports = Range; /***/ }), -/* 390 */ +/* 388 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -82530,7 +82570,7 @@ module.exports = BuildGameObjectAnimation; /***/ }), -/* 391 */ +/* 389 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -82572,7 +82612,7 @@ module.exports = Union; /***/ }), -/* 392 */ +/* 390 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -82583,12 +82623,12 @@ module.exports = Union; var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var DOMElementRender = __webpack_require__(953); +var DOMElementRender = __webpack_require__(952); var GameObject = __webpack_require__(13); var IsPlainObject = __webpack_require__(7); -var RemoveFromDOM = __webpack_require__(177); -var SCENE_EVENTS = __webpack_require__(19); -var Vector4 = __webpack_require__(333); +var RemoveFromDOM = __webpack_require__(174); +var SCENE_EVENTS = __webpack_require__(21); +var Vector4 = __webpack_require__(331); /** * @classdesc @@ -83546,7 +83586,7 @@ module.exports = DOMElement; /***/ }), -/* 393 */ +/* 391 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83555,7 +83595,7 @@ module.exports = DOMElement; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CSSBlendModes = __webpack_require__(954); +var CSSBlendModes = __webpack_require__(953); var GameObject = __webpack_require__(13); /** @@ -83668,7 +83708,7 @@ module.exports = DOMElementCSSRenderer; /***/ }), -/* 394 */ +/* 392 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83680,7 +83720,7 @@ module.exports = DOMElementCSSRenderer; var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameObject = __webpack_require__(13); -var ExternRender = __webpack_require__(958); +var ExternRender = __webpack_require__(957); /** * @classdesc @@ -83764,7 +83804,7 @@ module.exports = Extern; /***/ }), -/* 395 */ +/* 393 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83773,8 +83813,8 @@ module.exports = Extern; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CircumferencePoint = __webpack_require__(192); -var FromPercent = __webpack_require__(87); +var CircumferencePoint = __webpack_require__(189); +var FromPercent = __webpack_require__(86); var MATH_CONST = __webpack_require__(15); var Point = __webpack_require__(4); @@ -83807,7 +83847,7 @@ module.exports = GetPoint; /***/ }), -/* 396 */ +/* 394 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83816,9 +83856,9 @@ module.exports = GetPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circumference = __webpack_require__(397); -var CircumferencePoint = __webpack_require__(192); -var FromPercent = __webpack_require__(87); +var Circumference = __webpack_require__(395); +var CircumferencePoint = __webpack_require__(189); +var FromPercent = __webpack_require__(86); var MATH_CONST = __webpack_require__(15); /** @@ -83861,7 +83901,7 @@ module.exports = GetPoints; /***/ }), -/* 397 */ +/* 395 */ /***/ (function(module, exports) { /** @@ -83893,7 +83933,7 @@ module.exports = Circumference; /***/ }), -/* 398 */ +/* 396 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83902,7 +83942,7 @@ module.exports = Circumference; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Commands = __webpack_require__(191); +var Commands = __webpack_require__(188); var SetTransform = __webpack_require__(28); /** @@ -84143,7 +84183,7 @@ module.exports = GraphicsCanvasRenderer; /***/ }), -/* 399 */ +/* 397 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -84362,7 +84402,7 @@ module.exports = GravityWell; /***/ }), -/* 400 */ +/* 398 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -84931,7 +84971,7 @@ module.exports = Particle; /***/ }), -/* 401 */ +/* 399 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -84943,17 +84983,17 @@ module.exports = Particle; var BlendModes = __webpack_require__(52); var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var DeathZone = __webpack_require__(402); -var EdgeZone = __webpack_require__(403); -var EmitterOp = __webpack_require__(970); +var DeathZone = __webpack_require__(400); +var EdgeZone = __webpack_require__(401); +var EmitterOp = __webpack_require__(969); var GetFastValue = __webpack_require__(2); -var GetRandom = __webpack_require__(184); -var HasAny = __webpack_require__(404); -var HasValue = __webpack_require__(99); -var Particle = __webpack_require__(400); -var RandomZone = __webpack_require__(405); +var GetRandom = __webpack_require__(181); +var HasAny = __webpack_require__(402); +var HasValue = __webpack_require__(105); +var Particle = __webpack_require__(398); +var RandomZone = __webpack_require__(403); var Rectangle = __webpack_require__(12); -var StableSort = __webpack_require__(128); +var StableSort = __webpack_require__(126); var Vector2 = __webpack_require__(3); var Wrap = __webpack_require__(58); @@ -87002,7 +87042,7 @@ module.exports = ParticleEmitter; /***/ }), -/* 402 */ +/* 400 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87080,7 +87120,7 @@ module.exports = DeathZone; /***/ }), -/* 403 */ +/* 401 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87324,7 +87364,7 @@ module.exports = EdgeZone; /***/ }), -/* 404 */ +/* 402 */ /***/ (function(module, exports) { /** @@ -87361,7 +87401,7 @@ module.exports = HasAny; /***/ }), -/* 405 */ +/* 403 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87434,7 +87474,7 @@ module.exports = RandomZone; /***/ }), -/* 406 */ +/* 404 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87445,7 +87485,7 @@ module.exports = RandomZone; var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var Sprite = __webpack_require__(69); +var Sprite = __webpack_require__(74); /** * @classdesc @@ -87516,7 +87556,7 @@ module.exports = PathFollower; /***/ }), -/* 407 */ +/* 405 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87525,11 +87565,11 @@ module.exports = PathFollower; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcRender = __webpack_require__(996); +var ArcRender = __webpack_require__(995); var Class = __webpack_require__(0); var DegToRad = __webpack_require__(35); -var Earcut = __webpack_require__(66); -var GeomCircle = __webpack_require__(65); +var Earcut = __webpack_require__(64); +var GeomCircle = __webpack_require__(63); var MATH_CONST = __webpack_require__(15); var Shape = __webpack_require__(31); @@ -87925,7 +87965,7 @@ module.exports = Arc; /***/ }), -/* 408 */ +/* 406 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87935,8 +87975,8 @@ module.exports = Arc; */ var Class = __webpack_require__(0); -var CurveRender = __webpack_require__(999); -var Earcut = __webpack_require__(66); +var CurveRender = __webpack_require__(998); +var Earcut = __webpack_require__(64); var Rectangle = __webpack_require__(12); var Shape = __webpack_require__(31); @@ -88107,7 +88147,7 @@ module.exports = Curve; /***/ }), -/* 409 */ +/* 407 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88117,9 +88157,9 @@ module.exports = Curve; */ var Class = __webpack_require__(0); -var Earcut = __webpack_require__(66); -var EllipseRender = __webpack_require__(1002); -var GeomEllipse = __webpack_require__(95); +var Earcut = __webpack_require__(64); +var EllipseRender = __webpack_require__(1001); +var GeomEllipse = __webpack_require__(94); var Shape = __webpack_require__(31); /** @@ -88294,7 +88334,7 @@ module.exports = Ellipse; /***/ }), -/* 410 */ +/* 408 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88305,7 +88345,7 @@ module.exports = Ellipse; var Class = __webpack_require__(0); var Shape = __webpack_require__(31); -var GridRender = __webpack_require__(1005); +var GridRender = __webpack_require__(1004); /** * @classdesc @@ -88576,7 +88616,7 @@ module.exports = Grid; /***/ }), -/* 411 */ +/* 409 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88585,7 +88625,7 @@ module.exports = Grid; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var IsoBoxRender = __webpack_require__(1008); +var IsoBoxRender = __webpack_require__(1007); var Class = __webpack_require__(0); var Shape = __webpack_require__(31); @@ -88791,7 +88831,7 @@ module.exports = IsoBox; /***/ }), -/* 412 */ +/* 410 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88801,7 +88841,7 @@ module.exports = IsoBox; */ var Class = __webpack_require__(0); -var IsoTriangleRender = __webpack_require__(1011); +var IsoTriangleRender = __webpack_require__(1010); var Shape = __webpack_require__(31); /** @@ -89037,7 +89077,7 @@ module.exports = IsoTriangle; /***/ }), -/* 413 */ +/* 411 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89049,7 +89089,7 @@ module.exports = IsoTriangle; var Class = __webpack_require__(0); var Shape = __webpack_require__(31); var GeomLine = __webpack_require__(56); -var LineRender = __webpack_require__(1014); +var LineRender = __webpack_require__(1013); /** * @classdesc @@ -89204,7 +89244,7 @@ module.exports = Line; /***/ }), -/* 414 */ +/* 412 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89213,13 +89253,13 @@ module.exports = Line; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PolygonRender = __webpack_require__(1017); +var PolygonRender = __webpack_require__(1016); var Class = __webpack_require__(0); -var Earcut = __webpack_require__(66); -var GetAABB = __webpack_require__(415); -var GeomPolygon = __webpack_require__(200); +var Earcut = __webpack_require__(64); +var GetAABB = __webpack_require__(413); +var GeomPolygon = __webpack_require__(197); var Shape = __webpack_require__(31); -var Smooth = __webpack_require__(418); +var Smooth = __webpack_require__(416); /** * @classdesc @@ -89343,7 +89383,7 @@ module.exports = Polygon; /***/ }), -/* 415 */ +/* 413 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89399,7 +89439,7 @@ module.exports = GetAABB; /***/ }), -/* 416 */ +/* 414 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89410,7 +89450,7 @@ module.exports = GetAABB; var Length = __webpack_require__(57); var Line = __webpack_require__(56); -var Perimeter = __webpack_require__(417); +var Perimeter = __webpack_require__(415); /** * Returns an array of Point objects containing the coordinates of the points around the perimeter of the Polygon, @@ -89476,7 +89516,7 @@ module.exports = GetPoints; /***/ }), -/* 417 */ +/* 415 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89524,7 +89564,7 @@ module.exports = Perimeter; /***/ }), -/* 418 */ +/* 416 */ /***/ (function(module, exports) { /** @@ -89600,7 +89640,7 @@ module.exports = Smooth; /***/ }), -/* 419 */ +/* 417 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89612,7 +89652,7 @@ module.exports = Smooth; var Class = __webpack_require__(0); var GeomRectangle = __webpack_require__(12); var Shape = __webpack_require__(31); -var RectangleRender = __webpack_require__(1020); +var RectangleRender = __webpack_require__(1019); /** * @classdesc @@ -89712,7 +89752,7 @@ module.exports = Rectangle; /***/ }), -/* 420 */ +/* 418 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89721,9 +89761,9 @@ module.exports = Rectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var StarRender = __webpack_require__(1023); +var StarRender = __webpack_require__(1022); var Class = __webpack_require__(0); -var Earcut = __webpack_require__(66); +var Earcut = __webpack_require__(64); var Shape = __webpack_require__(31); /** @@ -90000,7 +90040,7 @@ module.exports = Star; /***/ }), -/* 421 */ +/* 419 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -90011,8 +90051,8 @@ module.exports = Star; var Class = __webpack_require__(0); var Shape = __webpack_require__(31); -var GeomTriangle = __webpack_require__(72); -var TriangleRender = __webpack_require__(1026); +var GeomTriangle = __webpack_require__(69); +var TriangleRender = __webpack_require__(1025); /** * @classdesc @@ -90143,7 +90183,7 @@ module.exports = Triangle; /***/ }), -/* 422 */ +/* 420 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -90230,7 +90270,7 @@ module.exports = GetPoint; /***/ }), -/* 423 */ +/* 421 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -90323,7 +90363,7 @@ module.exports = GetPoints; /***/ }), -/* 424 */ +/* 422 */ /***/ (function(module, exports) { /** @@ -90406,7 +90446,7 @@ module.exports = SetValue; /***/ }), -/* 425 */ +/* 423 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -90416,7 +90456,7 @@ module.exports = SetValue; */ var Class = __webpack_require__(0); -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * @classdesc @@ -90669,7 +90709,7 @@ module.exports = Light; /***/ }), -/* 426 */ +/* 424 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -90679,8 +90719,8 @@ module.exports = Light; */ var Class = __webpack_require__(0); -var Light = __webpack_require__(425); -var Utils = __webpack_require__(10); +var Light = __webpack_require__(423); +var Utils = __webpack_require__(9); /** * @callback LightForEach @@ -91032,7 +91072,7 @@ module.exports = LightsManager; /***/ }), -/* 427 */ +/* 425 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91050,14 +91090,14 @@ var Extend = __webpack_require__(17); var Geom = { - Circle: __webpack_require__(1086), - Ellipse: __webpack_require__(1096), - Intersects: __webpack_require__(428), - Line: __webpack_require__(1115), - Point: __webpack_require__(1137), - Polygon: __webpack_require__(1151), - Rectangle: __webpack_require__(441), - Triangle: __webpack_require__(1181) + Circle: __webpack_require__(1085), + Ellipse: __webpack_require__(1095), + Intersects: __webpack_require__(426), + Line: __webpack_require__(1114), + Point: __webpack_require__(1136), + Polygon: __webpack_require__(1150), + Rectangle: __webpack_require__(439), + Triangle: __webpack_require__(1180) }; @@ -91068,7 +91108,7 @@ module.exports = Geom; /***/ }), -/* 428 */ +/* 426 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91083,35 +91123,35 @@ module.exports = Geom; module.exports = { - CircleToCircle: __webpack_require__(204), - CircleToRectangle: __webpack_require__(205), - GetCircleToCircle: __webpack_require__(1106), - GetCircleToRectangle: __webpack_require__(1107), - GetLineToCircle: __webpack_require__(206), - GetLineToRectangle: __webpack_require__(208), - GetRectangleIntersection: __webpack_require__(1108), - GetRectangleToRectangle: __webpack_require__(1109), - GetRectangleToTriangle: __webpack_require__(1110), - GetTriangleToCircle: __webpack_require__(1111), - GetTriangleToLine: __webpack_require__(433), - GetTriangleToTriangle: __webpack_require__(1112), - LineToCircle: __webpack_require__(207), - LineToLine: __webpack_require__(84), - LineToRectangle: __webpack_require__(429), - PointToLine: __webpack_require__(437), - PointToLineSegment: __webpack_require__(1113), - RectangleToRectangle: __webpack_require__(131), - RectangleToTriangle: __webpack_require__(430), - RectangleToValues: __webpack_require__(1114), - TriangleToCircle: __webpack_require__(432), - TriangleToLine: __webpack_require__(434), - TriangleToTriangle: __webpack_require__(435) + CircleToCircle: __webpack_require__(201), + CircleToRectangle: __webpack_require__(202), + GetCircleToCircle: __webpack_require__(1105), + GetCircleToRectangle: __webpack_require__(1106), + GetLineToCircle: __webpack_require__(203), + GetLineToRectangle: __webpack_require__(205), + GetRectangleIntersection: __webpack_require__(1107), + GetRectangleToRectangle: __webpack_require__(1108), + GetRectangleToTriangle: __webpack_require__(1109), + GetTriangleToCircle: __webpack_require__(1110), + GetTriangleToLine: __webpack_require__(431), + GetTriangleToTriangle: __webpack_require__(1111), + LineToCircle: __webpack_require__(204), + LineToLine: __webpack_require__(83), + LineToRectangle: __webpack_require__(427), + PointToLine: __webpack_require__(435), + PointToLineSegment: __webpack_require__(1112), + RectangleToRectangle: __webpack_require__(130), + RectangleToTriangle: __webpack_require__(428), + RectangleToValues: __webpack_require__(1113), + TriangleToCircle: __webpack_require__(430), + TriangleToLine: __webpack_require__(432), + TriangleToTriangle: __webpack_require__(433) }; /***/ }), -/* 429 */ +/* 427 */ /***/ (function(module, exports) { /** @@ -91212,7 +91252,7 @@ module.exports = LineToRectangle; /***/ }), -/* 430 */ +/* 428 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91221,10 +91261,10 @@ module.exports = LineToRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var LineToLine = __webpack_require__(84); +var LineToLine = __webpack_require__(83); var Contains = __webpack_require__(47); -var ContainsArray = __webpack_require__(209); -var Decompose = __webpack_require__(431); +var ContainsArray = __webpack_require__(206); +var Decompose = __webpack_require__(429); /** * Checks for intersection between Rectangle shape and Triangle shape. @@ -91305,7 +91345,7 @@ module.exports = RectangleToTriangle; /***/ }), -/* 431 */ +/* 429 */ /***/ (function(module, exports) { /** @@ -91342,7 +91382,7 @@ module.exports = Decompose; /***/ }), -/* 432 */ +/* 430 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91351,8 +91391,8 @@ module.exports = Decompose; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var LineToCircle = __webpack_require__(207); -var Contains = __webpack_require__(83); +var LineToCircle = __webpack_require__(204); +var Contains = __webpack_require__(82); /** * Checks if a Triangle and a Circle intersect. @@ -91407,7 +91447,7 @@ module.exports = TriangleToCircle; /***/ }), -/* 433 */ +/* 431 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91418,8 +91458,8 @@ module.exports = TriangleToCircle; */ var Point = __webpack_require__(4); -var TriangleToLine = __webpack_require__(434); -var LineToLine = __webpack_require__(84); +var TriangleToLine = __webpack_require__(432); +var LineToLine = __webpack_require__(83); /** * Checks if a Triangle and a Line intersect, and returns the intersection points as a Point object array. @@ -91466,7 +91506,7 @@ module.exports = GetTriangleToLine; /***/ }), -/* 434 */ +/* 432 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91475,8 +91515,8 @@ module.exports = GetTriangleToLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(83); -var LineToLine = __webpack_require__(84); +var Contains = __webpack_require__(82); +var LineToLine = __webpack_require__(83); /** * Checks if a Triangle and a Line intersect. @@ -91522,7 +91562,7 @@ module.exports = TriangleToLine; /***/ }), -/* 435 */ +/* 433 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91531,9 +91571,9 @@ module.exports = TriangleToLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ContainsArray = __webpack_require__(209); -var Decompose = __webpack_require__(436); -var LineToLine = __webpack_require__(84); +var ContainsArray = __webpack_require__(206); +var Decompose = __webpack_require__(434); +var LineToLine = __webpack_require__(83); /** * Checks if two Triangles intersect. @@ -91612,7 +91652,7 @@ module.exports = TriangleToTriangle; /***/ }), -/* 436 */ +/* 434 */ /***/ (function(module, exports) { /** @@ -91647,7 +91687,7 @@ module.exports = Decompose; /***/ }), -/* 437 */ +/* 435 */ /***/ (function(module, exports) { /** @@ -91717,7 +91757,7 @@ module.exports = PointToLine; /***/ }), -/* 438 */ +/* 436 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91728,7 +91768,7 @@ module.exports = PointToLine; var MATH_CONST = __webpack_require__(15); var Wrap = __webpack_require__(58); -var Angle = __webpack_require__(85); +var Angle = __webpack_require__(84); /** * Get the angle of the normal of the given line in radians. @@ -91751,7 +91791,7 @@ module.exports = NormalAngle; /***/ }), -/* 439 */ +/* 437 */ /***/ (function(module, exports) { /** @@ -91779,7 +91819,7 @@ module.exports = GetMagnitude; /***/ }), -/* 440 */ +/* 438 */ /***/ (function(module, exports) { /** @@ -91807,7 +91847,7 @@ module.exports = GetMagnitudeSq; /***/ }), -/* 441 */ +/* 439 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91818,49 +91858,49 @@ module.exports = GetMagnitudeSq; var Rectangle = __webpack_require__(12); -Rectangle.Area = __webpack_require__(1156); -Rectangle.Ceil = __webpack_require__(1157); -Rectangle.CeilAll = __webpack_require__(1158); -Rectangle.CenterOn = __webpack_require__(166); -Rectangle.Clone = __webpack_require__(1159); +Rectangle.Area = __webpack_require__(1155); +Rectangle.Ceil = __webpack_require__(1156); +Rectangle.CeilAll = __webpack_require__(1157); +Rectangle.CenterOn = __webpack_require__(163); +Rectangle.Clone = __webpack_require__(1158); Rectangle.Contains = __webpack_require__(47); -Rectangle.ContainsPoint = __webpack_require__(1160); -Rectangle.ContainsRect = __webpack_require__(442); -Rectangle.CopyFrom = __webpack_require__(1161); -Rectangle.Decompose = __webpack_require__(431); -Rectangle.Equals = __webpack_require__(1162); -Rectangle.FitInside = __webpack_require__(1163); -Rectangle.FitOutside = __webpack_require__(1164); -Rectangle.Floor = __webpack_require__(1165); -Rectangle.FloorAll = __webpack_require__(1166); -Rectangle.FromPoints = __webpack_require__(175); -Rectangle.GetAspectRatio = __webpack_require__(211); -Rectangle.GetCenter = __webpack_require__(1167); -Rectangle.GetPoint = __webpack_require__(150); -Rectangle.GetPoints = __webpack_require__(273); -Rectangle.GetSize = __webpack_require__(1168); -Rectangle.Inflate = __webpack_require__(1169); -Rectangle.Intersection = __webpack_require__(1170); -Rectangle.MarchingAnts = __webpack_require__(284); -Rectangle.MergePoints = __webpack_require__(1171); -Rectangle.MergeRect = __webpack_require__(1172); -Rectangle.MergeXY = __webpack_require__(1173); -Rectangle.Offset = __webpack_require__(1174); -Rectangle.OffsetPoint = __webpack_require__(1175); -Rectangle.Overlaps = __webpack_require__(1176); -Rectangle.Perimeter = __webpack_require__(112); -Rectangle.PerimeterPoint = __webpack_require__(1177); -Rectangle.Random = __webpack_require__(153); -Rectangle.RandomOutside = __webpack_require__(1178); -Rectangle.SameDimensions = __webpack_require__(1179); -Rectangle.Scale = __webpack_require__(1180); -Rectangle.Union = __webpack_require__(391); +Rectangle.ContainsPoint = __webpack_require__(1159); +Rectangle.ContainsRect = __webpack_require__(440); +Rectangle.CopyFrom = __webpack_require__(1160); +Rectangle.Decompose = __webpack_require__(429); +Rectangle.Equals = __webpack_require__(1161); +Rectangle.FitInside = __webpack_require__(1162); +Rectangle.FitOutside = __webpack_require__(1163); +Rectangle.Floor = __webpack_require__(1164); +Rectangle.FloorAll = __webpack_require__(1165); +Rectangle.FromPoints = __webpack_require__(172); +Rectangle.GetAspectRatio = __webpack_require__(208); +Rectangle.GetCenter = __webpack_require__(1166); +Rectangle.GetPoint = __webpack_require__(147); +Rectangle.GetPoints = __webpack_require__(271); +Rectangle.GetSize = __webpack_require__(1167); +Rectangle.Inflate = __webpack_require__(1168); +Rectangle.Intersection = __webpack_require__(1169); +Rectangle.MarchingAnts = __webpack_require__(282); +Rectangle.MergePoints = __webpack_require__(1170); +Rectangle.MergeRect = __webpack_require__(1171); +Rectangle.MergeXY = __webpack_require__(1172); +Rectangle.Offset = __webpack_require__(1173); +Rectangle.OffsetPoint = __webpack_require__(1174); +Rectangle.Overlaps = __webpack_require__(1175); +Rectangle.Perimeter = __webpack_require__(109); +Rectangle.PerimeterPoint = __webpack_require__(1176); +Rectangle.Random = __webpack_require__(150); +Rectangle.RandomOutside = __webpack_require__(1177); +Rectangle.SameDimensions = __webpack_require__(1178); +Rectangle.Scale = __webpack_require__(1179); +Rectangle.Union = __webpack_require__(389); module.exports = Rectangle; /***/ }), -/* 442 */ +/* 440 */ /***/ (function(module, exports) { /** @@ -91900,7 +91940,7 @@ module.exports = ContainsRect; /***/ }), -/* 443 */ +/* 441 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91944,7 +91984,7 @@ module.exports = Centroid; /***/ }), -/* 444 */ +/* 442 */ /***/ (function(module, exports) { /** @@ -91985,7 +92025,7 @@ module.exports = Offset; /***/ }), -/* 445 */ +/* 443 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92050,7 +92090,7 @@ module.exports = InCenter; /***/ }), -/* 446 */ +/* 444 */ /***/ (function(module, exports) { /** @@ -92121,7 +92161,7 @@ module.exports = CreateInteractiveObject; /***/ }), -/* 447 */ +/* 445 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92246,7 +92286,7 @@ module.exports = Axis; /***/ }), -/* 448 */ +/* 446 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92256,7 +92296,7 @@ module.exports = Axis; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(213); +var Events = __webpack_require__(210); /** * @classdesc @@ -92392,7 +92432,7 @@ module.exports = Button; /***/ }), -/* 449 */ +/* 447 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92401,10 +92441,10 @@ module.exports = Button; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Axis = __webpack_require__(447); -var Button = __webpack_require__(448); +var Axis = __webpack_require__(445); +var Button = __webpack_require__(446); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); +var EventEmitter = __webpack_require__(10); var Vector2 = __webpack_require__(3); /** @@ -93150,7 +93190,7 @@ module.exports = Gamepad; /***/ }), -/* 450 */ +/* 448 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93160,8 +93200,8 @@ module.exports = Gamepad; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(133); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(132); /** * @classdesc @@ -93552,7 +93592,7 @@ module.exports = Key; /***/ }), -/* 451 */ +/* 449 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93562,10 +93602,10 @@ module.exports = Key; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(133); +var Events = __webpack_require__(132); var GetFastValue = __webpack_require__(2); -var ProcessKeyCombo = __webpack_require__(1220); -var ResetKeyCombo = __webpack_require__(1222); +var ProcessKeyCombo = __webpack_require__(1219); +var ResetKeyCombo = __webpack_require__(1221); /** * @classdesc @@ -93845,7 +93885,7 @@ module.exports = KeyCombo; /***/ }), -/* 452 */ +/* 450 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93854,7 +93894,7 @@ module.exports = KeyCombo; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MergeXHRSettings = __webpack_require__(214); +var MergeXHRSettings = __webpack_require__(211); /** * Creates a new XMLHttpRequest (xhr) object based on the given File and XHRSettings @@ -93918,7 +93958,7 @@ module.exports = XHRLoader; /***/ }), -/* 453 */ +/* 451 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93929,10 +93969,10 @@ module.exports = XHRLoader; var Class = __webpack_require__(0); var CONST = __webpack_require__(29); -var File = __webpack_require__(21); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var HTML5AudioFile = __webpack_require__(454); +var HTML5AudioFile = __webpack_require__(452); var IsPlainObject = __webpack_require__(7); /** @@ -94189,7 +94229,7 @@ module.exports = AudioFile; /***/ }), -/* 454 */ +/* 452 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94199,10 +94239,10 @@ module.exports = AudioFile; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(82); -var File = __webpack_require__(21); +var Events = __webpack_require__(81); +var File = __webpack_require__(20); var GetFastValue = __webpack_require__(2); -var GetURL = __webpack_require__(134); +var GetURL = __webpack_require__(133); var IsPlainObject = __webpack_require__(7); /** @@ -94387,7 +94427,7 @@ module.exports = HTML5AudioFile; /***/ }), -/* 455 */ +/* 453 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94397,8 +94437,8 @@ module.exports = HTML5AudioFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -94558,7 +94598,7 @@ module.exports = ScriptFile; /***/ }), -/* 456 */ +/* 454 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94568,8 +94608,8 @@ module.exports = ScriptFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -94733,7 +94773,7 @@ module.exports = TextFile; /***/ }), -/* 457 */ +/* 455 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94742,12 +94782,12 @@ module.exports = TextFile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcadeImage = __webpack_require__(458); -var ArcadeSprite = __webpack_require__(136); +var ArcadeImage = __webpack_require__(456); +var ArcadeSprite = __webpack_require__(135); var Class = __webpack_require__(0); var CONST = __webpack_require__(50); -var PhysicsGroup = __webpack_require__(459); -var StaticPhysicsGroup = __webpack_require__(460); +var PhysicsGroup = __webpack_require__(457); +var StaticPhysicsGroup = __webpack_require__(458); /** * @classdesc @@ -95004,7 +95044,7 @@ module.exports = Factory; /***/ }), -/* 458 */ +/* 456 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95014,8 +95054,8 @@ module.exports = Factory; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(216); -var Image = __webpack_require__(98); +var Components = __webpack_require__(213); +var Image = __webpack_require__(104); /** * @classdesc @@ -95104,7 +95144,7 @@ module.exports = ArcadeImage; /***/ }), -/* 459 */ +/* 457 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95113,11 +95153,11 @@ module.exports = ArcadeImage; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcadeSprite = __webpack_require__(136); +var ArcadeSprite = __webpack_require__(135); var Class = __webpack_require__(0); var CONST = __webpack_require__(50); var GetFastValue = __webpack_require__(2); -var Group = __webpack_require__(97); +var Group = __webpack_require__(96); var IsPlainObject = __webpack_require__(7); /** @@ -95389,7 +95429,7 @@ module.exports = PhysicsGroup; /***/ }), -/* 460 */ +/* 458 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95398,11 +95438,11 @@ module.exports = PhysicsGroup; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcadeSprite = __webpack_require__(136); +var ArcadeSprite = __webpack_require__(135); var Class = __webpack_require__(0); var CONST = __webpack_require__(50); var GetFastValue = __webpack_require__(2); -var Group = __webpack_require__(97); +var Group = __webpack_require__(96); var IsPlainObject = __webpack_require__(7); /** @@ -95580,7 +95620,7 @@ module.exports = StaticPhysicsGroup; /***/ }), -/* 461 */ +/* 459 */ /***/ (function(module, exports) { /** @@ -95665,7 +95705,7 @@ module.exports = OverlapRect; /***/ }), -/* 462 */ +/* 460 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95674,30 +95714,30 @@ module.exports = OverlapRect; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Body = __webpack_require__(463); +var Body = __webpack_require__(461); var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); -var Collider = __webpack_require__(464); +var Collider = __webpack_require__(462); var CONST = __webpack_require__(50); var DistanceBetween = __webpack_require__(53); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(217); -var FuzzyEqual = __webpack_require__(144); -var FuzzyGreaterThan = __webpack_require__(320); -var FuzzyLessThan = __webpack_require__(321); -var GetOverlapX = __webpack_require__(465); -var GetOverlapY = __webpack_require__(466); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(214); +var FuzzyEqual = __webpack_require__(141); +var FuzzyGreaterThan = __webpack_require__(318); +var FuzzyLessThan = __webpack_require__(319); +var GetOverlapX = __webpack_require__(463); +var GetOverlapY = __webpack_require__(464); var GetValue = __webpack_require__(6); -var ProcessQueue = __webpack_require__(185); -var ProcessTileCallbacks = __webpack_require__(1279); +var ProcessQueue = __webpack_require__(182); +var ProcessTileCallbacks = __webpack_require__(1278); var Rectangle = __webpack_require__(12); -var RTree = __webpack_require__(467); -var SeparateTile = __webpack_require__(1280); -var SeparateX = __webpack_require__(1285); -var SeparateY = __webpack_require__(1286); -var Set = __webpack_require__(108); -var StaticBody = __webpack_require__(469); -var TileIntersectsBody = __webpack_require__(468); +var RTree = __webpack_require__(465); +var SeparateTile = __webpack_require__(1279); +var SeparateX = __webpack_require__(1284); +var SeparateY = __webpack_require__(1285); +var Set = __webpack_require__(128); +var StaticBody = __webpack_require__(467); +var TileIntersectsBody = __webpack_require__(466); var TransformMatrix = __webpack_require__(30); var Vector2 = __webpack_require__(3); var Wrap = __webpack_require__(58); @@ -98054,7 +98094,7 @@ module.exports = World; /***/ }), -/* 463 */ +/* 461 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -98066,8 +98106,8 @@ module.exports = World; var Class = __webpack_require__(0); var CONST = __webpack_require__(50); -var Events = __webpack_require__(217); -var RadToDeg = __webpack_require__(172); +var Events = __webpack_require__(214); +var RadToDeg = __webpack_require__(169); var Rectangle = __webpack_require__(12); var RectangleContains = __webpack_require__(47); var Vector2 = __webpack_require__(3); @@ -98092,8 +98132,8 @@ var Body = new Class({ function Body (world, gameObject) { - var width = (gameObject.width) ? gameObject.width : 64; - var height = (gameObject.height) ? gameObject.height : 64; + var width = (gameObject.displayWidth) ? gameObject.displayWidth : 64; + var height = (gameObject.displayHeight) ? gameObject.displayHeight : 64; /** * The Arcade Physics simulation this Body belongs to. @@ -98207,7 +98247,10 @@ var Body = new Class({ * @type {Phaser.Math.Vector2} * @since 3.0.0 */ - this.position = new Vector2(gameObject.x, gameObject.y); + this.position = new Vector2( + gameObject.x - gameObject.scaleX * gameObject.displayOriginX, + gameObject.y - gameObject.scaleY * gameObject.displayOriginY + ); /** * The position of this Body during the previous step. @@ -98337,7 +98380,7 @@ var Body = new Class({ * @type {Phaser.Math.Vector2} * @since 3.0.0 */ - this.center = new Vector2(gameObject.x + this.halfWidth, gameObject.y + this.halfHeight); + this.center = new Vector2(this.position.x + this.halfWidth, this.position.y + this.halfHeight); /** * The Body's velocity, in pixels per second. @@ -98963,23 +99006,27 @@ var Body = new Class({ resetFlags: function () { // Store and reset collision flags - this.wasTouching.none = this.touching.none; - this.wasTouching.up = this.touching.up; - this.wasTouching.down = this.touching.down; - this.wasTouching.left = this.touching.left; - this.wasTouching.right = this.touching.right; + var wasTouching = this.wasTouching; + var touching = this.touching; + var blocked = this.blocked; - this.touching.none = true; - this.touching.up = false; - this.touching.down = false; - this.touching.left = false; - this.touching.right = false; + wasTouching.none = touching.none; + wasTouching.up = touching.up; + wasTouching.down = touching.down; + wasTouching.left = touching.left; + wasTouching.right = touching.right; - this.blocked.none = true; - this.blocked.up = false; - this.blocked.down = false; - this.blocked.left = false; - this.blocked.right = false; + touching.none = true; + touching.up = false; + touching.down = false; + touching.left = false; + touching.right = false; + + blocked.none = true; + blocked.up = false; + blocked.down = false; + blocked.left = false; + blocked.right = false; this.overlapR = 0; this.overlapX = 0; @@ -99292,10 +99339,10 @@ var Body = new Class({ if (center && gameObject.getCenter) { - var ox = gameObject.displayWidth / 2; - var oy = gameObject.displayHeight / 2; + var ox = (gameObject.width - width) / 2; + var oy = (gameObject.height - height) / 2; - this.offset.set(ox - this.halfWidth, oy - this.halfHeight); + this.offset.set(ox, oy); } this.isCircle = false; @@ -100382,7 +100429,7 @@ module.exports = Body; /***/ }), -/* 464 */ +/* 462 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -100565,7 +100612,7 @@ module.exports = Collider; /***/ }), -/* 465 */ +/* 463 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -100673,7 +100720,7 @@ module.exports = GetOverlapX; /***/ }), -/* 466 */ +/* 464 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -100781,7 +100828,7 @@ module.exports = GetOverlapY; /***/ }), -/* 467 */ +/* 465 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -100791,7 +100838,7 @@ module.exports = GetOverlapY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var quickselect = __webpack_require__(388); +var quickselect = __webpack_require__(386); /** * @classdesc @@ -101392,7 +101439,7 @@ function multiSelect (arr, left, right, n, compare) module.exports = rbush; /***/ }), -/* 468 */ +/* 466 */ /***/ (function(module, exports) { /** @@ -101415,7 +101462,6 @@ module.exports = rbush; var TileIntersectsBody = function (tileWorldRect, body) { // Currently, all bodies are treated as rectangles when colliding with a Tile. - return !( body.right <= tileWorldRect.left || body.bottom <= tileWorldRect.top || @@ -101428,7 +101474,7 @@ module.exports = TileIntersectsBody; /***/ }), -/* 469 */ +/* 467 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -101448,7 +101494,7 @@ var Vector2 = __webpack_require__(3); * A Static Arcade Physics Body. * * A Static Body never moves, and isn't automatically synchronized with its parent Game Object. - * That means if you make any change to the parent's origin, position, or scale after creating or adding the body, you'll need to update the Body manually. + * That means if you make any change to the parent's origin, position, or scale after creating or adding the body, you'll need to update the Static Body manually. * * A Static Body can collide with other Bodies, but is never moved by collisions. * @@ -101468,8 +101514,8 @@ var StaticBody = new Class({ function StaticBody (world, gameObject) { - var width = (gameObject.width) ? gameObject.width : 64; - var height = (gameObject.height) ? gameObject.height : 64; + var width = (gameObject.displayWidth) ? gameObject.displayWidth : 64; + var height = (gameObject.displayHeight) ? gameObject.displayHeight : 64; /** * The Arcade Physics simulation this Static Body belongs to. @@ -101528,8 +101574,8 @@ var StaticBody = new Class({ this.isCircle = false; /** - * If this Static Body is circular, this is the unscaled radius of the Static Body's boundary, as set by {@link #setCircle}, in source pixels. - * The true radius is equal to `halfWidth`. + * If this Static Body is circular, this is the radius of the boundary, as set by {@link Phaser.Physics.Arcade.StaticBody#setCircle}, in pixels. + * Equal to `halfWidth`. * * @name Phaser.Physics.Arcade.StaticBody#radius * @type {number} @@ -101539,12 +101585,13 @@ var StaticBody = new Class({ this.radius = 0; /** - * The offset of this Static Body's actual position from any updated position. + * The offset set by {@link Phaser.Physics.Arcade.StaticBody#setCircle} or {@link Phaser.Physics.Arcade.StaticBody#setSize}. * - * Unlike a dynamic Body, a Static Body does not follow its Game Object. As such, this offset is only applied when resizing the Static Body. + * This doesn't affect the Static Body's position, because a Static Body does not follow its Game Object. * * @name Phaser.Physics.Arcade.StaticBody#offset * @type {Phaser.Math.Vector2} + * @readonly * @since 3.0.0 */ this.offset = new Vector2(); @@ -101606,7 +101653,7 @@ var StaticBody = new Class({ * @type {Phaser.Math.Vector2} * @since 3.0.0 */ - this.center = new Vector2(gameObject.x + this.halfWidth, gameObject.y + this.halfHeight); + this.center = new Vector2(this.position.x + this.halfWidth, this.position.y + this.halfHeight); /** * A constant zero velocity used by the Arcade Physics simulation for calculations. @@ -101822,7 +101869,7 @@ var StaticBody = new Class({ this.physicsType = CONST.STATIC_BODY; /** - * The calculated change in the Body's horizontal position during the current step. + * The calculated change in the Static Body's horizontal position during the current step. * For a static body this is always zero. * * @name Phaser.Physics.Arcade.StaticBody#_dx @@ -101834,7 +101881,7 @@ var StaticBody = new Class({ this._dx = 0; /** - * The calculated change in the Body's vertical position during the current step. + * The calculated change in the Static Body's vertical position during the current step. * For a static body this is always zero. * * @name Phaser.Physics.Arcade.StaticBody#_dy @@ -101883,7 +101930,7 @@ var StaticBody = new Class({ }, /** - * Syncs the Body's position and size with its parent Game Object. + * Syncs the Static Body's position and size with its parent Game Object. * * @method Phaser.Physics.Arcade.StaticBody#updateFromGameObject * @since 3.1.0 @@ -101912,13 +101959,13 @@ var StaticBody = new Class({ }, /** - * Sets the offset of the body. + * Positions the Static Body at an offset from its Game Object. * * @method Phaser.Physics.Arcade.StaticBody#setOffset * @since 3.4.0 * - * @param {number} x - The horizontal offset of the Body from the Game Object's center. - * @param {number} y - The vertical offset of the Body from the Game Object's center. + * @param {number} x - The horizontal offset of the Static Body from the Game Object's `x`. + * @param {number} y - The vertical offset of the Static Body from the Game Object's `y`. * * @return {Phaser.Physics.Arcade.StaticBody} This Static Body object. */ @@ -101944,15 +101991,16 @@ var StaticBody = new Class({ }, /** - * Sets the size of the body. + * Sets the size of the Static Body. + * When `center` is true, also repositions it. * Resets the width and height to match current frame, if no width and height provided and a frame is found. * * @method Phaser.Physics.Arcade.StaticBody#setSize * @since 3.0.0 * - * @param {integer} [width] - The width of the Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame width. - * @param {integer} [height] - The height of the Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame height. - * @param {boolean} [center=true] - Modify the Body's `offset`, placing the Body's center on its Game Object's center. Only works if the Game Object has the `getCenter` method. + * @param {integer} [width] - The width of the Static Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame width. + * @param {integer} [height] - The height of the Static Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame height. + * @param {boolean} [center=true] - Place the Static Body's center on its Game Object's center. Only works if the Game Object has the `getCenter` method. * * @return {Phaser.Physics.Arcade.StaticBody} This Static Body object. */ @@ -102005,7 +102053,7 @@ var StaticBody = new Class({ }, /** - * Sets this Static Body to have a circular body and sets its sizes and position. + * Sets this Static Body to have a circular body and sets its size and position. * * @method Phaser.Physics.Arcade.StaticBody#setCircle * @since 3.0.0 @@ -102415,10 +102463,8 @@ module.exports = StaticBody; /***/ }), -/* 470 */, -/* 471 */, -/* 472 */, -/* 473 */ +/* 468 */, +/* 469 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102548,7 +102594,118 @@ module.exports = BasePlugin; /***/ }), -/* 474 */ +/* 470 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * Converts from tile X coordinates (tile units) to world X coordinates (pixels), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.TileToWorldX + * @private + * @since 3.0.0 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} + */ +var TileToWorldX = function (tileX, camera, layer) +{ + var orientation = layer.orientation; + var tileWidth = layer.baseTileWidth; + var tilemapLayer = layer.tilemapLayer; + var layerWorldX = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + + tileWidth *= tilemapLayer.scaleX; + } + + + if (orientation === 'orthogonal') + { + return layerWorldX + tileX * tileWidth; + } + else if (orientation === 'isometric') + { + // Not Best Solution ? + console.warn('With isometric map types you have to use the TileToWorldXY function.'); + return null; + } + + +}; + +module.exports = TileToWorldX; + + +/***/ }), +/* 471 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * Converts from tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.TileToWorldY + * @private + * @since 3.0.0 + * + * @param {integer} tileY - The x coordinate, in tiles, not pixels. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} + */ +var TileToWorldY = function (tileY, camera, layer) +{ + var orientation = layer.orientation; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + if (orientation === 'orthogonal') + { + return layerWorldY + tileY * tileHeight; + } + else if (orientation === 'isometric') + { + // Not Best Solution ? + console.warn('With isometric map types you have to use the TileToWorldXY function.'); + return null; + } +}; + +module.exports = TileToWorldY; + + +/***/ }), +/* 472 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102592,6 +102749,129 @@ var ReplaceByIndex = function (findIndex, newIndex, tileX, tileY, width, height, module.exports = ReplaceByIndex; +/***/ }), +/* 473 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * Converts from world X coordinates (pixels) to tile X coordinates (tile units), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.WorldToTileX + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} The X location in tile units. + */ +var WorldToTileX = function (worldX, snapToFloor, camera, layer) +{ + + var orientation = layer.orientation; + if (snapToFloor === undefined) { snapToFloor = true; } + + var tileWidth = layer.baseTileWidth; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's horizontal scroll + worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); + + tileWidth *= tilemapLayer.scaleX; + } + + if (orientation === 'orthogonal') + { + return snapToFloor + ? Math.floor(worldX / tileWidth) + : worldX / tileWidth; + } + else if (orientation === 'isometric') + { + console.warn('With isometric map types you have to use the WorldToTileXY function.'); + return null; + } + +}; + +module.exports = WorldToTileX; + + +/***/ }), +/* 474 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * Converts from world Y coordinates (pixels) to tile Y coordinates (tile units), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.WorldToTileY + * @private + * @since 3.0.0 + * + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} The Y location in tile units. + */ +var WorldToTileY = function (worldY, snapToFloor, camera, layer) +{ + var orientation = layer.orientation; + if (snapToFloor === undefined) { snapToFloor = true; } + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + tileHeight *= tilemapLayer.scaleY; + + } + + if (orientation === 'orthogonal') + { + return snapToFloor + ? Math.floor(worldY / tileHeight) + : worldY / tileHeight; + } + else if (orientation === 'isometric') + { + console.warn('With isometric map types you have to use the WorldToTileXY function.'); + return null; + + } +}; + +module.exports = WorldToTileY; + + /***/ }), /* 475 */ /***/ (function(module, exports, __webpack_require__) { @@ -102602,88 +102882,7 @@ module.exports = ReplaceByIndex; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); -var Vector2 = __webpack_require__(3); - -/** - * Converts from world XY coordinates (pixels) to tile XY coordinates (tile units), factoring in the - * layer's position, scale and scroll. This will return a new Vector2 object or update the given - * `point` object. - * - * @function Phaser.Tilemaps.Components.WorldToTileXY - * @private - * @since 3.0.0 - * - * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. - * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. - * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. - * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {Phaser.Math.Vector2} The XY location in tile units. - */ -var WorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) -{ - var orientation = layer.orientation; - if (point === undefined) { point = new Vector2(0, 0); } - - if (orientation === "orthogonal") { - point.x = WorldToTileX(worldX, snapToFloor, camera, layer, orientation); - point.y = WorldToTileY(worldY, snapToFloor, camera, layer, orientation); - } else if (orientation === 'isometric') { - - var tileWidth = layer.baseTileWidth; - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's vertical scroll - // console.log(1,worldY) - worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - // console.log(worldY) - tileHeight *= tilemapLayer.scaleY; - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's horizontal scroll - worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); - - tileWidth *= tilemapLayer.scaleX; - } - - point.x = snapToFloor - ? Math.floor((worldX/(tileWidth/2) + worldY/(tileHeight/2))/2) - : ((worldX/(tileWidth/2) + worldY/(tileHeight/2))/2); - - point.y = snapToFloor - ? Math.floor((worldY/(tileHeight/2) - worldX/(tileWidth/2))/2) - : ((worldY/(tileHeight/2) - worldX/(tileWidth/2))/2); - } - - - - return point; -}; - -module.exports = WorldToTileXY; - - -/***/ }), -/* 476 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var IsInLayerBounds = __webpack_require__(103); +var IsInLayerBounds = __webpack_require__(100); /** * Checks if there is a tile at the given location (in tile coordinates) in the given layer. Returns @@ -102717,7 +102916,7 @@ module.exports = HasTileAt; /***/ }), -/* 477 */ +/* 476 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102726,9 +102925,9 @@ module.exports = HasTileAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tile = __webpack_require__(75); -var IsInLayerBounds = __webpack_require__(103); -var CalculateFacesAt = __webpack_require__(219); +var Tile = __webpack_require__(73); +var IsInLayerBounds = __webpack_require__(100); +var CalculateFacesAt = __webpack_require__(216); /** * Removes the tile at the given tile coordinates in the specified layer and updates the layer's @@ -102780,7 +102979,7 @@ module.exports = RemoveTileAt; /***/ }), -/* 478 */ +/* 477 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102789,11 +102988,11 @@ module.exports = RemoveTileAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Formats = __webpack_require__(32); -var Parse2DArray = __webpack_require__(222); -var ParseCSV = __webpack_require__(479); -var ParseJSONTiled = __webpack_require__(480); -var ParseWeltmeister = __webpack_require__(491); +var Formats = __webpack_require__(33); +var Parse2DArray = __webpack_require__(220); +var ParseCSV = __webpack_require__(478); +var ParseJSONTiled = __webpack_require__(479); +var ParseWeltmeister = __webpack_require__(490); /** * Parses raw data of a given Tilemap format into a new MapData object. If no recognized data format @@ -102850,7 +103049,7 @@ module.exports = Parse; /***/ }), -/* 479 */ +/* 478 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102859,8 +103058,8 @@ module.exports = Parse; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Formats = __webpack_require__(32); -var Parse2DArray = __webpack_require__(222); +var Formats = __webpack_require__(33); +var Parse2DArray = __webpack_require__(220); /** * Parses a CSV string of tile indexes into a new MapData object with a single layer. @@ -102898,7 +103097,7 @@ module.exports = ParseCSV; /***/ }), -/* 480 */ +/* 479 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102907,14 +103106,14 @@ module.exports = ParseCSV; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Formats = __webpack_require__(32); -var MapData = __webpack_require__(105); -var ParseTileLayers = __webpack_require__(481); -var ParseImageLayers = __webpack_require__(483); -var ParseTilesets = __webpack_require__(484); -var ParseObjectLayers = __webpack_require__(487); -var BuildTilesetIndex = __webpack_require__(489); -var AssignTileProperties = __webpack_require__(490); +var Formats = __webpack_require__(33); +var MapData = __webpack_require__(102); +var ParseTileLayers = __webpack_require__(480); +var ParseImageLayers = __webpack_require__(482); +var ParseTilesets = __webpack_require__(483); +var ParseObjectLayers = __webpack_require__(486); +var BuildTilesetIndex = __webpack_require__(488); +var AssignTileProperties = __webpack_require__(489); /** * Parses a Tiled JSON object into a new MapData object. @@ -102935,11 +103134,13 @@ var AssignTileProperties = __webpack_require__(490); */ var ParseJSONTiled = function (name, json, insertNull) { - if (json.orientation == 'isometric') + if (json.orientation === 'isometric') { console.warn('isometric map types are WIP in this version of Phaser'); - } else if (json.orientation !== 'orthogonal') { + } + else if (json.orientation !== 'orthogonal') + { console.warn('Only orthogonal map types are supported in this version of Phaser'); return null; } @@ -102979,7 +103180,7 @@ module.exports = ParseJSONTiled; /***/ }), -/* 481 */ +/* 480 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102988,12 +103189,12 @@ module.exports = ParseJSONTiled; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Base64Decode = __webpack_require__(482); +var Base64Decode = __webpack_require__(481); var GetFastValue = __webpack_require__(2); -var LayerData = __webpack_require__(104); -var ParseGID = __webpack_require__(223); -var Tile = __webpack_require__(75); -var CreateGroupLayer = __webpack_require__(224); +var LayerData = __webpack_require__(101); +var ParseGID = __webpack_require__(221); +var Tile = __webpack_require__(73); +var CreateGroupLayer = __webpack_require__(222); /** * Parses all tilemap layers in a Tiled JSON object into new LayerData objects. @@ -103115,7 +103316,6 @@ var ParseTileLayers = function (json, insertNull) orientation: json.orientation }); - console.log("layerdata orientation", layerData.orientation) for (var c = 0; c < curl.height; c++) { @@ -103190,7 +103390,6 @@ var ParseTileLayers = function (json, insertNull) properties: GetFastValue(curl, 'properties', {}), orientation: json.orientation }); - console.log("layerdata orientation", layerData.orientation) var row = []; // Loop through the data field in the JSON. @@ -103241,7 +103440,7 @@ module.exports = ParseTileLayers; /***/ }), -/* 482 */ +/* 481 */ /***/ (function(module, exports) { /** @@ -103284,7 +103483,7 @@ module.exports = Base64Decode; /***/ }), -/* 483 */ +/* 482 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103294,7 +103493,7 @@ module.exports = Base64Decode; */ var GetFastValue = __webpack_require__(2); -var CreateGroupLayer = __webpack_require__(224); +var CreateGroupLayer = __webpack_require__(222); /** * Parses a Tiled JSON object into an array of objects with details about the image layers. @@ -103372,7 +103571,7 @@ module.exports = ParseImageLayers; /***/ }), -/* 484 */ +/* 483 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103381,9 +103580,9 @@ module.exports = ParseImageLayers; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tileset = __webpack_require__(141); -var ImageCollection = __webpack_require__(485); -var ParseObject = __webpack_require__(225); +var Tileset = __webpack_require__(138); +var ImageCollection = __webpack_require__(484); +var ParseObject = __webpack_require__(223); /** * Tilesets and Image Collections @@ -103541,7 +103740,7 @@ module.exports = ParseTilesets; /***/ }), -/* 485 */ +/* 484 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103713,7 +103912,7 @@ module.exports = ImageCollection; /***/ }), -/* 486 */ +/* 485 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103722,7 +103921,7 @@ module.exports = ImageCollection; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HasValue = __webpack_require__(99); +var HasValue = __webpack_require__(105); /** * Returns a new object that only contains the `keys` that were found on the object provided. @@ -103757,7 +103956,7 @@ module.exports = Pick; /***/ }), -/* 487 */ +/* 486 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103767,9 +103966,9 @@ module.exports = Pick; */ var GetFastValue = __webpack_require__(2); -var ParseObject = __webpack_require__(225); -var ObjectLayer = __webpack_require__(488); -var CreateGroupLayer = __webpack_require__(224); +var ParseObject = __webpack_require__(223); +var ObjectLayer = __webpack_require__(487); +var CreateGroupLayer = __webpack_require__(222); /** * Parses a Tiled JSON object into an array of ObjectLayer objects. @@ -103856,7 +104055,7 @@ module.exports = ParseObjectLayers; /***/ }), -/* 488 */ +/* 487 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -103978,7 +104177,7 @@ module.exports = ObjectLayer; /***/ }), -/* 489 */ +/* 488 */ /***/ (function(module, exports) { /** @@ -104051,7 +104250,7 @@ module.exports = BuildTilesetIndex; /***/ }), -/* 490 */ +/* 489 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104124,7 +104323,7 @@ module.exports = AssignTileProperties; /***/ }), -/* 491 */ +/* 490 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104133,10 +104332,10 @@ module.exports = AssignTileProperties; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Formats = __webpack_require__(32); -var MapData = __webpack_require__(105); -var ParseTileLayers = __webpack_require__(492); -var ParseTilesets = __webpack_require__(493); +var Formats = __webpack_require__(33); +var MapData = __webpack_require__(102); +var ParseTileLayers = __webpack_require__(491); +var ParseTilesets = __webpack_require__(492); /** * Parses a Weltmeister JSON object into a new MapData object. @@ -104191,7 +104390,7 @@ module.exports = ParseWeltmeister; /***/ }), -/* 492 */ +/* 491 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104200,8 +104399,8 @@ module.exports = ParseWeltmeister; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var LayerData = __webpack_require__(104); -var Tile = __webpack_require__(75); +var LayerData = __webpack_require__(101); +var Tile = __webpack_require__(73); /** * [description] @@ -104275,7 +104474,7 @@ module.exports = ParseTileLayers; /***/ }), -/* 493 */ +/* 492 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104284,7 +104483,7 @@ module.exports = ParseTileLayers; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tileset = __webpack_require__(141); +var Tileset = __webpack_require__(138); /** * [description] @@ -104326,7 +104525,7 @@ module.exports = ParseTilesets; /***/ }), -/* 494 */ +/* 493 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -104337,16 +104536,16 @@ module.exports = ParseTilesets; var Class = __webpack_require__(0); var DegToRad = __webpack_require__(35); -var DynamicTilemapLayer = __webpack_require__(495); +var DynamicTilemapLayer = __webpack_require__(494); var Extend = __webpack_require__(17); -var Formats = __webpack_require__(32); -var LayerData = __webpack_require__(104); -var Rotate = __webpack_require__(330); -var SpliceOne = __webpack_require__(80); -var StaticTilemapLayer = __webpack_require__(496); -var Tile = __webpack_require__(75); -var TilemapComponents = __webpack_require__(137); -var Tileset = __webpack_require__(141); +var Formats = __webpack_require__(33); +var LayerData = __webpack_require__(101); +var Rotate = __webpack_require__(328); +var SpliceOne = __webpack_require__(79); +var StaticTilemapLayer = __webpack_require__(495); +var Tile = __webpack_require__(73); +var TilemapComponents = __webpack_require__(136); +var Tileset = __webpack_require__(138); /** * @callback TilemapFilterCallback @@ -104466,7 +104665,6 @@ var Tilemap = new Class({ * @since 3.0.0 */ this.orientation = mapData.orientation; - console.log("map orientation :" + this.orientation) /** * The render (draw) order of the map data (as specified in Tiled), usually 'right-down'. @@ -104836,8 +105034,7 @@ var Tilemap = new Class({ height: height, orientation: this.orientation }); - console.log("tm orientation : ",layerData.orientation) - + var row; for (var tileY = 0; tileY < height; tileY++) @@ -106679,7 +106876,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.TileToWorldX(tileX, camera, layer, this.orientation); + return TilemapComponents.TileToWorldX(tileX, camera, layer); }, /** @@ -106704,7 +106901,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.TileToWorldY(tileX, camera, layer, this.orientation); + return TilemapComponents.TileToWorldY(tileX, camera, layer); }, /** @@ -106731,7 +106928,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.TileToWorldXY(tileX, tileY, point, camera, layer, this.orientation); + return TilemapComponents.TileToWorldXY(tileX, tileY, point, camera, layer); }, /** @@ -106802,7 +106999,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.WorldToTileX(worldX, snapToFloor, camera, layer, this.orientation); + return TilemapComponents.WorldToTileX(worldX, snapToFloor, camera, layer); }, /** @@ -106827,7 +107024,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.WorldToTileY(worldY, snapToFloor, camera, layer,this.orientation); + return TilemapComponents.WorldToTileY(worldY, snapToFloor, camera, layer); }, /** @@ -106855,7 +107052,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, layer, this.orientation); + return TilemapComponents.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, layer); }, /** @@ -106886,7 +107083,7 @@ module.exports = Tilemap; /***/ }), -/* 495 */ +/* 494 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -106897,9 +107094,9 @@ module.exports = Tilemap; var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var DynamicTilemapLayerRender = __webpack_require__(1341); +var DynamicTilemapLayerRender = __webpack_require__(1337); var GameObject = __webpack_require__(13); -var TilemapComponents = __webpack_require__(137); +var TilemapComponents = __webpack_require__(136); /** * @classdesc @@ -107140,8 +107337,8 @@ var DynamicTilemapLayer = new Class({ this.initPipeline('TextureTintPipeline'); - console.log("layer sizes") - console.log(this.layer.tileWidth,this.layer.tileHeight) + console.log('layer sizes'); + console.log(this.layer.tileWidth,this.layer.tileHeight); }, /** @@ -108210,7 +108407,7 @@ module.exports = DynamicTilemapLayer; /***/ }), -/* 496 */ +/* 495 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108223,10 +108420,10 @@ var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameEvents = __webpack_require__(18); var GameObject = __webpack_require__(13); -var StaticTilemapLayerRender = __webpack_require__(1344); -var TilemapComponents = __webpack_require__(137); +var StaticTilemapLayerRender = __webpack_require__(1340); +var TilemapComponents = __webpack_require__(136); var TransformMatrix = __webpack_require__(30); -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * @classdesc @@ -109707,7 +109904,7 @@ module.exports = StaticTilemapLayer; /***/ }), -/* 497 */ +/* 496 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110020,7 +110217,7 @@ module.exports = TimerEvent; /***/ }), -/* 498 */ +/* 497 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110029,7 +110226,7 @@ module.exports = TimerEvent; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RESERVED = __webpack_require__(1353); +var RESERVED = __webpack_require__(1349); /** * Internal function used by the Tween Builder to return an array of properties @@ -110081,7 +110278,7 @@ module.exports = GetProps; /***/ }), -/* 499 */ +/* 498 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110129,7 +110326,7 @@ module.exports = GetTweens; /***/ }), -/* 500 */ +/* 499 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110138,15 +110335,15 @@ module.exports = GetTweens; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Defaults = __webpack_require__(229); +var Defaults = __webpack_require__(227); var GetAdvancedValue = __webpack_require__(14); -var GetBoolean = __webpack_require__(88); -var GetEaseFunction = __webpack_require__(70); -var GetNewValue = __webpack_require__(142); +var GetBoolean = __webpack_require__(87); +var GetEaseFunction = __webpack_require__(67); +var GetNewValue = __webpack_require__(139); var GetValue = __webpack_require__(6); -var GetValueOp = __webpack_require__(228); -var Tween = __webpack_require__(230); -var TweenData = __webpack_require__(232); +var GetValueOp = __webpack_require__(226); +var Tween = __webpack_require__(228); +var TweenData = __webpack_require__(230); /** * Creates a new Number Tween. @@ -110259,7 +110456,7 @@ module.exports = NumberTweenBuilder; /***/ }), -/* 501 */ +/* 500 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110268,7 +110465,7 @@ module.exports = NumberTweenBuilder; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetEaseFunction = __webpack_require__(70); +var GetEaseFunction = __webpack_require__(67); var GetValue = __webpack_require__(6); var MATH_CONST = __webpack_require__(15); @@ -110505,7 +110702,7 @@ module.exports = StaggerBuilder; /***/ }), -/* 502 */ +/* 501 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110514,17 +110711,17 @@ module.exports = StaggerBuilder; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clone = __webpack_require__(67); -var Defaults = __webpack_require__(229); +var Clone = __webpack_require__(65); +var Defaults = __webpack_require__(227); var GetAdvancedValue = __webpack_require__(14); -var GetBoolean = __webpack_require__(88); -var GetEaseFunction = __webpack_require__(70); -var GetNewValue = __webpack_require__(142); -var GetTargets = __webpack_require__(227); -var GetTweens = __webpack_require__(499); +var GetBoolean = __webpack_require__(87); +var GetEaseFunction = __webpack_require__(67); +var GetNewValue = __webpack_require__(139); +var GetTargets = __webpack_require__(225); +var GetTweens = __webpack_require__(498); var GetValue = __webpack_require__(6); -var Timeline = __webpack_require__(503); -var TweenBuilder = __webpack_require__(143); +var Timeline = __webpack_require__(502); +var TweenBuilder = __webpack_require__(140); /** * Builds a Timeline of Tweens based on a configuration object. @@ -110657,7 +110854,7 @@ module.exports = TimelineBuilder; /***/ }), -/* 503 */ +/* 502 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -110667,10 +110864,10 @@ module.exports = TimelineBuilder; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(231); -var TweenBuilder = __webpack_require__(143); -var TWEEN_CONST = __webpack_require__(89); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(229); +var TweenBuilder = __webpack_require__(140); +var TWEEN_CONST = __webpack_require__(88); /** * @classdesc @@ -111562,7 +111759,7 @@ module.exports = Timeline; /***/ }), -/* 504 */ +/* 503 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -111571,9 +111768,9 @@ module.exports = Timeline; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseAnimation = __webpack_require__(149); +var BaseAnimation = __webpack_require__(146); var Class = __webpack_require__(0); -var Events = __webpack_require__(111); +var Events = __webpack_require__(108); /** * @classdesc @@ -112740,7 +112937,7 @@ module.exports = Animation; /***/ }), -/* 505 */ +/* 504 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -112750,12 +112947,12 @@ module.exports = Animation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasSnapshot = __webpack_require__(506); +var CanvasSnapshot = __webpack_require__(505); var CameraEvents = __webpack_require__(48); var Class = __webpack_require__(0); var CONST = __webpack_require__(29); -var GetBlendModes = __webpack_require__(507); -var ScaleEvents = __webpack_require__(92); +var GetBlendModes = __webpack_require__(506); +var ScaleEvents = __webpack_require__(91); var TransformMatrix = __webpack_require__(30); /** @@ -113537,7 +113734,7 @@ module.exports = CanvasRenderer; /***/ }), -/* 506 */ +/* 505 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -113547,7 +113744,7 @@ module.exports = CanvasRenderer; */ var CanvasPool = __webpack_require__(26); -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); var GetFastValue = __webpack_require__(2); /** @@ -113630,7 +113827,7 @@ module.exports = CanvasSnapshot; /***/ }), -/* 507 */ +/* 506 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -113640,7 +113837,7 @@ module.exports = CanvasSnapshot; */ var modes = __webpack_require__(52); -var CanvasFeatures = __webpack_require__(315); +var CanvasFeatures = __webpack_require__(313); /** * Returns an array which maps the default blend modes to supported Canvas blend modes. @@ -113694,7 +113891,7 @@ module.exports = GetBlendModes; /***/ }), -/* 508 */ +/* 507 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -113704,25 +113901,25 @@ module.exports = GetBlendModes; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCamera = __webpack_require__(91); +var BaseCamera = __webpack_require__(90); var CameraEvents = __webpack_require__(48); var Class = __webpack_require__(0); var CONST = __webpack_require__(29); var GameEvents = __webpack_require__(18); -var IsSizePowerOfTwo = __webpack_require__(118); +var IsSizePowerOfTwo = __webpack_require__(115); var NOOP = __webpack_require__(1); -var ScaleEvents = __webpack_require__(92); -var SpliceOne = __webpack_require__(80); -var TextureEvents = __webpack_require__(119); +var ScaleEvents = __webpack_require__(91); +var SpliceOne = __webpack_require__(79); +var TextureEvents = __webpack_require__(116); var TransformMatrix = __webpack_require__(30); -var Utils = __webpack_require__(10); -var WebGLSnapshot = __webpack_require__(509); +var Utils = __webpack_require__(9); +var WebGLSnapshot = __webpack_require__(508); // Default Pipelines -var BitmapMaskPipeline = __webpack_require__(510); -var ForwardDiffuseLightPipeline = __webpack_require__(511); -var TextureTintPipeline = __webpack_require__(236); -var TextureTintStripPipeline = __webpack_require__(512); +var BitmapMaskPipeline = __webpack_require__(509); +var ForwardDiffuseLightPipeline = __webpack_require__(510); +var TextureTintPipeline = __webpack_require__(234); +var TextureTintStripPipeline = __webpack_require__(511); /** * @callback WebGLContextCallback @@ -116246,14 +116443,16 @@ var WebGLRenderer = new Class({ }, /** - * [description] + * Sets a 1f uniform value on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat1 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {number} x - [description] + * @param {number} x - The 1f value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -116267,15 +116466,17 @@ var WebGLRenderer = new Class({ }, /** - * [description] + * Sets the 2f uniform values on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat2 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {number} x - [description] - * @param {number} y - [description] + * @param {number} x - The 2f x value to set on the named uniform. + * @param {number} y - The 2f y value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -116289,16 +116490,18 @@ var WebGLRenderer = new Class({ }, /** - * [description] + * Sets the 3f uniform values on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat3 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {number} x - [description] - * @param {number} y - [description] - * @param {number} z - [description] + * @param {number} x - The 3f x value to set on the named uniform. + * @param {number} y - The 3f y value to set on the named uniform. + * @param {number} z - The 3f z value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -116312,17 +116515,19 @@ var WebGLRenderer = new Class({ }, /** - * Sets uniform of a WebGLProgram + * Sets the 4f uniform values on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat4 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {number} x - X component - * @param {number} y - Y component - * @param {number} z - Z component - * @param {number} w - W component + * @param {number} x - The 4f x value to set on the named uniform. + * @param {number} y - The 4f y value to set on the named uniform. + * @param {number} z - The 4f z value to set on the named uniform. + * @param {number} w - The 4f w value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -116336,7 +116541,9 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the value of a 1fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat1v * @since 3.13.0 @@ -116357,7 +116564,9 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the value of a 2fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat2v * @since 3.13.0 @@ -116378,7 +116587,9 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the value of a 3fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat3v * @since 3.13.0 @@ -116399,7 +116610,9 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the value of a 4fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat4v * @since 3.13.0 @@ -116421,14 +116634,16 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets a 1i uniform value on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setInt1 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {integer} x - [description] + * @param {integer} x - The 1i value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -116442,15 +116657,17 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the 2i uniform values on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setInt2 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {integer} x - The new X component - * @param {integer} y - The new Y component + * @param {integer} x - The 2i x value to set on the named uniform. + * @param {integer} y - The 2i y value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -116464,16 +116681,18 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the 3i uniform values on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setInt3 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {integer} x - The new X component - * @param {integer} y - The new Y component - * @param {integer} z - The new Z component + * @param {integer} x - The 3i x value to set on the named uniform. + * @param {integer} y - The 3i y value to set on the named uniform. + * @param {integer} z - The 3i z value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -116487,17 +116706,19 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the 4i uniform values on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setInt4 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {integer} x - X component - * @param {integer} y - Y component - * @param {integer} z - Z component - * @param {integer} w - W component + * @param {integer} x - The 4i x value to set on the named uniform. + * @param {integer} y - The 4i y value to set on the named uniform. + * @param {integer} z - The 4i z value to set on the named uniform. + * @param {integer} w - The 4i w value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -116511,7 +116732,9 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a 2x2 matrix uniform variable in the given WebGLProgram. + * Sets the value of a matrix 2fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setMatrix2 * @since 3.0.0 @@ -116519,7 +116742,7 @@ var WebGLRenderer = new Class({ * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. * @param {boolean} transpose - The value indicating whether to transpose the matrix. Must be false. - * @param {Float32Array} matrix - The new matrix value. + * @param {Float32Array} matrix - A Float32Array or sequence of 4 float values. * * @return {this} This WebGL Renderer instance. */ @@ -116533,15 +116756,17 @@ var WebGLRenderer = new Class({ }, /** - * [description] + * Sets the value of a matrix 3fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setMatrix3 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {boolean} transpose - [description] - * @param {Float32Array} matrix - [description] + * @param {boolean} transpose - The value indicating whether to transpose the matrix. Must be false. + * @param {Float32Array} matrix - A Float32Array or sequence of 9 float values. * * @return {this} This WebGL Renderer instance. */ @@ -116555,15 +116780,17 @@ var WebGLRenderer = new Class({ }, /** - * Sets uniform of a WebGLProgram + * Sets the value of a matrix 4fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setMatrix4 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {boolean} transpose - Is the matrix transposed - * @param {Float32Array} matrix - Matrix data + * @param {boolean} transpose - The value indicating whether to transpose the matrix. Must be false. + * @param {Float32Array} matrix - A Float32Array or sequence of 16 float values. * * @return {this} This WebGL Renderer instance. */ @@ -116653,7 +116880,7 @@ module.exports = WebGLRenderer; /***/ }), -/* 509 */ +/* 508 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -116663,7 +116890,7 @@ module.exports = WebGLRenderer; */ var CanvasPool = __webpack_require__(26); -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); var GetFastValue = __webpack_require__(2); /** @@ -116763,7 +116990,7 @@ module.exports = WebGLSnapshot; /***/ }), -/* 510 */ +/* 509 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -116774,9 +117001,9 @@ module.exports = WebGLSnapshot; */ var Class = __webpack_require__(0); -var ShaderSourceFS = __webpack_require__(781); -var ShaderSourceVS = __webpack_require__(782); -var WebGLPipeline = __webpack_require__(145); +var ShaderSourceFS = __webpack_require__(780); +var ShaderSourceVS = __webpack_require__(781); +var WebGLPipeline = __webpack_require__(142); /** * @classdesc @@ -116894,21 +117121,23 @@ var BitmapMaskPipeline = new Class({ }, /** - * [description] + * Resizes this pipeline and updates the projection. * * @method Phaser.Renderer.WebGL.Pipelines.BitmapMaskPipeline#resize * @since 3.0.0 * - * @param {number} width - [description] - * @param {number} height - [description] - * @param {number} resolution - [description] + * @param {number} width - The new width. + * @param {number} height - The new height. + * @param {number} resolution - The resolution. * * @return {this} This WebGLPipeline instance. */ resize: function (width, height, resolution) { WebGLPipeline.prototype.resize.call(this, width, height, resolution); + this.resolutionDirty = true; + return this; }, @@ -116921,7 +117150,7 @@ var BitmapMaskPipeline = new Class({ * * @param {Phaser.GameObjects.GameObject} mask - GameObject used as mask. * @param {Phaser.GameObjects.GameObject} maskedObject - GameObject masked by the mask GameObject. - * @param {Phaser.Cameras.Scene2D.Camera} camera - [description] + * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera rendering the current mask. */ beginMask: function (mask, maskedObject, camera) { @@ -117026,7 +117255,7 @@ module.exports = BitmapMaskPipeline; /***/ }), -/* 511 */ +/* 510 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -117037,8 +117266,8 @@ module.exports = BitmapMaskPipeline; */ var Class = __webpack_require__(0); -var ShaderSourceFS = __webpack_require__(783); -var TextureTintPipeline = __webpack_require__(236); +var ShaderSourceFS = __webpack_require__(782); +var TextureTintPipeline = __webpack_require__(234); var LIGHT_COUNT = 10; @@ -117547,7 +117776,7 @@ module.exports = ForwardDiffuseLightPipeline; /***/ }), -/* 512 */ +/* 511 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -117559,11 +117788,11 @@ module.exports = ForwardDiffuseLightPipeline; var Class = __webpack_require__(0); var GetFastValue = __webpack_require__(2); -var ModelViewProjection = __webpack_require__(237); -var ShaderSourceFS = __webpack_require__(339); -var ShaderSourceVS = __webpack_require__(340); +var ModelViewProjection = __webpack_require__(235); +var ShaderSourceFS = __webpack_require__(337); +var ShaderSourceVS = __webpack_require__(338); var TransformMatrix = __webpack_require__(30); -var WebGLPipeline = __webpack_require__(145); +var WebGLPipeline = __webpack_require__(142); /** * @classdesc @@ -117957,11 +118186,11 @@ module.exports = TextureTintStripPipeline; /***/ }), +/* 512 */, /* 513 */, /* 514 */, /* 515 */, -/* 516 */, -/* 517 */ +/* 516 */ /***/ (function(module, exports) { var g; @@ -117987,9 +118216,10 @@ module.exports = g; /***/ }), -/* 518 */ +/* 517 */ /***/ (function(module, exports, __webpack_require__) { +__webpack_require__(518); __webpack_require__(519); __webpack_require__(520); __webpack_require__(521); @@ -117997,11 +118227,10 @@ __webpack_require__(522); __webpack_require__(523); __webpack_require__(524); __webpack_require__(525); -__webpack_require__(526); /***/ }), -/* 519 */ +/* 518 */ /***/ (function(module, exports) { /** @@ -118041,7 +118270,7 @@ if (!Array.prototype.forEach) /***/ }), -/* 520 */ +/* 519 */ /***/ (function(module, exports) { /** @@ -118057,7 +118286,7 @@ if (!Array.isArray) /***/ }), -/* 521 */ +/* 520 */ /***/ (function(module, exports) { /* Copyright 2013 Chris Wilson @@ -118244,7 +118473,7 @@ BiquadFilterNode.type and OscillatorNode.type. /***/ }), -/* 522 */ +/* 521 */ /***/ (function(module, exports) { /** @@ -118259,7 +118488,7 @@ if (!window.console) /***/ }), -/* 523 */ +/* 522 */ /***/ (function(module, exports) { // ES6 Math.trunc - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc @@ -118271,7 +118500,7 @@ if (!Math.trunc) { /***/ }), -/* 524 */ +/* 523 */ /***/ (function(module, exports) { /** @@ -118308,7 +118537,7 @@ if (!Math.trunc) { /***/ }), -/* 525 */ +/* 524 */ /***/ (function(module, exports) { // References: @@ -118365,7 +118594,7 @@ if (!window.cancelAnimationFrame) /***/ }), -/* 526 */ +/* 525 */ /***/ (function(module, exports) { /** @@ -118418,7 +118647,7 @@ if (typeof window.Uint32Array !== 'function' && typeof window.Uint32Array !== 'o /***/ }), -/* 527 */ +/* 526 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -118427,7 +118656,7 @@ if (typeof window.Uint32Array !== 'function' && typeof window.Uint32Array !== 'o * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var QuickSet = __webpack_require__(241); +var QuickSet = __webpack_require__(239); /** * Takes an array of Game Objects, or any objects that have public `x` and `y` properties, and aligns them next to each other. @@ -118466,7 +118695,7 @@ module.exports = AlignTo; /***/ }), -/* 528 */ +/* 527 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -118507,7 +118736,7 @@ module.exports = Angle; /***/ }), -/* 529 */ +/* 528 */ /***/ (function(module, exports) { /** @@ -118546,7 +118775,7 @@ module.exports = Call; /***/ }), -/* 530 */ +/* 529 */ /***/ (function(module, exports) { /** @@ -118604,7 +118833,7 @@ module.exports = GetFirst; /***/ }), -/* 531 */ +/* 530 */ /***/ (function(module, exports) { /** @@ -118662,7 +118891,7 @@ module.exports = GetLast; /***/ }), -/* 532 */ +/* 531 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -118671,11 +118900,11 @@ module.exports = GetLast; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AlignIn = __webpack_require__(254); -var CONST = __webpack_require__(106); +var AlignIn = __webpack_require__(252); +var CONST = __webpack_require__(103); var GetFastValue = __webpack_require__(2); var NOOP = __webpack_require__(1); -var Zone = __webpack_require__(110); +var Zone = __webpack_require__(107); var tempZone = new Zone({ sys: { queueDepthSort: NOOP, events: { once: NOOP } } }, 0, 0, 1, 1); @@ -118761,7 +118990,7 @@ module.exports = GridAlign; /***/ }), -/* 533 */ +/* 532 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -119056,7 +119285,7 @@ module.exports = Alpha; /***/ }), -/* 534 */ +/* 533 */ /***/ (function(module, exports) { /** @@ -119083,7 +119312,7 @@ module.exports = 'add'; /***/ }), -/* 535 */ +/* 534 */ /***/ (function(module, exports) { /** @@ -119111,7 +119340,7 @@ module.exports = 'complete'; /***/ }), -/* 536 */ +/* 535 */ /***/ (function(module, exports) { /** @@ -119138,7 +119367,7 @@ module.exports = 'repeat'; /***/ }), -/* 537 */ +/* 536 */ /***/ (function(module, exports) { /** @@ -119166,7 +119395,7 @@ module.exports = 'restart'; /***/ }), -/* 538 */ +/* 537 */ /***/ (function(module, exports) { /** @@ -119194,7 +119423,7 @@ module.exports = 'start'; /***/ }), -/* 539 */ +/* 538 */ /***/ (function(module, exports) { /** @@ -119218,7 +119447,7 @@ module.exports = 'pauseall'; /***/ }), -/* 540 */ +/* 539 */ /***/ (function(module, exports) { /** @@ -119242,7 +119471,7 @@ module.exports = 'remove'; /***/ }), -/* 541 */ +/* 540 */ /***/ (function(module, exports) { /** @@ -119265,7 +119494,7 @@ module.exports = 'resumeall'; /***/ }), -/* 542 */ +/* 541 */ /***/ (function(module, exports) { /** @@ -119294,7 +119523,7 @@ module.exports = 'animationcomplete'; /***/ }), -/* 543 */ +/* 542 */ /***/ (function(module, exports) { /** @@ -119322,7 +119551,7 @@ module.exports = 'animationcomplete-'; /***/ }), -/* 544 */ +/* 543 */ /***/ (function(module, exports) { /** @@ -119351,7 +119580,7 @@ module.exports = 'animationrepeat-'; /***/ }), -/* 545 */ +/* 544 */ /***/ (function(module, exports) { /** @@ -119379,7 +119608,7 @@ module.exports = 'animationrestart-'; /***/ }), -/* 546 */ +/* 545 */ /***/ (function(module, exports) { /** @@ -119407,7 +119636,7 @@ module.exports = 'animationstart-'; /***/ }), -/* 547 */ +/* 546 */ /***/ (function(module, exports) { /** @@ -119436,7 +119665,7 @@ module.exports = 'animationupdate-'; /***/ }), -/* 548 */ +/* 547 */ /***/ (function(module, exports) { /** @@ -119466,7 +119695,7 @@ module.exports = 'animationrepeat'; /***/ }), -/* 549 */ +/* 548 */ /***/ (function(module, exports) { /** @@ -119495,7 +119724,7 @@ module.exports = 'animationrestart'; /***/ }), -/* 550 */ +/* 549 */ /***/ (function(module, exports) { /** @@ -119524,7 +119753,7 @@ module.exports = 'animationstart'; /***/ }), -/* 551 */ +/* 550 */ /***/ (function(module, exports) { /** @@ -119554,7 +119783,7 @@ module.exports = 'animationupdate'; /***/ }), -/* 552 */ +/* 551 */ /***/ (function(module, exports) { /** @@ -119703,7 +119932,7 @@ module.exports = ComputedSize; /***/ }), -/* 553 */ +/* 552 */ /***/ (function(module, exports) { /** @@ -119828,7 +120057,7 @@ module.exports = Crop; /***/ }), -/* 554 */ +/* 553 */ /***/ (function(module, exports) { /** @@ -119992,7 +120221,7 @@ module.exports = Flip; /***/ }), -/* 555 */ +/* 554 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -120002,7 +120231,7 @@ module.exports = Flip; */ var Rectangle = __webpack_require__(12); -var RotateAround = __webpack_require__(275); +var RotateAround = __webpack_require__(273); var Vector2 = __webpack_require__(3); /** @@ -120351,7 +120580,7 @@ module.exports = GetBounds; /***/ }), -/* 556 */ +/* 555 */ /***/ (function(module, exports) { /** @@ -120374,7 +120603,7 @@ module.exports = 'blur'; /***/ }), -/* 557 */ +/* 556 */ /***/ (function(module, exports) { /** @@ -120396,7 +120625,7 @@ module.exports = 'boot'; /***/ }), -/* 558 */ +/* 557 */ /***/ (function(module, exports) { /** @@ -120419,7 +120648,7 @@ module.exports = 'contextlost'; /***/ }), -/* 559 */ +/* 558 */ /***/ (function(module, exports) { /** @@ -120442,7 +120671,7 @@ module.exports = 'contextrestored'; /***/ }), -/* 560 */ +/* 559 */ /***/ (function(module, exports) { /** @@ -120465,7 +120694,7 @@ module.exports = 'destroy'; /***/ }), -/* 561 */ +/* 560 */ /***/ (function(module, exports) { /** @@ -120487,7 +120716,7 @@ module.exports = 'focus'; /***/ }), -/* 562 */ +/* 561 */ /***/ (function(module, exports) { /** @@ -120513,7 +120742,7 @@ module.exports = 'hidden'; /***/ }), -/* 563 */ +/* 562 */ /***/ (function(module, exports) { /** @@ -120534,7 +120763,7 @@ module.exports = 'pause'; /***/ }), -/* 564 */ +/* 563 */ /***/ (function(module, exports) { /** @@ -120560,7 +120789,7 @@ module.exports = 'postrender'; /***/ }), -/* 565 */ +/* 564 */ /***/ (function(module, exports) { /** @@ -120585,7 +120814,7 @@ module.exports = 'poststep'; /***/ }), -/* 566 */ +/* 565 */ /***/ (function(module, exports) { /** @@ -120610,7 +120839,7 @@ module.exports = 'prerender'; /***/ }), -/* 567 */ +/* 566 */ /***/ (function(module, exports) { /** @@ -120635,7 +120864,7 @@ module.exports = 'prestep'; /***/ }), -/* 568 */ +/* 567 */ /***/ (function(module, exports) { /** @@ -120657,7 +120886,7 @@ module.exports = 'ready'; /***/ }), -/* 569 */ +/* 568 */ /***/ (function(module, exports) { /** @@ -120678,7 +120907,7 @@ module.exports = 'resume'; /***/ }), -/* 570 */ +/* 569 */ /***/ (function(module, exports) { /** @@ -120703,7 +120932,7 @@ module.exports = 'step'; /***/ }), -/* 571 */ +/* 570 */ /***/ (function(module, exports) { /** @@ -120727,7 +120956,7 @@ module.exports = 'visible'; /***/ }), -/* 572 */ +/* 571 */ /***/ (function(module, exports) { /** @@ -120930,7 +121159,7 @@ module.exports = Origin; /***/ }), -/* 573 */ +/* 572 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -120940,9 +121169,9 @@ module.exports = Origin; */ var DegToRad = __webpack_require__(35); -var GetBoolean = __webpack_require__(88); +var GetBoolean = __webpack_require__(87); var GetValue = __webpack_require__(6); -var TWEEN_CONST = __webpack_require__(89); +var TWEEN_CONST = __webpack_require__(88); var Vector2 = __webpack_require__(3); /** @@ -121336,7 +121565,7 @@ module.exports = PathFollower; /***/ }), -/* 574 */ +/* 573 */ /***/ (function(module, exports) { /** @@ -121523,7 +121752,7 @@ module.exports = Size; /***/ }), -/* 575 */ +/* 574 */ /***/ (function(module, exports) { /** @@ -121653,7 +121882,7 @@ module.exports = Texture; /***/ }), -/* 576 */ +/* 575 */ /***/ (function(module, exports) { /** @@ -121861,7 +122090,7 @@ module.exports = TextureCrop; /***/ }), -/* 577 */ +/* 576 */ /***/ (function(module, exports) { /** @@ -122201,7 +122430,7 @@ module.exports = Tint; /***/ }), -/* 578 */ +/* 577 */ /***/ (function(module, exports) { /** @@ -122233,7 +122462,7 @@ module.exports = 'changedata'; /***/ }), -/* 579 */ +/* 578 */ /***/ (function(module, exports) { /** @@ -122263,7 +122492,7 @@ module.exports = 'changedata-'; /***/ }), -/* 580 */ +/* 579 */ /***/ (function(module, exports) { /** @@ -122291,7 +122520,7 @@ module.exports = 'removedata'; /***/ }), -/* 581 */ +/* 580 */ /***/ (function(module, exports) { /** @@ -122319,7 +122548,7 @@ module.exports = 'setdata'; /***/ }), -/* 582 */ +/* 581 */ /***/ (function(module, exports) { /** @@ -122344,7 +122573,7 @@ module.exports = 'destroy'; /***/ }), -/* 583 */ +/* 582 */ /***/ (function(module, exports) { /** @@ -122376,7 +122605,7 @@ module.exports = 'complete'; /***/ }), -/* 584 */ +/* 583 */ /***/ (function(module, exports) { /** @@ -122405,7 +122634,7 @@ module.exports = 'created'; /***/ }), -/* 585 */ +/* 584 */ /***/ (function(module, exports) { /** @@ -122431,7 +122660,7 @@ module.exports = 'error'; /***/ }), -/* 586 */ +/* 585 */ /***/ (function(module, exports) { /** @@ -122463,7 +122692,7 @@ module.exports = 'loop'; /***/ }), -/* 587 */ +/* 586 */ /***/ (function(module, exports) { /** @@ -122491,7 +122720,7 @@ module.exports = 'play'; /***/ }), -/* 588 */ +/* 587 */ /***/ (function(module, exports) { /** @@ -122516,7 +122745,7 @@ module.exports = 'seeked'; /***/ }), -/* 589 */ +/* 588 */ /***/ (function(module, exports) { /** @@ -122542,7 +122771,7 @@ module.exports = 'seeking'; /***/ }), -/* 590 */ +/* 589 */ /***/ (function(module, exports) { /** @@ -122568,7 +122797,7 @@ module.exports = 'stop'; /***/ }), -/* 591 */ +/* 590 */ /***/ (function(module, exports) { /** @@ -122594,7 +122823,7 @@ module.exports = 'timeout'; /***/ }), -/* 592 */ +/* 591 */ /***/ (function(module, exports) { /** @@ -122620,7 +122849,7 @@ module.exports = 'unlocked'; /***/ }), -/* 593 */ +/* 592 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122661,7 +122890,7 @@ module.exports = IncAlpha; /***/ }), -/* 594 */ +/* 593 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122702,7 +122931,7 @@ module.exports = IncX; /***/ }), -/* 595 */ +/* 594 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122749,7 +122978,7 @@ module.exports = IncXY; /***/ }), -/* 596 */ +/* 595 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122790,7 +123019,7 @@ module.exports = IncY; /***/ }), -/* 597 */ +/* 596 */ /***/ (function(module, exports) { /** @@ -122839,7 +123068,7 @@ module.exports = PlaceOnCircle; /***/ }), -/* 598 */ +/* 597 */ /***/ (function(module, exports) { /** @@ -122891,7 +123120,7 @@ module.exports = PlaceOnEllipse; /***/ }), -/* 599 */ +/* 598 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122900,7 +123129,7 @@ module.exports = PlaceOnEllipse; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetPoints = __webpack_require__(151); +var GetPoints = __webpack_require__(148); /** * Positions an array of Game Objects on evenly spaced points of a Line. @@ -122935,7 +123164,7 @@ module.exports = PlaceOnLine; /***/ }), -/* 600 */ +/* 599 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122944,9 +123173,9 @@ module.exports = PlaceOnLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MarchingAnts = __webpack_require__(284); -var RotateLeft = __webpack_require__(285); -var RotateRight = __webpack_require__(286); +var MarchingAnts = __webpack_require__(282); +var RotateLeft = __webpack_require__(283); +var RotateRight = __webpack_require__(284); /** * Takes an array of Game Objects and positions them on evenly spaced points around the perimeter of a Rectangle. @@ -122993,7 +123222,7 @@ module.exports = PlaceOnRectangle; /***/ }), -/* 601 */ +/* 600 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123002,7 +123231,7 @@ module.exports = PlaceOnRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BresenhamPoints = __webpack_require__(287); +var BresenhamPoints = __webpack_require__(285); /** * Takes an array of Game Objects and positions them on evenly spaced points around the edges of a Triangle. @@ -123054,7 +123283,7 @@ module.exports = PlaceOnTriangle; /***/ }), -/* 602 */ +/* 601 */ /***/ (function(module, exports) { /** @@ -123091,7 +123320,7 @@ module.exports = PlayAnimation; /***/ }), -/* 603 */ +/* 602 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123100,7 +123329,7 @@ module.exports = PlayAnimation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(148); +var Random = __webpack_require__(145); /** * Takes an array of Game Objects and positions them at random locations within the Circle. @@ -123131,7 +123360,7 @@ module.exports = RandomCircle; /***/ }), -/* 604 */ +/* 603 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123140,7 +123369,7 @@ module.exports = RandomCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(155); +var Random = __webpack_require__(152); /** * Takes an array of Game Objects and positions them at random locations within the Ellipse. @@ -123171,7 +123400,7 @@ module.exports = RandomEllipse; /***/ }), -/* 605 */ +/* 604 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123180,7 +123409,7 @@ module.exports = RandomEllipse; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(152); +var Random = __webpack_require__(149); /** * Takes an array of Game Objects and positions them at random locations on the Line. @@ -123211,7 +123440,7 @@ module.exports = RandomLine; /***/ }), -/* 606 */ +/* 605 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123220,7 +123449,7 @@ module.exports = RandomLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(153); +var Random = __webpack_require__(150); /** * Takes an array of Game Objects and positions them at random locations within the Rectangle. @@ -123249,7 +123478,7 @@ module.exports = RandomRectangle; /***/ }), -/* 607 */ +/* 606 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123258,7 +123487,7 @@ module.exports = RandomRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(156); +var Random = __webpack_require__(153); /** * Takes an array of Game Objects and positions them at random locations within the Triangle. @@ -123289,7 +123518,7 @@ module.exports = RandomTriangle; /***/ }), -/* 608 */ +/* 607 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123330,7 +123559,7 @@ module.exports = Rotate; /***/ }), -/* 609 */ +/* 608 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123339,7 +123568,7 @@ module.exports = Rotate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundDistance = __webpack_require__(157); +var RotateAroundDistance = __webpack_require__(154); var DistanceBetween = __webpack_require__(53); /** @@ -123376,7 +123605,7 @@ module.exports = RotateAround; /***/ }), -/* 610 */ +/* 609 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123385,7 +123614,7 @@ module.exports = RotateAround; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MathRotateAroundDistance = __webpack_require__(157); +var MathRotateAroundDistance = __webpack_require__(154); /** * Rotates an array of Game Objects around a point by the given angle and distance. @@ -123425,7 +123654,7 @@ module.exports = RotateAroundDistance; /***/ }), -/* 611 */ +/* 610 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123466,7 +123695,7 @@ module.exports = ScaleX; /***/ }), -/* 612 */ +/* 611 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123513,7 +123742,7 @@ module.exports = ScaleXY; /***/ }), -/* 613 */ +/* 612 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123554,7 +123783,7 @@ module.exports = ScaleY; /***/ }), -/* 614 */ +/* 613 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123595,7 +123824,7 @@ module.exports = SetAlpha; /***/ }), -/* 615 */ +/* 614 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123635,7 +123864,7 @@ module.exports = SetBlendMode; /***/ }), -/* 616 */ +/* 615 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123676,7 +123905,7 @@ module.exports = SetDepth; /***/ }), -/* 617 */ +/* 616 */ /***/ (function(module, exports) { /** @@ -123715,7 +123944,7 @@ module.exports = SetHitArea; /***/ }), -/* 618 */ +/* 617 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123762,7 +123991,7 @@ module.exports = SetOrigin; /***/ }), -/* 619 */ +/* 618 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123803,7 +124032,7 @@ module.exports = SetRotation; /***/ }), -/* 620 */ +/* 619 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123850,7 +124079,7 @@ module.exports = SetScale; /***/ }), -/* 621 */ +/* 620 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123891,7 +124120,7 @@ module.exports = SetScaleX; /***/ }), -/* 622 */ +/* 621 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123932,7 +124161,7 @@ module.exports = SetScaleY; /***/ }), -/* 623 */ +/* 622 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123979,7 +124208,7 @@ module.exports = SetScrollFactor; /***/ }), -/* 624 */ +/* 623 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124020,7 +124249,7 @@ module.exports = SetScrollFactorX; /***/ }), -/* 625 */ +/* 624 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124061,7 +124290,7 @@ module.exports = SetScrollFactorY; /***/ }), -/* 626 */ +/* 625 */ /***/ (function(module, exports) { /** @@ -124100,7 +124329,7 @@ module.exports = SetTint; /***/ }), -/* 627 */ +/* 626 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124138,7 +124367,7 @@ module.exports = SetVisible; /***/ }), -/* 628 */ +/* 627 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124179,7 +124408,7 @@ module.exports = SetX; /***/ }), -/* 629 */ +/* 628 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124226,7 +124455,7 @@ module.exports = SetXY; /***/ }), -/* 630 */ +/* 629 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124267,7 +124496,7 @@ module.exports = SetY; /***/ }), -/* 631 */ +/* 630 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124397,7 +124626,7 @@ module.exports = ShiftPosition; /***/ }), -/* 632 */ +/* 631 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124406,7 +124635,7 @@ module.exports = ShiftPosition; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayShuffle = __webpack_require__(114); +var ArrayShuffle = __webpack_require__(111); /** * Shuffles the array in place. The shuffled array is both modified and returned. @@ -124430,7 +124659,7 @@ module.exports = Shuffle; /***/ }), -/* 633 */ +/* 632 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124439,7 +124668,7 @@ module.exports = Shuffle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MathSmootherStep = __webpack_require__(158); +var MathSmootherStep = __webpack_require__(155); /** * Smootherstep is a sigmoid-like interpolation and clamping function. @@ -124488,7 +124717,7 @@ module.exports = SmootherStep; /***/ }), -/* 634 */ +/* 633 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124497,7 +124726,7 @@ module.exports = SmootherStep; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MathSmoothStep = __webpack_require__(159); +var MathSmoothStep = __webpack_require__(156); /** * Smoothstep is a sigmoid-like interpolation and clamping function. @@ -124546,7 +124775,7 @@ module.exports = SmoothStep; /***/ }), -/* 635 */ +/* 634 */ /***/ (function(module, exports) { /** @@ -124609,7 +124838,7 @@ module.exports = Spread; /***/ }), -/* 636 */ +/* 635 */ /***/ (function(module, exports) { /** @@ -124645,7 +124874,7 @@ module.exports = ToggleVisible; /***/ }), -/* 637 */ +/* 636 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124694,7 +124923,7 @@ module.exports = WrapInRectangle; /***/ }), -/* 638 */ +/* 637 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124709,16 +124938,16 @@ module.exports = WrapInRectangle; module.exports = { - Animation: __webpack_require__(149), - AnimationFrame: __webpack_require__(270), - AnimationManager: __webpack_require__(288), - Events: __webpack_require__(111) + Animation: __webpack_require__(146), + AnimationFrame: __webpack_require__(268), + AnimationManager: __webpack_require__(286), + Events: __webpack_require__(108) }; /***/ }), -/* 639 */ +/* 638 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124733,15 +124962,15 @@ module.exports = { module.exports = { - BaseCache: __webpack_require__(289), - CacheManager: __webpack_require__(291), - Events: __webpack_require__(290) + BaseCache: __webpack_require__(287), + CacheManager: __webpack_require__(289), + Events: __webpack_require__(288) }; /***/ }), -/* 640 */ +/* 639 */ /***/ (function(module, exports) { /** @@ -124766,7 +124995,7 @@ module.exports = 'add'; /***/ }), -/* 641 */ +/* 640 */ /***/ (function(module, exports) { /** @@ -124791,7 +125020,7 @@ module.exports = 'remove'; /***/ }), -/* 642 */ +/* 641 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124810,14 +125039,14 @@ module.exports = 'remove'; module.exports = { - Controls: __webpack_require__(643), - Scene2D: __webpack_require__(646) + Controls: __webpack_require__(642), + Scene2D: __webpack_require__(645) }; /***/ }), -/* 643 */ +/* 642 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124832,14 +125061,14 @@ module.exports = { module.exports = { - FixedKeyControl: __webpack_require__(644), - SmoothedKeyControl: __webpack_require__(645) + FixedKeyControl: __webpack_require__(643), + SmoothedKeyControl: __webpack_require__(644) }; /***/ }), -/* 644 */ +/* 643 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125145,7 +125374,7 @@ module.exports = FixedKeyControl; /***/ }), -/* 645 */ +/* 644 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125628,7 +125857,7 @@ module.exports = SmoothedKeyControl; /***/ }), -/* 646 */ +/* 645 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125643,17 +125872,17 @@ module.exports = SmoothedKeyControl; module.exports = { - Camera: __webpack_require__(292), - BaseCamera: __webpack_require__(91), - CameraManager: __webpack_require__(699), - Effects: __webpack_require__(300), + Camera: __webpack_require__(290), + BaseCamera: __webpack_require__(90), + CameraManager: __webpack_require__(698), + Effects: __webpack_require__(298), Events: __webpack_require__(48) }; /***/ }), -/* 647 */ +/* 646 */ /***/ (function(module, exports) { /** @@ -125676,7 +125905,7 @@ module.exports = 'cameradestroy'; /***/ }), -/* 648 */ +/* 647 */ /***/ (function(module, exports) { /** @@ -125702,7 +125931,7 @@ module.exports = 'camerafadeincomplete'; /***/ }), -/* 649 */ +/* 648 */ /***/ (function(module, exports) { /** @@ -125732,7 +125961,7 @@ module.exports = 'camerafadeinstart'; /***/ }), -/* 650 */ +/* 649 */ /***/ (function(module, exports) { /** @@ -125758,7 +125987,7 @@ module.exports = 'camerafadeoutcomplete'; /***/ }), -/* 651 */ +/* 650 */ /***/ (function(module, exports) { /** @@ -125788,7 +126017,7 @@ module.exports = 'camerafadeoutstart'; /***/ }), -/* 652 */ +/* 651 */ /***/ (function(module, exports) { /** @@ -125812,7 +126041,7 @@ module.exports = 'cameraflashcomplete'; /***/ }), -/* 653 */ +/* 652 */ /***/ (function(module, exports) { /** @@ -125840,7 +126069,7 @@ module.exports = 'cameraflashstart'; /***/ }), -/* 654 */ +/* 653 */ /***/ (function(module, exports) { /** @@ -125864,7 +126093,7 @@ module.exports = 'camerapancomplete'; /***/ }), -/* 655 */ +/* 654 */ /***/ (function(module, exports) { /** @@ -125891,7 +126120,7 @@ module.exports = 'camerapanstart'; /***/ }), -/* 656 */ +/* 655 */ /***/ (function(module, exports) { /** @@ -125917,7 +126146,7 @@ module.exports = 'postrender'; /***/ }), -/* 657 */ +/* 656 */ /***/ (function(module, exports) { /** @@ -125943,7 +126172,7 @@ module.exports = 'prerender'; /***/ }), -/* 658 */ +/* 657 */ /***/ (function(module, exports) { /** @@ -125967,7 +126196,7 @@ module.exports = 'camerashakecomplete'; /***/ }), -/* 659 */ +/* 658 */ /***/ (function(module, exports) { /** @@ -125993,7 +126222,7 @@ module.exports = 'camerashakestart'; /***/ }), -/* 660 */ +/* 659 */ /***/ (function(module, exports) { /** @@ -126017,7 +126246,7 @@ module.exports = 'camerazoomcomplete'; /***/ }), -/* 661 */ +/* 660 */ /***/ (function(module, exports) { /** @@ -126043,7 +126272,7 @@ module.exports = 'camerazoomstart'; /***/ }), -/* 662 */ +/* 661 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -126431,7 +126660,7 @@ module.exports = Fade; /***/ }), -/* 663 */ +/* 662 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -126782,7 +127011,7 @@ module.exports = Flash; /***/ }), -/* 664 */ +/* 663 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -126793,7 +127022,7 @@ module.exports = Flash; var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); -var EaseMap = __webpack_require__(167); +var EaseMap = __webpack_require__(164); var Events = __webpack_require__(48); var Vector2 = __webpack_require__(3); @@ -127107,7 +127336,7 @@ module.exports = Pan; /***/ }), -/* 665 */ +/* 664 */ /***/ (function(module, exports) { /** @@ -127138,7 +127367,7 @@ module.exports = In; /***/ }), -/* 666 */ +/* 665 */ /***/ (function(module, exports) { /** @@ -127169,7 +127398,7 @@ module.exports = Out; /***/ }), -/* 667 */ +/* 666 */ /***/ (function(module, exports) { /** @@ -127209,7 +127438,7 @@ module.exports = InOut; /***/ }), -/* 668 */ +/* 667 */ /***/ (function(module, exports) { /** @@ -127254,7 +127483,7 @@ module.exports = In; /***/ }), -/* 669 */ +/* 668 */ /***/ (function(module, exports) { /** @@ -127297,7 +127526,7 @@ module.exports = Out; /***/ }), -/* 670 */ +/* 669 */ /***/ (function(module, exports) { /** @@ -127361,7 +127590,7 @@ module.exports = InOut; /***/ }), -/* 671 */ +/* 670 */ /***/ (function(module, exports) { /** @@ -127389,7 +127618,7 @@ module.exports = In; /***/ }), -/* 672 */ +/* 671 */ /***/ (function(module, exports) { /** @@ -127417,7 +127646,7 @@ module.exports = Out; /***/ }), -/* 673 */ +/* 672 */ /***/ (function(module, exports) { /** @@ -127452,7 +127681,7 @@ module.exports = InOut; /***/ }), -/* 674 */ +/* 673 */ /***/ (function(module, exports) { /** @@ -127480,7 +127709,7 @@ module.exports = In; /***/ }), -/* 675 */ +/* 674 */ /***/ (function(module, exports) { /** @@ -127508,7 +127737,7 @@ module.exports = Out; /***/ }), -/* 676 */ +/* 675 */ /***/ (function(module, exports) { /** @@ -127543,7 +127772,7 @@ module.exports = InOut; /***/ }), -/* 677 */ +/* 676 */ /***/ (function(module, exports) { /** @@ -127598,7 +127827,7 @@ module.exports = In; /***/ }), -/* 678 */ +/* 677 */ /***/ (function(module, exports) { /** @@ -127653,7 +127882,7 @@ module.exports = Out; /***/ }), -/* 679 */ +/* 678 */ /***/ (function(module, exports) { /** @@ -127715,7 +127944,7 @@ module.exports = InOut; /***/ }), -/* 680 */ +/* 679 */ /***/ (function(module, exports) { /** @@ -127743,7 +127972,7 @@ module.exports = In; /***/ }), -/* 681 */ +/* 680 */ /***/ (function(module, exports) { /** @@ -127771,7 +128000,7 @@ module.exports = Out; /***/ }), -/* 682 */ +/* 681 */ /***/ (function(module, exports) { /** @@ -127806,7 +128035,7 @@ module.exports = InOut; /***/ }), -/* 683 */ +/* 682 */ /***/ (function(module, exports) { /** @@ -127834,7 +128063,7 @@ module.exports = Linear; /***/ }), -/* 684 */ +/* 683 */ /***/ (function(module, exports) { /** @@ -127862,7 +128091,7 @@ module.exports = In; /***/ }), -/* 685 */ +/* 684 */ /***/ (function(module, exports) { /** @@ -127890,7 +128119,7 @@ module.exports = Out; /***/ }), -/* 686 */ +/* 685 */ /***/ (function(module, exports) { /** @@ -127925,7 +128154,7 @@ module.exports = InOut; /***/ }), -/* 687 */ +/* 686 */ /***/ (function(module, exports) { /** @@ -127953,7 +128182,7 @@ module.exports = In; /***/ }), -/* 688 */ +/* 687 */ /***/ (function(module, exports) { /** @@ -127981,7 +128210,7 @@ module.exports = Out; /***/ }), -/* 689 */ +/* 688 */ /***/ (function(module, exports) { /** @@ -128016,7 +128245,7 @@ module.exports = InOut; /***/ }), -/* 690 */ +/* 689 */ /***/ (function(module, exports) { /** @@ -128044,7 +128273,7 @@ module.exports = In; /***/ }), -/* 691 */ +/* 690 */ /***/ (function(module, exports) { /** @@ -128072,7 +128301,7 @@ module.exports = Out; /***/ }), -/* 692 */ +/* 691 */ /***/ (function(module, exports) { /** @@ -128107,7 +128336,7 @@ module.exports = InOut; /***/ }), -/* 693 */ +/* 692 */ /***/ (function(module, exports) { /** @@ -128146,7 +128375,7 @@ module.exports = In; /***/ }), -/* 694 */ +/* 693 */ /***/ (function(module, exports) { /** @@ -128185,7 +128414,7 @@ module.exports = Out; /***/ }), -/* 695 */ +/* 694 */ /***/ (function(module, exports) { /** @@ -128224,7 +128453,7 @@ module.exports = InOut; /***/ }), -/* 696 */ +/* 695 */ /***/ (function(module, exports) { /** @@ -128266,7 +128495,7 @@ module.exports = Stepped; /***/ }), -/* 697 */ +/* 696 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128585,7 +128814,7 @@ module.exports = Shake; /***/ }), -/* 698 */ +/* 697 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128596,7 +128825,7 @@ module.exports = Shake; var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); -var EaseMap = __webpack_require__(167); +var EaseMap = __webpack_require__(164); var Events = __webpack_require__(48); /** @@ -128878,7 +129107,7 @@ module.exports = Zoom; /***/ }), -/* 699 */ +/* 698 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128887,13 +129116,13 @@ module.exports = Zoom; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Camera = __webpack_require__(292); +var Camera = __webpack_require__(290); var Class = __webpack_require__(0); var GetFastValue = __webpack_require__(2); var PluginCache = __webpack_require__(23); var RectangleContains = __webpack_require__(47); -var ScaleEvents = __webpack_require__(92); -var SceneEvents = __webpack_require__(19); +var ScaleEvents = __webpack_require__(91); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -129626,7 +129855,7 @@ module.exports = CameraManager; /***/ }), -/* 700 */ +/* 699 */ /***/ (function(module, exports) { /** @@ -129645,7 +129874,7 @@ module.exports = 'enterfullscreen'; /***/ }), -/* 701 */ +/* 700 */ /***/ (function(module, exports) { /** @@ -129664,7 +129893,7 @@ module.exports = 'fullscreenfailed'; /***/ }), -/* 702 */ +/* 701 */ /***/ (function(module, exports) { /** @@ -129683,7 +129912,7 @@ module.exports = 'fullscreenunsupported'; /***/ }), -/* 703 */ +/* 702 */ /***/ (function(module, exports) { /** @@ -129703,7 +129932,7 @@ module.exports = 'leavefullscreen'; /***/ }), -/* 704 */ +/* 703 */ /***/ (function(module, exports) { /** @@ -129724,7 +129953,7 @@ module.exports = 'orientationchange'; /***/ }), -/* 705 */ +/* 704 */ /***/ (function(module, exports) { /** @@ -129755,7 +129984,7 @@ module.exports = 'resize'; /***/ }), -/* 706 */ +/* 705 */ /***/ (function(module, exports) { /** @@ -129780,7 +130009,7 @@ module.exports = 'boot'; /***/ }), -/* 707 */ +/* 706 */ /***/ (function(module, exports) { /** @@ -129809,7 +130038,7 @@ module.exports = 'create'; /***/ }), -/* 708 */ +/* 707 */ /***/ (function(module, exports) { /** @@ -129836,7 +130065,7 @@ module.exports = 'destroy'; /***/ }), -/* 709 */ +/* 708 */ /***/ (function(module, exports) { /** @@ -129863,7 +130092,7 @@ module.exports = 'pause'; /***/ }), -/* 710 */ +/* 709 */ /***/ (function(module, exports) { /** @@ -129900,7 +130129,7 @@ module.exports = 'postupdate'; /***/ }), -/* 711 */ +/* 710 */ /***/ (function(module, exports) { /** @@ -129937,7 +130166,7 @@ module.exports = 'preupdate'; /***/ }), -/* 712 */ +/* 711 */ /***/ (function(module, exports) { /** @@ -129965,7 +130194,7 @@ module.exports = 'ready'; /***/ }), -/* 713 */ +/* 712 */ /***/ (function(module, exports) { /** @@ -130001,7 +130230,7 @@ module.exports = 'render'; /***/ }), -/* 714 */ +/* 713 */ /***/ (function(module, exports) { /** @@ -130028,7 +130257,7 @@ module.exports = 'resume'; /***/ }), -/* 715 */ +/* 714 */ /***/ (function(module, exports) { /** @@ -130058,7 +130287,7 @@ module.exports = 'shutdown'; /***/ }), -/* 716 */ +/* 715 */ /***/ (function(module, exports) { /** @@ -130085,7 +130314,7 @@ module.exports = 'sleep'; /***/ }), -/* 717 */ +/* 716 */ /***/ (function(module, exports) { /** @@ -130110,7 +130339,7 @@ module.exports = 'start'; /***/ }), -/* 718 */ +/* 717 */ /***/ (function(module, exports) { /** @@ -130146,7 +130375,7 @@ module.exports = 'transitioncomplete'; /***/ }), -/* 719 */ +/* 718 */ /***/ (function(module, exports) { /** @@ -130183,7 +130412,7 @@ module.exports = 'transitioninit'; /***/ }), -/* 720 */ +/* 719 */ /***/ (function(module, exports) { /** @@ -130217,7 +130446,7 @@ module.exports = 'transitionout'; /***/ }), -/* 721 */ +/* 720 */ /***/ (function(module, exports) { /** @@ -130257,7 +130486,7 @@ module.exports = 'transitionstart'; /***/ }), -/* 722 */ +/* 721 */ /***/ (function(module, exports) { /** @@ -130292,7 +130521,7 @@ module.exports = 'transitionwake'; /***/ }), -/* 723 */ +/* 722 */ /***/ (function(module, exports) { /** @@ -130329,7 +130558,7 @@ module.exports = 'update'; /***/ }), -/* 724 */ +/* 723 */ /***/ (function(module, exports) { /** @@ -130356,7 +130585,7 @@ module.exports = 'wake'; /***/ }), -/* 725 */ +/* 724 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130371,18 +130600,18 @@ module.exports = 'wake'; module.exports = { - Config: __webpack_require__(313), - CreateRenderer: __webpack_require__(337), - DebugHeader: __webpack_require__(341), + Config: __webpack_require__(311), + CreateRenderer: __webpack_require__(335), + DebugHeader: __webpack_require__(339), Events: __webpack_require__(18), - TimeStep: __webpack_require__(342), - VisibilityHandler: __webpack_require__(344) + TimeStep: __webpack_require__(340), + VisibilityHandler: __webpack_require__(342) }; /***/ }), -/* 726 */ +/* 725 */ /***/ (function(module, exports) { // shim for using process in browser @@ -130572,7 +130801,7 @@ process.umask = function() { return 0; }; /***/ }), -/* 727 */ +/* 726 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130581,7 +130810,7 @@ process.umask = function() { return 0; }; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Browser = __webpack_require__(117); +var Browser = __webpack_require__(114); /** * Determines the input support of the browser running this Phaser Game instance. @@ -130647,7 +130876,7 @@ module.exports = init(); /***/ }), -/* 728 */ +/* 727 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130656,7 +130885,7 @@ module.exports = init(); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Browser = __webpack_require__(117); +var Browser = __webpack_require__(114); /** * Determines the audio playback capabilities of the device running this Phaser Game instance. @@ -130772,7 +131001,7 @@ module.exports = init(); /***/ }), -/* 729 */ +/* 728 */ /***/ (function(module, exports) { /** @@ -130859,7 +131088,7 @@ module.exports = init(); /***/ }), -/* 730 */ +/* 729 */ /***/ (function(module, exports) { /** @@ -130963,7 +131192,7 @@ module.exports = init(); /***/ }), -/* 731 */ +/* 730 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130978,23 +131207,23 @@ module.exports = init(); module.exports = { - Between: __webpack_require__(316), - BetweenPoints: __webpack_require__(732), - BetweenPointsY: __webpack_require__(733), - BetweenY: __webpack_require__(734), - CounterClockwise: __webpack_require__(735), - Normalize: __webpack_require__(317), - Reverse: __webpack_require__(736), - RotateTo: __webpack_require__(737), - ShortestBetween: __webpack_require__(738), - Wrap: __webpack_require__(234), - WrapDegrees: __webpack_require__(235) + Between: __webpack_require__(314), + BetweenPoints: __webpack_require__(731), + BetweenPointsY: __webpack_require__(732), + BetweenY: __webpack_require__(733), + CounterClockwise: __webpack_require__(734), + Normalize: __webpack_require__(315), + Reverse: __webpack_require__(735), + RotateTo: __webpack_require__(736), + ShortestBetween: __webpack_require__(737), + Wrap: __webpack_require__(232), + WrapDegrees: __webpack_require__(233) }; /***/ }), -/* 732 */ +/* 731 */ /***/ (function(module, exports) { /** @@ -131025,7 +131254,7 @@ module.exports = BetweenPoints; /***/ }), -/* 733 */ +/* 732 */ /***/ (function(module, exports) { /** @@ -131057,7 +131286,7 @@ module.exports = BetweenPointsY; /***/ }), -/* 734 */ +/* 733 */ /***/ (function(module, exports) { /** @@ -131091,7 +131320,7 @@ module.exports = BetweenY; /***/ }), -/* 735 */ +/* 734 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131136,7 +131365,7 @@ module.exports = CounterClockwise; /***/ }), -/* 736 */ +/* 735 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131145,7 +131374,7 @@ module.exports = CounterClockwise; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Normalize = __webpack_require__(317); +var Normalize = __webpack_require__(315); /** * Reverse the given angle. @@ -131166,7 +131395,7 @@ module.exports = Reverse; /***/ }), -/* 737 */ +/* 736 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131233,7 +131462,7 @@ module.exports = RotateTo; /***/ }), -/* 738 */ +/* 737 */ /***/ (function(module, exports) { /** @@ -131282,7 +131511,7 @@ module.exports = ShortestBetween; /***/ }), -/* 739 */ +/* 738 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131298,18 +131527,18 @@ module.exports = ShortestBetween; module.exports = { Between: __webpack_require__(53), - BetweenPoints: __webpack_require__(318), - BetweenPointsSquared: __webpack_require__(740), - Chebyshev: __webpack_require__(741), - Power: __webpack_require__(742), - Snake: __webpack_require__(743), - Squared: __webpack_require__(319) + BetweenPoints: __webpack_require__(316), + BetweenPointsSquared: __webpack_require__(739), + Chebyshev: __webpack_require__(740), + Power: __webpack_require__(741), + Snake: __webpack_require__(742), + Squared: __webpack_require__(317) }; /***/ }), -/* 740 */ +/* 739 */ /***/ (function(module, exports) { /** @@ -131341,7 +131570,7 @@ module.exports = DistanceBetweenPointsSquared; /***/ }), -/* 741 */ +/* 740 */ /***/ (function(module, exports) { /** @@ -131375,7 +131604,7 @@ module.exports = ChebyshevDistance; /***/ }), -/* 742 */ +/* 741 */ /***/ (function(module, exports) { /** @@ -131409,7 +131638,7 @@ module.exports = DistancePower; /***/ }), -/* 743 */ +/* 742 */ /***/ (function(module, exports) { /** @@ -131443,7 +131672,7 @@ module.exports = SnakeDistance; /***/ }), -/* 744 */ +/* 743 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131458,24 +131687,24 @@ module.exports = SnakeDistance; module.exports = { - Back: __webpack_require__(301), - Bounce: __webpack_require__(302), - Circular: __webpack_require__(303), - Cubic: __webpack_require__(304), - Elastic: __webpack_require__(305), - Expo: __webpack_require__(306), - Linear: __webpack_require__(307), - Quadratic: __webpack_require__(308), - Quartic: __webpack_require__(309), - Quintic: __webpack_require__(310), - Sine: __webpack_require__(311), - Stepped: __webpack_require__(312) + Back: __webpack_require__(299), + Bounce: __webpack_require__(300), + Circular: __webpack_require__(301), + Cubic: __webpack_require__(302), + Elastic: __webpack_require__(303), + Expo: __webpack_require__(304), + Linear: __webpack_require__(305), + Quadratic: __webpack_require__(306), + Quartic: __webpack_require__(307), + Quintic: __webpack_require__(308), + Sine: __webpack_require__(309), + Stepped: __webpack_require__(310) }; /***/ }), -/* 745 */ +/* 744 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131490,17 +131719,17 @@ module.exports = { module.exports = { - Ceil: __webpack_require__(746), - Equal: __webpack_require__(144), - Floor: __webpack_require__(747), - GreaterThan: __webpack_require__(320), - LessThan: __webpack_require__(321) + Ceil: __webpack_require__(745), + Equal: __webpack_require__(141), + Floor: __webpack_require__(746), + GreaterThan: __webpack_require__(318), + LessThan: __webpack_require__(319) }; /***/ }), -/* 746 */ +/* 745 */ /***/ (function(module, exports) { /** @@ -131531,7 +131760,7 @@ module.exports = Ceil; /***/ }), -/* 747 */ +/* 746 */ /***/ (function(module, exports) { /** @@ -131562,7 +131791,7 @@ module.exports = Floor; /***/ }), -/* 748 */ +/* 747 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131577,19 +131806,19 @@ module.exports = Floor; module.exports = { - Bezier: __webpack_require__(749), - CatmullRom: __webpack_require__(750), - CubicBezier: __webpack_require__(324), - Linear: __webpack_require__(751), - QuadraticBezier: __webpack_require__(325), - SmoothStep: __webpack_require__(326), - SmootherStep: __webpack_require__(752) + Bezier: __webpack_require__(748), + CatmullRom: __webpack_require__(749), + CubicBezier: __webpack_require__(322), + Linear: __webpack_require__(750), + QuadraticBezier: __webpack_require__(323), + SmoothStep: __webpack_require__(324), + SmootherStep: __webpack_require__(751) }; /***/ }), -/* 749 */ +/* 748 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131598,7 +131827,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bernstein = __webpack_require__(322); +var Bernstein = __webpack_require__(320); /** * A bezier interpolation method. @@ -131628,7 +131857,7 @@ module.exports = BezierInterpolation; /***/ }), -/* 750 */ +/* 749 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131637,7 +131866,7 @@ module.exports = BezierInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CatmullRom = __webpack_require__(170); +var CatmullRom = __webpack_require__(167); /** * A Catmull-Rom interpolation method. @@ -131685,7 +131914,7 @@ module.exports = CatmullRomInterpolation; /***/ }), -/* 751 */ +/* 750 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131694,7 +131923,7 @@ module.exports = CatmullRomInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Linear = __webpack_require__(115); +var Linear = __webpack_require__(112); /** * A linear interpolation method. @@ -131732,7 +131961,7 @@ module.exports = LinearInterpolation; /***/ }), -/* 752 */ +/* 751 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131741,7 +131970,7 @@ module.exports = LinearInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SmootherStep = __webpack_require__(158); +var SmootherStep = __webpack_require__(155); /** * A Smoother Step interpolation method. @@ -131765,7 +131994,7 @@ module.exports = SmootherStepInterpolation; /***/ }), -/* 753 */ +/* 752 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131780,15 +132009,15 @@ module.exports = SmootherStepInterpolation; module.exports = { - GetNext: __webpack_require__(327), - IsSize: __webpack_require__(118), - IsValue: __webpack_require__(754) + GetNext: __webpack_require__(325), + IsSize: __webpack_require__(115), + IsValue: __webpack_require__(753) }; /***/ }), -/* 754 */ +/* 753 */ /***/ (function(module, exports) { /** @@ -131816,7 +132045,7 @@ module.exports = IsValuePowerOfTwo; /***/ }), -/* 755 */ +/* 754 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131831,15 +132060,15 @@ module.exports = IsValuePowerOfTwo; module.exports = { - Ceil: __webpack_require__(328), - Floor: __webpack_require__(93), - To: __webpack_require__(756) + Ceil: __webpack_require__(326), + Floor: __webpack_require__(92), + To: __webpack_require__(755) }; /***/ }), -/* 756 */ +/* 755 */ /***/ (function(module, exports) { /** @@ -131882,7 +132111,7 @@ module.exports = SnapTo; /***/ }), -/* 757 */ +/* 756 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -132392,7 +132621,7 @@ module.exports = RandomDataGenerator; /***/ }), -/* 758 */ +/* 757 */ /***/ (function(module, exports) { /** @@ -132427,7 +132656,7 @@ module.exports = Average; /***/ }), -/* 759 */ +/* 758 */ /***/ (function(module, exports) { /** @@ -132464,7 +132693,7 @@ module.exports = CeilTo; /***/ }), -/* 760 */ +/* 759 */ /***/ (function(module, exports) { /** @@ -132493,7 +132722,7 @@ module.exports = Difference; /***/ }), -/* 761 */ +/* 760 */ /***/ (function(module, exports) { /** @@ -132530,7 +132759,7 @@ module.exports = FloorTo; /***/ }), -/* 762 */ +/* 761 */ /***/ (function(module, exports) { /** @@ -132563,7 +132792,7 @@ module.exports = GetSpeed; /***/ }), -/* 763 */ +/* 762 */ /***/ (function(module, exports) { /** @@ -132594,7 +132823,7 @@ module.exports = IsEven; /***/ }), -/* 764 */ +/* 763 */ /***/ (function(module, exports) { /** @@ -132623,7 +132852,7 @@ module.exports = IsEvenStrict; /***/ }), -/* 765 */ +/* 764 */ /***/ (function(module, exports) { /** @@ -132653,7 +132882,7 @@ module.exports = MaxAdd; /***/ }), -/* 766 */ +/* 765 */ /***/ (function(module, exports) { /** @@ -132683,7 +132912,7 @@ module.exports = MinSub; /***/ }), -/* 767 */ +/* 766 */ /***/ (function(module, exports) { /** @@ -132742,7 +132971,7 @@ module.exports = Percent; /***/ }), -/* 768 */ +/* 767 */ /***/ (function(module, exports) { /** @@ -132782,7 +133011,7 @@ module.exports = RandomXY; /***/ }), -/* 769 */ +/* 768 */ /***/ (function(module, exports) { /** @@ -132821,7 +133050,7 @@ module.exports = RandomXYZ; /***/ }), -/* 770 */ +/* 769 */ /***/ (function(module, exports) { /** @@ -132858,7 +133087,7 @@ module.exports = RandomXYZW; /***/ }), -/* 771 */ +/* 770 */ /***/ (function(module, exports) { /** @@ -132910,7 +133139,7 @@ module.exports = RoundTo; /***/ }), -/* 772 */ +/* 771 */ /***/ (function(module, exports) { /** @@ -132963,7 +133192,7 @@ module.exports = SinCosTableGenerator; /***/ }), -/* 773 */ +/* 772 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133021,7 +133250,7 @@ module.exports = ToXY; /***/ }), -/* 774 */ +/* 773 */ /***/ (function(module, exports) { /** @@ -133051,7 +133280,7 @@ module.exports = Within; /***/ }), -/* 775 */ +/* 774 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133060,9 +133289,9 @@ module.exports = Within; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Vector3 = __webpack_require__(173); -var Matrix4 = __webpack_require__(335); -var Quaternion = __webpack_require__(336); +var Vector3 = __webpack_require__(170); +var Matrix4 = __webpack_require__(333); +var Quaternion = __webpack_require__(334); var tmpMat4 = new Matrix4(); var tmpQuat = new Quaternion(); @@ -133099,7 +133328,7 @@ module.exports = RotateVec3; /***/ }), -/* 776 */ +/* 775 */ /***/ (function(module, exports) { /** @@ -133125,7 +133354,7 @@ module.exports = 'addtexture'; /***/ }), -/* 777 */ +/* 776 */ /***/ (function(module, exports) { /** @@ -133151,7 +133380,7 @@ module.exports = 'onerror'; /***/ }), -/* 778 */ +/* 777 */ /***/ (function(module, exports) { /** @@ -133180,7 +133409,7 @@ module.exports = 'onload'; /***/ }), -/* 779 */ +/* 778 */ /***/ (function(module, exports) { /** @@ -133203,7 +133432,7 @@ module.exports = 'ready'; /***/ }), -/* 780 */ +/* 779 */ /***/ (function(module, exports) { /** @@ -133231,7 +133460,7 @@ module.exports = 'removetexture'; /***/ }), -/* 781 */ +/* 780 */ /***/ (function(module, exports) { module.exports = [ @@ -133267,7 +133496,7 @@ module.exports = [ /***/ }), -/* 782 */ +/* 781 */ /***/ (function(module, exports) { module.exports = [ @@ -133286,7 +133515,7 @@ module.exports = [ /***/ }), -/* 783 */ +/* 782 */ /***/ (function(module, exports) { module.exports = [ @@ -133345,7 +133574,7 @@ module.exports = [ /***/ }), -/* 784 */ +/* 783 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133360,14 +133589,14 @@ module.exports = [ module.exports = { - GenerateTexture: __webpack_require__(345), - Palettes: __webpack_require__(785) + GenerateTexture: __webpack_require__(343), + Palettes: __webpack_require__(784) }; /***/ }), -/* 785 */ +/* 784 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133382,17 +133611,17 @@ module.exports = { module.exports = { - ARNE16: __webpack_require__(346), - C64: __webpack_require__(786), - CGA: __webpack_require__(787), - JMP: __webpack_require__(788), - MSX: __webpack_require__(789) + ARNE16: __webpack_require__(344), + C64: __webpack_require__(785), + CGA: __webpack_require__(786), + JMP: __webpack_require__(787), + MSX: __webpack_require__(788) }; /***/ }), -/* 786 */ +/* 785 */ /***/ (function(module, exports) { /** @@ -133430,7 +133659,7 @@ module.exports = { /***/ }), -/* 787 */ +/* 786 */ /***/ (function(module, exports) { /** @@ -133468,7 +133697,7 @@ module.exports = { /***/ }), -/* 788 */ +/* 787 */ /***/ (function(module, exports) { /** @@ -133506,7 +133735,7 @@ module.exports = { /***/ }), -/* 789 */ +/* 788 */ /***/ (function(module, exports) { /** @@ -133544,7 +133773,7 @@ module.exports = { /***/ }), -/* 790 */ +/* 789 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133558,19 +133787,19 @@ module.exports = { */ module.exports = { - Path: __webpack_require__(791), + Path: __webpack_require__(790), - CubicBezier: __webpack_require__(347), - Curve: __webpack_require__(81), - Ellipse: __webpack_require__(348), - Line: __webpack_require__(349), - QuadraticBezier: __webpack_require__(350), - Spline: __webpack_require__(351) + CubicBezier: __webpack_require__(345), + Curve: __webpack_require__(80), + Ellipse: __webpack_require__(346), + Line: __webpack_require__(347), + QuadraticBezier: __webpack_require__(348), + Spline: __webpack_require__(349) }; /***/ }), -/* 791 */ +/* 790 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133582,14 +133811,14 @@ module.exports = { // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var CubicBezierCurve = __webpack_require__(347); -var EllipseCurve = __webpack_require__(348); +var CubicBezierCurve = __webpack_require__(345); +var EllipseCurve = __webpack_require__(346); var GameObjectFactory = __webpack_require__(5); -var LineCurve = __webpack_require__(349); -var MovePathTo = __webpack_require__(792); -var QuadraticBezierCurve = __webpack_require__(350); +var LineCurve = __webpack_require__(347); +var MovePathTo = __webpack_require__(791); +var QuadraticBezierCurve = __webpack_require__(348); var Rectangle = __webpack_require__(12); -var SplineCurve = __webpack_require__(351); +var SplineCurve = __webpack_require__(349); var Vector2 = __webpack_require__(3); var MATH_CONST = __webpack_require__(15); @@ -134419,7 +134648,7 @@ module.exports = Path; /***/ }), -/* 792 */ +/* 791 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134559,7 +134788,7 @@ module.exports = MoveTo; /***/ }), -/* 793 */ +/* 792 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134574,15 +134803,15 @@ module.exports = MoveTo; module.exports = { - DataManager: __webpack_require__(113), - DataManagerPlugin: __webpack_require__(794), - Events: __webpack_require__(283) + DataManager: __webpack_require__(110), + DataManagerPlugin: __webpack_require__(793), + Events: __webpack_require__(281) }; /***/ }), -/* 794 */ +/* 793 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134592,9 +134821,9 @@ module.exports = { */ var Class = __webpack_require__(0); -var DataManager = __webpack_require__(113); +var DataManager = __webpack_require__(110); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -134709,7 +134938,7 @@ module.exports = DataManagerPlugin; /***/ }), -/* 795 */ +/* 794 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134724,18 +134953,18 @@ module.exports = DataManagerPlugin; module.exports = { - Align: __webpack_require__(796), - BaseShader: __webpack_require__(352), - Bounds: __webpack_require__(799), - Canvas: __webpack_require__(802), - Color: __webpack_require__(353), - Masks: __webpack_require__(811) + Align: __webpack_require__(795), + BaseShader: __webpack_require__(350), + Bounds: __webpack_require__(798), + Canvas: __webpack_require__(801), + Color: __webpack_require__(351), + Masks: __webpack_require__(810) }; /***/ }), -/* 796 */ +/* 795 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134744,7 +134973,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(106); +var CONST = __webpack_require__(103); var Extend = __webpack_require__(17); /** @@ -134753,8 +134982,8 @@ var Extend = __webpack_require__(17); var Align = { - In: __webpack_require__(797), - To: __webpack_require__(798) + In: __webpack_require__(796), + To: __webpack_require__(797) }; @@ -134765,7 +134994,7 @@ module.exports = Align; /***/ }), -/* 797 */ +/* 796 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134780,16 +135009,49 @@ module.exports = Align; module.exports = { - BottomCenter: __webpack_require__(255), - BottomLeft: __webpack_require__(256), - BottomRight: __webpack_require__(257), - Center: __webpack_require__(258), - LeftCenter: __webpack_require__(260), - QuickSet: __webpack_require__(254), - RightCenter: __webpack_require__(261), - TopCenter: __webpack_require__(262), - TopLeft: __webpack_require__(263), - TopRight: __webpack_require__(264) + BottomCenter: __webpack_require__(253), + BottomLeft: __webpack_require__(254), + BottomRight: __webpack_require__(255), + Center: __webpack_require__(256), + LeftCenter: __webpack_require__(258), + QuickSet: __webpack_require__(252), + RightCenter: __webpack_require__(259), + TopCenter: __webpack_require__(260), + TopLeft: __webpack_require__(261), + TopRight: __webpack_require__(262) + +}; + + +/***/ }), +/* 797 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Display.Align.To + */ + +module.exports = { + + BottomCenter: __webpack_require__(240), + BottomLeft: __webpack_require__(241), + BottomRight: __webpack_require__(242), + LeftBottom: __webpack_require__(243), + LeftCenter: __webpack_require__(244), + LeftTop: __webpack_require__(245), + QuickSet: __webpack_require__(239), + RightBottom: __webpack_require__(246), + RightCenter: __webpack_require__(247), + RightTop: __webpack_require__(248), + TopCenter: __webpack_require__(249), + TopLeft: __webpack_require__(250), + TopRight: __webpack_require__(251) }; @@ -134798,39 +135060,6 @@ module.exports = { /* 798 */ /***/ (function(module, exports, __webpack_require__) { -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Display.Align.To - */ - -module.exports = { - - BottomCenter: __webpack_require__(242), - BottomLeft: __webpack_require__(243), - BottomRight: __webpack_require__(244), - LeftBottom: __webpack_require__(245), - LeftCenter: __webpack_require__(246), - LeftTop: __webpack_require__(247), - QuickSet: __webpack_require__(241), - RightBottom: __webpack_require__(248), - RightCenter: __webpack_require__(249), - RightTop: __webpack_require__(250), - TopCenter: __webpack_require__(251), - TopLeft: __webpack_require__(252), - TopRight: __webpack_require__(253) - -}; - - -/***/ }), -/* 799 */ -/***/ (function(module, exports, __webpack_require__) { - /** * @author Richard Davey * @copyright 2020 Photon Storm Ltd. @@ -134843,18 +135072,18 @@ module.exports = { module.exports = { - CenterOn: __webpack_require__(259), + CenterOn: __webpack_require__(257), GetBottom: __webpack_require__(38), - GetCenterX: __webpack_require__(76), - GetCenterY: __webpack_require__(78), + GetCenterX: __webpack_require__(75), + GetCenterY: __webpack_require__(77), GetLeft: __webpack_require__(40), - GetOffsetX: __webpack_require__(800), - GetOffsetY: __webpack_require__(801), + GetOffsetX: __webpack_require__(799), + GetOffsetY: __webpack_require__(800), GetRight: __webpack_require__(42), GetTop: __webpack_require__(45), SetBottom: __webpack_require__(44), - SetCenterX: __webpack_require__(77), - SetCenterY: __webpack_require__(79), + SetCenterX: __webpack_require__(76), + SetCenterY: __webpack_require__(78), SetLeft: __webpack_require__(41), SetRight: __webpack_require__(43), SetTop: __webpack_require__(39) @@ -134863,7 +135092,7 @@ module.exports = { /***/ }), -/* 800 */ +/* 799 */ /***/ (function(module, exports) { /** @@ -134893,7 +135122,7 @@ module.exports = GetOffsetX; /***/ }), -/* 801 */ +/* 800 */ /***/ (function(module, exports) { /** @@ -134923,7 +135152,7 @@ module.exports = GetOffsetY; /***/ }), -/* 802 */ +/* 801 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134938,17 +135167,17 @@ module.exports = GetOffsetY; module.exports = { - CanvasInterpolation: __webpack_require__(338), + CanvasInterpolation: __webpack_require__(336), CanvasPool: __webpack_require__(26), - Smoothing: __webpack_require__(165), - TouchAction: __webpack_require__(803), - UserSelect: __webpack_require__(804) + Smoothing: __webpack_require__(162), + TouchAction: __webpack_require__(802), + UserSelect: __webpack_require__(803) }; /***/ }), -/* 803 */ +/* 802 */ /***/ (function(module, exports) { /** @@ -134983,7 +135212,7 @@ module.exports = TouchAction; /***/ }), -/* 804 */ +/* 803 */ /***/ (function(module, exports) { /** @@ -135030,7 +135259,7 @@ module.exports = UserSelect; /***/ }), -/* 805 */ +/* 804 */ /***/ (function(module, exports) { /** @@ -135070,7 +135299,7 @@ module.exports = ColorToRGBA; /***/ }), -/* 806 */ +/* 805 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135079,8 +135308,8 @@ module.exports = ColorToRGBA; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Color = __webpack_require__(33); -var HueToComponent = __webpack_require__(355); +var Color = __webpack_require__(32); +var HueToComponent = __webpack_require__(353); /** * Converts HSL (hue, saturation and lightness) values to a Phaser Color object. @@ -135120,7 +135349,7 @@ module.exports = HSLToColor; /***/ }), -/* 807 */ +/* 806 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135129,7 +135358,7 @@ module.exports = HSLToColor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HSVToRGB = __webpack_require__(164); +var HSVToRGB = __webpack_require__(161); /** * Get HSV color wheel values in an array which will be 360 elements in size. @@ -135161,7 +135390,7 @@ module.exports = HSVColorWheel; /***/ }), -/* 808 */ +/* 807 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135170,7 +135399,7 @@ module.exports = HSVColorWheel; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Linear = __webpack_require__(115); +var Linear = __webpack_require__(112); /** * @namespace Phaser.Display.Color.Interpolate @@ -135269,7 +135498,7 @@ module.exports = { /***/ }), -/* 809 */ +/* 808 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135278,8 +135507,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Between = __webpack_require__(171); -var Color = __webpack_require__(33); +var Between = __webpack_require__(168); +var Color = __webpack_require__(32); /** * Creates a new Color object where the r, g, and b values have been set to random values @@ -135305,7 +135534,7 @@ module.exports = RandomRGB; /***/ }), -/* 810 */ +/* 809 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135314,7 +135543,7 @@ module.exports = RandomRGB; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ComponentToHex = __webpack_require__(354); +var ComponentToHex = __webpack_require__(352); /** * Converts the color values into an HTML compatible color string, prefixed with either `#` or `0x`. @@ -135349,7 +135578,7 @@ module.exports = RGBToString; /***/ }), -/* 811 */ +/* 810 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135364,14 +135593,14 @@ module.exports = RGBToString; module.exports = { - BitmapMask: __webpack_require__(277), - GeometryMask: __webpack_require__(278) + BitmapMask: __webpack_require__(275), + GeometryMask: __webpack_require__(276) }; /***/ }), -/* 812 */ +/* 811 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135386,13 +135615,13 @@ module.exports = { var Dom = { - AddToDOM: __webpack_require__(120), - DOMContentLoaded: __webpack_require__(356), - GetScreenOrientation: __webpack_require__(357), - GetTarget: __webpack_require__(362), - ParseXML: __webpack_require__(363), - RemoveFromDOM: __webpack_require__(177), - RequestAnimationFrame: __webpack_require__(343) + AddToDOM: __webpack_require__(117), + DOMContentLoaded: __webpack_require__(354), + GetScreenOrientation: __webpack_require__(355), + GetTarget: __webpack_require__(360), + ParseXML: __webpack_require__(361), + RemoveFromDOM: __webpack_require__(174), + RequestAnimationFrame: __webpack_require__(341) }; @@ -135400,7 +135629,7 @@ module.exports = Dom; /***/ }), -/* 813 */ +/* 812 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135413,11 +135642,11 @@ module.exports = Dom; * @namespace Phaser.Events */ -module.exports = { EventEmitter: __webpack_require__(814) }; +module.exports = { EventEmitter: __webpack_require__(813) }; /***/ }), -/* 814 */ +/* 813 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135427,7 +135656,7 @@ module.exports = { EventEmitter: __webpack_require__(814) }; */ var Class = __webpack_require__(0); -var EE = __webpack_require__(9); +var EE = __webpack_require__(10); var PluginCache = __webpack_require__(23); /** @@ -135601,7 +135830,7 @@ module.exports = EventEmitter; /***/ }), -/* 815 */ +/* 814 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135610,33 +135839,33 @@ module.exports = EventEmitter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AddToDOM = __webpack_require__(120); -var AnimationManager = __webpack_require__(288); -var CacheManager = __webpack_require__(291); +var AddToDOM = __webpack_require__(117); +var AnimationManager = __webpack_require__(286); +var CacheManager = __webpack_require__(289); var CanvasPool = __webpack_require__(26); var Class = __webpack_require__(0); -var Config = __webpack_require__(313); -var CreateDOMContainer = __webpack_require__(816); -var CreateRenderer = __webpack_require__(337); -var DataManager = __webpack_require__(113); -var DebugHeader = __webpack_require__(341); -var Device = __webpack_require__(314); -var DOMContentLoaded = __webpack_require__(356); -var EventEmitter = __webpack_require__(9); +var Config = __webpack_require__(311); +var CreateDOMContainer = __webpack_require__(815); +var CreateRenderer = __webpack_require__(335); +var DataManager = __webpack_require__(110); +var DebugHeader = __webpack_require__(339); +var Device = __webpack_require__(312); +var DOMContentLoaded = __webpack_require__(354); +var EventEmitter = __webpack_require__(10); var Events = __webpack_require__(18); -var InputManager = __webpack_require__(364); +var InputManager = __webpack_require__(362); var PluginCache = __webpack_require__(23); -var PluginManager = __webpack_require__(369); -var ScaleManager = __webpack_require__(370); -var SceneManager = __webpack_require__(372); -var TextureEvents = __webpack_require__(119); -var TextureManager = __webpack_require__(375); -var TimeStep = __webpack_require__(342); -var VisibilityHandler = __webpack_require__(344); +var PluginManager = __webpack_require__(367); +var ScaleManager = __webpack_require__(368); +var SceneManager = __webpack_require__(370); +var TextureEvents = __webpack_require__(116); +var TextureManager = __webpack_require__(373); +var TimeStep = __webpack_require__(340); +var VisibilityHandler = __webpack_require__(342); if (true) { - var SoundManagerCreator = __webpack_require__(379); + var SoundManagerCreator = __webpack_require__(377); } if (false) @@ -136304,7 +136533,7 @@ module.exports = Game; /***/ }), -/* 816 */ +/* 815 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136313,7 +136542,7 @@ module.exports = Game; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AddToDOM = __webpack_require__(120); +var AddToDOM = __webpack_require__(117); var CreateDOMContainer = function (game) { @@ -136348,7 +136577,7 @@ module.exports = CreateDOMContainer; /***/ }), -/* 817 */ +/* 816 */ /***/ (function(module, exports) { /** @@ -136369,7 +136598,7 @@ module.exports = 'boot'; /***/ }), -/* 818 */ +/* 817 */ /***/ (function(module, exports) { /** @@ -136390,7 +136619,7 @@ module.exports = 'destroy'; /***/ }), -/* 819 */ +/* 818 */ /***/ (function(module, exports) { /** @@ -136418,7 +136647,7 @@ module.exports = 'dragend'; /***/ }), -/* 820 */ +/* 819 */ /***/ (function(module, exports) { /** @@ -136449,7 +136678,7 @@ module.exports = 'dragenter'; /***/ }), -/* 821 */ +/* 820 */ /***/ (function(module, exports) { /** @@ -136481,7 +136710,7 @@ module.exports = 'drag'; /***/ }), -/* 822 */ +/* 821 */ /***/ (function(module, exports) { /** @@ -136512,7 +136741,7 @@ module.exports = 'dragleave'; /***/ }), -/* 823 */ +/* 822 */ /***/ (function(module, exports) { /** @@ -136546,7 +136775,7 @@ module.exports = 'dragover'; /***/ }), -/* 824 */ +/* 823 */ /***/ (function(module, exports) { /** @@ -136576,7 +136805,7 @@ module.exports = 'dragstart'; /***/ }), -/* 825 */ +/* 824 */ /***/ (function(module, exports) { /** @@ -136605,7 +136834,7 @@ module.exports = 'drop'; /***/ }), -/* 826 */ +/* 825 */ /***/ (function(module, exports) { /** @@ -136632,7 +136861,7 @@ module.exports = 'gameout'; /***/ }), -/* 827 */ +/* 826 */ /***/ (function(module, exports) { /** @@ -136659,7 +136888,7 @@ module.exports = 'gameover'; /***/ }), -/* 828 */ +/* 827 */ /***/ (function(module, exports) { /** @@ -136700,7 +136929,7 @@ module.exports = 'gameobjectdown'; /***/ }), -/* 829 */ +/* 828 */ /***/ (function(module, exports) { /** @@ -136731,7 +136960,7 @@ module.exports = 'dragend'; /***/ }), -/* 830 */ +/* 829 */ /***/ (function(module, exports) { /** @@ -136761,7 +136990,7 @@ module.exports = 'dragenter'; /***/ }), -/* 831 */ +/* 830 */ /***/ (function(module, exports) { /** @@ -136792,7 +137021,7 @@ module.exports = 'drag'; /***/ }), -/* 832 */ +/* 831 */ /***/ (function(module, exports) { /** @@ -136822,7 +137051,7 @@ module.exports = 'dragleave'; /***/ }), -/* 833 */ +/* 832 */ /***/ (function(module, exports) { /** @@ -136855,7 +137084,7 @@ module.exports = 'dragover'; /***/ }), -/* 834 */ +/* 833 */ /***/ (function(module, exports) { /** @@ -136889,7 +137118,7 @@ module.exports = 'dragstart'; /***/ }), -/* 835 */ +/* 834 */ /***/ (function(module, exports) { /** @@ -136919,7 +137148,7 @@ module.exports = 'drop'; /***/ }), -/* 836 */ +/* 835 */ /***/ (function(module, exports) { /** @@ -136960,7 +137189,7 @@ module.exports = 'gameobjectmove'; /***/ }), -/* 837 */ +/* 836 */ /***/ (function(module, exports) { /** @@ -137001,7 +137230,7 @@ module.exports = 'gameobjectout'; /***/ }), -/* 838 */ +/* 837 */ /***/ (function(module, exports) { /** @@ -137042,7 +137271,7 @@ module.exports = 'gameobjectover'; /***/ }), -/* 839 */ +/* 838 */ /***/ (function(module, exports) { /** @@ -137083,7 +137312,7 @@ module.exports = 'pointerdown'; /***/ }), -/* 840 */ +/* 839 */ /***/ (function(module, exports) { /** @@ -137124,7 +137353,7 @@ module.exports = 'pointermove'; /***/ }), -/* 841 */ +/* 840 */ /***/ (function(module, exports) { /** @@ -137163,7 +137392,7 @@ module.exports = 'pointerout'; /***/ }), -/* 842 */ +/* 841 */ /***/ (function(module, exports) { /** @@ -137204,7 +137433,7 @@ module.exports = 'pointerover'; /***/ }), -/* 843 */ +/* 842 */ /***/ (function(module, exports) { /** @@ -137245,7 +137474,7 @@ module.exports = 'pointerup'; /***/ }), -/* 844 */ +/* 843 */ /***/ (function(module, exports) { /** @@ -137287,7 +137516,7 @@ module.exports = 'wheel'; /***/ }), -/* 845 */ +/* 844 */ /***/ (function(module, exports) { /** @@ -137328,7 +137557,7 @@ module.exports = 'gameobjectup'; /***/ }), -/* 846 */ +/* 845 */ /***/ (function(module, exports) { /** @@ -137372,7 +137601,7 @@ module.exports = 'gameobjectwheel'; /***/ }), -/* 847 */ +/* 846 */ /***/ (function(module, exports) { /** @@ -137393,7 +137622,7 @@ module.exports = 'boot'; /***/ }), -/* 848 */ +/* 847 */ /***/ (function(module, exports) { /** @@ -137418,7 +137647,7 @@ module.exports = 'process'; /***/ }), -/* 849 */ +/* 848 */ /***/ (function(module, exports) { /** @@ -137439,7 +137668,7 @@ module.exports = 'update'; /***/ }), -/* 850 */ +/* 849 */ /***/ (function(module, exports) { /** @@ -137474,7 +137703,7 @@ module.exports = 'pointerdown'; /***/ }), -/* 851 */ +/* 850 */ /***/ (function(module, exports) { /** @@ -137508,7 +137737,7 @@ module.exports = 'pointerdownoutside'; /***/ }), -/* 852 */ +/* 851 */ /***/ (function(module, exports) { /** @@ -137543,7 +137772,7 @@ module.exports = 'pointermove'; /***/ }), -/* 853 */ +/* 852 */ /***/ (function(module, exports) { /** @@ -137578,7 +137807,7 @@ module.exports = 'pointerout'; /***/ }), -/* 854 */ +/* 853 */ /***/ (function(module, exports) { /** @@ -137613,7 +137842,7 @@ module.exports = 'pointerover'; /***/ }), -/* 855 */ +/* 854 */ /***/ (function(module, exports) { /** @@ -137648,7 +137877,7 @@ module.exports = 'pointerup'; /***/ }), -/* 856 */ +/* 855 */ /***/ (function(module, exports) { /** @@ -137682,7 +137911,7 @@ module.exports = 'pointerupoutside'; /***/ }), -/* 857 */ +/* 856 */ /***/ (function(module, exports) { /** @@ -137720,7 +137949,7 @@ module.exports = 'wheel'; /***/ }), -/* 858 */ +/* 857 */ /***/ (function(module, exports) { /** @@ -137744,7 +137973,7 @@ module.exports = 'pointerlockchange'; /***/ }), -/* 859 */ +/* 858 */ /***/ (function(module, exports) { /** @@ -137766,7 +137995,7 @@ module.exports = 'preupdate'; /***/ }), -/* 860 */ +/* 859 */ /***/ (function(module, exports) { /** @@ -137787,7 +138016,7 @@ module.exports = 'shutdown'; /***/ }), -/* 861 */ +/* 860 */ /***/ (function(module, exports) { /** @@ -137809,7 +138038,7 @@ module.exports = 'start'; /***/ }), -/* 862 */ +/* 861 */ /***/ (function(module, exports) { /** @@ -137834,7 +138063,7 @@ module.exports = 'update'; /***/ }), -/* 863 */ +/* 862 */ /***/ (function(module, exports) { /** @@ -137893,7 +138122,7 @@ module.exports = GetInnerHeight; /***/ }), -/* 864 */ +/* 863 */ /***/ (function(module, exports) { /** @@ -137923,7 +138152,7 @@ module.exports = 'addfile'; /***/ }), -/* 865 */ +/* 864 */ /***/ (function(module, exports) { /** @@ -137951,7 +138180,7 @@ module.exports = 'complete'; /***/ }), -/* 866 */ +/* 865 */ /***/ (function(module, exports) { /** @@ -137980,7 +138209,7 @@ module.exports = 'filecomplete'; /***/ }), -/* 867 */ +/* 866 */ /***/ (function(module, exports) { /** @@ -138034,7 +138263,7 @@ module.exports = 'filecomplete-'; /***/ }), -/* 868 */ +/* 867 */ /***/ (function(module, exports) { /** @@ -138059,7 +138288,7 @@ module.exports = 'loaderror'; /***/ }), -/* 869 */ +/* 868 */ /***/ (function(module, exports) { /** @@ -138085,7 +138314,7 @@ module.exports = 'load'; /***/ }), -/* 870 */ +/* 869 */ /***/ (function(module, exports) { /** @@ -138112,7 +138341,7 @@ module.exports = 'fileprogress'; /***/ }), -/* 871 */ +/* 870 */ /***/ (function(module, exports) { /** @@ -138141,7 +138370,7 @@ module.exports = 'postprocess'; /***/ }), -/* 872 */ +/* 871 */ /***/ (function(module, exports) { /** @@ -138166,7 +138395,7 @@ module.exports = 'progress'; /***/ }), -/* 873 */ +/* 872 */ /***/ (function(module, exports) { /** @@ -138193,7 +138422,7 @@ module.exports = 'start'; /***/ }), -/* 874 */ +/* 873 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138203,7 +138432,7 @@ module.exports = 'start'; */ var GetFastValue = __webpack_require__(2); -var UppercaseFirst = __webpack_require__(180); +var UppercaseFirst = __webpack_require__(177); /** * Builds an array of which physics plugins should be activated for the given Scene. @@ -138255,7 +138484,7 @@ module.exports = GetPhysicsPlugins; /***/ }), -/* 875 */ +/* 874 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138302,7 +138531,7 @@ module.exports = GetScenePlugins; /***/ }), -/* 876 */ +/* 875 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138363,7 +138592,7 @@ module.exports = InjectionMap; /***/ }), -/* 877 */ +/* 876 */ /***/ (function(module, exports) { /** @@ -138444,7 +138673,7 @@ module.exports = AtlasXML; /***/ }), -/* 878 */ +/* 877 */ /***/ (function(module, exports) { /** @@ -138479,7 +138708,7 @@ module.exports = Canvas; /***/ }), -/* 879 */ +/* 878 */ /***/ (function(module, exports) { /** @@ -138514,7 +138743,7 @@ module.exports = Image; /***/ }), -/* 880 */ +/* 879 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138523,7 +138752,7 @@ module.exports = Image; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clone = __webpack_require__(67); +var Clone = __webpack_require__(65); /** * Parses a Texture Atlas JSON Array and adds the Frames to the Texture. @@ -138621,7 +138850,7 @@ module.exports = JSONArray; /***/ }), -/* 881 */ +/* 880 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138630,7 +138859,7 @@ module.exports = JSONArray; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clone = __webpack_require__(67); +var Clone = __webpack_require__(65); /** * Parses a Texture Atlas JSON Hash and adds the Frames to the Texture. @@ -138720,7 +138949,7 @@ module.exports = JSONHash; /***/ }), -/* 882 */ +/* 881 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138744,15 +138973,15 @@ var GetFastValue = __webpack_require__(2); * * @param {Phaser.Textures.Texture} texture - The Texture to add the Frames to. * @param {integer} sourceIndex - The index of the TextureSource. - * @param {integer} x - [description] - * @param {integer} y - [description] - * @param {integer} width - [description] - * @param {integer} height - [description] + * @param {integer} x - The top-left coordinate of the Sprite Sheet. Defaults to zero. Used when extracting sheets from atlases. + * @param {integer} y - The top-left coordinate of the Sprite Sheet. Defaults to zero. Used when extracting sheets from atlases. + * @param {integer} width - The width of the source image. + * @param {integer} height - The height of the source image. * @param {object} config - An object describing how to parse the Sprite Sheet. * @param {number} config.frameWidth - Width in pixels of a single frame in the sprite sheet. * @param {number} [config.frameHeight] - Height in pixels of a single frame in the sprite sheet. Defaults to frameWidth if not provided. - * @param {number} [config.startFrame=0] - [description] - * @param {number} [config.endFrame=-1] - [description] + * @param {number} [config.startFrame=0] - The frame to start extracting from. Defaults to zero. + * @param {number} [config.endFrame=-1] - The frame to finish extracting at. Defaults to -1, which means 'all frames'. * @param {number} [config.margin=0] - If the frames have been drawn with a margin, specify the amount here. * @param {number} [config.spacing=0] - If the frames have been drawn with spacing between them, specify the amount here. * @@ -138845,7 +139074,7 @@ module.exports = SpriteSheet; /***/ }), -/* 883 */ +/* 882 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -139036,7 +139265,7 @@ module.exports = SpriteSheetFromAtlas; /***/ }), -/* 884 */ +/* 883 */ /***/ (function(module, exports) { /** @@ -139206,7 +139435,7 @@ TextureImporter: /***/ }), -/* 885 */ +/* 884 */ /***/ (function(module, exports) { /** @@ -139237,7 +139466,7 @@ module.exports = 'complete'; /***/ }), -/* 886 */ +/* 885 */ /***/ (function(module, exports) { /** @@ -139267,7 +139496,7 @@ module.exports = 'decoded'; /***/ }), -/* 887 */ +/* 886 */ /***/ (function(module, exports) { /** @@ -139299,7 +139528,7 @@ module.exports = 'decodedall'; /***/ }), -/* 888 */ +/* 887 */ /***/ (function(module, exports) { /** @@ -139331,7 +139560,7 @@ module.exports = 'destroy'; /***/ }), -/* 889 */ +/* 888 */ /***/ (function(module, exports) { /** @@ -139364,7 +139593,7 @@ module.exports = 'detune'; /***/ }), -/* 890 */ +/* 889 */ /***/ (function(module, exports) { /** @@ -139392,7 +139621,7 @@ module.exports = 'detune'; /***/ }), -/* 891 */ +/* 890 */ /***/ (function(module, exports) { /** @@ -139419,7 +139648,7 @@ module.exports = 'mute'; /***/ }), -/* 892 */ +/* 891 */ /***/ (function(module, exports) { /** @@ -139447,7 +139676,7 @@ module.exports = 'rate'; /***/ }), -/* 893 */ +/* 892 */ /***/ (function(module, exports) { /** @@ -139474,7 +139703,7 @@ module.exports = 'volume'; /***/ }), -/* 894 */ +/* 893 */ /***/ (function(module, exports) { /** @@ -139508,7 +139737,7 @@ module.exports = 'loop'; /***/ }), -/* 895 */ +/* 894 */ /***/ (function(module, exports) { /** @@ -139542,7 +139771,7 @@ module.exports = 'looped'; /***/ }), -/* 896 */ +/* 895 */ /***/ (function(module, exports) { /** @@ -139575,7 +139804,7 @@ module.exports = 'mute'; /***/ }), -/* 897 */ +/* 896 */ /***/ (function(module, exports) { /** @@ -139602,7 +139831,7 @@ module.exports = 'pauseall'; /***/ }), -/* 898 */ +/* 897 */ /***/ (function(module, exports) { /** @@ -139634,7 +139863,7 @@ module.exports = 'pause'; /***/ }), -/* 899 */ +/* 898 */ /***/ (function(module, exports) { /** @@ -139665,7 +139894,7 @@ module.exports = 'play'; /***/ }), -/* 900 */ +/* 899 */ /***/ (function(module, exports) { /** @@ -139698,7 +139927,7 @@ module.exports = 'rate'; /***/ }), -/* 901 */ +/* 900 */ /***/ (function(module, exports) { /** @@ -139725,7 +139954,7 @@ module.exports = 'resumeall'; /***/ }), -/* 902 */ +/* 901 */ /***/ (function(module, exports) { /** @@ -139758,7 +139987,7 @@ module.exports = 'resume'; /***/ }), -/* 903 */ +/* 902 */ /***/ (function(module, exports) { /** @@ -139791,7 +140020,7 @@ module.exports = 'seek'; /***/ }), -/* 904 */ +/* 903 */ /***/ (function(module, exports) { /** @@ -139818,7 +140047,7 @@ module.exports = 'stopall'; /***/ }), -/* 905 */ +/* 904 */ /***/ (function(module, exports) { /** @@ -139850,7 +140079,7 @@ module.exports = 'stop'; /***/ }), -/* 906 */ +/* 905 */ /***/ (function(module, exports) { /** @@ -139877,7 +140106,7 @@ module.exports = 'unlocked'; /***/ }), -/* 907 */ +/* 906 */ /***/ (function(module, exports) { /** @@ -139910,7 +140139,7 @@ module.exports = 'volume'; /***/ }), -/* 908 */ +/* 907 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -139925,105 +140154,105 @@ module.exports = 'volume'; var GameObjects = { - Events: __webpack_require__(90), + Events: __webpack_require__(89), - DisplayList: __webpack_require__(909), + DisplayList: __webpack_require__(908), GameObjectCreator: __webpack_require__(16), GameObjectFactory: __webpack_require__(5), - UpdateList: __webpack_require__(937), + UpdateList: __webpack_require__(936), Components: __webpack_require__(11), BuildGameObject: __webpack_require__(27), - BuildGameObjectAnimation: __webpack_require__(390), + BuildGameObjectAnimation: __webpack_require__(388), GameObject: __webpack_require__(13), - BitmapText: __webpack_require__(129), - Blitter: __webpack_require__(187), - Container: __webpack_require__(188), - DOMElement: __webpack_require__(392), - DynamicBitmapText: __webpack_require__(189), - Extern: __webpack_require__(394), - Graphics: __webpack_require__(190), - Group: __webpack_require__(97), - Image: __webpack_require__(98), - Particles: __webpack_require__(969), - PathFollower: __webpack_require__(406), - RenderTexture: __webpack_require__(194), - RetroFont: __webpack_require__(978), - Rope: __webpack_require__(196), - Sprite: __webpack_require__(69), - Text: __webpack_require__(197), - TileSprite: __webpack_require__(198), - Zone: __webpack_require__(110), - Video: __webpack_require__(199), + BitmapText: __webpack_require__(127), + Blitter: __webpack_require__(184), + Container: __webpack_require__(185), + DOMElement: __webpack_require__(390), + DynamicBitmapText: __webpack_require__(186), + Extern: __webpack_require__(392), + Graphics: __webpack_require__(187), + Group: __webpack_require__(96), + Image: __webpack_require__(104), + Particles: __webpack_require__(968), + PathFollower: __webpack_require__(404), + RenderTexture: __webpack_require__(191), + RetroFont: __webpack_require__(977), + Rope: __webpack_require__(193), + Sprite: __webpack_require__(74), + Text: __webpack_require__(194), + TileSprite: __webpack_require__(195), + Zone: __webpack_require__(107), + Video: __webpack_require__(196), // Shapes Shape: __webpack_require__(31), - Arc: __webpack_require__(407), - Curve: __webpack_require__(408), - Ellipse: __webpack_require__(409), - Grid: __webpack_require__(410), - IsoBox: __webpack_require__(411), - IsoTriangle: __webpack_require__(412), - Line: __webpack_require__(413), - Polygon: __webpack_require__(414), - Rectangle: __webpack_require__(419), - Star: __webpack_require__(420), - Triangle: __webpack_require__(421), + Arc: __webpack_require__(405), + Curve: __webpack_require__(406), + Ellipse: __webpack_require__(407), + Grid: __webpack_require__(408), + IsoBox: __webpack_require__(409), + IsoTriangle: __webpack_require__(410), + Line: __webpack_require__(411), + Polygon: __webpack_require__(412), + Rectangle: __webpack_require__(417), + Star: __webpack_require__(418), + Triangle: __webpack_require__(419), // Game Object Factories Factories: { - Blitter: __webpack_require__(1029), - Container: __webpack_require__(1030), - DOMElement: __webpack_require__(1031), - DynamicBitmapText: __webpack_require__(1032), - Extern: __webpack_require__(1033), - Graphics: __webpack_require__(1034), - Group: __webpack_require__(1035), - Image: __webpack_require__(1036), - Particles: __webpack_require__(1037), - PathFollower: __webpack_require__(1038), - RenderTexture: __webpack_require__(1039), - Rope: __webpack_require__(1040), - Sprite: __webpack_require__(1041), - StaticBitmapText: __webpack_require__(1042), - Text: __webpack_require__(1043), - TileSprite: __webpack_require__(1044), - Zone: __webpack_require__(1045), - Video: __webpack_require__(1046), + Blitter: __webpack_require__(1028), + Container: __webpack_require__(1029), + DOMElement: __webpack_require__(1030), + DynamicBitmapText: __webpack_require__(1031), + Extern: __webpack_require__(1032), + Graphics: __webpack_require__(1033), + Group: __webpack_require__(1034), + Image: __webpack_require__(1035), + Particles: __webpack_require__(1036), + PathFollower: __webpack_require__(1037), + RenderTexture: __webpack_require__(1038), + Rope: __webpack_require__(1039), + Sprite: __webpack_require__(1040), + StaticBitmapText: __webpack_require__(1041), + Text: __webpack_require__(1042), + TileSprite: __webpack_require__(1043), + Zone: __webpack_require__(1044), + Video: __webpack_require__(1045), // Shapes - Arc: __webpack_require__(1047), - Curve: __webpack_require__(1048), - Ellipse: __webpack_require__(1049), - Grid: __webpack_require__(1050), - IsoBox: __webpack_require__(1051), - IsoTriangle: __webpack_require__(1052), - Line: __webpack_require__(1053), - Polygon: __webpack_require__(1054), - Rectangle: __webpack_require__(1055), - Star: __webpack_require__(1056), - Triangle: __webpack_require__(1057) + Arc: __webpack_require__(1046), + Curve: __webpack_require__(1047), + Ellipse: __webpack_require__(1048), + Grid: __webpack_require__(1049), + IsoBox: __webpack_require__(1050), + IsoTriangle: __webpack_require__(1051), + Line: __webpack_require__(1052), + Polygon: __webpack_require__(1053), + Rectangle: __webpack_require__(1054), + Star: __webpack_require__(1055), + Triangle: __webpack_require__(1056) }, Creators: { - Blitter: __webpack_require__(1058), - Container: __webpack_require__(1059), - DynamicBitmapText: __webpack_require__(1060), - Graphics: __webpack_require__(1061), - Group: __webpack_require__(1062), - Image: __webpack_require__(1063), - Particles: __webpack_require__(1064), - RenderTexture: __webpack_require__(1065), - Rope: __webpack_require__(1066), - Sprite: __webpack_require__(1067), - StaticBitmapText: __webpack_require__(1068), - Text: __webpack_require__(1069), - TileSprite: __webpack_require__(1070), - Zone: __webpack_require__(1071), - Video: __webpack_require__(1072) + Blitter: __webpack_require__(1057), + Container: __webpack_require__(1058), + DynamicBitmapText: __webpack_require__(1059), + Graphics: __webpack_require__(1060), + Group: __webpack_require__(1061), + Image: __webpack_require__(1062), + Particles: __webpack_require__(1063), + RenderTexture: __webpack_require__(1064), + Rope: __webpack_require__(1065), + Sprite: __webpack_require__(1066), + StaticBitmapText: __webpack_require__(1067), + Text: __webpack_require__(1068), + TileSprite: __webpack_require__(1069), + Zone: __webpack_require__(1070), + Video: __webpack_require__(1071) } }; @@ -140031,29 +140260,29 @@ var GameObjects = { if (true) { // WebGL only Game Objects - GameObjects.Mesh = __webpack_require__(130); - GameObjects.Quad = __webpack_require__(202); - GameObjects.Shader = __webpack_require__(203); + GameObjects.Mesh = __webpack_require__(129); + GameObjects.Quad = __webpack_require__(199); + GameObjects.Shader = __webpack_require__(200); - GameObjects.Factories.Mesh = __webpack_require__(1079); - GameObjects.Factories.Quad = __webpack_require__(1080); - GameObjects.Factories.Shader = __webpack_require__(1081); + GameObjects.Factories.Mesh = __webpack_require__(1078); + GameObjects.Factories.Quad = __webpack_require__(1079); + GameObjects.Factories.Shader = __webpack_require__(1080); - GameObjects.Creators.Mesh = __webpack_require__(1082); - GameObjects.Creators.Quad = __webpack_require__(1083); - GameObjects.Creators.Shader = __webpack_require__(1084); + GameObjects.Creators.Mesh = __webpack_require__(1081); + GameObjects.Creators.Quad = __webpack_require__(1082); + GameObjects.Creators.Shader = __webpack_require__(1083); - GameObjects.Light = __webpack_require__(425); + GameObjects.Light = __webpack_require__(423); - __webpack_require__(426); - __webpack_require__(1085); + __webpack_require__(424); + __webpack_require__(1084); } module.exports = GameObjects; /***/ }), -/* 909 */ +/* 908 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140063,10 +140292,10 @@ module.exports = GameObjects; */ var Class = __webpack_require__(0); -var List = __webpack_require__(126); +var List = __webpack_require__(124); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); -var StableSort = __webpack_require__(128); +var SceneEvents = __webpack_require__(21); +var StableSort = __webpack_require__(126); /** * @classdesc @@ -140258,7 +140487,7 @@ module.exports = DisplayList; /***/ }), -/* 910 */ +/* 909 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140273,21 +140502,21 @@ module.exports = DisplayList; module.exports = { - CheckMatrix: __webpack_require__(183), - MatrixToString: __webpack_require__(911), - ReverseColumns: __webpack_require__(912), - ReverseRows: __webpack_require__(913), - Rotate180: __webpack_require__(914), - RotateLeft: __webpack_require__(915), - RotateMatrix: __webpack_require__(127), - RotateRight: __webpack_require__(916), - TransposeMatrix: __webpack_require__(387) + CheckMatrix: __webpack_require__(180), + MatrixToString: __webpack_require__(910), + ReverseColumns: __webpack_require__(911), + ReverseRows: __webpack_require__(912), + Rotate180: __webpack_require__(913), + RotateLeft: __webpack_require__(914), + RotateMatrix: __webpack_require__(125), + RotateRight: __webpack_require__(915), + TransposeMatrix: __webpack_require__(385) }; /***/ }), -/* 911 */ +/* 910 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140296,8 +140525,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Pad = __webpack_require__(161); -var CheckMatrix = __webpack_require__(183); +var Pad = __webpack_require__(158); +var CheckMatrix = __webpack_require__(180); /** * Generates a string (which you can pass to console.log) from the given Array Matrix. @@ -140368,7 +140597,7 @@ module.exports = MatrixToString; /***/ }), -/* 912 */ +/* 911 */ /***/ (function(module, exports) { /** @@ -140399,7 +140628,7 @@ module.exports = ReverseColumns; /***/ }), -/* 913 */ +/* 912 */ /***/ (function(module, exports) { /** @@ -140435,7 +140664,7 @@ module.exports = ReverseRows; /***/ }), -/* 914 */ +/* 913 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140444,7 +140673,7 @@ module.exports = ReverseRows; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateMatrix = __webpack_require__(127); +var RotateMatrix = __webpack_require__(125); /** * Rotates the array matrix 180 degrees. @@ -140468,7 +140697,7 @@ module.exports = Rotate180; /***/ }), -/* 915 */ +/* 914 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140477,7 +140706,7 @@ module.exports = Rotate180; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateMatrix = __webpack_require__(127); +var RotateMatrix = __webpack_require__(125); /** * Rotates the array matrix to the left (or 90 degrees) @@ -140501,7 +140730,7 @@ module.exports = RotateLeft; /***/ }), -/* 916 */ +/* 915 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140510,7 +140739,7 @@ module.exports = RotateLeft; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateMatrix = __webpack_require__(127); +var RotateMatrix = __webpack_require__(125); /** * Rotates the array matrix to the left (or -90 degrees) @@ -140534,7 +140763,7 @@ module.exports = RotateRight; /***/ }), -/* 917 */ +/* 916 */ /***/ (function(module, exports) { /** @@ -140651,7 +140880,7 @@ module.exports = Add; /***/ }), -/* 918 */ +/* 917 */ /***/ (function(module, exports) { /** @@ -140773,7 +141002,7 @@ module.exports = AddAt; /***/ }), -/* 919 */ +/* 918 */ /***/ (function(module, exports) { /** @@ -140811,7 +141040,7 @@ module.exports = BringToTop; /***/ }), -/* 920 */ +/* 919 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140820,7 +141049,7 @@ module.exports = BringToTop; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SafeRange = __webpack_require__(68); +var SafeRange = __webpack_require__(66); /** * Returns the total number of elements in the array which have a property matching the given value. @@ -140863,7 +141092,7 @@ module.exports = CountAllMatching; /***/ }), -/* 921 */ +/* 920 */ /***/ (function(module, exports) { /** @@ -140909,7 +141138,7 @@ module.exports = Each; /***/ }), -/* 922 */ +/* 921 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140918,7 +141147,7 @@ module.exports = Each; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SafeRange = __webpack_require__(68); +var SafeRange = __webpack_require__(66); /** * Passes each element in the array, between the start and end indexes, to the given callback. @@ -140965,7 +141194,7 @@ module.exports = EachInRange; /***/ }), -/* 923 */ +/* 922 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140974,7 +141203,7 @@ module.exports = EachInRange; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SafeRange = __webpack_require__(68); +var SafeRange = __webpack_require__(66); /** * Returns all elements in the array. @@ -141027,7 +141256,7 @@ module.exports = GetAll; /***/ }), -/* 924 */ +/* 923 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141036,7 +141265,7 @@ module.exports = GetAll; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SafeRange = __webpack_require__(68); +var SafeRange = __webpack_require__(66); /** * Returns the first element in the array. @@ -141086,7 +141315,7 @@ module.exports = GetFirst; /***/ }), -/* 925 */ +/* 924 */ /***/ (function(module, exports) { /** @@ -141128,7 +141357,7 @@ module.exports = MoveDown; /***/ }), -/* 926 */ +/* 925 */ /***/ (function(module, exports) { /** @@ -141175,7 +141404,7 @@ module.exports = MoveTo; /***/ }), -/* 927 */ +/* 926 */ /***/ (function(module, exports) { /** @@ -141217,7 +141446,7 @@ module.exports = MoveUp; /***/ }), -/* 928 */ +/* 927 */ /***/ (function(module, exports) { /** @@ -141281,7 +141510,7 @@ module.exports = NumberArray; /***/ }), -/* 929 */ +/* 928 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141290,7 +141519,7 @@ module.exports = NumberArray; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RoundAwayFromZero = __webpack_require__(331); +var RoundAwayFromZero = __webpack_require__(329); /** * Create an array of numbers (positive and/or negative) progressing from `start` @@ -141358,7 +141587,7 @@ module.exports = NumberArrayStep; /***/ }), -/* 930 */ +/* 929 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141367,7 +141596,7 @@ module.exports = NumberArrayStep; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SpliceOne = __webpack_require__(80); +var SpliceOne = __webpack_require__(79); /** * Removes the item from the given position in the array. @@ -141409,7 +141638,7 @@ module.exports = RemoveAt; /***/ }), -/* 931 */ +/* 930 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141418,7 +141647,7 @@ module.exports = RemoveAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SafeRange = __webpack_require__(68); +var SafeRange = __webpack_require__(66); /** * Removes the item within the given range in the array. @@ -141472,7 +141701,7 @@ module.exports = RemoveBetween; /***/ }), -/* 932 */ +/* 931 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141481,7 +141710,7 @@ module.exports = RemoveBetween; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SpliceOne = __webpack_require__(80); +var SpliceOne = __webpack_require__(79); /** * Removes a random object from the given array and returns it. @@ -141510,7 +141739,7 @@ module.exports = RemoveRandomElement; /***/ }), -/* 933 */ +/* 932 */ /***/ (function(module, exports) { /** @@ -141554,7 +141783,7 @@ module.exports = Replace; /***/ }), -/* 934 */ +/* 933 */ /***/ (function(module, exports) { /** @@ -141592,7 +141821,7 @@ module.exports = SendToBack; /***/ }), -/* 935 */ +/* 934 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141601,7 +141830,7 @@ module.exports = SendToBack; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SafeRange = __webpack_require__(68); +var SafeRange = __webpack_require__(66); /** * Scans the array for elements with the given property. If found, the property is set to the `value`. @@ -141647,7 +141876,7 @@ module.exports = SetAll; /***/ }), -/* 936 */ +/* 935 */ /***/ (function(module, exports) { /** @@ -141695,7 +141924,7 @@ module.exports = Swap; /***/ }), -/* 937 */ +/* 936 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141705,9 +141934,9 @@ module.exports = Swap; */ var Class = __webpack_require__(0); -var ProcessQueue = __webpack_require__(185); +var ProcessQueue = __webpack_require__(182); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -141996,7 +142225,7 @@ module.exports = UpdateList; /***/ }), -/* 938 */ +/* 937 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -142011,14 +142240,14 @@ module.exports = UpdateList; module.exports = { - PROCESS_QUEUE_ADD: __webpack_require__(939), - PROCESS_QUEUE_REMOVE: __webpack_require__(940) + PROCESS_QUEUE_ADD: __webpack_require__(938), + PROCESS_QUEUE_REMOVE: __webpack_require__(939) }; /***/ }), -/* 939 */ +/* 938 */ /***/ (function(module, exports) { /** @@ -142045,7 +142274,7 @@ module.exports = 'add'; /***/ }), -/* 940 */ +/* 939 */ /***/ (function(module, exports) { /** @@ -142072,7 +142301,7 @@ module.exports = 'remove'; /***/ }), -/* 941 */ +/* 940 */ /***/ (function(module, exports) { /** @@ -142525,7 +142754,7 @@ module.exports = GetBitmapTextSize; /***/ }), -/* 942 */ +/* 941 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -142534,7 +142763,7 @@ module.exports = GetBitmapTextSize; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ParseXMLBitmapFont = __webpack_require__(186); +var ParseXMLBitmapFont = __webpack_require__(183); /** * Parse an XML Bitmap Font from an Atlas. @@ -142578,7 +142807,7 @@ module.exports = ParseFromAtlas; /***/ }), -/* 943 */ +/* 942 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -142592,12 +142821,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(944); + renderWebGL = __webpack_require__(943); } if (true) { - renderCanvas = __webpack_require__(945); + renderCanvas = __webpack_require__(944); } module.exports = { @@ -142609,7 +142838,7 @@ module.exports = { /***/ }), -/* 944 */ +/* 943 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -142618,7 +142847,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -142845,7 +143074,7 @@ module.exports = BitmapTextWebGLRenderer; /***/ }), -/* 945 */ +/* 944 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143027,7 +143256,7 @@ module.exports = BitmapTextCanvasRenderer; /***/ }), -/* 946 */ +/* 945 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143041,12 +143270,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(947); + renderWebGL = __webpack_require__(946); } if (true) { - renderCanvas = __webpack_require__(948); + renderCanvas = __webpack_require__(947); } module.exports = { @@ -143058,7 +143287,7 @@ module.exports = { /***/ }), -/* 947 */ +/* 946 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143067,7 +143296,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -143188,7 +143417,7 @@ module.exports = BlitterWebGLRenderer; /***/ }), -/* 948 */ +/* 947 */ /***/ (function(module, exports) { /** @@ -143318,7 +143547,7 @@ module.exports = BlitterCanvasRenderer; /***/ }), -/* 949 */ +/* 948 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143328,7 +143557,7 @@ module.exports = BlitterCanvasRenderer; */ var Class = __webpack_require__(0); -var Frame = __webpack_require__(94); +var Frame = __webpack_require__(93); /** * @classdesc @@ -143748,7 +143977,7 @@ module.exports = Bob; /***/ }), -/* 950 */ +/* 949 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143763,12 +143992,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(951); + renderWebGL = __webpack_require__(950); } if (true) { - renderCanvas = __webpack_require__(952); + renderCanvas = __webpack_require__(951); } module.exports = { @@ -143780,7 +144009,7 @@ module.exports = { /***/ }), -/* 951 */ +/* 950 */ /***/ (function(module, exports) { /** @@ -143929,7 +144158,7 @@ module.exports = ContainerWebGLRenderer; /***/ }), -/* 952 */ +/* 951 */ /***/ (function(module, exports) { /** @@ -144026,7 +144255,7 @@ module.exports = ContainerCanvasRenderer; /***/ }), -/* 953 */ +/* 952 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144040,12 +144269,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(393); + renderWebGL = __webpack_require__(391); } if (true) { - renderCanvas = __webpack_require__(393); + renderCanvas = __webpack_require__(391); } module.exports = { @@ -144057,7 +144286,7 @@ module.exports = { /***/ }), -/* 954 */ +/* 953 */ /***/ (function(module, exports) { /** @@ -144098,7 +144327,7 @@ module.exports = [ /***/ }), -/* 955 */ +/* 954 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144112,12 +144341,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(956); + renderWebGL = __webpack_require__(955); } if (true) { - renderCanvas = __webpack_require__(957); + renderCanvas = __webpack_require__(956); } module.exports = { @@ -144129,7 +144358,7 @@ module.exports = { /***/ }), -/* 956 */ +/* 955 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144138,7 +144367,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -144435,7 +144664,7 @@ module.exports = DynamicBitmapTextWebGLRenderer; /***/ }), -/* 957 */ +/* 956 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144646,7 +144875,7 @@ module.exports = DynamicBitmapTextCanvasRenderer; /***/ }), -/* 958 */ +/* 957 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144660,12 +144889,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(959); + renderWebGL = __webpack_require__(958); } if (true) { - renderCanvas = __webpack_require__(960); + renderCanvas = __webpack_require__(959); } module.exports = { @@ -144677,7 +144906,7 @@ module.exports = { /***/ }), -/* 959 */ +/* 958 */ /***/ (function(module, exports) { /** @@ -144746,13 +144975,13 @@ module.exports = ExternWebGLRenderer; /***/ }), -/* 960 */ +/* 959 */ /***/ (function(module, exports) { /***/ }), -/* 961 */ +/* 960 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144766,15 +144995,15 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(962); + renderWebGL = __webpack_require__(961); // Needed for Graphics.generateTexture - renderCanvas = __webpack_require__(398); + renderCanvas = __webpack_require__(396); } if (true) { - renderCanvas = __webpack_require__(398); + renderCanvas = __webpack_require__(396); } module.exports = { @@ -144786,7 +145015,7 @@ module.exports = { /***/ }), -/* 962 */ +/* 961 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144795,8 +145024,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Commands = __webpack_require__(191); -var Utils = __webpack_require__(10); +var Commands = __webpack_require__(188); +var Utils = __webpack_require__(9); // TODO: Remove the use of this var Point = function (x, y, width) @@ -145151,7 +145380,7 @@ module.exports = GraphicsWebGLRenderer; /***/ }), -/* 963 */ +/* 962 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145165,12 +145394,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(964); + renderWebGL = __webpack_require__(963); } if (true) { - renderCanvas = __webpack_require__(965); + renderCanvas = __webpack_require__(964); } module.exports = { @@ -145182,7 +145411,7 @@ module.exports = { /***/ }), -/* 964 */ +/* 963 */ /***/ (function(module, exports) { /** @@ -145215,7 +145444,7 @@ module.exports = SpriteWebGLRenderer; /***/ }), -/* 965 */ +/* 964 */ /***/ (function(module, exports) { /** @@ -145248,7 +145477,7 @@ module.exports = SpriteCanvasRenderer; /***/ }), -/* 966 */ +/* 965 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145262,12 +145491,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(967); + renderWebGL = __webpack_require__(966); } if (true) { - renderCanvas = __webpack_require__(968); + renderCanvas = __webpack_require__(967); } module.exports = { @@ -145279,7 +145508,7 @@ module.exports = { /***/ }), -/* 967 */ +/* 966 */ /***/ (function(module, exports) { /** @@ -145312,7 +145541,7 @@ module.exports = ImageWebGLRenderer; /***/ }), -/* 968 */ +/* 967 */ /***/ (function(module, exports) { /** @@ -145345,7 +145574,7 @@ module.exports = ImageCanvasRenderer; /***/ }), -/* 969 */ +/* 968 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145360,17 +145589,17 @@ module.exports = ImageCanvasRenderer; module.exports = { - GravityWell: __webpack_require__(399), - Particle: __webpack_require__(400), - ParticleEmitter: __webpack_require__(401), - ParticleEmitterManager: __webpack_require__(193), - Zones: __webpack_require__(974) + GravityWell: __webpack_require__(397), + Particle: __webpack_require__(398), + ParticleEmitter: __webpack_require__(399), + ParticleEmitterManager: __webpack_require__(190), + Zones: __webpack_require__(973) }; /***/ }), -/* 970 */ +/* 969 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145380,8 +145609,8 @@ module.exports = { */ var Class = __webpack_require__(0); -var FloatBetween = __webpack_require__(329); -var GetEaseFunction = __webpack_require__(70); +var FloatBetween = __webpack_require__(327); +var GetEaseFunction = __webpack_require__(67); var GetFastValue = __webpack_require__(2); var Wrap = __webpack_require__(58); @@ -145961,7 +146190,7 @@ module.exports = EmitterOp; /***/ }), -/* 971 */ +/* 970 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145975,12 +146204,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(972); + renderWebGL = __webpack_require__(971); } if (true) { - renderCanvas = __webpack_require__(973); + renderCanvas = __webpack_require__(972); } module.exports = { @@ -145992,7 +146221,7 @@ module.exports = { /***/ }), -/* 972 */ +/* 971 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146001,7 +146230,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -146151,7 +146380,7 @@ module.exports = ParticleManagerWebGLRenderer; /***/ }), -/* 973 */ +/* 972 */ /***/ (function(module, exports) { /** @@ -146274,7 +146503,7 @@ module.exports = ParticleManagerCanvasRenderer; /***/ }), -/* 974 */ +/* 973 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146289,9 +146518,40 @@ module.exports = ParticleManagerCanvasRenderer; module.exports = { - DeathZone: __webpack_require__(402), - EdgeZone: __webpack_require__(403), - RandomZone: __webpack_require__(405) + DeathZone: __webpack_require__(400), + EdgeZone: __webpack_require__(401), + RandomZone: __webpack_require__(403) + +}; + + +/***/ }), +/* 974 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var renderWebGL = __webpack_require__(1); +var renderCanvas = __webpack_require__(1); + +if (true) +{ + renderWebGL = __webpack_require__(975); +} + +if (true) +{ + renderCanvas = __webpack_require__(976); +} + +module.exports = { + + renderWebGL: renderWebGL, + renderCanvas: renderCanvas }; @@ -146306,38 +146566,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var renderWebGL = __webpack_require__(1); -var renderCanvas = __webpack_require__(1); - -if (true) -{ - renderWebGL = __webpack_require__(976); -} - -if (true) -{ - renderCanvas = __webpack_require__(977); -} - -module.exports = { - - renderWebGL: renderWebGL, - renderCanvas: renderCanvas - -}; - - -/***/ }), -/* 976 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -146391,7 +146620,7 @@ module.exports = RenderTextureWebGLRenderer; /***/ }), -/* 977 */ +/* 976 */ /***/ (function(module, exports) { /** @@ -146424,7 +146653,7 @@ module.exports = RenderTextureCanvasRenderer; /***/ }), -/* 978 */ +/* 977 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146433,7 +146662,7 @@ module.exports = RenderTextureCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RETRO_FONT_CONST = __webpack_require__(979); +var RETRO_FONT_CONST = __webpack_require__(978); var Extend = __webpack_require__(17); /** @@ -146441,7 +146670,7 @@ var Extend = __webpack_require__(17); * @since 3.6.0 */ -var RetroFont = { Parse: __webpack_require__(980) }; +var RetroFont = { Parse: __webpack_require__(979) }; // Merge in the consts RetroFont = Extend(false, RetroFont, RETRO_FONT_CONST); @@ -146450,7 +146679,7 @@ module.exports = RetroFont; /***/ }), -/* 979 */ +/* 978 */ /***/ (function(module, exports) { /** @@ -146566,7 +146795,7 @@ module.exports = RETRO_FONT_CONST; /***/ }), -/* 980 */ +/* 979 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146682,7 +146911,7 @@ module.exports = ParseRetroFont; /***/ }), -/* 981 */ +/* 980 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146696,12 +146925,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(982); + renderWebGL = __webpack_require__(981); } if (true) { - renderCanvas = __webpack_require__(983); + renderCanvas = __webpack_require__(982); } module.exports = { @@ -146713,7 +146942,7 @@ module.exports = { /***/ }), -/* 982 */ +/* 981 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146722,7 +146951,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -146852,7 +147081,7 @@ module.exports = RopeWebGLRenderer; /***/ }), -/* 983 */ +/* 982 */ /***/ (function(module, exports) { /** @@ -146881,7 +147110,7 @@ module.exports = RopeCanvasRenderer; /***/ }), -/* 984 */ +/* 983 */ /***/ (function(module, exports) { /** @@ -146963,7 +147192,7 @@ module.exports = GetTextSize; /***/ }), -/* 985 */ +/* 984 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146977,12 +147206,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(986); + renderWebGL = __webpack_require__(985); } if (true) { - renderCanvas = __webpack_require__(987); + renderCanvas = __webpack_require__(986); } module.exports = { @@ -146994,7 +147223,7 @@ module.exports = { /***/ }), -/* 986 */ +/* 985 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147003,7 +147232,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -147059,7 +147288,7 @@ module.exports = TextWebGLRenderer; /***/ }), -/* 987 */ +/* 986 */ /***/ (function(module, exports) { /** @@ -147097,7 +147326,7 @@ module.exports = TextCanvasRenderer; /***/ }), -/* 988 */ +/* 987 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147109,7 +147338,7 @@ module.exports = TextCanvasRenderer; var Class = __webpack_require__(0); var GetAdvancedValue = __webpack_require__(14); var GetValue = __webpack_require__(6); -var MeasureText = __webpack_require__(989); +var MeasureText = __webpack_require__(988); // Key: [ Object Key, Default Value ] @@ -148150,7 +148379,7 @@ module.exports = TextStyle; /***/ }), -/* 989 */ +/* 988 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148285,7 +148514,7 @@ module.exports = MeasureText; /***/ }), -/* 990 */ +/* 989 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148299,12 +148528,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(991); + renderWebGL = __webpack_require__(990); } if (true) { - renderCanvas = __webpack_require__(992); + renderCanvas = __webpack_require__(991); } module.exports = { @@ -148316,7 +148545,7 @@ module.exports = { /***/ }), -/* 991 */ +/* 990 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148325,7 +148554,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -148376,7 +148605,7 @@ module.exports = TileSpriteWebGLRenderer; /***/ }), -/* 992 */ +/* 991 */ /***/ (function(module, exports) { /** @@ -148411,7 +148640,7 @@ module.exports = TileSpriteCanvasRenderer; /***/ }), -/* 993 */ +/* 992 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148425,12 +148654,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(994); + renderWebGL = __webpack_require__(993); } if (true) { - renderCanvas = __webpack_require__(995); + renderCanvas = __webpack_require__(994); } module.exports = { @@ -148442,7 +148671,7 @@ module.exports = { /***/ }), -/* 994 */ +/* 993 */ /***/ (function(module, exports) { /** @@ -148478,7 +148707,7 @@ module.exports = VideoWebGLRenderer; /***/ }), -/* 995 */ +/* 994 */ /***/ (function(module, exports) { /** @@ -148514,7 +148743,7 @@ module.exports = VideoCanvasRenderer; /***/ }), -/* 996 */ +/* 995 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148528,12 +148757,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(997); + renderWebGL = __webpack_require__(996); } if (true) { - renderCanvas = __webpack_require__(998); + renderCanvas = __webpack_require__(997); } module.exports = { @@ -148545,7 +148774,7 @@ module.exports = { /***/ }), -/* 997 */ +/* 996 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148554,8 +148783,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(100); -var StrokePathWebGL = __webpack_require__(71); +var FillPathWebGL = __webpack_require__(97); +var StrokePathWebGL = __webpack_require__(68); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -148623,7 +148852,7 @@ module.exports = ArcWebGLRenderer; /***/ }), -/* 998 */ +/* 997 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148699,7 +148928,7 @@ module.exports = ArcCanvasRenderer; /***/ }), -/* 999 */ +/* 998 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148713,12 +148942,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1000); + renderWebGL = __webpack_require__(999); } if (true) { - renderCanvas = __webpack_require__(1001); + renderCanvas = __webpack_require__(1000); } module.exports = { @@ -148730,7 +148959,7 @@ module.exports = { /***/ }), -/* 1000 */ +/* 999 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148739,8 +148968,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(100); -var StrokePathWebGL = __webpack_require__(71); +var FillPathWebGL = __webpack_require__(97); +var StrokePathWebGL = __webpack_require__(68); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -148808,7 +149037,7 @@ module.exports = CurveWebGLRenderer; /***/ }), -/* 1001 */ +/* 1000 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148896,7 +149125,7 @@ module.exports = CurveCanvasRenderer; /***/ }), -/* 1002 */ +/* 1001 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148910,12 +149139,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1003); + renderWebGL = __webpack_require__(1002); } if (true) { - renderCanvas = __webpack_require__(1004); + renderCanvas = __webpack_require__(1003); } module.exports = { @@ -148927,7 +149156,7 @@ module.exports = { /***/ }), -/* 1003 */ +/* 1002 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148936,8 +149165,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(100); -var StrokePathWebGL = __webpack_require__(71); +var FillPathWebGL = __webpack_require__(97); +var StrokePathWebGL = __webpack_require__(68); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -149005,7 +149234,7 @@ module.exports = EllipseWebGLRenderer; /***/ }), -/* 1004 */ +/* 1003 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149090,7 +149319,7 @@ module.exports = EllipseCanvasRenderer; /***/ }), -/* 1005 */ +/* 1004 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149104,12 +149333,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1006); + renderWebGL = __webpack_require__(1005); } if (true) { - renderCanvas = __webpack_require__(1007); + renderCanvas = __webpack_require__(1006); } module.exports = { @@ -149121,7 +149350,7 @@ module.exports = { /***/ }), -/* 1006 */ +/* 1005 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149130,7 +149359,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -149347,7 +149576,7 @@ module.exports = GridWebGLRenderer; /***/ }), -/* 1007 */ +/* 1006 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149536,7 +149765,7 @@ module.exports = GridCanvasRenderer; /***/ }), -/* 1008 */ +/* 1007 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149550,12 +149779,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1009); + renderWebGL = __webpack_require__(1008); } if (true) { - renderCanvas = __webpack_require__(1010); + renderCanvas = __webpack_require__(1009); } module.exports = { @@ -149567,7 +149796,7 @@ module.exports = { /***/ }), -/* 1009 */ +/* 1008 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149576,7 +149805,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -149725,7 +149954,7 @@ module.exports = IsoBoxWebGLRenderer; /***/ }), -/* 1010 */ +/* 1009 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149826,7 +150055,7 @@ module.exports = IsoBoxCanvasRenderer; /***/ }), -/* 1011 */ +/* 1010 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149840,12 +150069,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1012); + renderWebGL = __webpack_require__(1011); } if (true) { - renderCanvas = __webpack_require__(1013); + renderCanvas = __webpack_require__(1012); } module.exports = { @@ -149857,7 +150086,7 @@ module.exports = { /***/ }), -/* 1012 */ +/* 1011 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149866,7 +150095,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -150034,7 +150263,7 @@ module.exports = IsoTriangleWebGLRenderer; /***/ }), -/* 1013 */ +/* 1012 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150148,7 +150377,7 @@ module.exports = IsoTriangleCanvasRenderer; /***/ }), -/* 1014 */ +/* 1013 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150162,12 +150391,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1015); + renderWebGL = __webpack_require__(1014); } if (true) { - renderCanvas = __webpack_require__(1016); + renderCanvas = __webpack_require__(1015); } module.exports = { @@ -150179,7 +150408,7 @@ module.exports = { /***/ }), -/* 1015 */ +/* 1014 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150188,7 +150417,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -150272,7 +150501,7 @@ module.exports = LineWebGLRenderer; /***/ }), -/* 1016 */ +/* 1015 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150329,7 +150558,7 @@ module.exports = LineCanvasRenderer; /***/ }), -/* 1017 */ +/* 1016 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150343,12 +150572,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1018); + renderWebGL = __webpack_require__(1017); } if (true) { - renderCanvas = __webpack_require__(1019); + renderCanvas = __webpack_require__(1018); } module.exports = { @@ -150360,7 +150589,7 @@ module.exports = { /***/ }), -/* 1018 */ +/* 1017 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150369,8 +150598,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(100); -var StrokePathWebGL = __webpack_require__(71); +var FillPathWebGL = __webpack_require__(97); +var StrokePathWebGL = __webpack_require__(68); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -150438,7 +150667,7 @@ module.exports = PolygonWebGLRenderer; /***/ }), -/* 1019 */ +/* 1018 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150523,7 +150752,7 @@ module.exports = PolygonCanvasRenderer; /***/ }), -/* 1020 */ +/* 1019 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150537,12 +150766,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1021); + renderWebGL = __webpack_require__(1020); } if (true) { - renderCanvas = __webpack_require__(1022); + renderCanvas = __webpack_require__(1021); } module.exports = { @@ -150554,7 +150783,7 @@ module.exports = { /***/ }), -/* 1021 */ +/* 1020 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150563,8 +150792,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var StrokePathWebGL = __webpack_require__(71); -var Utils = __webpack_require__(10); +var StrokePathWebGL = __webpack_require__(68); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -150646,7 +150875,7 @@ module.exports = RectangleWebGLRenderer; /***/ }), -/* 1022 */ +/* 1021 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150720,7 +150949,7 @@ module.exports = RectangleCanvasRenderer; /***/ }), -/* 1023 */ +/* 1022 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150734,12 +150963,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1024); + renderWebGL = __webpack_require__(1023); } if (true) { - renderCanvas = __webpack_require__(1025); + renderCanvas = __webpack_require__(1024); } module.exports = { @@ -150751,7 +150980,7 @@ module.exports = { /***/ }), -/* 1024 */ +/* 1023 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150760,8 +150989,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(100); -var StrokePathWebGL = __webpack_require__(71); +var FillPathWebGL = __webpack_require__(97); +var StrokePathWebGL = __webpack_require__(68); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -150829,7 +151058,7 @@ module.exports = StarWebGLRenderer; /***/ }), -/* 1025 */ +/* 1024 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150914,7 +151143,7 @@ module.exports = StarCanvasRenderer; /***/ }), -/* 1026 */ +/* 1025 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150928,12 +151157,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1027); + renderWebGL = __webpack_require__(1026); } if (true) { - renderCanvas = __webpack_require__(1028); + renderCanvas = __webpack_require__(1027); } module.exports = { @@ -150945,7 +151174,7 @@ module.exports = { /***/ }), -/* 1027 */ +/* 1026 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150954,8 +151183,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var StrokePathWebGL = __webpack_require__(71); -var Utils = __webpack_require__(10); +var StrokePathWebGL = __webpack_require__(68); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -151048,7 +151277,7 @@ module.exports = TriangleWebGLRenderer; /***/ }), -/* 1028 */ +/* 1027 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151123,7 +151352,7 @@ module.exports = TriangleCanvasRenderer; /***/ }), -/* 1029 */ +/* 1028 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151132,7 +151361,7 @@ module.exports = TriangleCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Blitter = __webpack_require__(187); +var Blitter = __webpack_require__(184); var GameObjectFactory = __webpack_require__(5); /** @@ -151165,7 +151394,7 @@ GameObjectFactory.register('blitter', function (x, y, key, frame) /***/ }), -/* 1030 */ +/* 1029 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151175,7 +151404,7 @@ GameObjectFactory.register('blitter', function (x, y, key, frame) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Container = __webpack_require__(188); +var Container = __webpack_require__(185); var GameObjectFactory = __webpack_require__(5); /** @@ -151199,7 +151428,7 @@ GameObjectFactory.register('container', function (x, y, children) /***/ }), -/* 1031 */ +/* 1030 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151208,7 +151437,7 @@ GameObjectFactory.register('container', function (x, y, children) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var DOMElement = __webpack_require__(392); +var DOMElement = __webpack_require__(390); var GameObjectFactory = __webpack_require__(5); /** @@ -151289,7 +151518,7 @@ GameObjectFactory.register('dom', function (x, y, element, style, innerText) /***/ }), -/* 1032 */ +/* 1031 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151298,7 +151527,7 @@ GameObjectFactory.register('dom', function (x, y, element, style, innerText) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var DynamicBitmapText = __webpack_require__(189); +var DynamicBitmapText = __webpack_require__(186); var GameObjectFactory = __webpack_require__(5); /** @@ -151358,7 +151587,7 @@ GameObjectFactory.register('dynamicBitmapText', function (x, y, font, text, size /***/ }), -/* 1033 */ +/* 1032 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151367,7 +151596,7 @@ GameObjectFactory.register('dynamicBitmapText', function (x, y, font, text, size * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Extern = __webpack_require__(394); +var Extern = __webpack_require__(392); var GameObjectFactory = __webpack_require__(5); /** @@ -151400,7 +151629,7 @@ GameObjectFactory.register('extern', function () /***/ }), -/* 1034 */ +/* 1033 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151409,7 +151638,7 @@ GameObjectFactory.register('extern', function () * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Graphics = __webpack_require__(190); +var Graphics = __webpack_require__(187); var GameObjectFactory = __webpack_require__(5); /** @@ -151439,7 +151668,7 @@ GameObjectFactory.register('graphics', function (config) /***/ }), -/* 1035 */ +/* 1034 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151448,7 +151677,7 @@ GameObjectFactory.register('graphics', function (config) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Group = __webpack_require__(97); +var Group = __webpack_require__(96); var GameObjectFactory = __webpack_require__(5); /** @@ -151471,7 +151700,7 @@ GameObjectFactory.register('group', function (children, config) /***/ }), -/* 1036 */ +/* 1035 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151480,7 +151709,7 @@ GameObjectFactory.register('group', function (children, config) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Image = __webpack_require__(98); +var Image = __webpack_require__(104); var GameObjectFactory = __webpack_require__(5); /** @@ -151513,7 +151742,7 @@ GameObjectFactory.register('image', function (x, y, key, frame) /***/ }), -/* 1037 */ +/* 1036 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151523,7 +151752,7 @@ GameObjectFactory.register('image', function (x, y, key, frame) */ var GameObjectFactory = __webpack_require__(5); -var ParticleEmitterManager = __webpack_require__(193); +var ParticleEmitterManager = __webpack_require__(190); /** * Creates a new Particle Emitter Manager Game Object and adds it to the Scene. @@ -151559,7 +151788,7 @@ GameObjectFactory.register('particles', function (key, frame, emitters) /***/ }), -/* 1038 */ +/* 1037 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151569,7 +151798,7 @@ GameObjectFactory.register('particles', function (key, frame, emitters) */ var GameObjectFactory = __webpack_require__(5); -var PathFollower = __webpack_require__(406); +var PathFollower = __webpack_require__(404); /** * Creates a new PathFollower Game Object and adds it to the Scene. @@ -151607,7 +151836,7 @@ GameObjectFactory.register('follower', function (path, x, y, key, frame) /***/ }), -/* 1039 */ +/* 1038 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151617,7 +151846,7 @@ GameObjectFactory.register('follower', function (path, x, y, key, frame) */ var GameObjectFactory = __webpack_require__(5); -var RenderTexture = __webpack_require__(194); +var RenderTexture = __webpack_require__(191); /** * Creates a new Render Texture Game Object and adds it to the Scene. @@ -151647,7 +151876,7 @@ GameObjectFactory.register('renderTexture', function (x, y, width, height, key, /***/ }), -/* 1040 */ +/* 1039 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151656,7 +151885,7 @@ GameObjectFactory.register('renderTexture', function (x, y, width, height, key, * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rope = __webpack_require__(196); +var Rope = __webpack_require__(193); var GameObjectFactory = __webpack_require__(5); /** @@ -151701,7 +151930,7 @@ if (true) /***/ }), -/* 1041 */ +/* 1040 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151711,7 +151940,7 @@ if (true) */ var GameObjectFactory = __webpack_require__(5); -var Sprite = __webpack_require__(69); +var Sprite = __webpack_require__(74); /** * Creates a new Sprite Game Object and adds it to the Scene. @@ -151748,7 +151977,7 @@ GameObjectFactory.register('sprite', function (x, y, key, frame) /***/ }), -/* 1042 */ +/* 1041 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151757,7 +151986,7 @@ GameObjectFactory.register('sprite', function (x, y, key, frame) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(129); +var BitmapText = __webpack_require__(127); var GameObjectFactory = __webpack_require__(5); /** @@ -151812,7 +152041,7 @@ GameObjectFactory.register('bitmapText', function (x, y, font, text, size, align /***/ }), -/* 1043 */ +/* 1042 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151821,7 +152050,7 @@ GameObjectFactory.register('bitmapText', function (x, y, font, text, size, align * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Text = __webpack_require__(197); +var Text = __webpack_require__(194); var GameObjectFactory = __webpack_require__(5); /** @@ -151877,7 +152106,7 @@ GameObjectFactory.register('text', function (x, y, text, style) /***/ }), -/* 1044 */ +/* 1043 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151886,7 +152115,7 @@ GameObjectFactory.register('text', function (x, y, text, style) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileSprite = __webpack_require__(198); +var TileSprite = __webpack_require__(195); var GameObjectFactory = __webpack_require__(5); /** @@ -151921,7 +152150,7 @@ GameObjectFactory.register('tileSprite', function (x, y, width, height, key, fra /***/ }), -/* 1045 */ +/* 1044 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151930,7 +152159,7 @@ GameObjectFactory.register('tileSprite', function (x, y, width, height, key, fra * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Zone = __webpack_require__(110); +var Zone = __webpack_require__(107); var GameObjectFactory = __webpack_require__(5); /** @@ -151963,7 +152192,7 @@ GameObjectFactory.register('zone', function (x, y, width, height) /***/ }), -/* 1046 */ +/* 1045 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151972,7 +152201,7 @@ GameObjectFactory.register('zone', function (x, y, width, height) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Video = __webpack_require__(199); +var Video = __webpack_require__(196); var GameObjectFactory = __webpack_require__(5); /** @@ -152010,7 +152239,7 @@ GameObjectFactory.register('video', function (x, y, key) /***/ }), -/* 1047 */ +/* 1046 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152019,7 +152248,7 @@ GameObjectFactory.register('video', function (x, y, key) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Arc = __webpack_require__(407); +var Arc = __webpack_require__(405); var GameObjectFactory = __webpack_require__(5); /** @@ -152083,7 +152312,7 @@ GameObjectFactory.register('circle', function (x, y, radius, fillColor, fillAlph /***/ }), -/* 1048 */ +/* 1047 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152093,7 +152322,7 @@ GameObjectFactory.register('circle', function (x, y, radius, fillColor, fillAlph */ var GameObjectFactory = __webpack_require__(5); -var Curve = __webpack_require__(408); +var Curve = __webpack_require__(406); /** * Creates a new Curve Shape Game Object and adds it to the Scene. @@ -152133,7 +152362,7 @@ GameObjectFactory.register('curve', function (x, y, curve, fillColor, fillAlpha) /***/ }), -/* 1049 */ +/* 1048 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152142,7 +152371,7 @@ GameObjectFactory.register('curve', function (x, y, curve, fillColor, fillAlpha) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Ellipse = __webpack_require__(409); +var Ellipse = __webpack_require__(407); var GameObjectFactory = __webpack_require__(5); /** @@ -152185,7 +152414,7 @@ GameObjectFactory.register('ellipse', function (x, y, width, height, fillColor, /***/ }), -/* 1050 */ +/* 1049 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152195,7 +152424,7 @@ GameObjectFactory.register('ellipse', function (x, y, width, height, fillColor, */ var GameObjectFactory = __webpack_require__(5); -var Grid = __webpack_require__(410); +var Grid = __webpack_require__(408); /** * Creates a new Grid Shape Game Object and adds it to the Scene. @@ -152240,7 +152469,7 @@ GameObjectFactory.register('grid', function (x, y, width, height, cellWidth, cel /***/ }), -/* 1051 */ +/* 1050 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152250,7 +152479,7 @@ GameObjectFactory.register('grid', function (x, y, width, height, cellWidth, cel */ var GameObjectFactory = __webpack_require__(5); -var IsoBox = __webpack_require__(411); +var IsoBox = __webpack_require__(409); /** * Creates a new IsoBox Shape Game Object and adds it to the Scene. @@ -152291,7 +152520,7 @@ GameObjectFactory.register('isobox', function (x, y, size, height, fillTop, fill /***/ }), -/* 1052 */ +/* 1051 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152301,7 +152530,7 @@ GameObjectFactory.register('isobox', function (x, y, size, height, fillTop, fill */ var GameObjectFactory = __webpack_require__(5); -var IsoTriangle = __webpack_require__(412); +var IsoTriangle = __webpack_require__(410); /** * Creates a new IsoTriangle Shape Game Object and adds it to the Scene. @@ -152344,7 +152573,7 @@ GameObjectFactory.register('isotriangle', function (x, y, size, height, reversed /***/ }), -/* 1053 */ +/* 1052 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152354,7 +152583,7 @@ GameObjectFactory.register('isotriangle', function (x, y, size, height, reversed */ var GameObjectFactory = __webpack_require__(5); -var Line = __webpack_require__(413); +var Line = __webpack_require__(411); /** * Creates a new Line Shape Game Object and adds it to the Scene. @@ -152395,7 +152624,7 @@ GameObjectFactory.register('line', function (x, y, x1, y1, x2, y2, strokeColor, /***/ }), -/* 1054 */ +/* 1053 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152405,7 +152634,7 @@ GameObjectFactory.register('line', function (x, y, x1, y1, x2, y2, strokeColor, */ var GameObjectFactory = __webpack_require__(5); -var Polygon = __webpack_require__(414); +var Polygon = __webpack_require__(412); /** * Creates a new Polygon Shape Game Object and adds it to the Scene. @@ -152448,7 +152677,7 @@ GameObjectFactory.register('polygon', function (x, y, points, fillColor, fillAlp /***/ }), -/* 1055 */ +/* 1054 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152458,7 +152687,7 @@ GameObjectFactory.register('polygon', function (x, y, points, fillColor, fillAlp */ var GameObjectFactory = __webpack_require__(5); -var Rectangle = __webpack_require__(419); +var Rectangle = __webpack_require__(417); /** * Creates a new Rectangle Shape Game Object and adds it to the Scene. @@ -152493,7 +152722,7 @@ GameObjectFactory.register('rectangle', function (x, y, width, height, fillColor /***/ }), -/* 1056 */ +/* 1055 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152502,7 +152731,7 @@ GameObjectFactory.register('rectangle', function (x, y, width, height, fillColor * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Star = __webpack_require__(420); +var Star = __webpack_require__(418); var GameObjectFactory = __webpack_require__(5); /** @@ -152545,7 +152774,7 @@ GameObjectFactory.register('star', function (x, y, points, innerRadius, outerRad /***/ }), -/* 1057 */ +/* 1056 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152555,7 +152784,7 @@ GameObjectFactory.register('star', function (x, y, points, innerRadius, outerRad */ var GameObjectFactory = __webpack_require__(5); -var Triangle = __webpack_require__(421); +var Triangle = __webpack_require__(419); /** * Creates a new Triangle Shape Game Object and adds it to the Scene. @@ -152596,7 +152825,7 @@ GameObjectFactory.register('triangle', function (x, y, x1, y1, x2, y2, x3, y3, f /***/ }), -/* 1058 */ +/* 1057 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152605,7 +152834,7 @@ GameObjectFactory.register('triangle', function (x, y, x1, y1, x2, y2, x3, y3, f * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Blitter = __webpack_require__(187); +var Blitter = __webpack_require__(184); var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); @@ -152646,7 +152875,7 @@ GameObjectCreator.register('blitter', function (config, addToScene) /***/ }), -/* 1059 */ +/* 1058 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152657,7 +152886,7 @@ GameObjectCreator.register('blitter', function (config, addToScene) */ var BuildGameObject = __webpack_require__(27); -var Container = __webpack_require__(188); +var Container = __webpack_require__(185); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); @@ -152695,7 +152924,7 @@ GameObjectCreator.register('container', function (config, addToScene) /***/ }), -/* 1060 */ +/* 1059 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152704,7 +152933,7 @@ GameObjectCreator.register('container', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(189); +var BitmapText = __webpack_require__(186); var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); @@ -152746,7 +152975,7 @@ GameObjectCreator.register('dynamicBitmapText', function (config, addToScene) /***/ }), -/* 1061 */ +/* 1060 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152756,7 +152985,7 @@ GameObjectCreator.register('dynamicBitmapText', function (config, addToScene) */ var GameObjectCreator = __webpack_require__(16); -var Graphics = __webpack_require__(190); +var Graphics = __webpack_require__(187); /** * Creates a new Graphics Game Object and returns it. @@ -152794,7 +153023,7 @@ GameObjectCreator.register('graphics', function (config, addToScene) /***/ }), -/* 1062 */ +/* 1061 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152804,7 +153033,7 @@ GameObjectCreator.register('graphics', function (config, addToScene) */ var GameObjectCreator = __webpack_require__(16); -var Group = __webpack_require__(97); +var Group = __webpack_require__(96); /** * Creates a new Group Game Object and returns it. @@ -152827,7 +153056,7 @@ GameObjectCreator.register('group', function (config) /***/ }), -/* 1063 */ +/* 1062 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152839,7 +153068,7 @@ GameObjectCreator.register('group', function (config) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Image = __webpack_require__(98); +var Image = __webpack_require__(104); /** * Creates a new Image Game Object and returns it. @@ -152877,7 +153106,7 @@ GameObjectCreator.register('image', function (config, addToScene) /***/ }), -/* 1064 */ +/* 1063 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152889,7 +153118,7 @@ GameObjectCreator.register('image', function (config, addToScene) var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); var GetFastValue = __webpack_require__(2); -var ParticleEmitterManager = __webpack_require__(193); +var ParticleEmitterManager = __webpack_require__(190); /** * Creates a new Particle Emitter Manager Game Object and returns it. @@ -152934,7 +153163,7 @@ GameObjectCreator.register('particles', function (config, addToScene) /***/ }), -/* 1065 */ +/* 1064 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152946,7 +153175,7 @@ GameObjectCreator.register('particles', function (config, addToScene) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var RenderTexture = __webpack_require__(194); +var RenderTexture = __webpack_require__(191); /** * Creates a new Render Texture Game Object and returns it. @@ -152986,7 +153215,7 @@ GameObjectCreator.register('renderTexture', function (config, addToScene) /***/ }), -/* 1066 */ +/* 1065 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152999,7 +153228,7 @@ var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); var GetValue = __webpack_require__(6); -var Rope = __webpack_require__(196); +var Rope = __webpack_require__(193); /** * Creates a new Rope Game Object and returns it. @@ -153041,7 +153270,7 @@ GameObjectCreator.register('rope', function (config, addToScene) /***/ }), -/* 1067 */ +/* 1066 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153051,10 +153280,10 @@ GameObjectCreator.register('rope', function (config, addToScene) */ var BuildGameObject = __webpack_require__(27); -var BuildGameObjectAnimation = __webpack_require__(390); +var BuildGameObjectAnimation = __webpack_require__(388); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Sprite = __webpack_require__(69); +var Sprite = __webpack_require__(74); /** * Creates a new Sprite Game Object and returns it. @@ -153094,7 +153323,7 @@ GameObjectCreator.register('sprite', function (config, addToScene) /***/ }), -/* 1068 */ +/* 1067 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153103,7 +153332,7 @@ GameObjectCreator.register('sprite', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(129); +var BitmapText = __webpack_require__(127); var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); @@ -153147,7 +153376,7 @@ GameObjectCreator.register('bitmapText', function (config, addToScene) /***/ }), -/* 1069 */ +/* 1068 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153159,7 +153388,7 @@ GameObjectCreator.register('bitmapText', function (config, addToScene) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Text = __webpack_require__(197); +var Text = __webpack_require__(194); /** * Creates a new Text Game Object and returns it. @@ -153234,7 +153463,7 @@ GameObjectCreator.register('text', function (config, addToScene) /***/ }), -/* 1070 */ +/* 1069 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153246,7 +153475,7 @@ GameObjectCreator.register('text', function (config, addToScene) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var TileSprite = __webpack_require__(198); +var TileSprite = __webpack_require__(195); /** * Creates a new TileSprite Game Object and returns it. @@ -153286,7 +153515,7 @@ GameObjectCreator.register('tileSprite', function (config, addToScene) /***/ }), -/* 1071 */ +/* 1070 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153297,7 +153526,7 @@ GameObjectCreator.register('tileSprite', function (config, addToScene) var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Zone = __webpack_require__(110); +var Zone = __webpack_require__(107); /** * Creates a new Zone Game Object and returns it. @@ -153325,7 +153554,7 @@ GameObjectCreator.register('zone', function (config) /***/ }), -/* 1072 */ +/* 1071 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153337,7 +153566,7 @@ GameObjectCreator.register('zone', function (config) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Video = __webpack_require__(199); +var Video = __webpack_require__(196); /** * Creates a new Video Game Object and returns it. @@ -153374,7 +153603,7 @@ GameObjectCreator.register('video', function (config, addToScene) /***/ }), -/* 1073 */ +/* 1072 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153388,12 +153617,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1074); + renderWebGL = __webpack_require__(1073); } if (true) { - renderCanvas = __webpack_require__(1075); + renderCanvas = __webpack_require__(1074); } module.exports = { @@ -153405,7 +153634,7 @@ module.exports = { /***/ }), -/* 1074 */ +/* 1073 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153414,7 +153643,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -153523,7 +153752,7 @@ module.exports = MeshWebGLRenderer; /***/ }), -/* 1075 */ +/* 1074 */ /***/ (function(module, exports) { /** @@ -153552,7 +153781,7 @@ module.exports = MeshCanvasRenderer; /***/ }), -/* 1076 */ +/* 1075 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153566,12 +153795,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1077); + renderWebGL = __webpack_require__(1076); } if (true) { - renderCanvas = __webpack_require__(1078); + renderCanvas = __webpack_require__(1077); } module.exports = { @@ -153583,7 +153812,7 @@ module.exports = { /***/ }), -/* 1077 */ +/* 1076 */ /***/ (function(module, exports) { /** @@ -153667,7 +153896,7 @@ module.exports = ShaderWebGLRenderer; /***/ }), -/* 1078 */ +/* 1077 */ /***/ (function(module, exports) { /** @@ -153696,7 +153925,7 @@ module.exports = ShaderCanvasRenderer; /***/ }), -/* 1079 */ +/* 1078 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153705,7 +153934,7 @@ module.exports = ShaderCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Mesh = __webpack_require__(130); +var Mesh = __webpack_require__(129); var GameObjectFactory = __webpack_require__(5); /** @@ -153746,7 +153975,7 @@ if (true) /***/ }), -/* 1080 */ +/* 1079 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153755,7 +153984,7 @@ if (true) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Quad = __webpack_require__(202); +var Quad = __webpack_require__(199); var GameObjectFactory = __webpack_require__(5); /** @@ -153792,7 +154021,7 @@ if (true) /***/ }), -/* 1081 */ +/* 1080 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153801,7 +154030,7 @@ if (true) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Shader = __webpack_require__(203); +var Shader = __webpack_require__(200); var GameObjectFactory = __webpack_require__(5); /** @@ -153833,7 +154062,7 @@ if (true) /***/ }), -/* 1082 */ +/* 1081 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153846,7 +154075,7 @@ var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); var GetValue = __webpack_require__(6); -var Mesh = __webpack_require__(130); +var Mesh = __webpack_require__(129); /** * Creates a new Mesh Game Object and returns it. @@ -153888,7 +154117,7 @@ GameObjectCreator.register('mesh', function (config, addToScene) /***/ }), -/* 1083 */ +/* 1082 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153900,7 +154129,7 @@ GameObjectCreator.register('mesh', function (config, addToScene) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Quad = __webpack_require__(202); +var Quad = __webpack_require__(199); /** * Creates a new Quad Game Object and returns it. @@ -153938,7 +154167,7 @@ GameObjectCreator.register('quad', function (config, addToScene) /***/ }), -/* 1084 */ +/* 1083 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153950,7 +154179,7 @@ GameObjectCreator.register('quad', function (config, addToScene) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Shader = __webpack_require__(203); +var Shader = __webpack_require__(200); /** * Creates a new Shader Game Object and returns it. @@ -153991,7 +154220,7 @@ GameObjectCreator.register('shader', function (config, addToScene) /***/ }), -/* 1085 */ +/* 1084 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154001,9 +154230,9 @@ GameObjectCreator.register('shader', function (config, addToScene) */ var Class = __webpack_require__(0); -var LightsManager = __webpack_require__(426); +var LightsManager = __webpack_require__(424); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -154107,7 +154336,7 @@ module.exports = LightsPlugin; /***/ }), -/* 1086 */ +/* 1085 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154116,29 +154345,29 @@ module.exports = LightsPlugin; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circle = __webpack_require__(65); +var Circle = __webpack_require__(63); -Circle.Area = __webpack_require__(1087); -Circle.Circumference = __webpack_require__(267); -Circle.CircumferencePoint = __webpack_require__(147); -Circle.Clone = __webpack_require__(1088); +Circle.Area = __webpack_require__(1086); +Circle.Circumference = __webpack_require__(265); +Circle.CircumferencePoint = __webpack_require__(144); +Circle.Clone = __webpack_require__(1087); Circle.Contains = __webpack_require__(55); -Circle.ContainsPoint = __webpack_require__(1089); -Circle.ContainsRect = __webpack_require__(1090); -Circle.CopyFrom = __webpack_require__(1091); -Circle.Equals = __webpack_require__(1092); -Circle.GetBounds = __webpack_require__(1093); -Circle.GetPoint = __webpack_require__(265); -Circle.GetPoints = __webpack_require__(266); -Circle.Offset = __webpack_require__(1094); -Circle.OffsetPoint = __webpack_require__(1095); -Circle.Random = __webpack_require__(148); +Circle.ContainsPoint = __webpack_require__(1088); +Circle.ContainsRect = __webpack_require__(1089); +Circle.CopyFrom = __webpack_require__(1090); +Circle.Equals = __webpack_require__(1091); +Circle.GetBounds = __webpack_require__(1092); +Circle.GetPoint = __webpack_require__(263); +Circle.GetPoints = __webpack_require__(264); +Circle.Offset = __webpack_require__(1093); +Circle.OffsetPoint = __webpack_require__(1094); +Circle.Random = __webpack_require__(145); module.exports = Circle; /***/ }), -/* 1087 */ +/* 1086 */ /***/ (function(module, exports) { /** @@ -154166,7 +154395,7 @@ module.exports = Area; /***/ }), -/* 1088 */ +/* 1087 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154175,7 +154404,7 @@ module.exports = Area; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circle = __webpack_require__(65); +var Circle = __webpack_require__(63); /** * Creates a new Circle instance based on the values contained in the given source. @@ -154196,7 +154425,7 @@ module.exports = Clone; /***/ }), -/* 1089 */ +/* 1088 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154227,7 +154456,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1090 */ +/* 1089 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154263,7 +154492,7 @@ module.exports = ContainsRect; /***/ }), -/* 1091 */ +/* 1090 */ /***/ (function(module, exports) { /** @@ -154295,7 +154524,7 @@ module.exports = CopyFrom; /***/ }), -/* 1092 */ +/* 1091 */ /***/ (function(module, exports) { /** @@ -154329,7 +154558,7 @@ module.exports = Equals; /***/ }), -/* 1093 */ +/* 1092 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154369,7 +154598,7 @@ module.exports = GetBounds; /***/ }), -/* 1094 */ +/* 1093 */ /***/ (function(module, exports) { /** @@ -154404,7 +154633,7 @@ module.exports = Offset; /***/ }), -/* 1095 */ +/* 1094 */ /***/ (function(module, exports) { /** @@ -154438,7 +154667,7 @@ module.exports = OffsetPoint; /***/ }), -/* 1096 */ +/* 1095 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154447,29 +154676,29 @@ module.exports = OffsetPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Ellipse = __webpack_require__(95); +var Ellipse = __webpack_require__(94); -Ellipse.Area = __webpack_require__(1097); -Ellipse.Circumference = __webpack_require__(397); -Ellipse.CircumferencePoint = __webpack_require__(192); -Ellipse.Clone = __webpack_require__(1098); -Ellipse.Contains = __webpack_require__(96); -Ellipse.ContainsPoint = __webpack_require__(1099); -Ellipse.ContainsRect = __webpack_require__(1100); -Ellipse.CopyFrom = __webpack_require__(1101); -Ellipse.Equals = __webpack_require__(1102); -Ellipse.GetBounds = __webpack_require__(1103); -Ellipse.GetPoint = __webpack_require__(395); -Ellipse.GetPoints = __webpack_require__(396); -Ellipse.Offset = __webpack_require__(1104); -Ellipse.OffsetPoint = __webpack_require__(1105); -Ellipse.Random = __webpack_require__(155); +Ellipse.Area = __webpack_require__(1096); +Ellipse.Circumference = __webpack_require__(395); +Ellipse.CircumferencePoint = __webpack_require__(189); +Ellipse.Clone = __webpack_require__(1097); +Ellipse.Contains = __webpack_require__(95); +Ellipse.ContainsPoint = __webpack_require__(1098); +Ellipse.ContainsRect = __webpack_require__(1099); +Ellipse.CopyFrom = __webpack_require__(1100); +Ellipse.Equals = __webpack_require__(1101); +Ellipse.GetBounds = __webpack_require__(1102); +Ellipse.GetPoint = __webpack_require__(393); +Ellipse.GetPoints = __webpack_require__(394); +Ellipse.Offset = __webpack_require__(1103); +Ellipse.OffsetPoint = __webpack_require__(1104); +Ellipse.Random = __webpack_require__(152); module.exports = Ellipse; /***/ }), -/* 1097 */ +/* 1096 */ /***/ (function(module, exports) { /** @@ -154503,7 +154732,7 @@ module.exports = Area; /***/ }), -/* 1098 */ +/* 1097 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154512,7 +154741,7 @@ module.exports = Area; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Ellipse = __webpack_require__(95); +var Ellipse = __webpack_require__(94); /** * Creates a new Ellipse instance based on the values contained in the given source. @@ -154533,7 +154762,7 @@ module.exports = Clone; /***/ }), -/* 1099 */ +/* 1098 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154542,7 +154771,7 @@ module.exports = Clone; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(96); +var Contains = __webpack_require__(95); /** * Check to see if the Ellipse contains the given Point object. @@ -154564,7 +154793,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1100 */ +/* 1099 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154573,7 +154802,7 @@ module.exports = ContainsPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(96); +var Contains = __webpack_require__(95); /** * Check to see if the Ellipse contains all four points of the given Rectangle object. @@ -154600,7 +154829,7 @@ module.exports = ContainsRect; /***/ }), -/* 1101 */ +/* 1100 */ /***/ (function(module, exports) { /** @@ -154632,7 +154861,7 @@ module.exports = CopyFrom; /***/ }), -/* 1102 */ +/* 1101 */ /***/ (function(module, exports) { /** @@ -154667,7 +154896,7 @@ module.exports = Equals; /***/ }), -/* 1103 */ +/* 1102 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154707,7 +154936,7 @@ module.exports = GetBounds; /***/ }), -/* 1104 */ +/* 1103 */ /***/ (function(module, exports) { /** @@ -154742,7 +154971,7 @@ module.exports = Offset; /***/ }), -/* 1105 */ +/* 1104 */ /***/ (function(module, exports) { /** @@ -154776,7 +155005,7 @@ module.exports = OffsetPoint; /***/ }), -/* 1106 */ +/* 1105 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154787,7 +155016,7 @@ module.exports = OffsetPoint; */ var Point = __webpack_require__(4); -var CircleToCircle = __webpack_require__(204); +var CircleToCircle = __webpack_require__(201); /** * Checks if two Circles intersect and returns the intersection points as a Point object array. @@ -154870,7 +155099,7 @@ module.exports = GetCircleToCircle; /***/ }), -/* 1107 */ +/* 1106 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154880,8 +155109,8 @@ module.exports = GetCircleToCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetLineToCircle = __webpack_require__(206); -var CircleToRectangle = __webpack_require__(205); +var GetLineToCircle = __webpack_require__(203); +var CircleToRectangle = __webpack_require__(202); /** * Checks for intersection between a circle and a rectangle, @@ -154920,7 +155149,7 @@ module.exports = GetCircleToRectangle; /***/ }), -/* 1108 */ +/* 1107 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154930,7 +155159,7 @@ module.exports = GetCircleToRectangle; */ var Rectangle = __webpack_require__(12); -var RectangleToRectangle = __webpack_require__(131); +var RectangleToRectangle = __webpack_require__(130); /** * Checks if two Rectangle shapes intersect and returns the area of this intersection as Rectangle object. @@ -154969,7 +155198,7 @@ module.exports = GetRectangleIntersection; /***/ }), -/* 1109 */ +/* 1108 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154979,8 +155208,8 @@ module.exports = GetRectangleIntersection; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetLineToRectangle = __webpack_require__(208); -var RectangleToRectangle = __webpack_require__(131); +var GetLineToRectangle = __webpack_require__(205); +var RectangleToRectangle = __webpack_require__(130); /** * Checks if two Rectangles intersect and returns the intersection points as a Point object array. @@ -155020,7 +155249,7 @@ module.exports = GetRectangleToRectangle; /***/ }), -/* 1110 */ +/* 1109 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155030,8 +155259,8 @@ module.exports = GetRectangleToRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RectangleToTriangle = __webpack_require__(430); -var GetLineToRectangle = __webpack_require__(208); +var RectangleToTriangle = __webpack_require__(428); +var GetLineToRectangle = __webpack_require__(205); /** * Checks for intersection between Rectangle shape and Triangle shape, @@ -155068,7 +155297,7 @@ module.exports = GetRectangleToTriangle; /***/ }), -/* 1111 */ +/* 1110 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155078,8 +155307,8 @@ module.exports = GetRectangleToTriangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetLineToCircle = __webpack_require__(206); -var TriangleToCircle = __webpack_require__(432); +var GetLineToCircle = __webpack_require__(203); +var TriangleToCircle = __webpack_require__(430); /** * Checks if a Triangle and a Circle intersect, and returns the intersection points as a Point object array. @@ -155117,7 +155346,7 @@ module.exports = GetTriangleToCircle; /***/ }), -/* 1112 */ +/* 1111 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155127,8 +155356,8 @@ module.exports = GetTriangleToCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TriangleToTriangle = __webpack_require__(435); -var GetTriangleToLine = __webpack_require__(433); +var TriangleToTriangle = __webpack_require__(433); +var GetTriangleToLine = __webpack_require__(431); /** * Checks if two Triangles intersect, and returns the intersection points as a Point object array. @@ -155166,7 +155395,7 @@ module.exports = GetTriangleToTriangle; /***/ }), -/* 1113 */ +/* 1112 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155175,7 +155404,7 @@ module.exports = GetTriangleToTriangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PointToLine = __webpack_require__(437); +var PointToLine = __webpack_require__(435); /** * Checks if a Point is located on the given line segment. @@ -155207,7 +155436,7 @@ module.exports = PointToLineSegment; /***/ }), -/* 1114 */ +/* 1113 */ /***/ (function(module, exports) { /** @@ -155247,7 +155476,7 @@ module.exports = RectangleToValues; /***/ }), -/* 1115 */ +/* 1114 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155258,41 +155487,41 @@ module.exports = RectangleToValues; var Line = __webpack_require__(56); -Line.Angle = __webpack_require__(85); -Line.BresenhamPoints = __webpack_require__(287); -Line.CenterOn = __webpack_require__(1116); -Line.Clone = __webpack_require__(1117); -Line.CopyFrom = __webpack_require__(1118); -Line.Equals = __webpack_require__(1119); -Line.Extend = __webpack_require__(1120); -Line.GetEasedPoints = __webpack_require__(1121); -Line.GetMidPoint = __webpack_require__(1122); -Line.GetNearestPoint = __webpack_require__(1123); -Line.GetNormal = __webpack_require__(1124); -Line.GetPoint = __webpack_require__(274); -Line.GetPoints = __webpack_require__(151); -Line.GetShortestDistance = __webpack_require__(1125); -Line.Height = __webpack_require__(1126); +Line.Angle = __webpack_require__(84); +Line.BresenhamPoints = __webpack_require__(285); +Line.CenterOn = __webpack_require__(1115); +Line.Clone = __webpack_require__(1116); +Line.CopyFrom = __webpack_require__(1117); +Line.Equals = __webpack_require__(1118); +Line.Extend = __webpack_require__(1119); +Line.GetEasedPoints = __webpack_require__(1120); +Line.GetMidPoint = __webpack_require__(1121); +Line.GetNearestPoint = __webpack_require__(1122); +Line.GetNormal = __webpack_require__(1123); +Line.GetPoint = __webpack_require__(272); +Line.GetPoints = __webpack_require__(148); +Line.GetShortestDistance = __webpack_require__(1124); +Line.Height = __webpack_require__(1125); Line.Length = __webpack_require__(57); -Line.NormalAngle = __webpack_require__(438); -Line.NormalX = __webpack_require__(1127); -Line.NormalY = __webpack_require__(1128); -Line.Offset = __webpack_require__(1129); -Line.PerpSlope = __webpack_require__(1130); -Line.Random = __webpack_require__(152); -Line.ReflectAngle = __webpack_require__(1131); -Line.Rotate = __webpack_require__(1132); -Line.RotateAroundPoint = __webpack_require__(1133); -Line.RotateAroundXY = __webpack_require__(210); -Line.SetToAngle = __webpack_require__(1134); -Line.Slope = __webpack_require__(1135); -Line.Width = __webpack_require__(1136); +Line.NormalAngle = __webpack_require__(436); +Line.NormalX = __webpack_require__(1126); +Line.NormalY = __webpack_require__(1127); +Line.Offset = __webpack_require__(1128); +Line.PerpSlope = __webpack_require__(1129); +Line.Random = __webpack_require__(149); +Line.ReflectAngle = __webpack_require__(1130); +Line.Rotate = __webpack_require__(1131); +Line.RotateAroundPoint = __webpack_require__(1132); +Line.RotateAroundXY = __webpack_require__(207); +Line.SetToAngle = __webpack_require__(1133); +Line.Slope = __webpack_require__(1134); +Line.Width = __webpack_require__(1135); module.exports = Line; /***/ }), -/* 1116 */ +/* 1115 */ /***/ (function(module, exports) { /** @@ -155332,7 +155561,7 @@ module.exports = CenterOn; /***/ }), -/* 1117 */ +/* 1116 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155362,7 +155591,7 @@ module.exports = Clone; /***/ }), -/* 1118 */ +/* 1117 */ /***/ (function(module, exports) { /** @@ -155393,7 +155622,7 @@ module.exports = CopyFrom; /***/ }), -/* 1119 */ +/* 1118 */ /***/ (function(module, exports) { /** @@ -155427,7 +155656,7 @@ module.exports = Equals; /***/ }), -/* 1120 */ +/* 1119 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155485,7 +155714,7 @@ module.exports = Extend; /***/ }), -/* 1121 */ +/* 1120 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155494,8 +155723,8 @@ module.exports = Extend; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var DistanceBetweenPoints = __webpack_require__(318); -var GetEaseFunction = __webpack_require__(70); +var DistanceBetweenPoints = __webpack_require__(316); +var GetEaseFunction = __webpack_require__(67); var Point = __webpack_require__(4); /** @@ -155605,7 +155834,7 @@ module.exports = GetEasedPoints; /***/ }), -/* 1122 */ +/* 1121 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155643,7 +155872,7 @@ module.exports = GetMidPoint; /***/ }), -/* 1123 */ +/* 1122 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155698,7 +155927,7 @@ module.exports = GetNearestPoint; /***/ }), -/* 1124 */ +/* 1123 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155708,7 +155937,7 @@ module.exports = GetNearestPoint; */ var MATH_CONST = __webpack_require__(15); -var Angle = __webpack_require__(85); +var Angle = __webpack_require__(84); var Point = __webpack_require__(4); /** @@ -155742,7 +155971,7 @@ module.exports = GetNormal; /***/ }), -/* 1125 */ +/* 1124 */ /***/ (function(module, exports) { /** @@ -155789,7 +156018,7 @@ module.exports = GetShortestDistance; /***/ }), -/* 1126 */ +/* 1125 */ /***/ (function(module, exports) { /** @@ -155817,7 +156046,7 @@ module.exports = Height; /***/ }), -/* 1127 */ +/* 1126 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155827,17 +156056,17 @@ module.exports = Height; */ var MATH_CONST = __webpack_require__(15); -var Angle = __webpack_require__(85); +var Angle = __webpack_require__(84); /** - * [description] + * Returns the x component of the normal vector of the given line. * * @function Phaser.Geom.Line.NormalX * @since 3.0.0 * * @param {Phaser.Geom.Line} line - The Line object to get the normal value from. * - * @return {number} [description] + * @return {number} The x component of the normal vector of the line. */ var NormalX = function (line) { @@ -155848,7 +156077,7 @@ module.exports = NormalX; /***/ }), -/* 1128 */ +/* 1127 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155858,7 +156087,7 @@ module.exports = NormalX; */ var MATH_CONST = __webpack_require__(15); -var Angle = __webpack_require__(85); +var Angle = __webpack_require__(84); /** * The Y value of the normal of the given line. @@ -155880,7 +156109,7 @@ module.exports = NormalY; /***/ }), -/* 1129 */ +/* 1128 */ /***/ (function(module, exports) { /** @@ -155918,7 +156147,7 @@ module.exports = Offset; /***/ }), -/* 1130 */ +/* 1129 */ /***/ (function(module, exports) { /** @@ -155946,7 +156175,7 @@ module.exports = PerpSlope; /***/ }), -/* 1131 */ +/* 1130 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155955,8 +156184,8 @@ module.exports = PerpSlope; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Angle = __webpack_require__(85); -var NormalAngle = __webpack_require__(438); +var Angle = __webpack_require__(84); +var NormalAngle = __webpack_require__(436); /** * Calculate the reflected angle between two lines. @@ -155980,7 +156209,7 @@ module.exports = ReflectAngle; /***/ }), -/* 1132 */ +/* 1131 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155989,7 +156218,7 @@ module.exports = ReflectAngle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(210); +var RotateAroundXY = __webpack_require__(207); /** * Rotate a line around its midpoint by the given angle in radians. @@ -156016,7 +156245,7 @@ module.exports = Rotate; /***/ }), -/* 1133 */ +/* 1132 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156025,7 +156254,7 @@ module.exports = Rotate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(210); +var RotateAroundXY = __webpack_require__(207); /** * Rotate a line around a point by the given angle in radians. @@ -156050,7 +156279,7 @@ module.exports = RotateAroundPoint; /***/ }), -/* 1134 */ +/* 1133 */ /***/ (function(module, exports) { /** @@ -156090,7 +156319,7 @@ module.exports = SetToAngle; /***/ }), -/* 1135 */ +/* 1134 */ /***/ (function(module, exports) { /** @@ -156118,7 +156347,7 @@ module.exports = Slope; /***/ }), -/* 1136 */ +/* 1135 */ /***/ (function(module, exports) { /** @@ -156146,7 +156375,7 @@ module.exports = Width; /***/ }), -/* 1137 */ +/* 1136 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156157,27 +156386,27 @@ module.exports = Width; var Point = __webpack_require__(4); -Point.Ceil = __webpack_require__(1138); -Point.Clone = __webpack_require__(1139); -Point.CopyFrom = __webpack_require__(1140); -Point.Equals = __webpack_require__(1141); -Point.Floor = __webpack_require__(1142); -Point.GetCentroid = __webpack_require__(1143); -Point.GetMagnitude = __webpack_require__(439); -Point.GetMagnitudeSq = __webpack_require__(440); -Point.GetRectangleFromPoints = __webpack_require__(1144); -Point.Interpolate = __webpack_require__(1145); -Point.Invert = __webpack_require__(1146); -Point.Negative = __webpack_require__(1147); -Point.Project = __webpack_require__(1148); -Point.ProjectUnit = __webpack_require__(1149); -Point.SetMagnitude = __webpack_require__(1150); +Point.Ceil = __webpack_require__(1137); +Point.Clone = __webpack_require__(1138); +Point.CopyFrom = __webpack_require__(1139); +Point.Equals = __webpack_require__(1140); +Point.Floor = __webpack_require__(1141); +Point.GetCentroid = __webpack_require__(1142); +Point.GetMagnitude = __webpack_require__(437); +Point.GetMagnitudeSq = __webpack_require__(438); +Point.GetRectangleFromPoints = __webpack_require__(1143); +Point.Interpolate = __webpack_require__(1144); +Point.Invert = __webpack_require__(1145); +Point.Negative = __webpack_require__(1146); +Point.Project = __webpack_require__(1147); +Point.ProjectUnit = __webpack_require__(1148); +Point.SetMagnitude = __webpack_require__(1149); module.exports = Point; /***/ }), -/* 1138 */ +/* 1137 */ /***/ (function(module, exports) { /** @@ -156207,7 +156436,7 @@ module.exports = Ceil; /***/ }), -/* 1139 */ +/* 1138 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156237,7 +156466,7 @@ module.exports = Clone; /***/ }), -/* 1140 */ +/* 1139 */ /***/ (function(module, exports) { /** @@ -156268,7 +156497,7 @@ module.exports = CopyFrom; /***/ }), -/* 1141 */ +/* 1140 */ /***/ (function(module, exports) { /** @@ -156297,7 +156526,7 @@ module.exports = Equals; /***/ }), -/* 1142 */ +/* 1141 */ /***/ (function(module, exports) { /** @@ -156327,7 +156556,7 @@ module.exports = Floor; /***/ }), -/* 1143 */ +/* 1142 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156347,10 +156576,10 @@ var Point = __webpack_require__(4); * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Point[]} points - [description] - * @param {Phaser.Geom.Point} [out] - [description] + * @param {Phaser.Types.Math.Vector2Like[]} points - An array of Vector2Like objects to get the geometric center of. + * @param {Phaser.Geom.Point} [out] - A Point object to store the output coordinates in. If not given, a new Point instance is created. * - * @return {Phaser.Geom.Point} [description] + * @return {Phaser.Geom.Point} A Point object representing the geometric center of the given points. */ var GetCentroid = function (points, out) { @@ -156391,7 +156620,7 @@ module.exports = GetCentroid; /***/ }), -/* 1144 */ +/* 1143 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156410,10 +156639,10 @@ var Rectangle = __webpack_require__(12); * * @generic {Phaser.Geom.Rectangle} O - [out,$return] * - * @param {Phaser.Geom.Point[]} points - [description] - * @param {Phaser.Geom.Rectangle} [out] - [description] + * @param {Phaser.Types.Math.Vector2Like[]} points - An array of Vector2Like objects to get the AABB from. + * @param {Phaser.Geom.Rectangle} [out] - A Rectangle object to store the results in. If not given, a new Rectangle instance is created. * - * @return {Phaser.Geom.Rectangle} [description] + * @return {Phaser.Geom.Rectangle} A Rectangle object holding the AABB values for the given points. */ var GetRectangleFromPoints = function (points, out) { @@ -156461,7 +156690,7 @@ module.exports = GetRectangleFromPoints; /***/ }), -/* 1145 */ +/* 1144 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156473,7 +156702,7 @@ module.exports = GetRectangleFromPoints; var Point = __webpack_require__(4); /** - * [description] + * Returns the linear interpolation point between the two given points, based on `t`. * * @function Phaser.Geom.Point.Interpolate * @since 3.0.0 @@ -156502,7 +156731,7 @@ module.exports = Interpolate; /***/ }), -/* 1146 */ +/* 1145 */ /***/ (function(module, exports) { /** @@ -156532,7 +156761,7 @@ module.exports = Invert; /***/ }), -/* 1147 */ +/* 1146 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156567,7 +156796,7 @@ module.exports = Negative; /***/ }), -/* 1148 */ +/* 1147 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156577,21 +156806,22 @@ module.exports = Negative; */ var Point = __webpack_require__(4); -var GetMagnitudeSq = __webpack_require__(440); +var GetMagnitudeSq = __webpack_require__(438); /** - * [description] + * Calculates the vector projection of `pointA` onto the nonzero `pointB`. This is the + * orthogonal projection of `pointA` onto a straight line paralle to `pointB`. * * @function Phaser.Geom.Point.Project * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Point} pointA - [description] - * @param {Phaser.Geom.Point} pointB - [description] - * @param {Phaser.Geom.Point} [out] - [description] + * @param {Phaser.Geom.Point} pointA - Point A, to be projected onto Point B. + * @param {Phaser.Geom.Point} pointB - Point B, to have Point A projected upon it. + * @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created. * - * @return {Phaser.Geom.Point} [description] + * @return {Phaser.Geom.Point} A Point object holding the coordinates of the vector projection of `pointA` onto `pointB`. */ var Project = function (pointA, pointB, out) { @@ -156613,7 +156843,7 @@ module.exports = Project; /***/ }), -/* 1149 */ +/* 1148 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156625,18 +156855,19 @@ module.exports = Project; var Point = __webpack_require__(4); /** - * [description] + * Calculates the vector projection of `pointA` onto the nonzero `pointB`. This is the + * orthogonal projection of `pointA` onto a straight line paralle to `pointB`. * * @function Phaser.Geom.Point.ProjectUnit * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Point} pointA - [description] - * @param {Phaser.Geom.Point} pointB - [description] - * @param {Phaser.Geom.Point} [out] - [description] + * @param {Phaser.Geom.Point} pointA - Point A, to be projected onto Point B. Must be a normalized point with a magnitude of 1. + * @param {Phaser.Geom.Point} pointB - Point B, to have Point A projected upon it. + * @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created. * - * @return {Phaser.Geom.Point} [description] + * @return {Phaser.Geom.Point} A unit Point object holding the coordinates of the vector projection of `pointA` onto `pointB`. */ var ProjectUnit = function (pointA, pointB, out) { @@ -156657,7 +156888,7 @@ module.exports = ProjectUnit; /***/ }), -/* 1150 */ +/* 1149 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156666,7 +156897,7 @@ module.exports = ProjectUnit; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetMagnitude = __webpack_require__(439); +var GetMagnitude = __webpack_require__(437); /** * Changes the magnitude (length) of a two-dimensional vector without changing its direction. @@ -156700,6 +156931,31 @@ var SetMagnitude = function (point, magnitude) module.exports = SetMagnitude; +/***/ }), +/* 1150 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var Polygon = __webpack_require__(197); + +Polygon.Clone = __webpack_require__(1151); +Polygon.Contains = __webpack_require__(198); +Polygon.ContainsPoint = __webpack_require__(1152); +Polygon.GetAABB = __webpack_require__(413); +Polygon.GetNumberArray = __webpack_require__(1153); +Polygon.GetPoints = __webpack_require__(414); +Polygon.Perimeter = __webpack_require__(415); +Polygon.Reverse = __webpack_require__(1154); +Polygon.Smooth = __webpack_require__(416); + +module.exports = Polygon; + + /***/ }), /* 1151 */ /***/ (function(module, exports, __webpack_require__) { @@ -156710,32 +156966,7 @@ module.exports = SetMagnitude; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Polygon = __webpack_require__(200); - -Polygon.Clone = __webpack_require__(1152); -Polygon.Contains = __webpack_require__(201); -Polygon.ContainsPoint = __webpack_require__(1153); -Polygon.GetAABB = __webpack_require__(415); -Polygon.GetNumberArray = __webpack_require__(1154); -Polygon.GetPoints = __webpack_require__(416); -Polygon.Perimeter = __webpack_require__(417); -Polygon.Reverse = __webpack_require__(1155); -Polygon.Smooth = __webpack_require__(418); - -module.exports = Polygon; - - -/***/ }), -/* 1152 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Polygon = __webpack_require__(200); +var Polygon = __webpack_require__(197); /** * Create a new polygon which is a copy of the specified polygon @@ -156756,7 +156987,7 @@ module.exports = Clone; /***/ }), -/* 1153 */ +/* 1152 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156765,18 +156996,18 @@ module.exports = Clone; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(201); +var Contains = __webpack_require__(198); /** - * [description] + * Checks the given Point again the Polygon to see if the Point lays within its vertices. * * @function Phaser.Geom.Polygon.ContainsPoint * @since 3.0.0 * - * @param {Phaser.Geom.Polygon} polygon - [description] - * @param {Phaser.Geom.Point} point - [description] + * @param {Phaser.Geom.Polygon} polygon - The Polygon to check. + * @param {Phaser.Geom.Point} point - The Point to check if it's within the Polygon. * - * @return {boolean} [description] + * @return {boolean} `true` if the Point is within the Polygon, otherwise `false`. */ var ContainsPoint = function (polygon, point) { @@ -156787,7 +157018,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1154 */ +/* 1153 */ /***/ (function(module, exports) { /** @@ -156830,7 +157061,7 @@ module.exports = GetNumberArray; /***/ }), -/* 1155 */ +/* 1154 */ /***/ (function(module, exports) { /** @@ -156862,7 +157093,7 @@ module.exports = Reverse; /***/ }), -/* 1156 */ +/* 1155 */ /***/ (function(module, exports) { /** @@ -156890,7 +157121,7 @@ module.exports = Area; /***/ }), -/* 1157 */ +/* 1156 */ /***/ (function(module, exports) { /** @@ -156923,7 +157154,7 @@ module.exports = Ceil; /***/ }), -/* 1158 */ +/* 1157 */ /***/ (function(module, exports) { /** @@ -156958,7 +157189,7 @@ module.exports = CeilAll; /***/ }), -/* 1159 */ +/* 1158 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156988,7 +157219,7 @@ module.exports = Clone; /***/ }), -/* 1160 */ +/* 1159 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157019,7 +157250,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1161 */ +/* 1160 */ /***/ (function(module, exports) { /** @@ -157050,7 +157281,7 @@ module.exports = CopyFrom; /***/ }), -/* 1162 */ +/* 1161 */ /***/ (function(module, exports) { /** @@ -157084,7 +157315,7 @@ module.exports = Equals; /***/ }), -/* 1163 */ +/* 1162 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157093,7 +157324,7 @@ module.exports = Equals; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetAspectRatio = __webpack_require__(211); +var GetAspectRatio = __webpack_require__(208); /** * Adjusts the target rectangle, changing its width, height and position, @@ -157137,7 +157368,7 @@ module.exports = FitInside; /***/ }), -/* 1164 */ +/* 1163 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157146,7 +157377,7 @@ module.exports = FitInside; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetAspectRatio = __webpack_require__(211); +var GetAspectRatio = __webpack_require__(208); /** * Adjusts the target rectangle, changing its width, height and position, @@ -157190,7 +157421,7 @@ module.exports = FitOutside; /***/ }), -/* 1165 */ +/* 1164 */ /***/ (function(module, exports) { /** @@ -157223,7 +157454,7 @@ module.exports = Floor; /***/ }), -/* 1166 */ +/* 1165 */ /***/ (function(module, exports) { /** @@ -157258,7 +157489,7 @@ module.exports = FloorAll; /***/ }), -/* 1167 */ +/* 1166 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157296,7 +157527,7 @@ module.exports = GetCenter; /***/ }), -/* 1168 */ +/* 1167 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157309,18 +157540,18 @@ var Point = __webpack_require__(4); /** - * The size of the Rectangle object, expressed as a Point object - * with the values of the width and height properties. + * Returns the size of the Rectangle, expressed as a Point object. + * With the value of the `width` as the `x` property and the `height` as the `y` property. * * @function Phaser.Geom.Rectangle.GetSize * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Rectangle} rect - [description] - * @param {(Phaser.Geom.Point|object)} [out] - [description] + * @param {Phaser.Geom.Rectangle} rect - The Rectangle to get the size from. + * @param {(Phaser.Geom.Point|object)} [out] - The Point object to store the size in. If not given, a new Point instance is created. * - * @return {(Phaser.Geom.Point|object)} [description] + * @return {(Phaser.Geom.Point|object)} A Point object where `x` holds the width and `y` holds the height of the Rectangle. */ var GetSize = function (rect, out) { @@ -157336,7 +157567,7 @@ module.exports = GetSize; /***/ }), -/* 1169 */ +/* 1168 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157345,7 +157576,7 @@ module.exports = GetSize; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CenterOn = __webpack_require__(166); +var CenterOn = __webpack_require__(163); /** @@ -157378,7 +157609,7 @@ module.exports = Inflate; /***/ }), -/* 1170 */ +/* 1169 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157388,7 +157619,7 @@ module.exports = Inflate; */ var Rectangle = __webpack_require__(12); -var Intersects = __webpack_require__(131); +var Intersects = __webpack_require__(130); /** * Takes two Rectangles and first checks to see if they intersect. @@ -157429,7 +157660,7 @@ module.exports = Intersection; /***/ }), -/* 1171 */ +/* 1170 */ /***/ (function(module, exports) { /** @@ -157478,7 +157709,7 @@ module.exports = MergePoints; /***/ }), -/* 1172 */ +/* 1171 */ /***/ (function(module, exports) { /** @@ -157525,7 +157756,7 @@ module.exports = MergeRect; /***/ }), -/* 1173 */ +/* 1172 */ /***/ (function(module, exports) { /** @@ -157569,7 +157800,7 @@ module.exports = MergeXY; /***/ }), -/* 1174 */ +/* 1173 */ /***/ (function(module, exports) { /** @@ -157604,7 +157835,7 @@ module.exports = Offset; /***/ }), -/* 1175 */ +/* 1174 */ /***/ (function(module, exports) { /** @@ -157638,7 +157869,7 @@ module.exports = OffsetPoint; /***/ }), -/* 1176 */ +/* 1175 */ /***/ (function(module, exports) { /** @@ -157672,7 +157903,7 @@ module.exports = Overlaps; /***/ }), -/* 1177 */ +/* 1176 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157685,18 +157916,18 @@ var Point = __webpack_require__(4); var DegToRad = __webpack_require__(35); /** - * [description] + * Returns a Point from the perimeter of a Rectangle based on the given angle. * * @function Phaser.Geom.Rectangle.PerimeterPoint * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Rectangle} rectangle - [description] - * @param {integer} angle - [description] - * @param {Phaser.Geom.Point} [out] - [description] + * @param {Phaser.Geom.Rectangle} rectangle - The Rectangle to get the perimeter point from. + * @param {integer} angle - The angle of the point, in degrees. + * @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created. * - * @return {Phaser.Geom.Point} [description] + * @return {Phaser.Geom.Point} A Point object holding the coordinates of the Rectangle perimeter. */ var PerimeterPoint = function (rectangle, angle, out) { @@ -157729,7 +157960,7 @@ module.exports = PerimeterPoint; /***/ }), -/* 1178 */ +/* 1177 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157738,8 +157969,8 @@ module.exports = PerimeterPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Between = __webpack_require__(171); -var ContainsRect = __webpack_require__(442); +var Between = __webpack_require__(168); +var ContainsRect = __webpack_require__(440); var Point = __webpack_require__(4); /** @@ -157800,7 +158031,7 @@ module.exports = RandomOutside; /***/ }), -/* 1179 */ +/* 1178 */ /***/ (function(module, exports) { /** @@ -157829,7 +158060,7 @@ module.exports = SameDimensions; /***/ }), -/* 1180 */ +/* 1179 */ /***/ (function(module, exports) { /** @@ -157868,7 +158099,7 @@ module.exports = Scale; /***/ }), -/* 1181 */ +/* 1180 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157877,38 +158108,38 @@ module.exports = Scale; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Triangle = __webpack_require__(72); +var Triangle = __webpack_require__(69); -Triangle.Area = __webpack_require__(1182); -Triangle.BuildEquilateral = __webpack_require__(1183); -Triangle.BuildFromPolygon = __webpack_require__(1184); -Triangle.BuildRight = __webpack_require__(1185); -Triangle.CenterOn = __webpack_require__(1186); -Triangle.Centroid = __webpack_require__(443); -Triangle.CircumCenter = __webpack_require__(1187); -Triangle.CircumCircle = __webpack_require__(1188); -Triangle.Clone = __webpack_require__(1189); -Triangle.Contains = __webpack_require__(83); -Triangle.ContainsArray = __webpack_require__(209); -Triangle.ContainsPoint = __webpack_require__(1190); -Triangle.CopyFrom = __webpack_require__(1191); -Triangle.Decompose = __webpack_require__(436); -Triangle.Equals = __webpack_require__(1192); -Triangle.GetPoint = __webpack_require__(422); -Triangle.GetPoints = __webpack_require__(423); -Triangle.InCenter = __webpack_require__(445); -Triangle.Perimeter = __webpack_require__(1193); -Triangle.Offset = __webpack_require__(444); -Triangle.Random = __webpack_require__(156); -Triangle.Rotate = __webpack_require__(1194); -Triangle.RotateAroundPoint = __webpack_require__(1195); -Triangle.RotateAroundXY = __webpack_require__(212); +Triangle.Area = __webpack_require__(1181); +Triangle.BuildEquilateral = __webpack_require__(1182); +Triangle.BuildFromPolygon = __webpack_require__(1183); +Triangle.BuildRight = __webpack_require__(1184); +Triangle.CenterOn = __webpack_require__(1185); +Triangle.Centroid = __webpack_require__(441); +Triangle.CircumCenter = __webpack_require__(1186); +Triangle.CircumCircle = __webpack_require__(1187); +Triangle.Clone = __webpack_require__(1188); +Triangle.Contains = __webpack_require__(82); +Triangle.ContainsArray = __webpack_require__(206); +Triangle.ContainsPoint = __webpack_require__(1189); +Triangle.CopyFrom = __webpack_require__(1190); +Triangle.Decompose = __webpack_require__(434); +Triangle.Equals = __webpack_require__(1191); +Triangle.GetPoint = __webpack_require__(420); +Triangle.GetPoints = __webpack_require__(421); +Triangle.InCenter = __webpack_require__(443); +Triangle.Perimeter = __webpack_require__(1192); +Triangle.Offset = __webpack_require__(442); +Triangle.Random = __webpack_require__(153); +Triangle.Rotate = __webpack_require__(1193); +Triangle.RotateAroundPoint = __webpack_require__(1194); +Triangle.RotateAroundXY = __webpack_require__(209); module.exports = Triangle; /***/ }), -/* 1182 */ +/* 1181 */ /***/ (function(module, exports) { /** @@ -157947,7 +158178,7 @@ module.exports = Area; /***/ }), -/* 1183 */ +/* 1182 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157956,7 +158187,7 @@ module.exports = Area; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Triangle = __webpack_require__(72); +var Triangle = __webpack_require__(69); /** * Builds an equilateral triangle. In the equilateral triangle, all the sides are the same length (congruent) and all the angles are the same size (congruent). @@ -157991,7 +158222,7 @@ module.exports = BuildEquilateral; /***/ }), -/* 1184 */ +/* 1183 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158000,11 +158231,12 @@ module.exports = BuildEquilateral; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var EarCut = __webpack_require__(66); -var Triangle = __webpack_require__(72); +var EarCut = __webpack_require__(64); +var Triangle = __webpack_require__(69); /** - * [description] + * Takes an array of vertex coordinates, and optionally an array of hole indices, then returns an array + * of Triangle instances, where the given vertices have been decomposed into a series of triangles. * * @function Phaser.Geom.Triangle.BuildFromPolygon * @since 3.0.0 @@ -158013,11 +158245,11 @@ var Triangle = __webpack_require__(72); * * @param {array} data - A flat array of vertex coordinates like [x0,y0, x1,y1, x2,y2, ...] * @param {array} [holes=null] - An array of hole indices if any (e.g. [5, 8] for a 12-vertex input would mean one hole with vertices 5–7 and another with 8–11). - * @param {number} [scaleX=1] - [description] - * @param {number} [scaleY=1] - [description] - * @param {(array|Phaser.Geom.Triangle[])} [out] - [description] + * @param {number} [scaleX=1] - Horizontal scale factor to multiply the resulting points by. + * @param {number} [scaleY=1] - Vertical scale factor to multiply the resulting points by. + * @param {(array|Phaser.Geom.Triangle[])} [out] - An array to store the resulting Triangle instances in. If not provided, a new array is created. * - * @return {(array|Phaser.Geom.Triangle[])} [description] + * @return {(array|Phaser.Geom.Triangle[])} An array of Triangle instances, where each triangle is based on the decomposed vertices data. */ var BuildFromPolygon = function (data, holes, scaleX, scaleY, out) { @@ -158066,7 +158298,7 @@ module.exports = BuildFromPolygon; /***/ }), -/* 1185 */ +/* 1184 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158075,7 +158307,7 @@ module.exports = BuildFromPolygon; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Triangle = __webpack_require__(72); +var Triangle = __webpack_require__(69); // Builds a right triangle, with one 90 degree angle and two acute angles // The x/y is the coordinate of the 90 degree angle (and will map to x1/y1 in the resulting Triangle) @@ -158115,7 +158347,7 @@ module.exports = BuildRight; /***/ }), -/* 1186 */ +/* 1185 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158124,8 +158356,8 @@ module.exports = BuildRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Centroid = __webpack_require__(443); -var Offset = __webpack_require__(444); +var Centroid = __webpack_require__(441); +var Offset = __webpack_require__(442); /** * @callback CenterFunction @@ -158168,7 +158400,7 @@ module.exports = CenterOn; /***/ }), -/* 1187 */ +/* 1186 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158212,10 +158444,10 @@ function det (m00, m01, m10, m11) * * @generic {Phaser.Math.Vector2} O - [out,$return] * - * @param {Phaser.Geom.Triangle} triangle - [description] - * @param {Phaser.Math.Vector2} [out] - [description] + * @param {Phaser.Geom.Triangle} triangle - The Triangle to get the circumcenter of. + * @param {Phaser.Math.Vector2} [out] - The Vector2 object to store the position in. If not given, a new Vector2 instance is created. * - * @return {Phaser.Math.Vector2} [description] + * @return {Phaser.Math.Vector2} A Vector2 object holding the coordinates of the circumcenter of the Triangle. */ var CircumCenter = function (triangle, out) { @@ -158244,7 +158476,7 @@ module.exports = CircumCenter; /***/ }), -/* 1188 */ +/* 1187 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158253,7 +158485,7 @@ module.exports = CircumCenter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circle = __webpack_require__(65); +var Circle = __webpack_require__(63); // Adapted from https://gist.github.com/mutoo/5617691 @@ -158327,7 +158559,7 @@ module.exports = CircumCircle; /***/ }), -/* 1189 */ +/* 1188 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158336,7 +158568,7 @@ module.exports = CircumCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Triangle = __webpack_require__(72); +var Triangle = __webpack_require__(69); /** * Clones a Triangle object. @@ -158357,7 +158589,7 @@ module.exports = Clone; /***/ }), -/* 1190 */ +/* 1189 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158366,7 +158598,7 @@ module.exports = Clone; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(83); +var Contains = __webpack_require__(82); /** * Tests if a triangle contains a point. @@ -158388,7 +158620,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1191 */ +/* 1190 */ /***/ (function(module, exports) { /** @@ -158419,7 +158651,7 @@ module.exports = CopyFrom; /***/ }), -/* 1192 */ +/* 1191 */ /***/ (function(module, exports) { /** @@ -158455,7 +158687,7 @@ module.exports = Equals; /***/ }), -/* 1193 */ +/* 1192 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158466,17 +158698,16 @@ module.exports = Equals; var Length = __webpack_require__(57); -// The 2D area of a triangle. The area value is always non-negative. - /** * Gets the length of the perimeter of the given triangle. + * Calculated by adding together the length of each of the three sides. * * @function Phaser.Geom.Triangle.Perimeter * @since 3.0.0 * - * @param {Phaser.Geom.Triangle} triangle - [description] + * @param {Phaser.Geom.Triangle} triangle - The Triangle to get the length from. * - * @return {number} [description] + * @return {number} The length of the Triangle. */ var Perimeter = function (triangle) { @@ -158491,7 +158722,7 @@ module.exports = Perimeter; /***/ }), -/* 1194 */ +/* 1193 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158500,8 +158731,8 @@ module.exports = Perimeter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(212); -var InCenter = __webpack_require__(445); +var RotateAroundXY = __webpack_require__(209); +var InCenter = __webpack_require__(443); /** * Rotates a Triangle about its incenter, which is the point at which its three angle bisectors meet. @@ -158527,7 +158758,7 @@ module.exports = Rotate; /***/ }), -/* 1195 */ +/* 1194 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158536,7 +158767,7 @@ module.exports = Rotate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(212); +var RotateAroundXY = __webpack_require__(209); /** * Rotates a Triangle at a certain angle about a given Point or object with public `x` and `y` properties. @@ -158561,7 +158792,7 @@ module.exports = RotateAroundPoint; /***/ }), -/* 1196 */ +/* 1195 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158570,7 +158801,7 @@ module.exports = RotateAroundPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(178); +var CONST = __webpack_require__(175); var Extend = __webpack_require__(17); /** @@ -158579,16 +158810,16 @@ var Extend = __webpack_require__(17); var Input = { - CreateInteractiveObject: __webpack_require__(446), + CreateInteractiveObject: __webpack_require__(444), Events: __webpack_require__(54), - Gamepad: __webpack_require__(1197), - InputManager: __webpack_require__(364), - InputPlugin: __webpack_require__(1209), - InputPluginCache: __webpack_require__(132), - Keyboard: __webpack_require__(1211), - Mouse: __webpack_require__(1228), - Pointer: __webpack_require__(367), - Touch: __webpack_require__(1229) + Gamepad: __webpack_require__(1196), + InputManager: __webpack_require__(362), + InputPlugin: __webpack_require__(1208), + InputPluginCache: __webpack_require__(131), + Keyboard: __webpack_require__(1210), + Mouse: __webpack_require__(1227), + Pointer: __webpack_require__(365), + Touch: __webpack_require__(1228) }; @@ -158599,7 +158830,7 @@ module.exports = Input; /***/ }), -/* 1197 */ +/* 1196 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158614,18 +158845,18 @@ module.exports = Input; module.exports = { - Axis: __webpack_require__(447), - Button: __webpack_require__(448), - Events: __webpack_require__(213), - Gamepad: __webpack_require__(449), - GamepadPlugin: __webpack_require__(1204), + Axis: __webpack_require__(445), + Button: __webpack_require__(446), + Events: __webpack_require__(210), + Gamepad: __webpack_require__(447), + GamepadPlugin: __webpack_require__(1203), - Configs: __webpack_require__(1205) + Configs: __webpack_require__(1204) }; /***/ }), -/* 1198 */ +/* 1197 */ /***/ (function(module, exports) { /** @@ -158654,7 +158885,7 @@ module.exports = 'down'; /***/ }), -/* 1199 */ +/* 1198 */ /***/ (function(module, exports) { /** @@ -158683,7 +158914,7 @@ module.exports = 'up'; /***/ }), -/* 1200 */ +/* 1199 */ /***/ (function(module, exports) { /** @@ -158714,7 +158945,7 @@ module.exports = 'connected'; /***/ }), -/* 1201 */ +/* 1200 */ /***/ (function(module, exports) { /** @@ -158740,7 +158971,7 @@ module.exports = 'disconnected'; /***/ }), -/* 1202 */ +/* 1201 */ /***/ (function(module, exports) { /** @@ -158772,7 +159003,7 @@ module.exports = 'down'; /***/ }), -/* 1203 */ +/* 1202 */ /***/ (function(module, exports) { /** @@ -158804,7 +159035,7 @@ module.exports = 'up'; /***/ }), -/* 1204 */ +/* 1203 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158814,11 +159045,11 @@ module.exports = 'up'; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(213); -var Gamepad = __webpack_require__(449); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(210); +var Gamepad = __webpack_require__(447); var GetValue = __webpack_require__(6); -var InputPluginCache = __webpack_require__(132); +var InputPluginCache = __webpack_require__(131); var InputEvents = __webpack_require__(54); /** @@ -159442,7 +159673,7 @@ module.exports = GamepadPlugin; /***/ }), -/* 1205 */ +/* 1204 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159457,15 +159688,15 @@ module.exports = GamepadPlugin; module.exports = { - DUALSHOCK_4: __webpack_require__(1206), - SNES_USB: __webpack_require__(1207), - XBOX_360: __webpack_require__(1208) + DUALSHOCK_4: __webpack_require__(1205), + SNES_USB: __webpack_require__(1206), + XBOX_360: __webpack_require__(1207) }; /***/ }), -/* 1206 */ +/* 1205 */ /***/ (function(module, exports) { /** @@ -159515,7 +159746,7 @@ module.exports = { /***/ }), -/* 1207 */ +/* 1206 */ /***/ (function(module, exports) { /** @@ -159554,7 +159785,7 @@ module.exports = { /***/ }), -/* 1208 */ +/* 1207 */ /***/ (function(module, exports) { /** @@ -159605,7 +159836,7 @@ module.exports = { /***/ }), -/* 1209 */ +/* 1208 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159614,27 +159845,27 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circle = __webpack_require__(65); +var Circle = __webpack_require__(63); var CircleContains = __webpack_require__(55); var Class = __webpack_require__(0); -var CONST = __webpack_require__(178); -var CreateInteractiveObject = __webpack_require__(446); -var CreatePixelPerfectHandler = __webpack_require__(1210); +var CONST = __webpack_require__(175); +var CreateInteractiveObject = __webpack_require__(444); +var CreatePixelPerfectHandler = __webpack_require__(1209); var DistanceBetween = __webpack_require__(53); -var Ellipse = __webpack_require__(95); -var EllipseContains = __webpack_require__(96); +var Ellipse = __webpack_require__(94); +var EllipseContains = __webpack_require__(95); var Events = __webpack_require__(54); -var EventEmitter = __webpack_require__(9); +var EventEmitter = __webpack_require__(10); var GetFastValue = __webpack_require__(2); var GEOM_CONST = __webpack_require__(46); -var InputPluginCache = __webpack_require__(132); +var InputPluginCache = __webpack_require__(131); var IsPlainObject = __webpack_require__(7); var PluginCache = __webpack_require__(23); var Rectangle = __webpack_require__(12); var RectangleContains = __webpack_require__(47); -var SceneEvents = __webpack_require__(19); -var Triangle = __webpack_require__(72); -var TriangleContains = __webpack_require__(83); +var SceneEvents = __webpack_require__(21); +var Triangle = __webpack_require__(69); +var TriangleContains = __webpack_require__(82); /** * @classdesc @@ -162757,7 +162988,7 @@ module.exports = InputPlugin; /***/ }), -/* 1210 */ +/* 1209 */ /***/ (function(module, exports) { /** @@ -162793,7 +163024,7 @@ module.exports = CreatePixelPerfectHandler; /***/ }), -/* 1211 */ +/* 1210 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162808,26 +163039,26 @@ module.exports = CreatePixelPerfectHandler; module.exports = { - Events: __webpack_require__(133), + Events: __webpack_require__(132), - KeyboardManager: __webpack_require__(365), - KeyboardPlugin: __webpack_require__(1219), + KeyboardManager: __webpack_require__(363), + KeyboardPlugin: __webpack_require__(1218), - Key: __webpack_require__(450), - KeyCodes: __webpack_require__(122), + Key: __webpack_require__(448), + KeyCodes: __webpack_require__(119), - KeyCombo: __webpack_require__(451), + KeyCombo: __webpack_require__(449), - JustDown: __webpack_require__(1224), - JustUp: __webpack_require__(1225), - DownDuration: __webpack_require__(1226), - UpDuration: __webpack_require__(1227) + JustDown: __webpack_require__(1223), + JustUp: __webpack_require__(1224), + DownDuration: __webpack_require__(1225), + UpDuration: __webpack_require__(1226) }; /***/ }), -/* 1212 */ +/* 1211 */ /***/ (function(module, exports) { /** @@ -162863,7 +163094,7 @@ module.exports = 'keydown'; /***/ }), -/* 1213 */ +/* 1212 */ /***/ (function(module, exports) { /** @@ -162892,7 +163123,7 @@ module.exports = 'keyup'; /***/ }), -/* 1214 */ +/* 1213 */ /***/ (function(module, exports) { /** @@ -162926,7 +163157,7 @@ module.exports = 'keycombomatch'; /***/ }), -/* 1215 */ +/* 1214 */ /***/ (function(module, exports) { /** @@ -162960,7 +163191,7 @@ module.exports = 'down'; /***/ }), -/* 1216 */ +/* 1215 */ /***/ (function(module, exports) { /** @@ -162999,7 +163230,7 @@ module.exports = 'keydown-'; /***/ }), -/* 1217 */ +/* 1216 */ /***/ (function(module, exports) { /** @@ -163031,7 +163262,7 @@ module.exports = 'keyup-'; /***/ }), -/* 1218 */ +/* 1217 */ /***/ (function(module, exports) { /** @@ -163065,7 +163296,7 @@ module.exports = 'up'; /***/ }), -/* 1219 */ +/* 1218 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163075,17 +163306,17 @@ module.exports = 'up'; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(133); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(132); var GameEvents = __webpack_require__(18); var GetValue = __webpack_require__(6); var InputEvents = __webpack_require__(54); -var InputPluginCache = __webpack_require__(132); -var Key = __webpack_require__(450); -var KeyCodes = __webpack_require__(122); -var KeyCombo = __webpack_require__(451); -var KeyMap = __webpack_require__(1223); -var SnapFloor = __webpack_require__(93); +var InputPluginCache = __webpack_require__(131); +var Key = __webpack_require__(448); +var KeyCodes = __webpack_require__(119); +var KeyCombo = __webpack_require__(449); +var KeyMap = __webpack_require__(1222); +var SnapFloor = __webpack_require__(92); /** * @classdesc @@ -163951,7 +164182,7 @@ module.exports = KeyboardPlugin; /***/ }), -/* 1220 */ +/* 1219 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163960,7 +164191,7 @@ module.exports = KeyboardPlugin; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AdvanceKeyCombo = __webpack_require__(1221); +var AdvanceKeyCombo = __webpack_require__(1220); /** * Used internally by the KeyCombo class. @@ -164032,7 +164263,7 @@ module.exports = ProcessKeyCombo; /***/ }), -/* 1221 */ +/* 1220 */ /***/ (function(module, exports) { /** @@ -164074,7 +164305,7 @@ module.exports = AdvanceKeyCombo; /***/ }), -/* 1222 */ +/* 1221 */ /***/ (function(module, exports) { /** @@ -164109,7 +164340,7 @@ module.exports = ResetKeyCombo; /***/ }), -/* 1223 */ +/* 1222 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164118,7 +164349,7 @@ module.exports = ResetKeyCombo; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var KeyCodes = __webpack_require__(122); +var KeyCodes = __webpack_require__(119); var KeyMap = {}; @@ -164131,7 +164362,7 @@ module.exports = KeyMap; /***/ }), -/* 1224 */ +/* 1223 */ /***/ (function(module, exports) { /** @@ -164173,7 +164404,7 @@ module.exports = JustDown; /***/ }), -/* 1225 */ +/* 1224 */ /***/ (function(module, exports) { /** @@ -164215,7 +164446,7 @@ module.exports = JustUp; /***/ }), -/* 1226 */ +/* 1225 */ /***/ (function(module, exports) { /** @@ -164249,7 +164480,7 @@ module.exports = DownDuration; /***/ }), -/* 1227 */ +/* 1226 */ /***/ (function(module, exports) { /** @@ -164283,7 +164514,7 @@ module.exports = UpDuration; /***/ }), -/* 1228 */ +/* 1227 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164299,14 +164530,14 @@ module.exports = UpDuration; /* eslint-disable */ module.exports = { - MouseManager: __webpack_require__(366) + MouseManager: __webpack_require__(364) }; /* eslint-enable */ /***/ }), -/* 1229 */ +/* 1228 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164322,14 +164553,14 @@ module.exports = { /* eslint-disable */ module.exports = { - TouchManager: __webpack_require__(368) + TouchManager: __webpack_require__(366) }; /* eslint-enable */ /***/ }), -/* 1230 */ +/* 1229 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164338,7 +164569,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(20); +var CONST = __webpack_require__(19); var Extend = __webpack_require__(17); /** @@ -164347,18 +164578,18 @@ var Extend = __webpack_require__(17); var Loader = { - Events: __webpack_require__(82), + Events: __webpack_require__(81), - FileTypes: __webpack_require__(1231), + FileTypes: __webpack_require__(1230), - File: __webpack_require__(21), + File: __webpack_require__(20), FileTypesManager: __webpack_require__(8), - GetURL: __webpack_require__(134), - LoaderPlugin: __webpack_require__(1255), - MergeXHRSettings: __webpack_require__(214), + GetURL: __webpack_require__(133), + LoaderPlugin: __webpack_require__(1254), + MergeXHRSettings: __webpack_require__(211), MultiFile: __webpack_require__(61), - XHRLoader: __webpack_require__(452), - XHRSettings: __webpack_require__(135) + XHRLoader: __webpack_require__(450), + XHRSettings: __webpack_require__(134) }; @@ -164369,7 +164600,7 @@ module.exports = Loader; /***/ }), -/* 1231 */ +/* 1230 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164384,42 +164615,42 @@ module.exports = Loader; module.exports = { - AnimationJSONFile: __webpack_require__(1232), - AtlasJSONFile: __webpack_require__(1233), - AtlasXMLFile: __webpack_require__(1234), - AudioFile: __webpack_require__(453), - AudioSpriteFile: __webpack_require__(1235), - BinaryFile: __webpack_require__(1236), - BitmapFontFile: __webpack_require__(1237), - CSSFile: __webpack_require__(1238), - GLSLFile: __webpack_require__(1239), - HTML5AudioFile: __webpack_require__(454), - HTMLFile: __webpack_require__(1240), - HTMLTextureFile: __webpack_require__(1241), - ImageFile: __webpack_require__(73), + AnimationJSONFile: __webpack_require__(1231), + AtlasJSONFile: __webpack_require__(1232), + AtlasXMLFile: __webpack_require__(1233), + AudioFile: __webpack_require__(451), + AudioSpriteFile: __webpack_require__(1234), + BinaryFile: __webpack_require__(1235), + BitmapFontFile: __webpack_require__(1236), + CSSFile: __webpack_require__(1237), + GLSLFile: __webpack_require__(1238), + HTML5AudioFile: __webpack_require__(452), + HTMLFile: __webpack_require__(1239), + HTMLTextureFile: __webpack_require__(1240), + ImageFile: __webpack_require__(70), JSONFile: __webpack_require__(60), - MultiAtlasFile: __webpack_require__(1242), - MultiScriptFile: __webpack_require__(1243), - PackFile: __webpack_require__(1244), - PluginFile: __webpack_require__(1245), - SceneFile: __webpack_require__(1246), - ScenePluginFile: __webpack_require__(1247), - ScriptFile: __webpack_require__(455), - SpriteSheetFile: __webpack_require__(1248), - SVGFile: __webpack_require__(1249), - TextFile: __webpack_require__(456), - TilemapCSVFile: __webpack_require__(1250), - TilemapImpactFile: __webpack_require__(1251), - TilemapJSONFile: __webpack_require__(1252), - UnityAtlasFile: __webpack_require__(1253), - VideoFile: __webpack_require__(1254), - XMLFile: __webpack_require__(215) + MultiAtlasFile: __webpack_require__(1241), + MultiScriptFile: __webpack_require__(1242), + PackFile: __webpack_require__(1243), + PluginFile: __webpack_require__(1244), + SceneFile: __webpack_require__(1245), + ScenePluginFile: __webpack_require__(1246), + ScriptFile: __webpack_require__(453), + SpriteSheetFile: __webpack_require__(1247), + SVGFile: __webpack_require__(1248), + TextFile: __webpack_require__(454), + TilemapCSVFile: __webpack_require__(1249), + TilemapImpactFile: __webpack_require__(1250), + TilemapJSONFile: __webpack_require__(1251), + UnityAtlasFile: __webpack_require__(1252), + VideoFile: __webpack_require__(1253), + XMLFile: __webpack_require__(212) }; /***/ }), -/* 1232 */ +/* 1231 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164431,7 +164662,7 @@ module.exports = { var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var JSONFile = __webpack_require__(60); -var LoaderEvents = __webpack_require__(82); +var LoaderEvents = __webpack_require__(81); /** * @classdesc @@ -164622,7 +164853,7 @@ module.exports = AnimationJSONFile; /***/ }), -/* 1233 */ +/* 1232 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164634,7 +164865,7 @@ module.exports = AnimationJSONFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var ImageFile = __webpack_require__(73); +var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var JSONFile = __webpack_require__(60); var MultiFile = __webpack_require__(61); @@ -164871,7 +165102,7 @@ module.exports = AtlasJSONFile; /***/ }), -/* 1234 */ +/* 1233 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164883,10 +165114,10 @@ module.exports = AtlasJSONFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var ImageFile = __webpack_require__(73); +var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var XMLFile = __webpack_require__(215); +var XMLFile = __webpack_require__(212); /** * @classdesc @@ -165114,7 +165345,7 @@ module.exports = AtlasXMLFile; /***/ }), -/* 1235 */ +/* 1234 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -165123,7 +165354,7 @@ module.exports = AtlasXMLFile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AudioFile = __webpack_require__(453); +var AudioFile = __webpack_require__(451); var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); @@ -165404,7 +165635,7 @@ FileTypesManager.register('audioSprite', function (key, jsonURL, audioURL, audio /***/ }), -/* 1236 */ +/* 1235 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -165414,8 +165645,8 @@ FileTypesManager.register('audioSprite', function (key, jsonURL, audioURL, audio */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -165586,7 +165817,7 @@ module.exports = BinaryFile; /***/ }), -/* 1237 */ +/* 1236 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -165598,11 +165829,11 @@ module.exports = BinaryFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var ImageFile = __webpack_require__(73); +var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var ParseXMLBitmapFont = __webpack_require__(186); -var XMLFile = __webpack_require__(215); +var ParseXMLBitmapFont = __webpack_require__(183); +var XMLFile = __webpack_require__(212); /** * @classdesc @@ -165829,7 +166060,7 @@ module.exports = BitmapFontFile; /***/ }), -/* 1238 */ +/* 1237 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -165839,8 +166070,8 @@ module.exports = BitmapFontFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -165997,7 +166228,7 @@ module.exports = CSSFile; /***/ }), -/* 1239 */ +/* 1238 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -166007,12 +166238,12 @@ module.exports = CSSFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); -var Shader = __webpack_require__(352); +var Shader = __webpack_require__(350); /** * @classdesc @@ -166408,7 +166639,7 @@ module.exports = GLSLFile; /***/ }), -/* 1240 */ +/* 1239 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -166418,8 +166649,8 @@ module.exports = GLSLFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -166583,7 +166814,7 @@ module.exports = HTMLFile; /***/ }), -/* 1241 */ +/* 1240 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -166593,8 +166824,8 @@ module.exports = HTMLFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -166841,7 +167072,7 @@ module.exports = HTMLTextureFile; /***/ }), -/* 1242 */ +/* 1241 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -166853,7 +167084,7 @@ module.exports = HTMLTextureFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var ImageFile = __webpack_require__(73); +var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var JSONFile = __webpack_require__(60); var MultiFile = __webpack_require__(61); @@ -167174,7 +167405,7 @@ module.exports = MultiAtlasFile; /***/ }), -/* 1243 */ +/* 1242 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -167188,7 +167419,7 @@ var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var ScriptFile = __webpack_require__(455); +var ScriptFile = __webpack_require__(453); /** * @classdesc @@ -167391,7 +167622,7 @@ module.exports = MultiScriptFile; /***/ }), -/* 1244 */ +/* 1243 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -167401,7 +167632,7 @@ module.exports = MultiScriptFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); +var CONST = __webpack_require__(19); var FileTypesManager = __webpack_require__(8); var JSONFile = __webpack_require__(60); @@ -167609,7 +167840,7 @@ module.exports = PackFile; /***/ }), -/* 1245 */ +/* 1244 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -167619,8 +167850,8 @@ module.exports = PackFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -167821,7 +168052,7 @@ module.exports = PluginFile; /***/ }), -/* 1246 */ +/* 1245 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -167831,8 +168062,8 @@ module.exports = PluginFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -168042,7 +168273,7 @@ module.exports = SceneFile; /***/ }), -/* 1247 */ +/* 1246 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168052,8 +168283,8 @@ module.exports = SceneFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -168248,7 +168479,7 @@ module.exports = ScenePluginFile; /***/ }), -/* 1248 */ +/* 1247 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168259,7 +168490,7 @@ module.exports = ScenePluginFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); -var ImageFile = __webpack_require__(73); +var ImageFile = __webpack_require__(70); /** * @classdesc @@ -168439,7 +168670,7 @@ module.exports = SpriteSheetFile; /***/ }), -/* 1249 */ +/* 1248 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168449,8 +168680,8 @@ module.exports = SpriteSheetFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -168778,7 +169009,7 @@ module.exports = SVGFile; /***/ }), -/* 1250 */ +/* 1249 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168788,12 +169019,12 @@ module.exports = SVGFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); -var TILEMAP_FORMATS = __webpack_require__(32); +var TILEMAP_FORMATS = __webpack_require__(33); /** * @classdesc @@ -168973,7 +169204,7 @@ module.exports = TilemapCSVFile; /***/ }), -/* 1251 */ +/* 1250 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168985,7 +169216,7 @@ module.exports = TilemapCSVFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var JSONFile = __webpack_require__(60); -var TILEMAP_FORMATS = __webpack_require__(32); +var TILEMAP_FORMATS = __webpack_require__(33); /** * @classdesc @@ -169129,7 +169360,7 @@ module.exports = TilemapImpactFile; /***/ }), -/* 1252 */ +/* 1251 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169141,7 +169372,7 @@ module.exports = TilemapImpactFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var JSONFile = __webpack_require__(60); -var TILEMAP_FORMATS = __webpack_require__(32); +var TILEMAP_FORMATS = __webpack_require__(33); /** * @classdesc @@ -169285,7 +169516,7 @@ module.exports = TilemapJSONFile; /***/ }), -/* 1253 */ +/* 1252 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169297,10 +169528,10 @@ module.exports = TilemapJSONFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var ImageFile = __webpack_require__(73); +var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var TextFile = __webpack_require__(456); +var TextFile = __webpack_require__(454); /** * @classdesc @@ -169527,7 +169758,7 @@ module.exports = UnityAtlasFile; /***/ }), -/* 1254 */ +/* 1253 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169538,9 +169769,9 @@ module.exports = UnityAtlasFile; var Class = __webpack_require__(0); var CONST = __webpack_require__(29); -var File = __webpack_require__(21); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); -var GetURL = __webpack_require__(134); +var GetURL = __webpack_require__(133); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -169918,7 +170149,7 @@ module.exports = VideoFile; /***/ }), -/* 1255 */ +/* 1254 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169928,15 +170159,15 @@ module.exports = VideoFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var CustomSet = __webpack_require__(108); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(82); +var CONST = __webpack_require__(19); +var CustomSet = __webpack_require__(128); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(81); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); -var XHRSettings = __webpack_require__(135); +var SceneEvents = __webpack_require__(21); +var XHRSettings = __webpack_require__(134); /** * @classdesc @@ -170996,7 +171227,7 @@ module.exports = LoaderPlugin; /***/ }), -/* 1256 */ +/* 1255 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -171021,18 +171252,18 @@ var Extend = __webpack_require__(17); var Arcade = { - ArcadePhysics: __webpack_require__(1257), - Body: __webpack_require__(463), - Collider: __webpack_require__(464), - Components: __webpack_require__(216), - Events: __webpack_require__(217), - Factory: __webpack_require__(457), - Group: __webpack_require__(459), - Image: __webpack_require__(458), - Sprite: __webpack_require__(136), - StaticBody: __webpack_require__(469), - StaticGroup: __webpack_require__(460), - World: __webpack_require__(462) + ArcadePhysics: __webpack_require__(1256), + Body: __webpack_require__(461), + Collider: __webpack_require__(462), + Components: __webpack_require__(213), + Events: __webpack_require__(214), + Factory: __webpack_require__(455), + Group: __webpack_require__(457), + Image: __webpack_require__(456), + Sprite: __webpack_require__(135), + StaticBody: __webpack_require__(467), + StaticGroup: __webpack_require__(458), + World: __webpack_require__(460) }; @@ -171043,7 +171274,7 @@ module.exports = Arcade; /***/ }), -/* 1257 */ +/* 1256 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -171055,16 +171286,16 @@ module.exports = Arcade; var Class = __webpack_require__(0); var DegToRad = __webpack_require__(35); var DistanceBetween = __webpack_require__(53); -var DistanceSquared = __webpack_require__(319); -var Factory = __webpack_require__(457); +var DistanceSquared = __webpack_require__(317); +var Factory = __webpack_require__(455); var GetFastValue = __webpack_require__(2); -var Merge = __webpack_require__(107); -var OverlapCirc = __webpack_require__(1270); -var OverlapRect = __webpack_require__(461); +var Merge = __webpack_require__(121); +var OverlapCirc = __webpack_require__(1269); +var OverlapRect = __webpack_require__(459); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); var Vector2 = __webpack_require__(3); -var World = __webpack_require__(462); +var World = __webpack_require__(460); /** * @classdesc @@ -171732,7 +171963,7 @@ module.exports = ArcadePhysics; /***/ }), -/* 1258 */ +/* 1257 */ /***/ (function(module, exports) { /** @@ -171807,7 +172038,7 @@ module.exports = Acceleration; /***/ }), -/* 1259 */ +/* 1258 */ /***/ (function(module, exports) { /** @@ -171889,7 +172120,7 @@ module.exports = Angular; /***/ }), -/* 1260 */ +/* 1259 */ /***/ (function(module, exports) { /** @@ -171988,7 +172219,7 @@ module.exports = Bounce; /***/ }), -/* 1261 */ +/* 1260 */ /***/ (function(module, exports) { /** @@ -172115,7 +172346,7 @@ module.exports = Debug; /***/ }), -/* 1262 */ +/* 1261 */ /***/ (function(module, exports) { /** @@ -172248,7 +172479,7 @@ module.exports = Drag; /***/ }), -/* 1263 */ +/* 1262 */ /***/ (function(module, exports) { /** @@ -172372,7 +172603,7 @@ module.exports = Enable; /***/ }), -/* 1264 */ +/* 1263 */ /***/ (function(module, exports) { /** @@ -172450,7 +172681,7 @@ module.exports = Friction; /***/ }), -/* 1265 */ +/* 1264 */ /***/ (function(module, exports) { /** @@ -172528,7 +172759,7 @@ module.exports = Gravity; /***/ }), -/* 1266 */ +/* 1265 */ /***/ (function(module, exports) { /** @@ -172570,7 +172801,7 @@ module.exports = Immovable; /***/ }), -/* 1267 */ +/* 1266 */ /***/ (function(module, exports) { /** @@ -172610,7 +172841,7 @@ module.exports = Mass; /***/ }), -/* 1268 */ +/* 1267 */ /***/ (function(module, exports) { /** @@ -172692,7 +172923,7 @@ module.exports = Size; /***/ }), -/* 1269 */ +/* 1268 */ /***/ (function(module, exports) { /** @@ -172791,13 +173022,13 @@ module.exports = Velocity; /***/ }), -/* 1270 */ +/* 1269 */ /***/ (function(module, exports, __webpack_require__) { -var OverlapRect = __webpack_require__(461); -var Circle = __webpack_require__(65); -var CircleToCircle = __webpack_require__(204); -var CircleToRectangle = __webpack_require__(205); +var OverlapRect = __webpack_require__(459); +var Circle = __webpack_require__(63); +var CircleToCircle = __webpack_require__(201); +var CircleToRectangle = __webpack_require__(202); /** * This method will search the given circular area and return an array of all physics bodies that @@ -172859,7 +173090,7 @@ module.exports = OverlapCirc; /***/ }), -/* 1271 */ +/* 1270 */ /***/ (function(module, exports) { /** @@ -172892,7 +173123,7 @@ module.exports = 'collide'; /***/ }), -/* 1272 */ +/* 1271 */ /***/ (function(module, exports) { /** @@ -172925,7 +173156,7 @@ module.exports = 'overlap'; /***/ }), -/* 1273 */ +/* 1272 */ /***/ (function(module, exports) { /** @@ -172948,7 +173179,7 @@ module.exports = 'pause'; /***/ }), -/* 1274 */ +/* 1273 */ /***/ (function(module, exports) { /** @@ -172971,7 +173202,7 @@ module.exports = 'resume'; /***/ }), -/* 1275 */ +/* 1274 */ /***/ (function(module, exports) { /** @@ -173003,7 +173234,7 @@ module.exports = 'tilecollide'; /***/ }), -/* 1276 */ +/* 1275 */ /***/ (function(module, exports) { /** @@ -173035,7 +173266,7 @@ module.exports = 'tileoverlap'; /***/ }), -/* 1277 */ +/* 1276 */ /***/ (function(module, exports) { /** @@ -173067,7 +173298,7 @@ module.exports = 'worldbounds'; /***/ }), -/* 1278 */ +/* 1277 */ /***/ (function(module, exports) { /** @@ -173093,7 +173324,7 @@ module.exports = 'worldstep'; /***/ }), -/* 1279 */ +/* 1278 */ /***/ (function(module, exports) { /** @@ -173134,7 +173365,7 @@ module.exports = ProcessTileCallbacks; /***/ }), -/* 1280 */ +/* 1279 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173143,9 +173374,9 @@ module.exports = ProcessTileCallbacks; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileCheckX = __webpack_require__(1281); -var TileCheckY = __webpack_require__(1283); -var TileIntersectsBody = __webpack_require__(468); +var TileCheckX = __webpack_require__(1280); +var TileCheckY = __webpack_require__(1282); +var TileIntersectsBody = __webpack_require__(466); /** * The core separation function to separate a physics body and a tile. @@ -173254,7 +173485,7 @@ module.exports = SeparateTile; /***/ }), -/* 1281 */ +/* 1280 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173263,7 +173494,7 @@ module.exports = SeparateTile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ProcessTileSeparationX = __webpack_require__(1282); +var ProcessTileSeparationX = __webpack_require__(1281); /** * Check the body against the given tile on the X axis. @@ -173344,7 +173575,7 @@ module.exports = TileCheckX; /***/ }), -/* 1282 */ +/* 1281 */ /***/ (function(module, exports) { /** @@ -173391,7 +173622,7 @@ module.exports = ProcessTileSeparationX; /***/ }), -/* 1283 */ +/* 1282 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173400,7 +173631,7 @@ module.exports = ProcessTileSeparationX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ProcessTileSeparationY = __webpack_require__(1284); +var ProcessTileSeparationY = __webpack_require__(1283); /** * Check the body against the given tile on the Y axis. @@ -173481,7 +173712,7 @@ module.exports = TileCheckY; /***/ }), -/* 1284 */ +/* 1283 */ /***/ (function(module, exports) { /** @@ -173528,7 +173759,7 @@ module.exports = ProcessTileSeparationY; /***/ }), -/* 1285 */ +/* 1284 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173537,7 +173768,7 @@ module.exports = ProcessTileSeparationY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetOverlapX = __webpack_require__(465); +var GetOverlapX = __webpack_require__(463); /** * Separates two overlapping bodies on the X-axis (horizontally). @@ -173619,7 +173850,7 @@ module.exports = SeparateX; /***/ }), -/* 1286 */ +/* 1285 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173628,7 +173859,7 @@ module.exports = SeparateX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetOverlapY = __webpack_require__(466); +var GetOverlapY = __webpack_require__(464); /** * Separates two overlapping bodies on the Y-axis (vertically). @@ -173710,6 +173941,7 @@ module.exports = SeparateY; /***/ }), +/* 1286 */, /* 1287 */, /* 1288 */, /* 1289 */, @@ -173721,10 +173953,7 @@ module.exports = SeparateY; /* 1295 */, /* 1296 */, /* 1297 */, -/* 1298 */, -/* 1299 */, -/* 1300 */, -/* 1301 */ +/* 1298 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173739,17 +173968,17 @@ module.exports = SeparateY; module.exports = { - BasePlugin: __webpack_require__(473), - DefaultPlugins: __webpack_require__(174), + BasePlugin: __webpack_require__(469), + DefaultPlugins: __webpack_require__(171), PluginCache: __webpack_require__(23), - PluginManager: __webpack_require__(369), - ScenePlugin: __webpack_require__(1302) + PluginManager: __webpack_require__(367), + ScenePlugin: __webpack_require__(1299) }; /***/ }), -/* 1302 */ +/* 1299 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173758,9 +173987,9 @@ module.exports = { * @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License} */ -var BasePlugin = __webpack_require__(473); +var BasePlugin = __webpack_require__(469); var Class = __webpack_require__(0); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -173877,7 +174106,7 @@ module.exports = ScenePlugin; /***/ }), -/* 1303 */ +/* 1300 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173887,7 +174116,7 @@ module.exports = ScenePlugin; */ var Extend = __webpack_require__(17); -var CONST = __webpack_require__(176); +var CONST = __webpack_require__(173); /** * @namespace Phaser.Scale @@ -173915,12 +174144,12 @@ var CONST = __webpack_require__(176); var Scale = { - Center: __webpack_require__(358), - Events: __webpack_require__(92), - Orientation: __webpack_require__(359), - ScaleManager: __webpack_require__(370), - ScaleModes: __webpack_require__(360), - Zoom: __webpack_require__(361) + Center: __webpack_require__(356), + Events: __webpack_require__(91), + Orientation: __webpack_require__(357), + ScaleManager: __webpack_require__(368), + ScaleModes: __webpack_require__(358), + Zoom: __webpack_require__(359) }; @@ -173933,7 +174162,7 @@ module.exports = Scale; /***/ }), -/* 1304 */ +/* 1301 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173942,7 +174171,7 @@ module.exports = Scale; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(123); +var CONST = __webpack_require__(120); var Extend = __webpack_require__(17); /** @@ -173951,11 +174180,11 @@ var Extend = __webpack_require__(17); var Scene = { - Events: __webpack_require__(19), - SceneManager: __webpack_require__(372), - ScenePlugin: __webpack_require__(1305), - Settings: __webpack_require__(374), - Systems: __webpack_require__(179) + Events: __webpack_require__(21), + SceneManager: __webpack_require__(370), + ScenePlugin: __webpack_require__(1302), + Settings: __webpack_require__(372), + Systems: __webpack_require__(176) }; @@ -173966,7 +174195,7 @@ module.exports = Scene; /***/ }), -/* 1305 */ +/* 1302 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173977,7 +174206,7 @@ module.exports = Scene; var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); -var Events = __webpack_require__(19); +var Events = __webpack_require__(21); var GetFastValue = __webpack_require__(2); var PluginCache = __webpack_require__(23); @@ -174976,7 +175205,7 @@ module.exports = ScenePlugin; /***/ }), -/* 1306 */ +/* 1303 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174991,18 +175220,18 @@ module.exports = ScenePlugin; module.exports = { - List: __webpack_require__(126), - Map: __webpack_require__(160), - ProcessQueue: __webpack_require__(185), - RTree: __webpack_require__(467), - Set: __webpack_require__(108), - Size: __webpack_require__(371) + List: __webpack_require__(124), + Map: __webpack_require__(157), + ProcessQueue: __webpack_require__(182), + RTree: __webpack_require__(465), + Set: __webpack_require__(128), + Size: __webpack_require__(369) }; /***/ }), -/* 1307 */ +/* 1304 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175012,7 +175241,7 @@ module.exports = { */ var Extend = __webpack_require__(17); -var FilterMode = __webpack_require__(1308); +var FilterMode = __webpack_require__(1305); /** * @namespace Phaser.Textures @@ -175038,14 +175267,14 @@ var FilterMode = __webpack_require__(1308); var Textures = { - CanvasTexture: __webpack_require__(376), - Events: __webpack_require__(119), + CanvasTexture: __webpack_require__(374), + Events: __webpack_require__(116), FilterMode: FilterMode, - Frame: __webpack_require__(94), - Parsers: __webpack_require__(378), - Texture: __webpack_require__(181), - TextureManager: __webpack_require__(375), - TextureSource: __webpack_require__(377) + Frame: __webpack_require__(93), + Parsers: __webpack_require__(376), + Texture: __webpack_require__(178), + TextureManager: __webpack_require__(373), + TextureSource: __webpack_require__(375) }; @@ -175055,7 +175284,7 @@ module.exports = Textures; /***/ }), -/* 1308 */ +/* 1305 */ /***/ (function(module, exports) { /** @@ -175099,7 +175328,7 @@ module.exports = CONST; /***/ }), -/* 1309 */ +/* 1306 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175114,30 +175343,30 @@ module.exports = CONST; module.exports = { - Components: __webpack_require__(137), - Parsers: __webpack_require__(1338), + Components: __webpack_require__(136), + Parsers: __webpack_require__(1334), - Formats: __webpack_require__(32), - ImageCollection: __webpack_require__(485), - ParseToTilemap: __webpack_require__(226), - Tile: __webpack_require__(75), - Tilemap: __webpack_require__(494), - TilemapCreator: __webpack_require__(1347), - TilemapFactory: __webpack_require__(1348), - Tileset: __webpack_require__(141), + Formats: __webpack_require__(33), + ImageCollection: __webpack_require__(484), + ParseToTilemap: __webpack_require__(224), + Tile: __webpack_require__(73), + Tilemap: __webpack_require__(493), + TilemapCreator: __webpack_require__(1343), + TilemapFactory: __webpack_require__(1344), + Tileset: __webpack_require__(138), - LayerData: __webpack_require__(104), - MapData: __webpack_require__(105), - ObjectLayer: __webpack_require__(488), + LayerData: __webpack_require__(101), + MapData: __webpack_require__(102), + ObjectLayer: __webpack_require__(487), - DynamicTilemapLayer: __webpack_require__(495), - StaticTilemapLayer: __webpack_require__(496) + DynamicTilemapLayer: __webpack_require__(494), + StaticTilemapLayer: __webpack_require__(495) }; /***/ }), -/* 1310 */ +/* 1307 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175202,7 +175431,7 @@ module.exports = Copy; /***/ }), -/* 1311 */ +/* 1308 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175211,10 +175440,9 @@ module.exports = Copy; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileToWorldX = __webpack_require__(139); -var TileToWorldY = __webpack_require__(140); +var TileToWorldXY = __webpack_require__(217); var GetTilesWithin = __webpack_require__(24); -var ReplaceByIndex = __webpack_require__(474); +var ReplaceByIndex = __webpack_require__(472); /** * Creates a Sprite for every object matching the given tile indexes in the layer. You can @@ -175255,7 +175483,7 @@ var CreateFromTiles = function (indexes, replacements, spriteConfig, scene, came if (indexes.indexOf(tile.index) !== -1) { - var point = TileToWorldXY(tile.x,tile.y, camera, layer) + var point = TileToWorldXY(tile.x,tile.y, camera, layer); spriteConfig.x = point.x; spriteConfig.y = point.y; var sprite = scene.make.sprite(spriteConfig); @@ -175287,7 +175515,7 @@ module.exports = CreateFromTiles; /***/ }), -/* 1312 */ +/* 1309 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175296,8 +175524,8 @@ module.exports = CreateFromTiles; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SnapFloor = __webpack_require__(93); -var SnapCeil = __webpack_require__(328); +var SnapFloor = __webpack_require__(92); +var SnapCeil = __webpack_require__(326); /** * Returns the tiles in the given layer that are within the camera's viewport. This is used internally. @@ -175337,34 +175565,42 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) var drawRight = mapWidth; var drawTop = 0; var drawBottom = mapHeight; - var inIsoBounds = function (x,y) { return true;} - if (!tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1) { - if (layer.orientation == "orthogonal") { + + // we define it earlier for it to make sense in scope + var inIsoBounds = function () { return true; }; + if (!tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1) + { + if (layer.orientation === 'orthogonal') + { // Camera world view bounds, snapped for scaled tile size // Cull Padding values are given in tiles, not pixels - var boundsLeft = SnapFloor(camera.worldView.x - tilemapLayer.x, tileW, 0, true) - tilemapLayer.cullPaddingX; - var boundsRight = SnapCeil(camera.worldView.right - tilemapLayer.x, tileW, 0, true) + tilemapLayer.cullPaddingX; - var boundsTop = SnapFloor(camera.worldView.y - tilemapLayer.y, tileH, 0, true) - tilemapLayer.cullPaddingY; + var boundsLeft = SnapFloor(camera.worldView.x - tilemapLayer.x, tileW, 0, true) - tilemapLayer.cullPaddingX; + var boundsRight = SnapCeil(camera.worldView.right - tilemapLayer.x, tileW, 0, true) + tilemapLayer.cullPaddingX; + var boundsTop = SnapFloor(camera.worldView.y - tilemapLayer.y, tileH, 0, true) - tilemapLayer.cullPaddingY; var boundsBottom = SnapCeil(camera.worldView.bottom - tilemapLayer.y, tileH, 0, true) + tilemapLayer.cullPaddingY; drawLeft = Math.max(0, boundsLeft); drawRight = Math.min(mapWidth, boundsRight); drawTop = Math.max(0, boundsTop); drawBottom = Math.min(mapHeight, boundsBottom); - } else if (layer.orientation == "isometric") { - inIsoBounds = function (x,y){ - var pos = tilemapLayer.tileToWorldXY(x,y,undefined,camera) - return (pos.x > camera.worldView.x && pos.x < camera.worldView.right) && (pos.y > camera.worldView.y && pos.y < camera.worldView.bottom) - } } - } + else if (layer.orientation === 'isometric') + { + inIsoBounds = function (x,y) + { + var pos = tilemapLayer.tileToWorldXY(x,y,undefined,camera); + return (pos.x > camera.worldView.x && pos.x < camera.worldView.right - layer.tileWidth) && (pos.y > camera.worldView.y && pos.y < camera.worldView.bottom - layer.tileHeight); + }; + } + } var x; var y; var tile; - if (layer.orientation == "orthogonal") { + if (layer.orientation === 'orthogonal') + { if (renderOrder === 0) { @@ -175442,8 +175678,10 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) } } } - } else if (layer.orientation == "isometric") { - if (renderOrder === 0) + } + else if (layer.orientation === 'isometric') + { + if (renderOrder === 0) { // right-down @@ -175451,7 +175689,8 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) { for (x = drawLeft; mapData[y] && x < drawRight; x++) { - if (inIsoBounds(x,y)) { + if (inIsoBounds(x,y)) + { tile = mapData[y][x]; if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0) @@ -175473,7 +175712,8 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) { for (x = drawRight; mapData[y] && x >= drawLeft; x--) { - if (inIsoBounds(x,y)) { + if (inIsoBounds(x,y)) + { tile = mapData[y][x]; if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0) @@ -175494,7 +175734,8 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) { for (x = drawLeft; mapData[y] && x < drawRight; x++) { - if (inIsoBounds(x,y)) { + if (inIsoBounds(x,y)) + { tile = mapData[y][x]; if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0) @@ -175515,7 +175756,8 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) { for (x = drawRight; mapData[y] && x >= drawLeft; x--) { - if (inIsoBounds(x,y)) { + if (inIsoBounds(x,y)) + { tile = mapData[y][x]; if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0) @@ -175542,7 +175784,7 @@ module.exports = CullTiles; /***/ }), -/* 1313 */ +/* 1310 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175553,7 +175795,7 @@ module.exports = CullTiles; var GetTilesWithin = __webpack_require__(24); var CalculateFacesWithin = __webpack_require__(51); -var SetTileCollision = __webpack_require__(74); +var SetTileCollision = __webpack_require__(71); /** * Sets the tiles in the given rectangular area (in tile coordinates) of the layer with the @@ -175596,7 +175838,7 @@ module.exports = Fill; /***/ }), -/* 1314 */ +/* 1311 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175644,7 +175886,7 @@ module.exports = FilterTiles; /***/ }), -/* 1315 */ +/* 1312 */ /***/ (function(module, exports) { /** @@ -175732,7 +175974,7 @@ module.exports = FindByIndex; /***/ }), -/* 1316 */ +/* 1313 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175786,7 +176028,7 @@ module.exports = FindTile; /***/ }), -/* 1317 */ +/* 1314 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175836,7 +176078,7 @@ module.exports = ForEachTile; /***/ }), -/* 1318 */ +/* 1315 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175845,9 +176087,8 @@ module.exports = ForEachTile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTileAt = __webpack_require__(138); -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); +var GetTileAt = __webpack_require__(137); +var WorldToTileXY = __webpack_require__(72); /** * Gets a tile at the given world coordinates from the given layer. @@ -175867,9 +176108,9 @@ var WorldToTileY = __webpack_require__(64); */ var GetTileAtWorldXY = function (worldX, worldY, nonNull, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, camera, layer); - var tileX = point.x - var tileY = point.y + var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var tileX = point.x; + var tileY = point.y; return GetTileAt(tileX, tileY, nonNull, layer); }; @@ -175877,7 +176118,7 @@ module.exports = GetTileAtWorldXY; /***/ }), -/* 1319 */ +/* 1316 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175886,14 +176127,12 @@ module.exports = GetTileAtWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Geom = __webpack_require__(427); +var Geom = __webpack_require__(425); var GetTilesWithin = __webpack_require__(24); -var Intersects = __webpack_require__(428); +var Intersects = __webpack_require__(426); var NOOP = __webpack_require__(1); -var TileToWorldX = __webpack_require__(139); -var TileToWorldY = __webpack_require__(140); -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); +var TileToWorldXY = __webpack_require__(217); +var WorldToTileXY = __webpack_require__(72); var TriangleToRectangle = function (triangle, rect) { @@ -175923,7 +176162,6 @@ var TriangleToRectangle = function (triangle, rect) */ var GetTilesWithinShape = function (shape, filteringOptions, camera, layer) { - var orientation = layer.orientation; if (shape === undefined) { return []; } // intersectTest is a function with parameters: shape, rect @@ -175934,12 +176172,12 @@ var GetTilesWithinShape = function (shape, filteringOptions, camera, layer) else if (shape instanceof Geom.Line) { intersectTest = Intersects.LineToRectangle; } // Top left corner of the shapes's bounding box, rounded down to include partial tiles - var pointStart = WorldToTileXY(shape.left, shape.top, true, camera, layer, orientation); + var pointStart = WorldToTileXY(shape.left, shape.top, true, undefined, camera, layer); var xStart = pointStart.x; var yStart = pointStart.y; // Bottom right corner of the shapes's bounding box, rounded up to include partial tiles - var pointEnd = WorldToTileXY(shape.right, shape.bottom, true, camera, layer, orientation); + var pointEnd = WorldToTileXY(shape.right, shape.bottom, true, undefined, camera, layer); var xEnd = Math.ceil(pointEnd.x); var yEnd = Math.ceil(pointEnd.y); @@ -175962,8 +176200,9 @@ var GetTilesWithinShape = function (shape, filteringOptions, camera, layer) for (var i = 0; i < tiles.length; i++) { var tile = tiles[i]; - tileRect.x = TileToWorldX(tile.x, camera, layer); - tileRect.y = TileToWorldY(tile.y, camera, layer); + var point = TileToWorldXY(tile.x, tile.y, undefined, camera, layer); + tileRect.x = point.x; + tileRect.y = point.y; if (intersectTest(shape, tileRect)) { results.push(tile); @@ -175977,7 +176216,7 @@ module.exports = GetTilesWithinShape; /***/ }), -/* 1320 */ +/* 1317 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175987,9 +176226,7 @@ module.exports = GetTilesWithinShape; */ var GetTilesWithin = __webpack_require__(24); -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); -var WorldToTileXY = __webpack_require__(475); +var WorldToTileXY = __webpack_require__(72); /** * Gets the tiles in the given rectangular area (in world coordinates) of the layer. @@ -176013,14 +176250,14 @@ var WorldToTileXY = __webpack_require__(475); */ var GetTilesWithinWorldXY = function (worldX, worldY, width, height, filteringOptions, camera, layer) { - var orientation = layer.orientation + // Top left corner of the rect, rounded down to include partial tiles - var pointStart = WorldToTileXY(worldX, worldY, true, camera, layer, orientation); + var pointStart = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); var xStart = pointStart.x; var yStart = pointStart.y; // Bottom right corner of the rect, rounded up to include partial tiles - var pointEnd = WorldToTileXY(worldX+ width, worldY+ height, true, camera, layer, orientation); + var pointEnd = WorldToTileXY(worldX + width, worldY + height, false, undefined, camera, layer); var xEnd = Math.ceil(pointEnd.x); var yEnd = Math.ceil(pointEnd.y); @@ -176031,7 +176268,7 @@ module.exports = GetTilesWithinWorldXY; /***/ }), -/* 1321 */ +/* 1318 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176040,9 +176277,8 @@ module.exports = GetTilesWithinWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HasTileAt = __webpack_require__(476); -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); +var HasTileAt = __webpack_require__(475); +var WorldToTileXY = __webpack_require__(72); /** * Checks if there is a tile at the given location (in world coordinates) in the given layer. Returns @@ -176061,7 +176297,7 @@ var WorldToTileY = __webpack_require__(64); */ var HasTileAtWorldXY = function (worldX, worldY, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, camera, layer); + var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); var tileX = point.x; var tileY = point.y; return HasTileAt(tileX, tileY, layer); @@ -176071,7 +176307,7 @@ module.exports = HasTileAtWorldXY; /***/ }), -/* 1322 */ +/* 1319 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176080,9 +176316,8 @@ module.exports = HasTileAtWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PutTileAt = __webpack_require__(220); -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); +var PutTileAt = __webpack_require__(218); +var WorldToTileXY = __webpack_require__(72); /** * Puts a tile at the given world coordinates (pixels) in the specified layer. You can pass in either @@ -176105,10 +176340,9 @@ var WorldToTileY = __webpack_require__(64); */ var PutTileAtWorldXY = function (tile, worldX, worldY, recalculateFaces, camera, layer) { - var orientation = layer.orientation - var point = WorldToTileXY(worldX, worldY, true, camera, layer); - var tileX = point.x - var tileY = point.y + var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var tileX = point.x; + var tileY = point.y; return PutTileAt(tile, tileX, tileY, recalculateFaces, layer); }; @@ -176116,7 +176350,7 @@ module.exports = PutTileAtWorldXY; /***/ }), -/* 1323 */ +/* 1320 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176126,7 +176360,7 @@ module.exports = PutTileAtWorldXY; */ var CalculateFacesWithin = __webpack_require__(51); -var PutTileAt = __webpack_require__(220); +var PutTileAt = __webpack_require__(218); /** * Puts an array of tiles or a 2D array of tiles at the given tile coordinates in the specified @@ -176181,7 +176415,7 @@ module.exports = PutTilesAt; /***/ }), -/* 1324 */ +/* 1321 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176191,7 +176425,7 @@ module.exports = PutTilesAt; */ var GetTilesWithin = __webpack_require__(24); -var GetRandom = __webpack_require__(184); +var GetRandom = __webpack_require__(181); /** * Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the @@ -176239,7 +176473,7 @@ module.exports = Randomize; /***/ }), -/* 1325 */ +/* 1322 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176248,9 +176482,8 @@ module.exports = Randomize; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RemoveTileAt = __webpack_require__(477); -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); +var RemoveTileAt = __webpack_require__(476); +var WorldToTileXY = __webpack_require__(72); /** * Removes the tile at the given world coordinates in the specified layer and updates the layer's @@ -176271,10 +176504,9 @@ var WorldToTileY = __webpack_require__(64); */ var RemoveTileAtWorldXY = function (worldX, worldY, replaceWithNull, recalculateFaces, camera, layer) { - var orientation = layer.orientation - var point = WorldToTileXY(worldX, worldY, true, camera, layer); - var tileX = point.x - var tileY = point.y + var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var tileX = point.x; + var tileY = point.y; return RemoveTileAt(tileX, tileY, replaceWithNull, recalculateFaces, layer); }; @@ -176282,7 +176514,7 @@ module.exports = RemoveTileAtWorldXY; /***/ }), -/* 1326 */ +/* 1323 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176292,7 +176524,7 @@ module.exports = RemoveTileAtWorldXY; */ var GetTilesWithin = __webpack_require__(24); -var Color = __webpack_require__(353); +var Color = __webpack_require__(351); var defaultTileColor = new Color(105, 210, 231, 150); var defaultCollidingTileColor = new Color(243, 134, 48, 200); @@ -176371,7 +176603,7 @@ module.exports = RenderDebug; /***/ }), -/* 1327 */ +/* 1324 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176380,9 +176612,9 @@ module.exports = RenderDebug; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTileCollision = __webpack_require__(74); +var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var SetLayerCollisionIndex = __webpack_require__(221); +var SetLayerCollisionIndex = __webpack_require__(219); /** * Sets collision on the given tile or tiles within a layer by index. You can pass in either a @@ -176440,7 +176672,7 @@ module.exports = SetCollision; /***/ }), -/* 1328 */ +/* 1325 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176449,9 +176681,9 @@ module.exports = SetCollision; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTileCollision = __webpack_require__(74); +var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var SetLayerCollisionIndex = __webpack_require__(221); +var SetLayerCollisionIndex = __webpack_require__(219); /** * Sets collision on a range of tiles in a layer whose index is between the specified `start` and @@ -176515,7 +176747,7 @@ module.exports = SetCollisionBetween; /***/ }), -/* 1329 */ +/* 1326 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176524,9 +176756,9 @@ module.exports = SetCollisionBetween; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTileCollision = __webpack_require__(74); +var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var SetLayerCollisionIndex = __webpack_require__(221); +var SetLayerCollisionIndex = __webpack_require__(219); /** * Sets collision on all tiles in the given layer, except for tiles that have an index specified in @@ -176572,7 +176804,7 @@ module.exports = SetCollisionByExclusion; /***/ }), -/* 1330 */ +/* 1327 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176581,9 +176813,9 @@ module.exports = SetCollisionByExclusion; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTileCollision = __webpack_require__(74); +var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var HasValue = __webpack_require__(99); +var HasValue = __webpack_require__(105); /** * Sets collision on the tiles within a layer by checking tile properties. If a tile has a property @@ -176647,7 +176879,7 @@ module.exports = SetCollisionByProperty; /***/ }), -/* 1331 */ +/* 1328 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176656,7 +176888,7 @@ module.exports = SetCollisionByProperty; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTileCollision = __webpack_require__(74); +var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); /** @@ -176707,7 +176939,7 @@ module.exports = SetCollisionFromCollisionGroup; /***/ }), -/* 1332 */ +/* 1329 */ /***/ (function(module, exports) { /** @@ -176754,7 +176986,7 @@ module.exports = SetTileIndexCallback; /***/ }), -/* 1333 */ +/* 1330 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176797,7 +177029,7 @@ module.exports = SetTileLocationCallback; /***/ }), -/* 1334 */ +/* 1331 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176807,7 +177039,7 @@ module.exports = SetTileLocationCallback; */ var GetTilesWithin = __webpack_require__(24); -var ShuffleArray = __webpack_require__(114); +var ShuffleArray = __webpack_require__(111); /** * Shuffles the tiles in a rectangular region (specified in tile coordinates) within the given @@ -176842,7 +177074,7 @@ module.exports = Shuffle; /***/ }), -/* 1335 */ +/* 1332 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176893,81 +177125,7 @@ module.exports = SwapByIndex; /***/ }), -/* 1336 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var TileToWorldX = __webpack_require__(139); -var TileToWorldY = __webpack_require__(140); -var Vector2 = __webpack_require__(3); - -/** - * Converts from tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the - * layer's position, scale and scroll. This will return a new Vector2 object or update the given - * `point` object. - * - * @function Phaser.Tilemaps.Components.TileToWorldXY - * @private - * @since 3.0.0 - * - * @param {integer} tileX - The x coordinate, in tiles, not pixels. - * @param {integer} tileY - The y coordinate, in tiles, not pixels. - * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {Phaser.Math.Vector2} The XY location in world coordinates. - */ -var TileToWorldXY = function (tileX, tileY, point, camera, layer) -{ - var orientation = layer.orientation; - var tileWidth = layer.baseTileWidth; - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - - if (point === undefined) { point = new Vector2(0, 0); } - - - - - - if (orientation === "orthogonal") { - point.x = TileToWorldX(tileX, camera, layer, orientation); - point.y = TileToWorldY(tileY, camera, layer, orientation); - } else if (orientation === "isometric") { - - var layerWorldX = 0; - var layerWorldY = 0; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); - tileWidth *= tilemapLayer.scaleX; - layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - tileHeight *= tilemapLayer.scaleY; - } - - - - point.x = layerWorldX + (tileX - tileY) * (tileWidth/2); - point.y = layerWorldY + (tileX + tileY) * (tileHeight/2); - - } - - return point; -}; - -module.exports = TileToWorldXY; - - -/***/ }), -/* 1337 */ +/* 1333 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177047,7 +177205,7 @@ module.exports = WeightedRandomize; /***/ }), -/* 1338 */ +/* 1334 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177062,18 +177220,18 @@ module.exports = WeightedRandomize; module.exports = { - Parse: __webpack_require__(478), - Parse2DArray: __webpack_require__(222), - ParseCSV: __webpack_require__(479), + Parse: __webpack_require__(477), + Parse2DArray: __webpack_require__(220), + ParseCSV: __webpack_require__(478), - Impact: __webpack_require__(1339), - Tiled: __webpack_require__(1340) + Impact: __webpack_require__(1335), + Tiled: __webpack_require__(1336) }; /***/ }), -/* 1339 */ +/* 1335 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177088,15 +177246,15 @@ module.exports = { module.exports = { - ParseTileLayers: __webpack_require__(492), - ParseTilesets: __webpack_require__(493), - ParseWeltmeister: __webpack_require__(491) + ParseTileLayers: __webpack_require__(491), + ParseTilesets: __webpack_require__(492), + ParseWeltmeister: __webpack_require__(490) }; /***/ }), -/* 1340 */ +/* 1336 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177111,22 +177269,22 @@ module.exports = { module.exports = { - AssignTileProperties: __webpack_require__(490), - Base64Decode: __webpack_require__(482), - BuildTilesetIndex: __webpack_require__(489), - ParseGID: __webpack_require__(223), - ParseImageLayers: __webpack_require__(483), - ParseJSONTiled: __webpack_require__(480), - ParseObject: __webpack_require__(225), - ParseObjectLayers: __webpack_require__(487), - ParseTileLayers: __webpack_require__(481), - ParseTilesets: __webpack_require__(484) + AssignTileProperties: __webpack_require__(489), + Base64Decode: __webpack_require__(481), + BuildTilesetIndex: __webpack_require__(488), + ParseGID: __webpack_require__(221), + ParseImageLayers: __webpack_require__(482), + ParseJSONTiled: __webpack_require__(479), + ParseObject: __webpack_require__(223), + ParseObjectLayers: __webpack_require__(486), + ParseTileLayers: __webpack_require__(480), + ParseTilesets: __webpack_require__(483) }; /***/ }), -/* 1341 */ +/* 1337 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177140,12 +177298,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1342); + renderWebGL = __webpack_require__(1338); } if (true) { - renderCanvas = __webpack_require__(1343); + renderCanvas = __webpack_require__(1339); } module.exports = { @@ -177157,7 +177315,7 @@ module.exports = { /***/ }), -/* 1342 */ +/* 1338 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177166,7 +177324,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -177236,28 +177394,27 @@ var DynamicTilemapLayerWebGLRenderer = function (renderer, src, interpolationPer { continue; } - if (src.layer.orientation === "isometric") { - // here we use the tileset width and height to fix problems with isometric map types - - var frameWidth = tileset.tileWidth; - var frameHeight = tileset.tileHeight; - - var frameX = tileTexCoords.x; - var frameY = tileTexCoords.y; - - var tw = tileset.tileWidth * 0.5; - var th = tileset.tileHeight * 0.5; - } else { - var frameWidth = tile.width; - var frameHeight = tile.height; - - var frameX = tileTexCoords.x; - var frameY = tileTexCoords.y; - - var tw = tile.width * 0.5; - var th = tile.height * 0.5; + + var frameWidth = 0; + var frameHeight = 0; + + if (src.layer.orientation === 'isometric') + { + // we use the tileset width and height because in isometric maps the tileset's height is often different from the tilemap's. + frameWidth = tileset.tileWidth; + frameHeight = tileset.tileHeight; + } + else + { + frameWidth = tile.width; + frameHeight = tile.height; } + var frameX = tileTexCoords.x; + var frameY = tileTexCoords.y; + + var tw = frameWidth * 0.5; + var th = frameHeight * 0.5; var tint = getTint(tile.tint, alpha * tile.alpha); @@ -177288,7 +177445,7 @@ module.exports = DynamicTilemapLayerWebGLRenderer; /***/ }), -/* 1343 */ +/* 1339 */ /***/ (function(module, exports) { /** @@ -177385,14 +177542,15 @@ var DynamicTilemapLayerCanvasRenderer = function (renderer, src, interpolationPe var width = tile.width; var height = tile.width; - if (src.layer.orientation === "isometric") { - // here we use the tileset width and height to fix problems with isometric map types + if (src.layer.orientation === 'isometric') + { + // we use the tileset width and height because in isometric maps the tileset's height is often different from the tilemap's. width = tileset.tileWidth; width = tileset.tileHeight; } - halfWidth = width / 2; - halfHeight = height / 2; + var halfWidth = width / 2; + var halfHeight = height / 2; ctx.save(); @@ -177430,7 +177588,7 @@ module.exports = DynamicTilemapLayerCanvasRenderer; /***/ }), -/* 1344 */ +/* 1340 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177444,12 +177602,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1345); + renderWebGL = __webpack_require__(1341); } if (true) { - renderCanvas = __webpack_require__(1346); + renderCanvas = __webpack_require__(1342); } module.exports = { @@ -177461,7 +177619,7 @@ module.exports = { /***/ }), -/* 1345 */ +/* 1341 */ /***/ (function(module, exports) { /** @@ -177533,7 +177691,7 @@ module.exports = StaticTilemapLayerWebGLRenderer; /***/ }), -/* 1346 */ +/* 1342 */ /***/ (function(module, exports) { /** @@ -177666,7 +177824,7 @@ module.exports = StaticTilemapLayerCanvasRenderer; /***/ }), -/* 1347 */ +/* 1343 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177676,7 +177834,7 @@ module.exports = StaticTilemapLayerCanvasRenderer; */ var GameObjectCreator = __webpack_require__(16); -var ParseToTilemap = __webpack_require__(226); +var ParseToTilemap = __webpack_require__(224); /** * Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided. @@ -177695,7 +177853,6 @@ GameObjectCreator.register('tilemap', function (config) { // Defaults are applied in ParseToTilemap var c = (config !== undefined) ? config : {}; - console.log("TC tilemap") return ParseToTilemap( this.scene, c.key, @@ -177710,7 +177867,7 @@ GameObjectCreator.register('tilemap', function (config) /***/ }), -/* 1348 */ +/* 1344 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177720,7 +177877,7 @@ GameObjectCreator.register('tilemap', function (config) */ var GameObjectFactory = __webpack_require__(5); -var ParseToTilemap = __webpack_require__(226); +var ParseToTilemap = __webpack_require__(224); /** * Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided. @@ -177776,7 +177933,7 @@ GameObjectFactory.register('tilemap', function (key, tileWidth, tileHeight, widt /***/ }), -/* 1349 */ +/* 1345 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177791,14 +177948,14 @@ GameObjectFactory.register('tilemap', function (key, tileWidth, tileHeight, widt module.exports = { - Clock: __webpack_require__(1350), - TimerEvent: __webpack_require__(497) + Clock: __webpack_require__(1346), + TimerEvent: __webpack_require__(496) }; /***/ }), -/* 1350 */ +/* 1346 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -177809,8 +177966,8 @@ module.exports = { var Class = __webpack_require__(0); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); -var TimerEvent = __webpack_require__(497); +var SceneEvents = __webpack_require__(21); +var TimerEvent = __webpack_require__(496); /** * @classdesc @@ -178204,7 +178361,7 @@ module.exports = Clock; /***/ }), -/* 1351 */ +/* 1347 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -178213,7 +178370,7 @@ module.exports = Clock; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(89); +var CONST = __webpack_require__(88); var Extend = __webpack_require__(17); /** @@ -178222,13 +178379,13 @@ var Extend = __webpack_require__(17); var Tweens = { - Builders: __webpack_require__(1352), - Events: __webpack_require__(231), + Builders: __webpack_require__(1348), + Events: __webpack_require__(229), - TweenManager: __webpack_require__(1367), - Tween: __webpack_require__(230), - TweenData: __webpack_require__(232), - Timeline: __webpack_require__(503) + TweenManager: __webpack_require__(1363), + Tween: __webpack_require__(228), + TweenData: __webpack_require__(230), + Timeline: __webpack_require__(502) }; @@ -178239,7 +178396,7 @@ module.exports = Tweens; /***/ }), -/* 1352 */ +/* 1348 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -178254,23 +178411,23 @@ module.exports = Tweens; module.exports = { - GetBoolean: __webpack_require__(88), - GetEaseFunction: __webpack_require__(70), - GetNewValue: __webpack_require__(142), - GetProps: __webpack_require__(498), - GetTargets: __webpack_require__(227), - GetTweens: __webpack_require__(499), - GetValueOp: __webpack_require__(228), - NumberTweenBuilder: __webpack_require__(500), - StaggerBuilder: __webpack_require__(501), - TimelineBuilder: __webpack_require__(502), - TweenBuilder: __webpack_require__(143) + GetBoolean: __webpack_require__(87), + GetEaseFunction: __webpack_require__(67), + GetNewValue: __webpack_require__(139), + GetProps: __webpack_require__(497), + GetTargets: __webpack_require__(225), + GetTweens: __webpack_require__(498), + GetValueOp: __webpack_require__(226), + NumberTweenBuilder: __webpack_require__(499), + StaggerBuilder: __webpack_require__(500), + TimelineBuilder: __webpack_require__(501), + TweenBuilder: __webpack_require__(140) }; /***/ }), -/* 1353 */ +/* 1349 */ /***/ (function(module, exports) { /** @@ -178345,7 +178502,7 @@ module.exports = [ /***/ }), -/* 1354 */ +/* 1350 */ /***/ (function(module, exports) { /** @@ -178381,7 +178538,7 @@ module.exports = 'complete'; /***/ }), -/* 1355 */ +/* 1351 */ /***/ (function(module, exports) { /** @@ -178418,7 +178575,7 @@ module.exports = 'loop'; /***/ }), -/* 1356 */ +/* 1352 */ /***/ (function(module, exports) { /** @@ -178455,7 +178612,7 @@ module.exports = 'pause'; /***/ }), -/* 1357 */ +/* 1353 */ /***/ (function(module, exports) { /** @@ -178492,7 +178649,7 @@ module.exports = 'resume'; /***/ }), -/* 1358 */ +/* 1354 */ /***/ (function(module, exports) { /** @@ -178528,7 +178685,7 @@ module.exports = 'start'; /***/ }), -/* 1359 */ +/* 1355 */ /***/ (function(module, exports) { /** @@ -178565,7 +178722,7 @@ module.exports = 'update'; /***/ }), -/* 1360 */ +/* 1356 */ /***/ (function(module, exports) { /** @@ -178605,7 +178762,7 @@ module.exports = 'active'; /***/ }), -/* 1361 */ +/* 1357 */ /***/ (function(module, exports) { /** @@ -178646,7 +178803,7 @@ module.exports = 'complete'; /***/ }), -/* 1362 */ +/* 1358 */ /***/ (function(module, exports) { /** @@ -178690,7 +178847,7 @@ module.exports = 'loop'; /***/ }), -/* 1363 */ +/* 1359 */ /***/ (function(module, exports) { /** @@ -178735,7 +178892,7 @@ module.exports = 'repeat'; /***/ }), -/* 1364 */ +/* 1360 */ /***/ (function(module, exports) { /** @@ -178775,7 +178932,7 @@ module.exports = 'start'; /***/ }), -/* 1365 */ +/* 1361 */ /***/ (function(module, exports) { /** @@ -178818,7 +178975,7 @@ module.exports = 'update'; /***/ }), -/* 1366 */ +/* 1362 */ /***/ (function(module, exports) { /** @@ -178864,7 +179021,7 @@ module.exports = 'yoyo'; /***/ }), -/* 1367 */ +/* 1363 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -178873,15 +179030,15 @@ module.exports = 'yoyo'; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayRemove = __webpack_require__(121); +var ArrayRemove = __webpack_require__(118); var Class = __webpack_require__(0); -var NumberTweenBuilder = __webpack_require__(500); +var NumberTweenBuilder = __webpack_require__(499); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); -var StaggerBuilder = __webpack_require__(501); -var TimelineBuilder = __webpack_require__(502); -var TWEEN_CONST = __webpack_require__(89); -var TweenBuilder = __webpack_require__(143); +var SceneEvents = __webpack_require__(21); +var StaggerBuilder = __webpack_require__(500); +var TimelineBuilder = __webpack_require__(501); +var TWEEN_CONST = __webpack_require__(88); +var TweenBuilder = __webpack_require__(140); /** * @classdesc @@ -179636,7 +179793,7 @@ module.exports = TweenManager; /***/ }), -/* 1368 */ +/* 1364 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179651,16 +179808,16 @@ module.exports = TweenManager; module.exports = { - Array: __webpack_require__(182), - Base64: __webpack_require__(1369), - Objects: __webpack_require__(1371), - String: __webpack_require__(1375) + Array: __webpack_require__(179), + Base64: __webpack_require__(1365), + Objects: __webpack_require__(1367), + String: __webpack_require__(1371) }; /***/ }), -/* 1369 */ +/* 1365 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179675,14 +179832,14 @@ module.exports = { module.exports = { - ArrayBufferToBase64: __webpack_require__(1370), - Base64ToArrayBuffer: __webpack_require__(385) + ArrayBufferToBase64: __webpack_require__(1366), + Base64ToArrayBuffer: __webpack_require__(383) }; /***/ }), -/* 1370 */ +/* 1366 */ /***/ (function(module, exports) { /** @@ -179740,7 +179897,7 @@ module.exports = ArrayBufferToBase64; /***/ }), -/* 1371 */ +/* 1367 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179755,26 +179912,26 @@ module.exports = ArrayBufferToBase64; module.exports = { - Clone: __webpack_require__(67), + Clone: __webpack_require__(65), Extend: __webpack_require__(17), GetAdvancedValue: __webpack_require__(14), GetFastValue: __webpack_require__(2), - GetMinMaxValue: __webpack_require__(1372), + GetMinMaxValue: __webpack_require__(1368), GetValue: __webpack_require__(6), - HasAll: __webpack_require__(1373), - HasAny: __webpack_require__(404), - HasValue: __webpack_require__(99), + HasAll: __webpack_require__(1369), + HasAny: __webpack_require__(402), + HasValue: __webpack_require__(105), IsPlainObject: __webpack_require__(7), - Merge: __webpack_require__(107), - MergeRight: __webpack_require__(1374), - Pick: __webpack_require__(486), - SetValue: __webpack_require__(424) + Merge: __webpack_require__(121), + MergeRight: __webpack_require__(1370), + Pick: __webpack_require__(485), + SetValue: __webpack_require__(422) }; /***/ }), -/* 1372 */ +/* 1368 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179813,7 +179970,7 @@ module.exports = GetMinMaxValue; /***/ }), -/* 1373 */ +/* 1369 */ /***/ (function(module, exports) { /** @@ -179850,7 +180007,7 @@ module.exports = HasAll; /***/ }), -/* 1374 */ +/* 1370 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179859,7 +180016,7 @@ module.exports = HasAll; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clone = __webpack_require__(67); +var Clone = __webpack_require__(65); /** * Creates a new Object using all values from obj1. @@ -179893,7 +180050,7 @@ module.exports = MergeRight; /***/ }), -/* 1375 */ +/* 1371 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179908,17 +180065,17 @@ module.exports = MergeRight; module.exports = { - Format: __webpack_require__(1376), - Pad: __webpack_require__(161), - Reverse: __webpack_require__(1377), - UppercaseFirst: __webpack_require__(180), - UUID: __webpack_require__(195) + Format: __webpack_require__(1372), + Pad: __webpack_require__(158), + Reverse: __webpack_require__(1373), + UppercaseFirst: __webpack_require__(177), + UUID: __webpack_require__(192) }; /***/ }), -/* 1376 */ +/* 1372 */ /***/ (function(module, exports) { /** @@ -179953,7 +180110,7 @@ module.exports = Format; /***/ }), -/* 1377 */ +/* 1373 */ /***/ (function(module, exports) { /** @@ -179982,7 +180139,7 @@ module.exports = Reverse; /***/ }), -/* 1378 */ +/* 1374 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179998,26 +180155,30 @@ module.exports = Reverse; module.exports = { - SoundManagerCreator: __webpack_require__(379), + SoundManagerCreator: __webpack_require__(377), Events: __webpack_require__(59), - BaseSound: __webpack_require__(125), - BaseSoundManager: __webpack_require__(124), + BaseSound: __webpack_require__(123), + BaseSoundManager: __webpack_require__(122), - WebAudioSound: __webpack_require__(386), - WebAudioSoundManager: __webpack_require__(384), + WebAudioSound: __webpack_require__(384), + WebAudioSoundManager: __webpack_require__(382), - HTML5AudioSound: __webpack_require__(381), - HTML5AudioSoundManager: __webpack_require__(380), + HTML5AudioSound: __webpack_require__(379), + HTML5AudioSoundManager: __webpack_require__(378), - NoAudioSound: __webpack_require__(383), - NoAudioSoundManager: __webpack_require__(382) + NoAudioSound: __webpack_require__(381), + NoAudioSoundManager: __webpack_require__(380) }; /***/ }), +/* 1375 */, +/* 1376 */, +/* 1377 */, +/* 1378 */, /* 1379 */, /* 1380 */, /* 1381 */, @@ -180066,41 +180227,7 @@ module.exports = { /* 1424 */, /* 1425 */, /* 1426 */, -/* 1427 */, -/* 1428 */, -/* 1429 */, -/* 1430 */, -/* 1431 */, -/* 1432 */, -/* 1433 */, -/* 1434 */, -/* 1435 */, -/* 1436 */, -/* 1437 */, -/* 1438 */, -/* 1439 */, -/* 1440 */, -/* 1441 */, -/* 1442 */, -/* 1443 */, -/* 1444 */, -/* 1445 */, -/* 1446 */, -/* 1447 */, -/* 1448 */, -/* 1449 */, -/* 1450 */, -/* 1451 */, -/* 1452 */, -/* 1453 */, -/* 1454 */, -/* 1455 */, -/* 1456 */, -/* 1457 */, -/* 1458 */, -/* 1459 */, -/* 1460 */, -/* 1461 */ +/* 1427 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** @@ -180109,7 +180236,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -__webpack_require__(518); +__webpack_require__(517); var CONST = __webpack_require__(29); var Extend = __webpack_require__(17); @@ -180127,37 +180254,37 @@ var Extend = __webpack_require__(17); var Phaser = { - Actions: __webpack_require__(240), - Animations: __webpack_require__(638), - Cache: __webpack_require__(639), - Cameras: __webpack_require__(642), - Core: __webpack_require__(725), + Actions: __webpack_require__(238), + Animations: __webpack_require__(637), + Cache: __webpack_require__(638), + Cameras: __webpack_require__(641), + Core: __webpack_require__(724), Class: __webpack_require__(0), - Create: __webpack_require__(784), - Curves: __webpack_require__(790), - Data: __webpack_require__(793), - Display: __webpack_require__(795), - DOM: __webpack_require__(812), - Events: __webpack_require__(813), - Game: __webpack_require__(815), - GameObjects: __webpack_require__(908), - Geom: __webpack_require__(427), - Input: __webpack_require__(1196), - Loader: __webpack_require__(1230), - Math: __webpack_require__(169), + Create: __webpack_require__(783), + Curves: __webpack_require__(789), + Data: __webpack_require__(792), + Display: __webpack_require__(794), + DOM: __webpack_require__(811), + Events: __webpack_require__(812), + Game: __webpack_require__(814), + GameObjects: __webpack_require__(907), + Geom: __webpack_require__(425), + Input: __webpack_require__(1195), + Loader: __webpack_require__(1229), + Math: __webpack_require__(166), Physics: { - Arcade: __webpack_require__(1256) + Arcade: __webpack_require__(1255) }, - Plugins: __webpack_require__(1301), - Scale: __webpack_require__(1303), - Scene: __webpack_require__(373), - Scenes: __webpack_require__(1304), - Structs: __webpack_require__(1306), - Textures: __webpack_require__(1307), - Tilemaps: __webpack_require__(1309), - Time: __webpack_require__(1349), - Tweens: __webpack_require__(1351), - Utils: __webpack_require__(1368) + Plugins: __webpack_require__(1298), + Scale: __webpack_require__(1300), + Scene: __webpack_require__(371), + Scenes: __webpack_require__(1301), + Structs: __webpack_require__(1303), + Textures: __webpack_require__(1304), + Tilemaps: __webpack_require__(1306), + Time: __webpack_require__(1345), + Tweens: __webpack_require__(1347), + Utils: __webpack_require__(1364) }; @@ -180167,7 +180294,7 @@ Phaser = Extend(false, Phaser, CONST); if (true) { - Phaser.Sound = __webpack_require__(1378); + Phaser.Sound = __webpack_require__(1374); } // Export it @@ -180182,7 +180309,7 @@ global.Phaser = Phaser; * -- Dick Brandon */ -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(517))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(516))) /***/ }) /******/ ]); diff --git a/dist/phaser-arcade-physics.min.js b/dist/phaser-arcade-physics.min.js index 68f6f24c4..c1512971b 100644 --- a/dist/phaser-arcade-physics.min.js +++ b/dist/phaser-arcade-physics.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Phaser",[],e):"object"==typeof exports?exports.Phaser=e():t.Phaser=e()}(window,function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1461)}([function(t,e){function i(t,e,i){var n=i?t[e]:Object.getOwnPropertyDescriptor(t,e);return!i&&n.value&&"object"==typeof n.value&&(n=n.value),!(!n||!function(t){return!!t.get&&"function"==typeof t.get||!!t.set&&"function"==typeof t.set}(n))&&(void 0===n.enumerable&&(n.enumerable=!0),void 0===n.configurable&&(n.configurable=!0),n)}function n(t,e){var i=Object.getOwnPropertyDescriptor(t,e);return!!i&&(i.value&&"object"==typeof i.value&&(i=i.value),!1===i.configurable)}function s(t,e,s,r){for(var a in e)if(e.hasOwnProperty(a)){var h=i(e,a,s);if(!1!==h){if(n((r||t).prototype,a)){if(o.ignoreFinals)continue;throw new Error("cannot override final property '"+a+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,a,h)}else t.prototype[a]=e[a]}}function r(t,e){if(e){Array.isArray(e)||(e=[e]);for(var i=0;i0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this},transformMat3:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this},transformMat4:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[4]*i+n[12],this.y=n[1]*e+n[5]*i+n[13],this},reset:function(){return this.x=0,this.y=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0),n.LEFT=new n(-1,0),n.UP=new n(0,-1),n.DOWN=new n(0,1),n.ONE=new n(1,1),t.exports=n},function(t,e,i){var n=i(0),s=i(46),r=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=s.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=r},function(t,e,i){var n=i(0),s=i(23),r=i(19),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectFactory",o,"add"),t.exports=o},function(t,e){t.exports=function(t,e,i){if(t&&"number"!=typeof t){if(t.hasOwnProperty(e))return t[e];if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=i,o=0;o>>0},getTintAppendFloatAlpha:function(t,e){return((255&(255*e|0))<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255&(255*e|0))<<24|(255&(0|t))<<16|(255&(t>>8|0))<<8|255&(t>>16|0))>>>0},getFloatsFromUintRGB:function(t){return[(255&(t>>16|0))/255,(255&(t>>8|0))/255,(255&(0|t))/255]},getComponentCount:function(t,e){for(var i=0,n=0;n=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},function(t,e,i){var n=i(0),s=i(280),r=i(113),o=i(9),a=i(90),h=new n({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new r(this)),this},setData:function(t,e){return this.data||(this.data=new r(this)),this.data.set(t,e),this},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.input&&(this.input.enabled=!1),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},update:function(){},toJSON:function(){return s(this)},willRender:function(t){return!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return i.unshift(this.scene.sys.displayList.getIndex(t)),i},destroy:function(t){if(void 0===t&&(t=!1),this.scene&&!this.ignoreDestroy){this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this);var e=this.scene.sys;t||(e.displayList.remove(this),e.updateList.remove(this)),this.input&&(e.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),t||e.queueDepthSort(),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0,this.removeAllListeners()}}});h.RENDER_MASK=15,t.exports=h},function(t,e,i){var n=i(169),s=i(6);t.exports=function(t,e,i){var r=s(t,e,null);if(null===r)return i;if(Array.isArray(r))return n.RND.pick(r);if("object"==typeof r){if(r.hasOwnProperty("randInt"))return n.RND.integerInRange(r.randInt[0],r.randInt[1]);if(r.hasOwnProperty("randFloat"))return n.RND.realInRange(r.randFloat[0],r.randFloat[1])}else if("function"==typeof r)return r(e);return r}},function(t,e){var i={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=i},function(t,e,i){var n=i(0),s=i(23),r=i(19),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectCreator",o,"make"),t.exports=o},function(t,e,i){var n=i(7),s=function(){var t,e,i,r,o,a,h=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof h&&(c=h,h=arguments[1]||{},l=2),u===l&&(h=this,--l);l=400&&t.status<=599&&(n=!1),this.resetXHR(),this.loader.nextFile(this,n)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(r.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=s.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=s.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=s.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.cache.add(this.key,this.data),this.pendingDestroy()},pendingDestroy:function(t){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit(r.FILE_COMPLETE,e,i,t),this.loader.emit(r.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});c.createObjectURL=function(t,e,i){if("function"==typeof URL)t.src=URL.createObjectURL(e);else{var n=new FileReader;n.onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+n.result.split(",")[1]},n.onerror=t.onerror,n.readAsDataURL(e)}},c.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=c},function(t,e){t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},function(t,e){var i={},n={},s={register:function(t,e,n,s){void 0===s&&(s=!1),i[t]={plugin:e,mapping:n,custom:s}},registerCustom:function(t,e,i,s){n[t]={plugin:e,mapping:i,data:s}},hasCore:function(t){return i.hasOwnProperty(t)},hasCustom:function(t){return n.hasOwnProperty(t)},getCore:function(t){return i[t]},getCustom:function(t){return n[t]},getCustomClass:function(t){return n.hasOwnProperty(t)?n[t].plugin:null},remove:function(t){i.hasOwnProperty(t)&&delete i[t]},removeCustom:function(t){n.hasOwnProperty(t)&&delete n[t]},destroyCorePlugins:function(){for(var t in i)i.hasOwnProperty(t)&&delete i[t]},destroyCustomPlugins:function(){for(var t in n)n.hasOwnProperty(t)&&delete n[t]}};t.exports=s},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=o.width),void 0===s&&(s=o.height);var a=n(r,"isNotEmpty",!1),h=n(r,"isColliding",!1),l=n(r,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(s+=e,e=0),t+i>o.width&&(i=Math.max(o.width-t,0)),e+s>o.height&&(s=Math.max(o.height-e,0));for(var u=[],c=e;c=0;o--)t[o][e]=i+a*n,a++;return t}},function(t,e,i){var n,s,r,o=i(29),a=i(165),h=[],l=!1;t.exports={create2D:function(t,e,i){return n(t,e,i,o.CANVAS)},create:n=function(t,e,i,n,r){var u;void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=o.CANVAS),void 0===r&&(r=!1);var c=s(n);return null===c?(c={parent:t,canvas:document.createElement("canvas"),type:n},n===o.CANVAS&&h.push(c),u=c.canvas):(c.parent=t,u=c.canvas),r&&(c.parent=u),u.width=e,u.height=i,l&&n===o.CANVAS&&a.disable(u.getContext("2d")),u},createWebGL:function(t,e,i){return n(t,e,i,o.WEBGL)},disableSmoothing:function(){l=!0},enableSmoothing:function(){l=!1},first:s=function(t){if(void 0===t&&(t=o.CANVAS),t===o.WEBGL)return null;for(var e=0;e0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):n||r?s.TAU-(r>0?Math.acos(-n/this.scaleY):-Math.acos(n/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,e){var i=this.matrix;return i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5],this},scale:function(t,e){var i=this.matrix;return i[0]*=t,i[1]*=t,i[2]*=e,i[3]*=e,this},rotate:function(t){var e=Math.sin(t),i=Math.cos(t),n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3];return n[0]=s*i+o*e,n[1]=r*i+a*e,n[2]=s*-e+o*i,n[3]=r*-e+a*i,this},multiply:function(t,e){var i=this.matrix,n=t.matrix,s=i[0],r=i[1],o=i[2],a=i[3],h=i[4],l=i[5],u=n[0],c=n[1],d=n[2],f=n[3],p=n[4],g=n[5],v=void 0===e?this:e;return v.a=u*s+c*o,v.b=u*r+c*a,v.c=d*s+f*o,v.d=d*r+f*a,v.e=p*s+g*o+h,v.f=p*r+g*a+l,v},multiplyWithOffset:function(t,e,i){var n=this.matrix,s=t.matrix,r=n[0],o=n[1],a=n[2],h=n[3],l=e*r+i*a+n[4],u=e*o+i*h+n[5],c=s[0],d=s[1],f=s[2],p=s[3],g=s[4],v=s[5];return n[0]=c*r+d*a,n[1]=c*o+d*h,n[2]=f*r+p*a,n[3]=f*o+p*h,n[4]=g*r+v*a+l,n[5]=g*o+v*h+u,this},transform:function(t,e,i,n,s,r){var o=this.matrix,a=o[0],h=o[1],l=o[2],u=o[3],c=o[4],d=o[5];return o[0]=t*a+e*l,o[1]=t*h+e*u,o[2]=i*a+n*l,o[3]=i*h+n*u,o[4]=s*a+r*l+c,o[5]=s*h+r*u+d,this},transformPoint:function(t,e,i){void 0===i&&(i={x:0,y:0});var n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3],h=n[4],l=n[5];return i.x=t*s+e*o+h,i.y=t*r+e*a+l,i},invert:function(){var t=this.matrix,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=e*s-i*n;return t[0]=s/a,t[1]=-i/a,t[2]=-n/a,t[3]=e/a,t[4]=(n*o-s*r)/a,t[5]=-(e*o-i*r)/a,this},copyFrom:function(t){var e=this.matrix;return e[0]=t.a,e[1]=t.b,e[2]=t.c,e[3]=t.d,e[4]=t.e,e[5]=t.f,this},copyFromArray:function(t){var e=this.matrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],this},copyToContext:function(t){var e=this.matrix;return t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t},setToContext:function(t){var e=this.matrix;return t.setTransform(e[0],e[1],e[2],e[3],e[4],e[5]),t},copyToArray:function(t){var e=this.matrix;return void 0===t?t=[e[0],e[1],e[2],e[3],e[4],e[5]]:(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]),t},setTransform:function(t,e,i,n,s,r){var o=this.matrix;return o[0]=t,o[1]=e,o[2]=i,o[3]=n,o[4]=s,o[5]=r,this},decomposeMatrix:function(){var t=this.decomposedMatrix,e=this.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(t.translateX=e[4],t.translateY=e[5],i||n){var a=Math.sqrt(i*i+n*n);t.rotation=n>0?Math.acos(i/a):-Math.acos(i/a),t.scaleX=a,t.scaleY=o/a}else if(s||r){var h=Math.sqrt(s*s+r*r);t.rotation=.5*Math.PI-(r>0?Math.acos(-s/h):-Math.acos(s/h)),t.scaleX=o/h,t.scaleY=h}else t.rotation=0,t.scaleX=0,t.scaleY=0;return t},applyITRS:function(t,e,i,n,s){var r=this.matrix,o=Math.sin(i),a=Math.cos(i);return r[4]=t,r[5]=e,r[0]=a*n,r[1]=o*n,r[2]=-o*s,r[3]=a*s,this},applyInverse:function(t,e,i){void 0===i&&(i=new r);var n=this.matrix,s=n[0],o=n[1],a=n[2],h=n[3],l=n[4],u=n[5],c=1/(s*h+a*-o);return i.x=h*c*t+-a*c*e+(u*a-l*h)*c,i.y=s*c*e+-o*c*t+(-u*s+l*o)*c,i},getX:function(t,e){return t*this.a+e*this.c+this.e},getY:function(t,e){return t*this.b+e*this.d+this.f},getCSSMatrix:function(){var t=this.matrix;return"matrix("+t[0]+","+t[1]+","+t[2]+","+t[3]+","+t[4]+","+t[5]+")"},destroy:function(){this.matrix=null,this.decomposedMatrix=null}});t.exports=o},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(56),a=new n({Extends:r,Mixins:[s.AlphaSingle,s.BlendMode,s.ComputedSize,s.Depth,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Transform,s.Visible],initialize:function(t,e,i){void 0===e&&(e="Shape"),r.call(this,t,e),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.initPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]}});t.exports=a},function(t,e){t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},function(t,e,i){var n=i(0),s=i(163),r=i(294),o=i(164),a=i(295),h=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,n)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(t,e,i,n,s){return void 0===n&&(n=255),void 0===s&&(s=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=n,this._locked=!1,this.update(s)},setGLTo:function(t,e,i,n){return void 0===n&&(n=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=n,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return o(t,e,i,this)},update:function(t){if(void 0===t&&(t=!1),this._locked)return this;var e=this.r,i=this.g,n=this.b,o=this.a;return this._color=s(e,i,n),this._color32=r(e,i,n,o),this._rgba="rgba("+e+","+i+","+n+","+o/255+")",t&&a(e,i,n,this),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return a(t,e,i,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),n=Math.floor(t+Math.random()*(e-t)),s=Math.floor(t+Math.random()*(e-t));return this.setTo(i,n,s)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t));return this.setTo(i,i,i)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,n=this.b;return e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),n=Math.max(0,Math.min(255,n-Math.round(-t/100*255))),this.setTo(e,i,n)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,o(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,o(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,o(this._h,this._s,t,this)}}});t.exports=h},function(t,e){t.exports=function(t,e,i,n,s,r){var o;void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=1);var a=0,h=t.length;if(1===r)for(o=s;o=0;o--)t[o][e]+=i+a*n,a++;return t}},function(t,e,i){var n=i(15);t.exports=function(t){return t*n.DEG_TO_RAD}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.fillColor,r=n||e.fillAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.fillStyle="rgba("+o+","+a+","+h+","+r+")"}},,function(t,e){t.exports=function(t){return t.y+t.height-t.height*t.originY}},function(t,e){t.exports=function(t,e){return t.y=e+t.height*t.originY,t}},function(t,e){t.exports=function(t){return t.x-t.width*t.originX}},function(t,e){t.exports=function(t,e){return t.x=e+t.width*t.originX,t}},function(t,e){t.exports=function(t){return t.x+t.width-t.width*t.originX}},function(t,e){t.exports=function(t,e){return t.x=e-t.width+t.width*t.originX,t}},function(t,e){t.exports=function(t,e){return t.y=e-t.height+t.height*t.originY,t}},function(t,e){t.exports=function(t){return t.y-t.height*t.originY}},function(t,e){t.exports={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6}},function(t,e){t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&t.x<=e&&t.x+t.width>=e&&t.y<=i&&t.y+t.height>=i}},function(t,e,i){t.exports={DESTROY:i(647),FADE_IN_COMPLETE:i(648),FADE_IN_START:i(649),FADE_OUT_COMPLETE:i(650),FADE_OUT_START:i(651),FLASH_COMPLETE:i(652),FLASH_START:i(653),PAN_COMPLETE:i(654),PAN_START:i(655),POST_RENDER:i(656),PRE_RENDER:i(657),SHAKE_COMPLETE:i(658),SHAKE_START:i(659),ZOOM_COMPLETE:i(660),ZOOM_START:i(661)}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.strokeColor,r=n||e.strokeAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.strokeStyle="rgba("+o+","+a+","+h+","+r+")",t.lineWidth=e.lineWidth}},function(t,e){t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},function(t,e,i){var n=i(138),s=i(24);t.exports=function(t,e,i,r,o){for(var a=null,h=null,l=null,u=null,c=s(t,e,i,r,null,o),d=0;d0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},function(t,e,i){var n=i(0),s=i(274),r=i(151),o=i(46),a=i(152),h=i(3),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=n},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return r(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this},getPointA:function(t){return void 0===t&&(t=new h),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new h),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=l},function(t,e){t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},function(t,e){t.exports=function(t,e,i){var n=i-e;return e+((t-e)%n+n)%n}},function(t,e,i){t.exports={COMPLETE:i(885),DECODED:i(886),DECODED_ALL:i(887),DESTROY:i(888),DETUNE:i(889),GLOBAL_DETUNE:i(890),GLOBAL_MUTE:i(891),GLOBAL_RATE:i(892),GLOBAL_VOLUME:i(893),LOOP:i(894),LOOPED:i(895),MUTE:i(896),PAUSE_ALL:i(897),PAUSE:i(898),PLAY:i(899),RATE:i(900),RESUME_ALL:i(901),RESUME:i(902),SEEK:i(903),STOP_ALL:i(904),STOP:i(905),UNLOCKED:i(906),VOLUME:i(907)}},function(t,e,i){var n=i(0),s=i(20),r=i(21),o=i(8),a=i(2),h=i(6),l=i(7),u=new n({Extends:r,initialize:function(t,e,i,n,o){var u="json";if(l(e)){var c=e;e=a(c,"key"),i=a(c,"url"),n=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"dataKey",o)}var d={type:"json",cache:t.cacheManager.json,extension:u,responseType:"text",key:e,url:i,xhrSettings:n,config:o};r.call(this,t,d),l(i)&&(this.data=o?h(i,o):i,this.state=s.FILE_POPULATED)},onProcess:function(){if(this.state!==s.FILE_POPULATED){this.state=s.FILE_PROCESSING;var t=JSON.parse(this.xhrLoader.responseText),e=this.config;this.data="string"==typeof e?h(t,e,t):t}this.onProcessComplete()}});o.register("json",function(t,e,i,n){if(Array.isArray(t))for(var s=0;s80*i){n=h=t[0],a=l=t[1];for(var T=i;Th&&(h=u),f>l&&(l=f);g=0!==(g=Math.max(h-n,l-a))?1/g:0}return o(y,x,i,n,a,g),x}function s(t,e,i,n,s){var r,o;if(s===A(t,e,i,n)>0)for(r=e;r=e;r-=n)o=E(r,t[r],t[r+1],o);return o&&y(o,o.next)&&(_(o),o=o.next),o}function r(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!y(n,n.next)&&0!==m(n.prev,n,n.next))n=n.next;else{if(_(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function o(t,e,i,n,s,c,d){if(t){!d&&c&&function(t,e,i,n){var s=t;do{null===s.z&&(s.z=f(s.x,s.y,e,i,n)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next}while(s!==t);s.prevZ.nextZ=null,s.prevZ=null,function(t){var e,i,n,s,r,o,a,h,l=1;do{for(i=t,t=null,r=null,o=0;i;){for(o++,n=i,a=0,e=0;e0||h>0&&n;)0!==a&&(0===h||!n||i.z<=n.z)?(s=i,i=i.nextZ,a--):(s=n,n=n.nextZ,h--),r?r.nextZ=s:t=s,s.prevZ=r,r=s;i=n}r.nextZ=null,l*=2}while(o>1)}(s)}(t,n,s,c);for(var p,g,v=t;t.prev!==t.next;)if(p=t.prev,g=t.next,c?h(t,n,s,c):a(t))e.push(p.i/i),e.push(t.i/i),e.push(g.i/i),_(t),t=g.next,v=g.next;else if((t=g)===v){d?1===d?o(t=l(t,e,i),e,i,n,s,c,2):2===d&&u(t,e,i,n,s,c):o(r(t),e,i,n,s,c,1);break}}}function a(t){var e=t.prev,i=t,n=t.next;if(m(e,i,n)>=0)return!1;for(var s=t.next.next;s!==t.prev;){if(g(e.x,e.y,i.x,i.y,n.x,n.y,s.x,s.y)&&m(s.prev,s,s.next)>=0)return!1;s=s.next}return!0}function h(t,e,i,n){var s=t.prev,r=t,o=t.next;if(m(s,r,o)>=0)return!1;for(var a=s.xr.x?s.x>o.x?s.x:o.x:r.x>o.x?r.x:o.x,u=s.y>r.y?s.y>o.y?s.y:o.y:r.y>o.y?r.y:o.y,c=f(a,h,e,i,n),d=f(l,u,e,i,n),p=t.prevZ,v=t.nextZ;p&&p.z>=c&&v&&v.z<=d;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;p&&p.z>=c;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;v&&v.z<=d;){if(v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function l(t,e,i){var n=t;do{var s=n.prev,r=n.next.next;!y(s,r)&&x(s,n,n.next,r)&&T(s,r)&&T(r,s)&&(e.push(s.i/i),e.push(n.i/i),e.push(r.i/i),_(n),_(n.next),n=t=r),n=n.next}while(n!==t);return n}function u(t,e,i,n,s,a){var h=t;do{for(var l=h.next.next;l!==h.prev;){if(h.i!==l.i&&v(h,l)){var u=w(h,l);return h=r(h,h.next),u=r(u,u.next),o(h,e,i,n,s,a),void o(u,e,i,n,s,a)}l=l.next}h=h.next}while(h!==t)}function c(t,e){return t.x-e.x}function d(t,e){if(e=function(t,e){var i,n=e,s=t.x,r=t.y,o=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){var a=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=s&&a>o){if(o=a,a===s){if(r===n.y)return n;if(r===n.next.y)return n.next}i=n.x=n.x&&n.x>=u&&s!==n.x&&g(ri.x)&&T(n,t)&&(i=n,d=h),n=n.next;return i}(t,e)){var i=w(e,t);r(i,i.next)}}function f(t,e,i,n,s){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*s)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*s)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,i=t;do{e.x=0&&(t-o)*(n-a)-(i-o)*(e-a)>=0&&(i-o)*(r-a)-(s-o)*(n-a)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&x(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&T(t,e)&&T(e,t)&&function(t,e){var i=t,n=!1,s=(t.x+e.x)/2,r=(t.y+e.y)/2;do{i.y>r!=i.next.y>r&&i.next.y!==i.y&&s<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)}function m(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,i,n){return!!(y(t,e)&&y(i,n)||y(t,n)&&y(i,e))||m(t,e,i)>0!=m(t,e,n)>0&&m(i,n,t)>0!=m(i,n,e)>0}function T(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function w(t,e){var i=new b(t.i,t.x,t.y),n=new b(e.i,e.x,e.y),s=t.next,r=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,n.next=i,i.prev=n,r.next=n,n.prev=r,n}function E(t,e,i,n){var s=new b(t,e,i);return n?(s.next=n.next,s.prev=n,n.next.prev=s,n.next=s):(s.prev=s,s.next=s),s}function _(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function b(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function A(t,e,i,n){for(var s=0,r=e,o=i-n;r0&&(n+=t[s-1].length,i.holes.push(n))}return i}},function(t,e){t.exports=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i]=t[i].slice(0):e[i]=t[i];return e}},function(t,e){t.exports=function(t,e,i,n){var s=t.length;if(e<0||e>s||e>=i||i>s||e+i>s){if(n)throw new Error("Range Error: Values outside acceptable range");return!1}return!0}},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(963),a=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Size,s.TextureCrop,s.Tint,s.Transform,s.Visible,o],initialize:function(t,e,i,n,o){r.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s.Animation(this),this.setTexture(n,o),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline()},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e,i){return this.anims.play(t,e,i),this},toJSON:function(){return s.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=a},function(t,e,i){var n=i(167),s=i(180);t.exports=function(t,e){var i=n.Power0;if("string"==typeof t)if(n.hasOwnProperty(t))i=n[t];else{var r="";t.indexOf(".")&&("in"===(r=t.substr(t.indexOf(".")+1)).toLowerCase()?r="easeIn":"out"===r.toLowerCase()?r="easeOut":"inout"===r.toLowerCase()&&(r="easeInOut")),t=s(t.substr(0,t.indexOf(".")+1)+r),n.hasOwnProperty(t)&&(i=n[t])}else"function"==typeof t?i=t:Array.isArray(t)&&t.length;if(!e)return i;var o=e.slice(0);return o.unshift(0),function(t){return o[0]=t,i.apply(this,o)}}},function(t,e,i){var n=i(10);t.exports=function(t,e,i,s,r){var o=t.strokeTint,a=n.getTintAppendFloatAlphaAndSwap(e.strokeColor,e.strokeAlpha*i);o.TL=a,o.TR=a,o.BL=a,o.BR=a;var h=e.pathData,l=h.length-1,u=e.lineWidth,c=u/2,d=h[0]-s,f=h[1]-r;e.closePath||(l-=2);for(var p=2;p=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}}});t.exports=u},function(t,e,i){var n=i(0),s=i(20),r=i(21),o=i(8),a=i(2),h=i(7),l=new n({Extends:r,initialize:function t(e,i,n,s,o){var l,u="png";if(h(i)){var c=i;i=a(c,"key"),n=a(c,"url"),l=a(c,"normalMap"),s=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"frameConfig")}Array.isArray(n)&&(l=n[1],n=n[0]);var d={type:"image",cache:e.textureManager,extension:u,responseType:"blob",key:i,url:n,xhrSettings:s,config:o};if(r.call(this,e,d),l){var f=new t(e,this.key,l,s,o);f.type="normalMap",this.setLink(f),e.addFile(f)}},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){r.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(t.data),t.onProcessError()},r.createObjectURL(this.data,this.xhrLoader.response,"image/png")},addToCache:function(){var t,e=this.linkFile;e&&e.state===s.FILE_COMPLETE?(t="image"===this.type?this.cache.addImage(this.key,this.data,e.data):this.cache.addImage(e.key,e.data,this.data),this.pendingDestroy(t),e.pendingDestroy(t)):e||(t=this.cache.addImage(this.key,this.data),this.pendingDestroy(t))}});o.register("image",function(t,e,i){if(Array.isArray(t))for(var n=0;nthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=t.properties,this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldX(this.x,t):this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldY(this.y,t)-(this.height-this.baseHeight)*e.scaleY:this.y*this.baseHeight-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return void 0===e&&(e=new r),e.x=this.getLeft(),e.y=this.getTop(),e.width=this.getRight()-e.x,e.height=this.getBottom()-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},intersects:function(t,e,i,n){return!(i<=this.pixelX||n<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){(void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,n,s){(void 0===e&&(e=t),void 0===i&&(i=t),void 0===n&&(n=t),void 0===s&&(s=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=n,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=n,s)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,n){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==n&&(this.baseHeight=n),this.updatePixelXY(),this},updatePixelXY:function(){return"orthogonal"===this.layer.orientation?(this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight):"isometric"===this.layer.orientation&&(this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5),this},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.layer.tilemapLayer;if(t){var e=t.gidMap[this.index];if(e)return e}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=o},function(t,e){t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},function(t,e){t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},function(t,e){t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},function(t,e){t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},function(t,e){t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,n=t[e],s=e;si&&(e=i/2);var n=Math.max(1,Math.round(i/e));return s(this.getSpacedPoints(n),t)},getDistancePoints:function(t){var e=this.getLength(),i=Math.max(1,e/t);return this.getSpacedPoints(i)},getEndPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(1,t)},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],n=this.getPoint(0,this._tmpVec2A),s=0;i.push(0);for(var r=1;r<=t;r++)s+=(e=this.getPoint(r/t,this._tmpVec2B)).distance(n),i.push(s),n.copy(e);return this.cacheArcLengths=i,i},getPointAt:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++)i.push(this.getPoint(n/t));return i},getRandomPoint:function(t){return void 0===t&&(t=new o),this.getPoint(Math.random(),t)},getSpacedPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++){var s=this.getUtoTmapping(n/t,null,t);i.push(this.getPoint(s))}return i},getStartPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(0,t)},getTangent:function(t,e){void 0===e&&(e=new o);var i=t-1e-4,n=t+1e-4;return i<0&&(i=0),n>1&&(n=1),this.getPoint(i,this._tmpVec2A),this.getPoint(n,e),e.subtract(this._tmpVec2A).normalize()},getTangentAt:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)},getTFromDistance:function(t,e){return t<=0?0:this.getUtoTmapping(0,t,e)},getUtoTmapping:function(t,e,i){var n,s=this.getLengths(i),r=0,o=s.length;n=e?Math.min(e,s[o-1]):t*s[o-1];for(var a,h=0,l=o-1;h<=l;)if((a=s[r=Math.floor(h+(l-h)/2)]-n)<0)h=r+1;else{if(!(a>0)){l=r;break}l=r-1}if(s[r=l]===n)return r/(o-1);var u=s[r];return(r+(n-u)/(s[r+1]-u))/(o-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});t.exports=a},function(t,e,i){t.exports={ADD:i(864),COMPLETE:i(865),FILE_COMPLETE:i(866),FILE_KEY_COMPLETE:i(867),FILE_LOAD_ERROR:i(868),FILE_LOAD:i(869),FILE_PROGRESS:i(870),POST_PROCESS:i(871),PROGRESS:i(872),START:i(873)}},function(t,e){t.exports=function(t,e,i){var n=t.x3-t.x1,s=t.y3-t.y1,r=t.x2-t.x1,o=t.y2-t.y1,a=e-t.x1,h=i-t.y1,l=n*n+s*s,u=n*r+s*o,c=n*a+s*h,d=r*r+o*o,f=r*a+o*h,p=l*d-u*u,g=0===p?0:1/p,v=(d*c-u*f)*g,m=(l*f-u*c)*g;return v>=0&&m>=0&&v+m<1}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.x1,r=t.y1,o=t.x2,a=t.y2,h=e.x1,l=e.y1,u=e.x2,c=e.y2,d=(u-h)*(r-l)-(c-l)*(s-h),f=(o-s)*(r-l)-(a-r)*(s-h),p=(c-l)*(o-s)-(u-h)*(a-r);if(0===p)return!1;var g=d/p,v=f/p;return g>=0&&g<=1&&v>=0&&v<=1&&(i.x=s+g*(o-s),i.y=r+g*(a-r),!0)}},function(t,e){t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},,function(t,e,i){var n=i(22);t.exports=function(t,e,i){return(i-e)*(t=n(t,0,1))}},function(t,e){t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},function(t,e){t.exports={CREATED:0,INIT:1,DELAY:2,OFFSET_DELAY:3,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING_ADD:20,PAUSED:21,LOOP_DELAY:22,ACTIVE:23,COMPLETE_DELAY:24,PENDING_REMOVE:25,REMOVED:26}},function(t,e,i){t.exports={DESTROY:i(582),VIDEO_COMPLETE:i(583),VIDEO_CREATED:i(584),VIDEO_ERROR:i(585),VIDEO_LOOP:i(586),VIDEO_PLAY:i(587),VIDEO_SEEKED:i(588),VIDEO_SEEKING:i(589),VIDEO_STOP:i(590),VIDEO_TIMEOUT:i(591),VIDEO_UNLOCKED:i(592)}},function(t,e,i){var n=i(0),s=i(11),r=i(35),o=i(9),a=i(48),h=i(12),l=i(30),u=i(162),c=i(3),d=new n({Extends:o,Mixins:[s.Alpha,s.Visible],initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.resolution=1,this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=t,this._y=e,this._cx=0,this._cy=0,this._cw=0,this._ch=0,this._width=i,this._height=n,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoom=1,this._rotation=0,this.matrix=new l,this.transparent=!0,this.backgroundColor=u("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new c(i/2,n/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new c);var n=.5*this.width,s=.5*this.height;return i.x=t-n,i.y=e-s,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){if(this.useBounds){var t=this._bounds,e=.5*this.width,i=.5*this.height;this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i}return this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(!o)return t;var a=e[4],h=e[5],l=this.scrollX,u=this.scrollY,c=this.width,d=this.height,f=this.culledObjects,p=t.length;o=1/o,f.length=0;for(var g=0;gC&&wA&&Es&&(t=s),t},clampY:function(t){var e=this._bounds,i=this.displayHeight,n=e.y+(i-this.height)/2,s=Math.max(n,n+e.height-i);return ts&&(t=s),t},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(t){return void 0===t&&(t=0),this.rotation=r(t),this},setBackgroundColor:function(t){return void 0===t&&(t="rgba(0,0,0,0)"),this.backgroundColor=u(t),this.transparent=0===this.backgroundColor.alpha,this},setBounds:function(t,e,i,n,s){return void 0===s&&(s=!1),this._bounds.setTo(t,e,i,n),this.dirty=!0,this.useBounds=!0,s?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(t){void 0===t&&(t=new h);var e=this._bounds;return t.setTo(e.x,e.y,e.width,e.height),t},setName:function(t){return void 0===t&&(t=""),this.name=t,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setRoundPixels:function(t){return this.roundPixels=t,this},setScene:function(t){this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=t;var e=t.sys;this.sceneManager=e.game.scene,this.scaleManager=e.scale,this.cameraManager=e.cameras;var i=this.scaleManager.resolution;return this.resolution=i,this._cx=this._x*i,this._cy=this._y*i,this._cw=this._width*i,this._ch=this._height*i,this.updateSystem(),this},setScroll:function(t,e){return void 0===e&&(e=t),this.scrollX=t,this.scrollY=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},setViewport:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setZoom:function(t){return void 0===t&&(t=1),0===t&&(t=.001),this.zoom=t,this},setMask:function(t,e){return void 0===e&&(e=!0),this.mask=t,this._maskCamera=e?this.cameraManager.default:this,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var t={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(t.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),t},update:function(){},updateSystem:function(){if(this.scaleManager){var t=0!==this._x||0!==this._y||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,e=this.sceneManager;t&&!this._customViewport?e.customViewports++:!t&&this._customViewport&&e.customViewports--,this.dirty=!0,this._customViewport=t}},destroy:function(){this.emit(a.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(t){this._x=t,this._cx=t*this.resolution,this.updateSystem()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._cy=t*this.resolution,this.updateSystem()}},width:{get:function(){return this._width},set:function(t){this._width=t,this._cw=t*this.resolution,this.updateSystem()}},height:{get:function(){return this._height},set:function(t){this._height=t,this._ch=t*this.resolution,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(t){this._scrollX=t,this.dirty=!0}},scrollY:{get:function(){return this._scrollY},set:function(t){this._scrollY=t,this.dirty=!0}},zoom:{get:function(){return this._zoom},set:function(t){this._zoom=t,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=t,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoom}},displayHeight:{get:function(){return this.height/this.zoom}}});t.exports=d},function(t,e,i){t.exports={ENTER_FULLSCREEN:i(700),FULLSCREEN_FAILED:i(701),FULLSCREEN_UNSUPPORTED:i(702),LEAVE_FULLSCREEN:i(703),ORIENTATION_CHANGE:i(704),RESIZE:i(705)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=i(0),s=i(22),r=i(17),o=new n({initialize:function(t,e,i,n,s,r,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.glTexture=this.source.glTexture,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0}},this.setSize(r,o,n,s)},setSize:function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0),this.cutX=i,this.cutY=n,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var s=this.data,r=s.cut;r.x=i,r.y=n,r.w=t,r.h=e,r.r=i+t,r.b=n+e,s.sourceSize.w=t,s.sourceSize.h=e,s.spriteSourceSize.w=t,s.spriteSourceSize.h=e,s.radius=.5*Math.sqrt(t*t+e*e);var o=s.drawImage;return o.x=i,o.y=n,o.width=t,o.height=e,this.updateUVs()},setTrim:function(t,e,i,n,s,r){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=n,a.w=s,a.h=r,a.r=i+s,a.b=n+r,this.x=i,this.y=n,this.width=s,this.height=r,this.halfWidth=.5*s,this.halfHeight=.5*r,this.centerX=Math.floor(s/2),this.centerY=Math.floor(r/2),this.updateUVs()},setCropUVs:function(t,e,i,n,r,o,a){var h=this.cutX,l=this.cutY,u=this.cutWidth,c=this.cutHeight,d=this.realWidth,f=this.realHeight,p=h+(e=s(e,0,d)),g=l+(i=s(i,0,f)),v=n=s(n,0,d-e),m=r=s(r,0,f-i),y=this.data;if(y.trim){var x=y.spriteSourceSize,T=e+(n=s(n,0,u-e)),w=i+(r=s(r,0,c-i));if(!(x.rT||x.y>w)){var E=Math.max(x.x,e),_=Math.max(x.y,i),b=Math.min(x.r,T)-E,A=Math.min(x.b,w)-_;v=b,m=A,p=o?h+(u-(E-x.x)-b):h+(E-x.x),g=a?l+(c-(_-x.y)-A):l+(_-x.y),e=E,i=_,n=b,r=A}else p=0,g=0,v=0,m=0}else o&&(p=h+(u-e-n)),a&&(g=l+(c-i-r));var S=this.source.width,C=this.source.height;return t.u0=Math.max(0,p/S),t.v0=Math.max(0,g/C),t.u1=Math.min(1,(p+v)/S),t.v1=Math.min(1,(g+m)/C),t.x=e,t.y=i,t.cx=p,t.cy=g,t.cw=v,t.ch=m,t.width=n,t.height=r,t.flipX=o,t.flipY=a,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,n=this.cutHeight,s=this.data.drawImage;s.width=i,s.height=n;var r=this.source.width,o=this.source.height;return this.u0=t/r,this.v0=e/o,this.u1=(t+i)/r,this.v1=(e+n)/o,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new o(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=r(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.source=null,this.texture=null,this.glTexture=null,this.customData=null,this.data=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=o},function(t,e,i){var n=i(0),s=i(96),r=i(395),o=i(396),a=i(46),h=i(155),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=a.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=n},contains:function(t,e){return s(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=l},function(t,e){t.exports=function(t,e,i){if(t.width<=0||t.height<=0)return!1;var n=(e-t.x)/t.width,s=(i-t.y)/t.height;return(n*=n)+(s*=s)<.25}},function(t,e,i){var n=i(240),s=i(0),r=i(90),o=i(2),a=i(6),h=i(7),l=i(389),u=i(108),c=i(69),d=new s({initialize:function(t,e,i){i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?h(e[0])&&(i=e,e=null):h(e)&&(i=e,e=null),this.scene=t,this.children=new u(e),this.isParent=!0,this.type="Group",this.classType=o(i,"classType",c),this.name=o(i,"name",""),this.active=o(i,"active",!0),this.maxSize=o(i,"maxSize",-1),this.defaultKey=o(i,"defaultKey",null),this.defaultFrame=o(i,"defaultFrame",null),this.runChildUpdate=o(i,"runChildUpdate",!1),this.createCallback=o(i,"createCallback",null),this.removeCallback=o(i,"removeCallback",null),this.createMultipleCallback=o(i,"createMultipleCallback",null),this.internalCreateCallback=o(i,"internalCreateCallback",null),this.internalRemoveCallback=o(i,"internalRemoveCallback",null),i&&this.createMultiple(i)},create:function(t,e,i,n,s,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===n&&(n=this.defaultFrame),void 0===s&&(s=!0),void 0===r&&(r=!0),this.isFull())return null;var o=new this.classType(this.scene,t,e,i,n);return this.scene.sys.displayList.add(o),o.preUpdate&&this.scene.sys.updateList.add(o),o.visible=s,o.setActive(r),this.add(o),o},createMultiple:function(t){if(this.isFull())return[];Array.isArray(t)||(t=[t]);var e=[];if(t[0].key)for(var i=0;i=0;u--)if((l=d[u]).active===i){if(++c===e)break}else l=null;return l?("number"==typeof s&&(l.x=s),"number"==typeof r&&(l.y=r),l):n?this.create(s,r,o,a,h):null},get:function(t,e,i,n,s){return this.getFirst(!1,!0,t,e,i,n,s)},getFirstAlive:function(t,e,i,n,s,r){return this.getFirst(!0,t,e,i,n,s,r)},getFirstDead:function(t,e,i,n,s,r){return this.getFirst(!1,t,e,i,n,s,r)},playAnimation:function(t,e){return n.PlayAnimation(this.children.entries,t,e),this},isFull:function(){return-1!==this.maxSize&&this.children.size>=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;i=0&&t=0&&e-1&&this.entries.splice(e,1),this},dump:function(){console.group("Set");for(var t=0;t-1},union:function(t){var e=new n;return t.entries.forEach(function(t){e.set(t)}),this.entries.forEach(function(t){e.set(t)}),e},intersect:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)&&e.set(i)}),e},difference:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)||e.set(i)}),e},size:{get:function(){return this.entries.length},set:function(t){return t0;e--){var i=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[i],t[i]=n}return t}},function(t,e){t.exports=function(t,e,i){return(e-t)*i+t}},function(t,e,i){(function(e){var i={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=function(){var t=navigator.userAgent;/Windows/.test(t)?i.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?i.macOS=!0:/Android/.test(t)?i.android=!0:/Linux/.test(t)?i.linux=!0:/iP[ao]d|iPhone/i.test(t)?(i.iOS=!0,navigator.appVersion.match(/OS (\d+)/),i.iOSVersion=parseInt(RegExp.$1,10),i.iPhone=-1!==t.toLowerCase().indexOf("iphone"),i.iPad=-1!==t.toLowerCase().indexOf("ipad")):/Kindle/.test(t)||/\bKF[A-Z][A-Z]+/.test(t)||/Silk.*Mobile Safari/.test(t)?i.kindle=!0:/CrOS/.test(t)&&(i.chromeOS=!0),(/Windows Phone/i.test(t)||/IEMobile/i.test(t))&&(i.android=!1,i.iOS=!1,i.macOS=!1,i.windows=!0,i.windowsPhone=!0);var n=/Silk/.test(t);return(i.windows||i.macOS||i.linux&&!n||i.chromeOS)&&(i.desktop=!0),(i.windowsPhone||/Windows NT/i.test(t)&&/Touch/i.test(t))&&(i.desktop=!1),navigator.standalone&&(i.webApp=!0),void 0!==window.cordova&&(i.cordova=!0),void 0!==e&&e.versions&&e.versions.node&&(i.node=!0),i.node&&"object"==typeof e.versions&&(i.nodeWebkit=!!e.versions["node-webkit"],i.electron=!!e.versions.electron),void 0!==window.ejecta&&(i.ejecta=!0),/Crosswalk/.test(t)&&(i.crosswalk=!0),i.pixelRatio=window.devicePixelRatio||1,i}()}).call(this,i(726))},function(t,e,i){var n,s=i(116),r={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0};t.exports=(n=navigator.userAgent,/Edge\/\d+/.test(n)?r.edge=!0:/Chrome\/(\d+)/.test(n)&&!s.windowsPhone?(r.chrome=!0,r.chromeVersion=parseInt(RegExp.$1,10)):/Firefox\D+(\d+)/.test(n)?(r.firefox=!0,r.firefoxVersion=parseInt(RegExp.$1,10)):/AppleWebKit/.test(n)&&s.iOS?r.mobileSafari=!0:/MSIE (\d+\.\d+);/.test(n)?(r.ie=!0,r.ieVersion=parseInt(RegExp.$1,10)):/Opera/.test(n)?r.opera=!0:/Safari/.test(n)&&!s.windowsPhone?r.safari=!0:/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(n)&&(r.ie=!0,r.trident=!0,r.tridentVersion=parseInt(RegExp.$1,10),r.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(n)&&(r.silk=!0),r)},function(t,e){t.exports=function(t,e){return t>0&&0==(t&t-1)&&e>0&&0==(e&e-1)}},function(t,e,i){t.exports={ADD:i(776),ERROR:i(777),LOAD:i(778),READY:i(779),REMOVE:i(780)}},function(t,e){t.exports=function(t,e){var i;if(e)"string"==typeof e?i=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement)return t;return i||(i=document.body),i.appendChild(t),t}},function(t,e,i){var n=i(80);t.exports=function(t,e,i,s){var r;if(void 0===s&&(s=t),!Array.isArray(e))return-1!==(r=t.indexOf(e))?(n(t,r),i&&i.call(s,e),e):null;for(var o=e.length-1;o>=0;){var a=e[o];-1!==(r=t.indexOf(a))?(n(t,r),i&&i.call(s,a)):e.pop(),o--}return e}},function(t,e){t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},function(t,e){t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},function(t,e,i){var n=i(0),s=i(67),r=i(9),o=i(59),a=i(18),h=i(1),l=new n({Extends:r,initialize:function(t){r.call(this),this.game=t,this.jsonCache=t.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,t.events.on(a.BLUR,function(){this.pauseOnBlur&&this.onBlur()},this),t.events.on(a.FOCUS,function(){this.pauseOnBlur&&this.onFocus()},this),t.events.on(a.PRE_STEP,this.update,this),t.events.once(a.DESTROY,this.destroy,this)},add:h,addAudioSprite:function(t,e){void 0===e&&(e={});var i=this.add(t,e);for(var n in i.spritemap=this.jsonCache.get(t).spritemap,i.spritemap)if(i.spritemap.hasOwnProperty(n)){var r=s(e),o=i.spritemap[n];r.loop=!!o.hasOwnProperty("loop")&&o.loop,i.addMarker({name:n,start:o.start,duration:o.end-o.start,config:r})}return i},play:function(t,e){var i=this.add(t);return i.once(o.COMPLETE,i.destroy,i),e?e.name?(i.addMarker(e),i.play(e.name)):i.play(e):i.play()},playAudioSprite:function(t,e,i){var n=this.addAudioSprite(t);return n.once(o.COMPLETE,n.destroy,n),n.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;i>=0;i--){var n=this.sounds[i];n.key===t&&(n.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound(function(t){t.pause()}),this.emit(o.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(t){t.resume()}),this.emit(o.RESUME_ALL,this)},stopAll:function(){this.forEachActiveSound(function(t){t.stop()}),this.emit(o.STOP_ALL,this)},unlock:h,onBlur:h,onFocus:h,update:function(t,e){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(o.UNLOCKED,this));for(var i=this.sounds.length-1;i>=0;i--)this.sounds[i].pendingRemove&&this.sounds.splice(i,1);this.sounds.forEach(function(i){i.update(t,e)})},destroy:function(){this.removeAllListeners(),this.forEachActiveSound(function(t){t.destroy()}),this.sounds.length=0,this.sounds=null,this.game=null},forEachActiveSound:function(t,e){var i=this;this.sounds.forEach(function(n,s){n&&!n.pendingRemove&&t.call(e||i,n,s,i.sounds)})},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_DETUNE,this,t)}}});t.exports=l},function(t,e,i){var n=i(0),s=i(9),r=i(59),o=i(17),a=i(1),h=new n({Extends:s,initialize:function(t,e,i){s.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},this.currentConfig=this.config,this.config=o(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(console.error("addMarker "+t.name+" already exists in Sound"),!1):(t=o(!0,{name:"",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0}},t),this.markers[t.name]=t,!0))},updateMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(this.markers[t.name]=o(!0,this.markers[t.name],t),!0):(console.warn("Audio Marker: "+t.name+" missing in Sound: "+this.key),!1))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if(void 0===t&&(t=""),"object"==typeof t&&(e=t,t=""),"string"!=typeof t)return!1;if(t){if(!this.markers[t])return console.warn("Marker: "+t+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=o(this.currentConfig,e),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return!(this.isPaused||!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!0,!0)},resume:function(){return!(!this.isPaused||this.isPlaying)&&(this.isPlaying=!0,this.isPaused=!1,!0)},stop:function(){return!(!this.isPaused&&!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),!0)},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:a,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,e=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*e},destroy:function(){this.pendingRemove||(this.emit(r.DESTROY,this),this.pendingRemove=!0,this.manager=null,this.key="",this.removeAllListeners(),this.isPlaying=!1,this.isPaused=!1,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=h},function(t,e,i){var n=i(182),s=i(0),r=i(1),o=i(128),a=new s({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=r,this.removeCallback=r,this._sortKey=""},add:function(t,e){return e?n.Add(this.list,t):n.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?n.AddAt(this.list,t,e):n.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(t,e){return t?(void 0===e&&(e=function(e,i){return e[t]-i[t]}),o.inplace(this.list,e),this):this},getByName:function(t){return n.GetFirst(this.list,"name",t)},getRandom:function(t,e){return n.GetRandom(this.list,t,e)},getFirst:function(t,e,i,s){return n.GetFirst(this.list,t,e,i,s)},getAll:function(t,e,i,s){return n.GetAll(this.list,t,e,i,s)},count:function(t,e){return n.CountAllMatching(this.list,t,e)},swap:function(t,e){n.Swap(this.list,t,e)},moveTo:function(t,e){return n.MoveTo(this.list,t,e)},remove:function(t,e){return e?n.Remove(this.list,t):n.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?n.RemoveAt(this.list,t):n.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?n.RemoveBetween(this.list,t,e):n.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return n.BringToTop(this.list,t)},sendToBack:function(t){return n.SendToBack(this.list,t)},moveUp:function(t){return n.MoveUp(this.list,t),t},moveDown:function(t){return n.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return n.Shuffle(this.list),this},replace:function(t,e){return n.Replace(this.list,t,e)},exists:function(t){return this.list.indexOf(t)>-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){for(var i=[null],n=2;n0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});t.exports=a},function(t,e,i){var n=i(183),s=i(387);t.exports=function(t,e){if(void 0===e&&(e=90),!n(t))return null;if("string"!=typeof e&&(e=(e%360+360)%360),90===e||-270===e||"rotateLeft"===e)(t=s(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=s(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;il&&(r=l),o>l&&(o=l),a=s,h=r;;)if(a0&&o.length0&&a.lengthe.right||t.y>e.bottom)}},function(t,e,i){var n=i(6),s={},r={register:function(t,e,i,n,r){s[t]={plugin:e,mapping:i,settingsKey:n,configKey:r}},getPlugin:function(t){return s[t]},install:function(t){var e=t.scene.sys,i=e.settings.input,r=e.game.config;for(var o in s){var a=s[o].plugin,h=s[o].mapping,l=s[o].settingsKey,u=s[o].configKey;n(i,l,r[u])&&(t[h]=new a(t))}},remove:function(t){s.hasOwnProperty(t)&&delete s[t]}};t.exports=r},function(t,e,i){t.exports={ANY_KEY_DOWN:i(1212),ANY_KEY_UP:i(1213),COMBO_MATCH:i(1214),DOWN:i(1215),KEY_DOWN:i(1216),KEY_UP:i(1217),UP:i(1218)}},function(t,e){t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===t&&(t=""),void 0===e&&(e=!0),void 0===i&&(i=""),void 0===n&&(n=""),void 0===s&&(s=0),void 0===r&&(r=!1),{responseType:t,async:e,user:i,password:n,timeout:s,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:r}}},function(t,e,i){var n=i(0),s=i(216),r=i(69),o=new n({Extends:r,Mixins:[s.Acceleration,s.Angular,s.Bounce,s.Debug,s.Drag,s.Enable,s.Friction,s.Gravity,s.Immovable,s.Mass,s.Size,s.Velocity],initialize:function(t,e,i,n,s){r.call(this,t,e,i,n,s),this.body=null}});t.exports=o},function(t,e,i){t.exports={CalculateFacesAt:i(219),CalculateFacesWithin:i(51),Copy:i(1310),CreateFromTiles:i(1311),CullTiles:i(1312),Fill:i(1313),FilterTiles:i(1314),FindByIndex:i(1315),FindTile:i(1316),ForEachTile:i(1317),GetTileAt:i(138),GetTileAtWorldXY:i(1318),GetTilesWithin:i(24),GetTilesWithinShape:i(1319),GetTilesWithinWorldXY:i(1320),HasTileAt:i(476),HasTileAtWorldXY:i(1321),IsInLayerBounds:i(103),PutTileAt:i(220),PutTileAtWorldXY:i(1322),PutTilesAt:i(1323),Randomize:i(1324),RemoveTileAt:i(477),RemoveTileAtWorldXY:i(1325),RenderDebug:i(1326),ReplaceByIndex:i(474),SetCollision:i(1327),SetCollisionBetween:i(1328),SetCollisionByExclusion:i(1329),SetCollisionByProperty:i(1330),SetCollisionFromCollisionGroup:i(1331),SetTileIndexCallback:i(1332),SetTileLocationCallback:i(1333),Shuffle:i(1334),SwapByIndex:i(1335),TileToWorldX:i(139),TileToWorldXY:i(1336),TileToWorldY:i(140),WeightedRandomize:i(1337),WorldToTileX:i(63),WorldToTileXY:i(475),WorldToTileY:i(64)}},function(t,e,i){var n=i(103);t.exports=function(t,e,i,s){if(void 0===i&&(i=!1),n(t,e,s)){var r=s.data[e][t]||null;return null===r?null:-1===r.index?i?r:null:r}return null}},function(t,e){t.exports=function(t,e,i){var n=i.orientation,s=i.baseTileWidth,r=i.tilemapLayer,o=0;return r&&(void 0===e&&(e=r.scene.cameras.main),o=r.x+e.scrollX*(1-r.scrollFactorX),s*=r.scaleX),"orthogonal"===n?o+t*s:"isometric"===n?(console.warn("With isometric map types you have to use the TileToWorldXY function."),null):void 0}},function(t,e){t.exports=function(t,e,i){var n=i.orientation,s=i.baseTileHeight,r=i.tilemapLayer,o=0;return r&&(void 0===e&&(e=r.scene.cameras.main),o=r.y+e.scrollY*(1-r.scrollFactorY),s*=r.scaleY),"orthogonal"===n?o+t*s:"isometric"===n?(console.warn("With isometric map types you have to use the TileToWorldXY function."),null):void 0}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o,a){(void 0===i||i<=0)&&(i=32),(void 0===n||n<=0)&&(n=32),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o={}),void 0===a&&(a={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=n,this.tileMargin=s,this.tileSpacing=r,this.tileProperties=o,this.tileData=a,this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){var e=this.getTileData(t);return e&&e.objectgroup?e.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&t=this.vertexCapacity},resize:function(t,e,i){return this.width=t*i,this.height=e*i,this.resolution=i,this},bind:function(){var t=this.gl,e=this.vertexBuffer,i=this.attributes,n=this.program,s=this.renderer,r=this.vertexSize;s.setProgram(n),s.setVertexBuffer(e);for(var o=0;o=0?(t.enableVertexAttribArray(h),t.vertexAttribPointer(h,a.size,a.type,a.normalized,r,a.offset)):-1!==h&&t.disableVertexAttribArray(h)}return this},onBind:function(){return this},onPreRender:function(){return this},onRender:function(){return this},onPostRender:function(){return this},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t=this.gl,e=this.vertexCount,i=this.topology,n=this.vertexSize;if(0!==e)return t.bufferSubData(t.ARRAY_BUFFER,0,this.bytes.subarray(0,e*n)),t.drawArrays(i,0,e),this.vertexCount=0,this.flushLocked=!1,this;this.flushLocked=!1},destroy:function(){var t=this.gl;return t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),delete this.program,delete this.vertexBuffer,delete this.gl,this},setFloat1:function(t,e){return this.renderer.setFloat1(this.program,t,e),this},setFloat2:function(t,e,i){return this.renderer.setFloat2(this.program,t,e,i),this},setFloat3:function(t,e,i,n){return this.renderer.setFloat3(this.program,t,e,i,n),this},setFloat4:function(t,e,i,n,s){return this.renderer.setFloat4(this.program,t,e,i,n,s),this},setFloat1v:function(t,e){return this.renderer.setFloat1v(this.program,t,e),this},setFloat2v:function(t,e){return this.renderer.setFloat2v(this.program,t,e),this},setFloat3v:function(t,e){return this.renderer.setFloat3v(this.program,t,e),this},setFloat4v:function(t,e){return this.renderer.setFloat4v(this.program,t,e),this},setInt1:function(t,e){return this.renderer.setInt1(this.program,t,e),this},setInt2:function(t,e,i){return this.renderer.setInt2(this.program,t,e,i),this},setInt3:function(t,e,i,n){return this.renderer.setInt3(this.program,t,e,i,n),this},setInt4:function(t,e,i,n,s){return this.renderer.setInt4(this.program,t,e,i,n,s),this},setMatrix2:function(t,e,i){return this.renderer.setMatrix2(this.program,t,e,i),this},setMatrix3:function(t,e,i){return this.renderer.setMatrix3(this.program,t,e,i),this},setMatrix4:function(t,e,i){return this.renderer.setMatrix4(this.program,t,e,i),this}});t.exports=r},,function(t,e,i){var n=i(4);t.exports=function(t,e,i){return void 0===i&&(i=new n),i.x=t.x+t.radius*Math.cos(e),i.y=t.y+t.radius*Math.sin(e),i}},function(t,e,i){var n=i(4);t.exports=function(t,e){void 0===e&&(e=new n);var i=2*Math.PI*Math.random(),s=Math.random()+Math.random(),r=s>1?2-s:s,o=r*Math.cos(i),a=r*Math.sin(i);return e.x=t.x+o*t.radius,e.y=t.y+a*t.radius,e}},function(t,e,i){var n=i(22),s=i(0),r=i(9),o=i(111),a=i(269),h=i(270),l=i(6),u=new s({Extends:r,initialize:function(t,e,i){r.call(this),this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,l(i,"frames",[]),l(i,"defaultTextureKey",null)),this.frameRate=l(i,"frameRate",null),this.duration=l(i,"duration",null),null===this.duration&&null===this.frameRate?(this.frameRate=24,this.duration=this.frameRate/this.frames.length*1e3):this.duration&&null===this.frameRate?this.frameRate=this.frames.length/(this.duration/1e3):this.duration=this.frames.length/this.frameRate*1e3,this.msPerFrame=1e3/this.frameRate,this.skipMissedFrames=l(i,"skipMissedFrames",!0),this.delay=l(i,"delay",0),this.repeat=l(i,"repeat",0),this.repeatDelay=l(i,"repeatDelay",0),this.yoyo=l(i,"yoyo",!1),this.showOnStart=l(i,"showOnStart",!1),this.hideOnComplete=l(i,"hideOnComplete",!1),this.paused=!1,this.manager.on(o.PAUSE_ALL,this.pause,this),this.manager.on(o.RESUME_ALL,this.resume,this)},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i=this.getFrames(this.manager.textureManager,e);if(i.length>0){if(0===t)this.frames=i.concat(this.frames);else if(t===this.frames.length)this.frames=this.frames.concat(i);else{var n=this.frames.slice(0,t),s=this.frames.slice(t);this.frames=n.concat(i,s)}this.updateFrameSequence()}return this},checkFrame:function(t){return t>=0&&t0){s.isLast=!0,s.nextFrame=a[0],a[0].prevFrame=s;var v=1/(a.length-1);for(r=0;r=this.frames.length&&(e=0),t.currentAnim!==this&&(t.currentAnim=this,t.frameRate=this.frameRate,t.duration=this.duration,t.msPerFrame=this.msPerFrame,t.skipMissedFrames=this.skipMissedFrames,t._delay=this.delay,t._repeat=this.repeat,t._repeatDelay=this.repeatDelay,t._yoyo=this.yoyo);var i=this.frames[e];0!==e||t.forward||(i=this.getLastFrame()),t.updateFrame(i)},getFrameByProgress:function(t){return t=n(t,0,1),a(t,this.frames,"progress")},nextFrame:function(t){var e=t.currentFrame;e.isLast?t._yoyo?this.handleYoyoFrame(t,!1):t.repeatCounter>0?t._reverse&&t.forward?t.forward=!1:this.repeatAnimation(t):this.completeAnimation(t):this.updateAndGetNextTick(t,e.nextFrame)},handleYoyoFrame:function(t,e){if(e||(e=!1),t._reverse===!e&&t.repeatCounter>0)return t.forward=e,void this.repeatAnimation(t);if(t._reverse===e||0!==t.repeatCounter){t.forward=e;var i=e?t.currentFrame.nextFrame:t.currentFrame.prevFrame;this.updateAndGetNextTick(t,i)}else this.completeAnimation(t)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(t){var e=t.currentFrame;e.isFirst?t._yoyo?this.handleYoyoFrame(t,!0):t.repeatCounter>0?t._reverse&&!t.forward?(t.currentFrame=this.getLastFrame(),this.repeatAnimation(t)):(t.forward=!0,this.repeatAnimation(t)):this.completeAnimation(t):this.updateAndGetNextTick(t,e.prevFrame)},updateAndGetNextTick:function(t,e){t.updateFrame(e),this.getNextTick(t)},removeFrame:function(t){var e=this.frames.indexOf(t);return-1!==e&&this.removeFrameAt(e),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop)return this.completeAnimation(t);if(t._repeatDelay>0&&!1===t.pendingRepeat)t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t._repeatDelay;else if(t.repeatCounter--,t.updateFrame(t.currentFrame[t.forward?"nextFrame":"prevFrame"]),t.isPlaying){this.getNextTick(t),t.pendingRepeat=!1;var e=t.currentFrame,i=t.parent;this.emit(o.ANIMATION_REPEAT,this,e),i.emit(o.SPRITE_ANIMATION_KEY_REPEAT+this.key,this,e,t.repeatCounter,i),i.emit(o.SPRITE_ANIMATION_REPEAT,this,e,t.repeatCounter,i)}},setFrame:function(t){t.forward?this.nextFrame(t):this.previousFrame(t)},toJSON:function(){var t={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showOnStart:this.showOnStart,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(e){t.frames.push(e.toJSON())}),t},updateFrameSequence:function(){for(var t,e=this.frames.length,i=1/(e-1),n=0;n1?(t.isLast=!0,t.prevFrame=this.frames[e-2],t.nextFrame=this.frames[0]):e>1&&(t.prevFrame=this.frames[n-1],t.nextFrame=this.frames[n+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.removeAllListeners(),this.manager.off(o.PAUSE_ALL,this.pause,this),this.manager.off(o.RESUME_ALL,this.resume,this),this.manager.remove(this.key);for(var t=0;t=1)return i.x=t.x,i.y=t.y,i;var r=n(t)*e;return e>.5?(r-=t.width+t.height)<=t.width?(i.x=t.right-r,i.y=t.bottom):(i.x=t.x,i.y=t.bottom-(r-t.width)):r<=t.width?(i.x=t.x+r,i.y=t.y):(i.x=t.right,i.y=t.y+(r-t.width)),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=n(t)/i);for(var o=t.x1,a=t.y1,h=t.x2,l=t.y2,u=0;u=1&&(a=1-a,h=1-h),e.x=t.x1+(i*a+r*h),e.y=t.y1+(s*a+o*h),e}},function(t,e){t.exports=function(t,e,i,n,s){var r=n+Math.atan2(t.y-i,t.x-e);return t.x=e+s*Math.cos(r),t.y=i+s*Math.sin(r),t}},function(t,e){t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},function(t,e){t.exports=function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){if(this.entries={},this.size=0,Array.isArray(t))for(var e=0;e=(t=t.toString()).length)switch(n){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var r=Math.ceil((s=e-t.length)/2);t=new Array(s-r+1).join(i)+t+new Array(r+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},function(t,e,i){var n=i(293),s=i(296),r=i(298),o=i(299);t.exports=function(t){switch(typeof t){case"string":return"rgb"===t.substr(0,3).toLowerCase()?o(t):n(t);case"number":return s(t);case"object":return r(t)}}},function(t,e){t.exports=function(t,e,i){return t<<16|e<<8|i}},function(t,e,i){var n=i(163);t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1);var r=Math.floor(6*t),o=6*t-r,a=Math.floor(i*(1-e)*255),h=Math.floor(i*(1-o*e)*255),l=Math.floor(i*(1-(1-o)*e)*255),u=i=Math.floor(i*=255),c=i,d=i,f=r%6;return 0===f?(c=l,d=a):1===f?(u=h,d=a):2===f?(u=a,d=l):3===f?(u=a,c=h):4===f?(u=l,c=a):5===f&&(c=a,d=h),s?s.setTo?s.setTo(u,c,d,s.alpha,!1):(s.r=u,s.g=c,s.b=d,s.color=n(u,c,d),s):{r:u,g:c,b:d,color:n(u,c,d)}}},function(t,e){var i,n="";t.exports={disable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!1),t},enable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!0),t},getPrefix:i=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i0&&(n=1/Math.sqrt(n),this.x=t*n,this.y=e*n,this.z=i*n),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z;return this.x=i*o-n*r,this.y=n*s-e*o,this.z=e*r-i*s,this},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this},transformMat3:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=e*s[0]+i*s[3]+n*s[6],this.y=e*s[1]+i*s[4]+n*s[7],this.z=e*s[2]+i*s[5]+n*s[8],this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12],this.y=s[1]*e+s[5]*i+s[9]*n+s[13],this.z=s[2]*e+s[6]*i+s[10]*n+s[14],this},transformCoordinates:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=e*s[0]+i*s[4]+n*s[8]+s[12],o=e*s[1]+i*s[5]+n*s[9]+s[13],a=e*s[2]+i*s[6]+n*s[10]+s[14],h=e*s[3]+i*s[7]+n*s[11]+s[15];return this.x=r/h,this.y=o/h,this.z=a/h,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},project:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=s[0],o=s[1],a=s[2],h=s[3],l=s[4],u=s[5],c=s[6],d=s[7],f=s[8],p=s[9],g=s[10],v=s[11],m=s[12],y=s[13],x=s[14],T=1/(e*h+i*d+n*v+s[15]);return this.x=(e*r+i*l+n*f+m)*T,this.y=(e*o+i*u+n*p+y)*T,this.z=(e*a+i*c+n*g+x)*T,this},unproject:function(t,e){var i=t.x,n=t.y,s=t.z,r=t.w,o=this.x-i,a=r-this.y-1-n,h=this.z;return this.x=2*o/s-1,this.y=2*a/r-1,this.z=2*h-1,this.project(e)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0,0),n.LEFT=new n(-1,0,0),n.UP=new n(0,-1,0),n.DOWN=new n(0,1,0),n.FORWARD=new n(0,0,1),n.BACK=new n(0,0,-1),n.ONE=new n(1,1,1),t.exports=n},function(t,e,i){t.exports={Global:["game","anims","cache","plugins","registry","scale","sound","textures"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]}},function(t,e,i){var n=i(12),s=i(15);t.exports=function(t,e){if(void 0===e&&(e=new n),0===t.length)return e;for(var i,r,o,a=Number.MAX_VALUE,h=Number.MAX_VALUE,l=s.MIN_SAFE_INTEGER,u=s.MIN_SAFE_INTEGER,c=0;c0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(t){return this.settings.visible=t,this},setActive:function(t,e){return t?this.resume(e):this.pause(e)},start:function(t){t&&(this.settings.data=t),this.settings.status=s.START,this.settings.active=!0,this.settings.visible=!0,this.events.emit(o.START,this),this.events.emit(o.READY,this,t)},shutdown:function(t){this.events.off(o.TRANSITION_INIT),this.events.off(o.TRANSITION_START),this.events.off(o.TRANSITION_COMPLETE),this.events.off(o.TRANSITION_OUT),this.settings.status=s.SHUTDOWN,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.SHUTDOWN,this,t)},destroy:function(){this.settings.status=s.DESTROYED,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.DESTROY,this),this.events.removeAllListeners();for(var t=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],e=0;e0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});t.exports=u},function(t,e,i){var n=i(182),s=i(52),r=i(0),o=i(11),a=i(90),h=i(13),l=i(12),u=i(950),c=i(391),d=i(3),f=new r({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.Transform,o.Visible,u],initialize:function(t,e,i,n){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._displayList=t.sys.displayList,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.setPosition(e,i),this.clearAlpha(),this.setBlendMode(s.SKIP_CHECK),n&&this.add(n)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return void 0===t&&(t=!0),this.exclusive=t,this},getBounds:function(t){if(void 0===t&&(t=new l),t.setTo(this.x,this.y,0,0),this.list.length>0)for(var e=this.list,i=new l,n=0;n-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){var i,n=[null],s=this.list.slice(),r=s.length;for(i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[],this._displayList=null}});t.exports=f},function(t,e,i){var n=i(129),s=i(0),r=i(955),o=new s({Extends:n,Mixins:[r],initialize:function(t,e,i,s,r,o,a){n.call(this,t,e,i,s,r,o,a),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=o},function(t,e,i){var n=i(91),s=i(0),r=i(191),o=i(268),a=i(271),h=i(272),l=i(276),u=i(154),c=i(281),d=i(282),f=i(279),p=i(30),g=i(95),v=i(13),m=i(2),y=i(6),x=i(15),T=i(961),w=new s({Extends:v,Mixins:[o,a,h,l,u,c,d,f,T],initialize:function(t,e){var i=y(e,"x",0),n=y(e,"y",0);v.call(this,t,"Graphics"),this.setPosition(i,n),this.initPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this._tempMatrix1=new p,this._tempMatrix2=new p,this._tempMatrix3=new p,this.setDefaultStyles(e)},setDefaultStyles:function(t){return y(t,"lineStyle",null)&&(this.defaultStrokeWidth=y(t,"lineStyle.width",1),this.defaultStrokeColor=y(t,"lineStyle.color",16777215),this.defaultStrokeAlpha=y(t,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),y(t,"fillStyle",null)&&(this.defaultFillColor=y(t,"fillStyle.color",16777215),this.defaultFillAlpha=y(t,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return void 0===i&&(i=1),this.commandBuffer.push(r.LINE_STYLE,t,e,i),this._lineWidth=t,this},fillStyle:function(t,e){return void 0===e&&(e=1),this.commandBuffer.push(r.FILL_STYLE,t,e),this},fillGradientStyle:function(t,e,i,n,s){return void 0===s&&(s=1),this.commandBuffer.push(r.GRADIENT_FILL_STYLE,s,t,e,i,n),this},lineGradientStyle:function(t,e,i,n,s,o){return void 0===o&&(o=1),this.commandBuffer.push(r.GRADIENT_LINE_STYLE,t,o,e,i,n,s),this},setTexture:function(t,e,i){if(void 0===i&&(i=0),void 0===t)this.commandBuffer.push(r.CLEAR_TEXTURE);else{var n=this.scene.sys.textures.getFrame(t,e);n&&(2===i&&(i=3),this.commandBuffer.push(r.SET_TEXTURE,n,i))}return this},beginPath:function(){return this.commandBuffer.push(r.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(r.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(r.FILL_PATH),this},fill:function(){return this.commandBuffer.push(r.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(r.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(r.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,n){return this.commandBuffer.push(r.FILL_RECT,t,e,i,n),this},strokeRect:function(t,e,i,n){var s=this._lineWidth/2,r=t-s,o=t+s;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+n),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+n),this.strokePath(),this.beginPath(),this.moveTo(r,e),this.lineTo(o+i,e),this.strokePath(),this.beginPath(),this.moveTo(r,e+n),this.lineTo(o+i,e+n),this.strokePath(),this},fillRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.fillPath(),this},strokeRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(r.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.FILL_TRIANGLE,t,e,i,n,s,o),this},strokeTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.STROKE_TRIANGLE,t,e,i,n,s,o),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,n){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,n),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(r.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(r.MOVE_TO,t,e),this},strokePoints:function(t,e,i,n){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var s=1;s-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(t,e,i){var n,s,r=this.scene.sys,o=r.game.renderer;if(void 0===e&&(e=r.scale.width),void 0===i&&(i=r.scale.height),w.TargetCamera.setScene(this.scene),w.TargetCamera.setViewport(0,0,e,i),w.TargetCamera.scrollX=this.x,w.TargetCamera.scrollY=this.y,"string"==typeof t)if(r.textures.exists(t)){var a=(n=r.textures.get(t)).getSourceImage();a instanceof HTMLCanvasElement&&(s=a.getContext("2d"))}else s=(n=r.textures.createCanvas(t,e,i)).getSourceImage().getContext("2d");else t instanceof HTMLCanvasElement&&(s=t.getContext("2d"));return s&&(this.renderCanvas(o,this,0,w.TargetCamera,null,s,!1),n&&n.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});w.TargetCamera=new n,t.exports=w},function(t,e){t.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,SET_TEXTURE:19,CLEAR_TEXTURE:20,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.width/2,r=t.height/2;return i.x=t.x+s*Math.cos(e),i.y=t.y+r*Math.sin(e),i}},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(399),a=i(126),h=i(401),l=i(971),u=new n({Extends:r,Mixins:[s.Depth,s.Mask,s.Pipeline,s.Transform,s.Visible,l],initialize:function(t,e,i,n){if(r.call(this,t,"ParticleEmitterManager"),this.blendMode=-1,this.timeScale=1,this.texture=null,this.frame=null,this.frameNames=[],null===i||"object"!=typeof i&&!Array.isArray(i)||(n=i,i=null),this.setTexture(e,i),this.initPipeline(),this.emitters=new a(this),this.wells=new a(this),n){Array.isArray(n)||(n=[n]);for(var s=0;s0?e.defaultFrame=i[0]:e.defaultFrame=this.defaultFrame,this},addEmitter:function(t){return this.emitters.add(t)},createEmitter:function(t){return this.addEmitter(new h(this,t))},removeEmitter:function(t){return this.emitters.remove(t,!0)},addGravityWell:function(t){return this.wells.add(t)},createGravityWell:function(t){return this.addGravityWell(new o(t))},emitParticle:function(t,e,i){for(var n=this.emitters.list,s=0;ss.width&&(t=s.width-this.frame.cutX),this.frame.cutY+e>s.height&&(e=s.height-this.frame.cutY),this.frame.setSize(t,e,this.frame.cutX,this.frame.cutY)}this.updateDisplayOrigin();var r=this.input;return r&&!r.customHitArea&&(r.hitArea.width=t,r.hitArea.height=e),this},setGlobalTint:function(t){return this.globalTint=t,this},setGlobalAlpha:function(t){return this.globalAlpha=t,this},saveTexture:function(t){return this.textureManager.renameTexture(this.texture.key,t),this._saved=!0,this.texture},fill:function(t,e,i,n,s,r){void 0===e&&(e=1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.frame.cutWidth),void 0===r&&(r=this.frame.cutHeight);var o=255&(t>>16|0),a=255&(t>>8|0),h=255&(0|t),l=this.gl,u=this.frame;if(this.camera.preRender(1,1),l){var c=this.camera._cx,f=this.camera._cy,p=this.camera._cw,g=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(c,f,p,g,g);var v=this.pipeline;v.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),v.drawFillRect(i,n,s,r,d.getTintFromFloats(o/255,a/255,h/255,1),e),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),v.projOrtho(0,v.width,v.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.context.fillStyle="rgba("+o+","+a+","+h+","+e+")",this.context.fillRect(i+u.cutX,n+u.cutY,s,r),this.renderer.setContext();return this.dirty=!0,this},clear:function(){if(this.dirty){var t=this.gl;if(t){var e=this.renderer;e.setFramebuffer(this.framebuffer,!0),this.frame.cutWidth===this.canvas.width&&this.frame.cutHeight===this.canvas.height||t.scissor(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),e.setFramebuffer(null,!0)}else{var i=this.context;i.save(),i.setTransform(1,0,0,1,0,0),i.clearRect(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),i.restore()}this.dirty=!1}return this},erase:function(t,e,i){this._eraseMode=!0;var s=this.renderer.currentBlendMode;return this.renderer.setBlendMode(n.ERASE),this.draw(t,e,i,1,16777215),this.renderer.setBlendMode(s),this._eraseMode=!1,this},draw:function(t,e,i,n,s){void 0===n&&(n=this.globalAlpha),s=void 0===s?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(s>>16)+(65280&s)+((255&s)<<16),Array.isArray(t)||(t=[t]);var r=this.gl;if(this.camera.preRender(1,1),r){var o=this.camera._cx,a=this.camera._cy,h=this.camera._cw,l=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(o,a,h,l,l);var u=this.pipeline;u.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),this.batchList(t,e,i,n,s),u.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),u.projOrtho(0,u.width,u.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.batchList(t,e,i,n,s),this.renderer.setContext();return this.dirty=!0,this},drawFrame:function(t,e,i,n,s,r){void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.globalAlpha),r=void 0===r?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(r>>16)+(65280&r)+((255&r)<<16);var o=this.gl,a=this.textureManager.getFrame(t,e);if(a){if(this.camera.preRender(1,1),o){var h=this.camera._cx,l=this.camera._cy,u=this.camera._cw,c=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(h,l,u,c,c);var d=this.pipeline;d.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),d.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,r,s,this.camera.matrix,null),d.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),d.projOrtho(0,d.width,d.height,0,-1e3,1e3)}else this.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,s,r);this.dirty=!0}return this},batchList:function(t,e,i,n,s){for(var r=0;rr&&(o=t[r]),s[r]=o,t.length>r+1&&(o=t[r+1]),s[r+1]=o}return this},setColors:function(t){var e=this.points.length;if(e<1)return this;var i,n=this.colors;void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]);var s=0;if(t.length===e)for(i=0;is&&(r=t[s]),n[s]=r,t.length>s+1&&(r=t[s+1]),n[s+1]=r}return this},setPoints:function(t,e,i){if(void 0===t&&(t=2),"number"==typeof t){var n,s,r,o=t;if(o<2&&(o=2),t=[],this.horizontal)for(r=-this.frame.halfWidth,s=this.frame.width/(o-1),n=0;nl){if(0===c){for(var g=f;g.length&&(g=g.slice(0,-1),!((p=e.measureText(g).width)<=l)););if(!g.length)throw new Error("This text's wordWrapWidth setting is less than a single character!");var v=d.substr(g.length);u[c]=v,h+=g}var m=u[c].length?c:c+1,y=u.slice(m).join(" ").replace(/[ \n]*$/gi,"");s[o+1]=y+" "+(s[o+1]||""),r=s.length;break}h+=f,l-=p}n+=h.replace(/[ \n]*$/gi,"")+"\n"}}return n=n.replace(/[\s|\n]*$/gi,"")},basicWordWrap:function(t,e,i){for(var n="",s=t.split(this.splitRegExp),r=s.length-1,o=e.measureText(" ").width,a=0;a<=r;a++){for(var h=i,l=s[a].split(" "),u=l.length-1,c=0;c<=u;c++){var d=l[c],f=e.measureText(d).width,p=f+o;p>h&&c>0&&(n+="\n",h=i),n+=d,c0&&(d+=h.lineSpacing*g),i.rtl)c=f-c;else if("right"===i.align)c+=o-h.lineWidths[g];else if("center"===i.align)c+=(o-h.lineWidths[g])/2;else if("justify"===i.align){if(h.lineWidths[g]/h.width>=.85){var v=h.width-h.lineWidths[g],m=e.measureText(" ").width,y=a[g].trim(),x=y.split(" ");v+=(a[g].length-y.length)*m;for(var T=Math.floor(v/m),w=0;T>0;)x[w]+=" ",w=(w+1)%(x.length-1||1),--T;a[g]=x.join(" ")}}this.autoRound&&(c=Math.round(c),d=Math.round(d)),i.strokeThickness&&(this.style.syncShadow(e,i.shadowStroke),e.strokeText(a[g],c,d)),i.color&&(this.style.syncShadow(e,i.shadowFill),e.fillText(a[g],c,d))}e.restore(),this.renderer.gl&&(this.frame.source.glTexture=this.renderer.canvasToTexture(t,this.frame.source.glTexture,!0),this.frame.glTexture=this.frame.source.glTexture),this.dirty=!0;var E=this.input;return E&&!E.customHitArea&&(E.hitArea.width=this.width,E.hitArea.height=this.height),this},getTextMetrics:function(){return this.style.getTextMetrics()},text:{get:function(){return this._text},set:function(t){this.setText(t)}},toJSON:function(){var t=o.ToJSON(this),e={autoRound:this.autoRound,text:this._text,style:this.style.toJSON(),padding:{left:this.padding.left,right:this.padding.right,top:this.padding.top,bottom:this.padding.bottom}};return t.data=e,t},preDestroy:function(){this.style.rtl&&c(this.canvas),s.remove(this.canvas),this.texture.destroy()}});t.exports=p},function(t,e,i){var n=i(26),s=i(0),r=i(11),o=i(18),a=i(13),h=i(327),l=i(165),u=i(990),c=i(3),d=new s({Extends:a,Mixins:[r.Alpha,r.BlendMode,r.ComputedSize,r.Crop,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Tint,r.Transform,r.Visible,u],initialize:function(t,e,i,s,r,l,u){var d=t.sys.game.renderer;a.call(this,t,"TileSprite");var f=t.sys.textures.get(l),p=f.get(u);s&&r?(s=Math.floor(s),r=Math.floor(r)):(s=p.width,r=p.height),this._tilePosition=new c,this._tileScale=new c(1,1),this.dirty=!1,this.renderer=d,this.canvas=n.create(this,s,r),this.context=this.canvas.getContext("2d"),this.displayTexture=f,this.displayFrame=p,this._crop=this.resetCropObject(),this.texture=t.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.potWidth=h(p.width),this.potHeight=h(p.height),this.fillCanvas=n.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d"),this.fillPattern=null,this.setPosition(e,i),this.setSize(s,r),this.setFrame(u),this.setOriginFromFrame(),this.initPipeline(),t.sys.game.events.on(o.CONTEXT_RESTORED,function(t){var e=t.gl;this.dirty=!0,this.fillPattern=null,this.fillPattern=t.createTexture2D(0,e.LINEAR,e.LINEAR,e.REPEAT,e.REPEAT,e.RGBA,this.fillCanvas,this.potWidth,this.potHeight)},this)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){var e=this.displayTexture.get(t);return this.potWidth=h(e.width),this.potHeight=h(e.height),this.canvas.width=0,e.cutWidth&&e.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=e,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){if(this.dirty&&this.renderer){var t=this.displayFrame;if(t.source.isRenderTexture||t.source.isGLTexture)return console.warn("TileSprites can only use Image or Canvas based textures"),void(this.dirty=!1);var e=this.fillContext,i=this.fillCanvas,n=this.potWidth,s=this.potHeight;this.renderer.gl||(n=t.cutWidth,s=t.cutHeight),e.clearRect(0,0,n,s),i.width=n,i.height=s,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,n,s),this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var t=this.canvas;if(t.width===this.width&&t.height===this.height||(t.width=this.width,t.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl)this.dirty=!1;else{var e=this.context;this.scene.sys.game.config.antialias||l.disable(e);var i=this._tileScale.x,n=this._tileScale.y,s=this._tilePosition.x,r=this._tilePosition.y;e.clearRect(0,0,this.width,this.height),e.save(),e.scale(i,n),e.translate(-s,-r),e.fillStyle=this.fillPattern,e.fillRect(s,r,this.width/i,this.height/n),e.restore(),this.dirty=!1}},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),n.remove(this.canvas),n.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null,this.texture.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=d},function(t,e,i){var n=i(0),s=i(22),r=i(11),o=i(90),a=i(18),h=i(13),l=i(59),u=i(195),c=i(993),d=i(15),f=new n({Extends:h,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,c],initialize:function(t,e,i,n){h.call(this,t,"Video"),this.video=null,this.videoTexture=null,this.videoTextureSource=null,this.snapshotTexture=null,this.flipY=!1,this._key=u(),this.touchLocked=!0,this.playWhenUnlocked=!1,this.retryLimit=20,this.retry=0,this.retryInterval=500,this._retryID=null,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={play:this.playHandler.bind(this),error:this.loadErrorHandler.bind(this),end:this.completeHandler.bind(this),time:this.timeUpdateHandler.bind(this),seeking:this.seekingHandler.bind(this),seeked:this.seekedHandler.bind(this)},this._crop=this.resetCropObject(),this.markers={},this._markerIn=-1,this._markerOut=d.MAX_SAFE_INTEGER,this._lastUpdate=0,this._cacheKey="",this._isSeeking=!1,this.removeVideoElementOnDestroy=!1,this.setPosition(e,i),this.initPipeline(),n&&this.changeSource(n,!1);var s=t.sys.game.events;s.on(a.PAUSE,this.globalPause,this),s.on(a.RESUME,this.globalResume,this);var r=t.sys.sound;r&&r.on(l.GLOBAL_MUTE,this.globalMute,this)},play:function(t,e,i){if(this.touchLocked&&this.playWhenUnlocked||this.isPlaying())return this;var n=this.video;if(!n)return console.warn("Video not loaded"),this;void 0===t&&(t=n.loop);var s=this.scene.sys.sound;s&&s.mute&&this.setMute(!0),isNaN(e)||(this._markerIn=e),!isNaN(i)&&i>e&&(this._markerOut=i),n.loop=t;var r=this._callbacks,o=n.play();return void 0!==o?o.then(this.playPromiseSuccessHandler.bind(this)).catch(this.playPromiseErrorHandler.bind(this)):(n.addEventListener("playing",r.play,!0),n.readyState<2&&(this.retry=this.retryLimit,this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval))),n.addEventListener("ended",r.end,!0),n.addEventListener("timeupdate",r.time,!0),n.addEventListener("seeking",r.seeking,!0),n.addEventListener("seeked",r.seeked,!0),this},changeSource:function(t,e,i,n,s){void 0===e&&(e=!0),this.video&&this.stop();var r=this.scene.sys.cache.video.get(t);return r?(this.video=r,this._cacheKey=t,this._codePaused=r.paused,this._codeMuted=r.muted,this.videoTexture?(this.scene.sys.textures.remove(this._key),this.videoTexture=this.scene.sys.textures.create(this._key,r,r.videoWidth,r.videoHeight),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,r.videoWidth,r.videoHeight),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,r.videoWidth,r.videoHeight)):this.updateTexture(),r.currentTime=0,this._lastUpdate=0,e&&this.play(i,n,s)):this.video=null,this},addMarker:function(t,e,i){return!isNaN(e)&&e>=0&&!isNaN(i)&&(this.markers[t]=[e,i]),this},playMarker:function(t,e){var i=this.markers[t];return i&&this.play(e,i[0],i[1]),this},removeMarker:function(t){return delete this.markers[t],this},snapshot:function(t,e){return void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.snapshotArea(0,0,this.width,this.height,t,e)},snapshotArea:function(t,e,i,n,s,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=this.height),void 0===s&&(s=i),void 0===r&&(r=n);var o=this.video,a=this.snapshotTexture;return a?(a.setSize(s,r),o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)):(a=this.scene.sys.textures.createCanvas(u(),s,r),this.snapshotTexture=a,o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)),a.update()},saveSnapshotTexture:function(t){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,t):this.snapshotTexture=this.scene.sys.textures.createCanvas(t,this.width,this.height),this.snapshotTexture},loadURL:function(t,e,i){void 0===e&&(e="loadeddata"),void 0===i&&(i=!1),this.video&&this.stop(),this.videoTexture&&this.scene.sys.textures.remove(this._key);var n=document.createElement("video");return n.controls=!1,i&&(n.muted=!0,n.defaultMuted=!0,n.setAttribute("autoplay","autoplay")),n.setAttribute("playsinline","playsinline"),n.setAttribute("preload","auto"),n.addEventListener("error",this._callbacks.error,!0),n.src=t,n.load(),this.video=n,this},playPromiseSuccessHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn)},playPromiseErrorHandler:function(t){this.scene.sys.input.once("pointerdown",this.unlockHandler,this),this.touchLocked=!0,this.playWhenUnlocked=!0,this.emit(o.VIDEO_ERROR,this,t)},playHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this.video.removeEventListener("playing",this._callbacks.play,!0)},loadErrorHandler:function(t){this.stop(),this.emit(o.VIDEO_ERROR,this,t)},unlockHandler:function(){this.touchLocked=!1,this.playWhenUnlocked=!1,this.emit(o.VIDEO_UNLOCKED,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn),this.video.play(),this.emit(o.VIDEO_PLAY,this)},completeHandler:function(){this.emit(o.VIDEO_COMPLETE,this)},timeUpdateHandler:function(){this.video&&this.video.currentTime=this._markerOut&&(t.loop?(t.currentTime=this._markerIn,this.updateTexture(),this._lastUpdate=e,this.emit(o.VIDEO_LOOP,this)):(this.emit(o.VIDEO_COMPLETE,this),this.stop())))}},checkVideoProgress:function(){this.video.readyState>=2?this.updateTexture():(this.retry--,this.retry>0?this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval):this.emit(o.VIDEO_TIMEOUT,this))},updateTexture:function(){var t=this.video,e=t.videoWidth,i=t.videoHeight;if(this.videoTexture){var n=this.videoTextureSource;n.source!==t&&(n.source=t,n.width=e,n.height=i),n.update()}else this.videoTexture=this.scene.sys.textures.create(this._key,t,e,i),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,e,i),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,e,i)},getVideoKey:function(){return this._cacheKey},seekTo:function(t){var e=this.video;if(e){var i=e.duration;if(i!==1/0&&!isNaN(i)){var n=i*t;this.setCurrentTime(n)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e=this.video;if(e){if("string"==typeof t){var i=t[0],n=parseFloat(t.substr(1));"+"===i?t=e.currentTime+n:"-"===i&&(t=e.currentTime-n)}e.currentTime=t,this._lastUpdate=t}return this},isSeeking:function(){return this._isSeeking},seekingHandler:function(){this._isSeeking=!0,this.emit(o.VIDEO_SEEKING,this)},seekedHandler:function(){this._isSeeking=!1,this.emit(o.VIDEO_SEEKED,this),this.video&&this.updateTexture()},getProgress:function(){var t=this.video;if(t){var e=t.currentTime,i=t.duration;if(i!==1/0&&!isNaN(i))return e/i}return 0},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){void 0===t&&(t=!0),this._codeMuted=t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},globalPause:function(){this._systemPaused=!0,this.video&&this.video.pause()},globalResume:function(){this._systemPaused=!1,this.video&&!this._codePaused&&this.video.play()},setPaused:function(t){void 0===t&&(t=!0);var e=this.video;return this._codePaused=t,e&&(t?e.paused||e.pause():t||e.paused&&!this._systemPaused&&e.play()),this},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(t){return void 0===t&&(t=1),this.video&&(this.video.volume=s(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&this.scene.sys.textures.renameTexture(this._key,t),this._key=t,this.flipY=e,this.videoTextureSource&&this.videoTextureSource.setFlipY(e),this.videoTexture},stop:function(){var t=this.video;if(t){var e=this._callbacks;for(var i in e)t.removeEventListener(i,e[i],!0);t.pause()}return this._retryID&&window.clearTimeout(this._retryID),this.emit(o.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("autoplay"),t.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(),this.removeVideoElementOnDestroy&&this.removeVideoElement();var t=this.scene.sys.game.events;t.off(a.PAUSE,this.globalPause,this),t.off(a.RESUME,this.globalResume,this);var e=this.scene.sys.sound;e&&e.off(l.GLOBAL_MUTE,this.globalMute,this),this._retryID&&window.clearTimeout(this._retryID)}});t.exports=f},function(t,e,i){var n=i(0),s=i(201),r=i(416),o=i(46),a=new n({initialize:function(t){this.type=o.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return s(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],"string"==typeof t&&(t=t.split(" ")),!Array.isArray(t))return this;for(var e,i=Number.MAX_VALUE,n=0;no||r>a)return!1;if(s<=i||r<=n)return!0;var h=s-i,l=r-n;return h*h+l*l<=t.radius*t.radius}},function(t,e,i){var n=i(4),s=i(207);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a=t.x1,h=t.y1,l=t.x2,u=t.y2,c=e.x,d=e.y,f=e.radius,p=l-a,g=u-h,v=a-c,m=h-d,y=p*p+g*g,x=2*(p*v+g*m),T=x*x-4*y*(v*v+m*m-f*f);if(0===T){var w=-x/(2*y);r=a+w*p,o=h+w*g,w>=0&&w<=1&&i.push(new n(r,o))}else if(T>0){var E=(-x-Math.sqrt(T))/(2*y);r=a+E*p,o=h+E*g,E>=0&&E<=1&&i.push(new n(r,o));var _=(-x+Math.sqrt(T))/(2*y);r=a+_*p,o=h+_*g,_>=0&&_<=1&&i.push(new n(r,o))}}return i}},function(t,e,i){var n=i(55),s=new(i(4));t.exports=function(t,e,i){if(void 0===i&&(i=s),n(e,t.x1,t.y1))return i.x=t.x1,i.y=t.y1,!0;if(n(e,t.x2,t.y2))return i.x=t.x2,i.y=t.y2,!0;var r=t.x2-t.x1,o=t.y2-t.y1,a=e.x-t.x1,h=e.y-t.y1,l=r*r+o*o,u=r,c=o;if(l>0){var d=(a*r+h*o)/l;u*=d,c*=d}return i.x=t.x1+u,i.y=t.y1+c,u*u+c*c<=l&&u*r+c*o>=0&&n(e,i.x,i.y)}},function(t,e,i){var n=i(4),s=i(84),r=i(429);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e))for(var o=e.getLineA(),a=e.getLineB(),h=e.getLineC(),l=e.getLineD(),u=[new n,new n,new n,new n],c=[s(o,t,u[0]),s(a,t,u[1]),s(h,t,u[2]),s(l,t,u[3])],d=0;d<4;d++)c[d]&&i.push(u[d]);return i}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=!1),void 0===n&&(n=[]);for(var s,r,o,a,h,l,u=t.x3-t.x1,c=t.y3-t.y1,d=t.x2-t.x1,f=t.y2-t.y1,p=u*u+c*c,g=u*d+c*f,v=d*d+f*f,m=p*v-g*g,y=0===m?0:1/m,x=t.x1,T=t.y1,w=0;w=0&&r>=0&&s+r<1&&(n.push({x:e[w].x,y:e[w].y}),i)));w++);return n}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,t}},function(t,e){t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,o=t.x3-e,a=t.y3-i,t.x3=o*s-a*r+e,t.y3=o*r+a*s+i,t}},function(t,e,i){t.exports={BUTTON_DOWN:i(1198),BUTTON_UP:i(1199),CONNECTED:i(1200),DISCONNECTED:i(1201),GAMEPAD_BUTTON_DOWN:i(1202),GAMEPAD_BUTTON_UP:i(1203)}},function(t,e,i){var n=i(17),s=i(135);t.exports=function(t,e){var i=void 0===t?s():n({},t);if(e)for(var r in e)void 0!==e[r]&&(i[r]=e[r]);return i}},function(t,e,i){var n=i(0),s=i(20),r=i(21),o=i(8),a=i(2),h=i(7),l=i(363),u=new n({Extends:r,initialize:function(t,e,i,n){var s="xml";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),n=a(o,"xhrSettings"),s=a(o,"extension",s)}var l={type:"xml",cache:t.cacheManager.xml,extension:s,responseType:"text",key:e,url:i,xhrSettings:n};r.call(this,t,l)},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=l(this.xhrLoader.responseText),this.data?this.onProcessComplete():(console.warn("Invalid XMLFile: "+this.key),this.onProcessError())}});o.register("xml",function(t,e,i){if(Array.isArray(t))for(var n=0;n0&&(s.totalDuration+=s.t2*s.repeat),s.totalDuration>t&&(t=s.totalDuration),s.delay0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay,this.startDelay=e},init:function(){if(this.paused&&!this.parentIsTimeline)return this.state=h.PENDING_ADD,this._pausedState=h.INIT,!1;for(var t=this.data,e=this.totalTargets,i=0;i0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=h.LOOP_DELAY):(this.state=h.ACTIVE,this.dispatchTweenEvent(r.TWEEN_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=h.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=h.PENDING_REMOVE,this.dispatchTweenEvent(r.TWEEN_COMPLETE,this.callbacks.onComplete))},pause:function(){return this.state===h.PAUSED?this:(this.paused=!0,this._pausedState=this.state,this.state=h.PAUSED,this)},play:function(t){void 0===t&&(t=!1);var e=this.state;return e!==h.INIT||this.parentIsTimeline?e===h.ACTIVE||e===h.PENDING_ADD&&this._pausedState===h.PENDING_ADD?this:this.parentIsTimeline||e!==h.PENDING_REMOVE&&e!==h.REMOVED?(this.parentIsTimeline?(this.resetTweenData(t),0===this.calculatedOffset?this.state=h.ACTIVE:(this.countdown=this.calculatedOffset,this.state=h.OFFSET_DELAY)):this.paused?(this.paused=!1,this.makeActive()):(this.resetTweenData(t),this.state=h.ACTIVE,this.makeActive()),this):(this.seek(0),this.parent.makeActive(this),this):(this.resetTweenData(!1),this.state=h.ACTIVE,this)},resetTweenData:function(t){for(var e=this.data,i=this.totalData,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY),r.getActiveValue&&(o[a]=r.getActiveValue(r.target,r.key,r.start))}},resume:function(){return this.state===h.PAUSED?(this.paused=!1,this.state=this._pausedState):this.play(),this},seek:function(t,e){if(void 0===e&&(e=16.6),this.totalDuration>=36e5)return console.warn("Tween.seek duration too long"),this;this.state===h.REMOVED&&this.makeActive(),this.elapsed=0,this.progress=0,this.totalElapsed=0,this.totalProgress=0;for(var i=this.data,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY)}this.calcDuration();var c=!1;this.state===h.PAUSED&&(c=!0,this.state=h.ACTIVE),this.isSeeking=!0;do{this.update(0,e)}while(this.totalProgress0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.start=e.getStartValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},setStateFromStart:function(t,e,i){return e.repeatCounter>0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},updateTweenData:function(t,e,i){var n=e.target;switch(e.state){case h.PLAYING_FORWARD:case h.PLAYING_BACKWARD:if(!n){e.state=h.COMPLETE;break}var s=e.elapsed,o=e.duration,a=0;(s+=i)>o&&(a=s-o,s=o);var l=e.state===h.PLAYING_FORWARD,u=s/o;if(e.elapsed=s,e.progress=u,e.previous=e.current,1===u)l?(e.current=e.end,n[e.key]=e.end,e.hold>0?(e.elapsed=e.hold-a,e.state=h.HOLD_DELAY):e.state=this.setStateFromEnd(t,e,a)):(e.current=e.start,n[e.key]=e.start,e.state=this.setStateFromStart(t,e,a));else{var c=l?e.ease(u):e.ease(1-u);e.current=e.start+(e.end-e.start)*c,n[e.key]=e.current}this.dispatchTweenDataEvent(r.TWEEN_UPDATE,t.callbacks.onUpdate,e);break;case h.DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PENDING_RENDER);break;case h.REPEAT_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PLAYING_FORWARD,this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e));break;case h.HOLD_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.state=this.setStateFromEnd(t,e,Math.abs(e.elapsed)));break;case h.PENDING_RENDER:n?(e.start=e.getStartValue(n,e.key,n[e.key],e.index,t.totalTargets,t),e.end=e.getEndValue(n,e.key,e.start,e.index,t.totalTargets,t),e.current=e.start,n[e.key]=e.start,e.state=h.PLAYING_FORWARD):e.state=h.COMPLETE}return e.state!==h.COMPLETE}});u.TYPES=["onActive","onComplete","onLoop","onRepeat","onStart","onUpdate","onYoyo"],a.register("tween",function(t){return this.scene.sys.tweens.add(t)}),o.register("tween",function(t){return this.scene.sys.tweens.create(t)}),t.exports=u},function(t,e,i){t.exports={TIMELINE_COMPLETE:i(1354),TIMELINE_LOOP:i(1355),TIMELINE_PAUSE:i(1356),TIMELINE_RESUME:i(1357),TIMELINE_START:i(1358),TIMELINE_UPDATE:i(1359),TWEEN_ACTIVE:i(1360),TWEEN_COMPLETE:i(1361),TWEEN_LOOP:i(1362),TWEEN_REPEAT:i(1363),TWEEN_START:i(1364),TWEEN_UPDATE:i(1365),TWEEN_YOYO:i(1366)}},function(t,e){t.exports=function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p){return{target:t,index:e,key:i,getActiveValue:r,getEndValue:n,getStartValue:s,ease:o,duration:0,totalDuration:0,delay:0,yoyo:l,hold:0,repeat:0,repeatDelay:0,flipX:f,flipY:p,progress:0,elapsed:0,repeatCounter:0,start:0,previous:0,current:0,end:0,t1:0,t2:0,gen:{delay:a,duration:h,hold:u,repeat:c,repeatDelay:d},state:0}}},function(t,e){t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-Math.PI,Math.PI)}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-180,180)}},function(t,e,i){var n=i(0),s=i(66),r=i(2),o=i(237),a=i(339),h=i(340),l=i(30),u=i(10),c=i(145),d=new n({Extends:c,Mixins:[o],initialize:function(t){var e=t.renderer.config;c.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:r(t,"topology",t.renderer.gl.TRIANGLES),vertShader:r(t,"vertShader",h),fragShader:r(t,"fragShader",a),vertexCapacity:r(t,"vertexCapacity",6*e.batchSize),vertexSize:r(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.tintEffect=2,this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[],this.mvpInit()},onBind:function(){return c.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return c.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this},batchSprite:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix1,s=this._tempMatrix2,r=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,l=o.v0,c=o.u1,d=o.v1,f=o.x,p=o.y,g=o.cutWidth,v=o.cutHeight,m=o.customPivot,y=t.displayOriginX,x=t.displayOriginY,T=-y+f,w=-x+p;if(t.isCropped){var E=t._crop;E.flipX===t.flipX&&E.flipY===t.flipY||o.updateCropUVs(E,t.flipX,t.flipY),h=E.u0,l=E.v0,c=E.u1,d=E.v1,g=E.width,v=E.height,T=-y+(f=E.x),w=-x+(p=E.y)}var _=1,b=1;t.flipX&&(m||(T+=-o.realWidth+2*y),_=-1),(t.flipY||o.source.isGLTexture&&!a.flipY)&&(m||(w+=-o.realHeight+2*x),b=-1),s.applyITRS(t.x,t.y,t.rotation,t.scaleX*_,t.scaleY*b),n.copyFrom(e.matrix),i?(n.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),s.e=t.x,s.f=t.y,n.multiply(s,r)):(s.e-=e.scrollX*t.scrollFactorX,s.f-=e.scrollY*t.scrollFactorY,n.multiply(s,r));var A=T+g,S=w+v,C=r.getX(T,w),M=r.getY(T,w),O=r.getX(T,S),P=r.getY(T,S),R=r.getX(A,S),L=r.getY(A,S),D=r.getX(A,w),F=r.getY(A,w),k=u.getTintAppendFloatAlpha(t._tintTL,e.alpha*t._alphaTL),I=u.getTintAppendFloatAlpha(t._tintTR,e.alpha*t._alphaTR),B=u.getTintAppendFloatAlpha(t._tintBL,e.alpha*t._alphaBL),Y=u.getTintAppendFloatAlpha(t._tintBR,e.alpha*t._alphaBR);e.roundPixels&&(C=Math.round(C),M=Math.round(M),O=Math.round(O),P=Math.round(P),R=Math.round(R),L=Math.round(L),D=Math.round(D),F=Math.round(F)),this.setTexture2D(a,0);var N=t._isTinted&&t.tintFill;this.batchQuad(C,M,O,P,R,L,D,F,h,l,c,d,k,I,B,Y,N,a,0)},batchQuad:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y){var x=!1;this.vertexCount+6>this.vertexCapacity&&(this.flush(),x=!0,this.setTexture2D(m,y));var T=this.vertexViewF32,w=this.vertexViewU32,E=this.vertexCount*this.vertexComponentCount-1;return T[++E]=t,T[++E]=e,T[++E]=h,T[++E]=l,T[++E]=v,w[++E]=d,T[++E]=i,T[++E]=n,T[++E]=h,T[++E]=c,T[++E]=v,w[++E]=p,T[++E]=s,T[++E]=r,T[++E]=u,T[++E]=c,T[++E]=v,w[++E]=g,T[++E]=t,T[++E]=e,T[++E]=h,T[++E]=l,T[++E]=v,w[++E]=d,T[++E]=s,T[++E]=r,T[++E]=u,T[++E]=c,T[++E]=v,w[++E]=g,T[++E]=o,T[++E]=a,T[++E]=u,T[++E]=l,T[++E]=v,w[++E]=f,this.vertexCount+=6,x},batchTri:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g){var v=!1;this.vertexCount+3>this.vertexCapacity&&(this.flush(),this.setTexture2D(p,g),v=!0);var m=this.vertexViewF32,y=this.vertexViewU32,x=this.vertexCount*this.vertexComponentCount-1;return m[++x]=t,m[++x]=e,m[++x]=o,m[++x]=a,m[++x]=f,y[++x]=u,m[++x]=i,m[++x]=n,m[++x]=o,m[++x]=l,m[++x]=f,y[++x]=c,m[++x]=s,m[++x]=r,m[++x]=h,m[++x]=l,m[++x]=f,y[++x]=d,this.vertexCount+=3,v},batchTexture:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y,x,T,w,E,_,b,A,S,C,M,O,P){this.renderer.setPipeline(this,t);var R=this._tempMatrix1,L=this._tempMatrix2,D=this._tempMatrix3,F=m/i+S,k=y/n+C,I=(m+x)/i+S,B=(y+T)/n+C,Y=o,N=a,X=-g,z=-v;if(t.isCropped){var U=t._crop;Y=U.width,N=U.height,o=U.width,a=U.height;var G=m=U.x,W=y=U.y;c&&(G=x-U.x-U.width),d&&!e.isRenderTexture&&(W=T-U.y-U.height),F=G/i+S,k=W/n+C,I=(G+U.width)/i+S,B=(W+U.height)/n+C,X=-g+m,z=-v+y}d^=!P&&e.isRenderTexture?1:0,c&&(Y*=-1,X+=o),d&&(N*=-1,z+=a);var V=X+Y,H=z+N;L.applyITRS(s,r,u,h,l),R.copyFrom(M.matrix),O?(R.multiplyWithOffset(O,-M.scrollX*f,-M.scrollY*p),L.e=s,L.f=r,R.multiply(L,D)):(L.e-=M.scrollX*f,L.f-=M.scrollY*p,R.multiply(L,D));var j=D.getX(X,z),K=D.getY(X,z),q=D.getX(X,H),J=D.getY(X,H),Z=D.getX(V,H),Q=D.getY(V,H),$=D.getX(V,z),tt=D.getY(V,z);M.roundPixels&&(j=Math.round(j),K=Math.round(K),q=Math.round(q),J=Math.round(J),Z=Math.round(Z),Q=Math.round(Q),$=Math.round($),tt=Math.round(tt)),this.setTexture2D(e,0),this.batchQuad(j,K,q,J,Z,Q,$,tt,F,k,I,B,w,E,_,b,A,e,0)},batchTextureFrame:function(t,e,i,n,s,r,o){this.renderer.setPipeline(this);var a=this._tempMatrix1.copyFrom(r),h=this._tempMatrix2,l=e+t.width,c=i+t.height;o?a.multiply(o,h):h=a;var d=h.getX(e,i),f=h.getY(e,i),p=h.getX(e,c),g=h.getY(e,c),v=h.getX(l,c),m=h.getY(l,c),y=h.getX(l,i),x=h.getY(l,i);this.setTexture2D(t.glTexture,0),n=u.getTintAppendFloatAlpha(n,s),this.batchQuad(d,f,p,g,v,m,y,x,t.u0,t.v0,t.u1,t.v1,n,n,n,n,0,t.glTexture,0)},drawFillRect:function(t,e,i,n,s,r){var o=t+i,a=e+n;this.setTexture2D();var h=u.getTintAppendFloatAlphaAndSwap(s,r);this.batchQuad(t,e,t,a,o,a,o,e,0,0,1,1,h,h,h,h,2)},batchFillRect:function(t,e,i,n,s,r){this.renderer.setPipeline(this);var o=this._tempMatrix3;r&&r.multiply(s,o);var a=t+i,h=e+n,l=o.getX(t,e),u=o.getY(t,e),c=o.getX(t,h),d=o.getY(t,h),f=o.getX(a,h),p=o.getY(a,h),g=o.getX(a,e),v=o.getY(a,e),m=this.currentFrame,y=m.u0,x=m.v0,T=m.u1,w=m.v1;this.batchQuad(l,u,c,d,f,p,g,v,y,x,T,w,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.fillTint.BR,this.tintEffect)},batchFillTriangle:function(t,e,i,n,s,r,o,a){this.renderer.setPipeline(this);var h=this._tempMatrix3;a&&a.multiply(o,h);var l=h.getX(t,e),u=h.getY(t,e),c=h.getX(i,n),d=h.getY(i,n),f=h.getX(s,r),p=h.getY(s,r),g=this.currentFrame,v=g.u0,m=g.v0,y=g.u1,x=g.v1;this.batchTri(l,u,c,d,f,p,v,m,y,x,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.tintEffect)},batchStrokeTriangle:function(t,e,i,n,s,r,o,a,h){var l=this.tempTriangle;l[0].x=t,l[0].y=e,l[0].width=o,l[1].x=i,l[1].y=n,l[1].width=o,l[2].x=s,l[2].y=r,l[2].width=o,l[3].x=t,l[3].y=e,l[3].width=o,this.batchStrokePath(l,o,!1,a,h)},batchFillPath:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix3;i&&i.multiply(e,n);for(var r,o,a=t.length,h=this.polygonCache,l=this.fillTint.TL,u=this.fillTint.TR,c=this.fillTint.BL,d=this.tintEffect,f=0;f0&&H[4]?this.batchQuad(D,F,O,P,H[0],H[1],H[2],H[3],U,G,W,V,B,Y,N,X,I):(j[0]=D,j[1]=F,j[2]=O,j[3]=P,j[4]=1),h&&j[4]?this.batchQuad(C,M,R,L,j[0],j[1],j[2],j[3],U,G,W,V,B,Y,N,X,I):(H[0]=C,H[1]=M,H[2]=R,H[3]=L,H[4]=1)}}});t.exports=d},function(t,e){var i={modelMatrixDirty:!1,viewMatrixDirty:!1,projectionMatrixDirty:!1,modelMatrix:null,viewMatrix:null,projectionMatrix:null,mvpInit:function(){return this.modelMatrixDirty=!0,this.viewMatrixDirty=!0,this.projectionMatrixDirty=!0,this.modelMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},mvpUpdate:function(){var t=this.program;return this.modelMatrixDirty&&(this.renderer.setMatrix4(t,"uModelMatrix",!1,this.modelMatrix),this.modelMatrixDirty=!1),this.viewMatrixDirty&&(this.renderer.setMatrix4(t,"uViewMatrix",!1,this.viewMatrix),this.viewMatrixDirty=!1),this.projectionMatrixDirty&&(this.renderer.setMatrix4(t,"uProjectionMatrix",!1,this.projectionMatrix),this.projectionMatrixDirty=!1),this},modelIdentity:function(){var t=this.modelMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.modelMatrixDirty=!0,this},modelScale:function(t,e,i){var n=this.modelMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.modelMatrixDirty=!0,this},modelTranslate:function(t,e,i){var n=this.modelMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.modelMatrixDirty=!0,this},modelRotateX:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.modelMatrixDirty=!0,this},modelRotateY:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.modelMatrixDirty=!0,this},modelRotateZ:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.modelMatrixDirty=!0,this},viewIdentity:function(){var t=this.viewMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.viewMatrixDirty=!0,this},viewScale:function(t,e,i){var n=this.viewMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.viewMatrixDirty=!0,this},viewTranslate:function(t,e,i){var n=this.viewMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.viewMatrixDirty=!0,this},viewRotateX:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.viewMatrixDirty=!0,this},viewRotateY:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.viewMatrixDirty=!0,this},viewRotateZ:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.viewMatrixDirty=!0,this},viewLoad2D:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=0,e[4]=t[2],e[5]=t[3],e[6]=0,e[7]=0,e[8]=t[4],e[9]=t[5],e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this.viewMatrixDirty=!0,this},viewLoad:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this.viewMatrixDirty=!0,this},projIdentity:function(){var t=this.projectionMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.projectionMatrixDirty=!0,this},projOrtho:function(t,e,i,n,s,r){var o=this.projectionMatrix,a=1/(t-e),h=1/(i-n),l=1/(s-r);return o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this.projectionMatrixDirty=!0,this},projPersp:function(t,e,i,n){var s=this.projectionMatrix,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this.projectionMatrixDirty=!0,this}};t.exports=i},,,function(t,e,i){t.exports={AlignTo:i(527),Angle:i(528),Call:i(529),GetFirst:i(530),GetLast:i(531),GridAlign:i(532),IncAlpha:i(593),IncX:i(594),IncXY:i(595),IncY:i(596),PlaceOnCircle:i(597),PlaceOnEllipse:i(598),PlaceOnLine:i(599),PlaceOnRectangle:i(600),PlaceOnTriangle:i(601),PlayAnimation:i(602),PropertyValueInc:i(34),PropertyValueSet:i(25),RandomCircle:i(603),RandomEllipse:i(604),RandomLine:i(605),RandomRectangle:i(606),RandomTriangle:i(607),Rotate:i(608),RotateAround:i(609),RotateAroundDistance:i(610),ScaleX:i(611),ScaleXY:i(612),ScaleY:i(613),SetAlpha:i(614),SetBlendMode:i(615),SetDepth:i(616),SetHitArea:i(617),SetOrigin:i(618),SetRotation:i(619),SetScale:i(620),SetScaleX:i(621),SetScaleY:i(622),SetScrollFactor:i(623),SetScrollFactorX:i(624),SetScrollFactorY:i(625),SetTint:i(626),SetVisible:i(627),SetX:i(628),SetXY:i(629),SetY:i(630),ShiftPosition:i(631),Shuffle:i(632),SmootherStep:i(633),SmoothStep:i(634),Spread:i(635),ToggleVisible:i(636),WrapInRectangle:i(637)}},function(t,e,i){var n=i(106),s=[];s[n.BOTTOM_CENTER]=i(242),s[n.BOTTOM_LEFT]=i(243),s[n.BOTTOM_RIGHT]=i(244),s[n.LEFT_BOTTOM]=i(245),s[n.LEFT_CENTER]=i(246),s[n.LEFT_TOP]=i(247),s[n.RIGHT_BOTTOM]=i(248),s[n.RIGHT_CENTER]=i(249),s[n.RIGHT_TOP]=i(250),s[n.TOP_CENTER]=i(251),s[n.TOP_LEFT]=i(252),s[n.TOP_RIGHT]=i(253);t.exports=function(t,e,i,n,r){return s[i](t,e,n,r)}},function(t,e,i){var n=i(38),s=i(76),r=i(77),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)+i),o(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(40),r=i(41),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)-i),o(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(42),r=i(43),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)+i),o(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(40),r=i(44),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(78),s=i(40),r=i(79),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(40),s=i(45),r=i(43),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)-i),o(t,s(e)-a),t}},function(t,e,i){var n=i(38),s=i(42),r=i(44),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(78),s=i(42),r=i(79),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(42),s=i(45),r=i(41),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(76),s=i(45),r=i(44),o=i(77);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)+i),r(t,s(e)-a),t}},function(t,e,i){var n=i(40),s=i(45),r=i(44),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)-i),r(t,s(e)-a),t}},function(t,e,i){var n=i(42),s=i(45),r=i(44),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)+i),r(t,s(e)-a),t}},function(t,e,i){var n=i(106),s=[];s[n.BOTTOM_CENTER]=i(255),s[n.BOTTOM_LEFT]=i(256),s[n.BOTTOM_RIGHT]=i(257),s[n.CENTER]=i(258),s[n.LEFT_CENTER]=i(260),s[n.RIGHT_CENTER]=i(261),s[n.TOP_CENTER]=i(262),s[n.TOP_LEFT]=i(263),s[n.TOP_RIGHT]=i(264),s[n.LEFT_BOTTOM]=s[n.BOTTOM_LEFT],s[n.LEFT_TOP]=s[n.TOP_LEFT],s[n.RIGHT_BOTTOM]=s[n.BOTTOM_RIGHT],s[n.RIGHT_TOP]=s[n.TOP_RIGHT];t.exports=function(t,e,i,n,r){return s[i](t,e,n,r)}},function(t,e,i){var n=i(38),s=i(76),r=i(44),o=i(77);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(40),r=i(44),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(42),r=i(44),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(259),s=i(76),r=i(78);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),n(t,s(e)+i,r(e)+o),t}},function(t,e,i){var n=i(77),s=i(79);t.exports=function(t,e,i){return n(t,e),s(t,i)}},function(t,e,i){var n=i(78),s=i(40),r=i(79),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(78),s=i(42),r=i(79),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(76),s=i(45),r=i(77),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(40),s=i(45),r=i(41),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)-i),o(t,s(e)-a),t}},function(t,e,i){var n=i(42),s=i(45),r=i(43),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(147),s=i(87),r=i(15),o=i(4);t.exports=function(t,e,i){void 0===i&&(i=new o);var a=s(e,0,r.PI2);return n(t,a,i)}},function(t,e,i){var n=i(267),s=i(147),r=i(87),o=i(15);t.exports=function(t,e,i,a){void 0===a&&(a=[]),e||(e=n(t)/i);for(var h=0;he.length&&(r=e.length),i?(n=e[r-1][i],(s=e[r][i])-t<=t-n?e[r]:e[r-1]):(n=e[r-1],(s=e[r])-t<=t-n?s:n)}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=n,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration}},destroy:function(){this.frame=void 0}});t.exports=n},function(t,e,i){var n=i(52),s={_blendMode:n.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=n[t]),(t|=0)>=-1&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=s},function(t,e){var i={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.scene.sys.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}};t.exports=i},function(t,e,i){var n=i(150),s=i(112);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=s(t)/i);for(var o=0;o=t.right&&(h=1,a+=o-t.right,o=t.right);break;case 1:(a+=e)>=t.bottom&&(h=2,o-=a-t.bottom,a=t.bottom);break;case 2:(o-=e)<=t.left&&(h=3,a-=t.left-o,o=t.left);break;case 3:(a-=e)<=t.top&&(h=0,a=t.top)}return r}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,n=0;n-h&&(c-=h,n+=l),fd.right&&(f=u(f,f+(g-d.right),this.lerp.x)),vd.bottom&&(p=u(p,p+(v-d.bottom),this.lerp.y))):(f=u(f,g-h,this.lerp.x),p=u(p,v-l,this.lerp.y))}this.useBounds&&(f=this.clampX(f),p=this.clampY(p)),this.roundPixels&&(h=Math.round(h),l=Math.round(l)),this.scrollX=f,this.scrollY=p;var m=f+n,y=p+s;this.midPoint.set(m,y);var x=e/o,T=i/o;this.worldView.setTo(m-x/2,y-T/2,x,T),a.applyITRS(this.x+h,this.y+l,this.rotation,o,o),a.translate(-h,-l),this.shakeEffect.preRender()},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.followOffset.set(t,e),this},startFollow:function(t,e,i,n,s,r){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===n&&(n=i),void 0===s&&(s=0),void 0===r&&(r=s),this._follow=t,this.roundPixels=e,i=o(i,0,1),n=o(n,0,1),this.lerp.set(i,n),this.followOffset.set(s,r);var a=this.width/2,h=this.height/2,l=t.x-s,u=t.y-r;return this.midPoint.set(l,u),this.scrollX=l-a,this.scrollY=u-h,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.visible&&(this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.clearRenderToTexture(),this.resetFX(),n.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=f},function(t,e,i){var n=i(33);t.exports=function(t){var e=new n;t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var i=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(i){var s=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16);e.setTo(s,r,o)}return e}},function(t,e){t.exports=function(t,e,i,n){return n<<24|t<<16|e<<8|i}},function(t,e){t.exports=function(t,e,i,n){void 0===n&&(n={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var s=Math.min(t,e,i),r=Math.max(t,e,i),o=r-s,a=0,h=0===r?0:o/r,l=r;return r!==s&&(r===t?a=(e-i)/o+(e16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},function(t,e,i){var n=i(33);t.exports=function(t){return new n(t.r,t.g,t.b,t.a)}},function(t,e,i){var n=i(33);t.exports=function(t){var e=new n,i=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t.toLowerCase());if(i){var s=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10),a=void 0!==i[4]?parseFloat(i[4]):1;e.setTo(s,r,o,255*a)}return e}},function(t,e,i){t.exports={Fade:i(662),Flash:i(663),Pan:i(664),Shake:i(697),Zoom:i(698)}},function(t,e,i){t.exports={In:i(665),Out:i(666),InOut:i(667)}},function(t,e,i){t.exports={In:i(668),Out:i(669),InOut:i(670)}},function(t,e,i){t.exports={In:i(671),Out:i(672),InOut:i(673)}},function(t,e,i){t.exports={In:i(674),Out:i(675),InOut:i(676)}},function(t,e,i){t.exports={In:i(677),Out:i(678),InOut:i(679)}},function(t,e,i){t.exports={In:i(680),Out:i(681),InOut:i(682)}},function(t,e,i){t.exports=i(683)},function(t,e,i){t.exports={In:i(684),Out:i(685),InOut:i(686)}},function(t,e,i){t.exports={In:i(687),Out:i(688),InOut:i(689)}},function(t,e,i){t.exports={In:i(690),Out:i(691),InOut:i(692)}},function(t,e,i){t.exports={In:i(693),Out:i(694),InOut:i(695)}},function(t,e,i){t.exports=i(696)},function(t,e,i){var n=i(0),s=i(29),r=i(314),o=i(2),a=i(6),h=i(7),l=i(169),u=i(1),c=i(174),d=i(162),f=new n({initialize:function(t){void 0===t&&(t={});this.width=a(t,"width",1024),this.height=a(t,"height",768),this.zoom=a(t,"zoom",1),this.resolution=a(t,"resolution",1),this.parent=a(t,"parent",void 0),this.scaleMode=a(t,"scaleMode",0),this.expandParent=a(t,"expandParent",!0),this.autoRound=a(t,"autoRound",!1),this.autoCenter=a(t,"autoCenter",0),this.resizeInterval=a(t,"resizeInterval",500),this.fullscreenTarget=a(t,"fullscreenTarget",null),this.minWidth=a(t,"minWidth",0),this.maxWidth=a(t,"maxWidth",0),this.minHeight=a(t,"minHeight",0),this.maxHeight=a(t,"maxHeight",0);var e=a(t,"scale",null);e&&(this.width=a(e,"width",this.width),this.height=a(e,"height",this.height),this.zoom=a(e,"zoom",this.zoom),this.resolution=a(e,"resolution",this.resolution),this.parent=a(e,"parent",this.parent),this.scaleMode=a(e,"mode",this.scaleMode),this.expandParent=a(e,"expandParent",this.expandParent),this.autoRound=a(e,"autoRound",this.autoRound),this.autoCenter=a(e,"autoCenter",this.autoCenter),this.resizeInterval=a(e,"resizeInterval",this.resizeInterval),this.fullscreenTarget=a(e,"fullscreenTarget",this.fullscreenTarget),this.minWidth=a(e,"min.width",this.minWidth),this.maxWidth=a(e,"max.width",this.maxWidth),this.minHeight=a(e,"min.height",this.minHeight),this.maxHeight=a(e,"max.height",this.maxHeight)),this.renderType=a(t,"type",s.AUTO),this.canvas=a(t,"canvas",null),this.context=a(t,"context",null),this.canvasStyle=a(t,"canvasStyle",null),this.customEnvironment=a(t,"customEnvironment",!1),this.sceneConfig=a(t,"scene",null),this.seed=a(t,"seed",[(Date.now()*Math.random()).toString()]),l.RND=new l.RandomDataGenerator(this.seed),this.gameTitle=a(t,"title",""),this.gameURL=a(t,"url","https://phaser.io"),this.gameVersion=a(t,"version",""),this.autoFocus=a(t,"autoFocus",!0),this.domCreateContainer=a(t,"dom.createContainer",!1),this.domBehindCanvas=a(t,"dom.behindCanvas",!1),this.inputKeyboard=a(t,"input.keyboard",!0),this.inputKeyboardEventTarget=a(t,"input.keyboard.target",window),this.inputKeyboardCapture=a(t,"input.keyboard.capture",[]),this.inputMouse=a(t,"input.mouse",!0),this.inputMouseEventTarget=a(t,"input.mouse.target",null),this.inputMouseCapture=a(t,"input.mouse.capture",!0),this.inputTouch=a(t,"input.touch",r.input.touch),this.inputTouchEventTarget=a(t,"input.touch.target",null),this.inputTouchCapture=a(t,"input.touch.capture",!0),this.inputActivePointers=a(t,"input.activePointers",1),this.inputSmoothFactor=a(t,"input.smoothFactor",0),this.inputWindowEvents=a(t,"input.windowEvents",!0),this.inputGamepad=a(t,"input.gamepad",!1),this.inputGamepadEventTarget=a(t,"input.gamepad.target",window),this.disableContextMenu=a(t,"disableContextMenu",!1),this.audio=a(t,"audio"),this.hideBanner=!1===a(t,"banner",null),this.hidePhaser=a(t,"banner.hidePhaser",!1),this.bannerTextColor=a(t,"banner.text","#ffffff"),this.bannerBackgroundColor=a(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=a(t,"fps",null);var i=a(t,"render",t);this.antialias=a(i,"antialias",!0),this.antialiasGL=a(i,"antialiasGL",!0),this.mipmapFilter=a(i,"mipmapFilter","LINEAR"),this.desynchronized=a(i,"desynchronized",!1),this.roundPixels=a(i,"roundPixels",!1),this.pixelArt=a(i,"pixelArt",1!==this.zoom),this.pixelArt&&(this.antialias=!1,this.roundPixels=!0),this.transparent=a(i,"transparent",!1),this.clearBeforeRender=a(i,"clearBeforeRender",!0),this.premultipliedAlpha=a(i,"premultipliedAlpha",!0),this.failIfMajorPerformanceCaveat=a(i,"failIfMajorPerformanceCaveat",!1),this.powerPreference=a(i,"powerPreference","default"),this.batchSize=a(i,"batchSize",2e3),this.maxLights=a(i,"maxLights",10);var n=a(t,"backgroundColor",0);this.backgroundColor=d(n),0===n&&this.transparent&&(this.backgroundColor.alpha=0),this.preBoot=a(t,"callbacks.preBoot",u),this.postBoot=a(t,"callbacks.postBoot",u),this.physics=a(t,"physics",{}),this.defaultPhysicsSystem=a(this.physics,"default",!1),this.loaderBaseURL=a(t,"loader.baseURL",""),this.loaderPath=a(t,"loader.path",""),this.loaderMaxParallelDownloads=a(t,"loader.maxParallelDownloads",32),this.loaderCrossOrigin=a(t,"loader.crossOrigin",void 0),this.loaderResponseType=a(t,"loader.responseType",""),this.loaderAsync=a(t,"loader.async",!0),this.loaderUser=a(t,"loader.user",""),this.loaderPassword=a(t,"loader.password",""),this.loaderTimeout=a(t,"loader.timeout",0),this.loaderWithCredentials=a(t,"loader.withCredentials",!1),this.installGlobalPlugins=[],this.installScenePlugins=[];var f=a(t,"plugins",null),p=c.DefaultScene;f&&(Array.isArray(f)?this.defaultPlugins=f:h(f)&&(this.installGlobalPlugins=o(f,"global",[]),this.installScenePlugins=o(f,"scene",[]),Array.isArray(f.default)?p=f.default:Array.isArray(f.defaultMerge)&&(p=p.concat(f.defaultMerge)))),this.defaultPlugins=p;var g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=a(t,"images.default",g+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=a(t,"images.missing",g+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),window&&(window.FORCE_WEBGL?this.renderType=s.WEBGL:window.FORCE_CANVAS&&(this.renderType=s.CANVAS))}});t.exports=f},function(t,e,i){t.exports={os:i(116),browser:i(117),features:i(168),input:i(727),audio:i(728),video:i(729),fullscreen:i(730),canvasFeatures:i(315)}},function(t,e,i){var n,s,r,o=i(26),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=(void 0!==document&&(a.supportNewBlendModes=(n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",s="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(r=new Image).onload=function(){var t=new Image;t.onload=function(){var e=o.create(t,6,1).getContext("2d");if(e.globalCompositeOperation="multiply",e.drawImage(r,0,0),e.drawImage(t,2,0),!e.getImageData(2,0,1,1))return!1;var i=e.getImageData(2,0,1,1).data;o.remove(t),a.supportNewBlendModes=255===i[0]&&0===i[1]&&0===i[2]},t.src=n+"/wCKxvRF"+s},r.src=n+"AP804Oa6"+s,!1),a.supportInverseAlpha=function(){var t=o.create(this,2,1).getContext("2d");t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1);var e=t.getImageData(0,0,1,1);if(null===e)return!1;t.putImageData(e,1,0);var i=t.getImageData(1,0,1,1);return i.data[0]===e.data[0]&&i.data[1]===e.data[1]&&i.data[2]===e.data[2]&&i.data[3]===e.data[3]}()),a)},function(t,e){t.exports=function(t,e,i,n){return Math.atan2(n-e,i-t)}},function(t,e){t.exports=function(t){return(t%=2*Math.PI)>=0?t:t+2*Math.PI}},function(t,e){t.exports=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)}},function(t,e){t.exports=function(t,e,i,n){var s=t-i,r=e-n;return s*s+r*r}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t>e-i}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t0?Math.ceil(t):Math.floor(t)}},function(t,e,i){var n=i(3);t.exports=function(t,e,i,s,r,o,a,h){void 0===h&&(h=new n);var l=Math.sin(r),u=Math.cos(r),c=u*o,d=l*o,f=-l*a,p=u*a,g=1/(c*p+f*-d);return h.x=p*g*t+-f*g*e+(s*f-i*p)*g,h.y=c*g*e+-d*g*t+(-s*c+i*d)*g,h}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},clone:function(){return new n(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return Math.sqrt(e*e+i*i+n*n+s*s)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return e*e+i*i+n*n+s*s},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.val;return this.x=r[0]*e+r[4]*i+r[8]*n+r[12]*s,this.y=r[1]*e+r[5]*i+r[9]*n+r[13]*s,this.z=r[2]*e+r[6]*i+r[10]*n+r[14]*s,this.w=r[3]*e+r[7]*i+r[11]*n+r[15]*s,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});n.prototype.sub=n.prototype.subtract,n.prototype.mul=n.prototype.multiply,n.prototype.div=n.prototype.divide,n.prototype.dist=n.prototype.distance,n.prototype.distSq=n.prototype.distanceSq,n.prototype.len=n.prototype.length,n.prototype.lenSq=n.prototype.lengthSq,t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this},fromMat4:function(t){var e=t.val,i=this.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=n,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*r-o*h,c=-l*s+o*a,d=h*s-r*a,f=e*u+i*c+n*d;return f?(f=1/f,t[0]=u*f,t[1]=(-l*i+n*h)*f,t[2]=(o*i-n*r)*f,t[3]=c*f,t[4]=(l*e-n*a)*f,t[5]=(-o*e+n*s)*f,t[6]=d*f,t[7]=(-h*e+i*a)*f,t[8]=(r*e-i*s)*f,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=r*l-o*h,t[1]=n*h-i*l,t[2]=i*o-n*r,t[3]=o*a-s*l,t[4]=e*l-n*a,t[5]=n*s-e*o,t[6]=s*h-r*a,t[7]=i*a-e*h,t[8]=e*r-i*s,this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return e*(l*r-o*h)+i*(-l*s+o*a)+n*(h*s-r*a)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=t.val,d=c[0],f=c[1],p=c[2],g=c[3],v=c[4],m=c[5],y=c[6],x=c[7],T=c[8];return e[0]=d*i+f*r+p*h,e[1]=d*n+f*o+p*l,e[2]=d*s+f*a+p*u,e[3]=g*i+v*r+m*h,e[4]=g*n+v*o+m*l,e[5]=g*s+v*a+m*u,e[6]=y*i+x*r+T*h,e[7]=y*n+x*o+T*l,e[8]=y*s+x*a+T*u,this},translate:function(t){var e=this.val,i=t.x,n=t.y;return e[6]=i*e[0]+n*e[3]+e[6],e[7]=i*e[1]+n*e[4]+e[7],e[8]=i*e[2]+n*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=Math.sin(t),l=Math.cos(t);return e[0]=l*i+h*r,e[1]=l*n+h*o,e[2]=l*s+h*a,e[3]=l*r-h*i,e[4]=l*o-h*n,e[5]=l*a-h*s,this},scale:function(t){var e=this.val,i=t.x,n=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=n*e[3],e[4]=n*e[4],e[5]=n*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,n=t.z,s=t.w,r=e+e,o=i+i,a=n+n,h=e*r,l=e*o,u=e*a,c=i*o,d=i*a,f=n*a,p=s*r,g=s*o,v=s*a,m=this.val;return m[0]=1-(c+f),m[3]=l+v,m[6]=u-g,m[1]=l-v,m[4]=1-(h+f),m[7]=d+p,m[2]=u+g,m[5]=d-p,m[8]=1-(h+c),this},normalFromMat4:function(t){var e=t.val,i=this.val,n=e[0],s=e[1],r=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=e[9],f=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],x=n*h-s*a,T=n*l-r*a,w=n*u-o*a,E=s*l-r*h,_=s*u-o*h,b=r*u-o*l,A=c*v-d*g,S=c*m-f*g,C=c*y-p*g,M=d*m-f*v,O=d*y-p*v,P=f*y-p*m,R=x*P-T*O+w*M+E*C-_*S+b*A;return R?(R=1/R,i[0]=(h*P-l*O+u*M)*R,i[1]=(l*C-a*P-u*S)*R,i[2]=(a*O-h*C+u*A)*R,i[3]=(r*O-s*P-o*M)*R,i[4]=(n*P-r*C+o*S)*R,i[5]=(s*C-n*O-o*A)*R,i[6]=(v*b-m*_+y*E)*R,i[7]=(m*w-g*b-y*T)*R,i[8]=(g*_-v*w+y*x)*R,this):null}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},zero:function(){var t=this.val;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,this},xyz:function(t,e,i){this.identity();var n=this.val;return n[12]=t,n[13]=e,n[14]=i,this},scaling:function(t,e,i){this.zero();var n=this.val;return n[0]=t,n[5]=e,n[10]=i,n[15]=1,this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[3],s=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=s,t[11]=t[14],t[12]=n,t[13]=r,t[14]=o,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15],m=e*o-i*r,y=e*a-n*r,x=e*h-s*r,T=i*a-n*o,w=i*h-s*o,E=n*h-s*a,_=l*p-u*f,b=l*g-c*f,A=l*v-d*f,S=u*g-c*p,C=u*v-d*p,M=c*v-d*g,O=m*M-y*C+x*S+T*A-w*b+E*_;return O?(O=1/O,t[0]=(o*M-a*C+h*S)*O,t[1]=(n*C-i*M-s*S)*O,t[2]=(p*E-g*w+v*T)*O,t[3]=(c*w-u*E-d*T)*O,t[4]=(a*A-r*M-h*b)*O,t[5]=(e*M-n*A+s*b)*O,t[6]=(g*x-f*E-v*y)*O,t[7]=(l*E-c*x+d*y)*O,t[8]=(r*C-o*A+h*_)*O,t[9]=(i*A-e*C-s*_)*O,t[10]=(f*w-p*x+v*m)*O,t[11]=(u*x-l*w-d*m)*O,t[12]=(o*b-r*S-a*_)*O,t[13]=(e*S-i*b+n*_)*O,t[14]=(p*y-f*T-g*m)*O,t[15]=(l*T-u*y+c*m)*O,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return t[0]=o*(c*v-d*g)-u*(a*v-h*g)+p*(a*d-h*c),t[1]=-(i*(c*v-d*g)-u*(n*v-s*g)+p*(n*d-s*c)),t[2]=i*(a*v-h*g)-o*(n*v-s*g)+p*(n*h-s*a),t[3]=-(i*(a*d-h*c)-o*(n*d-s*c)+u*(n*h-s*a)),t[4]=-(r*(c*v-d*g)-l*(a*v-h*g)+f*(a*d-h*c)),t[5]=e*(c*v-d*g)-l*(n*v-s*g)+f*(n*d-s*c),t[6]=-(e*(a*v-h*g)-r*(n*v-s*g)+f*(n*h-s*a)),t[7]=e*(a*d-h*c)-r*(n*d-s*c)+l*(n*h-s*a),t[8]=r*(u*v-d*p)-l*(o*v-h*p)+f*(o*d-h*u),t[9]=-(e*(u*v-d*p)-l*(i*v-s*p)+f*(i*d-s*u)),t[10]=e*(o*v-h*p)-r*(i*v-s*p)+f*(i*h-s*o),t[11]=-(e*(o*d-h*u)-r*(i*d-s*u)+l*(i*h-s*o)),t[12]=-(r*(u*g-c*p)-l*(o*g-a*p)+f*(o*c-a*u)),t[13]=e*(u*g-c*p)-l*(i*g-n*p)+f*(i*c-n*u),t[14]=-(e*(o*g-a*p)-r*(i*g-n*p)+f*(i*a-n*o)),t[15]=e*(o*c-a*u)-r*(i*c-n*u)+l*(i*a-n*o),this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return(e*o-i*r)*(c*v-d*g)-(e*a-n*r)*(u*v-d*p)+(e*h-s*r)*(u*g-c*p)+(i*a-n*o)*(l*v-d*f)-(i*h-s*o)*(l*g-c*f)+(n*h-s*a)*(l*p-u*f)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=t.val,x=y[0],T=y[1],w=y[2],E=y[3];return e[0]=x*i+T*o+w*u+E*p,e[1]=x*n+T*a+w*c+E*g,e[2]=x*s+T*h+w*d+E*v,e[3]=x*r+T*l+w*f+E*m,x=y[4],T=y[5],w=y[6],E=y[7],e[4]=x*i+T*o+w*u+E*p,e[5]=x*n+T*a+w*c+E*g,e[6]=x*s+T*h+w*d+E*v,e[7]=x*r+T*l+w*f+E*m,x=y[8],T=y[9],w=y[10],E=y[11],e[8]=x*i+T*o+w*u+E*p,e[9]=x*n+T*a+w*c+E*g,e[10]=x*s+T*h+w*d+E*v,e[11]=x*r+T*l+w*f+E*m,x=y[12],T=y[13],w=y[14],E=y[15],e[12]=x*i+T*o+w*u+E*p,e[13]=x*n+T*a+w*c+E*g,e[14]=x*s+T*h+w*d+E*v,e[15]=x*r+T*l+w*f+E*m,this},multiplyLocal:function(t){var e=[],i=this.val,n=t.val;return e[0]=i[0]*n[0]+i[1]*n[4]+i[2]*n[8]+i[3]*n[12],e[1]=i[0]*n[1]+i[1]*n[5]+i[2]*n[9]+i[3]*n[13],e[2]=i[0]*n[2]+i[1]*n[6]+i[2]*n[10]+i[3]*n[14],e[3]=i[0]*n[3]+i[1]*n[7]+i[2]*n[11]+i[3]*n[15],e[4]=i[4]*n[0]+i[5]*n[4]+i[6]*n[8]+i[7]*n[12],e[5]=i[4]*n[1]+i[5]*n[5]+i[6]*n[9]+i[7]*n[13],e[6]=i[4]*n[2]+i[5]*n[6]+i[6]*n[10]+i[7]*n[14],e[7]=i[4]*n[3]+i[5]*n[7]+i[6]*n[11]+i[7]*n[15],e[8]=i[8]*n[0]+i[9]*n[4]+i[10]*n[8]+i[11]*n[12],e[9]=i[8]*n[1]+i[9]*n[5]+i[10]*n[9]+i[11]*n[13],e[10]=i[8]*n[2]+i[9]*n[6]+i[10]*n[10]+i[11]*n[14],e[11]=i[8]*n[3]+i[9]*n[7]+i[10]*n[11]+i[11]*n[15],e[12]=i[12]*n[0]+i[13]*n[4]+i[14]*n[8]+i[15]*n[12],e[13]=i[12]*n[1]+i[13]*n[5]+i[14]*n[9]+i[15]*n[13],e[14]=i[12]*n[2]+i[13]*n[6]+i[14]*n[10]+i[15]*n[14],e[15]=i[12]*n[3]+i[13]*n[7]+i[14]*n[11]+i[15]*n[15],this.fromArray(e)},translate:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[12]=s[0]*e+s[4]*i+s[8]*n+s[12],s[13]=s[1]*e+s[5]*i+s[9]*n+s[13],s[14]=s[2]*e+s[6]*i+s[10]*n+s[14],s[15]=s[3]*e+s[7]*i+s[11]*n+s[15],this},translateXYZ:function(t,e,i){var n=this.val;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this},scale:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[0]=s[0]*e,s[1]=s[1]*e,s[2]=s[2]*e,s[3]=s[3]*e,s[4]=s[4]*i,s[5]=s[5]*i,s[6]=s[6]*i,s[7]=s[7]*i,s[8]=s[8]*n,s[9]=s[9]*n,s[10]=s[10]*n,s[11]=s[11]*n,this},scaleXYZ:function(t,e,i){var n=this.val;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),n=Math.sin(e),s=1-i,r=t.x,o=t.y,a=t.z,h=s*r,l=s*o;return this.fromArray([h*r+i,h*o-n*a,h*a+n*o,0,h*o+n*a,l*o+i,l*a-n*r,0,h*a-n*o,l*a+n*r,s*a*a+i,0,0,0,0,1]),this},rotate:function(t,e){var i=this.val,n=e.x,s=e.y,r=e.z,o=Math.sqrt(n*n+s*s+r*r);if(Math.abs(o)<1e-6)return null;n*=o=1/o,s*=o,r*=o;var a=Math.sin(t),h=Math.cos(t),l=1-h,u=i[0],c=i[1],d=i[2],f=i[3],p=i[4],g=i[5],v=i[6],m=i[7],y=i[8],x=i[9],T=i[10],w=i[11],E=n*n*l+h,_=s*n*l+r*a,b=r*n*l-s*a,A=n*s*l-r*a,S=s*s*l+h,C=r*s*l+n*a,M=n*r*l+s*a,O=s*r*l-n*a,P=r*r*l+h;return i[0]=u*E+p*_+y*b,i[1]=c*E+g*_+x*b,i[2]=d*E+v*_+T*b,i[3]=f*E+m*_+w*b,i[4]=u*A+p*S+y*C,i[5]=c*A+g*S+x*C,i[6]=d*A+v*S+T*C,i[7]=f*A+m*S+w*C,i[8]=u*M+p*O+y*P,i[9]=c*M+g*O+x*P,i[10]=d*M+v*O+T*P,i[11]=f*M+m*O+w*P,this},rotateX:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this},fromRotationTranslation:function(t,e){var i=this.val,n=t.x,s=t.y,r=t.z,o=t.w,a=n+n,h=s+s,l=r+r,u=n*a,c=n*h,d=n*l,f=s*h,p=s*l,g=r*l,v=o*a,m=o*h,y=o*l;return i[0]=1-(f+g),i[1]=c+y,i[2]=d-m,i[3]=0,i[4]=c-y,i[5]=1-(u+g),i[6]=p+v,i[7]=0,i[8]=d+m,i[9]=p-v,i[10]=1-(u+f),i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this},fromQuat:function(t){var e=this.val,i=t.x,n=t.y,s=t.z,r=t.w,o=i+i,a=n+n,h=s+s,l=i*o,u=i*a,c=i*h,d=n*a,f=n*h,p=s*h,g=r*o,v=r*a,m=r*h;return e[0]=1-(d+p),e[1]=u+m,e[2]=c-v,e[3]=0,e[4]=u-m,e[5]=1-(l+p),e[6]=f+g,e[7]=0,e[8]=c+v,e[9]=f-g,e[10]=1-(l+d),e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},frustum:function(t,e,i,n,s,r){var o=this.val,a=1/(e-t),h=1/(n-i),l=1/(s-r);return o[0]=2*s*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*s*h,o[6]=0,o[7]=0,o[8]=(e+t)*a,o[9]=(n+i)*h,o[10]=(r+s)*l,o[11]=-1,o[12]=0,o[13]=0,o[14]=r*s*2*l,o[15]=0,this},perspective:function(t,e,i,n){var s=this.val,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this},perspectiveLH:function(t,e,i,n){var s=this.val;return s[0]=2*i/t,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*i/e,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=-n/(i-n),s[11]=1,s[12]=0,s[13]=0,s[14]=i*n/(i-n),s[15]=0,this},ortho:function(t,e,i,n,s,r){var o=this.val,a=t-e,h=i-n,l=s-r;return a=0===a?a:1/a,h=0===h?h:1/h,l=0===l?l:1/l,o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this},lookAt:function(t,e,i){var n=this.val,s=t.x,r=t.y,o=t.z,a=i.x,h=i.y,l=i.z,u=e.x,c=e.y,d=e.z;if(Math.abs(s-u)<1e-6&&Math.abs(r-c)<1e-6&&Math.abs(o-d)<1e-6)return this.identity();var f=s-u,p=r-c,g=o-d,v=1/Math.sqrt(f*f+p*p+g*g),m=h*(g*=v)-l*(p*=v),y=l*(f*=v)-a*g,x=a*p-h*f;(v=Math.sqrt(m*m+y*y+x*x))?(m*=v=1/v,y*=v,x*=v):(m=0,y=0,x=0);var T=p*x-g*y,w=g*m-f*x,E=f*y-p*m;return(v=Math.sqrt(T*T+w*w+E*E))?(T*=v=1/v,w*=v,E*=v):(T=0,w=0,E=0),n[0]=m,n[1]=T,n[2]=f,n[3]=0,n[4]=y,n[5]=w,n[6]=p,n[7]=0,n[8]=x,n[9]=E,n[10]=g,n[11]=0,n[12]=-(m*s+y*r+x*o),n[13]=-(T*s+w*r+E*o),n[14]=-(f*s+p*r+g*o),n[15]=1,this},yawPitchRoll:function(t,e,i){this.zero(),s.zero(),r.zero();var n=this.val,o=s.val,a=r.val,h=Math.sin(i),l=Math.cos(i);return n[10]=1,n[15]=1,n[0]=l,n[1]=h,n[4]=-h,n[5]=l,h=Math.sin(e),l=Math.cos(e),o[0]=1,o[15]=1,o[5]=l,o[10]=l,o[9]=-h,o[6]=h,h=Math.sin(t),l=Math.cos(t),a[5]=1,a[15]=1,a[0]=l,a[2]=-h,a[8]=h,a[10]=l,this.multiplyLocal(s),this.multiplyLocal(r),this},setWorldMatrix:function(t,e,i,n,o){return this.yawPitchRoll(t.y,t.x,t.z),s.scaling(i.x,i.y,i.z),r.xyz(e.x,e.y,e.z),this.multiplyLocal(s),this.multiplyLocal(r),void 0!==n&&this.multiplyLocal(n),void 0!==o&&this.multiplyLocal(o),this}}),s=new n,r=new n;t.exports=n},function(t,e,i){var n=i(0),s=i(173),r=i(334),o=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),h=new s(1,0,0),l=new s(0,1,0),u=new s,c=new r,d=new n({initialize:function(t,e,i,n){"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},rotationTo:function(t,e){var i=t.x*e.x+t.y*e.y+t.z*e.z;return i<-.999999?(u.copy(h).cross(t).length()<1e-6&&u.copy(l).cross(t),u.normalize(),this.setAxisAngle(u,Math.PI)):i>.999999?(this.x=0,this.y=0,this.z=0,this.w=1,this):(u.copy(t).cross(e),this.x=u.x,this.y=u.y,this.z=u.z,this.w=1+i,this.normalize())},setAxes:function(t,e,i){var n=c.val;return n[0]=e.x,n[3]=e.y,n[6]=e.z,n[1]=i.x,n[4]=i.y,n[7]=i.z,n[2]=-t.x,n[5]=-t.y,n[8]=-t.z,this.fromMat3(c).normalize()},identity:function(){return this.x=0,this.y=0,this.z=0,this.w=1,this},setAxisAngle:function(t,e){e*=.5;var i=Math.sin(e);return this.x=i*t.x,this.y=i*t.y,this.z=i*t.z,this.w=Math.cos(e),this},multiply:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.x,o=t.y,a=t.z,h=t.w;return this.x=e*h+s*r+i*a-n*o,this.y=i*h+s*o+n*r-e*a,this.z=n*h+s*a+e*o-i*r,this.w=s*h-e*r-i*o-n*a,this},slerp:function(t,e){var i=this.x,n=this.y,s=this.z,r=this.w,o=t.x,a=t.y,h=t.z,l=t.w,u=i*o+n*a+s*h+r*l;u<0&&(u=-u,o=-o,a=-a,h=-h,l=-l);var c=1-e,d=e;if(1-u>1e-6){var f=Math.acos(u),p=Math.sin(f);c=Math.sin((1-e)*f)/p,d=Math.sin(e*f)/p}return this.x=c*i+d*o,this.y=c*n+d*a,this.z=c*s+d*h,this.w=c*r+d*l,this},invert:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n,r=s?1/s:0;return this.x=-t*r,this.y=-e*r,this.z=-i*r,this.w=n*r,this},conjugate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},rotateX:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+s*r,this.y=i*o+n*r,this.z=n*o-i*r,this.w=s*o-e*r,this},rotateY:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o-n*r,this.y=i*o+s*r,this.z=n*o+e*r,this.w=s*o-i*r,this},rotateZ:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+i*r,this.y=i*o-e*r,this.z=n*o+s*r,this.w=s*o-n*r,this},calculateW:function(){var t=this.x,e=this.y,i=this.z;return this.w=-Math.sqrt(1-t*t-e*e-i*i),this},fromMat3:function(t){var e,i=t.val,n=i[0]+i[4]+i[8];if(n>0)e=Math.sqrt(n+1),this.w=.5*e,e=.5/e,this.x=(i[7]-i[5])*e,this.y=(i[2]-i[6])*e,this.z=(i[3]-i[1])*e;else{var s=0;i[4]>i[0]&&(s=1),i[8]>i[3*s+s]&&(s=2);var r=o[s],h=o[r];e=Math.sqrt(i[3*s+s]-i[3*r+r]-i[3*h+h]+1),a[s]=.5*e,e=.5/e,a[r]=(i[3*r+s]+i[3*s+r])*e,a[h]=(i[3*h+s]+i[3*s+h])*e,this.x=a[0],this.y=a[1],this.z=a[2],this.w=(i[3*h+r]-i[3*r+h])*e}return this}});t.exports=d},function(t,e,i){var n=i(338),s=i(26),r=i(29),o=i(168);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===r.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!e.customEnvironment&&!e.canvas&&e.renderType!==r.HEADLESS)if(e.renderType===r.CANVAS||e.renderType!==r.CANVAS&&!o.webGL){if(!o.canvas)throw new Error("Cannot create Canvas or WebGL context, aborting.");e.renderType=r.CANVAS}else e.renderType=r.WEBGL;e.antialias||s.disableSmoothing();var a,h,l=t.scale.baseSize,u=l.width,c=l.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=u,t.canvas.height=c):t.canvas=s.create(t,u,c,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||n.setCrisp(t.canvas),e.renderType!==r.HEADLESS&&(a=i(505),h=i(508),e.renderType===r.WEBGL?t.renderer=new h(t):(t.renderer=new a(t),t.context=t.renderer.gameContext))}},function(t,e){t.exports={setCrisp:function(t){return["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"].forEach(function(e){t.style["image-rendering"]=e}),t.style.msInterpolationMode="nearest-neighbor",t},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}}},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_FS","","precision mediump float;","","uniform sampler2D uMainSampler;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.rgb * outTint.a, outTint.a);"," vec4 color = texture;",""," if (outTintEffect == 0.0)"," {"," // Multiply texture tint"," color = texture * texel;"," }"," else if (outTintEffect == 1.0)"," {"," // Solid color + texture alpha"," color.rgb = mix(texture.rgb, outTint.rgb * outTint.a, texture.a);"," color.a = texture.a * texel.a;"," }"," else if (outTintEffect == 2.0)"," {"," // Solid color, no texture"," color = texel;"," }",""," gl_FragColor = color;","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_VS","","precision mediump float;","","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform mat4 uModelMatrix;","","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTintEffect;","attribute vec4 inTint;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main ()","{"," gl_Position = uProjectionMatrix * uViewMatrix * uModelMatrix * vec4(inPosition, 1.0, 1.0);",""," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}","",""].join("\n")},function(t,e,i){var n=i(29);t.exports=function(t){var e=t.config;if(!e.hideBanner){var i="WebGL";e.renderType===n.CANVAS?i="Canvas":e.renderType===n.HEADLESS&&(i="Headless");var s,r=e.audio,o=t.device.audio;if(s=!o.webAudio||r&&r.disableWebAudio?r&&r.noAudio||!o.webAudio&&!o.audioData?"No Audio":"HTML5 Audio":"Web Audio",t.device.browser.ie)window.console&&console.log("Phaser v"+n.VERSION+" / https://phaser.io");else{var a,h="",l=[h];Array.isArray(e.bannerBackgroundColor)?(e.bannerBackgroundColor.forEach(function(t){h=h.concat("%c "),l.push("background: "+t),a=t}),l[l.length-1]="color: "+e.bannerTextColor+"; background: "+a):(h=h.concat("%c "),l.push("color: "+e.bannerTextColor+"; background: "+e.bannerBackgroundColor)),l.push("background: #fff"),e.gameTitle&&(h=h.concat(e.gameTitle),e.gameVersion&&(h=h.concat(" v"+e.gameVersion)),e.hidePhaser||(h=h.concat(" / "))),e.hidePhaser||(h=h.concat("Phaser v"+n.VERSION+" ("+i+" | "+s+")")),h=h.concat(" %c "+e.gameURL),l[0]=h,console.log.apply(console,l)}}}},function(t,e,i){var n=i(0),s=i(6),r=i(1),o=i(343),a=new n({initialize:function(t,e){this.game=t,this.raf=new o,this.started=!1,this.running=!1,this.minFps=s(e,"min",5),this.targetFps=s(e,"target",60),this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=r,this.forceSetTimeOut=s(e,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=s(e,"deltaHistory",10),this.panicMax=s(e,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=s(e,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.startTime+=this.time-this._pauseTime},resetDelta:function(){var t=window.performance.now();this.time=t,this.lastTime=t,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0;for(var e=0;e0||!this.inFocus)&&(this._coolDown--,r=Math.min(r,this._target)),r>this._min&&(r=n[i],r=Math.min(r,this._min)),n[i]=r,this.deltaIndex++,this.deltaIndex>s&&(this.deltaIndex=0),o=0;for(var a=0;athis.nextFpsUpdate&&(this.actualFps=.25*this.framesThisSecond+.75*this.actualFps,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0),this.framesThisSecond++;var h=o/this._target;this.callback(t,o,h),this.lastTime=t,this.frame++},tick:function(){this.step()},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){this.running?this.sleep():t&&(this.startTime+=-this.lastTime+(this.lastTime+window.performance.now())),this.raf.start(this.step.bind(this),this.useRAF),this.running=!0,this.step()},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.callback=r,this.raf=null,this.game=null}});t.exports=a},function(t,e,i){var n=i(0),s=i(1),r=new n({initialize:function(){this.isRunning=!1,this.callback=s,this.tick=0,this.isSetTimeOut=!1,this.timeOutID=null,this.lastTime=0,this.target=0;var t=this;this.step=function e(){var i=window.performance.now();t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.requestAnimationFrame(e)},this.stepTimeout=function e(){var i=Date.now(),n=Math.min(Math.max(2*t.target+t.tick-i,0),t.target);t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.setTimeout(e,n)}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.target=i,this.isRunning=!0,this.timeOutID=e?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=s}});t.exports=r},function(t,e,i){var n=i(18);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e="visibilitychange":["webkit","moz","ms"].forEach(function(t){void 0!==document[t+"Hidden"]&&(document.hidden=function(){return document[t+"Hidden"]},e=t+"visibilitychange")});e&&document.addEventListener(e,function(t){document.hidden||"pause"===t.type?i.emit(n.HIDDEN):i.emit(n.VISIBLE)},!1),window.onblur=function(){i.emit(n.BLUR)},window.onfocus=function(){i.emit(n.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},function(t,e,i){var n=i(346),s=i(26),r=i(6);t.exports=function(t){var e=r(t,"data",[]),i=r(t,"canvas",null),o=r(t,"palette",n),a=r(t,"pixelWidth",1),h=r(t,"pixelHeight",a),l=r(t,"resizeCanvas",!0),u=r(t,"clearCanvas",!0),c=r(t,"preRender",null),d=r(t,"postRender",null),f=Math.floor(Math.abs(e[0].length*a)),p=Math.floor(Math.abs(e.length*h));i||(i=s.create2D(this,f,p),l=!1,u=!1),l&&(i.width=f,i.height=p);var g=i.getContext("2d");u&&g.clearRect(0,0,f,p),c&&c(i,g);for(var v=0;vi;)n-=i;ni.length-2?i.length-1:r+1],c=i[r>i.length-3?i.length-1:r+2];return e.set(n(a,h.x,l.x,u.x,c.x),n(a,h.y,l.y,u.y,c.y))},toJSON:function(){for(var t=[],e=0;e1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}},function(t,e,i){var n=i(116);t.exports=function(t){if("complete"!==document.readyState&&"interactive"!==document.readyState){var e=function(){document.removeEventListener("deviceready",e,!0),document.removeEventListener("DOMContentLoaded",e,!0),window.removeEventListener("load",e,!0),t()};document.body?n.cordova?document.addEventListener("deviceready",e,!1):(document.addEventListener("DOMContentLoaded",e,!0),window.addEventListener("load",e,!0)):window.setTimeout(e,20)}else t()}},function(t,e,i){var n=i(176);t.exports=function(t,e){var i=window.screen,s=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);if(s&&"string"==typeof s.type)return s.type;if("string"==typeof s)return s;if(i)return i.height>i.width?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if("number"==typeof window.orientation)return 0===window.orientation||180===window.orientation?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return n.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return n.ORIENTATION.LANDSCAPE}return e>t?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE}},function(t,e){t.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},function(t,e){t.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},function(t,e){t.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5}},function(t,e){t.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},function(t,e){t.exports=function(t){var e;return""!==t&&("string"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e||(e=document.body),e}},function(t,e){t.exports=function(t){var e="";try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):(e=new ActiveXObject("Microsoft.XMLDOM")).loadXML(t)}catch(t){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null}},function(t,e,i){var n=i(0),s=i(178),r=i(9),o=i(54),a=i(18),h=i(365),l=i(366),u=i(367),c=i(368),d=i(30),f=i(332),p=new n({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new r,this.isOver=!0,this.defaultCursor="",this.keyboard=e.inputKeyboard?new h(this):null,this.mouse=e.inputMouse?new l(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers,e.inputTouch&&1===this.pointersTotal&&(this.pointersTotal=2);for(var i=0;i<=this.pointersTotal;i++){var n=new u(this,i);n.smoothFactor=e.inputSmoothFactor,this.pointers.push(n)}this.mousePointer=e.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(a.BOOT,this.boot,this)},boot:function(){this.canvas=this.game.canvas,this.scaleManager=this.game.scale,this.events.emit(o.MANAGER_BOOT),this.game.events.on(a.PRE_RENDER,this.preRender,this),this.game.events.once(a.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(o.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(o.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(o.MANAGER_UPDATE);for(var n=0;n10&&(t=10-this.pointersTotal);for(var i=0;i-1&&e.preventDefault()}},this.onKeyUp=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.useQueue||t.manager.events.emit(o.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}};var e=this.target;e&&(e.addEventListener("keydown",this.onKeyDown,!1),e.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var t=this.target;t.removeEventListener("keydown",this.onKeyDown,!1),t.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},removeCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(r.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});t.exports=l},function(t,e,i){var n=i(0),s=i(168),r=i(54),o=i(0),a=new n({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=o,this.onMouseDown=o,this.onMouseUp=o,this.onMouseDownWindow=o,this.onMouseUpWindow=o,this.onMouseOver=o,this.onMouseOut=o,this.onMouseWheel=o,this.pointerLockChange=o,t.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.capture=t.inputMouseCapture,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return document.body.addEventListener("contextmenu",function(t){return t.preventDefault(),!1}),this},requestPointerLock:function(){if(s.pointerLock){var t=this.target;t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock()}},releasePointerLock:function(){s.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this,e=this.manager.canvas,i=window&&window.focus&&this.manager.game.config.autoFocus;this.onMouseMove=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseMove(e),t.capture&&e.preventDefault())},this.onMouseDown=function(n){i&&window.focus(),!n.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseDown(n),t.capture&&n.target===e&&n.preventDefault())},this.onMouseDownWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseDown(i)},this.onMouseUp=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseUp(i),t.capture&&i.target===e&&i.preventDefault())},this.onMouseUpWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseUp(i)},this.onMouseOver=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOver(e)},this.onMouseOut=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOut(e)},this.onMouseWheel=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.onMouseWheel(e)};var n=this.target;if(n){var r={passive:!0},o={passive:!1};n.addEventListener("mousemove",this.onMouseMove,this.capture?o:r),n.addEventListener("mousedown",this.onMouseDown,this.capture?o:r),n.addEventListener("mouseup",this.onMouseUp,this.capture?o:r),n.addEventListener("mouseover",this.onMouseOver,this.capture?o:r),n.addEventListener("mouseout",this.onMouseOut,this.capture?o:r),n.addEventListener("wheel",this.onMouseWheel,this.capture?o:r),window&&this.manager.game.config.inputWindowEvents&&(window.addEventListener("mousedown",this.onMouseDownWindow,o),window.addEventListener("mouseup",this.onMouseUpWindow,o)),s.pointerLock&&(this.pointerLockChange=function(e){var i=t.target;t.locked=document.pointerLockElement===i||document.mozPointerLockElement===i||document.webkitPointerLockElement===i,t.manager.onPointerLockChange(e)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mouseover",this.onMouseOver),t.removeEventListener("mouseout",this.onMouseOut),window&&(window.removeEventListener("mousedown",this.onMouseDownWindow),window.removeEventListener("mouseup",this.onMouseUpWindow)),s.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=a},function(t,e,i){var n=i(316),s=i(0),r=i(53),o=i(144),a=i(326),h=i(3),l=new s({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new h,this.prevPosition=new h,this.midPoint=new h(-1,-1),this.velocity=new h,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){var e=this.x,i=this.y;1!==t.resolution&&(e+=t._x,i+=t._y);var n=t.getWorldPoint(e,i);return this.worldX=n.x,this.worldY=n.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t=this.position.x,e=this.position.y,i=this.midPoint.x,s=this.midPoint.y;if(t!==i||e!==s){var r=a(this.motionFactor,i,t),h=a(this.motionFactor,s,e);o(r,t,.1)&&(r=t),o(h,e,.1)&&(h=e),this.midPoint.set(r,h);var l=t-r,u=e-h;this.velocity.set(l,u),this.angle=n(r,h,t,e),this.distance=Math.sqrt(l*l+u*u)}},up:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=t.timeStamp),this.isDown=!1,this.wasTouch=!1},down:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=t.timeStamp),this.isDown=!0,this.wasTouch=!1},move:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.button&&!this.isDown},rightButtonReleased:function(){return 2===this.button&&!this.isDown},middleButtonReleased:function(){return 1===this.button&&!this.isDown},backButtonReleased:function(){return 3===this.button&&!this.isDown},forwardButtonReleased:function(){return 4===this.button&&!this.isDown},getDistance:function(){return this.isDown?r(this.downX,this.downY,this.x,this.y):r(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,n=this.prevPosition.y,s=this.position.x,r=this.position.y,o=0;o0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),t.events.on(a.PRE_STEP,this.step,this),t.events.once(a.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(t){this.getParent(t),this.getParentBounds();var e=t.width,i=t.height,s=t.scaleMode,r=t.resolution,o=t.zoom,a=t.autoRound;if("string"==typeof e){var h=this.parentSize.width;0===h&&(h=window.innerWidth);var l=parseInt(e,10)/100;e=Math.floor(h*l)}if("string"==typeof i){var c=this.parentSize.height;0===c&&(c=window.innerHeight);var d=parseInt(i,10)/100;i=Math.floor(c*d)}this.resolution=1,this.scaleMode=s,this.autoRound=a,this.autoCenter=t.autoCenter,this.resizeInterval=t.resizeInterval,a&&(e=Math.floor(e),i=Math.floor(i)),this.gameSize.setSize(e,i),o===n.ZOOM.MAX_ZOOM&&(o=this.getMaxZoom()),this.zoom=o,1!==o&&(this._resetZoom=!0),this.baseSize.setSize(e*r,i*r),a&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),t.minWidth>0&&this.displaySize.setMin(t.minWidth*o,t.minHeight*o),t.maxWidth>0&&this.displaySize.setMax(t.maxWidth*o,t.maxHeight*o),this.displaySize.setSize(e,i),this.orientation=u(e,i)},getParent:function(t){var e=t.parent;if(null!==e){if(this.parent=l(e),this.parentIsWindow=this.parent===document.body,t.expandParent&&t.scaleMode!==n.SCALE_MODE.NONE){var i=this.parent.getBoundingClientRect();(this.parentIsWindow||0===i.height)&&(document.documentElement.style.height="100%",document.body.style.height="100%",i=this.parent.getBoundingClientRect(),this.parentIsWindow||0!==i.height||(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}t.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=l(t.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var t=this.parentSize,e=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(e.height=h(!0));var i=this.resolution,n=e.width*i,s=e.height*i;return(t.width!==n||t.height!==s)&&(t.setSize(n,s),!0)},lockOrientation:function(t){var e=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return!!e&&e(t)},setParentSize:function(t,e){return this.parentSize.setSize(t,e),this.refresh()},setGameSize:function(t,e){var i=this.autoRound,n=this.resolution;i&&(t=Math.floor(t),e=Math.floor(e));var s=this.width,r=this.height;return this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),i&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t,e),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(s,r)},resize:function(t,e){var i=this.zoom,n=this.resolution,s=this.autoRound;s&&(t=Math.floor(t),e=Math.floor(e));var r=this.width,o=this.height;this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),s&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t*i*n,e*i*n),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var a=this.canvas.style,h=t*i,l=e*i;return s&&(h=Math.floor(h),l=Math.floor(l)),h===t&&l===e||(a.width=h+"px",a.height=l+"px"),this.refresh(r,o)},setZoom:function(t){return this.zoom=t,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},refresh:function(t,e){void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var i=this.game.domContainer;if(i){this.baseSize.setCSS(i);var n=this.canvas.style,s=i.style;s.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",s.marginLeft=n.marginLeft,s.marginTop=n.marginTop}return this.emit(o.RESIZE,this.gameSize,this.baseSize,this.displaySize,this.resolution,t,e),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var t=u(this.width,this.height);t!==this.orientation&&(this.orientation=t,this.emit(o.ORIENTATION_CHANGE,t))}},updateScale:function(){var t,e,i=this.canvas.style,s=this.gameSize.width,r=this.gameSize.height,o=this.zoom,a=this.autoRound;this.scaleMode===n.SCALE_MODE.NONE?(this.displaySize.setSize(s*o*1,r*o*1),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this._resetZoom&&(i.width=t+"px",i.height=e+"px",this._resetZoom=!1)):this.scaleMode===n.SCALE_MODE.RESIZE?(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(1*this.displaySize.width,1*this.displaySize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this.canvas.width=t,this.canvas.height=e):(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),i.width=t+"px",i.height=e+"px"),this.getParentBounds(),this.updateCenter()},getMaxZoom:function(){var t=p(this.parentSize.width,this.gameSize.width,0,!0),e=p(this.parentSize.height,this.gameSize.height,0,!0);return Math.max(Math.min(t,e),1)},updateCenter:function(){var t=this.autoCenter;if(t!==n.CENTER.NO_CENTER){var e=this.canvas,i=e.style,s=e.getBoundingClientRect(),r=s.width,o=s.height,a=Math.floor((this.parentSize.width-r)/2),h=Math.floor((this.parentSize.height-o)/2);t===n.CENTER.CENTER_HORIZONTALLY?h=0:t===n.CENTER.CENTER_VERTICALLY&&(a=0),i.marginLeft=a+"px",i.marginTop=h+"px"}},updateBounds:function(){var t=this.canvasBounds,e=this.canvas.getBoundingClientRect();t.x=e.left+(window.pageXOffset||0)-(document.documentElement.clientLeft||0),t.y=e.top+(window.pageYOffset||0)-(document.documentElement.clientTop||0),t.width=e.width,t.height=e.height},transformX:function(t){return(t-this.canvasBounds.left)*this.displayScale.x},transformY:function(t){return(t-this.canvasBounds.top)*this.displayScale.y},startFullscreen:function(t){void 0===t&&(t={navigationUI:"hide"});var e=this.fullscreen;if(e.available){if(!e.active){var i,n=this.getFullscreenTarget();(i=e.keyboard?n[e.request](Element.ALLOW_KEYBOARD_INPUT):n[e.request](t))?i.then(this.fullscreenSuccessHandler.bind(this)).catch(this.fullscreenErrorHandler.bind(this)):e.active?this.fullscreenSuccessHandler():this.fullscreenErrorHandler()}}else this.emit(o.FULLSCREEN_UNSUPPORTED)},fullscreenSuccessHandler:function(){this.getParentBounds(),this.refresh(),this.emit(o.ENTER_FULLSCREEN)},fullscreenErrorHandler:function(t){this.removeFullscreenTarget(),this.emit(o.FULLSCREEN_FAILED,t)},getFullscreenTarget:function(){if(!this.fullscreenTarget){var t=document.createElement("div");t.style.margin="0",t.style.padding="0",t.style.width="100%",t.style.height="100%",this.fullscreenTarget=t,this._createdFullscreenTarget=!0}this._createdFullscreenTarget&&(this.canvas.parentNode.insertBefore(this.fullscreenTarget,this.canvas),this.fullscreenTarget.appendChild(this.canvas));return this.fullscreenTarget},removeFullscreenTarget:function(){if(this._createdFullscreenTarget){var t=this.fullscreenTarget;if(t&&t.parentNode){var e=t.parentNode;e.insertBefore(this.canvas,t),e.removeChild(t)}}},stopFullscreen:function(){var t=this.fullscreen;if(!t.available)return this.emit(o.FULLSCREEN_UNSUPPORTED),!1;t.active&&document[t.cancel](),this.removeFullscreenTarget(),this.getParentBounds(),this.emit(o.LEAVE_FULLSCREEN),this.refresh()},toggleFullscreen:function(t){this.fullscreen.active?this.stopFullscreen():this.startFullscreen(t)},startListeners:function(){var t=this,e=this.listeners;if(e.orientationChange=function(){t._checkOrientation=!0,t.dirty=!0},e.windowResize=function(){t.dirty=!0},window.addEventListener("orientationchange",e.orientationChange,!1),window.addEventListener("resize",e.windowResize,!1),this.fullscreen.available){e.fullScreenChange=function(e){return t.onFullScreenChange(e)},e.fullScreenError=function(e){return t.onFullScreenError(e)};["webkit","moz",""].forEach(function(t){document.addEventListener(t+"fullscreenchange",e.fullScreenChange,!1),document.addEventListener(t+"fullscreenerror",e.fullScreenError,!1)}),document.addEventListener("MSFullscreenChange",e.fullScreenChange,!1),document.addEventListener("MSFullscreenError",e.fullScreenError,!1)}},onFullScreenChange:function(){document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||this.stopFullscreen()},onFullScreenError:function(){this.removeFullscreenTarget()},step:function(t,e){this.parent&&(this._lastCheck+=e,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var t=this.listeners;window.removeEventListener("orientationchange",t.orientationChange,!1),window.removeEventListener("resize",t.windowResize,!1);["webkit","moz",""].forEach(function(e){document.removeEventListener(e+"fullscreenchange",t.fullScreenChange,!1),document.removeEventListener(e+"fullscreenerror",t.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",t.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",t.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===n.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===n.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=v},function(t,e,i){var n=i(22),s=i(0),r=i(93),o=i(3),a=new s({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===n&&(n=null),this._width=t,this._height=e,this._parent=n,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(t){return void 0===t&&(t=0),this.aspectMode=t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=n(t,0,this.maxWidth),this.minHeight=n(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=n(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=n(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case a.NONE:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(r(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(t,e,!0);break;case a.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minWidth,this.maxWidth),e&&this._parent&&t>this._parent.width&&(t=Math.max(this.minWidth,this._parent.width)),t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minHeight,this.maxHeight),e&&this._parent&&t>this._parent.height&&(t=Math.max(this.minHeight,this._parent.height)),t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var n=this.snapTo,s=0===e?1:t/e;return i&&this.aspectRatio>s||!i&&this.aspectRatio0&&(t=(e=r(e,n.y))*this.aspectRatio)):(i&&this.aspectRatios)&&(t=(e=r(e,n.y))*this.aspectRatio,n.x>0&&(e=(t=r(t,n.x))*(1/this.aspectRatio))),this._width=t,this._height=e,this},fitTo:function(t,e){return this.constrain(t,e,!0)},envelop:function(t,e){return this.constrain(t,e,!1)},setWidth:function(t){return this.setSize(t,this._height)},setHeight:function(t){return this.setSize(this._width,t)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(t){t&&t.style&&(t.style.width=this._width+"px",t.style.height=this._height+"px")},copy:function(t){return t.setAspectMode(this.aspectMode),t.aspectRatio=this.aspectRatio,t.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(t){this.setSize(t,this._height)}},height:{get:function(){return this._height},set:function(t){this.setSize(this._width,t)}}});a.NONE=0,a.WIDTH_CONTROLS_HEIGHT=1,a.HEIGHT_CONTROLS_WIDTH=2,a.FIT=3,a.ENVELOP=4,t.exports=a},function(t,e,i){var n=i(0),s=i(123),r=i(19),o=i(18),a=i(6),h=i(82),l=i(1),u=i(373),c=i(179),d=new n({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,e){Array.isArray(e)||(e=[e]);for(var i=0;i-1&&(delete this.keys[n],this.scenes.splice(i,1),this._start.indexOf(n)>-1&&(i=this._start.indexOf(n),this._start.splice(i,1)),e.sys.destroy())}return this},bootScene:function(t){var e,i=t.sys,n=i.settings;t.init&&(t.init.call(t,n.data),n.status=s.INIT,n.isTransition&&i.events.emit(r.TRANSITION_INIT,n.transitionFrom,n.transitionDuration)),i.load&&(e=i.load).reset(),e&&t.preload?(t.preload.call(t),0===e.list.size?this.create(t):(n.status=s.LOADING,e.once(h.COMPLETE,this.loadComplete,this),e.start())):this.create(t)},loadComplete:function(t){var e=t.scene;this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(e)},payloadComplete:function(t){this.bootScene(t.scene)},update:function(t,e){this.processQueue(),this.isProcessing=!0;for(var i=this.scenes.length-1;i>=0;i--){var n=this.scenes[i].sys;n.settings.status>s.START&&n.settings.status<=s.RUNNING&&n.step(t,e)}},render:function(t){for(var e=0;e=s.LOADING&&i.settings.status0){var i=this.getScene(t);this.scenes.splice(e,1),this.scenes.unshift(i)}}return this},moveDown:function(t){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e>0){var i=e-1,n=this.getScene(t),s=this.getAt(i);this.scenes[e]=s,this.scenes[i]=n}}return this},moveUp:function(t){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e=r.x&&t=r.y&&e=r.x&&t=r.y&&e-1){var o=this.context.getImageData(t,e,1,1);o.data[0]=i,o.data[1]=n,o.data[2]=s,o.data[3]=r,this.context.putImageData(o,t,e)}return this},putData:function(t,e,i,n,s,r,o){return void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=t.width),void 0===o&&(o=t.height),this.context.putImageData(t,e,i,n,s,r,o),this},getData:function(t,e,i,n){return t=s(Math.floor(t),0,this.width-1),e=s(Math.floor(e),0,this.height-1),i=s(i,1,this.width-t),n=s(n,1,this.height-e),this.context.getImageData(t,e,i,n)},getPixel:function(t,e,i){i||(i=new r);var n=this.getIndex(t,e);if(n>-1){var s=this.data,o=s[n+0],a=s[n+1],h=s[n+2],l=s[n+3];i.setTo(o,a,h,l)}return i},getPixels:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=i),t=Math.abs(Math.round(t)),e=Math.abs(Math.round(e));for(var o=s(t,0,this.width),a=s(t+i,0,this.width),h=s(e,0,this.height),l=s(e+n,0,this.height),u=new r,c=[],d=h;d0)&&(!!n.prototype.pause.call(this)&&(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(r.PAUSE,this),!0)))},resume:function(){return!this.manager.isLocked(this,"resume")&&(!(this.startTime>0)&&(!!n.prototype.resume.call(this)&&(!!this.pickAndPlayAudioTag()&&(this.emit(r.RESUME,this),!0))))},stop:function(){return!this.manager.isLocked(this,"stop")&&(!!n.prototype.stop.call(this)&&(this.stopAndReleaseAudioTag(),this.emit(r.STOP,this),!0))},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var t=this.currentConfig.seek,e=this.currentConfig.delay,i=(this.currentMarker?this.currentMarker.start:0)+t;return this.previousTime=i,this.audio.currentTime=i,this.applyConfig(),0===e?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+1e3*e,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var t=0;t0)this.startTime=n-this.manager.loopEndOffset?(this.audio.currentTime=i+Math.max(0,s-n),s=this.audio.currentTime):s=n)return this.reset(),this.stopAndReleaseAudioTag(),void this.emit(r.COMPLETE,this);this.previousTime=s}},destroy:function(){n.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=this.currentConfig.volume*this.manager.volume)},calculateRate:function(){n.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(t){this.currentConfig.mute=t,this.manager.isLocked(this,"mute",t)||(this.updateMute(),this.emit(r.MUTE,this,t))}},setMute:function(t){return this.mute=t,this},volume:{get:function(){return this.currentConfig.volume},set:function(t){this.currentConfig.volume=t,this.manager.isLocked(this,"volume",t)||(this.updateVolume(),this.emit(r.VOLUME,this,t))}},setVolume:function(t){return this.volume=t,this},rate:{get:function(){return this.currentConfig.rate},set:function(t){this.currentConfig.rate=t,this.manager.isLocked(this,r.RATE,t)||(this.calculateRate(),this.emit(r.RATE,this,t))}},setRate:function(t){return this.rate=t,this},detune:{get:function(){return this.currentConfig.detune},set:function(t){this.currentConfig.detune=t,this.manager.isLocked(this,r.DETUNE,t)||(this.calculateRate(),this.emit(r.DETUNE,this,t))}},setDetune:function(t){return this.detune=t,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(t){this.manager.isLocked(this,"seek",t)||this.startTime>0||(this.isPlaying||this.isPaused)&&(t=Math.min(Math.max(0,t),this.duration),this.isPlaying?(this.previousTime=t,this.audio.currentTime=t):this.isPaused&&(this.currentConfig.seek=t),this.emit(r.SEEK,this,t))}},setSeek:function(t){return this.seek=t,this},loop:{get:function(){return this.currentConfig.loop},set:function(t){this.currentConfig.loop=t,this.manager.isLocked(this,"loop",t)||(this.audio&&(this.audio.loop=t),this.emit(r.LOOP,this,t))}},setLoop:function(t){return this.loop=t,this}});t.exports=o},function(t,e,i){var n=i(124),s=i(0),r=i(9),o=i(383),a=i(1),h=new s({Extends:r,initialize:function(t){r.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){var i=new o(this,t,e);return this.sounds.push(i),i},addAudioSprite:function(t,e){var i=this.add(t,e);return i.spritemap={},i},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return n.prototype.remove.call(this,t)},removeByKey:function(t){return n.prototype.removeByKey.call(this,t)},pauseAll:a,resumeAll:a,stopAll:a,update:a,setRate:a,setDetune:a,setMute:a,setVolume:a,forEachActiveSound:function(t,e){n.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){n.prototype.destroy.call(this)}});t.exports=h},function(t,e,i){var n=i(125),s=i(0),r=i(9),o=i(17),a=new s({Extends:r,initialize:function(t,e,i){void 0===i&&(i={}),r.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=o({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},i),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!1},updateMarker:function(t){return!1},removeMarker:function(t){return null},play:function(t,e){return!1},pause:function(){return!1},resume:function(){return!1},stop:function(){return!1},destroy:function(){this.manager.remove(this),n.prototype.destroy.call(this)}});t.exports=a},function(t,e,i){var n=i(385),s=i(124),r=i(0),o=i(59),a=i(386),h=new r({Extends:s,initialize:function(t){this.context=this.createAudioContext(t),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked="suspended"===this.context.state&&("ontouchstart"in window||"onclick"in window),s.call(this,t),this.locked&&this.unlock()},createAudioContext:function(t){var e=t.config.audio;return e&&e.context?(e.context.resume(),e.context):new AudioContext},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){var i=new a(this,t,e);return this.sounds.push(i),i},decodeAudio:function(t,e){var i;i=Array.isArray(t)?t:[{key:t,data:e}];for(var s=this.game.cache.audio,r=i.length,a=0;a>4,u[h++]=(15&i)<<4|s>>2,u[h++]=(3&s)<<6|63&r;return l}},function(t,e,i){var n=i(125),s=i(0),r=i(59),o=new s({Extends:n,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('There is no audio asset with key "'+e+'" in the audio cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.context.createGain(),this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),this.volumeNode.connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,n.call(this,t,e,i)},play:function(t,e){return!!n.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(r.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime-1;r--)n[s][r]=t[r][s]}return n}},function(t,e){function i(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function n(t,e){return te?1:0}var s=function(t,e,r,o,a){for(void 0===r&&(r=0),void 0===o&&(o=t.length-1),void 0===a&&(a=n);o>r;){if(o-r>600){var h=o-r+1,l=e-r+1,u=Math.log(h),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(h-c)/h)*(l-h/2<0?-1:1),f=Math.max(r,Math.floor(e-l*c/h+d)),p=Math.min(o,Math.floor(e+(h-l)*c/h+d));s(t,e,f,p,a)}var g=t[e],v=r,m=o;for(i(t,r,e),a(t[o],g)>0&&i(t,r,o);v0;)m--}0===a(t[r],g)?i(t,r,m):i(t,++m,o),m<=e&&(r=m+1),e<=m&&(o=m-1)}};t.exports=s},function(t,e,i){var n=i(6),s=i(114),r=function(t,e,i){for(var n=[],s=0;s0?s.delayedPlay(d,r,o):s.load(r)}return t}},function(t,e,i){var n=i(12);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=Math.min(t.x,e.x),r=Math.min(t.y,e.y),o=Math.max(t.right,e.right)-s,a=Math.max(t.bottom,e.bottom)-r;return i.setTo(s,r,o,a)}},function(t,e,i){var n=i(0),s=i(11),r=i(953),o=i(13),a=i(7),h=i(177),l=i(19),u=i(333),c=new n({Extends:o,Mixins:[s.AlphaSingle,s.BlendMode,s.Depth,s.Origin,s.ScrollFactor,s.Transform,s.Visible,r],initialize:function(t,e,i,n,s,r){o.call(this,t,"DOMElement"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,this.rotate3dAngle="deg",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(e,i),"string"==typeof n?"#"===n[0]?this.setElement(n.substr(1),s,r):this.createElement(n,s,r):n&&this.setElement(n,s,r),t.sys.events.on(l.SLEEP,this.handleSceneEvent,this),t.sys.events.on(l.WAKE,this.handleSceneEvent,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?"block":"none")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+"px"}},addListener:function(t){if(this.node){t=t.split(" ");for(var e=0;e>>16,y=(65280&p)>>>8,x=255&p,c.strokeStyle="rgba("+m+","+y+","+x+","+d+")",c.lineWidth=v,T+=3;break;case n.FILL_STYLE:g=l[T+1],f=l[T+2],m=(16711680&g)>>>16,y=(65280&g)>>>8,x=255&g,c.fillStyle="rgba("+m+","+y+","+x+","+f+")",T+=2;break;case n.BEGIN_PATH:c.beginPath();break;case n.CLOSE_PATH:c.closePath();break;case n.FILL_PATH:h||c.fill();break;case n.STROKE_PATH:h||c.stroke();break;case n.FILL_RECT:h?c.rect(l[T+1],l[T+2],l[T+3],l[T+4]):c.fillRect(l[T+1],l[T+2],l[T+3],l[T+4]),T+=4;break;case n.FILL_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.fill(),T+=6;break;case n.STROKE_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.stroke(),T+=6;break;case n.LINE_TO:c.lineTo(l[T+1],l[T+2]),T+=2;break;case n.MOVE_TO:c.moveTo(l[T+1],l[T+2]),T+=2;break;case n.LINE_FX_TO:c.lineTo(l[T+1],l[T+2]),T+=5;break;case n.MOVE_FX_TO:c.moveTo(l[T+1],l[T+2]),T+=5;break;case n.SAVE:c.save();break;case n.RESTORE:c.restore();break;case n.TRANSLATE:c.translate(l[T+1],l[T+2]),T+=2;break;case n.SCALE:c.scale(l[T+1],l[T+2]),T+=2;break;case n.ROTATE:c.rotate(l[T+1]),T+=1;break;case n.GRADIENT_FILL_STYLE:T+=5;break;case n.GRADIENT_LINE_STYLE:T+=6;break;case n.SET_TEXTURE:T+=2}c.restore()}}},function(t,e,i){var n=i(0),s=i(2),r=new n({initialize:function(t,e,i,n,r){if("object"==typeof t){var o=t;t=s(o,"x",0),e=s(o,"y",0),i=s(o,"power",0),n=s(o,"epsilon",100),r=s(o,"gravity",50)}else void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=100),void 0===r&&(r=50);this.x=t,this.y=e,this.active=!0,this._gravity=r,this._power=0,this._epsilon=0,this.power=i,this.epsilon=n},update:function(t,e){var i=this.x-t.x,n=this.y-t.y,s=i*i+n*n;if(0!==s){var r=Math.sqrt(s);s0},resetPosition:function(){this.x=0,this.y=0},fire:function(t,e){var i=this.emitter;this.frame=i.getFrame(),i.emitZone&&i.emitZone.getPoint(this),void 0===t?(i.follow&&(this.x+=i.follow.x+i.followOffset.x),this.x+=i.x.onEmit(this,"x")):this.x+=t,void 0===e?(i.follow&&(this.y+=i.follow.y+i.followOffset.y),this.y+=i.y.onEmit(this,"y")):this.y+=e,this.life=i.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0;var n=i.speedX.onEmit(this,"speedX"),o=i.speedY?i.speedY.onEmit(this,"speedY"):n;if(i.radial){var a=s(i.angle.onEmit(this,"angle"));this.velocityX=Math.cos(a)*Math.abs(n),this.velocityY=Math.sin(a)*Math.abs(o)}else if(i.moveTo){var h=i.moveToX.onEmit(this,"moveToX"),l=i.moveToY?i.moveToY.onEmit(this,"moveToY"):h,u=Math.atan2(l-this.y,h-this.x),c=r(this.x,this.y,h,l)/(this.life/1e3);this.velocityX=Math.cos(u)*c,this.velocityY=Math.sin(u)*c}else this.velocityX=n,this.velocityY=o;i.acceleration&&(this.accelerationX=i.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=i.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=i.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=i.maxVelocityY.onEmit(this,"maxVelocityY"),this.delayCurrent=i.delay.onEmit(this,"delay"),this.scaleX=i.scaleX.onEmit(this,"scaleX"),this.scaleY=i.scaleY?i.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=i.rotate.onEmit(this,"rotate"),this.rotation=s(this.angle),this.bounce=i.bounce.onEmit(this,"bounce"),this.alpha=i.alpha.onEmit(this,"alpha"),this.tint=i.tint.onEmit(this,"tint")},computeVelocity:function(t,e,i,n){var s=this.velocityX,r=this.velocityY,o=this.accelerationX,a=this.accelerationY,h=this.maxVelocityX,l=this.maxVelocityY;s+=t.gravityX*i,r+=t.gravityY*i,o&&(s+=o*i),a&&(r+=a*i),s>h?s=h:s<-h&&(s=-h),r>l?r=l:r<-l&&(r=-l),this.velocityX=s,this.velocityY=r;for(var u=0;ue.right&&t.collideRight&&(this.x=e.right,this.velocityX*=i),this.ye.bottom&&t.collideBottom&&(this.y=e.bottom,this.velocityY*=i)},update:function(t,e,i){if(this.delayCurrent>0)return this.delayCurrent-=t,!1;var n=this.emitter,r=1-this.lifeCurrent/this.life;return this.lifeT=r,this.computeVelocity(n,t,e,i),this.x+=this.velocityX*e,this.y+=this.velocityY*e,n.bounds&&this.checkBounds(n),n.deathZone&&n.deathZone.willKill(this)?(this.lifeCurrent=0,!0):(this.scaleX=n.scaleX.onUpdate(this,"scaleX",r,this.scaleX),n.scaleY?this.scaleY=n.scaleY.onUpdate(this,"scaleY",r,this.scaleY):this.scaleY=this.scaleX,this.angle=n.rotate.onUpdate(this,"rotate",r,this.angle),this.rotation=s(this.angle),this.alpha=n.alpha.onUpdate(this,"alpha",r,this.alpha),this.tint=n.tint.onUpdate(this,"tint",r,this.tint),this.lifeCurrent-=t,this.lifeCurrent<=0)}});t.exports=o},function(t,e,i){var n=i(52),s=i(0),r=i(11),o=i(402),a=i(403),h=i(970),l=i(2),u=i(184),c=i(404),d=i(99),f=i(400),p=i(405),g=i(12),v=i(128),m=i(3),y=i(58),x=new s({Mixins:[r.BlendMode,r.Mask,r.ScrollFactor,r.Visible],initialize:function(t,e){this.manager=t,this.texture=t.texture,this.frames=[t.defaultFrame],this.defaultFrame=t.defaultFrame,this.configFastMap=["active","blendMode","collideBottom","collideLeft","collideRight","collideTop","deathCallback","deathCallbackScope","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxParticles","name","on","particleBringToTop","particleClass","radial","timeScale","trackVisible","visible"],this.configOpMap=["accelerationX","accelerationY","angle","alpha","bounce","delay","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],this.name="",this.particleClass=f,this.x=new h(e,"x",0,!0),this.y=new h(e,"y",0,!0),this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.accelerationX=new h(e,"accelerationX",0,!0),this.accelerationY=new h(e,"accelerationY",0,!0),this.maxVelocityX=new h(e,"maxVelocityX",1e4,!0),this.maxVelocityY=new h(e,"maxVelocityY",1e4,!0),this.speedX=new h(e,"speedX",0,!0),this.speedY=new h(e,"speedY",0,!0),this.moveTo=!1,this.moveToX=new h(e,"moveToX",0,!0),this.moveToY=new h(e,"moveToY",0,!0),this.bounce=new h(e,"bounce",0,!0),this.scaleX=new h(e,"scaleX",1),this.scaleY=new h(e,"scaleY",1),this.tint=new h(e,"tint",4294967295),this.alpha=new h(e,"alpha",1),this.lifespan=new h(e,"lifespan",1e3,!0),this.angle=new h(e,"angle",{min:0,max:360},!0),this.rotate=new h(e,"rotate",0),this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.quantity=new h(e,"quantity",1,!0),this.delay=new h(e,"delay",0,!0),this.frequency=0,this.on=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZone=null,this.deathZone=null,this.bounds=null,this.collideLeft=!0,this.collideRight=!0,this.collideTop=!0,this.collideBottom=!0,this.active=!0,this.visible=!0,this.blendMode=n.NORMAL,this.follow=null,this.followOffset=new m,this.trackVisible=!1,this.currentFrame=0,this.randomFrame=!0,this.frameQuantity=1,this.dead=[],this.alive=[],this._counter=0,this._frameCounter=0,e&&this.fromJSON(e)},fromJSON:function(t){if(!t)return this;var e=0,i="";for(e=0;e0&&this.getParticleCount()===this.maxParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e&&(this.emitCallbackScope=e)),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e&&(this.deathCallbackScope=e)),this},killAll:function(){for(var t=this.dead,e=this.alive;e.length>0;)t.push(e.pop());return this},forEachAlive:function(t,e){for(var i=this.alive,n=i.length,s=0;s0){var u=this.deathCallback,c=this.deathCallbackScope;for(o=h-1;o>=0;o--){var d=a[o];s.splice(d.index,1),r.push(d.particle),u&&u.call(c,d.particle),d.particle.resetPosition()}}this.on&&(0===this.frequency?this.emitParticle():this.frequency>0&&(this._counter-=e,this._counter<=0&&(this.emitParticle(),this._counter=this.frequency-Math.abs(this._counter))))},depthSortCallback:function(t,e){return t.y-e.y}});t.exports=x},function(t,e,i){var n=new(i(0))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){var e=this.source.contains(t.x,t.y);return e&&this.killOnEnter||!e&&!this.killOnEnter}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s){void 0===n&&(n=!1),void 0===s&&(s=!0),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=n,this.counter=-1,this.seamless=s,this._length=0,this._direction=0,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var t=this.points[0],e=this.points[this.points.length-1];t.x===e.x&&t.y===e.y&&this.points.pop()}var i=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=n},function(t,e){t.exports=function(t,e){for(var i=0;i0&&(s=-h.PI2+s%h.PI2):s>h.PI2?s=h.PI2:s<0&&(s=h.PI2+s%h.PI2);for(var u,c=[a+Math.cos(n)*i,l+Math.sin(n)*i];e<1;)u=s*e+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),e+=t;return u=s+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),c.push(a+Math.cos(n)*i,l+Math.sin(n)*i),this.pathIndexes=o(c),this.pathData=c,this}});t.exports=u},function(t,e,i){var n=i(0),s=i(999),r=i(66),o=i(12),a=i(31),h=new n({Extends:a,Mixins:[s],initialize:function(t,e,i,n,s,r){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Curve",n),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(e,i),void 0!==s&&this.setFillStyle(s,r),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],n=this.geom.getPoints(e),s=0;sc+v)){var m=g.getPoint((u-c)/v);o.push(m);break}c+=v}return o}},function(t,e,i){var n=i(57),s=i(56);t.exports=function(t){for(var e=t.points,i=0,r=0;r0&&r.push(i([0,0],n[0])),e=0;e1&&r.push(i([0,0],n[n.length-1])),t.setTo(r)}},function(t,e,i){var n=i(0),s=i(12),r=i(31),o=i(1020),a=new n({Extends:r,Mixins:[o],initialize:function(t,e,i,n,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=128),void 0===o&&(o=128),r.call(this,t,"Rectangle",new s(0,0,n,o)),this.setPosition(e,i),this.setSize(n,o),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=a},function(t,e,i){var n=i(1023),s=i(0),r=i(66),o=i(31),a=new s({Extends:o,Mixins:[n],initialize:function(t,e,i,n,s,r,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=5),void 0===s&&(s=32),void 0===r&&(r=64),o.call(this,t,"Star",null),this._points=n,this._innerRadius=s,this._outerRadius=r,this.setPosition(e,i),this.setSize(2*r,2*r),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,n=this._outerRadius,s=Math.PI/2*3,o=Math.PI/e,a=n,h=n;t.push(a,h+-n);for(var l=0;l=1)return i.x=r.x1,i.y=r.y1,i;var h=s(r),l=s(o),u=s(a),c=(h+l+u)*e,d=0;return ch+l?(d=(c-=h+l)/u,i.x=a.x1+(a.x2-a.x1)*d,i.y=a.y1+(a.y2-a.y1)*d):(d=(c-=h)/l,i.x=o.x1+(o.x2-o.x1)*d,i.y=o.y1+(o.y2-o.y1)*d),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]);var o=t.getLineA(),a=t.getLineB(),h=t.getLineC(),l=n(o),u=n(a),c=n(h),d=l+u+c;e||(e=d/i);for(var f=0;fl+u?(g=(p-=l+u)/c,v.x=h.x1+(h.x2-h.x1)*g,v.y=h.y1+(h.y2-h.y1)*g):(g=(p-=l)/u,v.x=a.x1+(a.x2-a.x1)*g,v.y=a.y1+(a.y2-a.y1)*g),r.push(v)}return r}},function(t,e){t.exports=function(t,e,i){if(!t||"number"==typeof t)return!1;if(t.hasOwnProperty(e))return t[e]=i,!0;if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=t,o=0;o0?(h=this.lightPool.pop()).set(t,e,i,a[0],a[1],a[2],o):h=new s(t,e,i,a[0],a[1],a[2],o),this.lights.push(h),h},removeLight:function(t){var e=this.lights.indexOf(t);return e>=0&&(this.lightPool.push(t),this.lights.splice(e,1)),this},shutdown:function(){for(;this.lights.length>0;)this.lightPool.push(this.lights.pop());this.ambientColor={r:.1,g:.1,b:.1},this.culledLights.length=0,this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=o},function(t,e,i){var n=i(46),s=i(17),r={Circle:i(1086),Ellipse:i(1096),Intersects:i(428),Line:i(1115),Point:i(1137),Polygon:i(1151),Rectangle:i(441),Triangle:i(1181)};r=s(!1,r,n),t.exports=r},function(t,e,i){t.exports={CircleToCircle:i(204),CircleToRectangle:i(205),GetCircleToCircle:i(1106),GetCircleToRectangle:i(1107),GetLineToCircle:i(206),GetLineToRectangle:i(208),GetRectangleIntersection:i(1108),GetRectangleToRectangle:i(1109),GetRectangleToTriangle:i(1110),GetTriangleToCircle:i(1111),GetTriangleToLine:i(433),GetTriangleToTriangle:i(1112),LineToCircle:i(207),LineToLine:i(84),LineToRectangle:i(429),PointToLine:i(437),PointToLineSegment:i(1113),RectangleToRectangle:i(131),RectangleToTriangle:i(430),RectangleToValues:i(1114),TriangleToCircle:i(432),TriangleToLine:i(434),TriangleToTriangle:i(435)}},function(t,e){t.exports=function(t,e){var i=t.x1,n=t.y1,s=t.x2,r=t.y2,o=e.x,a=e.y,h=e.right,l=e.bottom,u=0;if(i>=o&&i<=h&&n>=a&&n<=l||s>=o&&s<=h&&r>=a&&r<=l)return!0;if(i=o){if((u=n+(r-n)*(o-i)/(s-i))>a&&u<=l)return!0}else if(i>h&&s<=h&&(u=n+(r-n)*(h-i)/(s-i))>=a&&u<=l)return!0;if(n=a){if((u=i+(s-i)*(a-n)/(r-n))>=o&&u<=h)return!0}else if(n>l&&r<=l&&(u=i+(s-i)*(l-n)/(r-n))>=o&&u<=h)return!0;return!1}},function(t,e,i){var n=i(84),s=i(47),r=i(209),o=i(431);t.exports=function(t,e){if(e.left>t.right||e.rightt.bottom||e.bottom0}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},function(t,e,i){var n=i(207),s=i(83);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottome.right||t.righte.bottom||t.bottom0||(c=s(e),(d=n(t,c,!0)).length>0)}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},function(t,e){t.exports=function(t,e,i){void 0===i&&(i=1);var n=e.x1,s=e.y1,r=e.x2,o=e.y2,a=t.x,h=t.y,l=(r-n)*(r-n)+(o-s)*(o-s);if(0===l)return!1;var u=((a-n)*(r-n)+(h-s)*(o-s))/l;if(u<0)return Math.sqrt((n-a)*(n-a)+(s-h)*(s-h))<=i;if(u>=0&&u<=1){var c=((s-h)*(r-n)-(n-a)*(o-s))/l;return Math.abs(c)*Math.sqrt(l)<=i}return Math.sqrt((r-a)*(r-a)+(o-h)*(o-h))<=i}},function(t,e,i){var n=i(15),s=i(58),r=i(85);t.exports=function(t){var e=r(t)-n.TAU;return s(e,-Math.PI,Math.PI)}},function(t,e){t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},function(t,e){t.exports=function(t){return t.x*t.x+t.y*t.y}},function(t,e,i){var n=i(12);n.Area=i(1156),n.Ceil=i(1157),n.CeilAll=i(1158),n.CenterOn=i(166),n.Clone=i(1159),n.Contains=i(47),n.ContainsPoint=i(1160),n.ContainsRect=i(442),n.CopyFrom=i(1161),n.Decompose=i(431),n.Equals=i(1162),n.FitInside=i(1163),n.FitOutside=i(1164),n.Floor=i(1165),n.FloorAll=i(1166),n.FromPoints=i(175),n.GetAspectRatio=i(211),n.GetCenter=i(1167),n.GetPoint=i(150),n.GetPoints=i(273),n.GetSize=i(1168),n.Inflate=i(1169),n.Intersection=i(1170),n.MarchingAnts=i(284),n.MergePoints=i(1171),n.MergeRect=i(1172),n.MergeXY=i(1173),n.Offset=i(1174),n.OffsetPoint=i(1175),n.Overlaps=i(1176),n.Perimeter=i(112),n.PerimeterPoint=i(1177),n.Random=i(153),n.RandomOutside=i(1178),n.SameDimensions=i(1179),n.Scale=i(1180),n.Union=i(391),t.exports=n},function(t,e){t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(s.BUTTON_DOWN,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(s.BUTTON_UP,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=r},function(t,e,i){var n=i(447),s=i(448),r=i(0),o=i(9),a=i(3),h=new r({Extends:o,initialize:function(t,e){o.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],r=0;r=2&&(this.leftStick.set(r[0].getValue(),r[1].getValue()),s>=4&&this.rightStick.set(r[2].getValue(),r[3].getValue()))},destroy:function(){var t;for(this.removeAllListeners(),this.manager=null,this.pad=null,t=0;t=r;for(i=0;i=r;)this._elapsed-=r,this.step(s)}},step:function(t){var e,i,n=this.bodies.entries,s=n.length;for(e=0;e0){var l=this.tree,u=this.staticTree;for(n=(i=h.entries).length,t=0;t-1&&p>g&&(t.velocity.normalize().scale(g),p=g),t.speed=p},separate:function(t,e,i,n,s){if(!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e))return!1;if(i&&!1===i.call(n,t.gameObject,e.gameObject))return!1;if(t.isCircle&&e.isCircle)return this.separateCircle(t,e,s);if(t.isCircle!==e.isCircle){var r=t.isCircle?e:t,o=t.isCircle?t:e,a={x:r.x,y:r.y,right:r.right,bottom:r.bottom},h=o.center;if((h.ya.bottom)&&(h.xa.right))return this.separateCircle(t,e,s)}var l=!1,c=!1;this.forceX||Math.abs(this.gravity.y+t.gravity.y)r.right&&(s=h(o.x,o.y,r.right,r.y)-o.radius):o.y>r.bottom&&(o.xr.right&&(s=h(o.x,o.y,r.right,r.bottom)-o.radius)),s*=-1}else s=t.halfWidth+e.halfWidth-h(t.center.x,t.center.y,e.center.x,e.center.y);if(i||0===s||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==s&&(t.onOverlap||e.onOverlap)&&this.emit(u.OVERLAP,t.gameObject,e.gameObject,t,e),0!==s;var a=t.center.x-e.center.x,l=t.center.y-e.center.y,c=Math.sqrt(Math.pow(a,2)+Math.pow(l,2)),d=(e.center.x-t.center.x)/c||0,f=(e.center.y-t.center.y)/c||0,v=2*(t.velocity.x*d+t.velocity.y*f-e.velocity.x*d-e.velocity.y*f)/(t.mass+e.mass);t.immovable||(t.velocity.x=t.velocity.x-v*t.mass*d,t.velocity.y=t.velocity.y-v*t.mass*f),e.immovable||(e.velocity.x=e.velocity.x+v*e.mass*d,e.velocity.y=e.velocity.y+v*e.mass*f);var m=e.velocity.x-t.velocity.x,y=e.velocity.y-t.velocity.y,x=Math.atan2(y,m),T=this._frameTime;return t.immovable||e.immovable||(s/=2),t.immovable||(t.x+=t.velocity.x*T-s*Math.cos(x),t.y+=t.velocity.y*T-s*Math.sin(x)),e.immovable||(e.x+=e.velocity.x*T+s*Math.cos(x),e.y+=e.velocity.y*T+s*Math.sin(x)),t.velocity.x*=t.bounce.x,t.velocity.y*=t.bounce.y,e.velocity.x*=e.bounce.x,e.velocity.y*=e.bounce.y,(t.onCollide||e.onCollide)&&this.emit(u.COLLIDE,t.gameObject,e.gameObject,t,e),!0},intersects:function(t,e){return t!==e&&(t.isCircle||e.isCircle?t.isCircle?e.isCircle?h(t.center.x,t.center.y,e.center.x,e.center.y)<=t.halfWidth+e.halfWidth:this.circleBodyIntersects(t,e):this.circleBodyIntersects(e,t):!(t.right<=e.position.x||t.bottom<=e.position.y||t.position.x>=e.right||t.position.y>=e.bottom))},circleBodyIntersects:function(t,e){var i=s(t.center.x,e.left,e.right),n=s(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-n)*(t.center.y-n)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!0)},collide:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!1)},collideObjects:function(t,e,i,n,s,r){var o,a;t.isParent&&void 0===t.physicsType&&(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var h=Array.isArray(t),l=Array.isArray(e);if(this._total=0,h||l)if(!h&&l)for(o=0;o0},collideHandler:function(t,e,i,n,s,r){if(void 0===e&&t.isParent)return this.collideGroupVsGroup(t,t,i,n,s,r);if(!t||!e)return!1;if(t.body){if(e.body)return this.collideSpriteVsSprite(t,e,i,n,s,r);if(e.isParent)return this.collideSpriteVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideSpriteVsTilemapLayer(t,e,i,n,s,r)}else if(t.isParent){if(e.body)return this.collideSpriteVsGroup(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideGroupVsTilemapLayer(t,e,i,n,s,r)}else if(t.isTilemap){if(e.body)return this.collideSpriteVsTilemapLayer(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsTilemapLayer(e,t,i,n,s,r)}},collideSpriteVsSprite:function(t,e,i,n,s,r){return!(!t.body||!e.body)&&(this.separate(t.body,e.body,n,s,r)&&(i&&i.call(s,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,n,s,r){var o,h,l,u=t.body;if(0!==e.length&&u&&u.enable)if(this.useTree){var c=this.treeMinMax;c.minX=u.left,c.minY=u.top,c.maxX=u.right,c.maxY=u.bottom;var d=e.physicsType===a.DYNAMIC_BODY?this.tree.search(c):this.staticTree.search(c);for(h=d.length,o=0;oc.baseTileWidth){var d=(c.tileWidth-c.baseTileWidth)*e.scaleX;a-=d,l+=d}c.tileHeight>c.baseTileHeight&&(u+=(c.tileHeight-c.baseTileHeight)*e.scaleY);var f=e.getTilesWithinWorldXY(a,h,l,u);return 0!==f.length&&this.collideSpriteVsTilesHandler(t,f,i,n,s,r,!0)},collideSpriteVsTilesHandler:function(t,e,i,n,s,r,o){for(var a,h,l=t.body,c={left:0,right:0,top:0,bottom:0},d=!1,f=0;f0&&t>i&&(t=i)),0!==n&&0!==e&&(e<0&&e<-n?e=-n:e>0&&e>n&&(e=n)),this.gameObject.x+=t,this.gameObject.y+=e}t<0?this.facing=s.FACING_LEFT:t>0&&(this.facing=s.FACING_RIGHT),e<0?this.facing=s.FACING_UP:e>0&&(this.facing=s.FACING_DOWN),this.allowRotation&&(this.gameObject.angle+=this.deltaZ()),this._tx=t,this._ty=e},setBoundsRectangle:function(t){return this.customBoundsRectangle=t||this.world.bounds,this},checkWorldBounds:function(){var t=this.position,e=this.customBoundsRectangle,i=this.world.checkCollision,n=this.worldBounce?-this.worldBounce.x:-this.bounce.x,s=this.worldBounce?-this.worldBounce.y:-this.bounce.y,r=!1;return t.xe.right&&i.right&&(t.x=e.right-this.width,this.velocity.x*=n,this.blocked.right=!0,r=!0),t.ye.bottom&&i.down&&(t.y=e.bottom-this.height,this.velocity.y*=s,this.blocked.down=!0,r=!0),r&&(this.blocked.none=!1),r},setOffset:function(t,e){return void 0===e&&(e=t),this.offset.set(t,e),this.updateCenter(),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&n.getCenter){var s=n.displayWidth/2,r=n.displayHeight/2;this.offset.set(s-this.halfWidth,r-this.halfHeight)}return this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter()):this.isCircle=!1,this},reset:function(t,e){this.stop();var i=this.gameObject;i.setPosition(t,e),i.getTopLeft?i.getTopLeft(this.position):this.position.set(t,e),this.prev.copy(this.position),this.prevFrame.copy(this.position),this.rotation=i.angle,this.preRotation=i.angle,this.updateBounds(),this.updateCenter()},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?this.radius>0&&t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:h(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this._dx>0?this._dx:-this._dx},deltaAbsY:function(){return this._dy>0?this._dy:-this._dy},deltaX:function(){return this._dx},deltaY:function(){return this._dy},deltaXFinal:function(){return this._tx},deltaYFinal:function(){return this._ty},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.enable=!1,this.world&&this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor),this.isCircle?t.strokeCircle(i,n,this.width/2):(this.checkCollision.up&&t.lineBetween(e.x,e.y,e.x+this.width,e.y),this.checkCollision.right&&t.lineBetween(e.x+this.width,e.y,e.x+this.width,e.y+this.height),this.checkCollision.down&&t.lineBetween(e.x,e.y+this.height,e.x+this.width,e.y+this.height),this.checkCollision.left&&t.lineBetween(e.x,e.y,e.x,e.y+this.height))),this.debugShowVelocity&&(t.lineStyle(t.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),t.lineBetween(i,n,i+this.velocity.x/2,n+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setCollideWorldBounds:function(t,e,i){void 0===t&&(t=!0),this.collideWorldBounds=t;var n=void 0!==e,s=void 0!==i;return(n||s)&&(this.worldBounce||(this.worldBounce=new l),n&&(this.worldBounce.x=e),s&&(this.worldBounce.y=i)),this},setVelocity:function(t,e){return this.velocity.set(t,e),t=this.velocity.x,e=this.velocity.y,this.speed=Math.sqrt(t*t+e*e),this},setVelocityX:function(t){this.velocity.x=t;var e=t,i=this.velocity.y;return this.speed=Math.sqrt(e*e+i*i),this},setVelocityY:function(t){this.velocity.y=t;var e=this.velocity.x,i=t;return this.speed=Math.sqrt(e*e+i*i),this},setMaxVelocity:function(t,e){return this.maxVelocity.set(t,e),this},setMaxSpeed:function(t){return this.maxSpeed=t,this},setBounce:function(t,e){return this.bounce.set(t,e),this},setBounceX:function(t){return this.bounce.x=t,this},setBounceY:function(t){return this.bounce.y=t,this},setAcceleration:function(t,e){return this.acceleration.set(t,e),this},setAccelerationX:function(t){return this.acceleration.x=t,this},setAccelerationY:function(t){return this.acceleration.y=t,this},setAllowDrag:function(t){return void 0===t&&(t=!0),this.allowDrag=t,this},setAllowGravity:function(t){return void 0===t&&(t=!0),this.allowGravity=t,this},setAllowRotation:function(t){return void 0===t&&(t=!0),this.allowRotation=t,this},setDrag:function(t,e){return this.drag.set(t,e),this},setDragX:function(t){return this.drag.x=t,this},setDragY:function(t){return this.drag.y=t,this},setGravity:function(t,e){return this.gravity.set(t,e),this},setGravityX:function(t){return this.gravity.x=t,this},setGravityY:function(t){return this.gravity.y=t,this},setFriction:function(t,e){return this.friction.set(t,e),this},setFrictionX:function(t){return this.friction.x=t,this},setFrictionY:function(t){return this.friction.y=t,this},setAngularVelocity:function(t){return this.angularVelocity=t,this},setAngularAcceleration:function(t){return this.angularAcceleration=t,this},setAngularDrag:function(t){return this.angularDrag=t,this},setMass:function(t){return this.mass=t,this},setImmovable:function(t){return void 0===t&&(t=!0),this.immovable=t,this},setEnable:function(t){return void 0===t&&(t=!0),this.enable=t,this},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=u},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=n,this.collideCallback=s,this.processCallback=r,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=n},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsX()+e.deltaAbsX()+s;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(r=t.right-e.x)>o&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?r=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.right=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.left=!0)):t._dxo&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?r=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.left=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=r,e.overlapX=r,r}},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsY()+e.deltaAbsY()+s;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(r=t.bottom-e.y)>o&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?r=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.down=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.up=!0)):t._dyo&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?r=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.up=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=r,e.overlapY=r,r}},function(t,e,i){var n=i(388);function s(t){if(!(this instanceof s))return new s(t,[".left",".top",".right",".bottom"]);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function r(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,i,s,r){for(var o,a=[e,i];a.length;)(i=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((i-e)/s/2)*s,n(t,o,e,i,r),a.push(e,o,o,i))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!p(t,e))return i;for(var s,r,o,a,h=[];e;){for(s=0,r=e.children.length;s=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(s,r,e)},_split:function(t,e){var i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);var r=this._chooseSplitIndex(i,s,n),a=g(i.children.splice(r,i.children.length-r));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var n,s,r,o,h,l,u,d,f,p,g,v,m,y;for(l=u=1/0,n=e;n<=i-e;n++)s=a(t,0,n,this.toBBox),r=a(t,n,i,this.toBBox),f=s,p=r,void 0,void 0,void 0,void 0,g=Math.max(f.minX,p.minX),v=Math.max(f.minY,p.minY),m=Math.min(f.maxX,p.maxX),y=Math.min(f.maxY,p.maxY),o=Math.max(0,m-g)*Math.max(0,y-v),h=c(s)+c(r),o=e;s--)r=t.children[s],h(u,t.leaf?o(r):r),c+=d(u);return c},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)h(e[n],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():o(t[i],this.toBBox)},compareMinX:function(t,e){return t.left-e.left},compareMinY:function(t,e){return t.top-e.top},toBBox:function(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}},t.exports=s},function(t,e){t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},function(t,e,i){var n=i(55),s=i(0),r=i(50),o=i(47),a=i(3),h=new s({initialize:function(t,e){var i=e.width?e.width:64,n=e.height?e.height:64;this.world=t,this.gameObject=e,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new a,this.position=new a(e.x-e.displayOriginX,e.y-e.displayOriginY),this.width=i,this.height=n,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new a(e.x+this.halfWidth,e.y+this.halfHeight),this.velocity=a.ZERO,this.allowGravity=!1,this.gravity=a.ZERO,this.bounce=a.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.physicsType=r.STATIC_BODY,this._dx=0,this._dy=0},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,t.body=this,this.gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&n.getCenter){var s=n.displayWidth/2,r=n.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(s-this.halfWidth,r-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y}return this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=t,this.width=2*t,this.height=2*t,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter(),this.world.staticTree.insert(this)):this.isCircle=!1,this},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},reset:function(t,e){var i=this.gameObject;void 0===t&&(t=i.x),void 0===e&&(e=i.y),this.world.staticTree.remove(this),i.setPosition(t,e),i.getTopLeft(this.position),this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?n(this,t,e):o(this,t,e)},postUpdate:function(){},deltaAbsX:function(){return 0},deltaAbsY:function(){return 0},deltaX:function(){return 0},deltaY:function(){return 0},deltaZ:function(){return 0},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?t.strokeCircle(i,n,this.width/2):t.strokeRect(e.x,e.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(t){return t<=0&&(t=.1),this.mass=t,this},x:{get:function(){return this.position.x},set:function(t){this.world.staticTree.remove(this),this.position.x=t,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(t){this.world.staticTree.remove(this),this.position.y=t,this.world.staticTree.insert(this)}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=h},,,,function(t,e,i){var n=new(i(0))({initialize:function(t){this.pluginManager=t,this.game=t.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=n},function(t,e,i){var n=i(24);t.exports=function(t,e,i,s,r,o,a){for(var h=n(i,s,r,o,null,a),l=0;l-1}return!1}},function(t,e,i){var n=i(75),s=i(103),r=i(219);t.exports=function(t,e,i,o,a){if(void 0===i&&(i=!1),void 0===o&&(o=!0),!s(t,e,a))return null;var h=a.data[e][t];return h?(a.data[e][t]=i?null:new n(a,-1,t,e,a.tileWidth,a.tileHeight),o&&h&&h.collides&&r(t,e,a),h):null}},function(t,e,i){var n=i(32),s=i(222),r=i(479),o=i(480),a=i(491);t.exports=function(t,e,i,h,l,u){var c;switch(e){case n.ARRAY_2D:c=s(t,i,h,l,u);break;case n.CSV:c=r(t,i,h,l,u);break;case n.TILED_JSON:c=o(t,i,u);break;case n.WELTMEISTER:c=a(t,i,u);break;default:console.warn("Unrecognized tilemap data format: "+e),c=null}return c}},function(t,e,i){var n=i(32),s=i(222);t.exports=function(t,e,i,r,o){var a=e.trim().split("\n").map(function(t){return t.split(",")}),h=s(t,a,i,r,o);return h.format=n.CSV,h}},function(t,e,i){var n=i(32),s=i(105),r=i(481),o=i(483),a=i(484),h=i(487),l=i(489),u=i(490);t.exports=function(t,e,i){if("isometric"==e.orientation)console.warn("isometric map types are WIP in this version of Phaser");else if("orthogonal"!==e.orientation)return console.warn("Only orthogonal map types are supported in this version of Phaser"),null;var c=new s({width:e.width,height:e.height,name:t,tileWidth:e.tilewidth,tileHeight:e.tileheight,orientation:e.orientation,format:n.TILED_JSON,version:e.version,properties:e.properties,renderOrder:e.renderorder,infinite:e.infinite});c.layers=r(e,i),c.images=o(e);var d=a(e);return c.tilesets=d.tilesets,c.imageCollections=d.imageCollections,c.objects=h(e),c.tiles=l(c),u(c),c}},function(t,e,i){var n=i(482),s=i(2),r=i(104),o=i(223),a=i(75),h=i(224);t.exports=function(t,e){for(var i=s(t,"infinite",!1),l=[],u=[],c=h(t);c.i0;)if(c.i>=c.layers.length){if(u.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}c=u.pop()}else{var d=c.layers[c.i];if(c.i++,"tilelayer"===d.type)if(d.compression)console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+d.name+"'");else{if(d.encoding&&"base64"===d.encoding){if(d.chunks)for(var f=0;f0?((v=new a(p,g.gid,P,R,t.tilewidth,t.tileheight)).rotation=g.rotation,v.flipX=g.flipped,y[R][P]=v):(m=e?null:new a(p,-1,P,R,t.tilewidth,t.tileheight),y[R][P]=m),++x===b.width&&(C++,x=0)}}else{p=new r({name:c.name+d.name,x:c.x+s(d,"offsetx",0)+d.x,y:c.y+s(d,"offsety",0)+d.y,width:d.width,height:d.height,tileWidth:t.tilewidth,tileHeight:t.tileheight,alpha:c.opacity*d.opacity,visible:c.visible&&d.visible,properties:s(d,"properties",{}),orientation:t.orientation}),console.log("layerdata orientation",p.orientation);for(var L=[],D=0,F=d.data.length;D0?((v=new a(p,g.gid,x,y.length,t.tilewidth,t.tileheight)).rotation=g.rotation,v.flipX=g.flipped,L.push(v)):(m=e?null:new a(p,-1,x,y.length,t.tilewidth,t.tileheight),L.push(m)),++x===d.width&&(y.push(L),x=0,L=[])}p.data=y,l.push(p)}else if("group"===d.type){var k=h(t,d,c);u.push(c),c=k}}return l}},function(t,e){t.exports=function(t){for(var e=window.atob(t),i=e.length,n=new Array(i/4),s=0;s>>0;return n}},function(t,e,i){var n=i(2),s=i(224);t.exports=function(t){for(var e=[],i=[],r=s(t);r.i0;)if(r.i>=r.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}r=i.pop()}else{var o=r.layers[r.i];if(r.i++,"imagelayer"===o.type){var a=n(o,"offsetx",0)+n(o,"startx",0),h=n(o,"offsety",0)+n(o,"starty",0);e.push({name:r.name+o.name,image:o.image,x:r.x+a+o.x,y:r.y+h+o.y,alpha:r.opacity*o.opacity,visible:r.visible&&o.visible,properties:n(o,"properties",{})})}else if("group"===o.type){var l=s(t,o,r);i.push(r),r=l}}return e}},function(t,e,i){var n=i(141),s=i(485),r=i(225);t.exports=function(t){for(var e,i=[],o=[],a=null,h=0;h1){if(Array.isArray(l.tiles)){for(var c={},d={},f=0;f=this.firstgid&&t0;)if(a.i>=a.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}a=i.pop()}else{var h=a.layers[a.i];if(a.i++,h.opacity*=a.opacity,h.visible=a.visible&&h.visible,"objectgroup"===h.type){h.name=a.name+h.name;for(var l=a.x+n(h,"startx",0)+n(h,"offsetx",0),u=a.y+n(h,"starty",0)+n(h,"offsety",0),c=[],d=0;da&&(a=e.layer[l].width),e.layer[l].height>h&&(h=e.layer[l].height);var u=new s({width:a,height:h,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:n.WELTMEISTER});return u.layers=r(e,i),u.tilesets=o(e),u}},function(t,e,i){var n=i(104),s=i(75);t.exports=function(t,e){for(var i=[],r=0;r-1?new s(a,f,c,u,o.tilesize,o.tilesize):e?null:new s(a,-1,c,u,o.tilesize,o.tilesize),h.push(d)}l.push(h),h=[]}a.data=l,i.push(a)}return i}},function(t,e,i){var n=i(141);t.exports=function(t){for(var e=[],i=[],s=0;s-1&&(this.renderOrder=t),this},addTilesetImage:function(t,e,i,n,s,r,o){if(void 0===t)return null;if(void 0!==e&&null!==e||(e=t),!this.scene.sys.textures.exists(e))return console.warn("Invalid Tileset Image: "+e),null;var h=this.scene.sys.textures.get(e),l=this.getTilesetIndex(t);if(null===l&&this.format===a.TILED_JSON)return console.warn("No data found for Tileset: "+t),null;var u=this.tilesets[l];return u?(u.setTileSize(i,n),u.setSpacing(s,r),u.setImage(h),u):(void 0===i&&(i=this.tileWidth),void 0===n&&(n=this.tileHeight),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o=0),(u=new p(t,o,i,n,s,r)).setImage(h),this.tilesets.push(u),u)},convertLayerToStatic:function(t){if(null===(t=this.getLayer(t)))return null;var e=t.tilemapLayer;if(!(e&&e instanceof r))return null;var i=new c(e.scene,e.tilemap,e.layerIndex,e.tileset,e.x,e.y);return this.scene.sys.displayList.add(i),e.destroy(),i},copy:function(t,e,i,n,s,r,o,a){return a=this.getLayer(a),this._isStaticCall(a,"copy")?this:null!==a?(f.Copy(t,e,i,n,s,r,o,a),this):null},createBlankDynamicLayer:function(t,e,i,n,s,o,a,l){if(void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.width),void 0===o&&(o=this.height),void 0===a&&(a=this.tileWidth),void 0===l&&(l=this.tileHeight),null!==this.getLayerIndex(t))return console.warn("Invalid Tilemap Layer ID: "+t),null;var u,c=new h({name:t,tileWidth:a,tileHeight:l,width:s,height:o,orientation:this.orientation});console.log("tm orientation : ",c.orientation);for(var f=0;f-1&&this.putTileAt(e,r.x,r.y,i,r.tilemapLayer)}return n},removeTileAt:function(t,e,i,n,s){return s=this.getLayer(s),this._isStaticCall(s,"removeTileAt")?null:null===s?null:f.RemoveTileAt(t,e,i,n,s)},removeTileAtWorldXY:function(t,e,i,n,s,r){return r=this.getLayer(r),this._isStaticCall(r,"removeTileAtWorldXY")?null:null===r?null:f.RemoveTileAtWorldXY(t,e,i,n,s,r)},renderDebug:function(t,e,i){return null===(i=this.getLayer(i))?null:(f.RenderDebug(t,e,i),this)},renderDebugFull:function(t,e){for(var i=this.layers,n=0;n=0&&t<4&&(this._renderOrder=t),this},calculateFacesAt:function(t,e){return a.CalculateFacesAt(t,e,this.layer),this},calculateFacesWithin:function(t,e,i,n){return a.CalculateFacesWithin(t,e,i,n,this.layer),this},createFromTiles:function(t,e,i,n,s){return a.CreateFromTiles(t,e,i,n,s,this.layer)},cull:function(t){return this.cullCallback(this.layer,t,this.culledTiles,this._renderOrder)},copy:function(t,e,i,n,s,r,o){return a.Copy(t,e,i,n,s,r,o,this.layer),this},destroy:function(t){void 0===t&&(t=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),t&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],o.prototype.destroy.call(this))},fill:function(t,e,i,n,s,r){return a.Fill(t,e,i,n,s,r,this.layer),this},filterTiles:function(t,e,i,n,s,r,o){return a.FilterTiles(t,e,i,n,s,r,o,this.layer)},findByIndex:function(t,e,i){return a.FindByIndex(t,e,i,this.layer)},findTile:function(t,e,i,n,s,r,o){return a.FindTile(t,e,i,n,s,r,o,this.layer)},forEachTile:function(t,e,i,n,s,r,o){return a.ForEachTile(t,e,i,n,s,r,o,this.layer),this},getTileAt:function(t,e,i){return a.GetTileAt(t,e,i,this.layer)},getTileAtWorldXY:function(t,e,i,n){return a.GetTileAtWorldXY(t,e,i,n,this.layer)},getTilesWithin:function(t,e,i,n,s){return a.GetTilesWithin(t,e,i,n,s,this.layer)},getTilesWithinShape:function(t,e,i){return a.GetTilesWithinShape(t,e,i,this.layer)},getTilesWithinWorldXY:function(t,e,i,n,s,r){return a.GetTilesWithinWorldXY(t,e,i,n,s,r,this.layer)},hasTileAt:function(t,e){return a.HasTileAt(t,e,this.layer)},hasTileAtWorldXY:function(t,e,i){return a.HasTileAtWorldXY(t,e,i,this.layer)},putTileAt:function(t,e,i,n){return a.PutTileAt(t,e,i,n,this.layer)},putTileAtWorldXY:function(t,e,i,n,s){return a.PutTileAtWorldXY(t,e,i,n,s,this.layer)},putTilesAt:function(t,e,i,n){return a.PutTilesAt(t,e,i,n,this.layer),this},randomize:function(t,e,i,n,s){return a.Randomize(t,e,i,n,s,this.layer),this},removeTileAt:function(t,e,i,n){return a.RemoveTileAt(t,e,i,n,this.layer)},removeTileAtWorldXY:function(t,e,i,n,s){return a.RemoveTileAtWorldXY(t,e,i,n,s,this.layer)},renderDebug:function(t,e){return a.RenderDebug(t,e,this.layer),this},replaceByIndex:function(t,e,i,n,s,r){return a.ReplaceByIndex(t,e,i,n,s,r,this.layer),this},setSkipCull:function(t){return void 0===t&&(t=!0),this.skipCull=t,this},setCullPadding:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=1),this.cullPaddingX=t,this.cullPaddingY=e,this},setCollision:function(t,e,i,n){return a.SetCollision(t,e,i,this.layer,n),this},setCollisionBetween:function(t,e,i,n){return a.SetCollisionBetween(t,e,i,n,this.layer),this},setCollisionByProperty:function(t,e,i){return a.SetCollisionByProperty(t,e,i,this.layer),this},setCollisionByExclusion:function(t,e,i){return a.SetCollisionByExclusion(t,e,i,this.layer),this},setCollisionFromCollisionGroup:function(t,e){return a.SetCollisionFromCollisionGroup(t,e,this.layer),this},setTileIndexCallback:function(t,e,i){return a.SetTileIndexCallback(t,e,i,this.layer),this},setTileLocationCallback:function(t,e,i,n,s,r){return a.SetTileLocationCallback(t,e,i,n,s,r,this.layer),this},shuffle:function(t,e,i,n){return a.Shuffle(t,e,i,n,this.layer),this},swapByIndex:function(t,e,i,n,s,r){return a.SwapByIndex(t,e,i,n,s,r,this.layer),this},tileToWorldX:function(t,e){return a.TileToWorldX(t,e,this.layer)},tileToWorldY:function(t,e){return a.TileToWorldY(t,e,this.layer)},tileToWorldXY:function(t,e,i,n){return a.TileToWorldXY(t,e,i,n,this.layer)},weightedRandomize:function(t,e,i,n,s){return a.WeightedRandomize(t,e,i,n,s,this.layer),this},worldToTileX:function(t,e,i){return a.WorldToTileX(t,e,i,this.layer)},worldToTileY:function(t,e,i){return a.WorldToTileY(t,e,i,this.layer)},worldToTileXY:function(t,e,i,n,s){return a.WorldToTileXY(t,e,i,n,s,this.layer)}});t.exports=h},function(t,e,i){var n=i(0),s=i(11),r=i(18),o=i(13),a=i(1344),h=i(137),l=i(30),u=i(10),c=new n({Extends:o,Mixins:[s.Alpha,s.BlendMode,s.ComputedSize,s.Depth,s.Flip,s.GetBounds,s.Origin,s.Pipeline,s.Transform,s.Visible,s.ScrollFactor,a],initialize:function(t,e,i,n,s,a){o.call(this,t,"StaticTilemapLayer"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],this.layer.tilemapLayer=this,this.tileset=[],this.culledTiles=[],this.skipCull=!1,this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=h.CullTiles,this.renderer=t.sys.game.renderer,this.vertexBuffer=[],this.bufferData=[],this.vertexViewF32=[],this.vertexViewU32=[],this.dirty=[],this.vertexCount=[],this._renderOrder=0,this._tempMatrix=new l,this.gidMap=[],this.setTilesets(n),this.setAlpha(this.layer.alpha),this.setPosition(s,a),this.setOrigin(),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.updateVBOData(),this.initPipeline("TextureTintPipeline"),t.sys.game.events.on(r.CONTEXT_RESTORED,function(){this.updateVBOData()},this)},setTilesets:function(t){var e=[],i=[],n=this.tilemap;Array.isArray(t)||(t=[t]);for(var s=0;sv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(1===p)for(o=0;o=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(2===p)for(o=u-1;o>=0;o--)for(a=0;av||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(3===p)for(o=u-1;o>=0;o--)for(a=l-1;a>=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));this.dirty[e]=!1,null===m?(m=i.createVertexBuffer(y,n.STATIC_DRAW),this.vertexBuffer[e]=m):(i.setVertexBuffer(m),n.bufferSubData(n.ARRAY_BUFFER,0,y))}return this},batchTile:function(t,e,i,n,s,r,o){var a=i.getTileTextureCoordinates(e.index);if(!a)return t;var h=i.tileWidth,l=i.tileHeight,c=h/2,d=l/2,f=a.x/n,p=a.y/s,g=(a.x+h)/n,v=(a.y+l)/s,m=this._tempMatrix,y=-c,x=-d;e.flipX&&(h*=-1,y+=i.tileWidth),e.flipY&&(l*=-1,x+=i.tileHeight);var T=y+h,w=x+l;m.applyITRS(c+e.pixelX,d+e.pixelY,e.rotation,1,1);var E=u.getTintAppendFloatAlpha(16777215,r.alpha*this.alpha*e.alpha),_=m.getX(y,x),b=m.getY(y,x),A=m.getX(y,w),S=m.getY(y,w),C=m.getX(T,w),M=m.getY(T,w),O=m.getX(T,x),P=m.getY(T,x);r.roundPixels&&(_=Math.round(_),b=Math.round(b),A=Math.round(A),S=Math.round(S),C=Math.round(C),M=Math.round(M),O=Math.round(O),P=Math.round(P));var R=this.vertexViewF32[o],L=this.vertexViewU32[o];return R[++t]=_,R[++t]=b,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=E,R[++t]=A,R[++t]=S,R[++t]=f,R[++t]=v,R[++t]=0,L[++t]=E,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=E,R[++t]=_,R[++t]=b,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=E,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=E,R[++t]=O,R[++t]=P,R[++t]=g,R[++t]=p,R[++t]=0,L[++t]=E,this.vertexCount[o]+=6,t},setRenderOrder:function(t){if("string"==typeof t&&(t=["right-down","left-down","right-up","left-up"].indexOf(t)),t>=0&&t<4){this._renderOrder=t;for(var e=0;e0){var t=this.delay+this.delay*this.repeat;return(this.elapsed+this.delay*(this.repeat-this.repeatCount))/t}return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return.001*this.elapsed},remove:function(t){void 0===t&&(t=!1),this.elapsed=this.delay,this.hasDispatched=!t,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});t.exports=r},function(t,e,i){var n=i(1353);t.exports=function(t){var e,i=[];if(t.hasOwnProperty("props"))for(e in t.props)"_"!==e.substr(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===n.indexOf(e)&&"_"!==e.substr(0,1)&&i.push({key:e,value:t[e]});return i}},function(t,e,i){var n=i(6);t.exports=function(t){var e=n(t,"tweens",null);return null===e?[]:("function"==typeof e&&(e=e.call()),Array.isArray(e)||(e=[e]),e)}},function(t,e,i){var n=i(229),s=i(14),r=i(88),o=i(70),a=i(142),h=i(6),l=i(228),u=i(230),c=i(232);t.exports=function(t,e,i){void 0===i&&(i=n);var d=h(e,"from",0),f=h(e,"to",1),p=[{value:d}],g=a(e,"delay",i.delay),v=a(e,"duration",i.duration),m=h(e,"easeParams",i.easeParams),y=o(h(e,"ease",i.ease),m),x=a(e,"hold",i.hold),T=a(e,"repeat",i.repeat),w=a(e,"repeatDelay",i.repeatDelay),E=r(e,"yoyo",i.yoyo),_=[],b=l("value",f),A=c(p[0],0,"value",b.getEnd,b.getStart,b.getActive,y,g,v,E,x,T,w,!1,!1);A.start=d,A.current=d,A.to=f,_.push(A);var S=new u(t,_,p);S.offset=s(e,"offset",null),S.completeDelay=s(e,"completeDelay",0),S.loop=Math.round(s(e,"loop",0)),S.loopDelay=Math.round(s(e,"loopDelay",0)),S.paused=r(e,"paused",!1),S.useFrames=r(e,"useFrames",!1);for(var C=h(e,"callbackScope",S),M=[S,null],O=u.TYPES,P=0;Pb&&(b=C),_[A][S]=C}}}var M=o?n(o):null;return a?function(t,e,n,s){var r,o=0,a=s%m,h=Math.floor(s/m);if(a>=0&&a=0&&h0?Math.floor(v/p.length):h(e,"duration",g.duration),g.delay=h(e,"delay",g.delay),g.easeParams=c(e,"easeParams",g.easeParams),g.ease=a(c(e,"ease",g.ease),g.easeParams),g.hold=h(e,"hold",g.hold),g.repeat=h(e,"repeat",g.repeat),g.repeatDelay=h(e,"repeatDelay",g.repeatDelay),g.yoyo=o(e,"yoyo",g.yoyo),g.flipX=o(e,"flipX",g.flipX),g.flipY=o(e,"flipY",g.flipY);for(var m=0;m0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay},init:function(){return this.calcDuration(),this.progress=0,this.totalProgress=0,!this.paused||(this.state=a.PAUSED,!1)},resetTweens:function(t){for(var e=0;e0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweens(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=a.LOOP_DELAY):(this.state=a.ACTIVE,this.dispatchTimelineEvent(r.TIMELINE_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=a.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=a.PENDING_REMOVE,this.dispatchTimelineEvent(r.TIMELINE_COMPLETE,this.callbacks.onComplete))},update:function(t,e){if(this.state!==a.PAUSED){switch(this.useFrames&&(e=1*this.manager.timeScale),e*=this.timeScale,this.elapsed+=e,this.progress=Math.min(this.elapsed/this.duration,1),this.totalElapsed+=e,this.totalProgress=Math.min(this.totalElapsed/this.totalDuration,1),this.state){case a.ACTIVE:for(var i=this.totalData,n=0;n=this.nextTick&&this.currentAnim.setFrame(this)}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),e},updateFrame:function(t){var e=this.setCurrentFrame(t);if(this.isPlaying){t.setAlpha&&(e.alpha=t.alpha);var i=this.currentAnim;e.emit(r.SPRITE_ANIMATION_KEY_UPDATE+i.key,i,t,e),e.emit(r.SPRITE_ANIMATION_UPDATE,i,t,e),3===this._pendingStop&&this._pendingStopValue===t&&this.currentAnim.completeAnimation(this)}},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},setYoyo:function(t){return void 0===t&&(t=!1),this._yoyo=t,this.parent},getYoyo:function(){return this._yoyo},destroy:function(){this.animationManager.off(r.REMOVE_ANIMATION,this.remove,this),this.animationManager=null,this.parent=null,this.currentAnim=null,this.currentFrame=null}});t.exports=o},function(t,e,i){var n=i(506),s=i(48),r=i(0),o=i(29),a=i(507),h=i(92),l=i(30),u=new r({initialize:function(t){this.game=t,this.type=o.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.config={clearBeforeRender:t.config.clearBeforeRender,backgroundColor:t.config.backgroundColor,resolution:t.config.resolution,antialias:t.config.antialias,roundPixels:t.config.roundPixels},this.gameCanvas=t.canvas;var e={alpha:t.config.transparent,desynchronized:t.config.desynchronized};this.gameContext=this.game.config.context?this.game.config.context:this.gameCanvas.getContext("2d",e),this.currentContext=this.gameContext,this.antialias=t.config.antialias,this.blendModes=a(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.init()},init:function(){this.game.scale.on(h.RESIZE,this.onResize,this);var t=this.game.scale.baseSize;this.resize(t.width,t.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,n=this.height;t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),e.clearBeforeRender&&t.clearRect(0,0,i,n),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,n)),t.save(),this.drawCount=0},render:function(t,e,i,n){var r=e.list,o=r.length,a=n._cx,h=n._cy,l=n._cw,u=n._ch,c=n.renderToTexture?n.context:t.sys.context;c.save(),this.game.scene.customViewports&&(c.beginPath(),c.rect(a,h,l,u),c.clip()),this.currentContext=c;var d=n.mask;d&&d.preRenderCanvas(this,null,n._maskCamera),n.transparent||(c.fillStyle=n.backgroundColor.rgba,c.fillRect(a,h,l,u)),c.globalAlpha=n.alpha,c.globalCompositeOperation="source-over",this.drawCount+=r.length,n.renderToTexture&&n.emit(s.PRE_RENDER,n),n.matrix.copyToContext(c);for(var f=0;f=0?y=-(y+d):y<0&&(y=Math.abs(y)-d)),t.flipY&&(x>=0?x=-(x+f):x<0&&(x=Math.abs(x)-f))}var w=1,E=1;t.flipX&&(p||(y+=-e.realWidth+2*v),w=-1),t.flipY&&(p||(x+=-e.realHeight+2*m),E=-1),a.applyITRS(t.x,t.y,t.rotation,t.scaleX*w,t.scaleY*E),o.copyFrom(i.matrix),n?(o.multiplyWithOffset(n,-i.scrollX*t.scrollFactorX,-i.scrollY*t.scrollFactorY),a.e=t.x,a.f=t.y,o.multiply(a,h)):(a.e-=i.scrollX*t.scrollFactorX,a.f-=i.scrollY*t.scrollFactorY,o.multiply(a,h)),r.save(),h.setToContext(r),r.globalCompositeOperation=this.blendModes[t.blendMode],r.globalAlpha=s,r.imageSmoothingEnabled=!(!this.antialias||e.source.scaleMode),r.drawImage(e.source.image,u,c,d,f,y,x,d/g,f/g),r.restore()}},destroy:function(){this.gameCanvas=null,this.gameContext=null,this.game=null}});t.exports=u},function(t,e,i){var n=i(26),s=i(33),r=i(2);t.exports=function(t,e){var i=r(e,"callback"),o=r(e,"type","image/png"),a=r(e,"encoder",.92),h=Math.abs(Math.round(r(e,"x",0))),l=Math.abs(Math.round(r(e,"y",0))),u=r(e,"width",t.width),c=r(e,"height",t.height);if(r(e,"getPixel",!1)){var d=t.getContext("2d").getImageData(h,l,1,1).data;i.call(null,new s(d[0],d[1],d[2],d[3]/255))}else if(0!==h||0!==l||u!==t.width||c!==t.height){var f=n.createWebGL(this,u,c);f.getContext("2d").drawImage(t,h,l,u,c,0,0,u,c);var p=new Image;p.onerror=function(){i.call(null),n.remove(f)},p.onload=function(){i.call(null,p),n.remove(f)},p.src=f.toDataURL(o,a)}else{var g=new Image;g.onerror=function(){i.call(null)},g.onload=function(){i.call(null,g)},g.src=t.toDataURL(o,a)}}},function(t,e,i){var n=i(52),s=i(315);t.exports=function(){var t=[],e=s.supportNewBlendModes,i="source-over";return t[n.NORMAL]=i,t[n.ADD]="lighter",t[n.MULTIPLY]=e?"multiply":i,t[n.SCREEN]=e?"screen":i,t[n.OVERLAY]=e?"overlay":i,t[n.DARKEN]=e?"darken":i,t[n.LIGHTEN]=e?"lighten":i,t[n.COLOR_DODGE]=e?"color-dodge":i,t[n.COLOR_BURN]=e?"color-burn":i,t[n.HARD_LIGHT]=e?"hard-light":i,t[n.SOFT_LIGHT]=e?"soft-light":i,t[n.DIFFERENCE]=e?"difference":i,t[n.EXCLUSION]=e?"exclusion":i,t[n.HUE]=e?"hue":i,t[n.SATURATION]=e?"saturation":i,t[n.COLOR]=e?"color":i,t[n.LUMINOSITY]=e?"luminosity":i,t[n.ERASE]="destination-out",t[n.SOURCE_IN]="source-in",t[n.SOURCE_OUT]="source-out",t[n.SOURCE_ATOP]="source-atop",t[n.DESTINATION_OVER]="destination-over",t[n.DESTINATION_IN]="destination-in",t[n.DESTINATION_OUT]="destination-out",t[n.DESTINATION_ATOP]="destination-atop",t[n.LIGHTER]="lighter",t[n.COPY]="copy",t[n.XOR]="xor",t}},function(t,e,i){var n=i(91),s=i(48),r=i(0),o=i(29),a=i(18),h=i(118),l=i(1),u=i(92),c=i(80),d=i(119),f=i(30),p=i(10),g=i(509),v=i(510),m=i(511),y=i(236),x=i(512),T=new r({initialize:function(t){var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!1,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,resolution:e.resolution,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=o.WEBGL,this.width=0,this.height=0,this.canvas=t.canvas,this.blendModes=[],this.nativeTextures=[],this.contextLost=!1,this.pipelines=null,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.currentActiveTextureUnit=0,this.currentTextures=new Array(16),this.currentFramebuffer=null,this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=l,this.contextRestoredHandler=l,this.gl=null,this.supportedExtensions=null,this.extensions={},this.glFormats=[],this.compression={ETC1:!1,PVRTC:!1,S3TC:!1},this.drawingBufferHeight=0,this.blankTexture=null,this.defaultCamera=new n(0,0,0,0),this._tempMatrix1=new f,this._tempMatrix2=new f,this._tempMatrix3=new f,this._tempMatrix4=new f,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.mipmapFilter=null,this.init(this.config)},init:function(t){var e,i=this.game,n=this.canvas,s=t.backgroundColor;if(!(e=i.config.context?i.config.context:n.getContext("webgl",t.contextCreation)||n.getContext("experimental-webgl",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=e;var r=this;this.contextLostHandler=function(t){r.contextLost=!0,r.game.events.emit(a.CONTEXT_LOST,r),t.preventDefault()},this.contextRestoredHandler=function(){r.contextLost=!1,r.init(r.config),r.game.events.emit(a.CONTEXT_RESTORED,r)},n.addEventListener("webglcontextlost",this.contextLostHandler,!1),n.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),i.context=e;for(var h=0;h<=27;h++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats[0]=e.BYTE,this.glFormats[1]=e.SHORT,this.glFormats[2]=e.UNSIGNED_BYTE,this.glFormats[3]=e.UNSIGNED_SHORT,this.glFormats[4]=e.FLOAT,this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:e.uniform1f,length:1},"1fv":{func:e.uniform1fv,length:1},"1i":{func:e.uniform1i,length:1},"1iv":{func:e.uniform1iv,length:1},"2f":{func:e.uniform2f,length:2},"2fv":{func:e.uniform2fv,length:1},"2i":{func:e.uniform2i,length:2},"2iv":{func:e.uniform2iv,length:1},"3f":{func:e.uniform3f,length:3},"3fv":{func:e.uniform3fv,length:1},"3i":{func:e.uniform3i,length:3},"3iv":{func:e.uniform3iv,length:1},"4f":{func:e.uniform4f,length:4},"4fv":{func:e.uniform4fv,length:1},"4i":{func:e.uniform4i,length:4},"4iv":{func:e.uniform4iv,length:1}};var l=e.getSupportedExtensions();t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE));var u="WEBGL_compressed_texture_",c="WEBKIT_"+u;this.compression.ETC1=e.getExtension(u+"etc1")||e.getExtension(c+"etc1"),this.compression.PVRTC=e.getExtension(u+"pvrtc")||e.getExtension(c+"pvrtc"),this.compression.S3TC=e.getExtension(u+"s3tc")||e.getExtension(c+"s3tc"),this.supportedExtensions=l,e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),e.enable(e.BLEND),e.clearColor(s.redGL,s.greenGL,s.blueGL,s.alphaGL),this.mipmapFilter=e[t.mipmapFilter];for(var f=0;f0&&n>0;if(o&&a){var h=o[0],l=o[1],u=o[2],c=o[3];a=h!==t||l!==e||u!==i||c!==n}a&&(this.flush(),r.scissor(t,s-e-n,i,n))},popScissor:function(){var t=this.scissorStack;t.pop();var e=t[t.length-1];e&&this.setScissor(e[0],e[1],e[2],e[3]),this.currentScissor=e},setPipeline:function(t,e){return this.currentPipeline===t&&this.currentPipeline.vertexBuffer===this.currentVertexBuffer&&this.currentPipeline.program===this.currentProgram||(this.flush(),this.currentPipeline=t,this.currentPipeline.bind()),this.currentPipeline.onBind(e),this.currentPipeline},hasActiveStencilMask:function(){var t=this.currentMask.mask,e=this.currentCameraMask.mask;return t&&t.isStencil||e&&e.isStencil},rebindPipeline:function(t){var e=this.gl;e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),this.hasActiveStencilMask()?e.clear(e.DEPTH_BUFFER_BIT):(e.disable(e.STENCIL_TEST),e.clear(e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT)),e.viewport(0,0,this.width,this.height),this.setBlendMode(0,!0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.blankTexture.glTexture),this.currentActiveTextureUnit=0,this.currentTextures[0]=this.blankTexture.glTexture,this.currentPipeline=t,this.currentPipeline.bind(),this.currentPipeline.onBind()},clearPipeline:function(){this.flush(),this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.setBlendMode(0,!0)},setBlendMode:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.blendModes[t];return!!(e||t!==o.BlendModes.SKIP_CHECK&&this.currentBlendMode!==t)&&(this.flush(),i.enable(i.BLEND),i.blendEquation(n.equation),n.func.length>2?i.blendFuncSeparate(n.func[0],n.func[1],n.func[2],n.func[3]):i.blendFunc(n.func[0],n.func[1]),this.currentBlendMode=t,!0)},addBlendMode:function(t,e){return this.blendModes.push({func:t,equation:e})-1},updateBlendMode:function(t,e,i){return this.blendModes[t]&&(this.blendModes[t].func=e,i&&(this.blendModes[t].equation=i)),this},removeBlendMode:function(t){return t>17&&this.blendModes[t]&&this.blendModes.splice(t,1),this},setBlankTexture:function(t){void 0===t&&(t=!1),!t&&0===this.currentActiveTextureUnit&&this.currentTextures[0]||this.setTexture2D(this.blankTexture.glTexture,0)},setTexture2D:function(t,e,i){void 0===i&&(i=!0);var n=this.gl;return t!==this.currentTextures[e]&&(i&&this.flush(),this.currentActiveTextureUnit!==e&&(n.activeTexture(n.TEXTURE0+e),this.currentActiveTextureUnit=e),n.bindTexture(n.TEXTURE_2D,t),this.currentTextures[e]=t),this},setFramebuffer:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.width,s=this.height;return t!==this.currentFramebuffer&&(t&&t.renderTexture?(n=t.renderTexture.width,s=t.renderTexture.height):this.flush(),i.bindFramebuffer(i.FRAMEBUFFER,t),i.viewport(0,0,n,s),e&&(t?(this.drawingBufferHeight=s,this.pushScissor(0,0,n,s)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=t),this},setProgram:function(t){var e=this.gl;return t!==this.currentProgram&&(this.flush(),e.useProgram(t),this.currentProgram=t),this},setVertexBuffer:function(t){var e=this.gl;return t!==this.currentVertexBuffer&&(this.flush(),e.bindBuffer(e.ARRAY_BUFFER,t),this.currentVertexBuffer=t),this},setIndexBuffer:function(t){var e=this.gl;return t!==this.currentIndexBuffer&&(this.flush(),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.currentIndexBuffer=t),this},createTextureFromSource:function(t,e,i,n){var s=this.gl,r=s.NEAREST,a=s.NEAREST,l=s.CLAMP_TO_EDGE;e=t?t.width:e,i=t?t.height:i;var u=h(e,i);return u&&(l=s.REPEAT),n===o.ScaleModes.LINEAR&&this.config.antialias&&(r=u?this.mipmapFilter:s.LINEAR,a=s.LINEAR),t||"number"!=typeof e||"number"!=typeof i?this.createTexture2D(0,r,a,l,l,s.RGBA,t):this.createTexture2D(0,r,a,l,l,s.RGBA,null,e,i)},createTexture2D:function(t,e,i,n,s,r,o,a,l,u,c,d){u=void 0===u||null===u||u,void 0===c&&(c=!1),void 0===d&&(d=!1);var f=this.gl,p=f.createTexture();return this.setTexture2D(p,0),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,e),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,i),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,s),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,n),f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,u),f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,d),null===o||void 0===o?f.texImage2D(f.TEXTURE_2D,t,r,a,l,0,r,f.UNSIGNED_BYTE,null):(c||(a=o.width,l=o.height),f.texImage2D(f.TEXTURE_2D,t,r,r,f.UNSIGNED_BYTE,o)),h(a,l)&&f.generateMipmap(f.TEXTURE_2D),this.setTexture2D(null,0),p.isAlphaPremultiplied=u,p.isRenderTexture=!1,p.width=a,p.height=l,this.nativeTextures.push(p),p},createFramebuffer:function(t,e,i,n){var s,r=this.gl,o=r.createFramebuffer();if(this.setFramebuffer(o),n){var a=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,a),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t,e),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,a)}if(i.isRenderTexture=!0,i.isAlphaPremultiplied=!1,r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,i,0),(s=r.checkFramebufferStatus(r.FRAMEBUFFER))!==r.FRAMEBUFFER_COMPLETE){throw new Error("Framebuffer incomplete. Framebuffer status: "+{36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"}[s])}return o.renderTexture=i,this.setFramebuffer(null),o},createProgram:function(t,e){var i=this.gl,n=i.createProgram(),s=i.createShader(i.VERTEX_SHADER),r=i.createShader(i.FRAGMENT_SHADER);if(i.shaderSource(s,t),i.shaderSource(r,e),i.compileShader(s),i.compileShader(r),!i.getShaderParameter(s,i.COMPILE_STATUS))throw new Error("Failed to compile Vertex Shader:\n"+i.getShaderInfoLog(s));if(!i.getShaderParameter(r,i.COMPILE_STATUS))throw new Error("Failed to compile Fragment Shader:\n"+i.getShaderInfoLog(r));if(i.attachShader(n,s),i.attachShader(n,r),i.linkProgram(n),!i.getProgramParameter(n,i.LINK_STATUS))throw new Error("Failed to link program:\n"+i.getProgramInfoLog(n));return n},createVertexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setVertexBuffer(n),i.bufferData(i.ARRAY_BUFFER,t,e),this.setVertexBuffer(null),n},createIndexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setIndexBuffer(n),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t,e),this.setIndexBuffer(null),n},deleteTexture:function(t){var e=this.nativeTextures.indexOf(t);return-1!==e&&c(this.nativeTextures,e),this.gl.deleteTexture(t),this.currentTextures[0]!==t||this.game.pendingDestroy||this.setBlankTexture(!0),this},deleteFramebuffer:function(t){return this.gl.deleteFramebuffer(t),this},deleteProgram:function(t){return this.gl.deleteProgram(t),this},deleteBuffer:function(t){return this.gl.deleteBuffer(t),this},preRenderCamera:function(t){var e=t._cx,i=t._cy,n=t._cw,r=t._ch,o=this.pipelines.TextureTintPipeline,a=t.backgroundColor;if(t.renderToTexture){this.flush(),this.pushScissor(e,i,n,-r),this.setFramebuffer(t.framebuffer);var h=this.gl;h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT),o.projOrtho(e,n+e,i,r+i,-1e3,1e3),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n+e,r+i,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL),t.emit(s.PRE_RENDER,t)}else this.pushScissor(e,i,n,r),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n,r,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL)},getCurrentStencilMask:function(){var t=null,e=this.maskStack,i=this.currentCameraMask;return e.length>0?t=e[e.length-1]:i.mask&&i.mask.isStencil&&(t=i),t},postRenderCamera:function(t){var e=this.pipelines.TextureTintPipeline;if(t.flashEffect.postRenderWebGL(e,p.getTintFromFloats),t.fadeEffect.postRenderWebGL(e,p.getTintFromFloats),t.dirty=!1,this.popScissor(),t.renderToTexture){if(e.flush(),this.setFramebuffer(null),t.emit(s.POST_RENDER,t),t.renderToGame){e.projOrtho(0,e.width,e.height,0,-1e3,1e3);var i=p.getTintAppendFloatAlpha;(t.pipeline?t.pipeline:e).batchTexture(t,t.glTexture,t.width,t.height,t.x,t.y,t.width,t.height,t.zoom,t.zoom,t.rotation,t.flipX,!t.flipY,1,1,0,0,0,0,t.width,t.height,i(t._tintTL,t._alphaTL),i(t._tintTR,t._alphaTR),i(t._tintBL,t._alphaBL),i(t._tintBR,t._alphaBR),t._isTinted&&t.tintFill,0,0,this.defaultCamera,null)}this.setBlankTexture(!0)}t.mask&&(this.currentCameraMask.mask=null,t.mask.postRenderWebGL(this,t._maskCamera))},preRender:function(){if(!this.contextLost){var t=this.gl,e=this.pipelines;if(t.bindFramebuffer(t.FRAMEBUFFER,null),this.config.clearBeforeRender){var i=this.config.backgroundColor;t.clearColor(i.redGL,i.greenGL,i.blueGL,i.alphaGL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}for(var n in t.enable(t.SCISSOR_TEST),e)e[n].onPreRender();this.currentScissor=[0,0,this.width,this.height],this.scissorStack=[this.currentScissor],this.game.scene.customViewports&&t.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.setPipeline(this.pipelines.TextureTintPipeline)}},render:function(t,e,i,n){if(!this.contextLost){var s=e.list,r=s.length,a=this.pipelines;for(var h in a)a[h].onRender(t,n);if(this.preRenderCamera(n),0===r)return this.setBlendMode(o.BlendModes.NORMAL),void this.postRenderCamera(n);this.currentType="";for(var l=this.currentMask,u=0;u0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},createVideoTexture:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=this.gl,s=n.NEAREST,r=n.NEAREST,o=t.videoWidth,a=t.videoHeight,l=n.CLAMP_TO_EDGE,u=h(o,a);return!e&&u&&(l=n.REPEAT),this.config.antialias&&(s=u?this.mipmapFilter:n.LINEAR,r=n.LINEAR),this.createTexture2D(0,s,r,l,l,n.RGBA,t,o,a,!0,!0,i)},updateVideoTexture:function(t,e,i){void 0===i&&(i=!1);var n=this.gl,s=t.videoWidth,r=t.videoHeight;return s>0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},setTextureFilter:function(t,e){var i=this.gl,n=[i.LINEAR,i.NEAREST][e];return this.setTexture2D(t,0),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,n),this.setTexture2D(null,0),this},setFloat1:function(t,e,i){return this.setProgram(t),this.gl.uniform1f(this.gl.getUniformLocation(t,e),i),this},setFloat2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2f(this.gl.getUniformLocation(t,e),i,n),this},setFloat3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3f(this.gl.getUniformLocation(t,e),i,n,s),this},setFloat4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4f(this.gl.getUniformLocation(t,e),i,n,s,r),this},setFloat1v:function(t,e,i){return this.setProgram(t),this.gl.uniform1fv(this.gl.getUniformLocation(t,e),i),this},setFloat2v:function(t,e,i){return this.setProgram(t),this.gl.uniform2fv(this.gl.getUniformLocation(t,e),i),this},setFloat3v:function(t,e,i){return this.setProgram(t),this.gl.uniform3fv(this.gl.getUniformLocation(t,e),i),this},setFloat4v:function(t,e,i){return this.setProgram(t),this.gl.uniform4fv(this.gl.getUniformLocation(t,e),i),this},setInt1:function(t,e,i){return this.setProgram(t),this.gl.uniform1i(this.gl.getUniformLocation(t,e),i),this},setInt2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2i(this.gl.getUniformLocation(t,e),i,n),this},setInt3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3i(this.gl.getUniformLocation(t,e),i,n,s),this},setInt4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4i(this.gl.getUniformLocation(t,e),i,n,s,r),this},setMatrix2:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix2fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix3:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix3fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix4:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix4fv(this.gl.getUniformLocation(t,e),i,n),this},getMaxTextures:function(){return this.config.maxTextures},getMaxTextureSize:function(){return this.config.maxTextureSize},destroy:function(){for(var t=0;t0&&this.flush();var e=this.inverseRotationMatrix;if(t){var i=-t,n=Math.cos(i),s=Math.sin(i);e[1]=s,e[3]=-s,e[0]=e[4]=n}else e[0]=e[4]=1,e[1]=e[3]=0;this.renderer.setMatrix3(this.program,"uInverseRotationMatrix",!1,e),this.currentNormalMapRotation=t}},batchSprite:function(t,e,i){if(this.active){var n=t.texture.dataSource[t.frame.sourceIndex];n&&(this.renderer.setPipeline(this),this.setTexture2D(n.glTexture,1),this.setNormalMapRotation(t.rotation),r.prototype.batchSprite.call(this,t,e,i))}}});a.LIGHT_COUNT=o,t.exports=a},function(t,e,i){var n=i(0),s=i(2),r=i(237),o=i(339),a=i(340),h=i(30),l=i(145),u=new n({Extends:l,Mixins:[r],initialize:function(t){var e=t.renderer.config;l.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:t.renderer.gl.TRIANGLE_STRIP,vertShader:s(t,"vertShader",a),fragShader:s(t,"fragShader",o),vertexCapacity:s(t,"vertexCapacity",6*e.batchSize),vertexSize:s(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.mvpInit()},onBind:function(){return l.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return l.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this}});t.exports=u},,,,,function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){i(519),i(520),i(521),i(522),i(523),i(524),i(525),i(526)},function(t,e){Array.prototype.forEach||(Array.prototype.forEach=function(t){"use strict";if(void 0===this||null===this)throw new TypeError;var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var n=arguments.length>=2?arguments[1]:void 0,s=0;s>16)+(65280&t)+((255&t)<<16)},n={_tintTL:16777215,_tintTR:16777215,_tintBL:16777215,_tintBR:16777215,_isTinted:!1,tintFill:!1,clearTint:function(){return this.setTint(16777215),this._isTinted=!1,this},setTint:function(t,e,n,s){return void 0===t&&(t=16777215),void 0===e&&(e=t,n=t,s=t),this._tintTL=i(t),this._tintTR=i(e),this._tintBL=i(n),this._tintBR=i(s),this._isTinted=!0,this.tintFill=!1,this},setTintFill:function(t,e,i,n){return this.setTint(t,e,i,n),this.tintFill=!0,this},tintTopLeft:{get:function(){return this._tintTL},set:function(t){this._tintTL=i(t),this._isTinted=!0}},tintTopRight:{get:function(){return this._tintTR},set:function(t){this._tintTR=i(t),this._isTinted=!0}},tintBottomLeft:{get:function(){return this._tintBL},set:function(t){this._tintBL=i(t),this._isTinted=!0}},tintBottomRight:{get:function(){return this._tintBR},set:function(t){this._tintBR=i(t),this._isTinted=!0}},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){return this._isTinted}}};t.exports=n},function(t,e){t.exports="changedata"},function(t,e){t.exports="changedata-"},function(t,e){t.exports="removedata"},function(t,e){t.exports="setdata"},function(t,e){t.exports="destroy"},function(t,e){t.exports="complete"},function(t,e){t.exports="created"},function(t,e){t.exports="error"},function(t,e){t.exports="loop"},function(t,e){t.exports="play"},function(t,e){t.exports="seeked"},function(t,e){t.exports="seeking"},function(t,e){t.exports="stop"},function(t,e){t.exports="timeout"},function(t,e){t.exports="unlocked"},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"alpha",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"x",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r,o,a){return void 0!==i&&null!==i||(i=e),n(t,"x",e,s,o,a),n(t,"y",i,r,o,a)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"y",e,i,s,r)}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=6.28);for(var s=i,r=(n-i)/t.length,o=0;o0?s(o,i):i<0&&r(o,Math.abs(i));for(var a=0;a1)if(0===s){var d=t.length-1;for(o=t[d].x,a=t[d].y,h=d-1;h>=0;h--)l=(c=t[h]).x,u=c.y,c.x=o,c.y=a,o=l,a=u;t[d].x=e,t[d].y=i}else{for(o=t[0].x,a=t[0].y,h=1;h0?(this._speedX-=this.dragX*t,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*t,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*t,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*t,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom&&(e.zoom+=this._zoom,e.zoom<.001&&(e.zoom=.001))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=r},function(t,e,i){t.exports={Camera:i(292),BaseCamera:i(91),CameraManager:i(699),Effects:i(300),Events:i(48)}},function(t,e){t.exports="cameradestroy"},function(t,e){t.exports="camerafadeincomplete"},function(t,e){t.exports="camerafadeinstart"},function(t,e){t.exports="camerafadeoutcomplete"},function(t,e){t.exports="camerafadeoutstart"},function(t,e){t.exports="cameraflashcomplete"},function(t,e){t.exports="cameraflashstart"},function(t,e){t.exports="camerapancomplete"},function(t,e){t.exports="camerapanstart"},function(t,e){t.exports="postrender"},function(t,e){t.exports="prerender"},function(t,e){t.exports="camerashakecomplete"},function(t,e){t.exports="camerashakestart"},function(t,e){t.exports="camerazoomcomplete"},function(t,e){t.exports="camerazoomstart"},function(t,e,i){var n=i(22),s=i(0),r=i(48),o=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s,o,a,h){if(void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=0),void 0===o&&(o=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene),!o&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=n,this.blue=s,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h;var l=t?r.FADE_OUT_START:r.FADE_IN_START;return this.camera.emit(l,this.camera,this,e,i,n,s),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed=1?1:1/e*(1+(e*t|0))}},function(t,e,i){var n=i(22),s=i(0),r=i(48),o=i(3),a=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new o,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===i&&(i=!1),void 0===n&&(n=null),void 0===s&&(s=this.camera.scene),!i&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=t,this.progress=0,"number"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=n,this._onUpdateScope=s,this.camera.emit(r.SHAKE_START,this.camera,this,t,e),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){if(this.isRunning)if(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed0&&(o.preRender(1),t.render(n,e,i,o))}},resetAll:function(){for(var t=0;t1)for(var i=1;i=1)&&(s.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(s.mspointer=!0),navigator.getGamepads&&(s.gamepads=!0),"onwheel"in window||n.ie&&"WheelEvent"in window?s.wheelEvent="wheel":"onmousewheel"in window?s.wheelEvent="mousewheel":n.firefox&&"MouseScrollEvent"in window&&(s.wheelEvent="DOMMouseScroll"),s)},function(t,e,i){var n=i(117),s={audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){s.audioData=!!window.Audio,s.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t=document.createElement("audio"),e=!!t.canPlayType;try{if(e&&(t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")&&(s.ogg=!0),(t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,"")||t.canPlayType("audio/opus;").replace(/^no$/,""))&&(s.opus=!0),t.canPlayType("audio/mpeg;").replace(/^no$/,"")&&(s.mp3=!0),t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")&&(s.wav=!0),(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;").replace(/^no$/,""))&&(s.m4a=!0),t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")&&(s.webm=!0),""!==t.canPlayType('audio/mp4;codecs="ec-3"')))if(n.edge)s.dolby=!0;else if(n.safari&&n.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var i=parseInt(RegExp.$1,10),r=parseInt(RegExp.$2,10);(10===i&&r>=11||i>10)&&(s.dolby=!0)}}catch(t){}return s}()},function(t,e){var i={h264:!1,hls:!1,mp4:!1,ogg:!1,vp9:!1,webm:!1};t.exports=function(){var t=document.createElement("video"),e=!!t.canPlayType;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")&&(i.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.h264=!0,i.mp4=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")&&(i.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")&&(i.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.hls=!0))}catch(t){}return i}()},function(t,e){var i={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){var t,e="Fullscreen",n="FullScreen",s=["request"+e,"request"+n,"webkitRequest"+e,"webkitRequest"+n,"msRequest"+e,"msRequest"+n,"mozRequest"+n,"mozRequest"+e];for(t=0;tMath.PI&&(t-=n.PI2),Math.abs(((t+n.TAU)%n.PI2-n.PI2)%n.PI2)}},function(t,e,i){var n=i(317);t.exports=function(t){return n(t+Math.PI)}},function(t,e,i){var n=i(15);t.exports=function(t,e,i){return void 0===i&&(i=.05),t===e?t:(Math.abs(e-t)<=i||Math.abs(e-t)>=n.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e1?t[i]-(n(s-i,t[i],t[i],t[i-1],t[i-1])-t[i]):n(s-r,t[r?r-1:0],t[r],t[i1?n(t[i],t[i-1],i-s):n(t[r],t[r+1>i?i:r+1],s-r)}},function(t,e,i){var n=i(158);t.exports=function(t,e,i){return e+(i-e)*n(t,0,1)}},function(t,e,i){t.exports={GetNext:i(327),IsSize:i(118),IsValue:i(754)}},function(t,e){t.exports=function(t){return t>0&&0==(t&t-1)}},function(t,e,i){t.exports={Ceil:i(328),Floor:i(93),To:i(756)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var n=0;n>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return this.n=i,2.3283064365386963e-10*(i>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e0;e--){var i=Math.floor(this.frac()*(e+1)),n=t[i];t[i]=t[e],t[e]=n}return t}});t.exports=n},function(t,e){t.exports=function(t){for(var e=0,i=0;i1?void 0!==n?(s=(n-t)/(n-i))<0&&(s=0):s=1:s<0&&(s=0),s}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,n=2*Math.random()-1,s=Math.sqrt(1-n*n)*e;return t.x=Math.cos(i)*s,t.y=Math.sin(i)*s,t.z=n*e,t}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},function(t,e){t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.round(t*n)/n}},function(t,e){t.exports=function(t,e,i,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=1),n*=Math.PI/t;for(var s=[],r=[],o=0;o0&&t<=e*i&&(r=t>e-1?t-(o=Math.floor(t/e))*e:t,s.set(r,o)),s}},function(t,e){t.exports=function(t,e,i){return Math.abs(t-e)<=i}},function(t,e,i){var n=i(173),s=i(335),r=i(336),o=new s,a=new r,h=new n;t.exports=function(t,e,i){return a.setAxisAngle(e,i),o.fromRotationTranslation(a,h.set(0,0,0)),t.transformMat4(o)}},function(t,e){t.exports="addtexture"},function(t,e){t.exports="onerror"},function(t,e){t.exports="onload"},function(t,e){t.exports="ready"},function(t,e){t.exports="removetexture"},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","","precision mediump float;","","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","","void main()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," float alpha = mainColor.a;",""," if (!uInvertMaskAlpha)"," {"," alpha *= (maskColor.a);"," }"," else"," {"," alpha *= (1.0 - maskColor.a);"," }",""," gl_FragColor = vec4(mainColor.rgb * alpha, alpha);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","","precision mediump float;","","attribute vec2 inPosition;","","void main()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_FORWARD_DIFFUSE_FS","","precision mediump float;","","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","","const int kMaxLights = %LIGHT_COUNT%;","","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","","varying vec2 outTexCoord;","varying vec4 outTint;","","void main()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 color = texture2D(uMainSampler, outTexCoord) * vec4(outTint.rgb * outTint.a, outTint.a);"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;",""," for (int index = 0; index < kMaxLights; ++index)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }",""," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","","}",""].join("\n")},function(t,e,i){t.exports={GenerateTexture:i(345),Palettes:i(785)}},function(t,e,i){t.exports={ARNE16:i(346),C64:i(786),CGA:i(787),JMP:i(788),MSX:i(789)}},function(t,e){t.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},function(t,e){t.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},function(t,e,i){t.exports={Path:i(791),CubicBezier:i(347),Curve:i(81),Ellipse:i(348),Line:i(349),QuadraticBezier:i(350),Spline:i(351)}},function(t,e,i){var n=i(0),s=i(347),r=i(348),o=i(5),a=i(349),h=i(792),l=i(350),u=i(12),c=i(351),d=i(3),f=i(15),p=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return void 0===e&&(e=!1),this.ellipseTo(t,t,0,360,e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new a(e,t)),this},cubicBezierTo:function(t,e,i,n,r,o){var a,h,l,u=this.getEndPoint();return t instanceof d?(a=t,h=e,l=i):(a=new d(i,n),h=new d(r,o),l=new d(t,e)),this.add(new s(u,a,h,l))},quadraticBezierTo:function(t,e,i,n){var s,r,o=this.getEndPoint();return t instanceof d?(s=t,r=e):(s=new d(i,n),r=new d(t,e)),this.add(new l(o,s,r))},draw:function(t,e){for(var i=0;i0?this.curves[this.curves.length-1].getPoint(1,t):t.copy(this.startPoint),t},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),n=this.getCurveLengths(),s=0;s=i){var r=n[s]-i,o=this.curves[s],a=o.getLength(),h=0===a?0:1-r/a;return o.getPointAt(h,e)}s++}return null},getPoints:function(t){void 0===t&&(t=12);for(var e,i=[],n=0;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i},getRandomPoint:function(t){return void 0===t&&(t=new d),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getStartPoint:function(t){return void 0===t&&(t=new d),t.copy(this.startPoint)},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):this._tmpVec2B.set(t,e);var i=this.getEndPoint(this._tmpVec2A);return this.add(new a([i.x,i.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new h(t.x,t.y)):this.add(new h(t,e))},toJSON:function(){for(var t=[],e=0;e>16&255,g:t>>8&255,b:255&t,a:255};return t>16777215&&(e.a=t>>>24),e}},function(t,e,i){var n=i(33),s=i(355);t.exports=function(t,e,i){var r=i,o=i,a=i;if(0!==e){var h=i<.5?i*(1+e):i+e-i*e,l=2*i-h;r=s(l,h,t+1/3),o=s(l,h,t),a=s(l,h,t-1/3)}return(new n).setGLTo(r,o,a,1)}},function(t,e,i){var n=i(164);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],s=0;s<=359;s++)i.push(n(s/359,t,e));return i}},function(t,e,i){var n=i(115),s=function(t,e,i,s,r,o,a,h){void 0===a&&(a=100),void 0===h&&(h=0);var l=h/a;return{r:n(t,s,l),g:n(e,r,l),b:n(i,o,l)}};t.exports={RGBWithRGB:s,ColorWithRGB:function(t,e,i,n,r,o){return void 0===r&&(r=100),void 0===o&&(o=0),s(t.r,t.g,t.b,e,i,n,r,o)},ColorWithColor:function(t,e,i,n){return void 0===i&&(i=100),void 0===n&&(n=0),s(t.r,t.g,t.b,e.r,e.g,e.b,i,n)}}},function(t,e,i){var n=i(171),s=i(33);t.exports=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=255),new s(n(t,e),n(t,e),n(t,e))}},function(t,e,i){var n=i(354);t.exports=function(t,e,i,s,r){return void 0===s&&(s=255),void 0===r&&(r="#"),"#"===r?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1):"0x"+n(s)+n(t)+n(e)+n(i)}},function(t,e,i){t.exports={BitmapMask:i(277),GeometryMask:i(278)}},function(t,e,i){var n={AddToDOM:i(120),DOMContentLoaded:i(356),GetScreenOrientation:i(357),GetTarget:i(362),ParseXML:i(363),RemoveFromDOM:i(177),RequestAnimationFrame:i(343)};t.exports=n},function(t,e,i){t.exports={EventEmitter:i(814)}},function(t,e,i){var n=i(0),s=i(9),r=i(23),o=new n({Extends:s,initialize:function(){s.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});r.register("EventEmitter",o,"events"),t.exports=o},function(t,e,i){var n=i(120),s=i(288),r=i(291),o=i(26),a=i(0),h=i(313),l=i(816),u=i(337),c=i(113),d=i(341),f=i(314),p=i(356),g=i(9),v=i(18),m=i(364),y=i(23),x=i(369),T=i(370),w=i(372),E=i(119),_=i(375),b=i(342),A=i(344),S=i(379),C=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new s(this),this.textures=new _(this),this.cache=new r(this),this.registry=new c(this),this.input=new m(this,this.config),this.scene=new w(this,this.config.sceneConfig),this.device=f,this.scale=new T(this,this.config),this.sound=null,this.sound=S.create(this),this.loop=new b(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,p(this.boot.bind(this))},boot:function(){y.hasCore("EventEmitter")?(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),l(this),d(this),n(this.canvas,this.config.parent),this.textures.once(E.READY,this.texturesReady,this),this.events.emit(v.BOOT)):console.warn("Aborting. Core Plugins missing.")},texturesReady:function(){this.events.emit(v.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),A(this);var t=this.events;t.on(v.HIDDEN,this.onHidden,this),t.on(v.VISIBLE,this.onVisible,this),t.on(v.BLUR,this.onBlur,this),t.on(v.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e);var n=this.renderer;n.preRender(),i.emit(v.PRE_RENDER,n,t,e),this.scene.render(n),n.postRender(),i.emit(v.POST_RENDER,n,t,e)},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e),i.emit(v.PRE_RENDER),i.emit(v.POST_RENDER)},onHidden:function(){this.loop.pause(),this.events.emit(v.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(v.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(v.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=C},function(t,e,i){var n=i(120);t.exports=function(t){var e=t.config;if(e.parent&&e.domCreateContainer){var i=document.createElement("div");i.style.cssText=["display: block;","width: "+t.scale.width+"px;","height: "+t.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: none;","transform: scale(1);","transform-origin: left top;"].join(" "),t.domContainer=i,n(i,e.parent)}}},function(t,e){t.exports="boot"},function(t,e){t.exports="destroy"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameout"},function(t,e){t.exports="gameover"},function(t,e){t.exports="gameobjectdown"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameobjectmove"},function(t,e){t.exports="gameobjectout"},function(t,e){t.exports="gameobjectover"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="wheel"},function(t,e){t.exports="gameobjectup"},function(t,e){t.exports="gameobjectwheel"},function(t,e){t.exports="boot"},function(t,e){t.exports="process"},function(t,e){t.exports="update"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointerdownoutside"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="pointerupoutside"},function(t,e){t.exports="wheel"},function(t,e){t.exports="pointerlockchange"},function(t,e){t.exports="preupdate"},function(t,e){t.exports="shutdown"},function(t,e){t.exports="start"},function(t,e){t.exports="update"},function(t,e){t.exports=function(t){if(!t)return window.innerHeight;var e=Math.abs(window.orientation),i={w:0,h:0},n=document.createElement("div");return n.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(n),i.w=90===e?n.offsetHeight:window.innerWidth,i.h=90===e?window.innerWidth:n.offsetHeight,document.documentElement.removeChild(n),n=null,90!==Math.abs(window.orientation)?i.h:i.w}},function(t,e){t.exports="addfile"},function(t,e){t.exports="complete"},function(t,e){t.exports="filecomplete"},function(t,e){t.exports="filecomplete-"},function(t,e){t.exports="loaderror"},function(t,e){t.exports="load"},function(t,e){t.exports="fileprogress"},function(t,e){t.exports="postprocess"},function(t,e){t.exports="progress"},function(t,e){t.exports="start"},function(t,e,i){var n=i(2),s=i(180);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,i=n(t.settings,"physics",!1);if(e||i){var r=[];if(e&&r.push(s(e+"Physics")),i)for(var o in i)o=s(o.concat("Physics")),-1===r.indexOf(o)&&r.push(o);return r}}},function(t,e,i){var n=i(2);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),i=n(t.settings,"plugins",!1);return Array.isArray(i)?i:e||[]}},function(t,e,i){t.exports={game:"game",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"}},function(t,e){t.exports=function(t,e,i){if(i.getElementsByTagName("TextureAtlas")){var n=t.source[e];t.add("__BASE",e,0,0,n.width,n.height);for(var s,r=i.getElementsByTagName("SubTexture"),o=0;og||c<-g)&&(c=0),c<0&&(c=g+c),-1!==d&&(g=c+(d+1));for(var v=f,m=f,y=0,x=0,T=0;Tr&&(y=w-r),E>o&&(x=E-o),t.add(T,e,i+v,s+m,h-y,l-x),(v+=h+p)+h>r&&(v=f,m+=l+p)}return t}},function(t,e,i){var n=i(2);t.exports=function(t,e,i){var s=n(i,"frameWidth",null),r=n(i,"frameHeight",s);if(!s)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var o=t.source[0];t.add("__BASE",0,0,0,o.width,o.height);var a,h=n(i,"startFrame",0),l=n(i,"endFrame",-1),u=n(i,"margin",0),c=n(i,"spacing",0),d=e.cutX,f=e.cutY,p=e.cutWidth,g=e.cutHeight,v=e.realWidth,m=e.realHeight,y=Math.floor((v-u+c)/(s+c)),x=Math.floor((m-u+c)/(r+c)),T=y*x,w=e.x,E=s-w,_=s-(v-p-w),b=e.y,A=r-b,S=r-(m-g-b);(h>T||h<-T)&&(h=0),h<0&&(h=T+h),-1!==l&&(T=h+(l+1));for(var C=u,M=u,O=0,P=e.sourceIndex,R=0;R0){var r=i-t.length;if(r<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.push(e),n&&n.call(s,e),e):null;for(var o=e.length-1;o>=0;)-1!==t.indexOf(e[o])&&e.splice(o,1),o--;if(0===(o=e.length))return null;i>0&&o>r&&(e.splice(r),o=r);for(var a=0;a0){var o=n-t.length;if(o<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.splice(i,0,e),s&&s.call(r,e),e):null;for(var a=e.length-1;a>=0;)-1!==t.indexOf(e[a])&&e.pop(),a--;if(0===(a=e.length))return null;n>0&&a>o&&(e.splice(o),a=o);for(var h=a-1;h>=0;h--){var l=e[h];t.splice(i,0,l),s&&s.call(r,l)}return e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i0){var n=t[i-1],s=t.indexOf(n);t[i]=n,t[s]=e}return t}},function(t,e){t.exports=function(t,e,i){var n=t.indexOf(e);if(-1===n||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return n!==i&&(t.splice(n,1),t.splice(i,0,e)),e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);if(-1!==i&&it.length-1)throw new Error("Index out of bounds");var r=n(t,e);return i&&i.call(s,r),r}},function(t,e,i){var n=i(68);t.exports=function(t,e,i,s,r){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===r&&(r=t),n(t,e,i)){var o=i-e,a=t.splice(e,o);if(s)for(var h=0;h0&&(t.splice(i,1),t.unshift(e)),e}},function(t,e,i){var n=i(68);t.exports=function(t,e,i,s,r){if(void 0===s&&(s=0),void 0===r&&(r=t.length),n(t,s,r))for(var o=s;o0){for(n=0;nl||U-Y>l?(N.push(X.i-1),X.cr?(N.push(X.i+X.word.length),Y=0,B=null):B=X):X.cr&&(N.push(X.i+X.word.length),Y=0,B=null)}for(n=N.length-1;n>=0;n--)s=a,r=N[n],o="\n",a=s.substr(0,r)+o+s.substr(r+1);i.wrappedText=a,h=a.length,F=[],k=null}for(n=0;nE&&(c=E),d>_&&(d=_);var W=E+w.xAdvance,V=_+v;fR&&(R=D),DR&&(R=D),D0&&(a=(o=z.wrappedText).length);var U=e._bounds.lines;1===Y?X=(U.longest-U.lengths[0])/2:2===Y&&(X=U.longest-U.lengths[0]);for(var G=s.roundPixels,W=0;W0&&(a=(o=L.wrappedText).length);var D=e._bounds.lines;1===O?R=(D.longest-D.lengths[0])/2:2===O&&(R=D.longest-D.lengths[0]),h.translate(-e.displayOriginX,-e.displayOriginY);for(var F=s.roundPixels,k=0;k0!=t>0,this._alpha=t}}});t.exports=r},function(t,e,i){var n=i(1),s=i(1);n=i(951),s=i(952),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){var r=e.list;if(0!==r.length){var o=e.localTransform;s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var a=-1!==e.blendMode;a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=r,d=r.length,f=0;f0||e.cropHeight>0;l&&(h.flush(),t.pushScissor(e.x,e.y,e.cropWidth*e.scaleX,e.cropHeight*e.scaleY));var u=h._tempMatrix1,c=h._tempMatrix2,d=h._tempMatrix3,f=h._tempMatrix4;c.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),u.copyFrom(s.matrix),r?(u.multiplyWithOffset(r,-s.scrollX*e.scrollFactorX,-s.scrollY*e.scrollFactorY),c.e=e.x,c.f=e.y,u.multiply(c,d)):(c.e-=s.scrollX*e.scrollFactorX,c.f-=s.scrollY*e.scrollFactorY,u.multiply(c,d));var p=e.frame,g=p.glTexture,v=p.cutX,m=p.cutY,y=g.width,x=g.height,T=e._isTinted&&e.tintFill,w=n.getTintAppendFloatAlpha(e._tintTL,s.alpha*e._alphaTL),E=n.getTintAppendFloatAlpha(e._tintTR,s.alpha*e._alphaTR),_=n.getTintAppendFloatAlpha(e._tintBL,s.alpha*e._alphaBL),b=n.getTintAppendFloatAlpha(e._tintBR,s.alpha*e._alphaBR);h.setTexture2D(g,0);var A,S,C=0,M=0,O=0,P=0,R=e.letterSpacing,L=0,D=0,F=0,k=0,I=e.scrollX,B=e.scrollY,Y=e.fontData,N=Y.chars,X=Y.lineHeight,z=e.fontSize/Y.size,U=0,G=e._align,W=0,V=0;e.getTextBounds(!1);var H=e._bounds.lines;1===G?V=(H.longest-H.lengths[0])/2:2===G&&(V=H.longest-H.lengths[0]);for(var j=s.roundPixels,K=e.displayCallback,q=e.callbackData,J=0;J0&&e.cropHeight>0&&(h.beginPath(),h.rect(0,0,e.cropWidth,e.cropHeight),h.clip());for(var Y=0;Y0&&(N=N%E-E):N>E?N=E:N<0&&(N=E+N%E),null===S&&(S=new o(k+Math.cos(Y)*B,I+Math.sin(Y)*B,v),_.push(S),F+=.01);F<1+z;)w=N*F+Y,x=k+Math.cos(w)*B,T=I+Math.sin(w)*B,S.points.push(new r(x,T,v)),F+=.01;w=N+Y,x=k+Math.cos(w)*B,T=I+Math.sin(w)*B,S.points.push(new r(x,T,v));break;case n.FILL_RECT:u.setTexture2D(M),u.batchFillRect(p[++O],p[++O],p[++O],p[++O],f,c);break;case n.FILL_TRIANGLE:u.setTexture2D(M),u.batchFillTriangle(p[++O],p[++O],p[++O],p[++O],p[++O],p[++O],f,c);break;case n.STROKE_TRIANGLE:u.setTexture2D(M),u.batchStrokeTriangle(p[++O],p[++O],p[++O],p[++O],p[++O],p[++O],v,f,c);break;case n.LINE_TO:null!==S?S.points.push(new r(p[++O],p[++O],v)):(S=new o(p[++O],p[++O],v),_.push(S));break;case n.MOVE_TO:S=new o(p[++O],p[++O],v),_.push(S);break;case n.SAVE:a.push(f.copyToArray());break;case n.RESTORE:f.copyFromArray(a.pop());break;case n.TRANSLATE:k=p[++O],I=p[++O],f.translate(k,I);break;case n.SCALE:k=p[++O],I=p[++O],f.scale(k,I);break;case n.ROTATE:f.rotate(p[++O]);break;case n.SET_TEXTURE:var U=p[++O],G=p[++O];u.currentFrame=U,u.setTexture2D(U.glTexture,0),u.tintEffect=G,M=U.glTexture;break;case n.CLEAR_TEXTURE:u.currentFrame=t.blankTexture,u.tintEffect=2,M=t.blankTexture.glTexture}}}},function(t,e,i){var n=i(1),s=i(1);n=i(964),s=i(965),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(1),s=i(1);n=i(967),s=i(968),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){t.exports={GravityWell:i(399),Particle:i(400),ParticleEmitter:i(401),ParticleEmitterManager:i(193),Zones:i(974)}},function(t,e,i){var n=i(0),s=i(329),r=i(70),o=i(2),a=i(58),h=new n({initialize:function(t,e,i,n){void 0===n&&(n=!1),this.propertyKey=e,this.propertyValue=i,this.defaultValue=i,this.steps=0,this.counter=0,this.start=0,this.end=0,this.ease,this.emitOnly=n,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.loadConfig(t)},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=o(t,this.propertyKey,this.defaultValue),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return this.propertyValue},onChange:function(t){return this.propertyValue=t,this.setMethods()},setMethods:function(){var t=this.propertyValue,e=typeof t;if("number"===e)this.onEmit=this.staticValueEmit,this.onUpdate=this.staticValueUpdate;else if(Array.isArray(t))this.onEmit=this.randomStaticValueEmit;else if("function"===e)this.emitOnly?this.onEmit=t:this.onUpdate=t;else if("object"===e&&(this.has(t,"random")||this.hasBoth(t,"start","end")||this.hasBoth(t,"min","max"))){this.start=this.has(t,"start")?t.start:t.min,this.end=this.has(t,"end")?t.end:t.max;var i=this.hasBoth(t,"min","max")||!!t.random;if(i){var n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),this.onEmit=this.randomRangedValueEmit}if(this.has(t,"steps"))this.steps=t.steps,this.counter=this.start,this.onEmit=this.steppedEmit;else{var s=this.has(t,"ease")?t.ease:"Linear";this.ease=r(s),i||(this.onEmit=this.easedValueEmit),this.onUpdate=this.easeValueUpdate}}else"object"===e&&this.hasEither(t,"onEmit","onUpdate")&&(this.has(t,"onEmit")&&(this.onEmit=t.onEmit),this.has(t,"onUpdate")&&(this.onUpdate=t.onUpdate));return this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,n){return n},staticValueEmit:function(){return this.propertyValue},staticValueUpdate:function(){return this.propertyValue},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.propertyValue[t]},randomRangedValueEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i),i},steppedEmit:function(){var t=this.counter,e=this.counter+(this.end-this.start)/this.steps;return this.counter=a(e,this.start,this.end),t},easedValueEmit:function(t,e){if(t&&t.data[e]){var i=t.data[e];i.min=this.start,i.max=this.end}return this.start},easeValueUpdate:function(t,e,i){var n=t.data[e];return(n.max-n.min)*this.ease(i)+n.min}});t.exports=h},function(t,e,i){var n=i(1),s=i(1);n=i(972),s=i(973),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(10);t.exports=function(t,e,i,s,r){var o=e.emitters.list,a=o.length;if(0!==a){var h=this.pipeline,l=h._tempMatrix1.copyFrom(s.matrix),u=h._tempMatrix2,c=h._tempMatrix3,d=h._tempMatrix4.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);l.multiply(d),t.setPipeline(h);var f=s.roundPixels,p=e.defaultFrame.glTexture,g=n.getTintAppendFloatAlphaAndSwap;h.setTexture2D(p,0);for(var v=0;v?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"}},function(t,e,i){var n=i(6);t.exports=function(t,e){var i=e.width,s=e.height,r=Math.floor(i/2),o=Math.floor(s/2),a=n(e,"chars","");if(""!==a){var h=n(e,"image",""),l=n(e,"offset.x",0),u=n(e,"offset.y",0),c=n(e,"spacing.x",0),d=n(e,"spacing.y",0),f=n(e,"lineSpacing",0),p=n(e,"charsPerRow",null);null===p&&(p=t.sys.textures.getFrame(h).width/i)>a.length&&(p=a.length);for(var g=l,v=u,m={retroFont:!0,font:h,size:i,lineHeight:s+f,chars:{}},y=0,x=0;x0&&r.maxLines1&&(d+=f*(h-1)),{width:a,height:d,lines:h,lineWidths:o,lineSpacing:f,lineHeight:c}}},function(t,e,i){var n=i(1),s=i(1);n=i(986),s=i(987),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(10);t.exports=function(t,e,i,s,r){if(0!==e.width&&0!==e.height){var o=e.frame,a=o.width,h=o.height,l=n.getTintAppendFloatAlpha;this.pipeline.batchTexture(e,o.glTexture,a,h,e.x,e.y,a/e.style.resolution,h/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,a,h,l(e._tintTL,s.alpha*e._alphaTL),l(e._tintTR,s.alpha*e._alphaTR),l(e._tintBL,s.alpha*e._alphaBL),l(e._tintBR,s.alpha*e._alphaBR),e._isTinted&&e.tintFill,0,0,s,r)}}},function(t,e){t.exports=function(t,e,i,n,s){0!==e.width&&0!==e.height&&t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(0),s=i(14),r=i(6),o=i(989),a={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},h=new n({initialize:function(t,e){this.parent=t,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this._font,this.setStyle(e,!1,!0);var i=r(e,"metrics",!1);this.metrics=i?{ascent:r(i,"ascent",0),descent:r(i,"descent",0),fontSize:r(i,"fontSize",0)}:o(this)},setStyle:function(t,e,i){for(var n in void 0===e&&(e=!0),void 0===i&&(i=!1),t&&t.hasOwnProperty("fontSize")&&"number"==typeof t.fontSize&&(t.fontSize=t.fontSize.toString()+"px"),a){var o=i?a[n][1]:this[n];this[n]="wordWrapCallback"===n||"wordWrapCallbackScope"===n?r(t,a[n][0],o):s(t,a[n][0],o)}var h=r(t,"font",null);null!==h&&this.setFont(h,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var l=r(t,"fill",null);return null!==l&&(this.color=l),e?this.update(!0):this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline="alphabetic",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap="round",e.lineJoin="round"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=o(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i=t,n="",s="";if("string"!=typeof t)i=r(t,"fontFamily","Courier"),n=r(t,"fontSize","16px"),s=r(t,"fontStyle","");else{var o=t.split(" "),a=0;s=o.length>2?o[a++]:"",n=o[a++]||"16px",i=o[a++]||"Courier"}return i===this.fontFamily&&n===this.fontSize&&s===this.fontStyle||(this.fontFamily=i,this.fontSize=n,this.fontStyle=s,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return"number"==typeof t&&(t=t.toString()+"px"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,n,s,r){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i="#000"),void 0===n&&(n=0),void 0===s&&(s=!1),void 0===r&&(r=!0),this.shadowOffsetX=t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=n,this.shadowStroke=s,this.shadowFill=r,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return void 0===t&&(t="#000"),this.shadowColor=t,this.update(!1)},setShadowBlur:function(t){return void 0===t&&(t=0),this.shadowBlur=t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return void 0===t&&(t="left"),this.align=t,this.update(!1)},setMaxLines:function(t){return void 0===t&&(t=0),this.maxLines=t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t={};for(var e in a)t[e]=this[e];return t.metrics=this.getTextMetrics(),t},destroy:function(){this.parent=void 0}});t.exports=h},function(t,e,i){var n=i(26);t.exports=function(t){var e=n.create(this),i=e.getContext("2d");t.syncFont(e,i);var s=Math.ceil(i.measureText(t.testString).width*t.baselineX),r=s,o=2*r;r=r*t.baselineY|0,e.width=s,e.height=o,i.fillStyle="#f00",i.fillRect(0,0,s,o),i.font=t._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(t.testString,0,r);var a={ascent:0,descent:0,fontSize:0};if(!i.getImageData(0,0,s,o))return a.ascent=r,a.descent=r+6,a.fontSize=a.ascent+a.descent,n.remove(e),a;var h,l,u=i.getImageData(0,0,s,o).data,c=u.length,d=4*s,f=0,p=!1;for(h=0;hr;h--){for(l=0;l0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.fillColor,e.fillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.altFillColor,e.altFillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0){var R=o.strokeTint,L=n.getTintAppendFloatAlphaAndSwap(e.outlineFillColor,e.outlineFillAlpha*d);for(R.TL=L,R.TR=L,R.BL=L,R.BR=L,S=1;S0)for(n(h,e),S=0;S0)for(n(h,e,e.altFillColor,e.altFillAlpha*c),S=0;S0){for(s(h,e,e.outlineFillColor,e.outlineFillAlpha*c),A=1;Ao.vertexCapacity&&o.flush(),o.setTexture2D(u,0);for(var m=o.vertexViewF32,y=o.vertexViewU32,x=o.vertexCount*o.vertexComponentCount-1,T=0,w=e.tintFill,E=0;E0?Math.PI*t.radius*t.radius:0}},function(t,e,i){var n=i(65);t.exports=function(t){return new n(t.x,t.y,t.radius)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},function(t,e,i){var n=i(12);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(95);n.Area=i(1097),n.Circumference=i(397),n.CircumferencePoint=i(192),n.Clone=i(1098),n.Contains=i(96),n.ContainsPoint=i(1099),n.ContainsRect=i(1100),n.CopyFrom=i(1101),n.Equals=i(1102),n.GetBounds=i(1103),n.GetPoint=i(395),n.GetPoints=i(396),n.Offset=i(1104),n.OffsetPoint=i(1105),n.Random=i(155),t.exports=n},function(t,e){t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},function(t,e,i){var n=i(95);t.exports=function(t){return new n(t.x,t.y,t.width,t.height)}},function(t,e,i){var n=i(96);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(96);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},function(t,e,i){var n=i(12);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(4),s=i(204);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a,h,l=t.x,u=t.y,c=t.radius,d=e.x,f=e.y,p=e.radius;if(u===f)0==(a=(o=-2*f)*o-4*(r=1)*(d*d+(h=(p*p-c*c-d*d+l*l)/(2*(l-d)))*h-2*d*h+f*f-p*p))?i.push(new n(h,-o/(2*r))):a>0&&(i.push(new n(h,(-o+Math.sqrt(a))/(2*r))),i.push(new n(h,(-o-Math.sqrt(a))/(2*r))));else{var g=(l-d)/(u-f),v=(p*p-c*c-d*d+l*l-f*f+u*u)/(2*(u-f));0==(a=(o=2*u*g-2*v*g-2*l)*o-4*(r=g*g+1)*(l*l+u*u+v*v-c*c-2*u*v))?(h=-o/(2*r),i.push(new n(h,v-h*g))):a>0&&(h=(-o+Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)),h=(-o-Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)))}}return i}},function(t,e,i){var n=i(206),s=i(205);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC(),h=e.getLineD();n(r,t,i),n(o,t,i),n(a,t,i),n(h,t,i)}return i}},function(t,e,i){var n=i(12),s=i(131);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},function(t,e,i){var n=i(208),s=i(131);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC(),h=t.getLineD();n(r,e,i),n(o,e,i),n(a,e,i),n(h,e,i)}return i}},function(t,e,i){var n=i(430),s=i(208);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(r,t,i),s(o,t,i),s(a,t,i)}return i}},function(t,e,i){var n=i(206),s=i(432);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC();n(r,e,i),n(o,e,i),n(a,e,i)}return i}},function(t,e,i){var n=i(435),s=i(433);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(t,r,i),s(t,o,i),s(t,a,i)}return i}},function(t,e,i){var n=i(437);t.exports=function(t,e){if(!n(t,e))return!1;var i=Math.min(e.x1,e.x2),s=Math.max(e.x1,e.x2),r=Math.min(e.y1,e.y2),o=Math.max(e.y1,e.y2);return t.x>=i&&t.x<=s&&t.y>=r&&t.y<=o}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===r&&(r=0),!(e>t.right+r||it.bottom+r||s0){var m=u[0],y=[m];for(h=1;h=o&&(y.push(x),m=x)}var T=u[u.length-1];return n(m,T)i&&(i=h.x),h.xr&&(r=h.y),h.yn(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.centerX,e.y=t.centerY,e}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.width,e.y=t.height,e}},function(t,e,i){var n=i(166);t.exports=function(t,e,i){var s=t.centerX,r=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),n(t,s,r)}},function(t,e,i){var n=i(12),s=i(131);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},function(t,e){t.exports=function(t,e){for(var i=t.x,n=t.right,s=t.y,r=t.bottom,o=0;oe.x&&t.ye.y}},function(t,e,i){var n=i(4),s=i(35);t.exports=function(t,e,i){void 0===i&&(i=new n),e=s(e);var r=Math.sin(e),o=Math.cos(e),a=o>0?t.width/2:t.width/-2,h=r>0?t.height/2:t.height/-2;return Math.abs(a*r)-1&&(s.splice(a,1),this.clear(o,!0))}t.length=0,this._pendingRemoval.length=0,this._list=s.concat(e.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.isActive()},updatePoll:function(t,e){if(!this.isActive())return!1;if(this.pluginEvents.emit(d.UPDATE,t,e),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var i,n=this.manager,s=n.pointers,r=n.pointersTotal;for(i=0;i0){if(this._pollTimer-=e,!(this._pollTimer<0))return!1;this._pollTimer=this.pollRate}var a=!1;for(i=0;i0&&(a=!0)}return a},update:function(t,e){if(!this.isActive())return!1;for(var i=e.length,n=!1,s=0;s0&&(n=!0)}return this._updatedThisFrame=!0,n},clear:function(t,e){void 0===e&&(e=!1);var i=t.input;if(i){e||this.queueForRemoval(t),i.gameObject=void 0,i.target=void 0,i.hitArea=void 0,i.hitAreaCallback=void 0,i.callbackContext=void 0,this.manager.resetCursor(i),t.input=null;var n=this._draggable.indexOf(t);return n>-1&&this._draggable.splice(n,1),(n=this._drag[0].indexOf(t))>-1&&this._drag[0].splice(n,1),(n=this._over[0].indexOf(t))>-1&&this._over[0].splice(n,1),t}},disable:function(t){t.input.enabled=!1},enable:function(t,e,i,n){return void 0===n&&(n=!1),t.input?t.input.enabled=!0:this.setHitArea(t,e,i),t.input&&n&&!t.input.dropZone&&(t.input.dropZone=n),this},hitTestPointer:function(t){for(var e=this.cameras.getCamerasBelowPointer(t),i=0;i0)return t.camera=n,s}return t.camera=e[0],[]},processDownEvents:function(t){var e=0,i=this._temp,n=this._eventData,s=this._eventContainer;n.cancelled=!1;for(var r=!1,o=0;o0&&l(t.x,t.y,t.downX,t.downY)>=s?i=!0:n>0&&e>=t.downTime+n&&(i=!0),i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;for(var e=this._drag[t.id],i=0;i1&&(this.sortGameObjects(i),this.topOnly&&i.splice(1)),this._drag[t.id]=i,0===this.dragDistanceThreshold&&0===this.dragTimeThreshold?(this.setDragState(t,3),this.processDragStartList(t)):(this.setDragState(t,2),0))},processDragMoveEvent:function(t){if(2===this.getDragState(t)&&this.processDragThresholdEvent(t,this.manager.game.loop.now),4!==this.getDragState(t))return 0;for(var e=this._tempZones,i=this._drag[t.id],n=0;n0?(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),e[0]?(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):a.target=null)}else!h&&e[0]&&(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h));if(o.parentContainer){var u=t.x-a.dragStartXGlobal,c=t.y-a.dragStartYGlobal,f=o.getParentRotation(),p=u*Math.cos(f)+c*Math.sin(f),g=c*Math.cos(f)-u*Math.sin(f);p*=1/o.parentContainer.scaleX,g*=1/o.parentContainer.scaleY,s=p+a.dragStartX,r=g+a.dragStartY}else s=t.x-a.dragX,r=t.y-a.dragY;o.emit(d.GAMEOBJECT_DRAG,t,s,r),this.emit(d.DRAG,t,o,s,r)}return i.length},processDragUpEvent:function(t){for(var e=this._drag[t.id],i=0;i0){var r=this.manager,o=this._eventData,a=this._eventContainer;o.cancelled=!1;for(var h=!1,l=0;l0){var s=this.manager,r=this._eventData,o=this._eventContainer;r.cancelled=!1;var a=!1;this.sortGameObjects(e);for(var h=0;h0){for(this.sortGameObjects(s),e=0;e0){for(this.sortGameObjects(r),e=0;e-1&&this._draggable.splice(s,1)}return this},makePixelPerfect:function(t){void 0===t&&(t=1);var e=this.systems.textures;return h(e,t)},setHitArea:function(t,e,i){if(void 0===e)return this.setHitAreaFromTexture(t);Array.isArray(t)||(t=[t]);var n=!1,s=!1,r=!1,o=!1,h=!1,l=!0;if(m(e)){var u=e;e=p(u,"hitArea",null),i=p(u,"hitAreaCallback",null),n=p(u,"draggable",!1),s=p(u,"dropZone",!1),r=p(u,"cursor",!1),o=p(u,"useHandCursor",!1),h=p(u,"pixelPerfect",!1);var c=p(u,"alphaTolerance",1);h&&(e={},i=this.makePixelPerfect(c)),e&&i||(this.setHitAreaFromTexture(t),l=!1)}else"function"!=typeof e||i||(i=e,e={});for(var d=0;d=e}}},function(t,e,i){t.exports={Events:i(133),KeyboardManager:i(365),KeyboardPlugin:i(1219),Key:i(450),KeyCodes:i(122),KeyCombo:i(451),JustDown:i(1224),JustUp:i(1225),DownDuration:i(1226),UpDuration:i(1227)}},function(t,e){t.exports="keydown"},function(t,e){t.exports="keyup"},function(t,e){t.exports="keycombomatch"},function(t,e){t.exports="down"},function(t,e){t.exports="keydown-"},function(t,e){t.exports="keyup-"},function(t,e){t.exports="up"},function(t,e,i){var n=i(0),s=i(9),r=i(133),o=i(18),a=i(6),h=i(54),l=i(132),u=i(450),c=i(122),d=i(451),f=i(1223),p=i(93),g=new n({Extends:s,initialize:function(t){s.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],t.pluginEvents.once(h.BOOT,this.boot,this),t.pluginEvents.on(h.START,this.start,this)},boot:function(){var t=this.settings.input;this.enabled=a(t,"keyboard",!0);var e=a(t,"keyboard.capture",null);e&&this.addCaptures(e),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.useQueue?this.sceneInputPlugin.pluginEvents.on(h.UPDATE,this.update,this):this.sceneInputPlugin.manager.events.on(h.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this),this.game.events.on(o.BLUR,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var n={};if("string"==typeof t){t=t.split(",");for(var s=0;s-1?n[s]=t:n[t.keyCode]=t,e&&this.addCapture(t.keyCode),t.setEmitOnRepeat(i),t}return"string"==typeof t&&(t=c[t.toUpperCase()]),n[t]||(n[t]=new u(this,t),e&&this.addCapture(t),n[t].setEmitOnRepeat(i)),n[t]},removeKey:function(t,e){void 0===e&&(e=!1);var i,n=this.keys;if(t instanceof u){var s=n.indexOf(t);s>-1&&(i=this.keys[s],this.keys[s]=void 0)}else"string"==typeof t&&(t=c[t.toUpperCase()]);return n[t]&&(i=n[t],n[t]=void 0),i&&(i.plugin=null,e&&i.destroy()),this},createCombo:function(t,e){return new d(this,t,e)},checkDown:function(t,e){if(this.enabled&&t.isDown){var i=p(this.time-t.timeDown,e);if(i>t._tick)return t._tick=i,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,n=0;n0&&e.maxKeyDelay>0){var r=e.timeLastMatched+e.maxKeyDelay;t.timeStamp<=r&&(s=!0,i=n(t,e))}else s=!0,i=n(t,e);return!s&&e.resetOnWrongKey&&(e.index=0,e.current=e.keyCodes[0]),i&&(e.timeLastMatched=t.timeStamp,e.matched=!0,e.timeMatched=t.timeStamp),i}},function(t,e){t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},function(t,e){t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},function(t,e,i){var n=i(122),s={};for(var r in n)s[n[r]]=r;t.exports=s},function(t,e){t.exports=function(t){return!!t._justDown&&(t._justDown=!1,!0)}},function(t,e){t.exports=function(t){return!!t._justUp&&(t._justUp=!1,!0)}},function(t,e){t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i'),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push("");var n=[i.join("\n")],o=this;try{var a=new window.Blob(n,{type:"image/svg+xml;charset=utf-8"})}catch(t){return o.state=s.FILE_ERRORED,void o.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){r.revokeObjectURL(o.data),o.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(o.data),o.onProcessError()},r.createObjectURL(this.data,a,"image/svg+xml")},addToCache:function(){var t=this.cache.addImage(this.key,this.data);this.pendingDestroy(t)}});o.register("htmlTexture",function(t,e,i,n,s){if(Array.isArray(t))for(var r=0;r0},isLoading:function(){return this.state===s.LOADER_LOADING||this.state===s.LOADER_PROCESSING},isReady:function(){return this.state===s.LOADER_IDLE||this.state===s.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(a.START,this),0===this.list.size?this.loadComplete():(this.state=s.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(c.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(a.PROGRESS,this.progress)},update:function(){this.state===s.LOADER_LOADING&&this.list.size>0&&this.inflight.sizei&&(n=l,i=c)}}return n},moveTo:function(t,e,i,n,s){void 0===n&&(n=60),void 0===s&&(s=0);var o=Math.atan2(i-t.y,e-t.x);return s>0&&(n=r(t.x,t.y,e,i)/(s/1e3)),t.body.velocity.setToPolar(o,n),o},moveToObject:function(t,e,i,n){return this.moveTo(t,e.x,e.y,i,n)},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(s(t),e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(t,e)},overlapRect:function(t,e,i,n,s,r){return c(this.world,t,e,i,n,s,r)},overlapCirc:function(t,e,i,n,s){return u(this.world,t,e,i,n,s)},shutdown:function(){if(this.world){var t=this.systems.events;t.off(f.UPDATE,this.world.update,this.world),t.off(f.POST_UPDATE,this.world.postUpdate,this.world),t.off(f.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null}},destroy:function(){this.shutdown(),this.scene.sys.events.off(f.START,this.start,this),this.scene=null,this.systems=null}});d.register("ArcadePhysics",v,"arcadePhysics"),t.exports=v},function(t,e){t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},function(t,e){t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},function(t,e){t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i){return this.body.setCollideWorldBounds(t,e,i),this}}},function(t,e){t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},function(t,e){t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},function(t,e){var i={enableBody:function(t,e,i,n,s){return t&&this.body.reset(e,i),n&&(this.body.gameObject.active=!0),s&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};t.exports=i},function(t,e){t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},function(t,e){t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},function(t,e){var i={setImmovable:function(t){return void 0===t&&(t=!0),this.body.immovable=t,this}};t.exports=i},function(t,e){t.exports={setMass:function(t){return this.body.mass=t,this}}},function(t,e){t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},function(t,e){t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},function(t,e,i){var n=i(461),s=i(65),r=i(204),o=i(205);t.exports=function(t,e,i,a,h,l){var u=n(t,e-a,i-a,2*a,2*a,h,l);if(0===u.length)return u;for(var c=new s(e,i,a),d=new s,f=[],p=0;pe.deltaAbsY()?y=-1:e.deltaAbsX()0&&u&&t.checkCollision.right&&h&&t.right>i&&(a=t.right-i)>r&&(a=0),0!==a&&(t.customSeparateX?t.overlapX=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):e>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=e,0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x}},function(t,e,i){var n=i(1284);t.exports=function(t,e,i,s,r,o){var a=0,h=e.faceTop,l=e.faceBottom,u=e.collideUp,c=e.collideDown;return o||(h=!0,l=!0,u=!0,c=!0),t.deltaY()<0&&c&&t.checkCollision.up?l&&t.y0&&u&&t.checkCollision.down&&h&&t.bottom>i&&(a=t.bottom-i)>r&&(a=0),0!==a&&(t.customSeparateY?t.overlapY=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):e>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=e,0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},function(t,e,i){var n=i(465);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.x,a=e.velocity.x;if(t.immovable||e.immovable)t.immovable?(e.x+=r,e.velocity.x=o-a*e.bounce.x,t.moves&&(e.y+=(t.y-t.prev.y)*t.friction.y)):(t.x-=r,t.velocity.x=a-o*t.bounce.x,e.moves&&(t.y+=(e.y-e.prev.y)*e.friction.y));else{r*=.5,t.x-=r,e.x+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.x=u+h*t.bounce.x,e.velocity.x=u+l*e.bounce.x}return!0}},function(t,e,i){var n=i(466);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateY||e.customSeparateY)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.y,a=e.velocity.y;if(t.immovable||e.immovable)t.immovable?(e.y+=r,e.velocity.y=o-a*e.bounce.y,t.moves&&(e.x+=(t.x-t.prev.x)*t.friction.x)):(t.y-=r,t.velocity.y=a-o*t.bounce.y,e.moves&&(t.x+=(e.x-e.prev.x)*e.friction.x));else{r*=.5,t.y-=r,e.y+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.y=u+h*t.bounce.y,e.velocity.y=u+l*e.bounce.y}return!0}},,,,,,,,,,,,,,,function(t,e,i){t.exports={BasePlugin:i(473),DefaultPlugins:i(174),PluginCache:i(23),PluginManager:i(369),ScenePlugin:i(1302)}},function(t,e,i){var n=i(473),s=i(0),r=i(19),o=new s({Extends:n,initialize:function(t,e){n.call(this,e),this.scene=t,this.systems=t.sys,t.sys.events.once(r.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=o},function(t,e,i){var n=i(17),s=i(176),r={Center:i(358),Events:i(92),Orientation:i(359),ScaleManager:i(370),ScaleModes:i(360),Zoom:i(361)};r=n(!1,r=n(!1,r=n(!1,r=n(!1,r,s.CENTER),s.ORIENTATION),s.SCALE_MODE),s.ZOOM),t.exports=r},function(t,e,i){var n=i(123),s=i(17),r={Events:i(19),SceneManager:i(372),ScenePlugin:i(1305),Settings:i(374),Systems:i(179)};r=s(!1,r,n),t.exports=r},function(t,e,i){var n=i(22),s=i(0),r=i(19),o=i(2),a=i(23),h=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.pluginStart,this)},boot:function(){this.systems.events.once(r.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp("stop",e),this.manager.queueOp("start",e,t),this},transition:function(t){void 0===t&&(t={});var e=o(t,"target",!1),i=this.manager.getScene(e);if(!e||!this.checkValidTransition(i))return!1;var n=o(t,"duration",1e3);this._elapsed=0,this._target=i,this._duration=n,this._willSleep=o(t,"sleep",!1),this._willRemove=o(t,"remove",!1);var s=o(t,"onUpdate",null);s&&(this._onUpdate=s,this._onUpdateScope=o(t,"onUpdateScope",this.scene));var a=o(t,"allowInput",!1);this.settings.transitionAllowInput=a;var h=i.sys.settings;return h.isTransition=!0,h.transitionFrom=this.scene,h.transitionDuration=n,h.transitionAllowInput=a,o(t,"moveAbove",!1)?this.manager.moveAbove(this.key,e):o(t,"moveBelow",!1)&&this.manager.moveBelow(this.key,e),i.sys.isSleeping()?i.sys.wake():this.manager.start(e,o(t,"data")),this.systems.events.emit(r.TRANSITION_OUT,i,n),this.systems.events.on(r.UPDATE,this.step,this),!0},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=n(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;this.systems.events.off(r.UPDATE,this.step,this),t.events.emit(r.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i,n){return this.manager.add(t,e,i,n)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp("start",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp("run",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("pause",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("resume",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("sleep",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("wake",t,e),this},switch:function(t){return t!==this.key&&this.manager.queueOp("switch",this.key,t),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);var n=this.manager.getScene(e);return n&&n.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(r.SHUTDOWN,this.shutdown,this),t.off(r.POST_UPDATE,this.step,this),t.off(r.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});a.register("ScenePlugin",h,"scenePlugin"),t.exports=h},function(t,e,i){t.exports={List:i(126),Map:i(160),ProcessQueue:i(185),RTree:i(467),Set:i(108),Size:i(371)}},function(t,e,i){var n=i(17),s=i(1308),r={CanvasTexture:i(376),Events:i(119),FilterMode:s,Frame:i(94),Parsers:i(378),Texture:i(181),TextureManager:i(375),TextureSource:i(377)};r=n(!1,r,s),t.exports=r},function(t,e){t.exports={LINEAR:0,NEAREST:1}},function(t,e,i){t.exports={Components:i(137),Parsers:i(1338),Formats:i(32),ImageCollection:i(485),ParseToTilemap:i(226),Tile:i(75),Tilemap:i(494),TilemapCreator:i(1347),TilemapFactory:i(1348),Tileset:i(141),LayerData:i(104),MapData:i(105),ObjectLayer:i(488),DynamicTilemapLayer:i(495),StaticTilemapLayer:i(496)}},function(t,e,i){var n=i(24),s=i(51);t.exports=function(t,e,i,r,o,a,h,l){t<0&&(t=0),e<0&&(e=0),void 0===h&&(h=!0);for(var u=n(t,e,i,r,null,l),c=o-t,d=a-e,f=0;f=0&&p=0&&ge.worldView.x&&n.xe.worldView.y&&n.y=v;o--)(h=c[a][o])&&-1!==h.index&&h.visible&&0!==h.alpha&&i.push(h);else if(2===r)for(a=x;a>=y;a--)for(o=v;c[a]&&o=y;a--)for(o=m;c[a]&&o>=v;o--)(h=c[a][o])&&-1!==h.index&&h.visible&&0!==h.alpha&&i.push(h)}else if("isometric"==t.orientation)if(0===r){for(a=y;a=v;o--)if(T(o,a)){if(!(h=c[a][o])||-1===h.index||!h.visible||0===h.alpha)continue;i.push(h)}}else if(2===r){for(a=x;a>=y;a--)for(o=v;c[a]&&o=y;a--)for(o=m;c[a]&&o>=v;o--)if(T(o,a)){if(!(h=c[a][o])||-1===h.index||!h.visible||0===h.alpha)continue;i.push(h)}return u.tilesDrawn=i.length,u.tilesTotal=d*f,i}},function(t,e,i){var n=i(24),s=i(51),r=i(74);t.exports=function(t,e,i,o,a,h,l){for(var u=-1!==l.collideIndexes.indexOf(t),c=n(e,i,o,a,null,l),d=0;d=0;r--)for(s=n.width-1;s>=0;s--)if((o=n.data[r][s])&&o.index===t){if(a===e)return o;a+=1}}else for(r=0;re)){for(var l=t;l<=e;l++)r(l,i,a);if(h)for(var u=0;u=t&&d.index<=e&&n(d,i)}o&&s(0,0,a.width,a.height,a)}}},function(t,e,i){var n=i(74),s=i(51),r=i(221);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var a=0;a0&&n(a,t)}}e&&s(0,0,i.width,i.height,i)}},function(t,e){t.exports=function(t,e,i,n){if("number"==typeof t)n.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var s=0,r=t.length;s1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f0&&(t.currentPipeline&&t.currentPipeline.vertexCount>0&&t.flush(),r.vertexBuffer=e.vertexBuffer[a],t.setPipeline(r),t.setTexture2D(s[a].glTexture,0),t.gl.drawArrays(r.topology,0,e.vertexCount[a]));r.vertexBuffer=o,r.viewIdentity(),r.modelIdentity()}},function(t,e){t.exports=function(t,e,i,n,s){e.cull(n);var r=e.culledTiles,o=r.length;if(0!==o){var a=t._tempMatrix1,h=t._tempMatrix2,l=t._tempMatrix3;h.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),a.copyFrom(n.matrix);var u=t.currentContext,c=e.gidMap;u.save(),s?(a.multiplyWithOffset(s,-n.scrollX*e.scrollFactorX,-n.scrollY*e.scrollFactorY),h.e=e.x,h.f=e.y,a.multiply(h,l),l.copyToContext(u)):(h.e-=n.scrollX*e.scrollFactorX,h.f-=n.scrollY*e.scrollFactorY,h.copyToContext(u));var d=n.alpha*e.alpha;(!t.antialias||e.scaleX>1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f-1&&this._active.splice(s,1),n.destroy()}for(i=0;i=n.delay)){var s=n.elapsed-n.delay;n.elapsed=n.delay,!n.hasDispatched&&n.callback&&(n.hasDispatched=!0,n.callback.apply(n.callbackScope,n.args)),n.repeatCount>0?(n.repeatCount--,n.elapsed=s,n.hasDispatched=!1):this._pendingRemoval.push(n)}}}},shutdown:function(){var t;for(t=0;t-1&&(e.state=u.REMOVED,s.splice(r,1)):(e.state=u.REMOVED,n.splice(r,1))}for(i.length=0,i=this._add,t=0;t>2],r+=i[(3&n[o])<<4|n[o+1]>>4],r+=i[(15&n[o+1])<<2|n[o+2]>>6],r+=i[63&n[o+2]];return s%3==2?r=r.substring(0,r.length-1)+"=":s%3==1&&(r=r.substring(0,r.length-2)+"=="),r}},function(t,e,i){t.exports={Clone:i(67),Extend:i(17),GetAdvancedValue:i(14),GetFastValue:i(2),GetMinMaxValue:i(1372),GetValue:i(6),HasAll:i(1373),HasAny:i(404),HasValue:i(99),IsPlainObject:i(7),Merge:i(107),MergeRight:i(1374),Pick:i(486),SetValue:i(424)}},function(t,e,i){var n=i(6),s=i(22);t.exports=function(t,e,i,r,o){void 0===o&&(o=i);var a=n(t,e,o);return s(a,i,r)}},function(t,e){t.exports=function(t,e){for(var i=0;i0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this},transformMat3:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this},transformMat4:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[4]*i+n[12],this.y=n[1]*e+n[5]*i+n[13],this},reset:function(){return this.x=0,this.y=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0),n.LEFT=new n(-1,0),n.UP=new n(0,-1),n.DOWN=new n(0,1),n.ONE=new n(1,1),t.exports=n},function(t,e,i){var n=i(0),s=i(46),r=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=s.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=r},function(t,e,i){var n=i(0),s=i(23),r=i(21),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectFactory",o,"add"),t.exports=o},function(t,e){t.exports=function(t,e,i){if(t&&"number"!=typeof t){if(t.hasOwnProperty(e))return t[e];if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=i,o=0;o>>0},getTintAppendFloatAlpha:function(t,e){return((255&(255*e|0))<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255&(255*e|0))<<24|(255&(0|t))<<16|(255&(t>>8|0))<<8|255&(t>>16|0))>>>0},getFloatsFromUintRGB:function(t){return[(255&(t>>16|0))/255,(255&(t>>8|0))/255,(255&(0|t))/255]},getComponentCount:function(t,e){for(var i=0,n=0;n=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},function(t,e,i){var n=i(0),s=i(278),r=i(110),o=i(10),a=i(89),h=new n({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new r(this)),this},setData:function(t,e){return this.data||(this.data=new r(this)),this.data.set(t,e),this},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.input&&(this.input.enabled=!1),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},update:function(){},toJSON:function(){return s(this)},willRender:function(t){return!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return i.unshift(this.scene.sys.displayList.getIndex(t)),i},destroy:function(t){if(void 0===t&&(t=!1),this.scene&&!this.ignoreDestroy){this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this);var e=this.scene.sys;t||(e.displayList.remove(this),e.updateList.remove(this)),this.input&&(e.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),t||e.queueDepthSort(),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0,this.removeAllListeners()}}});h.RENDER_MASK=15,t.exports=h},function(t,e,i){var n=i(166),s=i(6);t.exports=function(t,e,i){var r=s(t,e,null);if(null===r)return i;if(Array.isArray(r))return n.RND.pick(r);if("object"==typeof r){if(r.hasOwnProperty("randInt"))return n.RND.integerInRange(r.randInt[0],r.randInt[1]);if(r.hasOwnProperty("randFloat"))return n.RND.realInRange(r.randFloat[0],r.randFloat[1])}else if("function"==typeof r)return r(e);return r}},function(t,e){var i={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=i},function(t,e,i){var n=i(0),s=i(23),r=i(21),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectCreator",o,"make"),t.exports=o},function(t,e,i){var n=i(7),s=function(){var t,e,i,r,o,a,h=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof h&&(c=h,h=arguments[1]||{},l=2),u===l&&(h=this,--l);l=400&&t.status<=599&&(n=!1),this.resetXHR(),this.loader.nextFile(this,n)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(r.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=s.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=s.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=s.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.cache.add(this.key,this.data),this.pendingDestroy()},pendingDestroy:function(t){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit(r.FILE_COMPLETE,e,i,t),this.loader.emit(r.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});c.createObjectURL=function(t,e,i){if("function"==typeof URL)t.src=URL.createObjectURL(e);else{var n=new FileReader;n.onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+n.result.split(",")[1]},n.onerror=t.onerror,n.readAsDataURL(e)}},c.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=c},function(t,e,i){t.exports={BOOT:i(705),CREATE:i(706),DESTROY:i(707),PAUSE:i(708),POST_UPDATE:i(709),PRE_UPDATE:i(710),READY:i(711),RENDER:i(712),RESUME:i(713),SHUTDOWN:i(714),SLEEP:i(715),START:i(716),TRANSITION_COMPLETE:i(717),TRANSITION_INIT:i(718),TRANSITION_OUT:i(719),TRANSITION_START:i(720),TRANSITION_WAKE:i(721),UPDATE:i(722),WAKE:i(723)}},function(t,e){t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},function(t,e){var i={},n={},s={register:function(t,e,n,s){void 0===s&&(s=!1),i[t]={plugin:e,mapping:n,custom:s}},registerCustom:function(t,e,i,s){n[t]={plugin:e,mapping:i,data:s}},hasCore:function(t){return i.hasOwnProperty(t)},hasCustom:function(t){return n.hasOwnProperty(t)},getCore:function(t){return i[t]},getCustom:function(t){return n[t]},getCustomClass:function(t){return n.hasOwnProperty(t)?n[t].plugin:null},remove:function(t){i.hasOwnProperty(t)&&delete i[t]},removeCustom:function(t){n.hasOwnProperty(t)&&delete n[t]},destroyCorePlugins:function(){for(var t in i)i.hasOwnProperty(t)&&delete i[t]},destroyCustomPlugins:function(){for(var t in n)n.hasOwnProperty(t)&&delete n[t]}};t.exports=s},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=o.width),void 0===s&&(s=o.height);var a=n(r,"isNotEmpty",!1),h=n(r,"isColliding",!1),l=n(r,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(s+=e,e=0),t+i>o.width&&(i=Math.max(o.width-t,0)),e+s>o.height&&(s=Math.max(o.height-e,0));for(var u=[],c=e;c=0;o--)t[o][e]=i+a*n,a++;return t}},function(t,e,i){var n,s,r,o=i(29),a=i(162),h=[],l=!1;t.exports={create2D:function(t,e,i){return n(t,e,i,o.CANVAS)},create:n=function(t,e,i,n,r){var u;void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=o.CANVAS),void 0===r&&(r=!1);var c=s(n);return null===c?(c={parent:t,canvas:document.createElement("canvas"),type:n},n===o.CANVAS&&h.push(c),u=c.canvas):(c.parent=t,u=c.canvas),r&&(c.parent=u),u.width=e,u.height=i,l&&n===o.CANVAS&&a.disable(u.getContext("2d")),u},createWebGL:function(t,e,i){return n(t,e,i,o.WEBGL)},disableSmoothing:function(){l=!0},enableSmoothing:function(){l=!1},first:s=function(t){if(void 0===t&&(t=o.CANVAS),t===o.WEBGL)return null;for(var e=0;e0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):n||r?s.TAU-(r>0?Math.acos(-n/this.scaleY):-Math.acos(n/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,e){var i=this.matrix;return i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5],this},scale:function(t,e){var i=this.matrix;return i[0]*=t,i[1]*=t,i[2]*=e,i[3]*=e,this},rotate:function(t){var e=Math.sin(t),i=Math.cos(t),n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3];return n[0]=s*i+o*e,n[1]=r*i+a*e,n[2]=s*-e+o*i,n[3]=r*-e+a*i,this},multiply:function(t,e){var i=this.matrix,n=t.matrix,s=i[0],r=i[1],o=i[2],a=i[3],h=i[4],l=i[5],u=n[0],c=n[1],d=n[2],f=n[3],p=n[4],g=n[5],v=void 0===e?this:e;return v.a=u*s+c*o,v.b=u*r+c*a,v.c=d*s+f*o,v.d=d*r+f*a,v.e=p*s+g*o+h,v.f=p*r+g*a+l,v},multiplyWithOffset:function(t,e,i){var n=this.matrix,s=t.matrix,r=n[0],o=n[1],a=n[2],h=n[3],l=e*r+i*a+n[4],u=e*o+i*h+n[5],c=s[0],d=s[1],f=s[2],p=s[3],g=s[4],v=s[5];return n[0]=c*r+d*a,n[1]=c*o+d*h,n[2]=f*r+p*a,n[3]=f*o+p*h,n[4]=g*r+v*a+l,n[5]=g*o+v*h+u,this},transform:function(t,e,i,n,s,r){var o=this.matrix,a=o[0],h=o[1],l=o[2],u=o[3],c=o[4],d=o[5];return o[0]=t*a+e*l,o[1]=t*h+e*u,o[2]=i*a+n*l,o[3]=i*h+n*u,o[4]=s*a+r*l+c,o[5]=s*h+r*u+d,this},transformPoint:function(t,e,i){void 0===i&&(i={x:0,y:0});var n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3],h=n[4],l=n[5];return i.x=t*s+e*o+h,i.y=t*r+e*a+l,i},invert:function(){var t=this.matrix,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=e*s-i*n;return t[0]=s/a,t[1]=-i/a,t[2]=-n/a,t[3]=e/a,t[4]=(n*o-s*r)/a,t[5]=-(e*o-i*r)/a,this},copyFrom:function(t){var e=this.matrix;return e[0]=t.a,e[1]=t.b,e[2]=t.c,e[3]=t.d,e[4]=t.e,e[5]=t.f,this},copyFromArray:function(t){var e=this.matrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],this},copyToContext:function(t){var e=this.matrix;return t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t},setToContext:function(t){var e=this.matrix;return t.setTransform(e[0],e[1],e[2],e[3],e[4],e[5]),t},copyToArray:function(t){var e=this.matrix;return void 0===t?t=[e[0],e[1],e[2],e[3],e[4],e[5]]:(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]),t},setTransform:function(t,e,i,n,s,r){var o=this.matrix;return o[0]=t,o[1]=e,o[2]=i,o[3]=n,o[4]=s,o[5]=r,this},decomposeMatrix:function(){var t=this.decomposedMatrix,e=this.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(t.translateX=e[4],t.translateY=e[5],i||n){var a=Math.sqrt(i*i+n*n);t.rotation=n>0?Math.acos(i/a):-Math.acos(i/a),t.scaleX=a,t.scaleY=o/a}else if(s||r){var h=Math.sqrt(s*s+r*r);t.rotation=.5*Math.PI-(r>0?Math.acos(-s/h):-Math.acos(s/h)),t.scaleX=o/h,t.scaleY=h}else t.rotation=0,t.scaleX=0,t.scaleY=0;return t},applyITRS:function(t,e,i,n,s){var r=this.matrix,o=Math.sin(i),a=Math.cos(i);return r[4]=t,r[5]=e,r[0]=a*n,r[1]=o*n,r[2]=-o*s,r[3]=a*s,this},applyInverse:function(t,e,i){void 0===i&&(i=new r);var n=this.matrix,s=n[0],o=n[1],a=n[2],h=n[3],l=n[4],u=n[5],c=1/(s*h+a*-o);return i.x=h*c*t+-a*c*e+(u*a-l*h)*c,i.y=s*c*e+-o*c*t+(-u*s+l*o)*c,i},getX:function(t,e){return t*this.a+e*this.c+this.e},getY:function(t,e){return t*this.b+e*this.d+this.f},getCSSMatrix:function(){var t=this.matrix;return"matrix("+t[0]+","+t[1]+","+t[2]+","+t[3]+","+t[4]+","+t[5]+")"},destroy:function(){this.matrix=null,this.decomposedMatrix=null}});t.exports=o},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(56),a=new n({Extends:r,Mixins:[s.AlphaSingle,s.BlendMode,s.ComputedSize,s.Depth,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Transform,s.Visible],initialize:function(t,e,i){void 0===e&&(e="Shape"),r.call(this,t,e),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.initPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]}});t.exports=a},function(t,e,i){var n=i(0),s=i(160),r=i(292),o=i(161),a=i(293),h=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,n)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(t,e,i,n,s){return void 0===n&&(n=255),void 0===s&&(s=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=n,this._locked=!1,this.update(s)},setGLTo:function(t,e,i,n){return void 0===n&&(n=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=n,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return o(t,e,i,this)},update:function(t){if(void 0===t&&(t=!1),this._locked)return this;var e=this.r,i=this.g,n=this.b,o=this.a;return this._color=s(e,i,n),this._color32=r(e,i,n,o),this._rgba="rgba("+e+","+i+","+n+","+o/255+")",t&&a(e,i,n,this),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return a(t,e,i,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),n=Math.floor(t+Math.random()*(e-t)),s=Math.floor(t+Math.random()*(e-t));return this.setTo(i,n,s)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t));return this.setTo(i,i,i)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,n=this.b;return e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),n=Math.max(0,Math.min(255,n-Math.round(-t/100*255))),this.setTo(e,i,n)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,o(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,o(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,o(this._h,this._s,t,this)}}});t.exports=h},function(t,e){t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},function(t,e){t.exports=function(t,e,i,n,s,r){var o;void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=1);var a=0,h=t.length;if(1===r)for(o=s;o=0;o--)t[o][e]+=i+a*n,a++;return t}},function(t,e,i){var n=i(15);t.exports=function(t){return t*n.DEG_TO_RAD}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.fillColor,r=n||e.fillAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.fillStyle="rgba("+o+","+a+","+h+","+r+")"}},,function(t,e){t.exports=function(t){return t.y+t.height-t.height*t.originY}},function(t,e){t.exports=function(t,e){return t.y=e+t.height*t.originY,t}},function(t,e){t.exports=function(t){return t.x-t.width*t.originX}},function(t,e){t.exports=function(t,e){return t.x=e+t.width*t.originX,t}},function(t,e){t.exports=function(t){return t.x+t.width-t.width*t.originX}},function(t,e){t.exports=function(t,e){return t.x=e-t.width+t.width*t.originX,t}},function(t,e){t.exports=function(t,e){return t.y=e-t.height+t.height*t.originY,t}},function(t,e){t.exports=function(t){return t.y-t.height*t.originY}},function(t,e){t.exports={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6}},function(t,e){t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&t.x<=e&&t.x+t.width>=e&&t.y<=i&&t.y+t.height>=i}},function(t,e,i){t.exports={DESTROY:i(646),FADE_IN_COMPLETE:i(647),FADE_IN_START:i(648),FADE_OUT_COMPLETE:i(649),FADE_OUT_START:i(650),FLASH_COMPLETE:i(651),FLASH_START:i(652),PAN_COMPLETE:i(653),PAN_START:i(654),POST_RENDER:i(655),PRE_RENDER:i(656),SHAKE_COMPLETE:i(657),SHAKE_START:i(658),ZOOM_COMPLETE:i(659),ZOOM_START:i(660)}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.strokeColor,r=n||e.strokeAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.strokeStyle="rgba("+o+","+a+","+h+","+r+")",t.lineWidth=e.lineWidth}},function(t,e){t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},function(t,e,i){var n=i(137),s=i(24);t.exports=function(t,e,i,r,o){for(var a=null,h=null,l=null,u=null,c=s(t,e,i,r,null,o),d=0;d0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},function(t,e,i){var n=i(0),s=i(272),r=i(148),o=i(46),a=i(149),h=i(3),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=n},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return r(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this},getPointA:function(t){return void 0===t&&(t=new h),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new h),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=l},function(t,e){t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},function(t,e){t.exports=function(t,e,i){var n=i-e;return e+((t-e)%n+n)%n}},function(t,e,i){t.exports={COMPLETE:i(884),DECODED:i(885),DECODED_ALL:i(886),DESTROY:i(887),DETUNE:i(888),GLOBAL_DETUNE:i(889),GLOBAL_MUTE:i(890),GLOBAL_RATE:i(891),GLOBAL_VOLUME:i(892),LOOP:i(893),LOOPED:i(894),MUTE:i(895),PAUSE_ALL:i(896),PAUSE:i(897),PLAY:i(898),RATE:i(899),RESUME_ALL:i(900),RESUME:i(901),SEEK:i(902),STOP_ALL:i(903),STOP:i(904),UNLOCKED:i(905),VOLUME:i(906)}},function(t,e,i){var n=i(0),s=i(19),r=i(20),o=i(8),a=i(2),h=i(6),l=i(7),u=new n({Extends:r,initialize:function(t,e,i,n,o){var u="json";if(l(e)){var c=e;e=a(c,"key"),i=a(c,"url"),n=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"dataKey",o)}var d={type:"json",cache:t.cacheManager.json,extension:u,responseType:"text",key:e,url:i,xhrSettings:n,config:o};r.call(this,t,d),l(i)&&(this.data=o?h(i,o):i,this.state=s.FILE_POPULATED)},onProcess:function(){if(this.state!==s.FILE_POPULATED){this.state=s.FILE_PROCESSING;var t=JSON.parse(this.xhrLoader.responseText),e=this.config;this.data="string"==typeof e?h(t,e,t):t}this.onProcessComplete()}});o.register("json",function(t,e,i,n){if(Array.isArray(t))for(var s=0;s80*i){n=h=t[0],a=l=t[1];for(var T=i;Th&&(h=u),f>l&&(l=f);g=0!==(g=Math.max(h-n,l-a))?1/g:0}return o(y,x,i,n,a,g),x}function s(t,e,i,n,s){var r,o;if(s===A(t,e,i,n)>0)for(r=e;r=e;r-=n)o=E(r,t[r],t[r+1],o);return o&&y(o,o.next)&&(_(o),o=o.next),o}function r(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!y(n,n.next)&&0!==m(n.prev,n,n.next))n=n.next;else{if(_(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function o(t,e,i,n,s,c,d){if(t){!d&&c&&function(t,e,i,n){var s=t;do{null===s.z&&(s.z=f(s.x,s.y,e,i,n)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next}while(s!==t);s.prevZ.nextZ=null,s.prevZ=null,function(t){var e,i,n,s,r,o,a,h,l=1;do{for(i=t,t=null,r=null,o=0;i;){for(o++,n=i,a=0,e=0;e0||h>0&&n;)0!==a&&(0===h||!n||i.z<=n.z)?(s=i,i=i.nextZ,a--):(s=n,n=n.nextZ,h--),r?r.nextZ=s:t=s,s.prevZ=r,r=s;i=n}r.nextZ=null,l*=2}while(o>1)}(s)}(t,n,s,c);for(var p,g,v=t;t.prev!==t.next;)if(p=t.prev,g=t.next,c?h(t,n,s,c):a(t))e.push(p.i/i),e.push(t.i/i),e.push(g.i/i),_(t),t=g.next,v=g.next;else if((t=g)===v){d?1===d?o(t=l(t,e,i),e,i,n,s,c,2):2===d&&u(t,e,i,n,s,c):o(r(t),e,i,n,s,c,1);break}}}function a(t){var e=t.prev,i=t,n=t.next;if(m(e,i,n)>=0)return!1;for(var s=t.next.next;s!==t.prev;){if(g(e.x,e.y,i.x,i.y,n.x,n.y,s.x,s.y)&&m(s.prev,s,s.next)>=0)return!1;s=s.next}return!0}function h(t,e,i,n){var s=t.prev,r=t,o=t.next;if(m(s,r,o)>=0)return!1;for(var a=s.xr.x?s.x>o.x?s.x:o.x:r.x>o.x?r.x:o.x,u=s.y>r.y?s.y>o.y?s.y:o.y:r.y>o.y?r.y:o.y,c=f(a,h,e,i,n),d=f(l,u,e,i,n),p=t.prevZ,v=t.nextZ;p&&p.z>=c&&v&&v.z<=d;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;p&&p.z>=c;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;v&&v.z<=d;){if(v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function l(t,e,i){var n=t;do{var s=n.prev,r=n.next.next;!y(s,r)&&x(s,n,n.next,r)&&T(s,r)&&T(r,s)&&(e.push(s.i/i),e.push(n.i/i),e.push(r.i/i),_(n),_(n.next),n=t=r),n=n.next}while(n!==t);return n}function u(t,e,i,n,s,a){var h=t;do{for(var l=h.next.next;l!==h.prev;){if(h.i!==l.i&&v(h,l)){var u=w(h,l);return h=r(h,h.next),u=r(u,u.next),o(h,e,i,n,s,a),void o(u,e,i,n,s,a)}l=l.next}h=h.next}while(h!==t)}function c(t,e){return t.x-e.x}function d(t,e){if(e=function(t,e){var i,n=e,s=t.x,r=t.y,o=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){var a=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=s&&a>o){if(o=a,a===s){if(r===n.y)return n;if(r===n.next.y)return n.next}i=n.x=n.x&&n.x>=u&&s!==n.x&&g(ri.x)&&T(n,t)&&(i=n,d=h),n=n.next;return i}(t,e)){var i=w(e,t);r(i,i.next)}}function f(t,e,i,n,s){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*s)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*s)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,i=t;do{e.x=0&&(t-o)*(n-a)-(i-o)*(e-a)>=0&&(i-o)*(r-a)-(s-o)*(n-a)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&x(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&T(t,e)&&T(e,t)&&function(t,e){var i=t,n=!1,s=(t.x+e.x)/2,r=(t.y+e.y)/2;do{i.y>r!=i.next.y>r&&i.next.y!==i.y&&s<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)}function m(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,i,n){return!!(y(t,e)&&y(i,n)||y(t,n)&&y(i,e))||m(t,e,i)>0!=m(t,e,n)>0&&m(i,n,t)>0!=m(i,n,e)>0}function T(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function w(t,e){var i=new b(t.i,t.x,t.y),n=new b(e.i,e.x,e.y),s=t.next,r=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,n.next=i,i.prev=n,r.next=n,n.prev=r,n}function E(t,e,i,n){var s=new b(t,e,i);return n?(s.next=n.next,s.prev=n,n.next.prev=s,n.next=s):(s.prev=s,s.next=s),s}function _(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function b(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function A(t,e,i,n){for(var s=0,r=e,o=i-n;r0&&(n+=t[s-1].length,i.holes.push(n))}return i}},function(t,e){t.exports=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i]=t[i].slice(0):e[i]=t[i];return e}},function(t,e){t.exports=function(t,e,i,n){var s=t.length;if(e<0||e>s||e>=i||i>s||e+i>s){if(n)throw new Error("Range Error: Values outside acceptable range");return!1}return!0}},function(t,e,i){var n=i(164),s=i(177);t.exports=function(t,e){var i=n.Power0;if("string"==typeof t)if(n.hasOwnProperty(t))i=n[t];else{var r="";t.indexOf(".")&&("in"===(r=t.substr(t.indexOf(".")+1)).toLowerCase()?r="easeIn":"out"===r.toLowerCase()?r="easeOut":"inout"===r.toLowerCase()&&(r="easeInOut")),t=s(t.substr(0,t.indexOf(".")+1)+r),n.hasOwnProperty(t)&&(i=n[t])}else"function"==typeof t?i=t:Array.isArray(t)&&t.length;if(!e)return i;var o=e.slice(0);return o.unshift(0),function(t){return o[0]=t,i.apply(this,o)}}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){var o=t.strokeTint,a=n.getTintAppendFloatAlphaAndSwap(e.strokeColor,e.strokeAlpha*i);o.TL=a,o.TR=a,o.BL=a,o.BR=a;var h=e.pathData,l=h.length-1,u=e.lineWidth,c=u/2,d=h[0]-s,f=h[1]-r;e.closePath||(l-=2);for(var p=2;p=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}}});t.exports=u},function(t,e,i){var n=i(0),s=i(19),r=i(20),o=i(8),a=i(2),h=i(7),l=new n({Extends:r,initialize:function t(e,i,n,s,o){var l,u="png";if(h(i)){var c=i;i=a(c,"key"),n=a(c,"url"),l=a(c,"normalMap"),s=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"frameConfig")}Array.isArray(n)&&(l=n[1],n=n[0]);var d={type:"image",cache:e.textureManager,extension:u,responseType:"blob",key:i,url:n,xhrSettings:s,config:o};if(r.call(this,e,d),l){var f=new t(e,this.key,l,s,o);f.type="normalMap",this.setLink(f),e.addFile(f)}},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){r.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(t.data),t.onProcessError()},r.createObjectURL(this.data,this.xhrLoader.response,"image/png")},addToCache:function(){var t,e=this.linkFile;e&&e.state===s.FILE_COMPLETE?(t="image"===this.type?this.cache.addImage(this.key,this.data,e.data):this.cache.addImage(e.key,e.data,this.data),this.pendingDestroy(t),e.pendingDestroy(t)):e||(t=this.cache.addImage(this.key,this.data),this.pendingDestroy(t))}});o.register("image",function(t,e,i){if(Array.isArray(t))for(var n=0;nthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=t.properties,this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldX(this.x,t):this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldY(this.y,t)-(this.height-this.baseHeight)*e.scaleY:this.y*this.baseHeight-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return void 0===e&&(e=new r),e.x=this.getLeft(),e.y=this.getTop(),e.width=this.getRight()-e.x,e.height=this.getBottom()-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},intersects:function(t,e,i,n){return!(i<=this.pixelX||n<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){(void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,n,s){(void 0===e&&(e=t),void 0===i&&(i=t),void 0===n&&(n=t),void 0===s&&(s=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=n,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=n,s)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,n){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==n&&(this.baseHeight=n),this.updatePixelXY(),this},updatePixelXY:function(){return"orthogonal"===this.layer.orientation?(this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight):"isometric"===this.layer.orientation&&(this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5),this},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.layer.tilemapLayer;if(t){var e=t.gidMap[this.index];if(e)return e}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=o},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(962),a=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Size,s.TextureCrop,s.Tint,s.Transform,s.Visible,o],initialize:function(t,e,i,n,o){r.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s.Animation(this),this.setTexture(n,o),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline()},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e,i){return this.anims.play(t,e,i),this},toJSON:function(){return s.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=a},function(t,e){t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},function(t,e){t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},function(t,e){t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},function(t,e){t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},function(t,e){t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,n=t[e],s=e;si&&(e=i/2);var n=Math.max(1,Math.round(i/e));return s(this.getSpacedPoints(n),t)},getDistancePoints:function(t){var e=this.getLength(),i=Math.max(1,e/t);return this.getSpacedPoints(i)},getEndPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(1,t)},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],n=this.getPoint(0,this._tmpVec2A),s=0;i.push(0);for(var r=1;r<=t;r++)s+=(e=this.getPoint(r/t,this._tmpVec2B)).distance(n),i.push(s),n.copy(e);return this.cacheArcLengths=i,i},getPointAt:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++)i.push(this.getPoint(n/t));return i},getRandomPoint:function(t){return void 0===t&&(t=new o),this.getPoint(Math.random(),t)},getSpacedPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++){var s=this.getUtoTmapping(n/t,null,t);i.push(this.getPoint(s))}return i},getStartPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(0,t)},getTangent:function(t,e){void 0===e&&(e=new o);var i=t-1e-4,n=t+1e-4;return i<0&&(i=0),n>1&&(n=1),this.getPoint(i,this._tmpVec2A),this.getPoint(n,e),e.subtract(this._tmpVec2A).normalize()},getTangentAt:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)},getTFromDistance:function(t,e){return t<=0?0:this.getUtoTmapping(0,t,e)},getUtoTmapping:function(t,e,i){var n,s=this.getLengths(i),r=0,o=s.length;n=e?Math.min(e,s[o-1]):t*s[o-1];for(var a,h=0,l=o-1;h<=l;)if((a=s[r=Math.floor(h+(l-h)/2)]-n)<0)h=r+1;else{if(!(a>0)){l=r;break}l=r-1}if(s[r=l]===n)return r/(o-1);var u=s[r];return(r+(n-u)/(s[r+1]-u))/(o-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});t.exports=a},function(t,e,i){t.exports={ADD:i(863),COMPLETE:i(864),FILE_COMPLETE:i(865),FILE_KEY_COMPLETE:i(866),FILE_LOAD_ERROR:i(867),FILE_LOAD:i(868),FILE_PROGRESS:i(869),POST_PROCESS:i(870),PROGRESS:i(871),START:i(872)}},function(t,e){t.exports=function(t,e,i){var n=t.x3-t.x1,s=t.y3-t.y1,r=t.x2-t.x1,o=t.y2-t.y1,a=e-t.x1,h=i-t.y1,l=n*n+s*s,u=n*r+s*o,c=n*a+s*h,d=r*r+o*o,f=r*a+o*h,p=l*d-u*u,g=0===p?0:1/p,v=(d*c-u*f)*g,m=(l*f-u*c)*g;return v>=0&&m>=0&&v+m<1}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.x1,r=t.y1,o=t.x2,a=t.y2,h=e.x1,l=e.y1,u=e.x2,c=e.y2,d=(u-h)*(r-l)-(c-l)*(s-h),f=(o-s)*(r-l)-(a-r)*(s-h),p=(c-l)*(o-s)-(u-h)*(a-r);if(0===p)return!1;var g=d/p,v=f/p;return g>=0&&g<=1&&v>=0&&v<=1&&(i.x=s+g*(o-s),i.y=r+g*(a-r),!0)}},function(t,e){t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},,function(t,e,i){var n=i(22);t.exports=function(t,e,i){return(i-e)*(t=n(t,0,1))}},function(t,e){t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},function(t,e){t.exports={CREATED:0,INIT:1,DELAY:2,OFFSET_DELAY:3,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING_ADD:20,PAUSED:21,LOOP_DELAY:22,ACTIVE:23,COMPLETE_DELAY:24,PENDING_REMOVE:25,REMOVED:26}},function(t,e,i){t.exports={DESTROY:i(581),VIDEO_COMPLETE:i(582),VIDEO_CREATED:i(583),VIDEO_ERROR:i(584),VIDEO_LOOP:i(585),VIDEO_PLAY:i(586),VIDEO_SEEKED:i(587),VIDEO_SEEKING:i(588),VIDEO_STOP:i(589),VIDEO_TIMEOUT:i(590),VIDEO_UNLOCKED:i(591)}},function(t,e,i){var n=i(0),s=i(11),r=i(35),o=i(10),a=i(48),h=i(12),l=i(30),u=i(159),c=i(3),d=new n({Extends:o,Mixins:[s.Alpha,s.Visible],initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.resolution=1,this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=t,this._y=e,this._cx=0,this._cy=0,this._cw=0,this._ch=0,this._width=i,this._height=n,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoom=1,this._rotation=0,this.matrix=new l,this.transparent=!0,this.backgroundColor=u("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new c(i/2,n/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new c);var n=.5*this.width,s=.5*this.height;return i.x=t-n,i.y=e-s,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){if(this.useBounds){var t=this._bounds,e=.5*this.width,i=.5*this.height;this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i}return this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(!o)return t;var a=e[4],h=e[5],l=this.scrollX,u=this.scrollY,c=this.width,d=this.height,f=this.culledObjects,p=t.length;o=1/o,f.length=0;for(var g=0;gC&&wA&&Es&&(t=s),t},clampY:function(t){var e=this._bounds,i=this.displayHeight,n=e.y+(i-this.height)/2,s=Math.max(n,n+e.height-i);return ts&&(t=s),t},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(t){return void 0===t&&(t=0),this.rotation=r(t),this},setBackgroundColor:function(t){return void 0===t&&(t="rgba(0,0,0,0)"),this.backgroundColor=u(t),this.transparent=0===this.backgroundColor.alpha,this},setBounds:function(t,e,i,n,s){return void 0===s&&(s=!1),this._bounds.setTo(t,e,i,n),this.dirty=!0,this.useBounds=!0,s?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(t){void 0===t&&(t=new h);var e=this._bounds;return t.setTo(e.x,e.y,e.width,e.height),t},setName:function(t){return void 0===t&&(t=""),this.name=t,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setRoundPixels:function(t){return this.roundPixels=t,this},setScene:function(t){this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=t;var e=t.sys;this.sceneManager=e.game.scene,this.scaleManager=e.scale,this.cameraManager=e.cameras;var i=this.scaleManager.resolution;return this.resolution=i,this._cx=this._x*i,this._cy=this._y*i,this._cw=this._width*i,this._ch=this._height*i,this.updateSystem(),this},setScroll:function(t,e){return void 0===e&&(e=t),this.scrollX=t,this.scrollY=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},setViewport:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setZoom:function(t){return void 0===t&&(t=1),0===t&&(t=.001),this.zoom=t,this},setMask:function(t,e){return void 0===e&&(e=!0),this.mask=t,this._maskCamera=e?this.cameraManager.default:this,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var t={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(t.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),t},update:function(){},updateSystem:function(){if(this.scaleManager){var t=0!==this._x||0!==this._y||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,e=this.sceneManager;t&&!this._customViewport?e.customViewports++:!t&&this._customViewport&&e.customViewports--,this.dirty=!0,this._customViewport=t}},destroy:function(){this.emit(a.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(t){this._x=t,this._cx=t*this.resolution,this.updateSystem()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._cy=t*this.resolution,this.updateSystem()}},width:{get:function(){return this._width},set:function(t){this._width=t,this._cw=t*this.resolution,this.updateSystem()}},height:{get:function(){return this._height},set:function(t){this._height=t,this._ch=t*this.resolution,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(t){this._scrollX=t,this.dirty=!0}},scrollY:{get:function(){return this._scrollY},set:function(t){this._scrollY=t,this.dirty=!0}},zoom:{get:function(){return this._zoom},set:function(t){this._zoom=t,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=t,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoom}},displayHeight:{get:function(){return this.height/this.zoom}}});t.exports=d},function(t,e,i){t.exports={ENTER_FULLSCREEN:i(699),FULLSCREEN_FAILED:i(700),FULLSCREEN_UNSUPPORTED:i(701),LEAVE_FULLSCREEN:i(702),ORIENTATION_CHANGE:i(703),RESIZE:i(704)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=i(0),s=i(22),r=i(17),o=new n({initialize:function(t,e,i,n,s,r,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.glTexture=this.source.glTexture,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0}},this.setSize(r,o,n,s)},setSize:function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0),this.cutX=i,this.cutY=n,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var s=this.data,r=s.cut;r.x=i,r.y=n,r.w=t,r.h=e,r.r=i+t,r.b=n+e,s.sourceSize.w=t,s.sourceSize.h=e,s.spriteSourceSize.w=t,s.spriteSourceSize.h=e,s.radius=.5*Math.sqrt(t*t+e*e);var o=s.drawImage;return o.x=i,o.y=n,o.width=t,o.height=e,this.updateUVs()},setTrim:function(t,e,i,n,s,r){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=n,a.w=s,a.h=r,a.r=i+s,a.b=n+r,this.x=i,this.y=n,this.width=s,this.height=r,this.halfWidth=.5*s,this.halfHeight=.5*r,this.centerX=Math.floor(s/2),this.centerY=Math.floor(r/2),this.updateUVs()},setCropUVs:function(t,e,i,n,r,o,a){var h=this.cutX,l=this.cutY,u=this.cutWidth,c=this.cutHeight,d=this.realWidth,f=this.realHeight,p=h+(e=s(e,0,d)),g=l+(i=s(i,0,f)),v=n=s(n,0,d-e),m=r=s(r,0,f-i),y=this.data;if(y.trim){var x=y.spriteSourceSize,T=e+(n=s(n,0,u-e)),w=i+(r=s(r,0,c-i));if(!(x.rT||x.y>w)){var E=Math.max(x.x,e),_=Math.max(x.y,i),b=Math.min(x.r,T)-E,A=Math.min(x.b,w)-_;v=b,m=A,p=o?h+(u-(E-x.x)-b):h+(E-x.x),g=a?l+(c-(_-x.y)-A):l+(_-x.y),e=E,i=_,n=b,r=A}else p=0,g=0,v=0,m=0}else o&&(p=h+(u-e-n)),a&&(g=l+(c-i-r));var S=this.source.width,C=this.source.height;return t.u0=Math.max(0,p/S),t.v0=Math.max(0,g/C),t.u1=Math.min(1,(p+v)/S),t.v1=Math.min(1,(g+m)/C),t.x=e,t.y=i,t.cx=p,t.cy=g,t.cw=v,t.ch=m,t.width=n,t.height=r,t.flipX=o,t.flipY=a,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,n=this.cutHeight,s=this.data.drawImage;s.width=i,s.height=n;var r=this.source.width,o=this.source.height;return this.u0=t/r,this.v0=e/o,this.u1=(t+i)/r,this.v1=(e+n)/o,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new o(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=r(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.source=null,this.texture=null,this.glTexture=null,this.customData=null,this.data=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=o},function(t,e,i){var n=i(0),s=i(95),r=i(393),o=i(394),a=i(46),h=i(152),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=a.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=n},contains:function(t,e){return s(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=l},function(t,e){t.exports=function(t,e,i){if(t.width<=0||t.height<=0)return!1;var n=(e-t.x)/t.width,s=(i-t.y)/t.height;return(n*=n)+(s*=s)<.25}},function(t,e,i){var n=i(238),s=i(0),r=i(89),o=i(2),a=i(6),h=i(7),l=i(387),u=i(128),c=i(74),d=new s({initialize:function(t,e,i){i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?h(e[0])&&(i=e,e=null):h(e)&&(i=e,e=null),this.scene=t,this.children=new u(e),this.isParent=!0,this.type="Group",this.classType=o(i,"classType",c),this.name=o(i,"name",""),this.active=o(i,"active",!0),this.maxSize=o(i,"maxSize",-1),this.defaultKey=o(i,"defaultKey",null),this.defaultFrame=o(i,"defaultFrame",null),this.runChildUpdate=o(i,"runChildUpdate",!1),this.createCallback=o(i,"createCallback",null),this.removeCallback=o(i,"removeCallback",null),this.createMultipleCallback=o(i,"createMultipleCallback",null),this.internalCreateCallback=o(i,"internalCreateCallback",null),this.internalRemoveCallback=o(i,"internalRemoveCallback",null),i&&this.createMultiple(i)},create:function(t,e,i,n,s,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===n&&(n=this.defaultFrame),void 0===s&&(s=!0),void 0===r&&(r=!0),this.isFull())return null;var o=new this.classType(this.scene,t,e,i,n);return this.scene.sys.displayList.add(o),o.preUpdate&&this.scene.sys.updateList.add(o),o.visible=s,o.setActive(r),this.add(o),o},createMultiple:function(t){if(this.isFull())return[];Array.isArray(t)||(t=[t]);var e=[];if(t[0].key)for(var i=0;i=0;u--)if((l=d[u]).active===i){if(++c===e)break}else l=null;return l?("number"==typeof s&&(l.x=s),"number"==typeof r&&(l.y=r),l):n?this.create(s,r,o,a,h):null},get:function(t,e,i,n,s){return this.getFirst(!1,!0,t,e,i,n,s)},getFirstAlive:function(t,e,i,n,s,r){return this.getFirst(!0,t,e,i,n,s,r)},getFirstDead:function(t,e,i,n,s,r){return this.getFirst(!1,t,e,i,n,s,r)},playAnimation:function(t,e){return n.PlayAnimation(this.children.entries,t,e),this},isFull:function(){return-1!==this.maxSize&&this.children.size>=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;i=0&&t=0&&e0;e--){var i=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[i],t[i]=n}return t}},function(t,e){t.exports=function(t,e,i){return(e-t)*i+t}},function(t,e,i){(function(e){var i={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=function(){var t=navigator.userAgent;/Windows/.test(t)?i.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?i.macOS=!0:/Android/.test(t)?i.android=!0:/Linux/.test(t)?i.linux=!0:/iP[ao]d|iPhone/i.test(t)?(i.iOS=!0,navigator.appVersion.match(/OS (\d+)/),i.iOSVersion=parseInt(RegExp.$1,10),i.iPhone=-1!==t.toLowerCase().indexOf("iphone"),i.iPad=-1!==t.toLowerCase().indexOf("ipad")):/Kindle/.test(t)||/\bKF[A-Z][A-Z]+/.test(t)||/Silk.*Mobile Safari/.test(t)?i.kindle=!0:/CrOS/.test(t)&&(i.chromeOS=!0),(/Windows Phone/i.test(t)||/IEMobile/i.test(t))&&(i.android=!1,i.iOS=!1,i.macOS=!1,i.windows=!0,i.windowsPhone=!0);var n=/Silk/.test(t);return(i.windows||i.macOS||i.linux&&!n||i.chromeOS)&&(i.desktop=!0),(i.windowsPhone||/Windows NT/i.test(t)&&/Touch/i.test(t))&&(i.desktop=!1),navigator.standalone&&(i.webApp=!0),void 0!==window.cordova&&(i.cordova=!0),void 0!==e&&e.versions&&e.versions.node&&(i.node=!0),i.node&&"object"==typeof e.versions&&(i.nodeWebkit=!!e.versions["node-webkit"],i.electron=!!e.versions.electron),void 0!==window.ejecta&&(i.ejecta=!0),/Crosswalk/.test(t)&&(i.crosswalk=!0),i.pixelRatio=window.devicePixelRatio||1,i}()}).call(this,i(725))},function(t,e,i){var n,s=i(113),r={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0};t.exports=(n=navigator.userAgent,/Edge\/\d+/.test(n)?r.edge=!0:/Chrome\/(\d+)/.test(n)&&!s.windowsPhone?(r.chrome=!0,r.chromeVersion=parseInt(RegExp.$1,10)):/Firefox\D+(\d+)/.test(n)?(r.firefox=!0,r.firefoxVersion=parseInt(RegExp.$1,10)):/AppleWebKit/.test(n)&&s.iOS?r.mobileSafari=!0:/MSIE (\d+\.\d+);/.test(n)?(r.ie=!0,r.ieVersion=parseInt(RegExp.$1,10)):/Opera/.test(n)?r.opera=!0:/Safari/.test(n)&&!s.windowsPhone?r.safari=!0:/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(n)&&(r.ie=!0,r.trident=!0,r.tridentVersion=parseInt(RegExp.$1,10),r.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(n)&&(r.silk=!0),r)},function(t,e){t.exports=function(t,e){return t>0&&0==(t&t-1)&&e>0&&0==(e&e-1)}},function(t,e,i){t.exports={ADD:i(775),ERROR:i(776),LOAD:i(777),READY:i(778),REMOVE:i(779)}},function(t,e){t.exports=function(t,e){var i;if(e)"string"==typeof e?i=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement)return t;return i||(i=document.body),i.appendChild(t),t}},function(t,e,i){var n=i(79);t.exports=function(t,e,i,s){var r;if(void 0===s&&(s=t),!Array.isArray(e))return-1!==(r=t.indexOf(e))?(n(t,r),i&&i.call(s,e),e):null;for(var o=e.length-1;o>=0;){var a=e[o];-1!==(r=t.indexOf(a))?(n(t,r),i&&i.call(s,a)):e.pop(),o--}return e}},function(t,e){t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},function(t,e){t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},function(t,e,i){var n=i(65);t.exports=function(t,e){var i=n(t);for(var s in e)i.hasOwnProperty(s)||(i[s]=e[s]);return i}},function(t,e,i){var n=i(0),s=i(65),r=i(10),o=i(59),a=i(18),h=i(1),l=new n({Extends:r,initialize:function(t){r.call(this),this.game=t,this.jsonCache=t.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,t.events.on(a.BLUR,function(){this.pauseOnBlur&&this.onBlur()},this),t.events.on(a.FOCUS,function(){this.pauseOnBlur&&this.onFocus()},this),t.events.on(a.PRE_STEP,this.update,this),t.events.once(a.DESTROY,this.destroy,this)},add:h,addAudioSprite:function(t,e){void 0===e&&(e={});var i=this.add(t,e);for(var n in i.spritemap=this.jsonCache.get(t).spritemap,i.spritemap)if(i.spritemap.hasOwnProperty(n)){var r=s(e),o=i.spritemap[n];r.loop=!!o.hasOwnProperty("loop")&&o.loop,i.addMarker({name:n,start:o.start,duration:o.end-o.start,config:r})}return i},play:function(t,e){var i=this.add(t);return i.once(o.COMPLETE,i.destroy,i),e?e.name?(i.addMarker(e),i.play(e.name)):i.play(e):i.play()},playAudioSprite:function(t,e,i){var n=this.addAudioSprite(t);return n.once(o.COMPLETE,n.destroy,n),n.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;i>=0;i--){var n=this.sounds[i];n.key===t&&(n.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound(function(t){t.pause()}),this.emit(o.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(t){t.resume()}),this.emit(o.RESUME_ALL,this)},stopAll:function(){this.forEachActiveSound(function(t){t.stop()}),this.emit(o.STOP_ALL,this)},unlock:h,onBlur:h,onFocus:h,update:function(t,e){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(o.UNLOCKED,this));for(var i=this.sounds.length-1;i>=0;i--)this.sounds[i].pendingRemove&&this.sounds.splice(i,1);this.sounds.forEach(function(i){i.update(t,e)})},destroy:function(){this.removeAllListeners(),this.forEachActiveSound(function(t){t.destroy()}),this.sounds.length=0,this.sounds=null,this.game=null},forEachActiveSound:function(t,e){var i=this;this.sounds.forEach(function(n,s){n&&!n.pendingRemove&&t.call(e||i,n,s,i.sounds)})},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_DETUNE,this,t)}}});t.exports=l},function(t,e,i){var n=i(0),s=i(10),r=i(59),o=i(17),a=i(1),h=new n({Extends:s,initialize:function(t,e,i){s.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},this.currentConfig=this.config,this.config=o(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(console.error("addMarker "+t.name+" already exists in Sound"),!1):(t=o(!0,{name:"",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0}},t),this.markers[t.name]=t,!0))},updateMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(this.markers[t.name]=o(!0,this.markers[t.name],t),!0):(console.warn("Audio Marker: "+t.name+" missing in Sound: "+this.key),!1))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if(void 0===t&&(t=""),"object"==typeof t&&(e=t,t=""),"string"!=typeof t)return!1;if(t){if(!this.markers[t])return console.warn("Marker: "+t+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=o(this.currentConfig,e),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return!(this.isPaused||!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!0,!0)},resume:function(){return!(!this.isPaused||this.isPlaying)&&(this.isPlaying=!0,this.isPaused=!1,!0)},stop:function(){return!(!this.isPaused&&!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),!0)},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:a,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,e=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*e},destroy:function(){this.pendingRemove||(this.emit(r.DESTROY,this),this.pendingRemove=!0,this.manager=null,this.key="",this.removeAllListeners(),this.isPlaying=!1,this.isPaused=!1,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=h},function(t,e,i){var n=i(179),s=i(0),r=i(1),o=i(126),a=new s({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=r,this.removeCallback=r,this._sortKey=""},add:function(t,e){return e?n.Add(this.list,t):n.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?n.AddAt(this.list,t,e):n.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(t,e){return t?(void 0===e&&(e=function(e,i){return e[t]-i[t]}),o.inplace(this.list,e),this):this},getByName:function(t){return n.GetFirst(this.list,"name",t)},getRandom:function(t,e){return n.GetRandom(this.list,t,e)},getFirst:function(t,e,i,s){return n.GetFirst(this.list,t,e,i,s)},getAll:function(t,e,i,s){return n.GetAll(this.list,t,e,i,s)},count:function(t,e){return n.CountAllMatching(this.list,t,e)},swap:function(t,e){n.Swap(this.list,t,e)},moveTo:function(t,e){return n.MoveTo(this.list,t,e)},remove:function(t,e){return e?n.Remove(this.list,t):n.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?n.RemoveAt(this.list,t):n.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?n.RemoveBetween(this.list,t,e):n.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return n.BringToTop(this.list,t)},sendToBack:function(t){return n.SendToBack(this.list,t)},moveUp:function(t){return n.MoveUp(this.list,t),t},moveDown:function(t){return n.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return n.Shuffle(this.list),this},replace:function(t,e){return n.Replace(this.list,t,e)},exists:function(t){return this.list.indexOf(t)>-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){for(var i=[null],n=2;n0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});t.exports=a},function(t,e,i){var n=i(180),s=i(385);t.exports=function(t,e){if(void 0===e&&(e=90),!n(t))return null;if("string"!=typeof e&&(e=(e%360+360)%360),90===e||-270===e||"rotateLeft"===e)(t=s(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=s(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;il&&(r=l),o>l&&(o=l),a=s,h=r;;)if(a-1&&this.entries.splice(e,1),this},dump:function(){console.group("Set");for(var t=0;t-1},union:function(t){var e=new n;return t.entries.forEach(function(t){e.set(t)}),this.entries.forEach(function(t){e.set(t)}),e},intersect:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)&&e.set(i)}),e},difference:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)||e.set(i)}),e},size:{get:function(){return this.entries.length},set:function(t){return t0&&o.length0&&a.lengthe.right||t.y>e.bottom)}},function(t,e,i){var n=i(6),s={},r={register:function(t,e,i,n,r){s[t]={plugin:e,mapping:i,settingsKey:n,configKey:r}},getPlugin:function(t){return s[t]},install:function(t){var e=t.scene.sys,i=e.settings.input,r=e.game.config;for(var o in s){var a=s[o].plugin,h=s[o].mapping,l=s[o].settingsKey,u=s[o].configKey;n(i,l,r[u])&&(t[h]=new a(t))}},remove:function(t){s.hasOwnProperty(t)&&delete s[t]}};t.exports=r},function(t,e,i){t.exports={ANY_KEY_DOWN:i(1211),ANY_KEY_UP:i(1212),COMBO_MATCH:i(1213),DOWN:i(1214),KEY_DOWN:i(1215),KEY_UP:i(1216),UP:i(1217)}},function(t,e){t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===t&&(t=""),void 0===e&&(e=!0),void 0===i&&(i=""),void 0===n&&(n=""),void 0===s&&(s=0),void 0===r&&(r=!1),{responseType:t,async:e,user:i,password:n,timeout:s,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:r}}},function(t,e,i){var n=i(0),s=i(213),r=i(74),o=new n({Extends:r,Mixins:[s.Acceleration,s.Angular,s.Bounce,s.Debug,s.Drag,s.Enable,s.Friction,s.Gravity,s.Immovable,s.Mass,s.Size,s.Velocity],initialize:function(t,e,i,n,s){r.call(this,t,e,i,n,s),this.body=null}});t.exports=o},function(t,e,i){t.exports={CalculateFacesAt:i(216),CalculateFacesWithin:i(51),Copy:i(1307),CreateFromTiles:i(1308),CullTiles:i(1309),Fill:i(1310),FilterTiles:i(1311),FindByIndex:i(1312),FindTile:i(1313),ForEachTile:i(1314),GetTileAt:i(137),GetTileAtWorldXY:i(1315),GetTilesWithin:i(24),GetTilesWithinShape:i(1316),GetTilesWithinWorldXY:i(1317),HasTileAt:i(475),HasTileAtWorldXY:i(1318),IsInLayerBounds:i(100),PutTileAt:i(218),PutTileAtWorldXY:i(1319),PutTilesAt:i(1320),Randomize:i(1321),RemoveTileAt:i(476),RemoveTileAtWorldXY:i(1322),RenderDebug:i(1323),ReplaceByIndex:i(472),SetCollision:i(1324),SetCollisionBetween:i(1325),SetCollisionByExclusion:i(1326),SetCollisionByProperty:i(1327),SetCollisionFromCollisionGroup:i(1328),SetTileIndexCallback:i(1329),SetTileLocationCallback:i(1330),Shuffle:i(1331),SwapByIndex:i(1332),TileToWorldX:i(470),TileToWorldXY:i(217),TileToWorldY:i(471),WeightedRandomize:i(1333),WorldToTileX:i(473),WorldToTileXY:i(72),WorldToTileY:i(474)}},function(t,e,i){var n=i(100);t.exports=function(t,e,i,s){if(void 0===i&&(i=!1),n(t,e,s)){var r=s.data[e][t]||null;return null===r?null:-1===r.index?i?r:null:r}return null}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o,a){(void 0===i||i<=0)&&(i=32),(void 0===n||n<=0)&&(n=32),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o={}),void 0===a&&(a={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=n,this.tileMargin=s,this.tileSpacing=r,this.tileProperties=o,this.tileData=a,this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){var e=this.getTileData(t);return e&&e.objectgroup?e.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&t=this.vertexCapacity},resize:function(t,e,i){return this.width=t*i,this.height=e*i,this.resolution=i,this},bind:function(){var t=this.gl,e=this.vertexBuffer,i=this.attributes,n=this.program,s=this.renderer,r=this.vertexSize;s.setProgram(n),s.setVertexBuffer(e);for(var o=0;o=0?(t.enableVertexAttribArray(h),t.vertexAttribPointer(h,a.size,a.type,a.normalized,r,a.offset)):-1!==h&&t.disableVertexAttribArray(h)}return this},onBind:function(){return this},onPreRender:function(){return this},onRender:function(){return this},onPostRender:function(){return this},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t=this.gl,e=this.vertexCount,i=this.topology,n=this.vertexSize;if(0!==e)return t.bufferSubData(t.ARRAY_BUFFER,0,this.bytes.subarray(0,e*n)),t.drawArrays(i,0,e),this.vertexCount=0,this.flushLocked=!1,this;this.flushLocked=!1},destroy:function(){var t=this.gl;return t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),delete this.program,delete this.vertexBuffer,delete this.gl,this},setFloat1:function(t,e){return this.renderer.setFloat1(this.program,t,e),this},setFloat2:function(t,e,i){return this.renderer.setFloat2(this.program,t,e,i),this},setFloat3:function(t,e,i,n){return this.renderer.setFloat3(this.program,t,e,i,n),this},setFloat4:function(t,e,i,n,s){return this.renderer.setFloat4(this.program,t,e,i,n,s),this},setFloat1v:function(t,e){return this.renderer.setFloat1v(this.program,t,e),this},setFloat2v:function(t,e){return this.renderer.setFloat2v(this.program,t,e),this},setFloat3v:function(t,e){return this.renderer.setFloat3v(this.program,t,e),this},setFloat4v:function(t,e){return this.renderer.setFloat4v(this.program,t,e),this},setInt1:function(t,e){return this.renderer.setInt1(this.program,t,e),this},setInt2:function(t,e,i){return this.renderer.setInt2(this.program,t,e,i),this},setInt3:function(t,e,i,n){return this.renderer.setInt3(this.program,t,e,i,n),this},setInt4:function(t,e,i,n,s){return this.renderer.setInt4(this.program,t,e,i,n,s),this},setMatrix2:function(t,e,i){return this.renderer.setMatrix2(this.program,t,e,i),this},setMatrix3:function(t,e,i){return this.renderer.setMatrix3(this.program,t,e,i),this},setMatrix4:function(t,e,i){return this.renderer.setMatrix4(this.program,t,e,i),this}});t.exports=r},,function(t,e,i){var n=i(4);t.exports=function(t,e,i){return void 0===i&&(i=new n),i.x=t.x+t.radius*Math.cos(e),i.y=t.y+t.radius*Math.sin(e),i}},function(t,e,i){var n=i(4);t.exports=function(t,e){void 0===e&&(e=new n);var i=2*Math.PI*Math.random(),s=Math.random()+Math.random(),r=s>1?2-s:s,o=r*Math.cos(i),a=r*Math.sin(i);return e.x=t.x+o*t.radius,e.y=t.y+a*t.radius,e}},function(t,e,i){var n=i(22),s=i(0),r=i(10),o=i(108),a=i(267),h=i(268),l=i(6),u=new s({Extends:r,initialize:function(t,e,i){r.call(this),this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,l(i,"frames",[]),l(i,"defaultTextureKey",null)),this.frameRate=l(i,"frameRate",null),this.duration=l(i,"duration",null),null===this.duration&&null===this.frameRate?(this.frameRate=24,this.duration=this.frameRate/this.frames.length*1e3):this.duration&&null===this.frameRate?this.frameRate=this.frames.length/(this.duration/1e3):this.duration=this.frames.length/this.frameRate*1e3,this.msPerFrame=1e3/this.frameRate,this.skipMissedFrames=l(i,"skipMissedFrames",!0),this.delay=l(i,"delay",0),this.repeat=l(i,"repeat",0),this.repeatDelay=l(i,"repeatDelay",0),this.yoyo=l(i,"yoyo",!1),this.showOnStart=l(i,"showOnStart",!1),this.hideOnComplete=l(i,"hideOnComplete",!1),this.paused=!1,this.manager.on(o.PAUSE_ALL,this.pause,this),this.manager.on(o.RESUME_ALL,this.resume,this)},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i=this.getFrames(this.manager.textureManager,e);if(i.length>0){if(0===t)this.frames=i.concat(this.frames);else if(t===this.frames.length)this.frames=this.frames.concat(i);else{var n=this.frames.slice(0,t),s=this.frames.slice(t);this.frames=n.concat(i,s)}this.updateFrameSequence()}return this},checkFrame:function(t){return t>=0&&t0){s.isLast=!0,s.nextFrame=a[0],a[0].prevFrame=s;var v=1/(a.length-1);for(r=0;r=this.frames.length&&(e=0),t.currentAnim!==this&&(t.currentAnim=this,t.frameRate=this.frameRate,t.duration=this.duration,t.msPerFrame=this.msPerFrame,t.skipMissedFrames=this.skipMissedFrames,t._delay=this.delay,t._repeat=this.repeat,t._repeatDelay=this.repeatDelay,t._yoyo=this.yoyo);var i=this.frames[e];0!==e||t.forward||(i=this.getLastFrame()),t.updateFrame(i)},getFrameByProgress:function(t){return t=n(t,0,1),a(t,this.frames,"progress")},nextFrame:function(t){var e=t.currentFrame;e.isLast?t._yoyo?this.handleYoyoFrame(t,!1):t.repeatCounter>0?t._reverse&&t.forward?t.forward=!1:this.repeatAnimation(t):this.completeAnimation(t):this.updateAndGetNextTick(t,e.nextFrame)},handleYoyoFrame:function(t,e){if(e||(e=!1),t._reverse===!e&&t.repeatCounter>0)return t.forward=e,void this.repeatAnimation(t);if(t._reverse===e||0!==t.repeatCounter){t.forward=e;var i=e?t.currentFrame.nextFrame:t.currentFrame.prevFrame;this.updateAndGetNextTick(t,i)}else this.completeAnimation(t)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(t){var e=t.currentFrame;e.isFirst?t._yoyo?this.handleYoyoFrame(t,!0):t.repeatCounter>0?t._reverse&&!t.forward?(t.currentFrame=this.getLastFrame(),this.repeatAnimation(t)):(t.forward=!0,this.repeatAnimation(t)):this.completeAnimation(t):this.updateAndGetNextTick(t,e.prevFrame)},updateAndGetNextTick:function(t,e){t.updateFrame(e),this.getNextTick(t)},removeFrame:function(t){var e=this.frames.indexOf(t);return-1!==e&&this.removeFrameAt(e),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop)return this.completeAnimation(t);if(t._repeatDelay>0&&!1===t.pendingRepeat)t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t._repeatDelay;else if(t.repeatCounter--,t.updateFrame(t.currentFrame[t.forward?"nextFrame":"prevFrame"]),t.isPlaying){this.getNextTick(t),t.pendingRepeat=!1;var e=t.currentFrame,i=t.parent;this.emit(o.ANIMATION_REPEAT,this,e),i.emit(o.SPRITE_ANIMATION_KEY_REPEAT+this.key,this,e,t.repeatCounter,i),i.emit(o.SPRITE_ANIMATION_REPEAT,this,e,t.repeatCounter,i)}},setFrame:function(t){t.forward?this.nextFrame(t):this.previousFrame(t)},toJSON:function(){var t={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showOnStart:this.showOnStart,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(e){t.frames.push(e.toJSON())}),t},updateFrameSequence:function(){for(var t,e=this.frames.length,i=1/(e-1),n=0;n1?(t.isLast=!0,t.prevFrame=this.frames[e-2],t.nextFrame=this.frames[0]):e>1&&(t.prevFrame=this.frames[n-1],t.nextFrame=this.frames[n+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.removeAllListeners(),this.manager.off(o.PAUSE_ALL,this.pause,this),this.manager.off(o.RESUME_ALL,this.resume,this),this.manager.remove(this.key);for(var t=0;t=1)return i.x=t.x,i.y=t.y,i;var r=n(t)*e;return e>.5?(r-=t.width+t.height)<=t.width?(i.x=t.right-r,i.y=t.bottom):(i.x=t.x,i.y=t.bottom-(r-t.width)):r<=t.width?(i.x=t.x+r,i.y=t.y):(i.x=t.right,i.y=t.y+(r-t.width)),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=n(t)/i);for(var o=t.x1,a=t.y1,h=t.x2,l=t.y2,u=0;u=1&&(a=1-a,h=1-h),e.x=t.x1+(i*a+r*h),e.y=t.y1+(s*a+o*h),e}},function(t,e){t.exports=function(t,e,i,n,s){var r=n+Math.atan2(t.y-i,t.x-e);return t.x=e+s*Math.cos(r),t.y=i+s*Math.sin(r),t}},function(t,e){t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},function(t,e){t.exports=function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){if(this.entries={},this.size=0,Array.isArray(t))for(var e=0;e=(t=t.toString()).length)switch(n){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var r=Math.ceil((s=e-t.length)/2);t=new Array(s-r+1).join(i)+t+new Array(r+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},function(t,e,i){var n=i(291),s=i(294),r=i(296),o=i(297);t.exports=function(t){switch(typeof t){case"string":return"rgb"===t.substr(0,3).toLowerCase()?o(t):n(t);case"number":return s(t);case"object":return r(t)}}},function(t,e){t.exports=function(t,e,i){return t<<16|e<<8|i}},function(t,e,i){var n=i(160);t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1);var r=Math.floor(6*t),o=6*t-r,a=Math.floor(i*(1-e)*255),h=Math.floor(i*(1-o*e)*255),l=Math.floor(i*(1-(1-o)*e)*255),u=i=Math.floor(i*=255),c=i,d=i,f=r%6;return 0===f?(c=l,d=a):1===f?(u=h,d=a):2===f?(u=a,d=l):3===f?(u=a,c=h):4===f?(u=l,c=a):5===f&&(c=a,d=h),s?s.setTo?s.setTo(u,c,d,s.alpha,!1):(s.r=u,s.g=c,s.b=d,s.color=n(u,c,d),s):{r:u,g:c,b:d,color:n(u,c,d)}}},function(t,e){var i,n="";t.exports={disable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!1),t},enable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!0),t},getPrefix:i=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i0&&(n=1/Math.sqrt(n),this.x=t*n,this.y=e*n,this.z=i*n),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z;return this.x=i*o-n*r,this.y=n*s-e*o,this.z=e*r-i*s,this},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this},transformMat3:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=e*s[0]+i*s[3]+n*s[6],this.y=e*s[1]+i*s[4]+n*s[7],this.z=e*s[2]+i*s[5]+n*s[8],this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12],this.y=s[1]*e+s[5]*i+s[9]*n+s[13],this.z=s[2]*e+s[6]*i+s[10]*n+s[14],this},transformCoordinates:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=e*s[0]+i*s[4]+n*s[8]+s[12],o=e*s[1]+i*s[5]+n*s[9]+s[13],a=e*s[2]+i*s[6]+n*s[10]+s[14],h=e*s[3]+i*s[7]+n*s[11]+s[15];return this.x=r/h,this.y=o/h,this.z=a/h,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},project:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=s[0],o=s[1],a=s[2],h=s[3],l=s[4],u=s[5],c=s[6],d=s[7],f=s[8],p=s[9],g=s[10],v=s[11],m=s[12],y=s[13],x=s[14],T=1/(e*h+i*d+n*v+s[15]);return this.x=(e*r+i*l+n*f+m)*T,this.y=(e*o+i*u+n*p+y)*T,this.z=(e*a+i*c+n*g+x)*T,this},unproject:function(t,e){var i=t.x,n=t.y,s=t.z,r=t.w,o=this.x-i,a=r-this.y-1-n,h=this.z;return this.x=2*o/s-1,this.y=2*a/r-1,this.z=2*h-1,this.project(e)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0,0),n.LEFT=new n(-1,0,0),n.UP=new n(0,-1,0),n.DOWN=new n(0,1,0),n.FORWARD=new n(0,0,1),n.BACK=new n(0,0,-1),n.ONE=new n(1,1,1),t.exports=n},function(t,e,i){t.exports={Global:["game","anims","cache","plugins","registry","scale","sound","textures"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]}},function(t,e,i){var n=i(12),s=i(15);t.exports=function(t,e){if(void 0===e&&(e=new n),0===t.length)return e;for(var i,r,o,a=Number.MAX_VALUE,h=Number.MAX_VALUE,l=s.MIN_SAFE_INTEGER,u=s.MIN_SAFE_INTEGER,c=0;c0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(t){return this.settings.visible=t,this},setActive:function(t,e){return t?this.resume(e):this.pause(e)},start:function(t){t&&(this.settings.data=t),this.settings.status=s.START,this.settings.active=!0,this.settings.visible=!0,this.events.emit(o.START,this),this.events.emit(o.READY,this,t)},shutdown:function(t){this.events.off(o.TRANSITION_INIT),this.events.off(o.TRANSITION_START),this.events.off(o.TRANSITION_COMPLETE),this.events.off(o.TRANSITION_OUT),this.settings.status=s.SHUTDOWN,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.SHUTDOWN,this,t)},destroy:function(){this.settings.status=s.DESTROYED,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.DESTROY,this),this.events.removeAllListeners();for(var t=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],e=0;e0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});t.exports=u},function(t,e,i){var n=i(179),s=i(52),r=i(0),o=i(11),a=i(89),h=i(13),l=i(12),u=i(949),c=i(389),d=i(3),f=new r({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.Transform,o.Visible,u],initialize:function(t,e,i,n){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._displayList=t.sys.displayList,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.setPosition(e,i),this.clearAlpha(),this.setBlendMode(s.SKIP_CHECK),n&&this.add(n)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return void 0===t&&(t=!0),this.exclusive=t,this},getBounds:function(t){if(void 0===t&&(t=new l),t.setTo(this.x,this.y,0,0),this.list.length>0)for(var e=this.list,i=new l,n=0;n-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){var i,n=[null],s=this.list.slice(),r=s.length;for(i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[],this._displayList=null}});t.exports=f},function(t,e,i){var n=i(127),s=i(0),r=i(954),o=new s({Extends:n,Mixins:[r],initialize:function(t,e,i,s,r,o,a){n.call(this,t,e,i,s,r,o,a),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=o},function(t,e,i){var n=i(90),s=i(0),r=i(188),o=i(266),a=i(269),h=i(270),l=i(274),u=i(151),c=i(279),d=i(280),f=i(277),p=i(30),g=i(94),v=i(13),m=i(2),y=i(6),x=i(15),T=i(960),w=new s({Extends:v,Mixins:[o,a,h,l,u,c,d,f,T],initialize:function(t,e){var i=y(e,"x",0),n=y(e,"y",0);v.call(this,t,"Graphics"),this.setPosition(i,n),this.initPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this._tempMatrix1=new p,this._tempMatrix2=new p,this._tempMatrix3=new p,this.setDefaultStyles(e)},setDefaultStyles:function(t){return y(t,"lineStyle",null)&&(this.defaultStrokeWidth=y(t,"lineStyle.width",1),this.defaultStrokeColor=y(t,"lineStyle.color",16777215),this.defaultStrokeAlpha=y(t,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),y(t,"fillStyle",null)&&(this.defaultFillColor=y(t,"fillStyle.color",16777215),this.defaultFillAlpha=y(t,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return void 0===i&&(i=1),this.commandBuffer.push(r.LINE_STYLE,t,e,i),this._lineWidth=t,this},fillStyle:function(t,e){return void 0===e&&(e=1),this.commandBuffer.push(r.FILL_STYLE,t,e),this},fillGradientStyle:function(t,e,i,n,s){return void 0===s&&(s=1),this.commandBuffer.push(r.GRADIENT_FILL_STYLE,s,t,e,i,n),this},lineGradientStyle:function(t,e,i,n,s,o){return void 0===o&&(o=1),this.commandBuffer.push(r.GRADIENT_LINE_STYLE,t,o,e,i,n,s),this},setTexture:function(t,e,i){if(void 0===i&&(i=0),void 0===t)this.commandBuffer.push(r.CLEAR_TEXTURE);else{var n=this.scene.sys.textures.getFrame(t,e);n&&(2===i&&(i=3),this.commandBuffer.push(r.SET_TEXTURE,n,i))}return this},beginPath:function(){return this.commandBuffer.push(r.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(r.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(r.FILL_PATH),this},fill:function(){return this.commandBuffer.push(r.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(r.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(r.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,n){return this.commandBuffer.push(r.FILL_RECT,t,e,i,n),this},strokeRect:function(t,e,i,n){var s=this._lineWidth/2,r=t-s,o=t+s;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+n),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+n),this.strokePath(),this.beginPath(),this.moveTo(r,e),this.lineTo(o+i,e),this.strokePath(),this.beginPath(),this.moveTo(r,e+n),this.lineTo(o+i,e+n),this.strokePath(),this},fillRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.fillPath(),this},strokeRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(r.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.FILL_TRIANGLE,t,e,i,n,s,o),this},strokeTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.STROKE_TRIANGLE,t,e,i,n,s,o),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,n){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,n),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(r.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(r.MOVE_TO,t,e),this},strokePoints:function(t,e,i,n){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var s=1;s-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(t,e,i){var n,s,r=this.scene.sys,o=r.game.renderer;if(void 0===e&&(e=r.scale.width),void 0===i&&(i=r.scale.height),w.TargetCamera.setScene(this.scene),w.TargetCamera.setViewport(0,0,e,i),w.TargetCamera.scrollX=this.x,w.TargetCamera.scrollY=this.y,"string"==typeof t)if(r.textures.exists(t)){var a=(n=r.textures.get(t)).getSourceImage();a instanceof HTMLCanvasElement&&(s=a.getContext("2d"))}else s=(n=r.textures.createCanvas(t,e,i)).getSourceImage().getContext("2d");else t instanceof HTMLCanvasElement&&(s=t.getContext("2d"));return s&&(this.renderCanvas(o,this,0,w.TargetCamera,null,s,!1),n&&n.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});w.TargetCamera=new n,t.exports=w},function(t,e){t.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,SET_TEXTURE:19,CLEAR_TEXTURE:20,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.width/2,r=t.height/2;return i.x=t.x+s*Math.cos(e),i.y=t.y+r*Math.sin(e),i}},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(397),a=i(124),h=i(399),l=i(970),u=new n({Extends:r,Mixins:[s.Depth,s.Mask,s.Pipeline,s.Transform,s.Visible,l],initialize:function(t,e,i,n){if(r.call(this,t,"ParticleEmitterManager"),this.blendMode=-1,this.timeScale=1,this.texture=null,this.frame=null,this.frameNames=[],null===i||"object"!=typeof i&&!Array.isArray(i)||(n=i,i=null),this.setTexture(e,i),this.initPipeline(),this.emitters=new a(this),this.wells=new a(this),n){Array.isArray(n)||(n=[n]);for(var s=0;s0?e.defaultFrame=i[0]:e.defaultFrame=this.defaultFrame,this},addEmitter:function(t){return this.emitters.add(t)},createEmitter:function(t){return this.addEmitter(new h(this,t))},removeEmitter:function(t){return this.emitters.remove(t,!0)},addGravityWell:function(t){return this.wells.add(t)},createGravityWell:function(t){return this.addGravityWell(new o(t))},emitParticle:function(t,e,i){for(var n=this.emitters.list,s=0;ss.width&&(t=s.width-this.frame.cutX),this.frame.cutY+e>s.height&&(e=s.height-this.frame.cutY),this.frame.setSize(t,e,this.frame.cutX,this.frame.cutY)}this.updateDisplayOrigin();var r=this.input;return r&&!r.customHitArea&&(r.hitArea.width=t,r.hitArea.height=e),this},setGlobalTint:function(t){return this.globalTint=t,this},setGlobalAlpha:function(t){return this.globalAlpha=t,this},saveTexture:function(t){return this.textureManager.renameTexture(this.texture.key,t),this._saved=!0,this.texture},fill:function(t,e,i,n,s,r){void 0===e&&(e=1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.frame.cutWidth),void 0===r&&(r=this.frame.cutHeight);var o=255&(t>>16|0),a=255&(t>>8|0),h=255&(0|t),l=this.gl,u=this.frame;if(this.camera.preRender(1,1),l){var c=this.camera._cx,f=this.camera._cy,p=this.camera._cw,g=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(c,f,p,g,g);var v=this.pipeline;v.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),v.drawFillRect(i,n,s,r,d.getTintFromFloats(o/255,a/255,h/255,1),e),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),v.projOrtho(0,v.width,v.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.context.fillStyle="rgba("+o+","+a+","+h+","+e+")",this.context.fillRect(i+u.cutX,n+u.cutY,s,r),this.renderer.setContext();return this.dirty=!0,this},clear:function(){if(this.dirty){var t=this.gl;if(t){var e=this.renderer;e.setFramebuffer(this.framebuffer,!0),this.frame.cutWidth===this.canvas.width&&this.frame.cutHeight===this.canvas.height||t.scissor(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),e.setFramebuffer(null,!0)}else{var i=this.context;i.save(),i.setTransform(1,0,0,1,0,0),i.clearRect(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),i.restore()}this.dirty=!1}return this},erase:function(t,e,i){this._eraseMode=!0;var s=this.renderer.currentBlendMode;return this.renderer.setBlendMode(n.ERASE),this.draw(t,e,i,1,16777215),this.renderer.setBlendMode(s),this._eraseMode=!1,this},draw:function(t,e,i,n,s){void 0===n&&(n=this.globalAlpha),s=void 0===s?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(s>>16)+(65280&s)+((255&s)<<16),Array.isArray(t)||(t=[t]);var r=this.gl;if(this.camera.preRender(1,1),r){var o=this.camera._cx,a=this.camera._cy,h=this.camera._cw,l=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(o,a,h,l,l);var u=this.pipeline;u.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),this.batchList(t,e,i,n,s),u.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),u.projOrtho(0,u.width,u.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.batchList(t,e,i,n,s),this.renderer.setContext();return this.dirty=!0,this},drawFrame:function(t,e,i,n,s,r){void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.globalAlpha),r=void 0===r?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(r>>16)+(65280&r)+((255&r)<<16);var o=this.gl,a=this.textureManager.getFrame(t,e);if(a){if(this.camera.preRender(1,1),o){var h=this.camera._cx,l=this.camera._cy,u=this.camera._cw,c=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(h,l,u,c,c);var d=this.pipeline;d.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),d.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,r,s,this.camera.matrix,null),d.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),d.projOrtho(0,d.width,d.height,0,-1e3,1e3)}else this.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,s,r);this.dirty=!0}return this},batchList:function(t,e,i,n,s){for(var r=0;rr&&(o=t[r]),s[r]=o,t.length>r+1&&(o=t[r+1]),s[r+1]=o}return this},setColors:function(t){var e=this.points.length;if(e<1)return this;var i,n=this.colors;void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]);var s=0;if(t.length===e)for(i=0;is&&(r=t[s]),n[s]=r,t.length>s+1&&(r=t[s+1]),n[s+1]=r}return this},setPoints:function(t,e,i){if(void 0===t&&(t=2),"number"==typeof t){var n,s,r,o=t;if(o<2&&(o=2),t=[],this.horizontal)for(r=-this.frame.halfWidth,s=this.frame.width/(o-1),n=0;nl){if(0===c){for(var g=f;g.length&&(g=g.slice(0,-1),!((p=e.measureText(g).width)<=l)););if(!g.length)throw new Error("This text's wordWrapWidth setting is less than a single character!");var v=d.substr(g.length);u[c]=v,h+=g}var m=u[c].length?c:c+1,y=u.slice(m).join(" ").replace(/[ \n]*$/gi,"");s[o+1]=y+" "+(s[o+1]||""),r=s.length;break}h+=f,l-=p}n+=h.replace(/[ \n]*$/gi,"")+"\n"}}return n=n.replace(/[\s|\n]*$/gi,"")},basicWordWrap:function(t,e,i){for(var n="",s=t.split(this.splitRegExp),r=s.length-1,o=e.measureText(" ").width,a=0;a<=r;a++){for(var h=i,l=s[a].split(" "),u=l.length-1,c=0;c<=u;c++){var d=l[c],f=e.measureText(d).width,p=f+o;p>h&&c>0&&(n+="\n",h=i),n+=d,c0&&(d+=h.lineSpacing*g),i.rtl)c=f-c;else if("right"===i.align)c+=o-h.lineWidths[g];else if("center"===i.align)c+=(o-h.lineWidths[g])/2;else if("justify"===i.align){if(h.lineWidths[g]/h.width>=.85){var v=h.width-h.lineWidths[g],m=e.measureText(" ").width,y=a[g].trim(),x=y.split(" ");v+=(a[g].length-y.length)*m;for(var T=Math.floor(v/m),w=0;T>0;)x[w]+=" ",w=(w+1)%(x.length-1||1),--T;a[g]=x.join(" ")}}this.autoRound&&(c=Math.round(c),d=Math.round(d)),i.strokeThickness&&(this.style.syncShadow(e,i.shadowStroke),e.strokeText(a[g],c,d)),i.color&&(this.style.syncShadow(e,i.shadowFill),e.fillText(a[g],c,d))}e.restore(),this.renderer.gl&&(this.frame.source.glTexture=this.renderer.canvasToTexture(t,this.frame.source.glTexture,!0),this.frame.glTexture=this.frame.source.glTexture),this.dirty=!0;var E=this.input;return E&&!E.customHitArea&&(E.hitArea.width=this.width,E.hitArea.height=this.height),this},getTextMetrics:function(){return this.style.getTextMetrics()},text:{get:function(){return this._text},set:function(t){this.setText(t)}},toJSON:function(){var t=o.ToJSON(this),e={autoRound:this.autoRound,text:this._text,style:this.style.toJSON(),padding:{left:this.padding.left,right:this.padding.right,top:this.padding.top,bottom:this.padding.bottom}};return t.data=e,t},preDestroy:function(){this.style.rtl&&c(this.canvas),s.remove(this.canvas),this.texture.destroy()}});t.exports=p},function(t,e,i){var n=i(26),s=i(0),r=i(11),o=i(18),a=i(13),h=i(325),l=i(162),u=i(989),c=i(3),d=new s({Extends:a,Mixins:[r.Alpha,r.BlendMode,r.ComputedSize,r.Crop,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Tint,r.Transform,r.Visible,u],initialize:function(t,e,i,s,r,l,u){var d=t.sys.game.renderer;a.call(this,t,"TileSprite");var f=t.sys.textures.get(l),p=f.get(u);s&&r?(s=Math.floor(s),r=Math.floor(r)):(s=p.width,r=p.height),this._tilePosition=new c,this._tileScale=new c(1,1),this.dirty=!1,this.renderer=d,this.canvas=n.create(this,s,r),this.context=this.canvas.getContext("2d"),this.displayTexture=f,this.displayFrame=p,this._crop=this.resetCropObject(),this.texture=t.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.potWidth=h(p.width),this.potHeight=h(p.height),this.fillCanvas=n.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d"),this.fillPattern=null,this.setPosition(e,i),this.setSize(s,r),this.setFrame(u),this.setOriginFromFrame(),this.initPipeline(),t.sys.game.events.on(o.CONTEXT_RESTORED,function(t){var e=t.gl;this.dirty=!0,this.fillPattern=null,this.fillPattern=t.createTexture2D(0,e.LINEAR,e.LINEAR,e.REPEAT,e.REPEAT,e.RGBA,this.fillCanvas,this.potWidth,this.potHeight)},this)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){var e=this.displayTexture.get(t);return this.potWidth=h(e.width),this.potHeight=h(e.height),this.canvas.width=0,e.cutWidth&&e.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=e,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){if(this.dirty&&this.renderer){var t=this.displayFrame;if(t.source.isRenderTexture||t.source.isGLTexture)return console.warn("TileSprites can only use Image or Canvas based textures"),void(this.dirty=!1);var e=this.fillContext,i=this.fillCanvas,n=this.potWidth,s=this.potHeight;this.renderer.gl||(n=t.cutWidth,s=t.cutHeight),e.clearRect(0,0,n,s),i.width=n,i.height=s,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,n,s),this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var t=this.canvas;if(t.width===this.width&&t.height===this.height||(t.width=this.width,t.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl)this.dirty=!1;else{var e=this.context;this.scene.sys.game.config.antialias||l.disable(e);var i=this._tileScale.x,n=this._tileScale.y,s=this._tilePosition.x,r=this._tilePosition.y;e.clearRect(0,0,this.width,this.height),e.save(),e.scale(i,n),e.translate(-s,-r),e.fillStyle=this.fillPattern,e.fillRect(s,r,this.width/i,this.height/n),e.restore(),this.dirty=!1}},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),n.remove(this.canvas),n.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null,this.texture.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=d},function(t,e,i){var n=i(0),s=i(22),r=i(11),o=i(89),a=i(18),h=i(13),l=i(59),u=i(192),c=i(992),d=i(15),f=new n({Extends:h,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,c],initialize:function(t,e,i,n){h.call(this,t,"Video"),this.video=null,this.videoTexture=null,this.videoTextureSource=null,this.snapshotTexture=null,this.flipY=!1,this._key=u(),this.touchLocked=!0,this.playWhenUnlocked=!1,this.retryLimit=20,this.retry=0,this.retryInterval=500,this._retryID=null,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={play:this.playHandler.bind(this),error:this.loadErrorHandler.bind(this),end:this.completeHandler.bind(this),time:this.timeUpdateHandler.bind(this),seeking:this.seekingHandler.bind(this),seeked:this.seekedHandler.bind(this)},this._crop=this.resetCropObject(),this.markers={},this._markerIn=-1,this._markerOut=d.MAX_SAFE_INTEGER,this._lastUpdate=0,this._cacheKey="",this._isSeeking=!1,this.removeVideoElementOnDestroy=!1,this.setPosition(e,i),this.initPipeline(),n&&this.changeSource(n,!1);var s=t.sys.game.events;s.on(a.PAUSE,this.globalPause,this),s.on(a.RESUME,this.globalResume,this);var r=t.sys.sound;r&&r.on(l.GLOBAL_MUTE,this.globalMute,this)},play:function(t,e,i){if(this.touchLocked&&this.playWhenUnlocked||this.isPlaying())return this;var n=this.video;if(!n)return console.warn("Video not loaded"),this;void 0===t&&(t=n.loop);var s=this.scene.sys.sound;s&&s.mute&&this.setMute(!0),isNaN(e)||(this._markerIn=e),!isNaN(i)&&i>e&&(this._markerOut=i),n.loop=t;var r=this._callbacks,o=n.play();return void 0!==o?o.then(this.playPromiseSuccessHandler.bind(this)).catch(this.playPromiseErrorHandler.bind(this)):(n.addEventListener("playing",r.play,!0),n.readyState<2&&(this.retry=this.retryLimit,this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval))),n.addEventListener("ended",r.end,!0),n.addEventListener("timeupdate",r.time,!0),n.addEventListener("seeking",r.seeking,!0),n.addEventListener("seeked",r.seeked,!0),this},changeSource:function(t,e,i,n,s){void 0===e&&(e=!0),this.video&&this.stop();var r=this.scene.sys.cache.video.get(t);return r?(this.video=r,this._cacheKey=t,this._codePaused=r.paused,this._codeMuted=r.muted,this.videoTexture?(this.scene.sys.textures.remove(this._key),this.videoTexture=this.scene.sys.textures.create(this._key,r,r.videoWidth,r.videoHeight),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,r.videoWidth,r.videoHeight),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,r.videoWidth,r.videoHeight)):this.updateTexture(),r.currentTime=0,this._lastUpdate=0,e&&this.play(i,n,s)):this.video=null,this},addMarker:function(t,e,i){return!isNaN(e)&&e>=0&&!isNaN(i)&&(this.markers[t]=[e,i]),this},playMarker:function(t,e){var i=this.markers[t];return i&&this.play(e,i[0],i[1]),this},removeMarker:function(t){return delete this.markers[t],this},snapshot:function(t,e){return void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.snapshotArea(0,0,this.width,this.height,t,e)},snapshotArea:function(t,e,i,n,s,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=this.height),void 0===s&&(s=i),void 0===r&&(r=n);var o=this.video,a=this.snapshotTexture;return a?(a.setSize(s,r),o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)):(a=this.scene.sys.textures.createCanvas(u(),s,r),this.snapshotTexture=a,o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)),a.update()},saveSnapshotTexture:function(t){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,t):this.snapshotTexture=this.scene.sys.textures.createCanvas(t,this.width,this.height),this.snapshotTexture},loadURL:function(t,e,i){void 0===e&&(e="loadeddata"),void 0===i&&(i=!1),this.video&&this.stop(),this.videoTexture&&this.scene.sys.textures.remove(this._key);var n=document.createElement("video");return n.controls=!1,i&&(n.muted=!0,n.defaultMuted=!0,n.setAttribute("autoplay","autoplay")),n.setAttribute("playsinline","playsinline"),n.setAttribute("preload","auto"),n.addEventListener("error",this._callbacks.error,!0),n.src=t,n.load(),this.video=n,this},playPromiseSuccessHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn)},playPromiseErrorHandler:function(t){this.scene.sys.input.once("pointerdown",this.unlockHandler,this),this.touchLocked=!0,this.playWhenUnlocked=!0,this.emit(o.VIDEO_ERROR,this,t)},playHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this.video.removeEventListener("playing",this._callbacks.play,!0)},loadErrorHandler:function(t){this.stop(),this.emit(o.VIDEO_ERROR,this,t)},unlockHandler:function(){this.touchLocked=!1,this.playWhenUnlocked=!1,this.emit(o.VIDEO_UNLOCKED,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn),this.video.play(),this.emit(o.VIDEO_PLAY,this)},completeHandler:function(){this.emit(o.VIDEO_COMPLETE,this)},timeUpdateHandler:function(){this.video&&this.video.currentTime=this._markerOut&&(t.loop?(t.currentTime=this._markerIn,this.updateTexture(),this._lastUpdate=e,this.emit(o.VIDEO_LOOP,this)):(this.emit(o.VIDEO_COMPLETE,this),this.stop())))}},checkVideoProgress:function(){this.video.readyState>=2?this.updateTexture():(this.retry--,this.retry>0?this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval):this.emit(o.VIDEO_TIMEOUT,this))},updateTexture:function(){var t=this.video,e=t.videoWidth,i=t.videoHeight;if(this.videoTexture){var n=this.videoTextureSource;n.source!==t&&(n.source=t,n.width=e,n.height=i),n.update()}else this.videoTexture=this.scene.sys.textures.create(this._key,t,e,i),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,e,i),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,e,i)},getVideoKey:function(){return this._cacheKey},seekTo:function(t){var e=this.video;if(e){var i=e.duration;if(i!==1/0&&!isNaN(i)){var n=i*t;this.setCurrentTime(n)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e=this.video;if(e){if("string"==typeof t){var i=t[0],n=parseFloat(t.substr(1));"+"===i?t=e.currentTime+n:"-"===i&&(t=e.currentTime-n)}e.currentTime=t,this._lastUpdate=t}return this},isSeeking:function(){return this._isSeeking},seekingHandler:function(){this._isSeeking=!0,this.emit(o.VIDEO_SEEKING,this)},seekedHandler:function(){this._isSeeking=!1,this.emit(o.VIDEO_SEEKED,this),this.video&&this.updateTexture()},getProgress:function(){var t=this.video;if(t){var e=t.currentTime,i=t.duration;if(i!==1/0&&!isNaN(i))return e/i}return 0},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){void 0===t&&(t=!0),this._codeMuted=t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},globalPause:function(){this._systemPaused=!0,this.video&&this.video.pause()},globalResume:function(){this._systemPaused=!1,this.video&&!this._codePaused&&this.video.play()},setPaused:function(t){void 0===t&&(t=!0);var e=this.video;return this._codePaused=t,e&&(t?e.paused||e.pause():t||e.paused&&!this._systemPaused&&e.play()),this},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(t){return void 0===t&&(t=1),this.video&&(this.video.volume=s(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&this.scene.sys.textures.renameTexture(this._key,t),this._key=t,this.flipY=e,this.videoTextureSource&&this.videoTextureSource.setFlipY(e),this.videoTexture},stop:function(){var t=this.video;if(t){var e=this._callbacks;for(var i in e)t.removeEventListener(i,e[i],!0);t.pause()}return this._retryID&&window.clearTimeout(this._retryID),this.emit(o.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("autoplay"),t.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(),this.removeVideoElementOnDestroy&&this.removeVideoElement();var t=this.scene.sys.game.events;t.off(a.PAUSE,this.globalPause,this),t.off(a.RESUME,this.globalResume,this);var e=this.scene.sys.sound;e&&e.off(l.GLOBAL_MUTE,this.globalMute,this),this._retryID&&window.clearTimeout(this._retryID)}});t.exports=f},function(t,e,i){var n=i(0),s=i(198),r=i(414),o=i(46),a=new n({initialize:function(t){this.type=o.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return s(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],"string"==typeof t&&(t=t.split(" ")),!Array.isArray(t))return this;for(var e,i=Number.MAX_VALUE,n=0;no||r>a)return!1;if(s<=i||r<=n)return!0;var h=s-i,l=r-n;return h*h+l*l<=t.radius*t.radius}},function(t,e,i){var n=i(4),s=i(204);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a=t.x1,h=t.y1,l=t.x2,u=t.y2,c=e.x,d=e.y,f=e.radius,p=l-a,g=u-h,v=a-c,m=h-d,y=p*p+g*g,x=2*(p*v+g*m),T=x*x-4*y*(v*v+m*m-f*f);if(0===T){var w=-x/(2*y);r=a+w*p,o=h+w*g,w>=0&&w<=1&&i.push(new n(r,o))}else if(T>0){var E=(-x-Math.sqrt(T))/(2*y);r=a+E*p,o=h+E*g,E>=0&&E<=1&&i.push(new n(r,o));var _=(-x+Math.sqrt(T))/(2*y);r=a+_*p,o=h+_*g,_>=0&&_<=1&&i.push(new n(r,o))}}return i}},function(t,e,i){var n=i(55),s=new(i(4));t.exports=function(t,e,i){if(void 0===i&&(i=s),n(e,t.x1,t.y1))return i.x=t.x1,i.y=t.y1,!0;if(n(e,t.x2,t.y2))return i.x=t.x2,i.y=t.y2,!0;var r=t.x2-t.x1,o=t.y2-t.y1,a=e.x-t.x1,h=e.y-t.y1,l=r*r+o*o,u=r,c=o;if(l>0){var d=(a*r+h*o)/l;u*=d,c*=d}return i.x=t.x1+u,i.y=t.y1+c,u*u+c*c<=l&&u*r+c*o>=0&&n(e,i.x,i.y)}},function(t,e,i){var n=i(4),s=i(83),r=i(427);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e))for(var o=e.getLineA(),a=e.getLineB(),h=e.getLineC(),l=e.getLineD(),u=[new n,new n,new n,new n],c=[s(o,t,u[0]),s(a,t,u[1]),s(h,t,u[2]),s(l,t,u[3])],d=0;d<4;d++)c[d]&&i.push(u[d]);return i}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=!1),void 0===n&&(n=[]);for(var s,r,o,a,h,l,u=t.x3-t.x1,c=t.y3-t.y1,d=t.x2-t.x1,f=t.y2-t.y1,p=u*u+c*c,g=u*d+c*f,v=d*d+f*f,m=p*v-g*g,y=0===m?0:1/m,x=t.x1,T=t.y1,w=0;w=0&&r>=0&&s+r<1&&(n.push({x:e[w].x,y:e[w].y}),i)));w++);return n}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,t}},function(t,e){t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,o=t.x3-e,a=t.y3-i,t.x3=o*s-a*r+e,t.y3=o*r+a*s+i,t}},function(t,e,i){t.exports={BUTTON_DOWN:i(1197),BUTTON_UP:i(1198),CONNECTED:i(1199),DISCONNECTED:i(1200),GAMEPAD_BUTTON_DOWN:i(1201),GAMEPAD_BUTTON_UP:i(1202)}},function(t,e,i){var n=i(17),s=i(134);t.exports=function(t,e){var i=void 0===t?s():n({},t);if(e)for(var r in e)void 0!==e[r]&&(i[r]=e[r]);return i}},function(t,e,i){var n=i(0),s=i(19),r=i(20),o=i(8),a=i(2),h=i(7),l=i(361),u=new n({Extends:r,initialize:function(t,e,i,n){var s="xml";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),n=a(o,"xhrSettings"),s=a(o,"extension",s)}var l={type:"xml",cache:t.cacheManager.xml,extension:s,responseType:"text",key:e,url:i,xhrSettings:n};r.call(this,t,l)},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=l(this.xhrLoader.responseText),this.data?this.onProcessComplete():(console.warn("Invalid XMLFile: "+this.key),this.onProcessError())}});o.register("xml",function(t,e,i){if(Array.isArray(t))for(var n=0;n0&&(s.totalDuration+=s.t2*s.repeat),s.totalDuration>t&&(t=s.totalDuration),s.delay0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay,this.startDelay=e},init:function(){if(this.paused&&!this.parentIsTimeline)return this.state=h.PENDING_ADD,this._pausedState=h.INIT,!1;for(var t=this.data,e=this.totalTargets,i=0;i0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=h.LOOP_DELAY):(this.state=h.ACTIVE,this.dispatchTweenEvent(r.TWEEN_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=h.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=h.PENDING_REMOVE,this.dispatchTweenEvent(r.TWEEN_COMPLETE,this.callbacks.onComplete))},pause:function(){return this.state===h.PAUSED?this:(this.paused=!0,this._pausedState=this.state,this.state=h.PAUSED,this)},play:function(t){void 0===t&&(t=!1);var e=this.state;return e!==h.INIT||this.parentIsTimeline?e===h.ACTIVE||e===h.PENDING_ADD&&this._pausedState===h.PENDING_ADD?this:this.parentIsTimeline||e!==h.PENDING_REMOVE&&e!==h.REMOVED?(this.parentIsTimeline?(this.resetTweenData(t),0===this.calculatedOffset?this.state=h.ACTIVE:(this.countdown=this.calculatedOffset,this.state=h.OFFSET_DELAY)):this.paused?(this.paused=!1,this.makeActive()):(this.resetTweenData(t),this.state=h.ACTIVE,this.makeActive()),this):(this.seek(0),this.parent.makeActive(this),this):(this.resetTweenData(!1),this.state=h.ACTIVE,this)},resetTweenData:function(t){for(var e=this.data,i=this.totalData,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY),r.getActiveValue&&(o[a]=r.getActiveValue(r.target,r.key,r.start))}},resume:function(){return this.state===h.PAUSED?(this.paused=!1,this.state=this._pausedState):this.play(),this},seek:function(t,e){if(void 0===e&&(e=16.6),this.totalDuration>=36e5)return console.warn("Tween.seek duration too long"),this;this.state===h.REMOVED&&this.makeActive(),this.elapsed=0,this.progress=0,this.totalElapsed=0,this.totalProgress=0;for(var i=this.data,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY)}this.calcDuration();var c=!1;this.state===h.PAUSED&&(c=!0,this.state=h.ACTIVE),this.isSeeking=!0;do{this.update(0,e)}while(this.totalProgress0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.start=e.getStartValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},setStateFromStart:function(t,e,i){return e.repeatCounter>0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},updateTweenData:function(t,e,i){var n=e.target;switch(e.state){case h.PLAYING_FORWARD:case h.PLAYING_BACKWARD:if(!n){e.state=h.COMPLETE;break}var s=e.elapsed,o=e.duration,a=0;(s+=i)>o&&(a=s-o,s=o);var l=e.state===h.PLAYING_FORWARD,u=s/o;if(e.elapsed=s,e.progress=u,e.previous=e.current,1===u)l?(e.current=e.end,n[e.key]=e.end,e.hold>0?(e.elapsed=e.hold-a,e.state=h.HOLD_DELAY):e.state=this.setStateFromEnd(t,e,a)):(e.current=e.start,n[e.key]=e.start,e.state=this.setStateFromStart(t,e,a));else{var c=l?e.ease(u):e.ease(1-u);e.current=e.start+(e.end-e.start)*c,n[e.key]=e.current}this.dispatchTweenDataEvent(r.TWEEN_UPDATE,t.callbacks.onUpdate,e);break;case h.DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PENDING_RENDER);break;case h.REPEAT_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PLAYING_FORWARD,this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e));break;case h.HOLD_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.state=this.setStateFromEnd(t,e,Math.abs(e.elapsed)));break;case h.PENDING_RENDER:n?(e.start=e.getStartValue(n,e.key,n[e.key],e.index,t.totalTargets,t),e.end=e.getEndValue(n,e.key,e.start,e.index,t.totalTargets,t),e.current=e.start,n[e.key]=e.start,e.state=h.PLAYING_FORWARD):e.state=h.COMPLETE}return e.state!==h.COMPLETE}});u.TYPES=["onActive","onComplete","onLoop","onRepeat","onStart","onUpdate","onYoyo"],a.register("tween",function(t){return this.scene.sys.tweens.add(t)}),o.register("tween",function(t){return this.scene.sys.tweens.create(t)}),t.exports=u},function(t,e,i){t.exports={TIMELINE_COMPLETE:i(1350),TIMELINE_LOOP:i(1351),TIMELINE_PAUSE:i(1352),TIMELINE_RESUME:i(1353),TIMELINE_START:i(1354),TIMELINE_UPDATE:i(1355),TWEEN_ACTIVE:i(1356),TWEEN_COMPLETE:i(1357),TWEEN_LOOP:i(1358),TWEEN_REPEAT:i(1359),TWEEN_START:i(1360),TWEEN_UPDATE:i(1361),TWEEN_YOYO:i(1362)}},function(t,e){t.exports=function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p){return{target:t,index:e,key:i,getActiveValue:r,getEndValue:n,getStartValue:s,ease:o,duration:0,totalDuration:0,delay:0,yoyo:l,hold:0,repeat:0,repeatDelay:0,flipX:f,flipY:p,progress:0,elapsed:0,repeatCounter:0,start:0,previous:0,current:0,end:0,t1:0,t2:0,gen:{delay:a,duration:h,hold:u,repeat:c,repeatDelay:d},state:0}}},function(t,e){t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-Math.PI,Math.PI)}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-180,180)}},function(t,e,i){var n=i(0),s=i(64),r=i(2),o=i(235),a=i(337),h=i(338),l=i(30),u=i(9),c=i(142),d=new n({Extends:c,Mixins:[o],initialize:function(t){var e=t.renderer.config;c.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:r(t,"topology",t.renderer.gl.TRIANGLES),vertShader:r(t,"vertShader",h),fragShader:r(t,"fragShader",a),vertexCapacity:r(t,"vertexCapacity",6*e.batchSize),vertexSize:r(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.tintEffect=2,this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[],this.mvpInit()},onBind:function(){return c.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return c.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this},batchSprite:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix1,s=this._tempMatrix2,r=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,l=o.v0,c=o.u1,d=o.v1,f=o.x,p=o.y,g=o.cutWidth,v=o.cutHeight,m=o.customPivot,y=t.displayOriginX,x=t.displayOriginY,T=-y+f,w=-x+p;if(t.isCropped){var E=t._crop;E.flipX===t.flipX&&E.flipY===t.flipY||o.updateCropUVs(E,t.flipX,t.flipY),h=E.u0,l=E.v0,c=E.u1,d=E.v1,g=E.width,v=E.height,T=-y+(f=E.x),w=-x+(p=E.y)}var _=1,b=1;t.flipX&&(m||(T+=-o.realWidth+2*y),_=-1),(t.flipY||o.source.isGLTexture&&!a.flipY)&&(m||(w+=-o.realHeight+2*x),b=-1),s.applyITRS(t.x,t.y,t.rotation,t.scaleX*_,t.scaleY*b),n.copyFrom(e.matrix),i?(n.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),s.e=t.x,s.f=t.y,n.multiply(s,r)):(s.e-=e.scrollX*t.scrollFactorX,s.f-=e.scrollY*t.scrollFactorY,n.multiply(s,r));var A=T+g,S=w+v,C=r.getX(T,w),M=r.getY(T,w),O=r.getX(T,S),P=r.getY(T,S),R=r.getX(A,S),L=r.getY(A,S),D=r.getX(A,w),F=r.getY(A,w),k=u.getTintAppendFloatAlpha(t._tintTL,e.alpha*t._alphaTL),I=u.getTintAppendFloatAlpha(t._tintTR,e.alpha*t._alphaTR),B=u.getTintAppendFloatAlpha(t._tintBL,e.alpha*t._alphaBL),Y=u.getTintAppendFloatAlpha(t._tintBR,e.alpha*t._alphaBR);e.roundPixels&&(C=Math.round(C),M=Math.round(M),O=Math.round(O),P=Math.round(P),R=Math.round(R),L=Math.round(L),D=Math.round(D),F=Math.round(F)),this.setTexture2D(a,0);var N=t._isTinted&&t.tintFill;this.batchQuad(C,M,O,P,R,L,D,F,h,l,c,d,k,I,B,Y,N,a,0)},batchQuad:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y){var x=!1;this.vertexCount+6>this.vertexCapacity&&(this.flush(),x=!0,this.setTexture2D(m,y));var T=this.vertexViewF32,w=this.vertexViewU32,E=this.vertexCount*this.vertexComponentCount-1;return T[++E]=t,T[++E]=e,T[++E]=h,T[++E]=l,T[++E]=v,w[++E]=d,T[++E]=i,T[++E]=n,T[++E]=h,T[++E]=c,T[++E]=v,w[++E]=p,T[++E]=s,T[++E]=r,T[++E]=u,T[++E]=c,T[++E]=v,w[++E]=g,T[++E]=t,T[++E]=e,T[++E]=h,T[++E]=l,T[++E]=v,w[++E]=d,T[++E]=s,T[++E]=r,T[++E]=u,T[++E]=c,T[++E]=v,w[++E]=g,T[++E]=o,T[++E]=a,T[++E]=u,T[++E]=l,T[++E]=v,w[++E]=f,this.vertexCount+=6,x},batchTri:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g){var v=!1;this.vertexCount+3>this.vertexCapacity&&(this.flush(),this.setTexture2D(p,g),v=!0);var m=this.vertexViewF32,y=this.vertexViewU32,x=this.vertexCount*this.vertexComponentCount-1;return m[++x]=t,m[++x]=e,m[++x]=o,m[++x]=a,m[++x]=f,y[++x]=u,m[++x]=i,m[++x]=n,m[++x]=o,m[++x]=l,m[++x]=f,y[++x]=c,m[++x]=s,m[++x]=r,m[++x]=h,m[++x]=l,m[++x]=f,y[++x]=d,this.vertexCount+=3,v},batchTexture:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y,x,T,w,E,_,b,A,S,C,M,O,P){this.renderer.setPipeline(this,t);var R=this._tempMatrix1,L=this._tempMatrix2,D=this._tempMatrix3,F=m/i+S,k=y/n+C,I=(m+x)/i+S,B=(y+T)/n+C,Y=o,N=a,X=-g,z=-v;if(t.isCropped){var U=t._crop;Y=U.width,N=U.height,o=U.width,a=U.height;var G=m=U.x,W=y=U.y;c&&(G=x-U.x-U.width),d&&!e.isRenderTexture&&(W=T-U.y-U.height),F=G/i+S,k=W/n+C,I=(G+U.width)/i+S,B=(W+U.height)/n+C,X=-g+m,z=-v+y}d^=!P&&e.isRenderTexture?1:0,c&&(Y*=-1,X+=o),d&&(N*=-1,z+=a);var V=X+Y,H=z+N;L.applyITRS(s,r,u,h,l),R.copyFrom(M.matrix),O?(R.multiplyWithOffset(O,-M.scrollX*f,-M.scrollY*p),L.e=s,L.f=r,R.multiply(L,D)):(L.e-=M.scrollX*f,L.f-=M.scrollY*p,R.multiply(L,D));var j=D.getX(X,z),K=D.getY(X,z),q=D.getX(X,H),J=D.getY(X,H),Z=D.getX(V,H),Q=D.getY(V,H),$=D.getX(V,z),tt=D.getY(V,z);M.roundPixels&&(j=Math.round(j),K=Math.round(K),q=Math.round(q),J=Math.round(J),Z=Math.round(Z),Q=Math.round(Q),$=Math.round($),tt=Math.round(tt)),this.setTexture2D(e,0),this.batchQuad(j,K,q,J,Z,Q,$,tt,F,k,I,B,w,E,_,b,A,e,0)},batchTextureFrame:function(t,e,i,n,s,r,o){this.renderer.setPipeline(this);var a=this._tempMatrix1.copyFrom(r),h=this._tempMatrix2,l=e+t.width,c=i+t.height;o?a.multiply(o,h):h=a;var d=h.getX(e,i),f=h.getY(e,i),p=h.getX(e,c),g=h.getY(e,c),v=h.getX(l,c),m=h.getY(l,c),y=h.getX(l,i),x=h.getY(l,i);this.setTexture2D(t.glTexture,0),n=u.getTintAppendFloatAlpha(n,s),this.batchQuad(d,f,p,g,v,m,y,x,t.u0,t.v0,t.u1,t.v1,n,n,n,n,0,t.glTexture,0)},drawFillRect:function(t,e,i,n,s,r){var o=t+i,a=e+n;this.setTexture2D();var h=u.getTintAppendFloatAlphaAndSwap(s,r);this.batchQuad(t,e,t,a,o,a,o,e,0,0,1,1,h,h,h,h,2)},batchFillRect:function(t,e,i,n,s,r){this.renderer.setPipeline(this);var o=this._tempMatrix3;r&&r.multiply(s,o);var a=t+i,h=e+n,l=o.getX(t,e),u=o.getY(t,e),c=o.getX(t,h),d=o.getY(t,h),f=o.getX(a,h),p=o.getY(a,h),g=o.getX(a,e),v=o.getY(a,e),m=this.currentFrame,y=m.u0,x=m.v0,T=m.u1,w=m.v1;this.batchQuad(l,u,c,d,f,p,g,v,y,x,T,w,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.fillTint.BR,this.tintEffect)},batchFillTriangle:function(t,e,i,n,s,r,o,a){this.renderer.setPipeline(this);var h=this._tempMatrix3;a&&a.multiply(o,h);var l=h.getX(t,e),u=h.getY(t,e),c=h.getX(i,n),d=h.getY(i,n),f=h.getX(s,r),p=h.getY(s,r),g=this.currentFrame,v=g.u0,m=g.v0,y=g.u1,x=g.v1;this.batchTri(l,u,c,d,f,p,v,m,y,x,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.tintEffect)},batchStrokeTriangle:function(t,e,i,n,s,r,o,a,h){var l=this.tempTriangle;l[0].x=t,l[0].y=e,l[0].width=o,l[1].x=i,l[1].y=n,l[1].width=o,l[2].x=s,l[2].y=r,l[2].width=o,l[3].x=t,l[3].y=e,l[3].width=o,this.batchStrokePath(l,o,!1,a,h)},batchFillPath:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix3;i&&i.multiply(e,n);for(var r,o,a=t.length,h=this.polygonCache,l=this.fillTint.TL,u=this.fillTint.TR,c=this.fillTint.BL,d=this.tintEffect,f=0;f0&&H[4]?this.batchQuad(D,F,O,P,H[0],H[1],H[2],H[3],U,G,W,V,B,Y,N,X,I):(j[0]=D,j[1]=F,j[2]=O,j[3]=P,j[4]=1),h&&j[4]?this.batchQuad(C,M,R,L,j[0],j[1],j[2],j[3],U,G,W,V,B,Y,N,X,I):(H[0]=C,H[1]=M,H[2]=R,H[3]=L,H[4]=1)}}});t.exports=d},function(t,e){var i={modelMatrixDirty:!1,viewMatrixDirty:!1,projectionMatrixDirty:!1,modelMatrix:null,viewMatrix:null,projectionMatrix:null,mvpInit:function(){return this.modelMatrixDirty=!0,this.viewMatrixDirty=!0,this.projectionMatrixDirty=!0,this.modelMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},mvpUpdate:function(){var t=this.program;return this.modelMatrixDirty&&(this.renderer.setMatrix4(t,"uModelMatrix",!1,this.modelMatrix),this.modelMatrixDirty=!1),this.viewMatrixDirty&&(this.renderer.setMatrix4(t,"uViewMatrix",!1,this.viewMatrix),this.viewMatrixDirty=!1),this.projectionMatrixDirty&&(this.renderer.setMatrix4(t,"uProjectionMatrix",!1,this.projectionMatrix),this.projectionMatrixDirty=!1),this},modelIdentity:function(){var t=this.modelMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.modelMatrixDirty=!0,this},modelScale:function(t,e,i){var n=this.modelMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.modelMatrixDirty=!0,this},modelTranslate:function(t,e,i){var n=this.modelMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.modelMatrixDirty=!0,this},modelRotateX:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.modelMatrixDirty=!0,this},modelRotateY:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.modelMatrixDirty=!0,this},modelRotateZ:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.modelMatrixDirty=!0,this},viewIdentity:function(){var t=this.viewMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.viewMatrixDirty=!0,this},viewScale:function(t,e,i){var n=this.viewMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.viewMatrixDirty=!0,this},viewTranslate:function(t,e,i){var n=this.viewMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.viewMatrixDirty=!0,this},viewRotateX:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.viewMatrixDirty=!0,this},viewRotateY:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.viewMatrixDirty=!0,this},viewRotateZ:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.viewMatrixDirty=!0,this},viewLoad2D:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=0,e[4]=t[2],e[5]=t[3],e[6]=0,e[7]=0,e[8]=t[4],e[9]=t[5],e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this.viewMatrixDirty=!0,this},viewLoad:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this.viewMatrixDirty=!0,this},projIdentity:function(){var t=this.projectionMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.projectionMatrixDirty=!0,this},projOrtho:function(t,e,i,n,s,r){var o=this.projectionMatrix,a=1/(t-e),h=1/(i-n),l=1/(s-r);return o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this.projectionMatrixDirty=!0,this},projPersp:function(t,e,i,n){var s=this.projectionMatrix,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this.projectionMatrixDirty=!0,this}};t.exports=i},,,function(t,e,i){t.exports={AlignTo:i(526),Angle:i(527),Call:i(528),GetFirst:i(529),GetLast:i(530),GridAlign:i(531),IncAlpha:i(592),IncX:i(593),IncXY:i(594),IncY:i(595),PlaceOnCircle:i(596),PlaceOnEllipse:i(597),PlaceOnLine:i(598),PlaceOnRectangle:i(599),PlaceOnTriangle:i(600),PlayAnimation:i(601),PropertyValueInc:i(34),PropertyValueSet:i(25),RandomCircle:i(602),RandomEllipse:i(603),RandomLine:i(604),RandomRectangle:i(605),RandomTriangle:i(606),Rotate:i(607),RotateAround:i(608),RotateAroundDistance:i(609),ScaleX:i(610),ScaleXY:i(611),ScaleY:i(612),SetAlpha:i(613),SetBlendMode:i(614),SetDepth:i(615),SetHitArea:i(616),SetOrigin:i(617),SetRotation:i(618),SetScale:i(619),SetScaleX:i(620),SetScaleY:i(621),SetScrollFactor:i(622),SetScrollFactorX:i(623),SetScrollFactorY:i(624),SetTint:i(625),SetVisible:i(626),SetX:i(627),SetXY:i(628),SetY:i(629),ShiftPosition:i(630),Shuffle:i(631),SmootherStep:i(632),SmoothStep:i(633),Spread:i(634),ToggleVisible:i(635),WrapInRectangle:i(636)}},function(t,e,i){var n=i(103),s=[];s[n.BOTTOM_CENTER]=i(240),s[n.BOTTOM_LEFT]=i(241),s[n.BOTTOM_RIGHT]=i(242),s[n.LEFT_BOTTOM]=i(243),s[n.LEFT_CENTER]=i(244),s[n.LEFT_TOP]=i(245),s[n.RIGHT_BOTTOM]=i(246),s[n.RIGHT_CENTER]=i(247),s[n.RIGHT_TOP]=i(248),s[n.TOP_CENTER]=i(249),s[n.TOP_LEFT]=i(250),s[n.TOP_RIGHT]=i(251);t.exports=function(t,e,i,n,r){return s[i](t,e,n,r)}},function(t,e,i){var n=i(38),s=i(75),r=i(76),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)+i),o(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(40),r=i(41),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)-i),o(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(42),r=i(43),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,s(e)+i),o(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(40),r=i(44),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(77),s=i(40),r=i(78),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(40),s=i(45),r=i(43),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)-i),o(t,s(e)-a),t}},function(t,e,i){var n=i(38),s=i(42),r=i(44),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(77),s=i(42),r=i(78),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(42),s=i(45),r=i(41),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(75),s=i(45),r=i(44),o=i(76);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)+i),r(t,s(e)-a),t}},function(t,e,i){var n=i(40),s=i(45),r=i(44),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)-i),r(t,s(e)-a),t}},function(t,e,i){var n=i(42),s=i(45),r=i(44),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,n(e)+i),r(t,s(e)-a),t}},function(t,e,i){var n=i(103),s=[];s[n.BOTTOM_CENTER]=i(253),s[n.BOTTOM_LEFT]=i(254),s[n.BOTTOM_RIGHT]=i(255),s[n.CENTER]=i(256),s[n.LEFT_CENTER]=i(258),s[n.RIGHT_CENTER]=i(259),s[n.TOP_CENTER]=i(260),s[n.TOP_LEFT]=i(261),s[n.TOP_RIGHT]=i(262),s[n.LEFT_BOTTOM]=s[n.BOTTOM_LEFT],s[n.LEFT_TOP]=s[n.TOP_LEFT],s[n.RIGHT_BOTTOM]=s[n.BOTTOM_RIGHT],s[n.RIGHT_TOP]=s[n.TOP_RIGHT];t.exports=function(t,e,i,n,r){return s[i](t,e,n,r)}},function(t,e,i){var n=i(38),s=i(75),r=i(44),o=i(76);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(40),r=i(44),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(38),s=i(42),r=i(44),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(257),s=i(75),r=i(77);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),n(t,s(e)+i,r(e)+o),t}},function(t,e,i){var n=i(76),s=i(78);t.exports=function(t,e,i){return n(t,e),s(t,i)}},function(t,e,i){var n=i(77),s=i(40),r=i(78),o=i(41);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),r(t,n(e)+a),t}},function(t,e,i){var n=i(77),s=i(42),r=i(78),o=i(43);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),r(t,n(e)+a),t}},function(t,e,i){var n=i(75),s=i(45),r=i(76),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(40),s=i(45),r=i(41),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)-i),o(t,s(e)-a),t}},function(t,e,i){var n=i(42),s=i(45),r=i(43),o=i(39);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),r(t,n(e)+i),o(t,s(e)-a),t}},function(t,e,i){var n=i(144),s=i(86),r=i(15),o=i(4);t.exports=function(t,e,i){void 0===i&&(i=new o);var a=s(e,0,r.PI2);return n(t,a,i)}},function(t,e,i){var n=i(265),s=i(144),r=i(86),o=i(15);t.exports=function(t,e,i,a){void 0===a&&(a=[]),e||(e=n(t)/i);for(var h=0;he.length&&(r=e.length),i?(n=e[r-1][i],(s=e[r][i])-t<=t-n?e[r]:e[r-1]):(n=e[r-1],(s=e[r])-t<=t-n?s:n)}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=n,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration}},destroy:function(){this.frame=void 0}});t.exports=n},function(t,e,i){var n=i(52),s={_blendMode:n.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=n[t]),(t|=0)>=-1&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=s},function(t,e){var i={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.scene.sys.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}};t.exports=i},function(t,e,i){var n=i(147),s=i(109);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=s(t)/i);for(var o=0;o=t.right&&(h=1,a+=o-t.right,o=t.right);break;case 1:(a+=e)>=t.bottom&&(h=2,o-=a-t.bottom,a=t.bottom);break;case 2:(o-=e)<=t.left&&(h=3,a-=t.left-o,o=t.left);break;case 3:(a-=e)<=t.top&&(h=0,a=t.top)}return r}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,n=0;n-h&&(c-=h,n+=l),fd.right&&(f=u(f,f+(g-d.right),this.lerp.x)),vd.bottom&&(p=u(p,p+(v-d.bottom),this.lerp.y))):(f=u(f,g-h,this.lerp.x),p=u(p,v-l,this.lerp.y))}this.useBounds&&(f=this.clampX(f),p=this.clampY(p)),this.roundPixels&&(h=Math.round(h),l=Math.round(l)),this.scrollX=f,this.scrollY=p;var m=f+n,y=p+s;this.midPoint.set(m,y);var x=e/o,T=i/o;this.worldView.setTo(m-x/2,y-T/2,x,T),a.applyITRS(this.x+h,this.y+l,this.rotation,o,o),a.translate(-h,-l),this.shakeEffect.preRender()},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.followOffset.set(t,e),this},startFollow:function(t,e,i,n,s,r){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===n&&(n=i),void 0===s&&(s=0),void 0===r&&(r=s),this._follow=t,this.roundPixels=e,i=o(i,0,1),n=o(n,0,1),this.lerp.set(i,n),this.followOffset.set(s,r);var a=this.width/2,h=this.height/2,l=t.x-s,u=t.y-r;return this.midPoint.set(l,u),this.scrollX=l-a,this.scrollY=u-h,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.visible&&(this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.clearRenderToTexture(),this.resetFX(),n.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=f},function(t,e,i){var n=i(32);t.exports=function(t){var e=new n;t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var i=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(i){var s=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16);e.setTo(s,r,o)}return e}},function(t,e){t.exports=function(t,e,i,n){return n<<24|t<<16|e<<8|i}},function(t,e){t.exports=function(t,e,i,n){void 0===n&&(n={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var s=Math.min(t,e,i),r=Math.max(t,e,i),o=r-s,a=0,h=0===r?0:o/r,l=r;return r!==s&&(r===t?a=(e-i)/o+(e16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},function(t,e,i){var n=i(32);t.exports=function(t){return new n(t.r,t.g,t.b,t.a)}},function(t,e,i){var n=i(32);t.exports=function(t){var e=new n,i=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t.toLowerCase());if(i){var s=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10),a=void 0!==i[4]?parseFloat(i[4]):1;e.setTo(s,r,o,255*a)}return e}},function(t,e,i){t.exports={Fade:i(661),Flash:i(662),Pan:i(663),Shake:i(696),Zoom:i(697)}},function(t,e,i){t.exports={In:i(664),Out:i(665),InOut:i(666)}},function(t,e,i){t.exports={In:i(667),Out:i(668),InOut:i(669)}},function(t,e,i){t.exports={In:i(670),Out:i(671),InOut:i(672)}},function(t,e,i){t.exports={In:i(673),Out:i(674),InOut:i(675)}},function(t,e,i){t.exports={In:i(676),Out:i(677),InOut:i(678)}},function(t,e,i){t.exports={In:i(679),Out:i(680),InOut:i(681)}},function(t,e,i){t.exports=i(682)},function(t,e,i){t.exports={In:i(683),Out:i(684),InOut:i(685)}},function(t,e,i){t.exports={In:i(686),Out:i(687),InOut:i(688)}},function(t,e,i){t.exports={In:i(689),Out:i(690),InOut:i(691)}},function(t,e,i){t.exports={In:i(692),Out:i(693),InOut:i(694)}},function(t,e,i){t.exports=i(695)},function(t,e,i){var n=i(0),s=i(29),r=i(312),o=i(2),a=i(6),h=i(7),l=i(166),u=i(1),c=i(171),d=i(159),f=new n({initialize:function(t){void 0===t&&(t={});this.width=a(t,"width",1024),this.height=a(t,"height",768),this.zoom=a(t,"zoom",1),this.resolution=a(t,"resolution",1),this.parent=a(t,"parent",void 0),this.scaleMode=a(t,"scaleMode",0),this.expandParent=a(t,"expandParent",!0),this.autoRound=a(t,"autoRound",!1),this.autoCenter=a(t,"autoCenter",0),this.resizeInterval=a(t,"resizeInterval",500),this.fullscreenTarget=a(t,"fullscreenTarget",null),this.minWidth=a(t,"minWidth",0),this.maxWidth=a(t,"maxWidth",0),this.minHeight=a(t,"minHeight",0),this.maxHeight=a(t,"maxHeight",0);var e=a(t,"scale",null);e&&(this.width=a(e,"width",this.width),this.height=a(e,"height",this.height),this.zoom=a(e,"zoom",this.zoom),this.resolution=a(e,"resolution",this.resolution),this.parent=a(e,"parent",this.parent),this.scaleMode=a(e,"mode",this.scaleMode),this.expandParent=a(e,"expandParent",this.expandParent),this.autoRound=a(e,"autoRound",this.autoRound),this.autoCenter=a(e,"autoCenter",this.autoCenter),this.resizeInterval=a(e,"resizeInterval",this.resizeInterval),this.fullscreenTarget=a(e,"fullscreenTarget",this.fullscreenTarget),this.minWidth=a(e,"min.width",this.minWidth),this.maxWidth=a(e,"max.width",this.maxWidth),this.minHeight=a(e,"min.height",this.minHeight),this.maxHeight=a(e,"max.height",this.maxHeight)),this.renderType=a(t,"type",s.AUTO),this.canvas=a(t,"canvas",null),this.context=a(t,"context",null),this.canvasStyle=a(t,"canvasStyle",null),this.customEnvironment=a(t,"customEnvironment",!1),this.sceneConfig=a(t,"scene",null),this.seed=a(t,"seed",[(Date.now()*Math.random()).toString()]),l.RND=new l.RandomDataGenerator(this.seed),this.gameTitle=a(t,"title",""),this.gameURL=a(t,"url","https://phaser.io"),this.gameVersion=a(t,"version",""),this.autoFocus=a(t,"autoFocus",!0),this.domCreateContainer=a(t,"dom.createContainer",!1),this.domBehindCanvas=a(t,"dom.behindCanvas",!1),this.inputKeyboard=a(t,"input.keyboard",!0),this.inputKeyboardEventTarget=a(t,"input.keyboard.target",window),this.inputKeyboardCapture=a(t,"input.keyboard.capture",[]),this.inputMouse=a(t,"input.mouse",!0),this.inputMouseEventTarget=a(t,"input.mouse.target",null),this.inputMouseCapture=a(t,"input.mouse.capture",!0),this.inputTouch=a(t,"input.touch",r.input.touch),this.inputTouchEventTarget=a(t,"input.touch.target",null),this.inputTouchCapture=a(t,"input.touch.capture",!0),this.inputActivePointers=a(t,"input.activePointers",1),this.inputSmoothFactor=a(t,"input.smoothFactor",0),this.inputWindowEvents=a(t,"input.windowEvents",!0),this.inputGamepad=a(t,"input.gamepad",!1),this.inputGamepadEventTarget=a(t,"input.gamepad.target",window),this.disableContextMenu=a(t,"disableContextMenu",!1),this.audio=a(t,"audio"),this.hideBanner=!1===a(t,"banner",null),this.hidePhaser=a(t,"banner.hidePhaser",!1),this.bannerTextColor=a(t,"banner.text","#ffffff"),this.bannerBackgroundColor=a(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=a(t,"fps",null);var i=a(t,"render",t);this.antialias=a(i,"antialias",!0),this.antialiasGL=a(i,"antialiasGL",!0),this.mipmapFilter=a(i,"mipmapFilter","LINEAR"),this.desynchronized=a(i,"desynchronized",!1),this.roundPixels=a(i,"roundPixels",!1),this.pixelArt=a(i,"pixelArt",1!==this.zoom),this.pixelArt&&(this.antialias=!1,this.roundPixels=!0),this.transparent=a(i,"transparent",!1),this.clearBeforeRender=a(i,"clearBeforeRender",!0),this.premultipliedAlpha=a(i,"premultipliedAlpha",!0),this.failIfMajorPerformanceCaveat=a(i,"failIfMajorPerformanceCaveat",!1),this.powerPreference=a(i,"powerPreference","default"),this.batchSize=a(i,"batchSize",2e3),this.maxLights=a(i,"maxLights",10);var n=a(t,"backgroundColor",0);this.backgroundColor=d(n),0===n&&this.transparent&&(this.backgroundColor.alpha=0),this.preBoot=a(t,"callbacks.preBoot",u),this.postBoot=a(t,"callbacks.postBoot",u),this.physics=a(t,"physics",{}),this.defaultPhysicsSystem=a(this.physics,"default",!1),this.loaderBaseURL=a(t,"loader.baseURL",""),this.loaderPath=a(t,"loader.path",""),this.loaderMaxParallelDownloads=a(t,"loader.maxParallelDownloads",32),this.loaderCrossOrigin=a(t,"loader.crossOrigin",void 0),this.loaderResponseType=a(t,"loader.responseType",""),this.loaderAsync=a(t,"loader.async",!0),this.loaderUser=a(t,"loader.user",""),this.loaderPassword=a(t,"loader.password",""),this.loaderTimeout=a(t,"loader.timeout",0),this.loaderWithCredentials=a(t,"loader.withCredentials",!1),this.installGlobalPlugins=[],this.installScenePlugins=[];var f=a(t,"plugins",null),p=c.DefaultScene;f&&(Array.isArray(f)?this.defaultPlugins=f:h(f)&&(this.installGlobalPlugins=o(f,"global",[]),this.installScenePlugins=o(f,"scene",[]),Array.isArray(f.default)?p=f.default:Array.isArray(f.defaultMerge)&&(p=p.concat(f.defaultMerge)))),this.defaultPlugins=p;var g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=a(t,"images.default",g+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=a(t,"images.missing",g+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),window&&(window.FORCE_WEBGL?this.renderType=s.WEBGL:window.FORCE_CANVAS&&(this.renderType=s.CANVAS))}});t.exports=f},function(t,e,i){t.exports={os:i(113),browser:i(114),features:i(165),input:i(726),audio:i(727),video:i(728),fullscreen:i(729),canvasFeatures:i(313)}},function(t,e,i){var n,s,r,o=i(26),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=(void 0!==document&&(a.supportNewBlendModes=(n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",s="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(r=new Image).onload=function(){var t=new Image;t.onload=function(){var e=o.create(t,6,1).getContext("2d");if(e.globalCompositeOperation="multiply",e.drawImage(r,0,0),e.drawImage(t,2,0),!e.getImageData(2,0,1,1))return!1;var i=e.getImageData(2,0,1,1).data;o.remove(t),a.supportNewBlendModes=255===i[0]&&0===i[1]&&0===i[2]},t.src=n+"/wCKxvRF"+s},r.src=n+"AP804Oa6"+s,!1),a.supportInverseAlpha=function(){var t=o.create(this,2,1).getContext("2d");t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1);var e=t.getImageData(0,0,1,1);if(null===e)return!1;t.putImageData(e,1,0);var i=t.getImageData(1,0,1,1);return i.data[0]===e.data[0]&&i.data[1]===e.data[1]&&i.data[2]===e.data[2]&&i.data[3]===e.data[3]}()),a)},function(t,e){t.exports=function(t,e,i,n){return Math.atan2(n-e,i-t)}},function(t,e){t.exports=function(t){return(t%=2*Math.PI)>=0?t:t+2*Math.PI}},function(t,e){t.exports=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)}},function(t,e){t.exports=function(t,e,i,n){var s=t-i,r=e-n;return s*s+r*r}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t>e-i}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t0?Math.ceil(t):Math.floor(t)}},function(t,e,i){var n=i(3);t.exports=function(t,e,i,s,r,o,a,h){void 0===h&&(h=new n);var l=Math.sin(r),u=Math.cos(r),c=u*o,d=l*o,f=-l*a,p=u*a,g=1/(c*p+f*-d);return h.x=p*g*t+-f*g*e+(s*f-i*p)*g,h.y=c*g*e+-d*g*t+(-s*c+i*d)*g,h}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},clone:function(){return new n(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return Math.sqrt(e*e+i*i+n*n+s*s)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return e*e+i*i+n*n+s*s},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.val;return this.x=r[0]*e+r[4]*i+r[8]*n+r[12]*s,this.y=r[1]*e+r[5]*i+r[9]*n+r[13]*s,this.z=r[2]*e+r[6]*i+r[10]*n+r[14]*s,this.w=r[3]*e+r[7]*i+r[11]*n+r[15]*s,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});n.prototype.sub=n.prototype.subtract,n.prototype.mul=n.prototype.multiply,n.prototype.div=n.prototype.divide,n.prototype.dist=n.prototype.distance,n.prototype.distSq=n.prototype.distanceSq,n.prototype.len=n.prototype.length,n.prototype.lenSq=n.prototype.lengthSq,t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this},fromMat4:function(t){var e=t.val,i=this.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=n,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*r-o*h,c=-l*s+o*a,d=h*s-r*a,f=e*u+i*c+n*d;return f?(f=1/f,t[0]=u*f,t[1]=(-l*i+n*h)*f,t[2]=(o*i-n*r)*f,t[3]=c*f,t[4]=(l*e-n*a)*f,t[5]=(-o*e+n*s)*f,t[6]=d*f,t[7]=(-h*e+i*a)*f,t[8]=(r*e-i*s)*f,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=r*l-o*h,t[1]=n*h-i*l,t[2]=i*o-n*r,t[3]=o*a-s*l,t[4]=e*l-n*a,t[5]=n*s-e*o,t[6]=s*h-r*a,t[7]=i*a-e*h,t[8]=e*r-i*s,this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return e*(l*r-o*h)+i*(-l*s+o*a)+n*(h*s-r*a)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=t.val,d=c[0],f=c[1],p=c[2],g=c[3],v=c[4],m=c[5],y=c[6],x=c[7],T=c[8];return e[0]=d*i+f*r+p*h,e[1]=d*n+f*o+p*l,e[2]=d*s+f*a+p*u,e[3]=g*i+v*r+m*h,e[4]=g*n+v*o+m*l,e[5]=g*s+v*a+m*u,e[6]=y*i+x*r+T*h,e[7]=y*n+x*o+T*l,e[8]=y*s+x*a+T*u,this},translate:function(t){var e=this.val,i=t.x,n=t.y;return e[6]=i*e[0]+n*e[3]+e[6],e[7]=i*e[1]+n*e[4]+e[7],e[8]=i*e[2]+n*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=Math.sin(t),l=Math.cos(t);return e[0]=l*i+h*r,e[1]=l*n+h*o,e[2]=l*s+h*a,e[3]=l*r-h*i,e[4]=l*o-h*n,e[5]=l*a-h*s,this},scale:function(t){var e=this.val,i=t.x,n=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=n*e[3],e[4]=n*e[4],e[5]=n*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,n=t.z,s=t.w,r=e+e,o=i+i,a=n+n,h=e*r,l=e*o,u=e*a,c=i*o,d=i*a,f=n*a,p=s*r,g=s*o,v=s*a,m=this.val;return m[0]=1-(c+f),m[3]=l+v,m[6]=u-g,m[1]=l-v,m[4]=1-(h+f),m[7]=d+p,m[2]=u+g,m[5]=d-p,m[8]=1-(h+c),this},normalFromMat4:function(t){var e=t.val,i=this.val,n=e[0],s=e[1],r=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=e[9],f=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],x=n*h-s*a,T=n*l-r*a,w=n*u-o*a,E=s*l-r*h,_=s*u-o*h,b=r*u-o*l,A=c*v-d*g,S=c*m-f*g,C=c*y-p*g,M=d*m-f*v,O=d*y-p*v,P=f*y-p*m,R=x*P-T*O+w*M+E*C-_*S+b*A;return R?(R=1/R,i[0]=(h*P-l*O+u*M)*R,i[1]=(l*C-a*P-u*S)*R,i[2]=(a*O-h*C+u*A)*R,i[3]=(r*O-s*P-o*M)*R,i[4]=(n*P-r*C+o*S)*R,i[5]=(s*C-n*O-o*A)*R,i[6]=(v*b-m*_+y*E)*R,i[7]=(m*w-g*b-y*T)*R,i[8]=(g*_-v*w+y*x)*R,this):null}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},zero:function(){var t=this.val;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,this},xyz:function(t,e,i){this.identity();var n=this.val;return n[12]=t,n[13]=e,n[14]=i,this},scaling:function(t,e,i){this.zero();var n=this.val;return n[0]=t,n[5]=e,n[10]=i,n[15]=1,this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[3],s=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=s,t[11]=t[14],t[12]=n,t[13]=r,t[14]=o,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15],m=e*o-i*r,y=e*a-n*r,x=e*h-s*r,T=i*a-n*o,w=i*h-s*o,E=n*h-s*a,_=l*p-u*f,b=l*g-c*f,A=l*v-d*f,S=u*g-c*p,C=u*v-d*p,M=c*v-d*g,O=m*M-y*C+x*S+T*A-w*b+E*_;return O?(O=1/O,t[0]=(o*M-a*C+h*S)*O,t[1]=(n*C-i*M-s*S)*O,t[2]=(p*E-g*w+v*T)*O,t[3]=(c*w-u*E-d*T)*O,t[4]=(a*A-r*M-h*b)*O,t[5]=(e*M-n*A+s*b)*O,t[6]=(g*x-f*E-v*y)*O,t[7]=(l*E-c*x+d*y)*O,t[8]=(r*C-o*A+h*_)*O,t[9]=(i*A-e*C-s*_)*O,t[10]=(f*w-p*x+v*m)*O,t[11]=(u*x-l*w-d*m)*O,t[12]=(o*b-r*S-a*_)*O,t[13]=(e*S-i*b+n*_)*O,t[14]=(p*y-f*T-g*m)*O,t[15]=(l*T-u*y+c*m)*O,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return t[0]=o*(c*v-d*g)-u*(a*v-h*g)+p*(a*d-h*c),t[1]=-(i*(c*v-d*g)-u*(n*v-s*g)+p*(n*d-s*c)),t[2]=i*(a*v-h*g)-o*(n*v-s*g)+p*(n*h-s*a),t[3]=-(i*(a*d-h*c)-o*(n*d-s*c)+u*(n*h-s*a)),t[4]=-(r*(c*v-d*g)-l*(a*v-h*g)+f*(a*d-h*c)),t[5]=e*(c*v-d*g)-l*(n*v-s*g)+f*(n*d-s*c),t[6]=-(e*(a*v-h*g)-r*(n*v-s*g)+f*(n*h-s*a)),t[7]=e*(a*d-h*c)-r*(n*d-s*c)+l*(n*h-s*a),t[8]=r*(u*v-d*p)-l*(o*v-h*p)+f*(o*d-h*u),t[9]=-(e*(u*v-d*p)-l*(i*v-s*p)+f*(i*d-s*u)),t[10]=e*(o*v-h*p)-r*(i*v-s*p)+f*(i*h-s*o),t[11]=-(e*(o*d-h*u)-r*(i*d-s*u)+l*(i*h-s*o)),t[12]=-(r*(u*g-c*p)-l*(o*g-a*p)+f*(o*c-a*u)),t[13]=e*(u*g-c*p)-l*(i*g-n*p)+f*(i*c-n*u),t[14]=-(e*(o*g-a*p)-r*(i*g-n*p)+f*(i*a-n*o)),t[15]=e*(o*c-a*u)-r*(i*c-n*u)+l*(i*a-n*o),this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return(e*o-i*r)*(c*v-d*g)-(e*a-n*r)*(u*v-d*p)+(e*h-s*r)*(u*g-c*p)+(i*a-n*o)*(l*v-d*f)-(i*h-s*o)*(l*g-c*f)+(n*h-s*a)*(l*p-u*f)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=t.val,x=y[0],T=y[1],w=y[2],E=y[3];return e[0]=x*i+T*o+w*u+E*p,e[1]=x*n+T*a+w*c+E*g,e[2]=x*s+T*h+w*d+E*v,e[3]=x*r+T*l+w*f+E*m,x=y[4],T=y[5],w=y[6],E=y[7],e[4]=x*i+T*o+w*u+E*p,e[5]=x*n+T*a+w*c+E*g,e[6]=x*s+T*h+w*d+E*v,e[7]=x*r+T*l+w*f+E*m,x=y[8],T=y[9],w=y[10],E=y[11],e[8]=x*i+T*o+w*u+E*p,e[9]=x*n+T*a+w*c+E*g,e[10]=x*s+T*h+w*d+E*v,e[11]=x*r+T*l+w*f+E*m,x=y[12],T=y[13],w=y[14],E=y[15],e[12]=x*i+T*o+w*u+E*p,e[13]=x*n+T*a+w*c+E*g,e[14]=x*s+T*h+w*d+E*v,e[15]=x*r+T*l+w*f+E*m,this},multiplyLocal:function(t){var e=[],i=this.val,n=t.val;return e[0]=i[0]*n[0]+i[1]*n[4]+i[2]*n[8]+i[3]*n[12],e[1]=i[0]*n[1]+i[1]*n[5]+i[2]*n[9]+i[3]*n[13],e[2]=i[0]*n[2]+i[1]*n[6]+i[2]*n[10]+i[3]*n[14],e[3]=i[0]*n[3]+i[1]*n[7]+i[2]*n[11]+i[3]*n[15],e[4]=i[4]*n[0]+i[5]*n[4]+i[6]*n[8]+i[7]*n[12],e[5]=i[4]*n[1]+i[5]*n[5]+i[6]*n[9]+i[7]*n[13],e[6]=i[4]*n[2]+i[5]*n[6]+i[6]*n[10]+i[7]*n[14],e[7]=i[4]*n[3]+i[5]*n[7]+i[6]*n[11]+i[7]*n[15],e[8]=i[8]*n[0]+i[9]*n[4]+i[10]*n[8]+i[11]*n[12],e[9]=i[8]*n[1]+i[9]*n[5]+i[10]*n[9]+i[11]*n[13],e[10]=i[8]*n[2]+i[9]*n[6]+i[10]*n[10]+i[11]*n[14],e[11]=i[8]*n[3]+i[9]*n[7]+i[10]*n[11]+i[11]*n[15],e[12]=i[12]*n[0]+i[13]*n[4]+i[14]*n[8]+i[15]*n[12],e[13]=i[12]*n[1]+i[13]*n[5]+i[14]*n[9]+i[15]*n[13],e[14]=i[12]*n[2]+i[13]*n[6]+i[14]*n[10]+i[15]*n[14],e[15]=i[12]*n[3]+i[13]*n[7]+i[14]*n[11]+i[15]*n[15],this.fromArray(e)},translate:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[12]=s[0]*e+s[4]*i+s[8]*n+s[12],s[13]=s[1]*e+s[5]*i+s[9]*n+s[13],s[14]=s[2]*e+s[6]*i+s[10]*n+s[14],s[15]=s[3]*e+s[7]*i+s[11]*n+s[15],this},translateXYZ:function(t,e,i){var n=this.val;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this},scale:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[0]=s[0]*e,s[1]=s[1]*e,s[2]=s[2]*e,s[3]=s[3]*e,s[4]=s[4]*i,s[5]=s[5]*i,s[6]=s[6]*i,s[7]=s[7]*i,s[8]=s[8]*n,s[9]=s[9]*n,s[10]=s[10]*n,s[11]=s[11]*n,this},scaleXYZ:function(t,e,i){var n=this.val;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),n=Math.sin(e),s=1-i,r=t.x,o=t.y,a=t.z,h=s*r,l=s*o;return this.fromArray([h*r+i,h*o-n*a,h*a+n*o,0,h*o+n*a,l*o+i,l*a-n*r,0,h*a-n*o,l*a+n*r,s*a*a+i,0,0,0,0,1]),this},rotate:function(t,e){var i=this.val,n=e.x,s=e.y,r=e.z,o=Math.sqrt(n*n+s*s+r*r);if(Math.abs(o)<1e-6)return null;n*=o=1/o,s*=o,r*=o;var a=Math.sin(t),h=Math.cos(t),l=1-h,u=i[0],c=i[1],d=i[2],f=i[3],p=i[4],g=i[5],v=i[6],m=i[7],y=i[8],x=i[9],T=i[10],w=i[11],E=n*n*l+h,_=s*n*l+r*a,b=r*n*l-s*a,A=n*s*l-r*a,S=s*s*l+h,C=r*s*l+n*a,M=n*r*l+s*a,O=s*r*l-n*a,P=r*r*l+h;return i[0]=u*E+p*_+y*b,i[1]=c*E+g*_+x*b,i[2]=d*E+v*_+T*b,i[3]=f*E+m*_+w*b,i[4]=u*A+p*S+y*C,i[5]=c*A+g*S+x*C,i[6]=d*A+v*S+T*C,i[7]=f*A+m*S+w*C,i[8]=u*M+p*O+y*P,i[9]=c*M+g*O+x*P,i[10]=d*M+v*O+T*P,i[11]=f*M+m*O+w*P,this},rotateX:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this},fromRotationTranslation:function(t,e){var i=this.val,n=t.x,s=t.y,r=t.z,o=t.w,a=n+n,h=s+s,l=r+r,u=n*a,c=n*h,d=n*l,f=s*h,p=s*l,g=r*l,v=o*a,m=o*h,y=o*l;return i[0]=1-(f+g),i[1]=c+y,i[2]=d-m,i[3]=0,i[4]=c-y,i[5]=1-(u+g),i[6]=p+v,i[7]=0,i[8]=d+m,i[9]=p-v,i[10]=1-(u+f),i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this},fromQuat:function(t){var e=this.val,i=t.x,n=t.y,s=t.z,r=t.w,o=i+i,a=n+n,h=s+s,l=i*o,u=i*a,c=i*h,d=n*a,f=n*h,p=s*h,g=r*o,v=r*a,m=r*h;return e[0]=1-(d+p),e[1]=u+m,e[2]=c-v,e[3]=0,e[4]=u-m,e[5]=1-(l+p),e[6]=f+g,e[7]=0,e[8]=c+v,e[9]=f-g,e[10]=1-(l+d),e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},frustum:function(t,e,i,n,s,r){var o=this.val,a=1/(e-t),h=1/(n-i),l=1/(s-r);return o[0]=2*s*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*s*h,o[6]=0,o[7]=0,o[8]=(e+t)*a,o[9]=(n+i)*h,o[10]=(r+s)*l,o[11]=-1,o[12]=0,o[13]=0,o[14]=r*s*2*l,o[15]=0,this},perspective:function(t,e,i,n){var s=this.val,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this},perspectiveLH:function(t,e,i,n){var s=this.val;return s[0]=2*i/t,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*i/e,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=-n/(i-n),s[11]=1,s[12]=0,s[13]=0,s[14]=i*n/(i-n),s[15]=0,this},ortho:function(t,e,i,n,s,r){var o=this.val,a=t-e,h=i-n,l=s-r;return a=0===a?a:1/a,h=0===h?h:1/h,l=0===l?l:1/l,o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this},lookAt:function(t,e,i){var n=this.val,s=t.x,r=t.y,o=t.z,a=i.x,h=i.y,l=i.z,u=e.x,c=e.y,d=e.z;if(Math.abs(s-u)<1e-6&&Math.abs(r-c)<1e-6&&Math.abs(o-d)<1e-6)return this.identity();var f=s-u,p=r-c,g=o-d,v=1/Math.sqrt(f*f+p*p+g*g),m=h*(g*=v)-l*(p*=v),y=l*(f*=v)-a*g,x=a*p-h*f;(v=Math.sqrt(m*m+y*y+x*x))?(m*=v=1/v,y*=v,x*=v):(m=0,y=0,x=0);var T=p*x-g*y,w=g*m-f*x,E=f*y-p*m;return(v=Math.sqrt(T*T+w*w+E*E))?(T*=v=1/v,w*=v,E*=v):(T=0,w=0,E=0),n[0]=m,n[1]=T,n[2]=f,n[3]=0,n[4]=y,n[5]=w,n[6]=p,n[7]=0,n[8]=x,n[9]=E,n[10]=g,n[11]=0,n[12]=-(m*s+y*r+x*o),n[13]=-(T*s+w*r+E*o),n[14]=-(f*s+p*r+g*o),n[15]=1,this},yawPitchRoll:function(t,e,i){this.zero(),s.zero(),r.zero();var n=this.val,o=s.val,a=r.val,h=Math.sin(i),l=Math.cos(i);return n[10]=1,n[15]=1,n[0]=l,n[1]=h,n[4]=-h,n[5]=l,h=Math.sin(e),l=Math.cos(e),o[0]=1,o[15]=1,o[5]=l,o[10]=l,o[9]=-h,o[6]=h,h=Math.sin(t),l=Math.cos(t),a[5]=1,a[15]=1,a[0]=l,a[2]=-h,a[8]=h,a[10]=l,this.multiplyLocal(s),this.multiplyLocal(r),this},setWorldMatrix:function(t,e,i,n,o){return this.yawPitchRoll(t.y,t.x,t.z),s.scaling(i.x,i.y,i.z),r.xyz(e.x,e.y,e.z),this.multiplyLocal(s),this.multiplyLocal(r),void 0!==n&&this.multiplyLocal(n),void 0!==o&&this.multiplyLocal(o),this}}),s=new n,r=new n;t.exports=n},function(t,e,i){var n=i(0),s=i(170),r=i(332),o=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),h=new s(1,0,0),l=new s(0,1,0),u=new s,c=new r,d=new n({initialize:function(t,e,i,n){"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},rotationTo:function(t,e){var i=t.x*e.x+t.y*e.y+t.z*e.z;return i<-.999999?(u.copy(h).cross(t).length()<1e-6&&u.copy(l).cross(t),u.normalize(),this.setAxisAngle(u,Math.PI)):i>.999999?(this.x=0,this.y=0,this.z=0,this.w=1,this):(u.copy(t).cross(e),this.x=u.x,this.y=u.y,this.z=u.z,this.w=1+i,this.normalize())},setAxes:function(t,e,i){var n=c.val;return n[0]=e.x,n[3]=e.y,n[6]=e.z,n[1]=i.x,n[4]=i.y,n[7]=i.z,n[2]=-t.x,n[5]=-t.y,n[8]=-t.z,this.fromMat3(c).normalize()},identity:function(){return this.x=0,this.y=0,this.z=0,this.w=1,this},setAxisAngle:function(t,e){e*=.5;var i=Math.sin(e);return this.x=i*t.x,this.y=i*t.y,this.z=i*t.z,this.w=Math.cos(e),this},multiply:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.x,o=t.y,a=t.z,h=t.w;return this.x=e*h+s*r+i*a-n*o,this.y=i*h+s*o+n*r-e*a,this.z=n*h+s*a+e*o-i*r,this.w=s*h-e*r-i*o-n*a,this},slerp:function(t,e){var i=this.x,n=this.y,s=this.z,r=this.w,o=t.x,a=t.y,h=t.z,l=t.w,u=i*o+n*a+s*h+r*l;u<0&&(u=-u,o=-o,a=-a,h=-h,l=-l);var c=1-e,d=e;if(1-u>1e-6){var f=Math.acos(u),p=Math.sin(f);c=Math.sin((1-e)*f)/p,d=Math.sin(e*f)/p}return this.x=c*i+d*o,this.y=c*n+d*a,this.z=c*s+d*h,this.w=c*r+d*l,this},invert:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n,r=s?1/s:0;return this.x=-t*r,this.y=-e*r,this.z=-i*r,this.w=n*r,this},conjugate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},rotateX:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+s*r,this.y=i*o+n*r,this.z=n*o-i*r,this.w=s*o-e*r,this},rotateY:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o-n*r,this.y=i*o+s*r,this.z=n*o+e*r,this.w=s*o-i*r,this},rotateZ:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+i*r,this.y=i*o-e*r,this.z=n*o+s*r,this.w=s*o-n*r,this},calculateW:function(){var t=this.x,e=this.y,i=this.z;return this.w=-Math.sqrt(1-t*t-e*e-i*i),this},fromMat3:function(t){var e,i=t.val,n=i[0]+i[4]+i[8];if(n>0)e=Math.sqrt(n+1),this.w=.5*e,e=.5/e,this.x=(i[7]-i[5])*e,this.y=(i[2]-i[6])*e,this.z=(i[3]-i[1])*e;else{var s=0;i[4]>i[0]&&(s=1),i[8]>i[3*s+s]&&(s=2);var r=o[s],h=o[r];e=Math.sqrt(i[3*s+s]-i[3*r+r]-i[3*h+h]+1),a[s]=.5*e,e=.5/e,a[r]=(i[3*r+s]+i[3*s+r])*e,a[h]=(i[3*h+s]+i[3*s+h])*e,this.x=a[0],this.y=a[1],this.z=a[2],this.w=(i[3*h+r]-i[3*r+h])*e}return this}});t.exports=d},function(t,e,i){var n=i(336),s=i(26),r=i(29),o=i(165);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===r.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!e.customEnvironment&&!e.canvas&&e.renderType!==r.HEADLESS)if(e.renderType===r.CANVAS||e.renderType!==r.CANVAS&&!o.webGL){if(!o.canvas)throw new Error("Cannot create Canvas or WebGL context, aborting.");e.renderType=r.CANVAS}else e.renderType=r.WEBGL;e.antialias||s.disableSmoothing();var a,h,l=t.scale.baseSize,u=l.width,c=l.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=u,t.canvas.height=c):t.canvas=s.create(t,u,c,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||n.setCrisp(t.canvas),e.renderType!==r.HEADLESS&&(a=i(504),h=i(507),e.renderType===r.WEBGL?t.renderer=new h(t):(t.renderer=new a(t),t.context=t.renderer.gameContext))}},function(t,e){t.exports={setCrisp:function(t){return["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"].forEach(function(e){t.style["image-rendering"]=e}),t.style.msInterpolationMode="nearest-neighbor",t},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}}},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_FS","","precision mediump float;","","uniform sampler2D uMainSampler;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.rgb * outTint.a, outTint.a);"," vec4 color = texture;",""," if (outTintEffect == 0.0)"," {"," // Multiply texture tint"," color = texture * texel;"," }"," else if (outTintEffect == 1.0)"," {"," // Solid color + texture alpha"," color.rgb = mix(texture.rgb, outTint.rgb * outTint.a, texture.a);"," color.a = texture.a * texel.a;"," }"," else if (outTintEffect == 2.0)"," {"," // Solid color, no texture"," color = texel;"," }",""," gl_FragColor = color;","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_VS","","precision mediump float;","","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform mat4 uModelMatrix;","","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTintEffect;","attribute vec4 inTint;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main ()","{"," gl_Position = uProjectionMatrix * uViewMatrix * uModelMatrix * vec4(inPosition, 1.0, 1.0);",""," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}","",""].join("\n")},function(t,e,i){var n=i(29);t.exports=function(t){var e=t.config;if(!e.hideBanner){var i="WebGL";e.renderType===n.CANVAS?i="Canvas":e.renderType===n.HEADLESS&&(i="Headless");var s,r=e.audio,o=t.device.audio;if(s=!o.webAudio||r&&r.disableWebAudio?r&&r.noAudio||!o.webAudio&&!o.audioData?"No Audio":"HTML5 Audio":"Web Audio",t.device.browser.ie)window.console&&console.log("Phaser v"+n.VERSION+" / https://phaser.io");else{var a,h="",l=[h];Array.isArray(e.bannerBackgroundColor)?(e.bannerBackgroundColor.forEach(function(t){h=h.concat("%c "),l.push("background: "+t),a=t}),l[l.length-1]="color: "+e.bannerTextColor+"; background: "+a):(h=h.concat("%c "),l.push("color: "+e.bannerTextColor+"; background: "+e.bannerBackgroundColor)),l.push("background: #fff"),e.gameTitle&&(h=h.concat(e.gameTitle),e.gameVersion&&(h=h.concat(" v"+e.gameVersion)),e.hidePhaser||(h=h.concat(" / "))),e.hidePhaser||(h=h.concat("Phaser v"+n.VERSION+" ("+i+" | "+s+")")),h=h.concat(" %c "+e.gameURL),l[0]=h,console.log.apply(console,l)}}}},function(t,e,i){var n=i(0),s=i(6),r=i(1),o=i(341),a=new n({initialize:function(t,e){this.game=t,this.raf=new o,this.started=!1,this.running=!1,this.minFps=s(e,"min",5),this.targetFps=s(e,"target",60),this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=r,this.forceSetTimeOut=s(e,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=s(e,"deltaHistory",10),this.panicMax=s(e,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=s(e,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.startTime+=this.time-this._pauseTime},resetDelta:function(){var t=window.performance.now();this.time=t,this.lastTime=t,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0;for(var e=0;e0||!this.inFocus)&&(this._coolDown--,r=Math.min(r,this._target)),r>this._min&&(r=n[i],r=Math.min(r,this._min)),n[i]=r,this.deltaIndex++,this.deltaIndex>s&&(this.deltaIndex=0),o=0;for(var a=0;athis.nextFpsUpdate&&(this.actualFps=.25*this.framesThisSecond+.75*this.actualFps,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0),this.framesThisSecond++;var h=o/this._target;this.callback(t,o,h),this.lastTime=t,this.frame++},tick:function(){this.step()},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){this.running?this.sleep():t&&(this.startTime+=-this.lastTime+(this.lastTime+window.performance.now())),this.raf.start(this.step.bind(this),this.useRAF),this.running=!0,this.step()},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.callback=r,this.raf=null,this.game=null}});t.exports=a},function(t,e,i){var n=i(0),s=i(1),r=new n({initialize:function(){this.isRunning=!1,this.callback=s,this.tick=0,this.isSetTimeOut=!1,this.timeOutID=null,this.lastTime=0,this.target=0;var t=this;this.step=function e(){var i=window.performance.now();t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.requestAnimationFrame(e)},this.stepTimeout=function e(){var i=Date.now(),n=Math.min(Math.max(2*t.target+t.tick-i,0),t.target);t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.setTimeout(e,n)}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.target=i,this.isRunning=!0,this.timeOutID=e?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=s}});t.exports=r},function(t,e,i){var n=i(18);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e="visibilitychange":["webkit","moz","ms"].forEach(function(t){void 0!==document[t+"Hidden"]&&(document.hidden=function(){return document[t+"Hidden"]},e=t+"visibilitychange")});e&&document.addEventListener(e,function(t){document.hidden||"pause"===t.type?i.emit(n.HIDDEN):i.emit(n.VISIBLE)},!1),window.onblur=function(){i.emit(n.BLUR)},window.onfocus=function(){i.emit(n.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},function(t,e,i){var n=i(344),s=i(26),r=i(6);t.exports=function(t){var e=r(t,"data",[]),i=r(t,"canvas",null),o=r(t,"palette",n),a=r(t,"pixelWidth",1),h=r(t,"pixelHeight",a),l=r(t,"resizeCanvas",!0),u=r(t,"clearCanvas",!0),c=r(t,"preRender",null),d=r(t,"postRender",null),f=Math.floor(Math.abs(e[0].length*a)),p=Math.floor(Math.abs(e.length*h));i||(i=s.create2D(this,f,p),l=!1,u=!1),l&&(i.width=f,i.height=p);var g=i.getContext("2d");u&&g.clearRect(0,0,f,p),c&&c(i,g);for(var v=0;vi;)n-=i;ni.length-2?i.length-1:r+1],c=i[r>i.length-3?i.length-1:r+2];return e.set(n(a,h.x,l.x,u.x,c.x),n(a,h.y,l.y,u.y,c.y))},toJSON:function(){for(var t=[],e=0;e1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}},function(t,e,i){var n=i(113);t.exports=function(t){if("complete"!==document.readyState&&"interactive"!==document.readyState){var e=function(){document.removeEventListener("deviceready",e,!0),document.removeEventListener("DOMContentLoaded",e,!0),window.removeEventListener("load",e,!0),t()};document.body?n.cordova?document.addEventListener("deviceready",e,!1):(document.addEventListener("DOMContentLoaded",e,!0),window.addEventListener("load",e,!0)):window.setTimeout(e,20)}else t()}},function(t,e,i){var n=i(173);t.exports=function(t,e){var i=window.screen,s=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);if(s&&"string"==typeof s.type)return s.type;if("string"==typeof s)return s;if(i)return i.height>i.width?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if("number"==typeof window.orientation)return 0===window.orientation||180===window.orientation?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return n.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return n.ORIENTATION.LANDSCAPE}return e>t?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE}},function(t,e){t.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},function(t,e){t.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},function(t,e){t.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5}},function(t,e){t.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},function(t,e){t.exports=function(t){var e;return""!==t&&("string"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e||(e=document.body),e}},function(t,e){t.exports=function(t){var e="";try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):(e=new ActiveXObject("Microsoft.XMLDOM")).loadXML(t)}catch(t){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null}},function(t,e,i){var n=i(0),s=i(175),r=i(10),o=i(54),a=i(18),h=i(363),l=i(364),u=i(365),c=i(366),d=i(30),f=i(330),p=new n({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new r,this.isOver=!0,this.defaultCursor="",this.keyboard=e.inputKeyboard?new h(this):null,this.mouse=e.inputMouse?new l(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers,e.inputTouch&&1===this.pointersTotal&&(this.pointersTotal=2);for(var i=0;i<=this.pointersTotal;i++){var n=new u(this,i);n.smoothFactor=e.inputSmoothFactor,this.pointers.push(n)}this.mousePointer=e.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(a.BOOT,this.boot,this)},boot:function(){this.canvas=this.game.canvas,this.scaleManager=this.game.scale,this.events.emit(o.MANAGER_BOOT),this.game.events.on(a.PRE_RENDER,this.preRender,this),this.game.events.once(a.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(o.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(o.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(o.MANAGER_UPDATE);for(var n=0;n10&&(t=10-this.pointersTotal);for(var i=0;i-1&&e.preventDefault()}},this.onKeyUp=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.useQueue||t.manager.events.emit(o.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}};var e=this.target;e&&(e.addEventListener("keydown",this.onKeyDown,!1),e.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var t=this.target;t.removeEventListener("keydown",this.onKeyDown,!1),t.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},removeCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(r.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});t.exports=l},function(t,e,i){var n=i(0),s=i(165),r=i(54),o=i(0),a=new n({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=o,this.onMouseDown=o,this.onMouseUp=o,this.onMouseDownWindow=o,this.onMouseUpWindow=o,this.onMouseOver=o,this.onMouseOut=o,this.onMouseWheel=o,this.pointerLockChange=o,t.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.capture=t.inputMouseCapture,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return document.body.addEventListener("contextmenu",function(t){return t.preventDefault(),!1}),this},requestPointerLock:function(){if(s.pointerLock){var t=this.target;t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock()}},releasePointerLock:function(){s.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this,e=this.manager.canvas,i=window&&window.focus&&this.manager.game.config.autoFocus;this.onMouseMove=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseMove(e),t.capture&&e.preventDefault())},this.onMouseDown=function(n){i&&window.focus(),!n.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseDown(n),t.capture&&n.target===e&&n.preventDefault())},this.onMouseDownWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseDown(i)},this.onMouseUp=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseUp(i),t.capture&&i.target===e&&i.preventDefault())},this.onMouseUpWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseUp(i)},this.onMouseOver=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOver(e)},this.onMouseOut=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOut(e)},this.onMouseWheel=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.onMouseWheel(e)};var n=this.target;if(n){var r={passive:!0},o={passive:!1};n.addEventListener("mousemove",this.onMouseMove,this.capture?o:r),n.addEventListener("mousedown",this.onMouseDown,this.capture?o:r),n.addEventListener("mouseup",this.onMouseUp,this.capture?o:r),n.addEventListener("mouseover",this.onMouseOver,this.capture?o:r),n.addEventListener("mouseout",this.onMouseOut,this.capture?o:r),n.addEventListener("wheel",this.onMouseWheel,this.capture?o:r),window&&this.manager.game.config.inputWindowEvents&&(window.addEventListener("mousedown",this.onMouseDownWindow,o),window.addEventListener("mouseup",this.onMouseUpWindow,o)),s.pointerLock&&(this.pointerLockChange=function(e){var i=t.target;t.locked=document.pointerLockElement===i||document.mozPointerLockElement===i||document.webkitPointerLockElement===i,t.manager.onPointerLockChange(e)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mouseover",this.onMouseOver),t.removeEventListener("mouseout",this.onMouseOut),window&&(window.removeEventListener("mousedown",this.onMouseDownWindow),window.removeEventListener("mouseup",this.onMouseUpWindow)),s.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=a},function(t,e,i){var n=i(314),s=i(0),r=i(53),o=i(141),a=i(324),h=i(3),l=new s({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new h,this.prevPosition=new h,this.midPoint=new h(-1,-1),this.velocity=new h,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){var e=this.x,i=this.y;1!==t.resolution&&(e+=t._x,i+=t._y);var n=t.getWorldPoint(e,i);return this.worldX=n.x,this.worldY=n.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t=this.position.x,e=this.position.y,i=this.midPoint.x,s=this.midPoint.y;if(t!==i||e!==s){var r=a(this.motionFactor,i,t),h=a(this.motionFactor,s,e);o(r,t,.1)&&(r=t),o(h,e,.1)&&(h=e),this.midPoint.set(r,h);var l=t-r,u=e-h;this.velocity.set(l,u),this.angle=n(r,h,t,e),this.distance=Math.sqrt(l*l+u*u)}},up:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=t.timeStamp),this.isDown=!1,this.wasTouch=!1},down:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=t.timeStamp),this.isDown=!0,this.wasTouch=!1},move:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.button&&!this.isDown},rightButtonReleased:function(){return 2===this.button&&!this.isDown},middleButtonReleased:function(){return 1===this.button&&!this.isDown},backButtonReleased:function(){return 3===this.button&&!this.isDown},forwardButtonReleased:function(){return 4===this.button&&!this.isDown},getDistance:function(){return this.isDown?r(this.downX,this.downY,this.x,this.y):r(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,n=this.prevPosition.y,s=this.position.x,r=this.position.y,o=0;o0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),t.events.on(a.PRE_STEP,this.step,this),t.events.once(a.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(t){this.getParent(t),this.getParentBounds();var e=t.width,i=t.height,s=t.scaleMode,r=t.resolution,o=t.zoom,a=t.autoRound;if("string"==typeof e){var h=this.parentSize.width;0===h&&(h=window.innerWidth);var l=parseInt(e,10)/100;e=Math.floor(h*l)}if("string"==typeof i){var c=this.parentSize.height;0===c&&(c=window.innerHeight);var d=parseInt(i,10)/100;i=Math.floor(c*d)}this.resolution=1,this.scaleMode=s,this.autoRound=a,this.autoCenter=t.autoCenter,this.resizeInterval=t.resizeInterval,a&&(e=Math.floor(e),i=Math.floor(i)),this.gameSize.setSize(e,i),o===n.ZOOM.MAX_ZOOM&&(o=this.getMaxZoom()),this.zoom=o,1!==o&&(this._resetZoom=!0),this.baseSize.setSize(e*r,i*r),a&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),t.minWidth>0&&this.displaySize.setMin(t.minWidth*o,t.minHeight*o),t.maxWidth>0&&this.displaySize.setMax(t.maxWidth*o,t.maxHeight*o),this.displaySize.setSize(e,i),this.orientation=u(e,i)},getParent:function(t){var e=t.parent;if(null!==e){if(this.parent=l(e),this.parentIsWindow=this.parent===document.body,t.expandParent&&t.scaleMode!==n.SCALE_MODE.NONE){var i=this.parent.getBoundingClientRect();(this.parentIsWindow||0===i.height)&&(document.documentElement.style.height="100%",document.body.style.height="100%",i=this.parent.getBoundingClientRect(),this.parentIsWindow||0!==i.height||(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}t.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=l(t.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var t=this.parentSize,e=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(e.height=h(!0));var i=this.resolution,n=e.width*i,s=e.height*i;return(t.width!==n||t.height!==s)&&(t.setSize(n,s),!0)},lockOrientation:function(t){var e=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return!!e&&e(t)},setParentSize:function(t,e){return this.parentSize.setSize(t,e),this.refresh()},setGameSize:function(t,e){var i=this.autoRound,n=this.resolution;i&&(t=Math.floor(t),e=Math.floor(e));var s=this.width,r=this.height;return this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),i&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t,e),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(s,r)},resize:function(t,e){var i=this.zoom,n=this.resolution,s=this.autoRound;s&&(t=Math.floor(t),e=Math.floor(e));var r=this.width,o=this.height;this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),s&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t*i*n,e*i*n),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var a=this.canvas.style,h=t*i,l=e*i;return s&&(h=Math.floor(h),l=Math.floor(l)),h===t&&l===e||(a.width=h+"px",a.height=l+"px"),this.refresh(r,o)},setZoom:function(t){return this.zoom=t,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},refresh:function(t,e){void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var i=this.game.domContainer;if(i){this.baseSize.setCSS(i);var n=this.canvas.style,s=i.style;s.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",s.marginLeft=n.marginLeft,s.marginTop=n.marginTop}return this.emit(o.RESIZE,this.gameSize,this.baseSize,this.displaySize,this.resolution,t,e),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var t=u(this.width,this.height);t!==this.orientation&&(this.orientation=t,this.emit(o.ORIENTATION_CHANGE,t))}},updateScale:function(){var t,e,i=this.canvas.style,s=this.gameSize.width,r=this.gameSize.height,o=this.zoom,a=this.autoRound;this.scaleMode===n.SCALE_MODE.NONE?(this.displaySize.setSize(s*o*1,r*o*1),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this._resetZoom&&(i.width=t+"px",i.height=e+"px",this._resetZoom=!1)):this.scaleMode===n.SCALE_MODE.RESIZE?(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(1*this.displaySize.width,1*this.displaySize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this.canvas.width=t,this.canvas.height=e):(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),i.width=t+"px",i.height=e+"px"),this.getParentBounds(),this.updateCenter()},getMaxZoom:function(){var t=p(this.parentSize.width,this.gameSize.width,0,!0),e=p(this.parentSize.height,this.gameSize.height,0,!0);return Math.max(Math.min(t,e),1)},updateCenter:function(){var t=this.autoCenter;if(t!==n.CENTER.NO_CENTER){var e=this.canvas,i=e.style,s=e.getBoundingClientRect(),r=s.width,o=s.height,a=Math.floor((this.parentSize.width-r)/2),h=Math.floor((this.parentSize.height-o)/2);t===n.CENTER.CENTER_HORIZONTALLY?h=0:t===n.CENTER.CENTER_VERTICALLY&&(a=0),i.marginLeft=a+"px",i.marginTop=h+"px"}},updateBounds:function(){var t=this.canvasBounds,e=this.canvas.getBoundingClientRect();t.x=e.left+(window.pageXOffset||0)-(document.documentElement.clientLeft||0),t.y=e.top+(window.pageYOffset||0)-(document.documentElement.clientTop||0),t.width=e.width,t.height=e.height},transformX:function(t){return(t-this.canvasBounds.left)*this.displayScale.x},transformY:function(t){return(t-this.canvasBounds.top)*this.displayScale.y},startFullscreen:function(t){void 0===t&&(t={navigationUI:"hide"});var e=this.fullscreen;if(e.available){if(!e.active){var i,n=this.getFullscreenTarget();(i=e.keyboard?n[e.request](Element.ALLOW_KEYBOARD_INPUT):n[e.request](t))?i.then(this.fullscreenSuccessHandler.bind(this)).catch(this.fullscreenErrorHandler.bind(this)):e.active?this.fullscreenSuccessHandler():this.fullscreenErrorHandler()}}else this.emit(o.FULLSCREEN_UNSUPPORTED)},fullscreenSuccessHandler:function(){this.getParentBounds(),this.refresh(),this.emit(o.ENTER_FULLSCREEN)},fullscreenErrorHandler:function(t){this.removeFullscreenTarget(),this.emit(o.FULLSCREEN_FAILED,t)},getFullscreenTarget:function(){if(!this.fullscreenTarget){var t=document.createElement("div");t.style.margin="0",t.style.padding="0",t.style.width="100%",t.style.height="100%",this.fullscreenTarget=t,this._createdFullscreenTarget=!0}this._createdFullscreenTarget&&(this.canvas.parentNode.insertBefore(this.fullscreenTarget,this.canvas),this.fullscreenTarget.appendChild(this.canvas));return this.fullscreenTarget},removeFullscreenTarget:function(){if(this._createdFullscreenTarget){var t=this.fullscreenTarget;if(t&&t.parentNode){var e=t.parentNode;e.insertBefore(this.canvas,t),e.removeChild(t)}}},stopFullscreen:function(){var t=this.fullscreen;if(!t.available)return this.emit(o.FULLSCREEN_UNSUPPORTED),!1;t.active&&document[t.cancel](),this.removeFullscreenTarget(),this.getParentBounds(),this.emit(o.LEAVE_FULLSCREEN),this.refresh()},toggleFullscreen:function(t){this.fullscreen.active?this.stopFullscreen():this.startFullscreen(t)},startListeners:function(){var t=this,e=this.listeners;if(e.orientationChange=function(){t._checkOrientation=!0,t.dirty=!0},e.windowResize=function(){t.dirty=!0},window.addEventListener("orientationchange",e.orientationChange,!1),window.addEventListener("resize",e.windowResize,!1),this.fullscreen.available){e.fullScreenChange=function(e){return t.onFullScreenChange(e)},e.fullScreenError=function(e){return t.onFullScreenError(e)};["webkit","moz",""].forEach(function(t){document.addEventListener(t+"fullscreenchange",e.fullScreenChange,!1),document.addEventListener(t+"fullscreenerror",e.fullScreenError,!1)}),document.addEventListener("MSFullscreenChange",e.fullScreenChange,!1),document.addEventListener("MSFullscreenError",e.fullScreenError,!1)}},onFullScreenChange:function(){document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||this.stopFullscreen()},onFullScreenError:function(){this.removeFullscreenTarget()},step:function(t,e){this.parent&&(this._lastCheck+=e,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var t=this.listeners;window.removeEventListener("orientationchange",t.orientationChange,!1),window.removeEventListener("resize",t.windowResize,!1);["webkit","moz",""].forEach(function(e){document.removeEventListener(e+"fullscreenchange",t.fullScreenChange,!1),document.removeEventListener(e+"fullscreenerror",t.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",t.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",t.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===n.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===n.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=v},function(t,e,i){var n=i(22),s=i(0),r=i(92),o=i(3),a=new s({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===n&&(n=null),this._width=t,this._height=e,this._parent=n,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(t){return void 0===t&&(t=0),this.aspectMode=t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=n(t,0,this.maxWidth),this.minHeight=n(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=n(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=n(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case a.NONE:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(r(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(t,e,!0);break;case a.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minWidth,this.maxWidth),e&&this._parent&&t>this._parent.width&&(t=Math.max(this.minWidth,this._parent.width)),t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minHeight,this.maxHeight),e&&this._parent&&t>this._parent.height&&(t=Math.max(this.minHeight,this._parent.height)),t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var n=this.snapTo,s=0===e?1:t/e;return i&&this.aspectRatio>s||!i&&this.aspectRatio0&&(t=(e=r(e,n.y))*this.aspectRatio)):(i&&this.aspectRatios)&&(t=(e=r(e,n.y))*this.aspectRatio,n.x>0&&(e=(t=r(t,n.x))*(1/this.aspectRatio))),this._width=t,this._height=e,this},fitTo:function(t,e){return this.constrain(t,e,!0)},envelop:function(t,e){return this.constrain(t,e,!1)},setWidth:function(t){return this.setSize(t,this._height)},setHeight:function(t){return this.setSize(this._width,t)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(t){t&&t.style&&(t.style.width=this._width+"px",t.style.height=this._height+"px")},copy:function(t){return t.setAspectMode(this.aspectMode),t.aspectRatio=this.aspectRatio,t.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(t){this.setSize(t,this._height)}},height:{get:function(){return this._height},set:function(t){this.setSize(this._width,t)}}});a.NONE=0,a.WIDTH_CONTROLS_HEIGHT=1,a.HEIGHT_CONTROLS_WIDTH=2,a.FIT=3,a.ENVELOP=4,t.exports=a},function(t,e,i){var n=i(0),s=i(120),r=i(21),o=i(18),a=i(6),h=i(81),l=i(1),u=i(371),c=i(176),d=new n({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,e){Array.isArray(e)||(e=[e]);for(var i=0;i-1&&(delete this.keys[n],this.scenes.splice(i,1),this._start.indexOf(n)>-1&&(i=this._start.indexOf(n),this._start.splice(i,1)),e.sys.destroy())}return this},bootScene:function(t){var e,i=t.sys,n=i.settings;t.init&&(t.init.call(t,n.data),n.status=s.INIT,n.isTransition&&i.events.emit(r.TRANSITION_INIT,n.transitionFrom,n.transitionDuration)),i.load&&(e=i.load).reset(),e&&t.preload?(t.preload.call(t),0===e.list.size?this.create(t):(n.status=s.LOADING,e.once(h.COMPLETE,this.loadComplete,this),e.start())):this.create(t)},loadComplete:function(t){var e=t.scene;this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(e)},payloadComplete:function(t){this.bootScene(t.scene)},update:function(t,e){this.processQueue(),this.isProcessing=!0;for(var i=this.scenes.length-1;i>=0;i--){var n=this.scenes[i].sys;n.settings.status>s.START&&n.settings.status<=s.RUNNING&&n.step(t,e)}},render:function(t){for(var e=0;e=s.LOADING&&i.settings.status0){var i=this.getScene(t);this.scenes.splice(e,1),this.scenes.unshift(i)}}return this},moveDown:function(t){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e>0){var i=e-1,n=this.getScene(t),s=this.getAt(i);this.scenes[e]=s,this.scenes[i]=n}}return this},moveUp:function(t){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e=r.x&&t=r.y&&e=r.x&&t=r.y&&e-1){var o=this.context.getImageData(t,e,1,1);o.data[0]=i,o.data[1]=n,o.data[2]=s,o.data[3]=r,this.context.putImageData(o,t,e)}return this},putData:function(t,e,i,n,s,r,o){return void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=t.width),void 0===o&&(o=t.height),this.context.putImageData(t,e,i,n,s,r,o),this},getData:function(t,e,i,n){return t=s(Math.floor(t),0,this.width-1),e=s(Math.floor(e),0,this.height-1),i=s(i,1,this.width-t),n=s(n,1,this.height-e),this.context.getImageData(t,e,i,n)},getPixel:function(t,e,i){i||(i=new r);var n=this.getIndex(t,e);if(n>-1){var s=this.data,o=s[n+0],a=s[n+1],h=s[n+2],l=s[n+3];i.setTo(o,a,h,l)}return i},getPixels:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=i),t=Math.abs(Math.round(t)),e=Math.abs(Math.round(e));for(var o=s(t,0,this.width),a=s(t+i,0,this.width),h=s(e,0,this.height),l=s(e+n,0,this.height),u=new r,c=[],d=h;d0)&&(!!n.prototype.pause.call(this)&&(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(r.PAUSE,this),!0)))},resume:function(){return!this.manager.isLocked(this,"resume")&&(!(this.startTime>0)&&(!!n.prototype.resume.call(this)&&(!!this.pickAndPlayAudioTag()&&(this.emit(r.RESUME,this),!0))))},stop:function(){return!this.manager.isLocked(this,"stop")&&(!!n.prototype.stop.call(this)&&(this.stopAndReleaseAudioTag(),this.emit(r.STOP,this),!0))},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var t=this.currentConfig.seek,e=this.currentConfig.delay,i=(this.currentMarker?this.currentMarker.start:0)+t;return this.previousTime=i,this.audio.currentTime=i,this.applyConfig(),0===e?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+1e3*e,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var t=0;t0)this.startTime=n-this.manager.loopEndOffset?(this.audio.currentTime=i+Math.max(0,s-n),s=this.audio.currentTime):s=n)return this.reset(),this.stopAndReleaseAudioTag(),void this.emit(r.COMPLETE,this);this.previousTime=s}},destroy:function(){n.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=this.currentConfig.volume*this.manager.volume)},calculateRate:function(){n.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(t){this.currentConfig.mute=t,this.manager.isLocked(this,"mute",t)||(this.updateMute(),this.emit(r.MUTE,this,t))}},setMute:function(t){return this.mute=t,this},volume:{get:function(){return this.currentConfig.volume},set:function(t){this.currentConfig.volume=t,this.manager.isLocked(this,"volume",t)||(this.updateVolume(),this.emit(r.VOLUME,this,t))}},setVolume:function(t){return this.volume=t,this},rate:{get:function(){return this.currentConfig.rate},set:function(t){this.currentConfig.rate=t,this.manager.isLocked(this,r.RATE,t)||(this.calculateRate(),this.emit(r.RATE,this,t))}},setRate:function(t){return this.rate=t,this},detune:{get:function(){return this.currentConfig.detune},set:function(t){this.currentConfig.detune=t,this.manager.isLocked(this,r.DETUNE,t)||(this.calculateRate(),this.emit(r.DETUNE,this,t))}},setDetune:function(t){return this.detune=t,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(t){this.manager.isLocked(this,"seek",t)||this.startTime>0||(this.isPlaying||this.isPaused)&&(t=Math.min(Math.max(0,t),this.duration),this.isPlaying?(this.previousTime=t,this.audio.currentTime=t):this.isPaused&&(this.currentConfig.seek=t),this.emit(r.SEEK,this,t))}},setSeek:function(t){return this.seek=t,this},loop:{get:function(){return this.currentConfig.loop},set:function(t){this.currentConfig.loop=t,this.manager.isLocked(this,"loop",t)||(this.audio&&(this.audio.loop=t),this.emit(r.LOOP,this,t))}},setLoop:function(t){return this.loop=t,this}});t.exports=o},function(t,e,i){var n=i(122),s=i(0),r=i(10),o=i(381),a=i(1),h=new s({Extends:r,initialize:function(t){r.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){var i=new o(this,t,e);return this.sounds.push(i),i},addAudioSprite:function(t,e){var i=this.add(t,e);return i.spritemap={},i},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return n.prototype.remove.call(this,t)},removeByKey:function(t){return n.prototype.removeByKey.call(this,t)},pauseAll:a,resumeAll:a,stopAll:a,update:a,setRate:a,setDetune:a,setMute:a,setVolume:a,forEachActiveSound:function(t,e){n.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){n.prototype.destroy.call(this)}});t.exports=h},function(t,e,i){var n=i(123),s=i(0),r=i(10),o=i(17),a=new s({Extends:r,initialize:function(t,e,i){void 0===i&&(i={}),r.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=o({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},i),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!1},updateMarker:function(t){return!1},removeMarker:function(t){return null},play:function(t,e){return!1},pause:function(){return!1},resume:function(){return!1},stop:function(){return!1},destroy:function(){this.manager.remove(this),n.prototype.destroy.call(this)}});t.exports=a},function(t,e,i){var n=i(383),s=i(122),r=i(0),o=i(59),a=i(384),h=new r({Extends:s,initialize:function(t){this.context=this.createAudioContext(t),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked="suspended"===this.context.state&&("ontouchstart"in window||"onclick"in window),s.call(this,t),this.locked&&this.unlock()},createAudioContext:function(t){var e=t.config.audio;return e&&e.context?(e.context.resume(),e.context):new AudioContext},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){var i=new a(this,t,e);return this.sounds.push(i),i},decodeAudio:function(t,e){var i;i=Array.isArray(t)?t:[{key:t,data:e}];for(var s=this.game.cache.audio,r=i.length,a=0;a>4,u[h++]=(15&i)<<4|s>>2,u[h++]=(3&s)<<6|63&r;return l}},function(t,e,i){var n=i(123),s=i(0),r=i(59),o=new s({Extends:n,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('There is no audio asset with key "'+e+'" in the audio cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.context.createGain(),this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),this.volumeNode.connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,n.call(this,t,e,i)},play:function(t,e){return!!n.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(r.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime-1;r--)n[s][r]=t[r][s]}return n}},function(t,e){function i(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function n(t,e){return te?1:0}var s=function(t,e,r,o,a){for(void 0===r&&(r=0),void 0===o&&(o=t.length-1),void 0===a&&(a=n);o>r;){if(o-r>600){var h=o-r+1,l=e-r+1,u=Math.log(h),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(h-c)/h)*(l-h/2<0?-1:1),f=Math.max(r,Math.floor(e-l*c/h+d)),p=Math.min(o,Math.floor(e+(h-l)*c/h+d));s(t,e,f,p,a)}var g=t[e],v=r,m=o;for(i(t,r,e),a(t[o],g)>0&&i(t,r,o);v0;)m--}0===a(t[r],g)?i(t,r,m):i(t,++m,o),m<=e&&(r=m+1),e<=m&&(o=m-1)}};t.exports=s},function(t,e,i){var n=i(6),s=i(111),r=function(t,e,i){for(var n=[],s=0;s0?s.delayedPlay(d,r,o):s.load(r)}return t}},function(t,e,i){var n=i(12);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=Math.min(t.x,e.x),r=Math.min(t.y,e.y),o=Math.max(t.right,e.right)-s,a=Math.max(t.bottom,e.bottom)-r;return i.setTo(s,r,o,a)}},function(t,e,i){var n=i(0),s=i(11),r=i(952),o=i(13),a=i(7),h=i(174),l=i(21),u=i(331),c=new n({Extends:o,Mixins:[s.AlphaSingle,s.BlendMode,s.Depth,s.Origin,s.ScrollFactor,s.Transform,s.Visible,r],initialize:function(t,e,i,n,s,r){o.call(this,t,"DOMElement"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,this.rotate3dAngle="deg",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(e,i),"string"==typeof n?"#"===n[0]?this.setElement(n.substr(1),s,r):this.createElement(n,s,r):n&&this.setElement(n,s,r),t.sys.events.on(l.SLEEP,this.handleSceneEvent,this),t.sys.events.on(l.WAKE,this.handleSceneEvent,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?"block":"none")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+"px"}},addListener:function(t){if(this.node){t=t.split(" ");for(var e=0;e>>16,y=(65280&p)>>>8,x=255&p,c.strokeStyle="rgba("+m+","+y+","+x+","+d+")",c.lineWidth=v,T+=3;break;case n.FILL_STYLE:g=l[T+1],f=l[T+2],m=(16711680&g)>>>16,y=(65280&g)>>>8,x=255&g,c.fillStyle="rgba("+m+","+y+","+x+","+f+")",T+=2;break;case n.BEGIN_PATH:c.beginPath();break;case n.CLOSE_PATH:c.closePath();break;case n.FILL_PATH:h||c.fill();break;case n.STROKE_PATH:h||c.stroke();break;case n.FILL_RECT:h?c.rect(l[T+1],l[T+2],l[T+3],l[T+4]):c.fillRect(l[T+1],l[T+2],l[T+3],l[T+4]),T+=4;break;case n.FILL_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.fill(),T+=6;break;case n.STROKE_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.stroke(),T+=6;break;case n.LINE_TO:c.lineTo(l[T+1],l[T+2]),T+=2;break;case n.MOVE_TO:c.moveTo(l[T+1],l[T+2]),T+=2;break;case n.LINE_FX_TO:c.lineTo(l[T+1],l[T+2]),T+=5;break;case n.MOVE_FX_TO:c.moveTo(l[T+1],l[T+2]),T+=5;break;case n.SAVE:c.save();break;case n.RESTORE:c.restore();break;case n.TRANSLATE:c.translate(l[T+1],l[T+2]),T+=2;break;case n.SCALE:c.scale(l[T+1],l[T+2]),T+=2;break;case n.ROTATE:c.rotate(l[T+1]),T+=1;break;case n.GRADIENT_FILL_STYLE:T+=5;break;case n.GRADIENT_LINE_STYLE:T+=6;break;case n.SET_TEXTURE:T+=2}c.restore()}}},function(t,e,i){var n=i(0),s=i(2),r=new n({initialize:function(t,e,i,n,r){if("object"==typeof t){var o=t;t=s(o,"x",0),e=s(o,"y",0),i=s(o,"power",0),n=s(o,"epsilon",100),r=s(o,"gravity",50)}else void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=100),void 0===r&&(r=50);this.x=t,this.y=e,this.active=!0,this._gravity=r,this._power=0,this._epsilon=0,this.power=i,this.epsilon=n},update:function(t,e){var i=this.x-t.x,n=this.y-t.y,s=i*i+n*n;if(0!==s){var r=Math.sqrt(s);s0},resetPosition:function(){this.x=0,this.y=0},fire:function(t,e){var i=this.emitter;this.frame=i.getFrame(),i.emitZone&&i.emitZone.getPoint(this),void 0===t?(i.follow&&(this.x+=i.follow.x+i.followOffset.x),this.x+=i.x.onEmit(this,"x")):this.x+=t,void 0===e?(i.follow&&(this.y+=i.follow.y+i.followOffset.y),this.y+=i.y.onEmit(this,"y")):this.y+=e,this.life=i.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0;var n=i.speedX.onEmit(this,"speedX"),o=i.speedY?i.speedY.onEmit(this,"speedY"):n;if(i.radial){var a=s(i.angle.onEmit(this,"angle"));this.velocityX=Math.cos(a)*Math.abs(n),this.velocityY=Math.sin(a)*Math.abs(o)}else if(i.moveTo){var h=i.moveToX.onEmit(this,"moveToX"),l=i.moveToY?i.moveToY.onEmit(this,"moveToY"):h,u=Math.atan2(l-this.y,h-this.x),c=r(this.x,this.y,h,l)/(this.life/1e3);this.velocityX=Math.cos(u)*c,this.velocityY=Math.sin(u)*c}else this.velocityX=n,this.velocityY=o;i.acceleration&&(this.accelerationX=i.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=i.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=i.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=i.maxVelocityY.onEmit(this,"maxVelocityY"),this.delayCurrent=i.delay.onEmit(this,"delay"),this.scaleX=i.scaleX.onEmit(this,"scaleX"),this.scaleY=i.scaleY?i.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=i.rotate.onEmit(this,"rotate"),this.rotation=s(this.angle),this.bounce=i.bounce.onEmit(this,"bounce"),this.alpha=i.alpha.onEmit(this,"alpha"),this.tint=i.tint.onEmit(this,"tint")},computeVelocity:function(t,e,i,n){var s=this.velocityX,r=this.velocityY,o=this.accelerationX,a=this.accelerationY,h=this.maxVelocityX,l=this.maxVelocityY;s+=t.gravityX*i,r+=t.gravityY*i,o&&(s+=o*i),a&&(r+=a*i),s>h?s=h:s<-h&&(s=-h),r>l?r=l:r<-l&&(r=-l),this.velocityX=s,this.velocityY=r;for(var u=0;ue.right&&t.collideRight&&(this.x=e.right,this.velocityX*=i),this.ye.bottom&&t.collideBottom&&(this.y=e.bottom,this.velocityY*=i)},update:function(t,e,i){if(this.delayCurrent>0)return this.delayCurrent-=t,!1;var n=this.emitter,r=1-this.lifeCurrent/this.life;return this.lifeT=r,this.computeVelocity(n,t,e,i),this.x+=this.velocityX*e,this.y+=this.velocityY*e,n.bounds&&this.checkBounds(n),n.deathZone&&n.deathZone.willKill(this)?(this.lifeCurrent=0,!0):(this.scaleX=n.scaleX.onUpdate(this,"scaleX",r,this.scaleX),n.scaleY?this.scaleY=n.scaleY.onUpdate(this,"scaleY",r,this.scaleY):this.scaleY=this.scaleX,this.angle=n.rotate.onUpdate(this,"rotate",r,this.angle),this.rotation=s(this.angle),this.alpha=n.alpha.onUpdate(this,"alpha",r,this.alpha),this.tint=n.tint.onUpdate(this,"tint",r,this.tint),this.lifeCurrent-=t,this.lifeCurrent<=0)}});t.exports=o},function(t,e,i){var n=i(52),s=i(0),r=i(11),o=i(400),a=i(401),h=i(969),l=i(2),u=i(181),c=i(402),d=i(105),f=i(398),p=i(403),g=i(12),v=i(126),m=i(3),y=i(58),x=new s({Mixins:[r.BlendMode,r.Mask,r.ScrollFactor,r.Visible],initialize:function(t,e){this.manager=t,this.texture=t.texture,this.frames=[t.defaultFrame],this.defaultFrame=t.defaultFrame,this.configFastMap=["active","blendMode","collideBottom","collideLeft","collideRight","collideTop","deathCallback","deathCallbackScope","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxParticles","name","on","particleBringToTop","particleClass","radial","timeScale","trackVisible","visible"],this.configOpMap=["accelerationX","accelerationY","angle","alpha","bounce","delay","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],this.name="",this.particleClass=f,this.x=new h(e,"x",0,!0),this.y=new h(e,"y",0,!0),this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.accelerationX=new h(e,"accelerationX",0,!0),this.accelerationY=new h(e,"accelerationY",0,!0),this.maxVelocityX=new h(e,"maxVelocityX",1e4,!0),this.maxVelocityY=new h(e,"maxVelocityY",1e4,!0),this.speedX=new h(e,"speedX",0,!0),this.speedY=new h(e,"speedY",0,!0),this.moveTo=!1,this.moveToX=new h(e,"moveToX",0,!0),this.moveToY=new h(e,"moveToY",0,!0),this.bounce=new h(e,"bounce",0,!0),this.scaleX=new h(e,"scaleX",1),this.scaleY=new h(e,"scaleY",1),this.tint=new h(e,"tint",4294967295),this.alpha=new h(e,"alpha",1),this.lifespan=new h(e,"lifespan",1e3,!0),this.angle=new h(e,"angle",{min:0,max:360},!0),this.rotate=new h(e,"rotate",0),this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.quantity=new h(e,"quantity",1,!0),this.delay=new h(e,"delay",0,!0),this.frequency=0,this.on=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZone=null,this.deathZone=null,this.bounds=null,this.collideLeft=!0,this.collideRight=!0,this.collideTop=!0,this.collideBottom=!0,this.active=!0,this.visible=!0,this.blendMode=n.NORMAL,this.follow=null,this.followOffset=new m,this.trackVisible=!1,this.currentFrame=0,this.randomFrame=!0,this.frameQuantity=1,this.dead=[],this.alive=[],this._counter=0,this._frameCounter=0,e&&this.fromJSON(e)},fromJSON:function(t){if(!t)return this;var e=0,i="";for(e=0;e0&&this.getParticleCount()===this.maxParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e&&(this.emitCallbackScope=e)),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e&&(this.deathCallbackScope=e)),this},killAll:function(){for(var t=this.dead,e=this.alive;e.length>0;)t.push(e.pop());return this},forEachAlive:function(t,e){for(var i=this.alive,n=i.length,s=0;s0){var u=this.deathCallback,c=this.deathCallbackScope;for(o=h-1;o>=0;o--){var d=a[o];s.splice(d.index,1),r.push(d.particle),u&&u.call(c,d.particle),d.particle.resetPosition()}}this.on&&(0===this.frequency?this.emitParticle():this.frequency>0&&(this._counter-=e,this._counter<=0&&(this.emitParticle(),this._counter=this.frequency-Math.abs(this._counter))))},depthSortCallback:function(t,e){return t.y-e.y}});t.exports=x},function(t,e,i){var n=new(i(0))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){var e=this.source.contains(t.x,t.y);return e&&this.killOnEnter||!e&&!this.killOnEnter}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s){void 0===n&&(n=!1),void 0===s&&(s=!0),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=n,this.counter=-1,this.seamless=s,this._length=0,this._direction=0,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var t=this.points[0],e=this.points[this.points.length-1];t.x===e.x&&t.y===e.y&&this.points.pop()}var i=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=n},function(t,e){t.exports=function(t,e){for(var i=0;i0&&(s=-h.PI2+s%h.PI2):s>h.PI2?s=h.PI2:s<0&&(s=h.PI2+s%h.PI2);for(var u,c=[a+Math.cos(n)*i,l+Math.sin(n)*i];e<1;)u=s*e+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),e+=t;return u=s+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),c.push(a+Math.cos(n)*i,l+Math.sin(n)*i),this.pathIndexes=o(c),this.pathData=c,this}});t.exports=u},function(t,e,i){var n=i(0),s=i(998),r=i(64),o=i(12),a=i(31),h=new n({Extends:a,Mixins:[s],initialize:function(t,e,i,n,s,r){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Curve",n),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(e,i),void 0!==s&&this.setFillStyle(s,r),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],n=this.geom.getPoints(e),s=0;sc+v)){var m=g.getPoint((u-c)/v);o.push(m);break}c+=v}return o}},function(t,e,i){var n=i(57),s=i(56);t.exports=function(t){for(var e=t.points,i=0,r=0;r0&&r.push(i([0,0],n[0])),e=0;e1&&r.push(i([0,0],n[n.length-1])),t.setTo(r)}},function(t,e,i){var n=i(0),s=i(12),r=i(31),o=i(1019),a=new n({Extends:r,Mixins:[o],initialize:function(t,e,i,n,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=128),void 0===o&&(o=128),r.call(this,t,"Rectangle",new s(0,0,n,o)),this.setPosition(e,i),this.setSize(n,o),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=a},function(t,e,i){var n=i(1022),s=i(0),r=i(64),o=i(31),a=new s({Extends:o,Mixins:[n],initialize:function(t,e,i,n,s,r,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=5),void 0===s&&(s=32),void 0===r&&(r=64),o.call(this,t,"Star",null),this._points=n,this._innerRadius=s,this._outerRadius=r,this.setPosition(e,i),this.setSize(2*r,2*r),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,n=this._outerRadius,s=Math.PI/2*3,o=Math.PI/e,a=n,h=n;t.push(a,h+-n);for(var l=0;l=1)return i.x=r.x1,i.y=r.y1,i;var h=s(r),l=s(o),u=s(a),c=(h+l+u)*e,d=0;return ch+l?(d=(c-=h+l)/u,i.x=a.x1+(a.x2-a.x1)*d,i.y=a.y1+(a.y2-a.y1)*d):(d=(c-=h)/l,i.x=o.x1+(o.x2-o.x1)*d,i.y=o.y1+(o.y2-o.y1)*d),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]);var o=t.getLineA(),a=t.getLineB(),h=t.getLineC(),l=n(o),u=n(a),c=n(h),d=l+u+c;e||(e=d/i);for(var f=0;fl+u?(g=(p-=l+u)/c,v.x=h.x1+(h.x2-h.x1)*g,v.y=h.y1+(h.y2-h.y1)*g):(g=(p-=l)/u,v.x=a.x1+(a.x2-a.x1)*g,v.y=a.y1+(a.y2-a.y1)*g),r.push(v)}return r}},function(t,e){t.exports=function(t,e,i){if(!t||"number"==typeof t)return!1;if(t.hasOwnProperty(e))return t[e]=i,!0;if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=t,o=0;o0?(h=this.lightPool.pop()).set(t,e,i,a[0],a[1],a[2],o):h=new s(t,e,i,a[0],a[1],a[2],o),this.lights.push(h),h},removeLight:function(t){var e=this.lights.indexOf(t);return e>=0&&(this.lightPool.push(t),this.lights.splice(e,1)),this},shutdown:function(){for(;this.lights.length>0;)this.lightPool.push(this.lights.pop());this.ambientColor={r:.1,g:.1,b:.1},this.culledLights.length=0,this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=o},function(t,e,i){var n=i(46),s=i(17),r={Circle:i(1085),Ellipse:i(1095),Intersects:i(426),Line:i(1114),Point:i(1136),Polygon:i(1150),Rectangle:i(439),Triangle:i(1180)};r=s(!1,r,n),t.exports=r},function(t,e,i){t.exports={CircleToCircle:i(201),CircleToRectangle:i(202),GetCircleToCircle:i(1105),GetCircleToRectangle:i(1106),GetLineToCircle:i(203),GetLineToRectangle:i(205),GetRectangleIntersection:i(1107),GetRectangleToRectangle:i(1108),GetRectangleToTriangle:i(1109),GetTriangleToCircle:i(1110),GetTriangleToLine:i(431),GetTriangleToTriangle:i(1111),LineToCircle:i(204),LineToLine:i(83),LineToRectangle:i(427),PointToLine:i(435),PointToLineSegment:i(1112),RectangleToRectangle:i(130),RectangleToTriangle:i(428),RectangleToValues:i(1113),TriangleToCircle:i(430),TriangleToLine:i(432),TriangleToTriangle:i(433)}},function(t,e){t.exports=function(t,e){var i=t.x1,n=t.y1,s=t.x2,r=t.y2,o=e.x,a=e.y,h=e.right,l=e.bottom,u=0;if(i>=o&&i<=h&&n>=a&&n<=l||s>=o&&s<=h&&r>=a&&r<=l)return!0;if(i=o){if((u=n+(r-n)*(o-i)/(s-i))>a&&u<=l)return!0}else if(i>h&&s<=h&&(u=n+(r-n)*(h-i)/(s-i))>=a&&u<=l)return!0;if(n=a){if((u=i+(s-i)*(a-n)/(r-n))>=o&&u<=h)return!0}else if(n>l&&r<=l&&(u=i+(s-i)*(l-n)/(r-n))>=o&&u<=h)return!0;return!1}},function(t,e,i){var n=i(83),s=i(47),r=i(206),o=i(429);t.exports=function(t,e){if(e.left>t.right||e.rightt.bottom||e.bottom0}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},function(t,e,i){var n=i(204),s=i(82);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottome.right||t.righte.bottom||t.bottom0||(c=s(e),(d=n(t,c,!0)).length>0)}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},function(t,e){t.exports=function(t,e,i){void 0===i&&(i=1);var n=e.x1,s=e.y1,r=e.x2,o=e.y2,a=t.x,h=t.y,l=(r-n)*(r-n)+(o-s)*(o-s);if(0===l)return!1;var u=((a-n)*(r-n)+(h-s)*(o-s))/l;if(u<0)return Math.sqrt((n-a)*(n-a)+(s-h)*(s-h))<=i;if(u>=0&&u<=1){var c=((s-h)*(r-n)-(n-a)*(o-s))/l;return Math.abs(c)*Math.sqrt(l)<=i}return Math.sqrt((r-a)*(r-a)+(o-h)*(o-h))<=i}},function(t,e,i){var n=i(15),s=i(58),r=i(84);t.exports=function(t){var e=r(t)-n.TAU;return s(e,-Math.PI,Math.PI)}},function(t,e){t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},function(t,e){t.exports=function(t){return t.x*t.x+t.y*t.y}},function(t,e,i){var n=i(12);n.Area=i(1155),n.Ceil=i(1156),n.CeilAll=i(1157),n.CenterOn=i(163),n.Clone=i(1158),n.Contains=i(47),n.ContainsPoint=i(1159),n.ContainsRect=i(440),n.CopyFrom=i(1160),n.Decompose=i(429),n.Equals=i(1161),n.FitInside=i(1162),n.FitOutside=i(1163),n.Floor=i(1164),n.FloorAll=i(1165),n.FromPoints=i(172),n.GetAspectRatio=i(208),n.GetCenter=i(1166),n.GetPoint=i(147),n.GetPoints=i(271),n.GetSize=i(1167),n.Inflate=i(1168),n.Intersection=i(1169),n.MarchingAnts=i(282),n.MergePoints=i(1170),n.MergeRect=i(1171),n.MergeXY=i(1172),n.Offset=i(1173),n.OffsetPoint=i(1174),n.Overlaps=i(1175),n.Perimeter=i(109),n.PerimeterPoint=i(1176),n.Random=i(150),n.RandomOutside=i(1177),n.SameDimensions=i(1178),n.Scale=i(1179),n.Union=i(389),t.exports=n},function(t,e){t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(s.BUTTON_DOWN,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(s.BUTTON_UP,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=r},function(t,e,i){var n=i(445),s=i(446),r=i(0),o=i(10),a=i(3),h=new r({Extends:o,initialize:function(t,e){o.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],r=0;r=2&&(this.leftStick.set(r[0].getValue(),r[1].getValue()),s>=4&&this.rightStick.set(r[2].getValue(),r[3].getValue()))},destroy:function(){var t;for(this.removeAllListeners(),this.manager=null,this.pad=null,t=0;t=r;for(i=0;i=r;)this._elapsed-=r,this.step(s)}},step:function(t){var e,i,n=this.bodies.entries,s=n.length;for(e=0;e0){var l=this.tree,u=this.staticTree;for(n=(i=h.entries).length,t=0;t-1&&p>g&&(t.velocity.normalize().scale(g),p=g),t.speed=p},separate:function(t,e,i,n,s){if(!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e))return!1;if(i&&!1===i.call(n,t.gameObject,e.gameObject))return!1;if(t.isCircle&&e.isCircle)return this.separateCircle(t,e,s);if(t.isCircle!==e.isCircle){var r=t.isCircle?e:t,o=t.isCircle?t:e,a={x:r.x,y:r.y,right:r.right,bottom:r.bottom},h=o.center;if((h.ya.bottom)&&(h.xa.right))return this.separateCircle(t,e,s)}var l=!1,c=!1;this.forceX||Math.abs(this.gravity.y+t.gravity.y)r.right&&(s=h(o.x,o.y,r.right,r.y)-o.radius):o.y>r.bottom&&(o.xr.right&&(s=h(o.x,o.y,r.right,r.bottom)-o.radius)),s*=-1}else s=t.halfWidth+e.halfWidth-h(t.center.x,t.center.y,e.center.x,e.center.y);if(i||0===s||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==s&&(t.onOverlap||e.onOverlap)&&this.emit(u.OVERLAP,t.gameObject,e.gameObject,t,e),0!==s;var a=t.center.x-e.center.x,l=t.center.y-e.center.y,c=Math.sqrt(Math.pow(a,2)+Math.pow(l,2)),d=(e.center.x-t.center.x)/c||0,f=(e.center.y-t.center.y)/c||0,v=2*(t.velocity.x*d+t.velocity.y*f-e.velocity.x*d-e.velocity.y*f)/(t.mass+e.mass);t.immovable||(t.velocity.x=t.velocity.x-v*t.mass*d,t.velocity.y=t.velocity.y-v*t.mass*f),e.immovable||(e.velocity.x=e.velocity.x+v*e.mass*d,e.velocity.y=e.velocity.y+v*e.mass*f);var m=e.velocity.x-t.velocity.x,y=e.velocity.y-t.velocity.y,x=Math.atan2(y,m),T=this._frameTime;return t.immovable||e.immovable||(s/=2),t.immovable||(t.x+=t.velocity.x*T-s*Math.cos(x),t.y+=t.velocity.y*T-s*Math.sin(x)),e.immovable||(e.x+=e.velocity.x*T+s*Math.cos(x),e.y+=e.velocity.y*T+s*Math.sin(x)),t.velocity.x*=t.bounce.x,t.velocity.y*=t.bounce.y,e.velocity.x*=e.bounce.x,e.velocity.y*=e.bounce.y,(t.onCollide||e.onCollide)&&this.emit(u.COLLIDE,t.gameObject,e.gameObject,t,e),!0},intersects:function(t,e){return t!==e&&(t.isCircle||e.isCircle?t.isCircle?e.isCircle?h(t.center.x,t.center.y,e.center.x,e.center.y)<=t.halfWidth+e.halfWidth:this.circleBodyIntersects(t,e):this.circleBodyIntersects(e,t):!(t.right<=e.position.x||t.bottom<=e.position.y||t.position.x>=e.right||t.position.y>=e.bottom))},circleBodyIntersects:function(t,e){var i=s(t.center.x,e.left,e.right),n=s(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-n)*(t.center.y-n)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!0)},collide:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!1)},collideObjects:function(t,e,i,n,s,r){var o,a;t.isParent&&void 0===t.physicsType&&(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var h=Array.isArray(t),l=Array.isArray(e);if(this._total=0,h||l)if(!h&&l)for(o=0;o0},collideHandler:function(t,e,i,n,s,r){if(void 0===e&&t.isParent)return this.collideGroupVsGroup(t,t,i,n,s,r);if(!t||!e)return!1;if(t.body){if(e.body)return this.collideSpriteVsSprite(t,e,i,n,s,r);if(e.isParent)return this.collideSpriteVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideSpriteVsTilemapLayer(t,e,i,n,s,r)}else if(t.isParent){if(e.body)return this.collideSpriteVsGroup(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideGroupVsTilemapLayer(t,e,i,n,s,r)}else if(t.isTilemap){if(e.body)return this.collideSpriteVsTilemapLayer(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsTilemapLayer(e,t,i,n,s,r)}},collideSpriteVsSprite:function(t,e,i,n,s,r){return!(!t.body||!e.body)&&(this.separate(t.body,e.body,n,s,r)&&(i&&i.call(s,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,n,s,r){var o,h,l,u=t.body;if(0!==e.length&&u&&u.enable)if(this.useTree){var c=this.treeMinMax;c.minX=u.left,c.minY=u.top,c.maxX=u.right,c.maxY=u.bottom;var d=e.physicsType===a.DYNAMIC_BODY?this.tree.search(c):this.staticTree.search(c);for(h=d.length,o=0;oc.baseTileWidth){var d=(c.tileWidth-c.baseTileWidth)*e.scaleX;a-=d,l+=d}c.tileHeight>c.baseTileHeight&&(u+=(c.tileHeight-c.baseTileHeight)*e.scaleY);var f=e.getTilesWithinWorldXY(a,h,l,u);return 0!==f.length&&this.collideSpriteVsTilesHandler(t,f,i,n,s,r,!0)},collideSpriteVsTilesHandler:function(t,e,i,n,s,r,o){for(var a,h,l=t.body,c={left:0,right:0,top:0,bottom:0},d=!1,f=0;f0&&t>i&&(t=i)),0!==n&&0!==e&&(e<0&&e<-n?e=-n:e>0&&e>n&&(e=n)),this.gameObject.x+=t,this.gameObject.y+=e}t<0?this.facing=s.FACING_LEFT:t>0&&(this.facing=s.FACING_RIGHT),e<0?this.facing=s.FACING_UP:e>0&&(this.facing=s.FACING_DOWN),this.allowRotation&&(this.gameObject.angle+=this.deltaZ()),this._tx=t,this._ty=e},setBoundsRectangle:function(t){return this.customBoundsRectangle=t||this.world.bounds,this},checkWorldBounds:function(){var t=this.position,e=this.customBoundsRectangle,i=this.world.checkCollision,n=this.worldBounce?-this.worldBounce.x:-this.bounce.x,s=this.worldBounce?-this.worldBounce.y:-this.bounce.y,r=!1;return t.xe.right&&i.right&&(t.x=e.right-this.width,this.velocity.x*=n,this.blocked.right=!0,r=!0),t.ye.bottom&&i.down&&(t.y=e.bottom-this.height,this.velocity.y*=s,this.blocked.down=!0,r=!0),r&&(this.blocked.none=!1),r},setOffset:function(t,e){return void 0===e&&(e=t),this.offset.set(t,e),this.updateCenter(),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&n.getCenter){var s=(n.width-t)/2,r=(n.height-e)/2;this.offset.set(s,r)}return this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter()):this.isCircle=!1,this},reset:function(t,e){this.stop();var i=this.gameObject;i.setPosition(t,e),i.getTopLeft?i.getTopLeft(this.position):this.position.set(t,e),this.prev.copy(this.position),this.prevFrame.copy(this.position),this.rotation=i.angle,this.preRotation=i.angle,this.updateBounds(),this.updateCenter()},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?this.radius>0&&t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:h(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this._dx>0?this._dx:-this._dx},deltaAbsY:function(){return this._dy>0?this._dy:-this._dy},deltaX:function(){return this._dx},deltaY:function(){return this._dy},deltaXFinal:function(){return this._tx},deltaYFinal:function(){return this._ty},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.enable=!1,this.world&&this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor),this.isCircle?t.strokeCircle(i,n,this.width/2):(this.checkCollision.up&&t.lineBetween(e.x,e.y,e.x+this.width,e.y),this.checkCollision.right&&t.lineBetween(e.x+this.width,e.y,e.x+this.width,e.y+this.height),this.checkCollision.down&&t.lineBetween(e.x,e.y+this.height,e.x+this.width,e.y+this.height),this.checkCollision.left&&t.lineBetween(e.x,e.y,e.x,e.y+this.height))),this.debugShowVelocity&&(t.lineStyle(t.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),t.lineBetween(i,n,i+this.velocity.x/2,n+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setCollideWorldBounds:function(t,e,i){void 0===t&&(t=!0),this.collideWorldBounds=t;var n=void 0!==e,s=void 0!==i;return(n||s)&&(this.worldBounce||(this.worldBounce=new l),n&&(this.worldBounce.x=e),s&&(this.worldBounce.y=i)),this},setVelocity:function(t,e){return this.velocity.set(t,e),t=this.velocity.x,e=this.velocity.y,this.speed=Math.sqrt(t*t+e*e),this},setVelocityX:function(t){this.velocity.x=t;var e=t,i=this.velocity.y;return this.speed=Math.sqrt(e*e+i*i),this},setVelocityY:function(t){this.velocity.y=t;var e=this.velocity.x,i=t;return this.speed=Math.sqrt(e*e+i*i),this},setMaxVelocity:function(t,e){return this.maxVelocity.set(t,e),this},setMaxSpeed:function(t){return this.maxSpeed=t,this},setBounce:function(t,e){return this.bounce.set(t,e),this},setBounceX:function(t){return this.bounce.x=t,this},setBounceY:function(t){return this.bounce.y=t,this},setAcceleration:function(t,e){return this.acceleration.set(t,e),this},setAccelerationX:function(t){return this.acceleration.x=t,this},setAccelerationY:function(t){return this.acceleration.y=t,this},setAllowDrag:function(t){return void 0===t&&(t=!0),this.allowDrag=t,this},setAllowGravity:function(t){return void 0===t&&(t=!0),this.allowGravity=t,this},setAllowRotation:function(t){return void 0===t&&(t=!0),this.allowRotation=t,this},setDrag:function(t,e){return this.drag.set(t,e),this},setDragX:function(t){return this.drag.x=t,this},setDragY:function(t){return this.drag.y=t,this},setGravity:function(t,e){return this.gravity.set(t,e),this},setGravityX:function(t){return this.gravity.x=t,this},setGravityY:function(t){return this.gravity.y=t,this},setFriction:function(t,e){return this.friction.set(t,e),this},setFrictionX:function(t){return this.friction.x=t,this},setFrictionY:function(t){return this.friction.y=t,this},setAngularVelocity:function(t){return this.angularVelocity=t,this},setAngularAcceleration:function(t){return this.angularAcceleration=t,this},setAngularDrag:function(t){return this.angularDrag=t,this},setMass:function(t){return this.mass=t,this},setImmovable:function(t){return void 0===t&&(t=!0),this.immovable=t,this},setEnable:function(t){return void 0===t&&(t=!0),this.enable=t,this},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=u},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=n,this.collideCallback=s,this.processCallback=r,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=n},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsX()+e.deltaAbsX()+s;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(r=t.right-e.x)>o&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?r=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.right=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.left=!0)):t._dxo&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?r=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.left=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=r,e.overlapX=r,r}},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsY()+e.deltaAbsY()+s;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(r=t.bottom-e.y)>o&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?r=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.down=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.up=!0)):t._dyo&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?r=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.up=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=r,e.overlapY=r,r}},function(t,e,i){var n=i(386);function s(t){if(!(this instanceof s))return new s(t,[".left",".top",".right",".bottom"]);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function r(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,i,s,r){for(var o,a=[e,i];a.length;)(i=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((i-e)/s/2)*s,n(t,o,e,i,r),a.push(e,o,o,i))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!p(t,e))return i;for(var s,r,o,a,h=[];e;){for(s=0,r=e.children.length;s=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(s,r,e)},_split:function(t,e){var i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);var r=this._chooseSplitIndex(i,s,n),a=g(i.children.splice(r,i.children.length-r));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var n,s,r,o,h,l,u,d,f,p,g,v,m,y;for(l=u=1/0,n=e;n<=i-e;n++)s=a(t,0,n,this.toBBox),r=a(t,n,i,this.toBBox),f=s,p=r,void 0,void 0,void 0,void 0,g=Math.max(f.minX,p.minX),v=Math.max(f.minY,p.minY),m=Math.min(f.maxX,p.maxX),y=Math.min(f.maxY,p.maxY),o=Math.max(0,m-g)*Math.max(0,y-v),h=c(s)+c(r),o=e;s--)r=t.children[s],h(u,t.leaf?o(r):r),c+=d(u);return c},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)h(e[n],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():o(t[i],this.toBBox)},compareMinX:function(t,e){return t.left-e.left},compareMinY:function(t,e){return t.top-e.top},toBBox:function(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}},t.exports=s},function(t,e){t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},function(t,e,i){var n=i(55),s=i(0),r=i(50),o=i(47),a=i(3),h=new s({initialize:function(t,e){var i=e.displayWidth?e.displayWidth:64,n=e.displayHeight?e.displayHeight:64;this.world=t,this.gameObject=e,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new a,this.position=new a(e.x-e.displayOriginX,e.y-e.displayOriginY),this.width=i,this.height=n,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new a(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=a.ZERO,this.allowGravity=!1,this.gravity=a.ZERO,this.bounce=a.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.physicsType=r.STATIC_BODY,this._dx=0,this._dy=0},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,t.body=this,this.gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&n.getCenter){var s=n.displayWidth/2,r=n.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(s-this.halfWidth,r-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y}return this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=t,this.width=2*t,this.height=2*t,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter(),this.world.staticTree.insert(this)):this.isCircle=!1,this},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},reset:function(t,e){var i=this.gameObject;void 0===t&&(t=i.x),void 0===e&&(e=i.y),this.world.staticTree.remove(this),i.setPosition(t,e),i.getTopLeft(this.position),this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?n(this,t,e):o(this,t,e)},postUpdate:function(){},deltaAbsX:function(){return 0},deltaAbsY:function(){return 0},deltaX:function(){return 0},deltaY:function(){return 0},deltaZ:function(){return 0},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?t.strokeCircle(i,n,this.width/2):t.strokeRect(e.x,e.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(t){return t<=0&&(t=.1),this.mass=t,this},x:{get:function(){return this.position.x},set:function(t){this.world.staticTree.remove(this),this.position.x=t,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(t){this.world.staticTree.remove(this),this.position.y=t,this.world.staticTree.insert(this)}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=h},,function(t,e,i){var n=new(i(0))({initialize:function(t){this.pluginManager=t,this.game=t.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=n},function(t,e){t.exports=function(t,e,i){var n=i.orientation,s=i.baseTileWidth,r=i.tilemapLayer,o=0;return r&&(void 0===e&&(e=r.scene.cameras.main),o=r.x+e.scrollX*(1-r.scrollFactorX),s*=r.scaleX),"orthogonal"===n?o+t*s:"isometric"===n?(console.warn("With isometric map types you have to use the TileToWorldXY function."),null):void 0}},function(t,e){t.exports=function(t,e,i){var n=i.orientation,s=i.baseTileHeight,r=i.tilemapLayer,o=0;return r&&(void 0===e&&(e=r.scene.cameras.main),o=r.y+e.scrollY*(1-r.scrollFactorY),s*=r.scaleY),"orthogonal"===n?o+t*s:"isometric"===n?(console.warn("With isometric map types you have to use the TileToWorldXY function."),null):void 0}},function(t,e,i){var n=i(24);t.exports=function(t,e,i,s,r,o,a){for(var h=n(i,s,r,o,null,a),l=0;l-1}return!1}},function(t,e,i){var n=i(73),s=i(100),r=i(216);t.exports=function(t,e,i,o,a){if(void 0===i&&(i=!1),void 0===o&&(o=!0),!s(t,e,a))return null;var h=a.data[e][t];return h?(a.data[e][t]=i?null:new n(a,-1,t,e,a.tileWidth,a.tileHeight),o&&h&&h.collides&&r(t,e,a),h):null}},function(t,e,i){var n=i(33),s=i(220),r=i(478),o=i(479),a=i(490);t.exports=function(t,e,i,h,l,u){var c;switch(e){case n.ARRAY_2D:c=s(t,i,h,l,u);break;case n.CSV:c=r(t,i,h,l,u);break;case n.TILED_JSON:c=o(t,i,u);break;case n.WELTMEISTER:c=a(t,i,u);break;default:console.warn("Unrecognized tilemap data format: "+e),c=null}return c}},function(t,e,i){var n=i(33),s=i(220);t.exports=function(t,e,i,r,o){var a=e.trim().split("\n").map(function(t){return t.split(",")}),h=s(t,a,i,r,o);return h.format=n.CSV,h}},function(t,e,i){var n=i(33),s=i(102),r=i(480),o=i(482),a=i(483),h=i(486),l=i(488),u=i(489);t.exports=function(t,e,i){if("isometric"===e.orientation)console.warn("isometric map types are WIP in this version of Phaser");else if("orthogonal"!==e.orientation)return console.warn("Only orthogonal map types are supported in this version of Phaser"),null;var c=new s({width:e.width,height:e.height,name:t,tileWidth:e.tilewidth,tileHeight:e.tileheight,orientation:e.orientation,format:n.TILED_JSON,version:e.version,properties:e.properties,renderOrder:e.renderorder,infinite:e.infinite});c.layers=r(e,i),c.images=o(e);var d=a(e);return c.tilesets=d.tilesets,c.imageCollections=d.imageCollections,c.objects=h(e),c.tiles=l(c),u(c),c}},function(t,e,i){var n=i(481),s=i(2),r=i(101),o=i(221),a=i(73),h=i(222);t.exports=function(t,e){for(var i=s(t,"infinite",!1),l=[],u=[],c=h(t);c.i0;)if(c.i>=c.layers.length){if(u.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}c=u.pop()}else{var d=c.layers[c.i];if(c.i++,"tilelayer"===d.type)if(d.compression)console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+d.name+"'");else{if(d.encoding&&"base64"===d.encoding){if(d.chunks)for(var f=0;f0?((v=new a(p,g.gid,P,R,t.tilewidth,t.tileheight)).rotation=g.rotation,v.flipX=g.flipped,y[R][P]=v):(m=e?null:new a(p,-1,P,R,t.tilewidth,t.tileheight),y[R][P]=m),++x===b.width&&(C++,x=0)}}else{p=new r({name:c.name+d.name,x:c.x+s(d,"offsetx",0)+d.x,y:c.y+s(d,"offsety",0)+d.y,width:d.width,height:d.height,tileWidth:t.tilewidth,tileHeight:t.tileheight,alpha:c.opacity*d.opacity,visible:c.visible&&d.visible,properties:s(d,"properties",{}),orientation:t.orientation});for(var L=[],D=0,F=d.data.length;D0?((v=new a(p,g.gid,x,y.length,t.tilewidth,t.tileheight)).rotation=g.rotation,v.flipX=g.flipped,L.push(v)):(m=e?null:new a(p,-1,x,y.length,t.tilewidth,t.tileheight),L.push(m)),++x===d.width&&(y.push(L),x=0,L=[])}p.data=y,l.push(p)}else if("group"===d.type){var k=h(t,d,c);u.push(c),c=k}}return l}},function(t,e){t.exports=function(t){for(var e=window.atob(t),i=e.length,n=new Array(i/4),s=0;s>>0;return n}},function(t,e,i){var n=i(2),s=i(222);t.exports=function(t){for(var e=[],i=[],r=s(t);r.i0;)if(r.i>=r.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}r=i.pop()}else{var o=r.layers[r.i];if(r.i++,"imagelayer"===o.type){var a=n(o,"offsetx",0)+n(o,"startx",0),h=n(o,"offsety",0)+n(o,"starty",0);e.push({name:r.name+o.name,image:o.image,x:r.x+a+o.x,y:r.y+h+o.y,alpha:r.opacity*o.opacity,visible:r.visible&&o.visible,properties:n(o,"properties",{})})}else if("group"===o.type){var l=s(t,o,r);i.push(r),r=l}}return e}},function(t,e,i){var n=i(138),s=i(484),r=i(223);t.exports=function(t){for(var e,i=[],o=[],a=null,h=0;h1){if(Array.isArray(l.tiles)){for(var c={},d={},f=0;f=this.firstgid&&t0;)if(a.i>=a.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}a=i.pop()}else{var h=a.layers[a.i];if(a.i++,h.opacity*=a.opacity,h.visible=a.visible&&h.visible,"objectgroup"===h.type){h.name=a.name+h.name;for(var l=a.x+n(h,"startx",0)+n(h,"offsetx",0),u=a.y+n(h,"starty",0)+n(h,"offsety",0),c=[],d=0;da&&(a=e.layer[l].width),e.layer[l].height>h&&(h=e.layer[l].height);var u=new s({width:a,height:h,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:n.WELTMEISTER});return u.layers=r(e,i),u.tilesets=o(e),u}},function(t,e,i){var n=i(101),s=i(73);t.exports=function(t,e){for(var i=[],r=0;r-1?new s(a,f,c,u,o.tilesize,o.tilesize):e?null:new s(a,-1,c,u,o.tilesize,o.tilesize),h.push(d)}l.push(h),h=[]}a.data=l,i.push(a)}return i}},function(t,e,i){var n=i(138);t.exports=function(t){for(var e=[],i=[],s=0;s-1&&(this.renderOrder=t),this},addTilesetImage:function(t,e,i,n,s,r,o){if(void 0===t)return null;if(void 0!==e&&null!==e||(e=t),!this.scene.sys.textures.exists(e))return console.warn("Invalid Tileset Image: "+e),null;var h=this.scene.sys.textures.get(e),l=this.getTilesetIndex(t);if(null===l&&this.format===a.TILED_JSON)return console.warn("No data found for Tileset: "+t),null;var u=this.tilesets[l];return u?(u.setTileSize(i,n),u.setSpacing(s,r),u.setImage(h),u):(void 0===i&&(i=this.tileWidth),void 0===n&&(n=this.tileHeight),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o=0),(u=new p(t,o,i,n,s,r)).setImage(h),this.tilesets.push(u),u)},convertLayerToStatic:function(t){if(null===(t=this.getLayer(t)))return null;var e=t.tilemapLayer;if(!(e&&e instanceof r))return null;var i=new c(e.scene,e.tilemap,e.layerIndex,e.tileset,e.x,e.y);return this.scene.sys.displayList.add(i),e.destroy(),i},copy:function(t,e,i,n,s,r,o,a){return a=this.getLayer(a),this._isStaticCall(a,"copy")?this:null!==a?(f.Copy(t,e,i,n,s,r,o,a),this):null},createBlankDynamicLayer:function(t,e,i,n,s,o,a,l){if(void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.width),void 0===o&&(o=this.height),void 0===a&&(a=this.tileWidth),void 0===l&&(l=this.tileHeight),null!==this.getLayerIndex(t))return console.warn("Invalid Tilemap Layer ID: "+t),null;for(var u,c=new h({name:t,tileWidth:a,tileHeight:l,width:s,height:o,orientation:this.orientation}),f=0;f-1&&this.putTileAt(e,r.x,r.y,i,r.tilemapLayer)}return n},removeTileAt:function(t,e,i,n,s){return s=this.getLayer(s),this._isStaticCall(s,"removeTileAt")?null:null===s?null:f.RemoveTileAt(t,e,i,n,s)},removeTileAtWorldXY:function(t,e,i,n,s,r){return r=this.getLayer(r),this._isStaticCall(r,"removeTileAtWorldXY")?null:null===r?null:f.RemoveTileAtWorldXY(t,e,i,n,s,r)},renderDebug:function(t,e,i){return null===(i=this.getLayer(i))?null:(f.RenderDebug(t,e,i),this)},renderDebugFull:function(t,e){for(var i=this.layers,n=0;n=0&&t<4&&(this._renderOrder=t),this},calculateFacesAt:function(t,e){return a.CalculateFacesAt(t,e,this.layer),this},calculateFacesWithin:function(t,e,i,n){return a.CalculateFacesWithin(t,e,i,n,this.layer),this},createFromTiles:function(t,e,i,n,s){return a.CreateFromTiles(t,e,i,n,s,this.layer)},cull:function(t){return this.cullCallback(this.layer,t,this.culledTiles,this._renderOrder)},copy:function(t,e,i,n,s,r,o){return a.Copy(t,e,i,n,s,r,o,this.layer),this},destroy:function(t){void 0===t&&(t=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),t&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],o.prototype.destroy.call(this))},fill:function(t,e,i,n,s,r){return a.Fill(t,e,i,n,s,r,this.layer),this},filterTiles:function(t,e,i,n,s,r,o){return a.FilterTiles(t,e,i,n,s,r,o,this.layer)},findByIndex:function(t,e,i){return a.FindByIndex(t,e,i,this.layer)},findTile:function(t,e,i,n,s,r,o){return a.FindTile(t,e,i,n,s,r,o,this.layer)},forEachTile:function(t,e,i,n,s,r,o){return a.ForEachTile(t,e,i,n,s,r,o,this.layer),this},getTileAt:function(t,e,i){return a.GetTileAt(t,e,i,this.layer)},getTileAtWorldXY:function(t,e,i,n){return a.GetTileAtWorldXY(t,e,i,n,this.layer)},getTilesWithin:function(t,e,i,n,s){return a.GetTilesWithin(t,e,i,n,s,this.layer)},getTilesWithinShape:function(t,e,i){return a.GetTilesWithinShape(t,e,i,this.layer)},getTilesWithinWorldXY:function(t,e,i,n,s,r){return a.GetTilesWithinWorldXY(t,e,i,n,s,r,this.layer)},hasTileAt:function(t,e){return a.HasTileAt(t,e,this.layer)},hasTileAtWorldXY:function(t,e,i){return a.HasTileAtWorldXY(t,e,i,this.layer)},putTileAt:function(t,e,i,n){return a.PutTileAt(t,e,i,n,this.layer)},putTileAtWorldXY:function(t,e,i,n,s){return a.PutTileAtWorldXY(t,e,i,n,s,this.layer)},putTilesAt:function(t,e,i,n){return a.PutTilesAt(t,e,i,n,this.layer),this},randomize:function(t,e,i,n,s){return a.Randomize(t,e,i,n,s,this.layer),this},removeTileAt:function(t,e,i,n){return a.RemoveTileAt(t,e,i,n,this.layer)},removeTileAtWorldXY:function(t,e,i,n,s){return a.RemoveTileAtWorldXY(t,e,i,n,s,this.layer)},renderDebug:function(t,e){return a.RenderDebug(t,e,this.layer),this},replaceByIndex:function(t,e,i,n,s,r){return a.ReplaceByIndex(t,e,i,n,s,r,this.layer),this},setSkipCull:function(t){return void 0===t&&(t=!0),this.skipCull=t,this},setCullPadding:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=1),this.cullPaddingX=t,this.cullPaddingY=e,this},setCollision:function(t,e,i,n){return a.SetCollision(t,e,i,this.layer,n),this},setCollisionBetween:function(t,e,i,n){return a.SetCollisionBetween(t,e,i,n,this.layer),this},setCollisionByProperty:function(t,e,i){return a.SetCollisionByProperty(t,e,i,this.layer),this},setCollisionByExclusion:function(t,e,i){return a.SetCollisionByExclusion(t,e,i,this.layer),this},setCollisionFromCollisionGroup:function(t,e){return a.SetCollisionFromCollisionGroup(t,e,this.layer),this},setTileIndexCallback:function(t,e,i){return a.SetTileIndexCallback(t,e,i,this.layer),this},setTileLocationCallback:function(t,e,i,n,s,r){return a.SetTileLocationCallback(t,e,i,n,s,r,this.layer),this},shuffle:function(t,e,i,n){return a.Shuffle(t,e,i,n,this.layer),this},swapByIndex:function(t,e,i,n,s,r){return a.SwapByIndex(t,e,i,n,s,r,this.layer),this},tileToWorldX:function(t,e){return a.TileToWorldX(t,e,this.layer)},tileToWorldY:function(t,e){return a.TileToWorldY(t,e,this.layer)},tileToWorldXY:function(t,e,i,n){return a.TileToWorldXY(t,e,i,n,this.layer)},weightedRandomize:function(t,e,i,n,s){return a.WeightedRandomize(t,e,i,n,s,this.layer),this},worldToTileX:function(t,e,i){return a.WorldToTileX(t,e,i,this.layer)},worldToTileY:function(t,e,i){return a.WorldToTileY(t,e,i,this.layer)},worldToTileXY:function(t,e,i,n,s){return a.WorldToTileXY(t,e,i,n,s,this.layer)}});t.exports=h},function(t,e,i){var n=i(0),s=i(11),r=i(18),o=i(13),a=i(1340),h=i(136),l=i(30),u=i(9),c=new n({Extends:o,Mixins:[s.Alpha,s.BlendMode,s.ComputedSize,s.Depth,s.Flip,s.GetBounds,s.Origin,s.Pipeline,s.Transform,s.Visible,s.ScrollFactor,a],initialize:function(t,e,i,n,s,a){o.call(this,t,"StaticTilemapLayer"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],this.layer.tilemapLayer=this,this.tileset=[],this.culledTiles=[],this.skipCull=!1,this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=h.CullTiles,this.renderer=t.sys.game.renderer,this.vertexBuffer=[],this.bufferData=[],this.vertexViewF32=[],this.vertexViewU32=[],this.dirty=[],this.vertexCount=[],this._renderOrder=0,this._tempMatrix=new l,this.gidMap=[],this.setTilesets(n),this.setAlpha(this.layer.alpha),this.setPosition(s,a),this.setOrigin(),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.updateVBOData(),this.initPipeline("TextureTintPipeline"),t.sys.game.events.on(r.CONTEXT_RESTORED,function(){this.updateVBOData()},this)},setTilesets:function(t){var e=[],i=[],n=this.tilemap;Array.isArray(t)||(t=[t]);for(var s=0;sv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(1===p)for(o=0;o=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(2===p)for(o=u-1;o>=0;o--)for(a=0;av||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(3===p)for(o=u-1;o>=0;o--)for(a=l-1;a>=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));this.dirty[e]=!1,null===m?(m=i.createVertexBuffer(y,n.STATIC_DRAW),this.vertexBuffer[e]=m):(i.setVertexBuffer(m),n.bufferSubData(n.ARRAY_BUFFER,0,y))}return this},batchTile:function(t,e,i,n,s,r,o){var a=i.getTileTextureCoordinates(e.index);if(!a)return t;var h=i.tileWidth,l=i.tileHeight,c=h/2,d=l/2,f=a.x/n,p=a.y/s,g=(a.x+h)/n,v=(a.y+l)/s,m=this._tempMatrix,y=-c,x=-d;e.flipX&&(h*=-1,y+=i.tileWidth),e.flipY&&(l*=-1,x+=i.tileHeight);var T=y+h,w=x+l;m.applyITRS(c+e.pixelX,d+e.pixelY,e.rotation,1,1);var E=u.getTintAppendFloatAlpha(16777215,r.alpha*this.alpha*e.alpha),_=m.getX(y,x),b=m.getY(y,x),A=m.getX(y,w),S=m.getY(y,w),C=m.getX(T,w),M=m.getY(T,w),O=m.getX(T,x),P=m.getY(T,x);r.roundPixels&&(_=Math.round(_),b=Math.round(b),A=Math.round(A),S=Math.round(S),C=Math.round(C),M=Math.round(M),O=Math.round(O),P=Math.round(P));var R=this.vertexViewF32[o],L=this.vertexViewU32[o];return R[++t]=_,R[++t]=b,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=E,R[++t]=A,R[++t]=S,R[++t]=f,R[++t]=v,R[++t]=0,L[++t]=E,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=E,R[++t]=_,R[++t]=b,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=E,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=E,R[++t]=O,R[++t]=P,R[++t]=g,R[++t]=p,R[++t]=0,L[++t]=E,this.vertexCount[o]+=6,t},setRenderOrder:function(t){if("string"==typeof t&&(t=["right-down","left-down","right-up","left-up"].indexOf(t)),t>=0&&t<4){this._renderOrder=t;for(var e=0;e0){var t=this.delay+this.delay*this.repeat;return(this.elapsed+this.delay*(this.repeat-this.repeatCount))/t}return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return.001*this.elapsed},remove:function(t){void 0===t&&(t=!1),this.elapsed=this.delay,this.hasDispatched=!t,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});t.exports=r},function(t,e,i){var n=i(1349);t.exports=function(t){var e,i=[];if(t.hasOwnProperty("props"))for(e in t.props)"_"!==e.substr(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===n.indexOf(e)&&"_"!==e.substr(0,1)&&i.push({key:e,value:t[e]});return i}},function(t,e,i){var n=i(6);t.exports=function(t){var e=n(t,"tweens",null);return null===e?[]:("function"==typeof e&&(e=e.call()),Array.isArray(e)||(e=[e]),e)}},function(t,e,i){var n=i(227),s=i(14),r=i(87),o=i(67),a=i(139),h=i(6),l=i(226),u=i(228),c=i(230);t.exports=function(t,e,i){void 0===i&&(i=n);var d=h(e,"from",0),f=h(e,"to",1),p=[{value:d}],g=a(e,"delay",i.delay),v=a(e,"duration",i.duration),m=h(e,"easeParams",i.easeParams),y=o(h(e,"ease",i.ease),m),x=a(e,"hold",i.hold),T=a(e,"repeat",i.repeat),w=a(e,"repeatDelay",i.repeatDelay),E=r(e,"yoyo",i.yoyo),_=[],b=l("value",f),A=c(p[0],0,"value",b.getEnd,b.getStart,b.getActive,y,g,v,E,x,T,w,!1,!1);A.start=d,A.current=d,A.to=f,_.push(A);var S=new u(t,_,p);S.offset=s(e,"offset",null),S.completeDelay=s(e,"completeDelay",0),S.loop=Math.round(s(e,"loop",0)),S.loopDelay=Math.round(s(e,"loopDelay",0)),S.paused=r(e,"paused",!1),S.useFrames=r(e,"useFrames",!1);for(var C=h(e,"callbackScope",S),M=[S,null],O=u.TYPES,P=0;Pb&&(b=C),_[A][S]=C}}}var M=o?n(o):null;return a?function(t,e,n,s){var r,o=0,a=s%m,h=Math.floor(s/m);if(a>=0&&a=0&&h0?Math.floor(v/p.length):h(e,"duration",g.duration),g.delay=h(e,"delay",g.delay),g.easeParams=c(e,"easeParams",g.easeParams),g.ease=a(c(e,"ease",g.ease),g.easeParams),g.hold=h(e,"hold",g.hold),g.repeat=h(e,"repeat",g.repeat),g.repeatDelay=h(e,"repeatDelay",g.repeatDelay),g.yoyo=o(e,"yoyo",g.yoyo),g.flipX=o(e,"flipX",g.flipX),g.flipY=o(e,"flipY",g.flipY);for(var m=0;m0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay},init:function(){return this.calcDuration(),this.progress=0,this.totalProgress=0,!this.paused||(this.state=a.PAUSED,!1)},resetTweens:function(t){for(var e=0;e0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweens(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=a.LOOP_DELAY):(this.state=a.ACTIVE,this.dispatchTimelineEvent(r.TIMELINE_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=a.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=a.PENDING_REMOVE,this.dispatchTimelineEvent(r.TIMELINE_COMPLETE,this.callbacks.onComplete))},update:function(t,e){if(this.state!==a.PAUSED){switch(this.useFrames&&(e=1*this.manager.timeScale),e*=this.timeScale,this.elapsed+=e,this.progress=Math.min(this.elapsed/this.duration,1),this.totalElapsed+=e,this.totalProgress=Math.min(this.totalElapsed/this.totalDuration,1),this.state){case a.ACTIVE:for(var i=this.totalData,n=0;n=this.nextTick&&this.currentAnim.setFrame(this)}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),e},updateFrame:function(t){var e=this.setCurrentFrame(t);if(this.isPlaying){t.setAlpha&&(e.alpha=t.alpha);var i=this.currentAnim;e.emit(r.SPRITE_ANIMATION_KEY_UPDATE+i.key,i,t,e),e.emit(r.SPRITE_ANIMATION_UPDATE,i,t,e),3===this._pendingStop&&this._pendingStopValue===t&&this.currentAnim.completeAnimation(this)}},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},setYoyo:function(t){return void 0===t&&(t=!1),this._yoyo=t,this.parent},getYoyo:function(){return this._yoyo},destroy:function(){this.animationManager.off(r.REMOVE_ANIMATION,this.remove,this),this.animationManager=null,this.parent=null,this.currentAnim=null,this.currentFrame=null}});t.exports=o},function(t,e,i){var n=i(505),s=i(48),r=i(0),o=i(29),a=i(506),h=i(91),l=i(30),u=new r({initialize:function(t){this.game=t,this.type=o.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.config={clearBeforeRender:t.config.clearBeforeRender,backgroundColor:t.config.backgroundColor,resolution:t.config.resolution,antialias:t.config.antialias,roundPixels:t.config.roundPixels},this.gameCanvas=t.canvas;var e={alpha:t.config.transparent,desynchronized:t.config.desynchronized};this.gameContext=this.game.config.context?this.game.config.context:this.gameCanvas.getContext("2d",e),this.currentContext=this.gameContext,this.antialias=t.config.antialias,this.blendModes=a(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.init()},init:function(){this.game.scale.on(h.RESIZE,this.onResize,this);var t=this.game.scale.baseSize;this.resize(t.width,t.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,n=this.height;t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),e.clearBeforeRender&&t.clearRect(0,0,i,n),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,n)),t.save(),this.drawCount=0},render:function(t,e,i,n){var r=e.list,o=r.length,a=n._cx,h=n._cy,l=n._cw,u=n._ch,c=n.renderToTexture?n.context:t.sys.context;c.save(),this.game.scene.customViewports&&(c.beginPath(),c.rect(a,h,l,u),c.clip()),this.currentContext=c;var d=n.mask;d&&d.preRenderCanvas(this,null,n._maskCamera),n.transparent||(c.fillStyle=n.backgroundColor.rgba,c.fillRect(a,h,l,u)),c.globalAlpha=n.alpha,c.globalCompositeOperation="source-over",this.drawCount+=r.length,n.renderToTexture&&n.emit(s.PRE_RENDER,n),n.matrix.copyToContext(c);for(var f=0;f=0?y=-(y+d):y<0&&(y=Math.abs(y)-d)),t.flipY&&(x>=0?x=-(x+f):x<0&&(x=Math.abs(x)-f))}var w=1,E=1;t.flipX&&(p||(y+=-e.realWidth+2*v),w=-1),t.flipY&&(p||(x+=-e.realHeight+2*m),E=-1),a.applyITRS(t.x,t.y,t.rotation,t.scaleX*w,t.scaleY*E),o.copyFrom(i.matrix),n?(o.multiplyWithOffset(n,-i.scrollX*t.scrollFactorX,-i.scrollY*t.scrollFactorY),a.e=t.x,a.f=t.y,o.multiply(a,h)):(a.e-=i.scrollX*t.scrollFactorX,a.f-=i.scrollY*t.scrollFactorY,o.multiply(a,h)),r.save(),h.setToContext(r),r.globalCompositeOperation=this.blendModes[t.blendMode],r.globalAlpha=s,r.imageSmoothingEnabled=!(!this.antialias||e.source.scaleMode),r.drawImage(e.source.image,u,c,d,f,y,x,d/g,f/g),r.restore()}},destroy:function(){this.gameCanvas=null,this.gameContext=null,this.game=null}});t.exports=u},function(t,e,i){var n=i(26),s=i(32),r=i(2);t.exports=function(t,e){var i=r(e,"callback"),o=r(e,"type","image/png"),a=r(e,"encoder",.92),h=Math.abs(Math.round(r(e,"x",0))),l=Math.abs(Math.round(r(e,"y",0))),u=r(e,"width",t.width),c=r(e,"height",t.height);if(r(e,"getPixel",!1)){var d=t.getContext("2d").getImageData(h,l,1,1).data;i.call(null,new s(d[0],d[1],d[2],d[3]/255))}else if(0!==h||0!==l||u!==t.width||c!==t.height){var f=n.createWebGL(this,u,c);f.getContext("2d").drawImage(t,h,l,u,c,0,0,u,c);var p=new Image;p.onerror=function(){i.call(null),n.remove(f)},p.onload=function(){i.call(null,p),n.remove(f)},p.src=f.toDataURL(o,a)}else{var g=new Image;g.onerror=function(){i.call(null)},g.onload=function(){i.call(null,g)},g.src=t.toDataURL(o,a)}}},function(t,e,i){var n=i(52),s=i(313);t.exports=function(){var t=[],e=s.supportNewBlendModes,i="source-over";return t[n.NORMAL]=i,t[n.ADD]="lighter",t[n.MULTIPLY]=e?"multiply":i,t[n.SCREEN]=e?"screen":i,t[n.OVERLAY]=e?"overlay":i,t[n.DARKEN]=e?"darken":i,t[n.LIGHTEN]=e?"lighten":i,t[n.COLOR_DODGE]=e?"color-dodge":i,t[n.COLOR_BURN]=e?"color-burn":i,t[n.HARD_LIGHT]=e?"hard-light":i,t[n.SOFT_LIGHT]=e?"soft-light":i,t[n.DIFFERENCE]=e?"difference":i,t[n.EXCLUSION]=e?"exclusion":i,t[n.HUE]=e?"hue":i,t[n.SATURATION]=e?"saturation":i,t[n.COLOR]=e?"color":i,t[n.LUMINOSITY]=e?"luminosity":i,t[n.ERASE]="destination-out",t[n.SOURCE_IN]="source-in",t[n.SOURCE_OUT]="source-out",t[n.SOURCE_ATOP]="source-atop",t[n.DESTINATION_OVER]="destination-over",t[n.DESTINATION_IN]="destination-in",t[n.DESTINATION_OUT]="destination-out",t[n.DESTINATION_ATOP]="destination-atop",t[n.LIGHTER]="lighter",t[n.COPY]="copy",t[n.XOR]="xor",t}},function(t,e,i){var n=i(90),s=i(48),r=i(0),o=i(29),a=i(18),h=i(115),l=i(1),u=i(91),c=i(79),d=i(116),f=i(30),p=i(9),g=i(508),v=i(509),m=i(510),y=i(234),x=i(511),T=new r({initialize:function(t){var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!1,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,resolution:e.resolution,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=o.WEBGL,this.width=0,this.height=0,this.canvas=t.canvas,this.blendModes=[],this.nativeTextures=[],this.contextLost=!1,this.pipelines=null,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.currentActiveTextureUnit=0,this.currentTextures=new Array(16),this.currentFramebuffer=null,this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=l,this.contextRestoredHandler=l,this.gl=null,this.supportedExtensions=null,this.extensions={},this.glFormats=[],this.compression={ETC1:!1,PVRTC:!1,S3TC:!1},this.drawingBufferHeight=0,this.blankTexture=null,this.defaultCamera=new n(0,0,0,0),this._tempMatrix1=new f,this._tempMatrix2=new f,this._tempMatrix3=new f,this._tempMatrix4=new f,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.mipmapFilter=null,this.init(this.config)},init:function(t){var e,i=this.game,n=this.canvas,s=t.backgroundColor;if(!(e=i.config.context?i.config.context:n.getContext("webgl",t.contextCreation)||n.getContext("experimental-webgl",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=e;var r=this;this.contextLostHandler=function(t){r.contextLost=!0,r.game.events.emit(a.CONTEXT_LOST,r),t.preventDefault()},this.contextRestoredHandler=function(){r.contextLost=!1,r.init(r.config),r.game.events.emit(a.CONTEXT_RESTORED,r)},n.addEventListener("webglcontextlost",this.contextLostHandler,!1),n.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),i.context=e;for(var h=0;h<=27;h++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats[0]=e.BYTE,this.glFormats[1]=e.SHORT,this.glFormats[2]=e.UNSIGNED_BYTE,this.glFormats[3]=e.UNSIGNED_SHORT,this.glFormats[4]=e.FLOAT,this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:e.uniform1f,length:1},"1fv":{func:e.uniform1fv,length:1},"1i":{func:e.uniform1i,length:1},"1iv":{func:e.uniform1iv,length:1},"2f":{func:e.uniform2f,length:2},"2fv":{func:e.uniform2fv,length:1},"2i":{func:e.uniform2i,length:2},"2iv":{func:e.uniform2iv,length:1},"3f":{func:e.uniform3f,length:3},"3fv":{func:e.uniform3fv,length:1},"3i":{func:e.uniform3i,length:3},"3iv":{func:e.uniform3iv,length:1},"4f":{func:e.uniform4f,length:4},"4fv":{func:e.uniform4fv,length:1},"4i":{func:e.uniform4i,length:4},"4iv":{func:e.uniform4iv,length:1}};var l=e.getSupportedExtensions();t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE));var u="WEBGL_compressed_texture_",c="WEBKIT_"+u;this.compression.ETC1=e.getExtension(u+"etc1")||e.getExtension(c+"etc1"),this.compression.PVRTC=e.getExtension(u+"pvrtc")||e.getExtension(c+"pvrtc"),this.compression.S3TC=e.getExtension(u+"s3tc")||e.getExtension(c+"s3tc"),this.supportedExtensions=l,e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),e.enable(e.BLEND),e.clearColor(s.redGL,s.greenGL,s.blueGL,s.alphaGL),this.mipmapFilter=e[t.mipmapFilter];for(var f=0;f0&&n>0;if(o&&a){var h=o[0],l=o[1],u=o[2],c=o[3];a=h!==t||l!==e||u!==i||c!==n}a&&(this.flush(),r.scissor(t,s-e-n,i,n))},popScissor:function(){var t=this.scissorStack;t.pop();var e=t[t.length-1];e&&this.setScissor(e[0],e[1],e[2],e[3]),this.currentScissor=e},setPipeline:function(t,e){return this.currentPipeline===t&&this.currentPipeline.vertexBuffer===this.currentVertexBuffer&&this.currentPipeline.program===this.currentProgram||(this.flush(),this.currentPipeline=t,this.currentPipeline.bind()),this.currentPipeline.onBind(e),this.currentPipeline},hasActiveStencilMask:function(){var t=this.currentMask.mask,e=this.currentCameraMask.mask;return t&&t.isStencil||e&&e.isStencil},rebindPipeline:function(t){var e=this.gl;e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),this.hasActiveStencilMask()?e.clear(e.DEPTH_BUFFER_BIT):(e.disable(e.STENCIL_TEST),e.clear(e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT)),e.viewport(0,0,this.width,this.height),this.setBlendMode(0,!0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.blankTexture.glTexture),this.currentActiveTextureUnit=0,this.currentTextures[0]=this.blankTexture.glTexture,this.currentPipeline=t,this.currentPipeline.bind(),this.currentPipeline.onBind()},clearPipeline:function(){this.flush(),this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.setBlendMode(0,!0)},setBlendMode:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.blendModes[t];return!!(e||t!==o.BlendModes.SKIP_CHECK&&this.currentBlendMode!==t)&&(this.flush(),i.enable(i.BLEND),i.blendEquation(n.equation),n.func.length>2?i.blendFuncSeparate(n.func[0],n.func[1],n.func[2],n.func[3]):i.blendFunc(n.func[0],n.func[1]),this.currentBlendMode=t,!0)},addBlendMode:function(t,e){return this.blendModes.push({func:t,equation:e})-1},updateBlendMode:function(t,e,i){return this.blendModes[t]&&(this.blendModes[t].func=e,i&&(this.blendModes[t].equation=i)),this},removeBlendMode:function(t){return t>17&&this.blendModes[t]&&this.blendModes.splice(t,1),this},setBlankTexture:function(t){void 0===t&&(t=!1),!t&&0===this.currentActiveTextureUnit&&this.currentTextures[0]||this.setTexture2D(this.blankTexture.glTexture,0)},setTexture2D:function(t,e,i){void 0===i&&(i=!0);var n=this.gl;return t!==this.currentTextures[e]&&(i&&this.flush(),this.currentActiveTextureUnit!==e&&(n.activeTexture(n.TEXTURE0+e),this.currentActiveTextureUnit=e),n.bindTexture(n.TEXTURE_2D,t),this.currentTextures[e]=t),this},setFramebuffer:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.width,s=this.height;return t!==this.currentFramebuffer&&(t&&t.renderTexture?(n=t.renderTexture.width,s=t.renderTexture.height):this.flush(),i.bindFramebuffer(i.FRAMEBUFFER,t),i.viewport(0,0,n,s),e&&(t?(this.drawingBufferHeight=s,this.pushScissor(0,0,n,s)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=t),this},setProgram:function(t){var e=this.gl;return t!==this.currentProgram&&(this.flush(),e.useProgram(t),this.currentProgram=t),this},setVertexBuffer:function(t){var e=this.gl;return t!==this.currentVertexBuffer&&(this.flush(),e.bindBuffer(e.ARRAY_BUFFER,t),this.currentVertexBuffer=t),this},setIndexBuffer:function(t){var e=this.gl;return t!==this.currentIndexBuffer&&(this.flush(),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.currentIndexBuffer=t),this},createTextureFromSource:function(t,e,i,n){var s=this.gl,r=s.NEAREST,a=s.NEAREST,l=s.CLAMP_TO_EDGE;e=t?t.width:e,i=t?t.height:i;var u=h(e,i);return u&&(l=s.REPEAT),n===o.ScaleModes.LINEAR&&this.config.antialias&&(r=u?this.mipmapFilter:s.LINEAR,a=s.LINEAR),t||"number"!=typeof e||"number"!=typeof i?this.createTexture2D(0,r,a,l,l,s.RGBA,t):this.createTexture2D(0,r,a,l,l,s.RGBA,null,e,i)},createTexture2D:function(t,e,i,n,s,r,o,a,l,u,c,d){u=void 0===u||null===u||u,void 0===c&&(c=!1),void 0===d&&(d=!1);var f=this.gl,p=f.createTexture();return this.setTexture2D(p,0),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,e),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,i),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,s),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,n),f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,u),f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,d),null===o||void 0===o?f.texImage2D(f.TEXTURE_2D,t,r,a,l,0,r,f.UNSIGNED_BYTE,null):(c||(a=o.width,l=o.height),f.texImage2D(f.TEXTURE_2D,t,r,r,f.UNSIGNED_BYTE,o)),h(a,l)&&f.generateMipmap(f.TEXTURE_2D),this.setTexture2D(null,0),p.isAlphaPremultiplied=u,p.isRenderTexture=!1,p.width=a,p.height=l,this.nativeTextures.push(p),p},createFramebuffer:function(t,e,i,n){var s,r=this.gl,o=r.createFramebuffer();if(this.setFramebuffer(o),n){var a=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,a),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t,e),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,a)}if(i.isRenderTexture=!0,i.isAlphaPremultiplied=!1,r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,i,0),(s=r.checkFramebufferStatus(r.FRAMEBUFFER))!==r.FRAMEBUFFER_COMPLETE){throw new Error("Framebuffer incomplete. Framebuffer status: "+{36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"}[s])}return o.renderTexture=i,this.setFramebuffer(null),o},createProgram:function(t,e){var i=this.gl,n=i.createProgram(),s=i.createShader(i.VERTEX_SHADER),r=i.createShader(i.FRAGMENT_SHADER);if(i.shaderSource(s,t),i.shaderSource(r,e),i.compileShader(s),i.compileShader(r),!i.getShaderParameter(s,i.COMPILE_STATUS))throw new Error("Failed to compile Vertex Shader:\n"+i.getShaderInfoLog(s));if(!i.getShaderParameter(r,i.COMPILE_STATUS))throw new Error("Failed to compile Fragment Shader:\n"+i.getShaderInfoLog(r));if(i.attachShader(n,s),i.attachShader(n,r),i.linkProgram(n),!i.getProgramParameter(n,i.LINK_STATUS))throw new Error("Failed to link program:\n"+i.getProgramInfoLog(n));return n},createVertexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setVertexBuffer(n),i.bufferData(i.ARRAY_BUFFER,t,e),this.setVertexBuffer(null),n},createIndexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setIndexBuffer(n),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t,e),this.setIndexBuffer(null),n},deleteTexture:function(t){var e=this.nativeTextures.indexOf(t);return-1!==e&&c(this.nativeTextures,e),this.gl.deleteTexture(t),this.currentTextures[0]!==t||this.game.pendingDestroy||this.setBlankTexture(!0),this},deleteFramebuffer:function(t){return this.gl.deleteFramebuffer(t),this},deleteProgram:function(t){return this.gl.deleteProgram(t),this},deleteBuffer:function(t){return this.gl.deleteBuffer(t),this},preRenderCamera:function(t){var e=t._cx,i=t._cy,n=t._cw,r=t._ch,o=this.pipelines.TextureTintPipeline,a=t.backgroundColor;if(t.renderToTexture){this.flush(),this.pushScissor(e,i,n,-r),this.setFramebuffer(t.framebuffer);var h=this.gl;h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT),o.projOrtho(e,n+e,i,r+i,-1e3,1e3),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n+e,r+i,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL),t.emit(s.PRE_RENDER,t)}else this.pushScissor(e,i,n,r),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n,r,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL)},getCurrentStencilMask:function(){var t=null,e=this.maskStack,i=this.currentCameraMask;return e.length>0?t=e[e.length-1]:i.mask&&i.mask.isStencil&&(t=i),t},postRenderCamera:function(t){var e=this.pipelines.TextureTintPipeline;if(t.flashEffect.postRenderWebGL(e,p.getTintFromFloats),t.fadeEffect.postRenderWebGL(e,p.getTintFromFloats),t.dirty=!1,this.popScissor(),t.renderToTexture){if(e.flush(),this.setFramebuffer(null),t.emit(s.POST_RENDER,t),t.renderToGame){e.projOrtho(0,e.width,e.height,0,-1e3,1e3);var i=p.getTintAppendFloatAlpha;(t.pipeline?t.pipeline:e).batchTexture(t,t.glTexture,t.width,t.height,t.x,t.y,t.width,t.height,t.zoom,t.zoom,t.rotation,t.flipX,!t.flipY,1,1,0,0,0,0,t.width,t.height,i(t._tintTL,t._alphaTL),i(t._tintTR,t._alphaTR),i(t._tintBL,t._alphaBL),i(t._tintBR,t._alphaBR),t._isTinted&&t.tintFill,0,0,this.defaultCamera,null)}this.setBlankTexture(!0)}t.mask&&(this.currentCameraMask.mask=null,t.mask.postRenderWebGL(this,t._maskCamera))},preRender:function(){if(!this.contextLost){var t=this.gl,e=this.pipelines;if(t.bindFramebuffer(t.FRAMEBUFFER,null),this.config.clearBeforeRender){var i=this.config.backgroundColor;t.clearColor(i.redGL,i.greenGL,i.blueGL,i.alphaGL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}for(var n in t.enable(t.SCISSOR_TEST),e)e[n].onPreRender();this.currentScissor=[0,0,this.width,this.height],this.scissorStack=[this.currentScissor],this.game.scene.customViewports&&t.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.setPipeline(this.pipelines.TextureTintPipeline)}},render:function(t,e,i,n){if(!this.contextLost){var s=e.list,r=s.length,a=this.pipelines;for(var h in a)a[h].onRender(t,n);if(this.preRenderCamera(n),0===r)return this.setBlendMode(o.BlendModes.NORMAL),void this.postRenderCamera(n);this.currentType="";for(var l=this.currentMask,u=0;u0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},createVideoTexture:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=this.gl,s=n.NEAREST,r=n.NEAREST,o=t.videoWidth,a=t.videoHeight,l=n.CLAMP_TO_EDGE,u=h(o,a);return!e&&u&&(l=n.REPEAT),this.config.antialias&&(s=u?this.mipmapFilter:n.LINEAR,r=n.LINEAR),this.createTexture2D(0,s,r,l,l,n.RGBA,t,o,a,!0,!0,i)},updateVideoTexture:function(t,e,i){void 0===i&&(i=!1);var n=this.gl,s=t.videoWidth,r=t.videoHeight;return s>0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},setTextureFilter:function(t,e){var i=this.gl,n=[i.LINEAR,i.NEAREST][e];return this.setTexture2D(t,0),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,n),this.setTexture2D(null,0),this},setFloat1:function(t,e,i){return this.setProgram(t),this.gl.uniform1f(this.gl.getUniformLocation(t,e),i),this},setFloat2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2f(this.gl.getUniformLocation(t,e),i,n),this},setFloat3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3f(this.gl.getUniformLocation(t,e),i,n,s),this},setFloat4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4f(this.gl.getUniformLocation(t,e),i,n,s,r),this},setFloat1v:function(t,e,i){return this.setProgram(t),this.gl.uniform1fv(this.gl.getUniformLocation(t,e),i),this},setFloat2v:function(t,e,i){return this.setProgram(t),this.gl.uniform2fv(this.gl.getUniformLocation(t,e),i),this},setFloat3v:function(t,e,i){return this.setProgram(t),this.gl.uniform3fv(this.gl.getUniformLocation(t,e),i),this},setFloat4v:function(t,e,i){return this.setProgram(t),this.gl.uniform4fv(this.gl.getUniformLocation(t,e),i),this},setInt1:function(t,e,i){return this.setProgram(t),this.gl.uniform1i(this.gl.getUniformLocation(t,e),i),this},setInt2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2i(this.gl.getUniformLocation(t,e),i,n),this},setInt3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3i(this.gl.getUniformLocation(t,e),i,n,s),this},setInt4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4i(this.gl.getUniformLocation(t,e),i,n,s,r),this},setMatrix2:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix2fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix3:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix3fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix4:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix4fv(this.gl.getUniformLocation(t,e),i,n),this},getMaxTextures:function(){return this.config.maxTextures},getMaxTextureSize:function(){return this.config.maxTextureSize},destroy:function(){for(var t=0;t0&&this.flush();var e=this.inverseRotationMatrix;if(t){var i=-t,n=Math.cos(i),s=Math.sin(i);e[1]=s,e[3]=-s,e[0]=e[4]=n}else e[0]=e[4]=1,e[1]=e[3]=0;this.renderer.setMatrix3(this.program,"uInverseRotationMatrix",!1,e),this.currentNormalMapRotation=t}},batchSprite:function(t,e,i){if(this.active){var n=t.texture.dataSource[t.frame.sourceIndex];n&&(this.renderer.setPipeline(this),this.setTexture2D(n.glTexture,1),this.setNormalMapRotation(t.rotation),r.prototype.batchSprite.call(this,t,e,i))}}});a.LIGHT_COUNT=o,t.exports=a},function(t,e,i){var n=i(0),s=i(2),r=i(235),o=i(337),a=i(338),h=i(30),l=i(142),u=new n({Extends:l,Mixins:[r],initialize:function(t){var e=t.renderer.config;l.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:t.renderer.gl.TRIANGLE_STRIP,vertShader:s(t,"vertShader",a),fragShader:s(t,"fragShader",o),vertexCapacity:s(t,"vertexCapacity",6*e.batchSize),vertexSize:s(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.mvpInit()},onBind:function(){return l.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return l.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this}});t.exports=u},,,,,function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){i(518),i(519),i(520),i(521),i(522),i(523),i(524),i(525)},function(t,e){Array.prototype.forEach||(Array.prototype.forEach=function(t){"use strict";if(void 0===this||null===this)throw new TypeError;var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var n=arguments.length>=2?arguments[1]:void 0,s=0;s>16)+(65280&t)+((255&t)<<16)},n={_tintTL:16777215,_tintTR:16777215,_tintBL:16777215,_tintBR:16777215,_isTinted:!1,tintFill:!1,clearTint:function(){return this.setTint(16777215),this._isTinted=!1,this},setTint:function(t,e,n,s){return void 0===t&&(t=16777215),void 0===e&&(e=t,n=t,s=t),this._tintTL=i(t),this._tintTR=i(e),this._tintBL=i(n),this._tintBR=i(s),this._isTinted=!0,this.tintFill=!1,this},setTintFill:function(t,e,i,n){return this.setTint(t,e,i,n),this.tintFill=!0,this},tintTopLeft:{get:function(){return this._tintTL},set:function(t){this._tintTL=i(t),this._isTinted=!0}},tintTopRight:{get:function(){return this._tintTR},set:function(t){this._tintTR=i(t),this._isTinted=!0}},tintBottomLeft:{get:function(){return this._tintBL},set:function(t){this._tintBL=i(t),this._isTinted=!0}},tintBottomRight:{get:function(){return this._tintBR},set:function(t){this._tintBR=i(t),this._isTinted=!0}},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){return this._isTinted}}};t.exports=n},function(t,e){t.exports="changedata"},function(t,e){t.exports="changedata-"},function(t,e){t.exports="removedata"},function(t,e){t.exports="setdata"},function(t,e){t.exports="destroy"},function(t,e){t.exports="complete"},function(t,e){t.exports="created"},function(t,e){t.exports="error"},function(t,e){t.exports="loop"},function(t,e){t.exports="play"},function(t,e){t.exports="seeked"},function(t,e){t.exports="seeking"},function(t,e){t.exports="stop"},function(t,e){t.exports="timeout"},function(t,e){t.exports="unlocked"},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"alpha",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"x",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r,o,a){return void 0!==i&&null!==i||(i=e),n(t,"x",e,s,o,a),n(t,"y",i,r,o,a)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"y",e,i,s,r)}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=6.28);for(var s=i,r=(n-i)/t.length,o=0;o0?s(o,i):i<0&&r(o,Math.abs(i));for(var a=0;a1)if(0===s){var d=t.length-1;for(o=t[d].x,a=t[d].y,h=d-1;h>=0;h--)l=(c=t[h]).x,u=c.y,c.x=o,c.y=a,o=l,a=u;t[d].x=e,t[d].y=i}else{for(o=t[0].x,a=t[0].y,h=1;h0?(this._speedX-=this.dragX*t,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*t,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*t,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*t,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom&&(e.zoom+=this._zoom,e.zoom<.001&&(e.zoom=.001))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=r},function(t,e,i){t.exports={Camera:i(290),BaseCamera:i(90),CameraManager:i(698),Effects:i(298),Events:i(48)}},function(t,e){t.exports="cameradestroy"},function(t,e){t.exports="camerafadeincomplete"},function(t,e){t.exports="camerafadeinstart"},function(t,e){t.exports="camerafadeoutcomplete"},function(t,e){t.exports="camerafadeoutstart"},function(t,e){t.exports="cameraflashcomplete"},function(t,e){t.exports="cameraflashstart"},function(t,e){t.exports="camerapancomplete"},function(t,e){t.exports="camerapanstart"},function(t,e){t.exports="postrender"},function(t,e){t.exports="prerender"},function(t,e){t.exports="camerashakecomplete"},function(t,e){t.exports="camerashakestart"},function(t,e){t.exports="camerazoomcomplete"},function(t,e){t.exports="camerazoomstart"},function(t,e,i){var n=i(22),s=i(0),r=i(48),o=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s,o,a,h){if(void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=0),void 0===o&&(o=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene),!o&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=n,this.blue=s,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h;var l=t?r.FADE_OUT_START:r.FADE_IN_START;return this.camera.emit(l,this.camera,this,e,i,n,s),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed=1?1:1/e*(1+(e*t|0))}},function(t,e,i){var n=i(22),s=i(0),r=i(48),o=i(3),a=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new o,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===i&&(i=!1),void 0===n&&(n=null),void 0===s&&(s=this.camera.scene),!i&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=t,this.progress=0,"number"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=n,this._onUpdateScope=s,this.camera.emit(r.SHAKE_START,this.camera,this,t,e),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){if(this.isRunning)if(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed0&&(o.preRender(1),t.render(n,e,i,o))}},resetAll:function(){for(var t=0;t1)for(var i=1;i=1)&&(s.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(s.mspointer=!0),navigator.getGamepads&&(s.gamepads=!0),"onwheel"in window||n.ie&&"WheelEvent"in window?s.wheelEvent="wheel":"onmousewheel"in window?s.wheelEvent="mousewheel":n.firefox&&"MouseScrollEvent"in window&&(s.wheelEvent="DOMMouseScroll"),s)},function(t,e,i){var n=i(114),s={audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){s.audioData=!!window.Audio,s.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t=document.createElement("audio"),e=!!t.canPlayType;try{if(e&&(t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")&&(s.ogg=!0),(t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,"")||t.canPlayType("audio/opus;").replace(/^no$/,""))&&(s.opus=!0),t.canPlayType("audio/mpeg;").replace(/^no$/,"")&&(s.mp3=!0),t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")&&(s.wav=!0),(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;").replace(/^no$/,""))&&(s.m4a=!0),t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")&&(s.webm=!0),""!==t.canPlayType('audio/mp4;codecs="ec-3"')))if(n.edge)s.dolby=!0;else if(n.safari&&n.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var i=parseInt(RegExp.$1,10),r=parseInt(RegExp.$2,10);(10===i&&r>=11||i>10)&&(s.dolby=!0)}}catch(t){}return s}()},function(t,e){var i={h264:!1,hls:!1,mp4:!1,ogg:!1,vp9:!1,webm:!1};t.exports=function(){var t=document.createElement("video"),e=!!t.canPlayType;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")&&(i.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.h264=!0,i.mp4=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")&&(i.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")&&(i.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.hls=!0))}catch(t){}return i}()},function(t,e){var i={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){var t,e="Fullscreen",n="FullScreen",s=["request"+e,"request"+n,"webkitRequest"+e,"webkitRequest"+n,"msRequest"+e,"msRequest"+n,"mozRequest"+n,"mozRequest"+e];for(t=0;tMath.PI&&(t-=n.PI2),Math.abs(((t+n.TAU)%n.PI2-n.PI2)%n.PI2)}},function(t,e,i){var n=i(315);t.exports=function(t){return n(t+Math.PI)}},function(t,e,i){var n=i(15);t.exports=function(t,e,i){return void 0===i&&(i=.05),t===e?t:(Math.abs(e-t)<=i||Math.abs(e-t)>=n.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e1?t[i]-(n(s-i,t[i],t[i],t[i-1],t[i-1])-t[i]):n(s-r,t[r?r-1:0],t[r],t[i1?n(t[i],t[i-1],i-s):n(t[r],t[r+1>i?i:r+1],s-r)}},function(t,e,i){var n=i(155);t.exports=function(t,e,i){return e+(i-e)*n(t,0,1)}},function(t,e,i){t.exports={GetNext:i(325),IsSize:i(115),IsValue:i(753)}},function(t,e){t.exports=function(t){return t>0&&0==(t&t-1)}},function(t,e,i){t.exports={Ceil:i(326),Floor:i(92),To:i(755)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var n=0;n>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return this.n=i,2.3283064365386963e-10*(i>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e0;e--){var i=Math.floor(this.frac()*(e+1)),n=t[i];t[i]=t[e],t[e]=n}return t}});t.exports=n},function(t,e){t.exports=function(t){for(var e=0,i=0;i1?void 0!==n?(s=(n-t)/(n-i))<0&&(s=0):s=1:s<0&&(s=0),s}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,n=2*Math.random()-1,s=Math.sqrt(1-n*n)*e;return t.x=Math.cos(i)*s,t.y=Math.sin(i)*s,t.z=n*e,t}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},function(t,e){t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.round(t*n)/n}},function(t,e){t.exports=function(t,e,i,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=1),n*=Math.PI/t;for(var s=[],r=[],o=0;o0&&t<=e*i&&(r=t>e-1?t-(o=Math.floor(t/e))*e:t,s.set(r,o)),s}},function(t,e){t.exports=function(t,e,i){return Math.abs(t-e)<=i}},function(t,e,i){var n=i(170),s=i(333),r=i(334),o=new s,a=new r,h=new n;t.exports=function(t,e,i){return a.setAxisAngle(e,i),o.fromRotationTranslation(a,h.set(0,0,0)),t.transformMat4(o)}},function(t,e){t.exports="addtexture"},function(t,e){t.exports="onerror"},function(t,e){t.exports="onload"},function(t,e){t.exports="ready"},function(t,e){t.exports="removetexture"},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","","precision mediump float;","","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","","void main()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," float alpha = mainColor.a;",""," if (!uInvertMaskAlpha)"," {"," alpha *= (maskColor.a);"," }"," else"," {"," alpha *= (1.0 - maskColor.a);"," }",""," gl_FragColor = vec4(mainColor.rgb * alpha, alpha);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","","precision mediump float;","","attribute vec2 inPosition;","","void main()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_FORWARD_DIFFUSE_FS","","precision mediump float;","","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","","const int kMaxLights = %LIGHT_COUNT%;","","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","","varying vec2 outTexCoord;","varying vec4 outTint;","","void main()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 color = texture2D(uMainSampler, outTexCoord) * vec4(outTint.rgb * outTint.a, outTint.a);"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;",""," for (int index = 0; index < kMaxLights; ++index)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }",""," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","","}",""].join("\n")},function(t,e,i){t.exports={GenerateTexture:i(343),Palettes:i(784)}},function(t,e,i){t.exports={ARNE16:i(344),C64:i(785),CGA:i(786),JMP:i(787),MSX:i(788)}},function(t,e){t.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},function(t,e){t.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},function(t,e,i){t.exports={Path:i(790),CubicBezier:i(345),Curve:i(80),Ellipse:i(346),Line:i(347),QuadraticBezier:i(348),Spline:i(349)}},function(t,e,i){var n=i(0),s=i(345),r=i(346),o=i(5),a=i(347),h=i(791),l=i(348),u=i(12),c=i(349),d=i(3),f=i(15),p=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return void 0===e&&(e=!1),this.ellipseTo(t,t,0,360,e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new a(e,t)),this},cubicBezierTo:function(t,e,i,n,r,o){var a,h,l,u=this.getEndPoint();return t instanceof d?(a=t,h=e,l=i):(a=new d(i,n),h=new d(r,o),l=new d(t,e)),this.add(new s(u,a,h,l))},quadraticBezierTo:function(t,e,i,n){var s,r,o=this.getEndPoint();return t instanceof d?(s=t,r=e):(s=new d(i,n),r=new d(t,e)),this.add(new l(o,s,r))},draw:function(t,e){for(var i=0;i0?this.curves[this.curves.length-1].getPoint(1,t):t.copy(this.startPoint),t},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),n=this.getCurveLengths(),s=0;s=i){var r=n[s]-i,o=this.curves[s],a=o.getLength(),h=0===a?0:1-r/a;return o.getPointAt(h,e)}s++}return null},getPoints:function(t){void 0===t&&(t=12);for(var e,i=[],n=0;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i},getRandomPoint:function(t){return void 0===t&&(t=new d),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getStartPoint:function(t){return void 0===t&&(t=new d),t.copy(this.startPoint)},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):this._tmpVec2B.set(t,e);var i=this.getEndPoint(this._tmpVec2A);return this.add(new a([i.x,i.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new h(t.x,t.y)):this.add(new h(t,e))},toJSON:function(){for(var t=[],e=0;e>16&255,g:t>>8&255,b:255&t,a:255};return t>16777215&&(e.a=t>>>24),e}},function(t,e,i){var n=i(32),s=i(353);t.exports=function(t,e,i){var r=i,o=i,a=i;if(0!==e){var h=i<.5?i*(1+e):i+e-i*e,l=2*i-h;r=s(l,h,t+1/3),o=s(l,h,t),a=s(l,h,t-1/3)}return(new n).setGLTo(r,o,a,1)}},function(t,e,i){var n=i(161);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],s=0;s<=359;s++)i.push(n(s/359,t,e));return i}},function(t,e,i){var n=i(112),s=function(t,e,i,s,r,o,a,h){void 0===a&&(a=100),void 0===h&&(h=0);var l=h/a;return{r:n(t,s,l),g:n(e,r,l),b:n(i,o,l)}};t.exports={RGBWithRGB:s,ColorWithRGB:function(t,e,i,n,r,o){return void 0===r&&(r=100),void 0===o&&(o=0),s(t.r,t.g,t.b,e,i,n,r,o)},ColorWithColor:function(t,e,i,n){return void 0===i&&(i=100),void 0===n&&(n=0),s(t.r,t.g,t.b,e.r,e.g,e.b,i,n)}}},function(t,e,i){var n=i(168),s=i(32);t.exports=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=255),new s(n(t,e),n(t,e),n(t,e))}},function(t,e,i){var n=i(352);t.exports=function(t,e,i,s,r){return void 0===s&&(s=255),void 0===r&&(r="#"),"#"===r?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1):"0x"+n(s)+n(t)+n(e)+n(i)}},function(t,e,i){t.exports={BitmapMask:i(275),GeometryMask:i(276)}},function(t,e,i){var n={AddToDOM:i(117),DOMContentLoaded:i(354),GetScreenOrientation:i(355),GetTarget:i(360),ParseXML:i(361),RemoveFromDOM:i(174),RequestAnimationFrame:i(341)};t.exports=n},function(t,e,i){t.exports={EventEmitter:i(813)}},function(t,e,i){var n=i(0),s=i(10),r=i(23),o=new n({Extends:s,initialize:function(){s.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});r.register("EventEmitter",o,"events"),t.exports=o},function(t,e,i){var n=i(117),s=i(286),r=i(289),o=i(26),a=i(0),h=i(311),l=i(815),u=i(335),c=i(110),d=i(339),f=i(312),p=i(354),g=i(10),v=i(18),m=i(362),y=i(23),x=i(367),T=i(368),w=i(370),E=i(116),_=i(373),b=i(340),A=i(342),S=i(377),C=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new s(this),this.textures=new _(this),this.cache=new r(this),this.registry=new c(this),this.input=new m(this,this.config),this.scene=new w(this,this.config.sceneConfig),this.device=f,this.scale=new T(this,this.config),this.sound=null,this.sound=S.create(this),this.loop=new b(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,p(this.boot.bind(this))},boot:function(){y.hasCore("EventEmitter")?(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),l(this),d(this),n(this.canvas,this.config.parent),this.textures.once(E.READY,this.texturesReady,this),this.events.emit(v.BOOT)):console.warn("Aborting. Core Plugins missing.")},texturesReady:function(){this.events.emit(v.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),A(this);var t=this.events;t.on(v.HIDDEN,this.onHidden,this),t.on(v.VISIBLE,this.onVisible,this),t.on(v.BLUR,this.onBlur,this),t.on(v.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e);var n=this.renderer;n.preRender(),i.emit(v.PRE_RENDER,n,t,e),this.scene.render(n),n.postRender(),i.emit(v.POST_RENDER,n,t,e)},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e),i.emit(v.PRE_RENDER),i.emit(v.POST_RENDER)},onHidden:function(){this.loop.pause(),this.events.emit(v.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(v.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(v.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=C},function(t,e,i){var n=i(117);t.exports=function(t){var e=t.config;if(e.parent&&e.domCreateContainer){var i=document.createElement("div");i.style.cssText=["display: block;","width: "+t.scale.width+"px;","height: "+t.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: none;","transform: scale(1);","transform-origin: left top;"].join(" "),t.domContainer=i,n(i,e.parent)}}},function(t,e){t.exports="boot"},function(t,e){t.exports="destroy"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameout"},function(t,e){t.exports="gameover"},function(t,e){t.exports="gameobjectdown"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameobjectmove"},function(t,e){t.exports="gameobjectout"},function(t,e){t.exports="gameobjectover"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="wheel"},function(t,e){t.exports="gameobjectup"},function(t,e){t.exports="gameobjectwheel"},function(t,e){t.exports="boot"},function(t,e){t.exports="process"},function(t,e){t.exports="update"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointerdownoutside"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="pointerupoutside"},function(t,e){t.exports="wheel"},function(t,e){t.exports="pointerlockchange"},function(t,e){t.exports="preupdate"},function(t,e){t.exports="shutdown"},function(t,e){t.exports="start"},function(t,e){t.exports="update"},function(t,e){t.exports=function(t){if(!t)return window.innerHeight;var e=Math.abs(window.orientation),i={w:0,h:0},n=document.createElement("div");return n.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(n),i.w=90===e?n.offsetHeight:window.innerWidth,i.h=90===e?window.innerWidth:n.offsetHeight,document.documentElement.removeChild(n),n=null,90!==Math.abs(window.orientation)?i.h:i.w}},function(t,e){t.exports="addfile"},function(t,e){t.exports="complete"},function(t,e){t.exports="filecomplete"},function(t,e){t.exports="filecomplete-"},function(t,e){t.exports="loaderror"},function(t,e){t.exports="load"},function(t,e){t.exports="fileprogress"},function(t,e){t.exports="postprocess"},function(t,e){t.exports="progress"},function(t,e){t.exports="start"},function(t,e,i){var n=i(2),s=i(177);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,i=n(t.settings,"physics",!1);if(e||i){var r=[];if(e&&r.push(s(e+"Physics")),i)for(var o in i)o=s(o.concat("Physics")),-1===r.indexOf(o)&&r.push(o);return r}}},function(t,e,i){var n=i(2);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),i=n(t.settings,"plugins",!1);return Array.isArray(i)?i:e||[]}},function(t,e,i){t.exports={game:"game",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"}},function(t,e){t.exports=function(t,e,i){if(i.getElementsByTagName("TextureAtlas")){var n=t.source[e];t.add("__BASE",e,0,0,n.width,n.height);for(var s,r=i.getElementsByTagName("SubTexture"),o=0;og||c<-g)&&(c=0),c<0&&(c=g+c),-1!==d&&(g=c+(d+1));for(var v=f,m=f,y=0,x=0,T=0;Tr&&(y=w-r),E>o&&(x=E-o),t.add(T,e,i+v,s+m,h-y,l-x),(v+=h+p)+h>r&&(v=f,m+=l+p)}return t}},function(t,e,i){var n=i(2);t.exports=function(t,e,i){var s=n(i,"frameWidth",null),r=n(i,"frameHeight",s);if(!s)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var o=t.source[0];t.add("__BASE",0,0,0,o.width,o.height);var a,h=n(i,"startFrame",0),l=n(i,"endFrame",-1),u=n(i,"margin",0),c=n(i,"spacing",0),d=e.cutX,f=e.cutY,p=e.cutWidth,g=e.cutHeight,v=e.realWidth,m=e.realHeight,y=Math.floor((v-u+c)/(s+c)),x=Math.floor((m-u+c)/(r+c)),T=y*x,w=e.x,E=s-w,_=s-(v-p-w),b=e.y,A=r-b,S=r-(m-g-b);(h>T||h<-T)&&(h=0),h<0&&(h=T+h),-1!==l&&(T=h+(l+1));for(var C=u,M=u,O=0,P=e.sourceIndex,R=0;R0){var r=i-t.length;if(r<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.push(e),n&&n.call(s,e),e):null;for(var o=e.length-1;o>=0;)-1!==t.indexOf(e[o])&&e.splice(o,1),o--;if(0===(o=e.length))return null;i>0&&o>r&&(e.splice(r),o=r);for(var a=0;a0){var o=n-t.length;if(o<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.splice(i,0,e),s&&s.call(r,e),e):null;for(var a=e.length-1;a>=0;)-1!==t.indexOf(e[a])&&e.pop(),a--;if(0===(a=e.length))return null;n>0&&a>o&&(e.splice(o),a=o);for(var h=a-1;h>=0;h--){var l=e[h];t.splice(i,0,l),s&&s.call(r,l)}return e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i0){var n=t[i-1],s=t.indexOf(n);t[i]=n,t[s]=e}return t}},function(t,e){t.exports=function(t,e,i){var n=t.indexOf(e);if(-1===n||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return n!==i&&(t.splice(n,1),t.splice(i,0,e)),e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);if(-1!==i&&it.length-1)throw new Error("Index out of bounds");var r=n(t,e);return i&&i.call(s,r),r}},function(t,e,i){var n=i(66);t.exports=function(t,e,i,s,r){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===r&&(r=t),n(t,e,i)){var o=i-e,a=t.splice(e,o);if(s)for(var h=0;h0&&(t.splice(i,1),t.unshift(e)),e}},function(t,e,i){var n=i(66);t.exports=function(t,e,i,s,r){if(void 0===s&&(s=0),void 0===r&&(r=t.length),n(t,s,r))for(var o=s;o0){for(n=0;nl||U-Y>l?(N.push(X.i-1),X.cr?(N.push(X.i+X.word.length),Y=0,B=null):B=X):X.cr&&(N.push(X.i+X.word.length),Y=0,B=null)}for(n=N.length-1;n>=0;n--)s=a,r=N[n],o="\n",a=s.substr(0,r)+o+s.substr(r+1);i.wrappedText=a,h=a.length,F=[],k=null}for(n=0;nE&&(c=E),d>_&&(d=_);var W=E+w.xAdvance,V=_+v;fR&&(R=D),DR&&(R=D),D0&&(a=(o=z.wrappedText).length);var U=e._bounds.lines;1===Y?X=(U.longest-U.lengths[0])/2:2===Y&&(X=U.longest-U.lengths[0]);for(var G=s.roundPixels,W=0;W0&&(a=(o=L.wrappedText).length);var D=e._bounds.lines;1===O?R=(D.longest-D.lengths[0])/2:2===O&&(R=D.longest-D.lengths[0]),h.translate(-e.displayOriginX,-e.displayOriginY);for(var F=s.roundPixels,k=0;k0!=t>0,this._alpha=t}}});t.exports=r},function(t,e,i){var n=i(1),s=i(1);n=i(950),s=i(951),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){var r=e.list;if(0!==r.length){var o=e.localTransform;s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var a=-1!==e.blendMode;a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=r,d=r.length,f=0;f0||e.cropHeight>0;l&&(h.flush(),t.pushScissor(e.x,e.y,e.cropWidth*e.scaleX,e.cropHeight*e.scaleY));var u=h._tempMatrix1,c=h._tempMatrix2,d=h._tempMatrix3,f=h._tempMatrix4;c.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),u.copyFrom(s.matrix),r?(u.multiplyWithOffset(r,-s.scrollX*e.scrollFactorX,-s.scrollY*e.scrollFactorY),c.e=e.x,c.f=e.y,u.multiply(c,d)):(c.e-=s.scrollX*e.scrollFactorX,c.f-=s.scrollY*e.scrollFactorY,u.multiply(c,d));var p=e.frame,g=p.glTexture,v=p.cutX,m=p.cutY,y=g.width,x=g.height,T=e._isTinted&&e.tintFill,w=n.getTintAppendFloatAlpha(e._tintTL,s.alpha*e._alphaTL),E=n.getTintAppendFloatAlpha(e._tintTR,s.alpha*e._alphaTR),_=n.getTintAppendFloatAlpha(e._tintBL,s.alpha*e._alphaBL),b=n.getTintAppendFloatAlpha(e._tintBR,s.alpha*e._alphaBR);h.setTexture2D(g,0);var A,S,C=0,M=0,O=0,P=0,R=e.letterSpacing,L=0,D=0,F=0,k=0,I=e.scrollX,B=e.scrollY,Y=e.fontData,N=Y.chars,X=Y.lineHeight,z=e.fontSize/Y.size,U=0,G=e._align,W=0,V=0;e.getTextBounds(!1);var H=e._bounds.lines;1===G?V=(H.longest-H.lengths[0])/2:2===G&&(V=H.longest-H.lengths[0]);for(var j=s.roundPixels,K=e.displayCallback,q=e.callbackData,J=0;J0&&e.cropHeight>0&&(h.beginPath(),h.rect(0,0,e.cropWidth,e.cropHeight),h.clip());for(var Y=0;Y0&&(N=N%E-E):N>E?N=E:N<0&&(N=E+N%E),null===S&&(S=new o(k+Math.cos(Y)*B,I+Math.sin(Y)*B,v),_.push(S),F+=.01);F<1+z;)w=N*F+Y,x=k+Math.cos(w)*B,T=I+Math.sin(w)*B,S.points.push(new r(x,T,v)),F+=.01;w=N+Y,x=k+Math.cos(w)*B,T=I+Math.sin(w)*B,S.points.push(new r(x,T,v));break;case n.FILL_RECT:u.setTexture2D(M),u.batchFillRect(p[++O],p[++O],p[++O],p[++O],f,c);break;case n.FILL_TRIANGLE:u.setTexture2D(M),u.batchFillTriangle(p[++O],p[++O],p[++O],p[++O],p[++O],p[++O],f,c);break;case n.STROKE_TRIANGLE:u.setTexture2D(M),u.batchStrokeTriangle(p[++O],p[++O],p[++O],p[++O],p[++O],p[++O],v,f,c);break;case n.LINE_TO:null!==S?S.points.push(new r(p[++O],p[++O],v)):(S=new o(p[++O],p[++O],v),_.push(S));break;case n.MOVE_TO:S=new o(p[++O],p[++O],v),_.push(S);break;case n.SAVE:a.push(f.copyToArray());break;case n.RESTORE:f.copyFromArray(a.pop());break;case n.TRANSLATE:k=p[++O],I=p[++O],f.translate(k,I);break;case n.SCALE:k=p[++O],I=p[++O],f.scale(k,I);break;case n.ROTATE:f.rotate(p[++O]);break;case n.SET_TEXTURE:var U=p[++O],G=p[++O];u.currentFrame=U,u.setTexture2D(U.glTexture,0),u.tintEffect=G,M=U.glTexture;break;case n.CLEAR_TEXTURE:u.currentFrame=t.blankTexture,u.tintEffect=2,M=t.blankTexture.glTexture}}}},function(t,e,i){var n=i(1),s=i(1);n=i(963),s=i(964),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(1),s=i(1);n=i(966),s=i(967),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){t.exports={GravityWell:i(397),Particle:i(398),ParticleEmitter:i(399),ParticleEmitterManager:i(190),Zones:i(973)}},function(t,e,i){var n=i(0),s=i(327),r=i(67),o=i(2),a=i(58),h=new n({initialize:function(t,e,i,n){void 0===n&&(n=!1),this.propertyKey=e,this.propertyValue=i,this.defaultValue=i,this.steps=0,this.counter=0,this.start=0,this.end=0,this.ease,this.emitOnly=n,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.loadConfig(t)},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=o(t,this.propertyKey,this.defaultValue),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return this.propertyValue},onChange:function(t){return this.propertyValue=t,this.setMethods()},setMethods:function(){var t=this.propertyValue,e=typeof t;if("number"===e)this.onEmit=this.staticValueEmit,this.onUpdate=this.staticValueUpdate;else if(Array.isArray(t))this.onEmit=this.randomStaticValueEmit;else if("function"===e)this.emitOnly?this.onEmit=t:this.onUpdate=t;else if("object"===e&&(this.has(t,"random")||this.hasBoth(t,"start","end")||this.hasBoth(t,"min","max"))){this.start=this.has(t,"start")?t.start:t.min,this.end=this.has(t,"end")?t.end:t.max;var i=this.hasBoth(t,"min","max")||!!t.random;if(i){var n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),this.onEmit=this.randomRangedValueEmit}if(this.has(t,"steps"))this.steps=t.steps,this.counter=this.start,this.onEmit=this.steppedEmit;else{var s=this.has(t,"ease")?t.ease:"Linear";this.ease=r(s),i||(this.onEmit=this.easedValueEmit),this.onUpdate=this.easeValueUpdate}}else"object"===e&&this.hasEither(t,"onEmit","onUpdate")&&(this.has(t,"onEmit")&&(this.onEmit=t.onEmit),this.has(t,"onUpdate")&&(this.onUpdate=t.onUpdate));return this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,n){return n},staticValueEmit:function(){return this.propertyValue},staticValueUpdate:function(){return this.propertyValue},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.propertyValue[t]},randomRangedValueEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i),i},steppedEmit:function(){var t=this.counter,e=this.counter+(this.end-this.start)/this.steps;return this.counter=a(e,this.start,this.end),t},easedValueEmit:function(t,e){if(t&&t.data[e]){var i=t.data[e];i.min=this.start,i.max=this.end}return this.start},easeValueUpdate:function(t,e,i){var n=t.data[e];return(n.max-n.min)*this.ease(i)+n.min}});t.exports=h},function(t,e,i){var n=i(1),s=i(1);n=i(971),s=i(972),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){var o=e.emitters.list,a=o.length;if(0!==a){var h=this.pipeline,l=h._tempMatrix1.copyFrom(s.matrix),u=h._tempMatrix2,c=h._tempMatrix3,d=h._tempMatrix4.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);l.multiply(d),t.setPipeline(h);var f=s.roundPixels,p=e.defaultFrame.glTexture,g=n.getTintAppendFloatAlphaAndSwap;h.setTexture2D(p,0);for(var v=0;v?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"}},function(t,e,i){var n=i(6);t.exports=function(t,e){var i=e.width,s=e.height,r=Math.floor(i/2),o=Math.floor(s/2),a=n(e,"chars","");if(""!==a){var h=n(e,"image",""),l=n(e,"offset.x",0),u=n(e,"offset.y",0),c=n(e,"spacing.x",0),d=n(e,"spacing.y",0),f=n(e,"lineSpacing",0),p=n(e,"charsPerRow",null);null===p&&(p=t.sys.textures.getFrame(h).width/i)>a.length&&(p=a.length);for(var g=l,v=u,m={retroFont:!0,font:h,size:i,lineHeight:s+f,chars:{}},y=0,x=0;x0&&r.maxLines1&&(d+=f*(h-1)),{width:a,height:d,lines:h,lineWidths:o,lineSpacing:f,lineHeight:c}}},function(t,e,i){var n=i(1),s=i(1);n=i(985),s=i(986),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){if(0!==e.width&&0!==e.height){var o=e.frame,a=o.width,h=o.height,l=n.getTintAppendFloatAlpha;this.pipeline.batchTexture(e,o.glTexture,a,h,e.x,e.y,a/e.style.resolution,h/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,a,h,l(e._tintTL,s.alpha*e._alphaTL),l(e._tintTR,s.alpha*e._alphaTR),l(e._tintBL,s.alpha*e._alphaBL),l(e._tintBR,s.alpha*e._alphaBR),e._isTinted&&e.tintFill,0,0,s,r)}}},function(t,e){t.exports=function(t,e,i,n,s){0!==e.width&&0!==e.height&&t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(0),s=i(14),r=i(6),o=i(988),a={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},h=new n({initialize:function(t,e){this.parent=t,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this._font,this.setStyle(e,!1,!0);var i=r(e,"metrics",!1);this.metrics=i?{ascent:r(i,"ascent",0),descent:r(i,"descent",0),fontSize:r(i,"fontSize",0)}:o(this)},setStyle:function(t,e,i){for(var n in void 0===e&&(e=!0),void 0===i&&(i=!1),t&&t.hasOwnProperty("fontSize")&&"number"==typeof t.fontSize&&(t.fontSize=t.fontSize.toString()+"px"),a){var o=i?a[n][1]:this[n];this[n]="wordWrapCallback"===n||"wordWrapCallbackScope"===n?r(t,a[n][0],o):s(t,a[n][0],o)}var h=r(t,"font",null);null!==h&&this.setFont(h,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var l=r(t,"fill",null);return null!==l&&(this.color=l),e?this.update(!0):this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline="alphabetic",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap="round",e.lineJoin="round"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=o(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i=t,n="",s="";if("string"!=typeof t)i=r(t,"fontFamily","Courier"),n=r(t,"fontSize","16px"),s=r(t,"fontStyle","");else{var o=t.split(" "),a=0;s=o.length>2?o[a++]:"",n=o[a++]||"16px",i=o[a++]||"Courier"}return i===this.fontFamily&&n===this.fontSize&&s===this.fontStyle||(this.fontFamily=i,this.fontSize=n,this.fontStyle=s,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return"number"==typeof t&&(t=t.toString()+"px"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,n,s,r){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i="#000"),void 0===n&&(n=0),void 0===s&&(s=!1),void 0===r&&(r=!0),this.shadowOffsetX=t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=n,this.shadowStroke=s,this.shadowFill=r,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return void 0===t&&(t="#000"),this.shadowColor=t,this.update(!1)},setShadowBlur:function(t){return void 0===t&&(t=0),this.shadowBlur=t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return void 0===t&&(t="left"),this.align=t,this.update(!1)},setMaxLines:function(t){return void 0===t&&(t=0),this.maxLines=t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t={};for(var e in a)t[e]=this[e];return t.metrics=this.getTextMetrics(),t},destroy:function(){this.parent=void 0}});t.exports=h},function(t,e,i){var n=i(26);t.exports=function(t){var e=n.create(this),i=e.getContext("2d");t.syncFont(e,i);var s=Math.ceil(i.measureText(t.testString).width*t.baselineX),r=s,o=2*r;r=r*t.baselineY|0,e.width=s,e.height=o,i.fillStyle="#f00",i.fillRect(0,0,s,o),i.font=t._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(t.testString,0,r);var a={ascent:0,descent:0,fontSize:0};if(!i.getImageData(0,0,s,o))return a.ascent=r,a.descent=r+6,a.fontSize=a.ascent+a.descent,n.remove(e),a;var h,l,u=i.getImageData(0,0,s,o).data,c=u.length,d=4*s,f=0,p=!1;for(h=0;hr;h--){for(l=0;l0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.fillColor,e.fillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.altFillColor,e.altFillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0){var R=o.strokeTint,L=n.getTintAppendFloatAlphaAndSwap(e.outlineFillColor,e.outlineFillAlpha*d);for(R.TL=L,R.TR=L,R.BL=L,R.BR=L,S=1;S0)for(n(h,e),S=0;S0)for(n(h,e,e.altFillColor,e.altFillAlpha*c),S=0;S0){for(s(h,e,e.outlineFillColor,e.outlineFillAlpha*c),A=1;Ao.vertexCapacity&&o.flush(),o.setTexture2D(u,0);for(var m=o.vertexViewF32,y=o.vertexViewU32,x=o.vertexCount*o.vertexComponentCount-1,T=0,w=e.tintFill,E=0;E0?Math.PI*t.radius*t.radius:0}},function(t,e,i){var n=i(63);t.exports=function(t){return new n(t.x,t.y,t.radius)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},function(t,e,i){var n=i(12);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(94);n.Area=i(1096),n.Circumference=i(395),n.CircumferencePoint=i(189),n.Clone=i(1097),n.Contains=i(95),n.ContainsPoint=i(1098),n.ContainsRect=i(1099),n.CopyFrom=i(1100),n.Equals=i(1101),n.GetBounds=i(1102),n.GetPoint=i(393),n.GetPoints=i(394),n.Offset=i(1103),n.OffsetPoint=i(1104),n.Random=i(152),t.exports=n},function(t,e){t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},function(t,e,i){var n=i(94);t.exports=function(t){return new n(t.x,t.y,t.width,t.height)}},function(t,e,i){var n=i(95);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(95);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},function(t,e,i){var n=i(12);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(4),s=i(201);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a,h,l=t.x,u=t.y,c=t.radius,d=e.x,f=e.y,p=e.radius;if(u===f)0==(a=(o=-2*f)*o-4*(r=1)*(d*d+(h=(p*p-c*c-d*d+l*l)/(2*(l-d)))*h-2*d*h+f*f-p*p))?i.push(new n(h,-o/(2*r))):a>0&&(i.push(new n(h,(-o+Math.sqrt(a))/(2*r))),i.push(new n(h,(-o-Math.sqrt(a))/(2*r))));else{var g=(l-d)/(u-f),v=(p*p-c*c-d*d+l*l-f*f+u*u)/(2*(u-f));0==(a=(o=2*u*g-2*v*g-2*l)*o-4*(r=g*g+1)*(l*l+u*u+v*v-c*c-2*u*v))?(h=-o/(2*r),i.push(new n(h,v-h*g))):a>0&&(h=(-o+Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)),h=(-o-Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)))}}return i}},function(t,e,i){var n=i(203),s=i(202);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC(),h=e.getLineD();n(r,t,i),n(o,t,i),n(a,t,i),n(h,t,i)}return i}},function(t,e,i){var n=i(12),s=i(130);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},function(t,e,i){var n=i(205),s=i(130);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC(),h=t.getLineD();n(r,e,i),n(o,e,i),n(a,e,i),n(h,e,i)}return i}},function(t,e,i){var n=i(428),s=i(205);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(r,t,i),s(o,t,i),s(a,t,i)}return i}},function(t,e,i){var n=i(203),s=i(430);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC();n(r,e,i),n(o,e,i),n(a,e,i)}return i}},function(t,e,i){var n=i(433),s=i(431);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(t,r,i),s(t,o,i),s(t,a,i)}return i}},function(t,e,i){var n=i(435);t.exports=function(t,e){if(!n(t,e))return!1;var i=Math.min(e.x1,e.x2),s=Math.max(e.x1,e.x2),r=Math.min(e.y1,e.y2),o=Math.max(e.y1,e.y2);return t.x>=i&&t.x<=s&&t.y>=r&&t.y<=o}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===r&&(r=0),!(e>t.right+r||it.bottom+r||s0){var m=u[0],y=[m];for(h=1;h=o&&(y.push(x),m=x)}var T=u[u.length-1];return n(m,T)i&&(i=h.x),h.xr&&(r=h.y),h.yn(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.centerX,e.y=t.centerY,e}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.width,e.y=t.height,e}},function(t,e,i){var n=i(163);t.exports=function(t,e,i){var s=t.centerX,r=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),n(t,s,r)}},function(t,e,i){var n=i(12),s=i(130);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},function(t,e){t.exports=function(t,e){for(var i=t.x,n=t.right,s=t.y,r=t.bottom,o=0;oe.x&&t.ye.y}},function(t,e,i){var n=i(4),s=i(35);t.exports=function(t,e,i){void 0===i&&(i=new n),e=s(e);var r=Math.sin(e),o=Math.cos(e),a=o>0?t.width/2:t.width/-2,h=r>0?t.height/2:t.height/-2;return Math.abs(a*r)-1&&(s.splice(a,1),this.clear(o,!0))}t.length=0,this._pendingRemoval.length=0,this._list=s.concat(e.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.isActive()},updatePoll:function(t,e){if(!this.isActive())return!1;if(this.pluginEvents.emit(d.UPDATE,t,e),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var i,n=this.manager,s=n.pointers,r=n.pointersTotal;for(i=0;i0){if(this._pollTimer-=e,!(this._pollTimer<0))return!1;this._pollTimer=this.pollRate}var a=!1;for(i=0;i0&&(a=!0)}return a},update:function(t,e){if(!this.isActive())return!1;for(var i=e.length,n=!1,s=0;s0&&(n=!0)}return this._updatedThisFrame=!0,n},clear:function(t,e){void 0===e&&(e=!1);var i=t.input;if(i){e||this.queueForRemoval(t),i.gameObject=void 0,i.target=void 0,i.hitArea=void 0,i.hitAreaCallback=void 0,i.callbackContext=void 0,this.manager.resetCursor(i),t.input=null;var n=this._draggable.indexOf(t);return n>-1&&this._draggable.splice(n,1),(n=this._drag[0].indexOf(t))>-1&&this._drag[0].splice(n,1),(n=this._over[0].indexOf(t))>-1&&this._over[0].splice(n,1),t}},disable:function(t){t.input.enabled=!1},enable:function(t,e,i,n){return void 0===n&&(n=!1),t.input?t.input.enabled=!0:this.setHitArea(t,e,i),t.input&&n&&!t.input.dropZone&&(t.input.dropZone=n),this},hitTestPointer:function(t){for(var e=this.cameras.getCamerasBelowPointer(t),i=0;i0)return t.camera=n,s}return t.camera=e[0],[]},processDownEvents:function(t){var e=0,i=this._temp,n=this._eventData,s=this._eventContainer;n.cancelled=!1;for(var r=!1,o=0;o0&&l(t.x,t.y,t.downX,t.downY)>=s?i=!0:n>0&&e>=t.downTime+n&&(i=!0),i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;for(var e=this._drag[t.id],i=0;i1&&(this.sortGameObjects(i),this.topOnly&&i.splice(1)),this._drag[t.id]=i,0===this.dragDistanceThreshold&&0===this.dragTimeThreshold?(this.setDragState(t,3),this.processDragStartList(t)):(this.setDragState(t,2),0))},processDragMoveEvent:function(t){if(2===this.getDragState(t)&&this.processDragThresholdEvent(t,this.manager.game.loop.now),4!==this.getDragState(t))return 0;for(var e=this._tempZones,i=this._drag[t.id],n=0;n0?(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),e[0]?(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):a.target=null)}else!h&&e[0]&&(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h));if(o.parentContainer){var u=t.x-a.dragStartXGlobal,c=t.y-a.dragStartYGlobal,f=o.getParentRotation(),p=u*Math.cos(f)+c*Math.sin(f),g=c*Math.cos(f)-u*Math.sin(f);p*=1/o.parentContainer.scaleX,g*=1/o.parentContainer.scaleY,s=p+a.dragStartX,r=g+a.dragStartY}else s=t.x-a.dragX,r=t.y-a.dragY;o.emit(d.GAMEOBJECT_DRAG,t,s,r),this.emit(d.DRAG,t,o,s,r)}return i.length},processDragUpEvent:function(t){for(var e=this._drag[t.id],i=0;i0){var r=this.manager,o=this._eventData,a=this._eventContainer;o.cancelled=!1;for(var h=!1,l=0;l0){var s=this.manager,r=this._eventData,o=this._eventContainer;r.cancelled=!1;var a=!1;this.sortGameObjects(e);for(var h=0;h0){for(this.sortGameObjects(s),e=0;e0){for(this.sortGameObjects(r),e=0;e-1&&this._draggable.splice(s,1)}return this},makePixelPerfect:function(t){void 0===t&&(t=1);var e=this.systems.textures;return h(e,t)},setHitArea:function(t,e,i){if(void 0===e)return this.setHitAreaFromTexture(t);Array.isArray(t)||(t=[t]);var n=!1,s=!1,r=!1,o=!1,h=!1,l=!0;if(m(e)){var u=e;e=p(u,"hitArea",null),i=p(u,"hitAreaCallback",null),n=p(u,"draggable",!1),s=p(u,"dropZone",!1),r=p(u,"cursor",!1),o=p(u,"useHandCursor",!1),h=p(u,"pixelPerfect",!1);var c=p(u,"alphaTolerance",1);h&&(e={},i=this.makePixelPerfect(c)),e&&i||(this.setHitAreaFromTexture(t),l=!1)}else"function"!=typeof e||i||(i=e,e={});for(var d=0;d=e}}},function(t,e,i){t.exports={Events:i(132),KeyboardManager:i(363),KeyboardPlugin:i(1218),Key:i(448),KeyCodes:i(119),KeyCombo:i(449),JustDown:i(1223),JustUp:i(1224),DownDuration:i(1225),UpDuration:i(1226)}},function(t,e){t.exports="keydown"},function(t,e){t.exports="keyup"},function(t,e){t.exports="keycombomatch"},function(t,e){t.exports="down"},function(t,e){t.exports="keydown-"},function(t,e){t.exports="keyup-"},function(t,e){t.exports="up"},function(t,e,i){var n=i(0),s=i(10),r=i(132),o=i(18),a=i(6),h=i(54),l=i(131),u=i(448),c=i(119),d=i(449),f=i(1222),p=i(92),g=new n({Extends:s,initialize:function(t){s.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],t.pluginEvents.once(h.BOOT,this.boot,this),t.pluginEvents.on(h.START,this.start,this)},boot:function(){var t=this.settings.input;this.enabled=a(t,"keyboard",!0);var e=a(t,"keyboard.capture",null);e&&this.addCaptures(e),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.useQueue?this.sceneInputPlugin.pluginEvents.on(h.UPDATE,this.update,this):this.sceneInputPlugin.manager.events.on(h.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this),this.game.events.on(o.BLUR,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var n={};if("string"==typeof t){t=t.split(",");for(var s=0;s-1?n[s]=t:n[t.keyCode]=t,e&&this.addCapture(t.keyCode),t.setEmitOnRepeat(i),t}return"string"==typeof t&&(t=c[t.toUpperCase()]),n[t]||(n[t]=new u(this,t),e&&this.addCapture(t),n[t].setEmitOnRepeat(i)),n[t]},removeKey:function(t,e){void 0===e&&(e=!1);var i,n=this.keys;if(t instanceof u){var s=n.indexOf(t);s>-1&&(i=this.keys[s],this.keys[s]=void 0)}else"string"==typeof t&&(t=c[t.toUpperCase()]);return n[t]&&(i=n[t],n[t]=void 0),i&&(i.plugin=null,e&&i.destroy()),this},createCombo:function(t,e){return new d(this,t,e)},checkDown:function(t,e){if(this.enabled&&t.isDown){var i=p(this.time-t.timeDown,e);if(i>t._tick)return t._tick=i,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,n=0;n0&&e.maxKeyDelay>0){var r=e.timeLastMatched+e.maxKeyDelay;t.timeStamp<=r&&(s=!0,i=n(t,e))}else s=!0,i=n(t,e);return!s&&e.resetOnWrongKey&&(e.index=0,e.current=e.keyCodes[0]),i&&(e.timeLastMatched=t.timeStamp,e.matched=!0,e.timeMatched=t.timeStamp),i}},function(t,e){t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},function(t,e){t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},function(t,e,i){var n=i(119),s={};for(var r in n)s[n[r]]=r;t.exports=s},function(t,e){t.exports=function(t){return!!t._justDown&&(t._justDown=!1,!0)}},function(t,e){t.exports=function(t){return!!t._justUp&&(t._justUp=!1,!0)}},function(t,e){t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i'),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push("");var n=[i.join("\n")],o=this;try{var a=new window.Blob(n,{type:"image/svg+xml;charset=utf-8"})}catch(t){return o.state=s.FILE_ERRORED,void o.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){r.revokeObjectURL(o.data),o.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(o.data),o.onProcessError()},r.createObjectURL(this.data,a,"image/svg+xml")},addToCache:function(){var t=this.cache.addImage(this.key,this.data);this.pendingDestroy(t)}});o.register("htmlTexture",function(t,e,i,n,s){if(Array.isArray(t))for(var r=0;r0},isLoading:function(){return this.state===s.LOADER_LOADING||this.state===s.LOADER_PROCESSING},isReady:function(){return this.state===s.LOADER_IDLE||this.state===s.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(a.START,this),0===this.list.size?this.loadComplete():(this.state=s.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(c.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(a.PROGRESS,this.progress)},update:function(){this.state===s.LOADER_LOADING&&this.list.size>0&&this.inflight.sizei&&(n=l,i=c)}}return n},moveTo:function(t,e,i,n,s){void 0===n&&(n=60),void 0===s&&(s=0);var o=Math.atan2(i-t.y,e-t.x);return s>0&&(n=r(t.x,t.y,e,i)/(s/1e3)),t.body.velocity.setToPolar(o,n),o},moveToObject:function(t,e,i,n){return this.moveTo(t,e.x,e.y,i,n)},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(s(t),e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(t,e)},overlapRect:function(t,e,i,n,s,r){return c(this.world,t,e,i,n,s,r)},overlapCirc:function(t,e,i,n,s){return u(this.world,t,e,i,n,s)},shutdown:function(){if(this.world){var t=this.systems.events;t.off(f.UPDATE,this.world.update,this.world),t.off(f.POST_UPDATE,this.world.postUpdate,this.world),t.off(f.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null}},destroy:function(){this.shutdown(),this.scene.sys.events.off(f.START,this.start,this),this.scene=null,this.systems=null}});d.register("ArcadePhysics",v,"arcadePhysics"),t.exports=v},function(t,e){t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},function(t,e){t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},function(t,e){t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i){return this.body.setCollideWorldBounds(t,e,i),this}}},function(t,e){t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},function(t,e){t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},function(t,e){var i={enableBody:function(t,e,i,n,s){return t&&this.body.reset(e,i),n&&(this.body.gameObject.active=!0),s&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};t.exports=i},function(t,e){t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},function(t,e){t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},function(t,e){var i={setImmovable:function(t){return void 0===t&&(t=!0),this.body.immovable=t,this}};t.exports=i},function(t,e){t.exports={setMass:function(t){return this.body.mass=t,this}}},function(t,e){t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},function(t,e){t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},function(t,e,i){var n=i(459),s=i(63),r=i(201),o=i(202);t.exports=function(t,e,i,a,h,l){var u=n(t,e-a,i-a,2*a,2*a,h,l);if(0===u.length)return u;for(var c=new s(e,i,a),d=new s,f=[],p=0;pe.deltaAbsY()?y=-1:e.deltaAbsX()0&&u&&t.checkCollision.right&&h&&t.right>i&&(a=t.right-i)>r&&(a=0),0!==a&&(t.customSeparateX?t.overlapX=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):e>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=e,0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x}},function(t,e,i){var n=i(1283);t.exports=function(t,e,i,s,r,o){var a=0,h=e.faceTop,l=e.faceBottom,u=e.collideUp,c=e.collideDown;return o||(h=!0,l=!0,u=!0,c=!0),t.deltaY()<0&&c&&t.checkCollision.up?l&&t.y0&&u&&t.checkCollision.down&&h&&t.bottom>i&&(a=t.bottom-i)>r&&(a=0),0!==a&&(t.customSeparateY?t.overlapY=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):e>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=e,0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},function(t,e,i){var n=i(463);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.x,a=e.velocity.x;if(t.immovable||e.immovable)t.immovable?(e.x+=r,e.velocity.x=o-a*e.bounce.x,t.moves&&(e.y+=(t.y-t.prev.y)*t.friction.y)):(t.x-=r,t.velocity.x=a-o*t.bounce.x,e.moves&&(t.y+=(e.y-e.prev.y)*e.friction.y));else{r*=.5,t.x-=r,e.x+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.x=u+h*t.bounce.x,e.velocity.x=u+l*e.bounce.x}return!0}},function(t,e,i){var n=i(464);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateY||e.customSeparateY)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.y,a=e.velocity.y;if(t.immovable||e.immovable)t.immovable?(e.y+=r,e.velocity.y=o-a*e.bounce.y,t.moves&&(e.x+=(t.x-t.prev.x)*t.friction.x)):(t.y-=r,t.velocity.y=a-o*t.bounce.y,e.moves&&(t.x+=(e.x-e.prev.x)*e.friction.x));else{r*=.5,t.y-=r,e.y+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.y=u+h*t.bounce.y,e.velocity.y=u+l*e.bounce.y}return!0}},,,,,,,,,,,,,function(t,e,i){t.exports={BasePlugin:i(469),DefaultPlugins:i(171),PluginCache:i(23),PluginManager:i(367),ScenePlugin:i(1299)}},function(t,e,i){var n=i(469),s=i(0),r=i(21),o=new s({Extends:n,initialize:function(t,e){n.call(this,e),this.scene=t,this.systems=t.sys,t.sys.events.once(r.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=o},function(t,e,i){var n=i(17),s=i(173),r={Center:i(356),Events:i(91),Orientation:i(357),ScaleManager:i(368),ScaleModes:i(358),Zoom:i(359)};r=n(!1,r=n(!1,r=n(!1,r=n(!1,r,s.CENTER),s.ORIENTATION),s.SCALE_MODE),s.ZOOM),t.exports=r},function(t,e,i){var n=i(120),s=i(17),r={Events:i(21),SceneManager:i(370),ScenePlugin:i(1302),Settings:i(372),Systems:i(176)};r=s(!1,r,n),t.exports=r},function(t,e,i){var n=i(22),s=i(0),r=i(21),o=i(2),a=i(23),h=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.pluginStart,this)},boot:function(){this.systems.events.once(r.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp("stop",e),this.manager.queueOp("start",e,t),this},transition:function(t){void 0===t&&(t={});var e=o(t,"target",!1),i=this.manager.getScene(e);if(!e||!this.checkValidTransition(i))return!1;var n=o(t,"duration",1e3);this._elapsed=0,this._target=i,this._duration=n,this._willSleep=o(t,"sleep",!1),this._willRemove=o(t,"remove",!1);var s=o(t,"onUpdate",null);s&&(this._onUpdate=s,this._onUpdateScope=o(t,"onUpdateScope",this.scene));var a=o(t,"allowInput",!1);this.settings.transitionAllowInput=a;var h=i.sys.settings;return h.isTransition=!0,h.transitionFrom=this.scene,h.transitionDuration=n,h.transitionAllowInput=a,o(t,"moveAbove",!1)?this.manager.moveAbove(this.key,e):o(t,"moveBelow",!1)&&this.manager.moveBelow(this.key,e),i.sys.isSleeping()?i.sys.wake():this.manager.start(e,o(t,"data")),this.systems.events.emit(r.TRANSITION_OUT,i,n),this.systems.events.on(r.UPDATE,this.step,this),!0},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=n(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;this.systems.events.off(r.UPDATE,this.step,this),t.events.emit(r.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i,n){return this.manager.add(t,e,i,n)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp("start",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp("run",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("pause",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("resume",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("sleep",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("wake",t,e),this},switch:function(t){return t!==this.key&&this.manager.queueOp("switch",this.key,t),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);var n=this.manager.getScene(e);return n&&n.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(r.SHUTDOWN,this.shutdown,this),t.off(r.POST_UPDATE,this.step,this),t.off(r.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});a.register("ScenePlugin",h,"scenePlugin"),t.exports=h},function(t,e,i){t.exports={List:i(124),Map:i(157),ProcessQueue:i(182),RTree:i(465),Set:i(128),Size:i(369)}},function(t,e,i){var n=i(17),s=i(1305),r={CanvasTexture:i(374),Events:i(116),FilterMode:s,Frame:i(93),Parsers:i(376),Texture:i(178),TextureManager:i(373),TextureSource:i(375)};r=n(!1,r,s),t.exports=r},function(t,e){t.exports={LINEAR:0,NEAREST:1}},function(t,e,i){t.exports={Components:i(136),Parsers:i(1334),Formats:i(33),ImageCollection:i(484),ParseToTilemap:i(224),Tile:i(73),Tilemap:i(493),TilemapCreator:i(1343),TilemapFactory:i(1344),Tileset:i(138),LayerData:i(101),MapData:i(102),ObjectLayer:i(487),DynamicTilemapLayer:i(494),StaticTilemapLayer:i(495)}},function(t,e,i){var n=i(24),s=i(51);t.exports=function(t,e,i,r,o,a,h,l){t<0&&(t=0),e<0&&(e=0),void 0===h&&(h=!0);for(var u=n(t,e,i,r,null,l),c=o-t,d=a-e,f=0;f=0&&p=0&&ge.worldView.x&&s.xe.worldView.y&&s.y=v;o--)(h=c[a][o])&&-1!==h.index&&h.visible&&0!==h.alpha&&i.push(h);else if(2===r)for(a=x;a>=y;a--)for(o=v;c[a]&&o=y;a--)for(o=m;c[a]&&o>=v;o--)(h=c[a][o])&&-1!==h.index&&h.visible&&0!==h.alpha&&i.push(h)}else if("isometric"===t.orientation)if(0===r){for(a=y;a=v;o--)if(T(o,a)){if(!(h=c[a][o])||-1===h.index||!h.visible||0===h.alpha)continue;i.push(h)}}else if(2===r){for(a=x;a>=y;a--)for(o=v;c[a]&&o=y;a--)for(o=m;c[a]&&o>=v;o--)if(T(o,a)){if(!(h=c[a][o])||-1===h.index||!h.visible||0===h.alpha)continue;i.push(h)}return u.tilesDrawn=i.length,u.tilesTotal=d*f,i}},function(t,e,i){var n=i(24),s=i(51),r=i(71);t.exports=function(t,e,i,o,a,h,l){for(var u=-1!==l.collideIndexes.indexOf(t),c=n(e,i,o,a,null,l),d=0;d=0;r--)for(s=n.width-1;s>=0;s--)if((o=n.data[r][s])&&o.index===t){if(a===e)return o;a+=1}}else for(r=0;re)){for(var l=t;l<=e;l++)r(l,i,a);if(h)for(var u=0;u=t&&d.index<=e&&n(d,i)}o&&s(0,0,a.width,a.height,a)}}},function(t,e,i){var n=i(71),s=i(51),r=i(219);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var a=0;a0&&n(a,t)}}e&&s(0,0,i.width,i.height,i)}},function(t,e){t.exports=function(t,e,i,n){if("number"==typeof t)n.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var s=0,r=t.length;s1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f0&&(t.currentPipeline&&t.currentPipeline.vertexCount>0&&t.flush(),r.vertexBuffer=e.vertexBuffer[a],t.setPipeline(r),t.setTexture2D(s[a].glTexture,0),t.gl.drawArrays(r.topology,0,e.vertexCount[a]));r.vertexBuffer=o,r.viewIdentity(),r.modelIdentity()}},function(t,e){t.exports=function(t,e,i,n,s){e.cull(n);var r=e.culledTiles,o=r.length;if(0!==o){var a=t._tempMatrix1,h=t._tempMatrix2,l=t._tempMatrix3;h.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),a.copyFrom(n.matrix);var u=t.currentContext,c=e.gidMap;u.save(),s?(a.multiplyWithOffset(s,-n.scrollX*e.scrollFactorX,-n.scrollY*e.scrollFactorY),h.e=e.x,h.f=e.y,a.multiply(h,l),l.copyToContext(u)):(h.e-=n.scrollX*e.scrollFactorX,h.f-=n.scrollY*e.scrollFactorY,h.copyToContext(u));var d=n.alpha*e.alpha;(!t.antialias||e.scaleX>1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f-1&&this._active.splice(s,1),n.destroy()}for(i=0;i=n.delay)){var s=n.elapsed-n.delay;n.elapsed=n.delay,!n.hasDispatched&&n.callback&&(n.hasDispatched=!0,n.callback.apply(n.callbackScope,n.args)),n.repeatCount>0?(n.repeatCount--,n.elapsed=s,n.hasDispatched=!1):this._pendingRemoval.push(n)}}}},shutdown:function(){var t;for(t=0;t-1&&(e.state=u.REMOVED,s.splice(r,1)):(e.state=u.REMOVED,n.splice(r,1))}for(i.length=0,i=this._add,t=0;t>2],r+=i[(3&n[o])<<4|n[o+1]>>4],r+=i[(15&n[o+1])<<2|n[o+2]>>6],r+=i[63&n[o+2]];return s%3==2?r=r.substring(0,r.length-1)+"=":s%3==1&&(r=r.substring(0,r.length-2)+"=="),r}},function(t,e,i){t.exports={Clone:i(65),Extend:i(17),GetAdvancedValue:i(14),GetFastValue:i(2),GetMinMaxValue:i(1368),GetValue:i(6),HasAll:i(1369),HasAny:i(402),HasValue:i(105),IsPlainObject:i(7),Merge:i(121),MergeRight:i(1370),Pick:i(485),SetValue:i(422)}},function(t,e,i){var n=i(6),s=i(22);t.exports=function(t,e,i,r,o){void 0===o&&(o=i);var a=n(t,e,o);return s(a,i,r)}},function(t,e){t.exports=function(t,e){for(var i=0;i + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Renderer.WebGL.Utils + * @since 3.0.0 + */ +module.exports = { + + /** + * Packs four floats on a range from 0.0 to 1.0 into a single Uint32 + * + * @function Phaser.Renderer.WebGL.Utils.getTintFromFloats + * @since 3.0.0 + * + * @param {number} r - Red component in a range from 0.0 to 1.0 + * @param {number} g - Green component in a range from 0.0 to 1.0 + * @param {number} b - Blue component in a range from 0.0 to 1.0 + * @param {number} a - Alpha component in a range from 0.0 to 1.0 + * + * @return {number} The packed RGBA values as a Uint32. + */ + getTintFromFloats: function (r, g, b, a) + { + var ur = ((r * 255.0)|0) & 0xFF; + var ug = ((g * 255.0)|0) & 0xFF; + var ub = ((b * 255.0)|0) & 0xFF; + var ua = ((a * 255.0)|0) & 0xFF; + + return ((ua << 24) | (ur << 16) | (ug << 8) | ub) >>> 0; + }, + + /** + * Packs a Uint24, representing RGB components, with a Float32, representing + * the alpha component, with a range between 0.0 and 1.0 and return a Uint32 + * + * @function Phaser.Renderer.WebGL.Utils.getTintAppendFloatAlpha + * @since 3.0.0 + * + * @param {number} rgb - Uint24 representing RGB components + * @param {number} a - Float32 representing Alpha component + * + * @return {number} Packed RGBA as Uint32 + */ + getTintAppendFloatAlpha: function (rgb, a) + { + var ua = ((a * 255.0)|0) & 0xFF; + return ((ua << 24) | rgb) >>> 0; + }, + + /** + * Packs a Uint24, representing RGB components, with a Float32, representing + * the alpha component, with a range between 0.0 and 1.0 and return a + * swizzled Uint32 + * + * @function Phaser.Renderer.WebGL.Utils.getTintAppendFloatAlphaAndSwap + * @since 3.0.0 + * + * @param {number} rgb - Uint24 representing RGB components + * @param {number} a - Float32 representing Alpha component + * + * @return {number} Packed RGBA as Uint32 + */ + getTintAppendFloatAlphaAndSwap: function (rgb, a) + { + var ur = ((rgb >> 16)|0) & 0xff; + var ug = ((rgb >> 8)|0) & 0xff; + var ub = (rgb|0) & 0xff; + var ua = ((a * 255.0)|0) & 0xFF; + + return ((ua << 24) | (ub << 16) | (ug << 8) | ur) >>> 0; + }, + + /** + * Unpacks a Uint24 RGB into an array of floats of ranges of 0.0 and 1.0 + * + * @function Phaser.Renderer.WebGL.Utils.getFloatsFromUintRGB + * @since 3.0.0 + * + * @param {number} rgb - RGB packed as a Uint24 + * + * @return {array} Array of floats representing each component as a float + */ + getFloatsFromUintRGB: function (rgb) + { + var ur = ((rgb >> 16)|0) & 0xff; + var ug = ((rgb >> 8)|0) & 0xff; + var ub = (rgb|0) & 0xff; + + return [ ur / 255.0, ug / 255.0, ub / 255.0 ]; + }, + + /** + * Counts how many attributes of 32 bits a vertex has + * + * @function Phaser.Renderer.WebGL.Utils.getComponentCount + * @since 3.0.0 + * + * @param {array} attributes - Array of attributes + * @param {WebGLRenderingContext} glContext - WebGLContext used for check types + * + * @return {number} Count of 32 bit attributes in vertex + */ + getComponentCount: function (attributes, glContext) + { + var count = 0; + + for (var index = 0; index < attributes.length; ++index) + { + var element = attributes[index]; + + if (element.type === glContext.FLOAT) + { + count += element.size; + } + else + { + count += 1; // We'll force any other type to be 32 bit. for now + } + } + + return count; + } + +}; + + +/***/ }), +/* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -1907,141 +2042,6 @@ if (true) { } -/***/ }), -/* 10 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @author Felipe Alfonso <@bitnenfer> - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Renderer.WebGL.Utils - * @since 3.0.0 - */ -module.exports = { - - /** - * Packs four floats on a range from 0.0 to 1.0 into a single Uint32 - * - * @function Phaser.Renderer.WebGL.Utils.getTintFromFloats - * @since 3.0.0 - * - * @param {number} r - Red component in a range from 0.0 to 1.0 - * @param {number} g - Green component in a range from 0.0 to 1.0 - * @param {number} b - Blue component in a range from 0.0 to 1.0 - * @param {number} a - Alpha component in a range from 0.0 to 1.0 - * - * @return {number} [description] - */ - getTintFromFloats: function (r, g, b, a) - { - var ur = ((r * 255.0)|0) & 0xFF; - var ug = ((g * 255.0)|0) & 0xFF; - var ub = ((b * 255.0)|0) & 0xFF; - var ua = ((a * 255.0)|0) & 0xFF; - - return ((ua << 24) | (ur << 16) | (ug << 8) | ub) >>> 0; - }, - - /** - * Packs a Uint24, representing RGB components, with a Float32, representing - * the alpha component, with a range between 0.0 and 1.0 and return a Uint32 - * - * @function Phaser.Renderer.WebGL.Utils.getTintAppendFloatAlpha - * @since 3.0.0 - * - * @param {number} rgb - Uint24 representing RGB components - * @param {number} a - Float32 representing Alpha component - * - * @return {number} Packed RGBA as Uint32 - */ - getTintAppendFloatAlpha: function (rgb, a) - { - var ua = ((a * 255.0)|0) & 0xFF; - return ((ua << 24) | rgb) >>> 0; - }, - - /** - * Packs a Uint24, representing RGB components, with a Float32, representing - * the alpha component, with a range between 0.0 and 1.0 and return a - * swizzled Uint32 - * - * @function Phaser.Renderer.WebGL.Utils.getTintAppendFloatAlphaAndSwap - * @since 3.0.0 - * - * @param {number} rgb - Uint24 representing RGB components - * @param {number} a - Float32 representing Alpha component - * - * @return {number} Packed RGBA as Uint32 - */ - getTintAppendFloatAlphaAndSwap: function (rgb, a) - { - var ur = ((rgb >> 16)|0) & 0xff; - var ug = ((rgb >> 8)|0) & 0xff; - var ub = (rgb|0) & 0xff; - var ua = ((a * 255.0)|0) & 0xFF; - - return ((ua << 24) | (ub << 16) | (ug << 8) | ur) >>> 0; - }, - - /** - * Unpacks a Uint24 RGB into an array of floats of ranges of 0.0 and 1.0 - * - * @function Phaser.Renderer.WebGL.Utils.getFloatsFromUintRGB - * @since 3.0.0 - * - * @param {number} rgb - RGB packed as a Uint24 - * - * @return {array} Array of floats representing each component as a float - */ - getFloatsFromUintRGB: function (rgb) - { - var ur = ((rgb >> 16)|0) & 0xff; - var ug = ((rgb >> 8)|0) & 0xff; - var ub = (rgb|0) & 0xff; - - return [ ur / 255.0, ug / 255.0, ub / 255.0 ]; - }, - - /** - * Counts how many attributes of 32 bits a vertex has - * - * @function Phaser.Renderer.WebGL.Utils.getComponentCount - * @since 3.0.0 - * - * @param {array} attributes - Array of attributes - * @param {WebGLRenderingContext} glContext - WebGLContext used for check types - * - * @return {number} Count of 32 bit attributes in vertex - */ - getComponentCount: function (attributes, glContext) - { - var count = 0; - - for (var index = 0; index < attributes.length; ++index) - { - var element = attributes[index]; - - if (element.type === glContext.FLOAT) - { - count += element.size; - } - else - { - count += 1; // We'll force any other type to be 32 bit. for now - } - } - - return count; - } - -}; - - /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { @@ -2058,28 +2058,28 @@ module.exports = { module.exports = { - Alpha: __webpack_require__(533), - AlphaSingle: __webpack_require__(268), - Animation: __webpack_require__(504), - BlendMode: __webpack_require__(271), - ComputedSize: __webpack_require__(552), - Crop: __webpack_require__(553), - Depth: __webpack_require__(272), - Flip: __webpack_require__(554), - GetBounds: __webpack_require__(555), - Mask: __webpack_require__(276), - Origin: __webpack_require__(572), - PathFollower: __webpack_require__(573), - Pipeline: __webpack_require__(154), - ScrollFactor: __webpack_require__(279), - Size: __webpack_require__(574), - Texture: __webpack_require__(575), - TextureCrop: __webpack_require__(576), - Tint: __webpack_require__(577), - ToJSON: __webpack_require__(280), - Transform: __webpack_require__(281), + Alpha: __webpack_require__(532), + AlphaSingle: __webpack_require__(266), + Animation: __webpack_require__(503), + BlendMode: __webpack_require__(269), + ComputedSize: __webpack_require__(551), + Crop: __webpack_require__(552), + Depth: __webpack_require__(270), + Flip: __webpack_require__(553), + GetBounds: __webpack_require__(554), + Mask: __webpack_require__(274), + Origin: __webpack_require__(571), + PathFollower: __webpack_require__(572), + Pipeline: __webpack_require__(151), + ScrollFactor: __webpack_require__(277), + Size: __webpack_require__(573), + Texture: __webpack_require__(574), + TextureCrop: __webpack_require__(575), + Tint: __webpack_require__(576), + ToJSON: __webpack_require__(278), + Transform: __webpack_require__(279), TransformMatrix: __webpack_require__(30), - Visible: __webpack_require__(282) + Visible: __webpack_require__(280) }; @@ -2096,11 +2096,11 @@ module.exports = { var Class = __webpack_require__(0); var Contains = __webpack_require__(47); -var GetPoint = __webpack_require__(150); -var GetPoints = __webpack_require__(273); +var GetPoint = __webpack_require__(147); +var GetPoints = __webpack_require__(271); var GEOM_CONST = __webpack_require__(46); var Line = __webpack_require__(56); -var Random = __webpack_require__(153); +var Random = __webpack_require__(150); /** * @classdesc @@ -2606,10 +2606,10 @@ module.exports = Rectangle; */ var Class = __webpack_require__(0); -var ComponentsToJSON = __webpack_require__(280); -var DataManager = __webpack_require__(113); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(90); +var ComponentsToJSON = __webpack_require__(278); +var DataManager = __webpack_require__(110); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(89); /** * @classdesc @@ -2767,10 +2767,10 @@ var GameObject = new Class({ this.input = null; /** - * If this Game Object is enabled for physics then this property will contain a reference to a Physics Body. + * If this Game Object is enabled for Arcade or Matter Physics then this property will contain a reference to a Physics Body. * * @name Phaser.GameObjects.GameObject#body - * @type {?(object|Phaser.Physics.Arcade.Body|Phaser.Physics.Impact.Body)} + * @type {?(object|Phaser.Physics.Arcade.Body|MatterJS.BodyType)} * @default null * @since 3.0.0 */ @@ -3246,7 +3246,7 @@ module.exports = GameObject; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH = __webpack_require__(169); +var MATH = __webpack_require__(166); var GetValue = __webpack_require__(6); /** @@ -3427,7 +3427,7 @@ module.exports = MATH_CONST; var Class = __webpack_require__(0); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -3698,67 +3698,28 @@ module.exports = Extend; module.exports = { - BLUR: __webpack_require__(556), - BOOT: __webpack_require__(557), - CONTEXT_LOST: __webpack_require__(558), - CONTEXT_RESTORED: __webpack_require__(559), - DESTROY: __webpack_require__(560), - FOCUS: __webpack_require__(561), - HIDDEN: __webpack_require__(562), - PAUSE: __webpack_require__(563), - POST_RENDER: __webpack_require__(564), - POST_STEP: __webpack_require__(565), - PRE_RENDER: __webpack_require__(566), - PRE_STEP: __webpack_require__(567), - READY: __webpack_require__(568), - RESUME: __webpack_require__(569), - STEP: __webpack_require__(570), - VISIBLE: __webpack_require__(571) + BLUR: __webpack_require__(555), + BOOT: __webpack_require__(556), + CONTEXT_LOST: __webpack_require__(557), + CONTEXT_RESTORED: __webpack_require__(558), + DESTROY: __webpack_require__(559), + FOCUS: __webpack_require__(560), + HIDDEN: __webpack_require__(561), + PAUSE: __webpack_require__(562), + POST_RENDER: __webpack_require__(563), + POST_STEP: __webpack_require__(564), + PRE_RENDER: __webpack_require__(565), + PRE_STEP: __webpack_require__(566), + READY: __webpack_require__(567), + RESUME: __webpack_require__(568), + STEP: __webpack_require__(569), + VISIBLE: __webpack_require__(570) }; /***/ }), /* 19 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Scenes.Events - */ - -module.exports = { - - BOOT: __webpack_require__(706), - CREATE: __webpack_require__(707), - DESTROY: __webpack_require__(708), - PAUSE: __webpack_require__(709), - POST_UPDATE: __webpack_require__(710), - PRE_UPDATE: __webpack_require__(711), - READY: __webpack_require__(712), - RENDER: __webpack_require__(713), - RESUME: __webpack_require__(714), - SHUTDOWN: __webpack_require__(715), - SLEEP: __webpack_require__(716), - START: __webpack_require__(717), - TRANSITION_COMPLETE: __webpack_require__(718), - TRANSITION_INIT: __webpack_require__(719), - TRANSITION_OUT: __webpack_require__(720), - TRANSITION_START: __webpack_require__(721), - TRANSITION_WAKE: __webpack_require__(722), - UPDATE: __webpack_require__(723), - WAKE: __webpack_require__(724) - -}; - - -/***/ }), -/* 20 */ /***/ (function(module, exports) { /** @@ -3910,7 +3871,7 @@ module.exports = FILE_CONST; /***/ }), -/* 21 */ +/* 20 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -3920,13 +3881,13 @@ module.exports = FILE_CONST; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var Events = __webpack_require__(82); +var CONST = __webpack_require__(19); +var Events = __webpack_require__(81); var GetFastValue = __webpack_require__(2); -var GetURL = __webpack_require__(134); -var MergeXHRSettings = __webpack_require__(214); -var XHRLoader = __webpack_require__(452); -var XHRSettings = __webpack_require__(135); +var GetURL = __webpack_require__(133); +var MergeXHRSettings = __webpack_require__(211); +var XHRLoader = __webpack_require__(450); +var XHRSettings = __webpack_require__(134); /** * @classdesc @@ -4450,6 +4411,45 @@ File.revokeObjectURL = function (image) module.exports = File; +/***/ }), +/* 21 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Scenes.Events + */ + +module.exports = { + + BOOT: __webpack_require__(705), + CREATE: __webpack_require__(706), + DESTROY: __webpack_require__(707), + PAUSE: __webpack_require__(708), + POST_UPDATE: __webpack_require__(709), + PRE_UPDATE: __webpack_require__(710), + READY: __webpack_require__(711), + RENDER: __webpack_require__(712), + RESUME: __webpack_require__(713), + SHUTDOWN: __webpack_require__(714), + SLEEP: __webpack_require__(715), + START: __webpack_require__(716), + TRANSITION_COMPLETE: __webpack_require__(717), + TRANSITION_INIT: __webpack_require__(718), + TRANSITION_OUT: __webpack_require__(719), + TRANSITION_START: __webpack_require__(720), + TRANSITION_WAKE: __webpack_require__(721), + UPDATE: __webpack_require__(722), + WAKE: __webpack_require__(723) + +}; + + /***/ }), /* 22 */ /***/ (function(module, exports) { @@ -4851,7 +4851,7 @@ module.exports = PropertyValueSet; */ var CONST = __webpack_require__(29); -var Smoothing = __webpack_require__(165); +var Smoothing = __webpack_require__(162); // The pool into which the canvas elements are placed. var pool = []; @@ -5347,7 +5347,7 @@ var CONST = { BlendModes: __webpack_require__(52), - ScaleModes: __webpack_require__(233), + ScaleModes: __webpack_require__(231), /** * AUTO Detect Renderer. @@ -6725,61 +6725,6 @@ module.exports = Shape; /***/ }), /* 32 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Tilemaps.Formats - */ - -module.exports = { - - /** - * CSV Map Type - * - * @name Phaser.Tilemaps.Formats.CSV - * @type {number} - * @since 3.0.0 - */ - CSV: 0, - - /** - * Tiled JSON Map Type - * - * @name Phaser.Tilemaps.Formats.TILED_JSON - * @type {number} - * @since 3.0.0 - */ - TILED_JSON: 1, - - /** - * 2D Array Map Type - * - * @name Phaser.Tilemaps.Formats.ARRAY_2D - * @type {number} - * @since 3.0.0 - */ - ARRAY_2D: 2, - - /** - * Weltmeister (Impact.js) Map Type - * - * @name Phaser.Tilemaps.Formats.WELTMEISTER - * @type {number} - * @since 3.0.0 - */ - WELTMEISTER: 3 - -}; - - -/***/ }), -/* 33 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -6789,10 +6734,10 @@ module.exports = { */ var Class = __webpack_require__(0); -var GetColor = __webpack_require__(163); -var GetColor32 = __webpack_require__(294); -var HSVToRGB = __webpack_require__(164); -var RGBToHSV = __webpack_require__(295); +var GetColor = __webpack_require__(160); +var GetColor32 = __webpack_require__(292); +var HSVToRGB = __webpack_require__(161); +var RGBToHSV = __webpack_require__(293); /** * @namespace Phaser.Display.Color @@ -7641,6 +7586,61 @@ var Color = new Class({ module.exports = Color; +/***/ }), +/* 33 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Tilemaps.Formats + */ + +module.exports = { + + /** + * CSV Map Type + * + * @name Phaser.Tilemaps.Formats.CSV + * @type {number} + * @since 3.0.0 + */ + CSV: 0, + + /** + * Tiled JSON Map Type + * + * @name Phaser.Tilemaps.Formats.TILED_JSON + * @type {number} + * @since 3.0.0 + */ + TILED_JSON: 1, + + /** + * 2D Array Map Type + * + * @name Phaser.Tilemaps.Formats.ARRAY_2D + * @type {number} + * @since 3.0.0 + */ + ARRAY_2D: 2, + + /** + * Weltmeister (Impact.js) Map Type + * + * @name Phaser.Tilemaps.Formats.WELTMEISTER + * @type {number} + * @since 3.0.0 + */ + WELTMEISTER: 3 + +}; + + /***/ }), /* 34 */ /***/ (function(module, exports) { @@ -8694,21 +8694,21 @@ module.exports = Contains; module.exports = { - DESTROY: __webpack_require__(647), - FADE_IN_COMPLETE: __webpack_require__(648), - FADE_IN_START: __webpack_require__(649), - FADE_OUT_COMPLETE: __webpack_require__(650), - FADE_OUT_START: __webpack_require__(651), - FLASH_COMPLETE: __webpack_require__(652), - FLASH_START: __webpack_require__(653), - PAN_COMPLETE: __webpack_require__(654), - PAN_START: __webpack_require__(655), - POST_RENDER: __webpack_require__(656), - PRE_RENDER: __webpack_require__(657), - SHAKE_COMPLETE: __webpack_require__(658), - SHAKE_START: __webpack_require__(659), - ZOOM_COMPLETE: __webpack_require__(660), - ZOOM_START: __webpack_require__(661) + DESTROY: __webpack_require__(646), + FADE_IN_COMPLETE: __webpack_require__(647), + FADE_IN_START: __webpack_require__(648), + FADE_OUT_COMPLETE: __webpack_require__(649), + FADE_OUT_START: __webpack_require__(650), + FLASH_COMPLETE: __webpack_require__(651), + FLASH_START: __webpack_require__(652), + PAN_COMPLETE: __webpack_require__(653), + PAN_START: __webpack_require__(654), + POST_RENDER: __webpack_require__(655), + PRE_RENDER: __webpack_require__(656), + SHAKE_COMPLETE: __webpack_require__(657), + SHAKE_START: __webpack_require__(658), + ZOOM_COMPLETE: __webpack_require__(659), + ZOOM_START: __webpack_require__(660) }; @@ -8890,7 +8890,7 @@ module.exports = CONST; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTileAt = __webpack_require__(138); +var GetTileAt = __webpack_require__(137); var GetTilesWithin = __webpack_require__(24); /** @@ -9335,52 +9335,52 @@ module.exports = DistanceBetween; module.exports = { - BOOT: __webpack_require__(817), - DESTROY: __webpack_require__(818), - DRAG_END: __webpack_require__(819), - DRAG_ENTER: __webpack_require__(820), - DRAG: __webpack_require__(821), - DRAG_LEAVE: __webpack_require__(822), - DRAG_OVER: __webpack_require__(823), - DRAG_START: __webpack_require__(824), - DROP: __webpack_require__(825), - GAME_OUT: __webpack_require__(826), - GAME_OVER: __webpack_require__(827), - GAMEOBJECT_DOWN: __webpack_require__(828), - GAMEOBJECT_DRAG_END: __webpack_require__(829), - GAMEOBJECT_DRAG_ENTER: __webpack_require__(830), - GAMEOBJECT_DRAG: __webpack_require__(831), - GAMEOBJECT_DRAG_LEAVE: __webpack_require__(832), - GAMEOBJECT_DRAG_OVER: __webpack_require__(833), - GAMEOBJECT_DRAG_START: __webpack_require__(834), - GAMEOBJECT_DROP: __webpack_require__(835), - GAMEOBJECT_MOVE: __webpack_require__(836), - GAMEOBJECT_OUT: __webpack_require__(837), - GAMEOBJECT_OVER: __webpack_require__(838), - GAMEOBJECT_POINTER_DOWN: __webpack_require__(839), - GAMEOBJECT_POINTER_MOVE: __webpack_require__(840), - GAMEOBJECT_POINTER_OUT: __webpack_require__(841), - GAMEOBJECT_POINTER_OVER: __webpack_require__(842), - GAMEOBJECT_POINTER_UP: __webpack_require__(843), - GAMEOBJECT_POINTER_WHEEL: __webpack_require__(844), - GAMEOBJECT_UP: __webpack_require__(845), - GAMEOBJECT_WHEEL: __webpack_require__(846), - MANAGER_BOOT: __webpack_require__(847), - MANAGER_PROCESS: __webpack_require__(848), - MANAGER_UPDATE: __webpack_require__(849), - POINTER_DOWN: __webpack_require__(850), - POINTER_DOWN_OUTSIDE: __webpack_require__(851), - POINTER_MOVE: __webpack_require__(852), - POINTER_OUT: __webpack_require__(853), - POINTER_OVER: __webpack_require__(854), - POINTER_UP: __webpack_require__(855), - POINTER_UP_OUTSIDE: __webpack_require__(856), - POINTER_WHEEL: __webpack_require__(857), - POINTERLOCK_CHANGE: __webpack_require__(858), - PRE_UPDATE: __webpack_require__(859), - SHUTDOWN: __webpack_require__(860), - START: __webpack_require__(861), - UPDATE: __webpack_require__(862) + BOOT: __webpack_require__(816), + DESTROY: __webpack_require__(817), + DRAG_END: __webpack_require__(818), + DRAG_ENTER: __webpack_require__(819), + DRAG: __webpack_require__(820), + DRAG_LEAVE: __webpack_require__(821), + DRAG_OVER: __webpack_require__(822), + DRAG_START: __webpack_require__(823), + DROP: __webpack_require__(824), + GAME_OUT: __webpack_require__(825), + GAME_OVER: __webpack_require__(826), + GAMEOBJECT_DOWN: __webpack_require__(827), + GAMEOBJECT_DRAG_END: __webpack_require__(828), + GAMEOBJECT_DRAG_ENTER: __webpack_require__(829), + GAMEOBJECT_DRAG: __webpack_require__(830), + GAMEOBJECT_DRAG_LEAVE: __webpack_require__(831), + GAMEOBJECT_DRAG_OVER: __webpack_require__(832), + GAMEOBJECT_DRAG_START: __webpack_require__(833), + GAMEOBJECT_DROP: __webpack_require__(834), + GAMEOBJECT_MOVE: __webpack_require__(835), + GAMEOBJECT_OUT: __webpack_require__(836), + GAMEOBJECT_OVER: __webpack_require__(837), + GAMEOBJECT_POINTER_DOWN: __webpack_require__(838), + GAMEOBJECT_POINTER_MOVE: __webpack_require__(839), + GAMEOBJECT_POINTER_OUT: __webpack_require__(840), + GAMEOBJECT_POINTER_OVER: __webpack_require__(841), + GAMEOBJECT_POINTER_UP: __webpack_require__(842), + GAMEOBJECT_POINTER_WHEEL: __webpack_require__(843), + GAMEOBJECT_UP: __webpack_require__(844), + GAMEOBJECT_WHEEL: __webpack_require__(845), + MANAGER_BOOT: __webpack_require__(846), + MANAGER_PROCESS: __webpack_require__(847), + MANAGER_UPDATE: __webpack_require__(848), + POINTER_DOWN: __webpack_require__(849), + POINTER_DOWN_OUTSIDE: __webpack_require__(850), + POINTER_MOVE: __webpack_require__(851), + POINTER_OUT: __webpack_require__(852), + POINTER_OVER: __webpack_require__(853), + POINTER_UP: __webpack_require__(854), + POINTER_UP_OUTSIDE: __webpack_require__(855), + POINTER_WHEEL: __webpack_require__(856), + POINTERLOCK_CHANGE: __webpack_require__(857), + PRE_UPDATE: __webpack_require__(858), + SHUTDOWN: __webpack_require__(859), + START: __webpack_require__(860), + UPDATE: __webpack_require__(861) }; @@ -9437,10 +9437,10 @@ module.exports = Contains; */ var Class = __webpack_require__(0); -var GetPoint = __webpack_require__(274); -var GetPoints = __webpack_require__(151); +var GetPoint = __webpack_require__(272); +var GetPoints = __webpack_require__(148); var GEOM_CONST = __webpack_require__(46); -var Random = __webpack_require__(152); +var Random = __webpack_require__(149); var Vector2 = __webpack_require__(3); /** @@ -9839,29 +9839,29 @@ module.exports = Wrap; module.exports = { - COMPLETE: __webpack_require__(885), - DECODED: __webpack_require__(886), - DECODED_ALL: __webpack_require__(887), - DESTROY: __webpack_require__(888), - DETUNE: __webpack_require__(889), - GLOBAL_DETUNE: __webpack_require__(890), - GLOBAL_MUTE: __webpack_require__(891), - GLOBAL_RATE: __webpack_require__(892), - GLOBAL_VOLUME: __webpack_require__(893), - LOOP: __webpack_require__(894), - LOOPED: __webpack_require__(895), - MUTE: __webpack_require__(896), - PAUSE_ALL: __webpack_require__(897), - PAUSE: __webpack_require__(898), - PLAY: __webpack_require__(899), - RATE: __webpack_require__(900), - RESUME_ALL: __webpack_require__(901), - RESUME: __webpack_require__(902), - SEEK: __webpack_require__(903), - STOP_ALL: __webpack_require__(904), - STOP: __webpack_require__(905), - UNLOCKED: __webpack_require__(906), - VOLUME: __webpack_require__(907) + COMPLETE: __webpack_require__(884), + DECODED: __webpack_require__(885), + DECODED_ALL: __webpack_require__(886), + DESTROY: __webpack_require__(887), + DETUNE: __webpack_require__(888), + GLOBAL_DETUNE: __webpack_require__(889), + GLOBAL_MUTE: __webpack_require__(890), + GLOBAL_RATE: __webpack_require__(891), + GLOBAL_VOLUME: __webpack_require__(892), + LOOP: __webpack_require__(893), + LOOPED: __webpack_require__(894), + MUTE: __webpack_require__(895), + PAUSE_ALL: __webpack_require__(896), + PAUSE: __webpack_require__(897), + PLAY: __webpack_require__(898), + RATE: __webpack_require__(899), + RESUME_ALL: __webpack_require__(900), + RESUME: __webpack_require__(901), + SEEK: __webpack_require__(902), + STOP_ALL: __webpack_require__(903), + STOP: __webpack_require__(904), + UNLOCKED: __webpack_require__(905), + VOLUME: __webpack_require__(906) }; @@ -9877,8 +9877,8 @@ module.exports = { */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); @@ -10347,12 +10347,12 @@ var Body = {}; module.exports = Body; -var Vertices = __webpack_require__(86); -var Vector = __webpack_require__(101); -var Sleeping = __webpack_require__(238); +var Vertices = __webpack_require__(85); +var Vector = __webpack_require__(98); +var Sleeping = __webpack_require__(236); var Common = __webpack_require__(37); -var Bounds = __webpack_require__(102); -var Axes = __webpack_require__(513); +var Bounds = __webpack_require__(99); +var Axes = __webpack_require__(512); (function() { @@ -11714,122 +11714,6 @@ var Axes = __webpack_require__(513); /***/ }), /* 63 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from world X coordinates (pixels) to tile X coordinates (tile units), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.WorldToTileX - * @private - * @since 3.0.0 - * - * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. - * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} The X location in tile units. - */ -var WorldToTileX = function (worldX, snapToFloor, camera, layer) -{ - - var orientation = layer.orientation; - if (snapToFloor === undefined) { snapToFloor = true; } - - var tileWidth = layer.baseTileWidth; - var tilemapLayer = layer.tilemapLayer; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's horizontal scroll - worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); - - tileWidth *= tilemapLayer.scaleX; - } - - if (orientation === "orthogonal") { - return snapToFloor - ? Math.floor(worldX / tileWidth) - : worldX / tileWidth; - } else if (orientation === "isometric") { - console.warn('With isometric map types you have to use the WorldToTileXY function.'); - return null - } - -}; - -module.exports = WorldToTileX; - - -/***/ }), -/* 64 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from world Y coordinates (pixels) to tile Y coordinates (tile units), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.WorldToTileY - * @private - * @since 3.0.0 - * - * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. - * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} The Y location in tile units. - */ -var WorldToTileY = function (worldY, snapToFloor, camera, layer) -{ - var orientation = layer.orientation; - if (snapToFloor === undefined) { snapToFloor = true; } - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's vertical scroll - worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - - tileHeight *= tilemapLayer.scaleY; - - } - - if (orientation === "orthogonal") { - return snapToFloor - ? Math.floor(worldY / tileHeight) - : worldY / tileHeight; - } else if (orientation === "isometric") { - console.warn('With isometric map types you have to use the WorldToTileXY function.'); - return null - - } -}; - -module.exports = WorldToTileY; - - -/***/ }), -/* 65 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -11840,10 +11724,10 @@ module.exports = WorldToTileY; var Class = __webpack_require__(0); var Contains = __webpack_require__(55); -var GetPoint = __webpack_require__(265); -var GetPoints = __webpack_require__(266); +var GetPoint = __webpack_require__(263); +var GetPoints = __webpack_require__(264); var GEOM_CONST = __webpack_require__(46); -var Random = __webpack_require__(148); +var Random = __webpack_require__(145); /** * @classdesc @@ -12204,7 +12088,7 @@ module.exports = Circle; /***/ }), -/* 66 */ +/* 64 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12886,7 +12770,7 @@ earcut.flatten = function (data) { /***/ }), -/* 67 */ +/* 65 */ /***/ (function(module, exports) { /** @@ -12928,7 +12812,7 @@ module.exports = Clone; /***/ }), -/* 68 */ +/* 66 */ /***/ (function(module, exports) { /** @@ -12977,7 +12861,7 @@ module.exports = SafeRange; /***/ }), -/* 69 */ +/* 67 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -12986,186 +12870,8 @@ module.exports = SafeRange; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var SpriteRender = __webpack_require__(963); - -/** - * @classdesc - * A Sprite Game Object. - * - * A Sprite Game Object is used for the display of both static and animated images in your game. - * Sprites can have input events and physics bodies. They can also be tweened, tinted, scrolled - * and animated. - * - * The main difference between a Sprite and an Image Game Object is that you cannot animate Images. - * As such, Sprites take a fraction longer to process and have a larger API footprint due to the Animation - * Component. If you do not require animation then you can safely use Images to replace Sprites in all cases. - * - * @class Sprite - * @extends Phaser.GameObjects.GameObject - * @memberof Phaser.GameObjects - * @constructor - * @since 3.0.0 - * - * @extends Phaser.GameObjects.Components.Alpha - * @extends Phaser.GameObjects.Components.BlendMode - * @extends Phaser.GameObjects.Components.Depth - * @extends Phaser.GameObjects.Components.Flip - * @extends Phaser.GameObjects.Components.GetBounds - * @extends Phaser.GameObjects.Components.Mask - * @extends Phaser.GameObjects.Components.Origin - * @extends Phaser.GameObjects.Components.Pipeline - * @extends Phaser.GameObjects.Components.ScrollFactor - * @extends Phaser.GameObjects.Components.Size - * @extends Phaser.GameObjects.Components.TextureCrop - * @extends Phaser.GameObjects.Components.Tint - * @extends Phaser.GameObjects.Components.Transform - * @extends Phaser.GameObjects.Components.Visible - * - * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time. - * @param {number} x - The horizontal position of this Game Object in the world. - * @param {number} y - The vertical position of this Game Object in the world. - * @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. - * @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with. - */ -var Sprite = new Class({ - - Extends: GameObject, - - Mixins: [ - Components.Alpha, - Components.BlendMode, - Components.Depth, - Components.Flip, - Components.GetBounds, - Components.Mask, - Components.Origin, - Components.Pipeline, - Components.ScrollFactor, - Components.Size, - Components.TextureCrop, - Components.Tint, - Components.Transform, - Components.Visible, - SpriteRender - ], - - initialize: - - function Sprite (scene, x, y, texture, frame) - { - GameObject.call(this, scene, 'Sprite'); - - /** - * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method. - * - * @name Phaser.GameObjects.Sprite#_crop - * @type {object} - * @private - * @since 3.11.0 - */ - this._crop = this.resetCropObject(); - - /** - * The Animation Controller of this Sprite. - * - * @name Phaser.GameObjects.Sprite#anims - * @type {Phaser.GameObjects.Components.Animation} - * @since 3.0.0 - */ - this.anims = new Components.Animation(this); - - this.setTexture(texture, frame); - this.setPosition(x, y); - this.setSizeToFrame(); - this.setOriginFromFrame(); - this.initPipeline(); - }, - - /** - * Update this Sprite's animations. - * - * @method Phaser.GameObjects.Sprite#preUpdate - * @protected - * @since 3.0.0 - * - * @param {number} time - The current timestamp. - * @param {number} delta - The delta time, in ms, elapsed since the last frame. - */ - preUpdate: function (time, delta) - { - this.anims.update(time, delta); - }, - - /** - * Start playing the given animation. - * - * @method Phaser.GameObjects.Sprite#play - * @since 3.0.0 - * - * @param {string} key - The string-based key of the animation to play. - * @param {boolean} [ignoreIfPlaying=false] - If an animation is already playing then ignore this call. - * @param {integer} [startFrame=0] - Optionally start the animation playing from this frame index. - * - * @return {this} This Game Object. - */ - play: function (key, ignoreIfPlaying, startFrame) - { - this.anims.play(key, ignoreIfPlaying, startFrame); - - return this; - }, - - /** - * Build a JSON representation of this Sprite. - * - * @method Phaser.GameObjects.Sprite#toJSON - * @since 3.0.0 - * - * @return {Phaser.Types.GameObjects.JSONGameObject} A JSON representation of the Game Object. - */ - toJSON: function () - { - var data = Components.ToJSON(this); - - // Extra Sprite data is added here - - return data; - }, - - /** - * Handles the pre-destroy step for the Sprite, which removes the Animation component. - * - * @method Phaser.GameObjects.Sprite#preDestroy - * @private - * @since 3.14.0 - */ - preDestroy: function () - { - this.anims.destroy(); - - this.anims = undefined; - } - -}); - -module.exports = Sprite; - - -/***/ }), -/* 70 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var EaseMap = __webpack_require__(167); -var UppercaseFirst = __webpack_require__(180); +var EaseMap = __webpack_require__(164); +var UppercaseFirst = __webpack_require__(177); /** * This internal function is used to return the correct ease function for a Tween. @@ -13264,7 +12970,7 @@ module.exports = GetEaseFunction; /***/ }), -/* 71 */ +/* 68 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -13273,7 +12979,7 @@ module.exports = GetEaseFunction; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders a stroke outline around the given Shape. @@ -13339,7 +13045,7 @@ module.exports = StrokePathWebGL; /***/ }), -/* 72 */ +/* 69 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -13349,12 +13055,12 @@ module.exports = StrokePathWebGL; */ var Class = __webpack_require__(0); -var Contains = __webpack_require__(83); -var GetPoint = __webpack_require__(422); -var GetPoints = __webpack_require__(423); +var Contains = __webpack_require__(82); +var GetPoint = __webpack_require__(420); +var GetPoints = __webpack_require__(421); var GEOM_CONST = __webpack_require__(46); var Line = __webpack_require__(56); -var Random = __webpack_require__(156); +var Random = __webpack_require__(153); /** * @classdesc @@ -13786,7 +13492,7 @@ module.exports = Triangle; /***/ }), -/* 73 */ +/* 70 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -13796,8 +13502,8 @@ module.exports = Triangle; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -14060,7 +13766,7 @@ module.exports = ImageFile; /***/ }), -/* 74 */ +/* 71 */ /***/ (function(module, exports) { /** @@ -14096,7 +13802,92 @@ module.exports = SetTileCollision; /***/ }), -/* 75 */ +/* 72 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var WorldToTileX = __webpack_require__(473); +var WorldToTileY = __webpack_require__(474); +var Vector2 = __webpack_require__(3); + +/** + * Converts from world XY coordinates (pixels) to tile XY coordinates (tile units), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.WorldToTileXY + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in tile units. + */ +var WorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) +{ + var orientation = layer.orientation; + if (point === undefined) { point = new Vector2(0, 0); } + + if (orientation === 'orthogonal') + { + point.x = WorldToTileX(worldX, snapToFloor, camera, layer, orientation); + point.y = WorldToTileY(worldY, snapToFloor, camera, layer, orientation); + } + else if (orientation === 'isometric') + { + + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + // console.log(1,worldY) + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + // console.log(worldY) + tileHeight *= tilemapLayer.scaleY; + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's horizontal scroll + worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); + + tileWidth *= tilemapLayer.scaleX; + } + + point.x = snapToFloor + ? Math.floor((worldX / (tileWidth / 2) + worldY / (tileHeight / 2)) / 2) + : ((worldX / (tileWidth / 2) + worldY / (tileHeight / 2)) / 2); + + point.y = snapToFloor + ? Math.floor((worldY / (tileHeight / 2) - worldX / (tileWidth / 2)) / 2) + : ((worldY / (tileHeight / 2) - worldX / (tileWidth / 2)) / 2); + } + + + + return point; +}; + +module.exports = WorldToTileXY; + + +/***/ }), +/* 73 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -14107,7 +13898,7 @@ module.exports = SetTileCollision; var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var Rectangle = __webpack_require__(441); +var Rectangle = __webpack_require__(439); /** * @classdesc @@ -14148,7 +13939,7 @@ var Tile = new Class({ initialize: - function Tile (layer, index, x, y, width, height, baseWidth, baseHeight ) + function Tile (layer, index, x, y, width, height, baseWidth, baseHeight) { /** * The LayerData in the Tilemap data that this tile belongs to. @@ -14809,22 +14600,28 @@ var Tile = new Class({ */ updatePixelXY: function () { - if (this.layer.orientation === "orthogonal") { + if (this.layer.orientation === 'orthogonal') + { // In orthogonal mode, Tiled places tiles on a grid of baseWidth x baseHeight. The origin for a tile is the // bottom left, while the Phaser renderer assumes the origin is the top left. The y // coordinate needs to be adjusted by the difference. this.pixelX = this.x * this.baseWidth; this.pixelY = this.y * this.baseHeight; + // console.log("orthopix "+this.pixelX+","+this.pixelY) - } else if (this.layer.orientation === "isometric" ) { + } + else if (this.layer.orientation === 'isometric') + { // reminder : for the tilemap to be centered we have to move the image to the right with the camera ! // this is crucial for wordtotile, tiletoworld to work. - this.pixelX = (this.x - this.y) * this.baseWidth *0.5; - this.pixelY = (this.x + this.y) * this.baseHeight *0.5; + this.pixelX = (this.x - this.y) * this.baseWidth * 0.5; + this.pixelY = (this.x + this.y) * this.baseHeight * 0.5; + // console.log("isopix from",this.x, this.y,"to", this.pixelX+","+this.pixelY) - } else { - // console.warn("this map orientation is not supported in this version of phaser") - // console.log("tile orientation 3: "+this.layer.orientation) + } + else + { + // console.warn("this map orientation is is.layer.orientation) } // this.pixelY = this.y * this.baseHeight - (this.height - this.baseHeight); @@ -14948,7 +14745,185 @@ module.exports = Tile; /***/ }), -/* 76 */ +/* 74 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var Class = __webpack_require__(0); +var Components = __webpack_require__(11); +var GameObject = __webpack_require__(13); +var SpriteRender = __webpack_require__(962); + +/** + * @classdesc + * A Sprite Game Object. + * + * A Sprite Game Object is used for the display of both static and animated images in your game. + * Sprites can have input events and physics bodies. They can also be tweened, tinted, scrolled + * and animated. + * + * The main difference between a Sprite and an Image Game Object is that you cannot animate Images. + * As such, Sprites take a fraction longer to process and have a larger API footprint due to the Animation + * Component. If you do not require animation then you can safely use Images to replace Sprites in all cases. + * + * @class Sprite + * @extends Phaser.GameObjects.GameObject + * @memberof Phaser.GameObjects + * @constructor + * @since 3.0.0 + * + * @extends Phaser.GameObjects.Components.Alpha + * @extends Phaser.GameObjects.Components.BlendMode + * @extends Phaser.GameObjects.Components.Depth + * @extends Phaser.GameObjects.Components.Flip + * @extends Phaser.GameObjects.Components.GetBounds + * @extends Phaser.GameObjects.Components.Mask + * @extends Phaser.GameObjects.Components.Origin + * @extends Phaser.GameObjects.Components.Pipeline + * @extends Phaser.GameObjects.Components.ScrollFactor + * @extends Phaser.GameObjects.Components.Size + * @extends Phaser.GameObjects.Components.TextureCrop + * @extends Phaser.GameObjects.Components.Tint + * @extends Phaser.GameObjects.Components.Transform + * @extends Phaser.GameObjects.Components.Visible + * + * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time. + * @param {number} x - The horizontal position of this Game Object in the world. + * @param {number} y - The vertical position of this Game Object in the world. + * @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. + * @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with. + */ +var Sprite = new Class({ + + Extends: GameObject, + + Mixins: [ + Components.Alpha, + Components.BlendMode, + Components.Depth, + Components.Flip, + Components.GetBounds, + Components.Mask, + Components.Origin, + Components.Pipeline, + Components.ScrollFactor, + Components.Size, + Components.TextureCrop, + Components.Tint, + Components.Transform, + Components.Visible, + SpriteRender + ], + + initialize: + + function Sprite (scene, x, y, texture, frame) + { + GameObject.call(this, scene, 'Sprite'); + + /** + * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method. + * + * @name Phaser.GameObjects.Sprite#_crop + * @type {object} + * @private + * @since 3.11.0 + */ + this._crop = this.resetCropObject(); + + /** + * The Animation Controller of this Sprite. + * + * @name Phaser.GameObjects.Sprite#anims + * @type {Phaser.GameObjects.Components.Animation} + * @since 3.0.0 + */ + this.anims = new Components.Animation(this); + + this.setTexture(texture, frame); + this.setPosition(x, y); + this.setSizeToFrame(); + this.setOriginFromFrame(); + this.initPipeline(); + }, + + /** + * Update this Sprite's animations. + * + * @method Phaser.GameObjects.Sprite#preUpdate + * @protected + * @since 3.0.0 + * + * @param {number} time - The current timestamp. + * @param {number} delta - The delta time, in ms, elapsed since the last frame. + */ + preUpdate: function (time, delta) + { + this.anims.update(time, delta); + }, + + /** + * Start playing the given animation. + * + * @method Phaser.GameObjects.Sprite#play + * @since 3.0.0 + * + * @param {string} key - The string-based key of the animation to play. + * @param {boolean} [ignoreIfPlaying=false] - If an animation is already playing then ignore this call. + * @param {integer} [startFrame=0] - Optionally start the animation playing from this frame index. + * + * @return {this} This Game Object. + */ + play: function (key, ignoreIfPlaying, startFrame) + { + this.anims.play(key, ignoreIfPlaying, startFrame); + + return this; + }, + + /** + * Build a JSON representation of this Sprite. + * + * @method Phaser.GameObjects.Sprite#toJSON + * @since 3.0.0 + * + * @return {Phaser.Types.GameObjects.JSONGameObject} A JSON representation of the Game Object. + */ + toJSON: function () + { + var data = Components.ToJSON(this); + + // Extra Sprite data is added here + + return data; + }, + + /** + * Handles the pre-destroy step for the Sprite, which removes the Animation component. + * + * @method Phaser.GameObjects.Sprite#preDestroy + * @private + * @since 3.14.0 + */ + preDestroy: function () + { + this.anims.destroy(); + + this.anims = undefined; + } + +}); + +module.exports = Sprite; + + +/***/ }), +/* 75 */ /***/ (function(module, exports) { /** @@ -14976,7 +14951,7 @@ module.exports = GetCenterX; /***/ }), -/* 77 */ +/* 76 */ /***/ (function(module, exports) { /** @@ -15011,7 +14986,7 @@ module.exports = SetCenterX; /***/ }), -/* 78 */ +/* 77 */ /***/ (function(module, exports) { /** @@ -15039,7 +15014,7 @@ module.exports = GetCenterY; /***/ }), -/* 79 */ +/* 78 */ /***/ (function(module, exports) { /** @@ -15074,7 +15049,7 @@ module.exports = SetCenterY; /***/ }), -/* 80 */ +/* 79 */ /***/ (function(module, exports) { /** @@ -15120,7 +15095,7 @@ module.exports = SpliceOne; /***/ }), -/* 81 */ +/* 80 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -15130,7 +15105,7 @@ module.exports = SpliceOne; */ var Class = __webpack_require__(0); -var FromPoints = __webpack_require__(175); +var FromPoints = __webpack_require__(172); var Rectangle = __webpack_require__(12); var Vector2 = __webpack_require__(3); @@ -15740,7 +15715,7 @@ module.exports = Curve; /***/ }), -/* 82 */ +/* 81 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -15755,22 +15730,22 @@ module.exports = Curve; module.exports = { - ADD: __webpack_require__(864), - COMPLETE: __webpack_require__(865), - FILE_COMPLETE: __webpack_require__(866), - FILE_KEY_COMPLETE: __webpack_require__(867), - FILE_LOAD_ERROR: __webpack_require__(868), - FILE_LOAD: __webpack_require__(869), - FILE_PROGRESS: __webpack_require__(870), - POST_PROCESS: __webpack_require__(871), - PROGRESS: __webpack_require__(872), - START: __webpack_require__(873) + ADD: __webpack_require__(863), + COMPLETE: __webpack_require__(864), + FILE_COMPLETE: __webpack_require__(865), + FILE_KEY_COMPLETE: __webpack_require__(866), + FILE_LOAD_ERROR: __webpack_require__(867), + FILE_LOAD: __webpack_require__(868), + FILE_PROGRESS: __webpack_require__(869), + POST_PROCESS: __webpack_require__(870), + PROGRESS: __webpack_require__(871), + START: __webpack_require__(872) }; /***/ }), -/* 83 */ +/* 82 */ /***/ (function(module, exports) { /** @@ -15823,7 +15798,7 @@ module.exports = Contains; /***/ }), -/* 84 */ +/* 83 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -15899,7 +15874,7 @@ module.exports = LineToLine; /***/ }), -/* 85 */ +/* 84 */ /***/ (function(module, exports) { /** @@ -15927,7 +15902,7 @@ module.exports = Angle; /***/ }), -/* 86 */ +/* 85 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -15944,7 +15919,7 @@ var Vertices = {}; module.exports = Vertices; -var Vector = __webpack_require__(101); +var Vector = __webpack_require__(98); var Common = __webpack_require__(37); (function() { @@ -16388,7 +16363,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 87 */ +/* 86 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -16422,7 +16397,7 @@ module.exports = FromPercent; /***/ }), -/* 88 */ +/* 87 */ /***/ (function(module, exports) { /** @@ -16463,7 +16438,7 @@ module.exports = GetBoolean; /***/ }), -/* 89 */ +/* 88 */ /***/ (function(module, exports) { /** @@ -16635,7 +16610,7 @@ module.exports = TWEEN_CONST; /***/ }), -/* 90 */ +/* 89 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -16650,23 +16625,23 @@ module.exports = TWEEN_CONST; module.exports = { - DESTROY: __webpack_require__(582), - VIDEO_COMPLETE: __webpack_require__(583), - VIDEO_CREATED: __webpack_require__(584), - VIDEO_ERROR: __webpack_require__(585), - VIDEO_LOOP: __webpack_require__(586), - VIDEO_PLAY: __webpack_require__(587), - VIDEO_SEEKED: __webpack_require__(588), - VIDEO_SEEKING: __webpack_require__(589), - VIDEO_STOP: __webpack_require__(590), - VIDEO_TIMEOUT: __webpack_require__(591), - VIDEO_UNLOCKED: __webpack_require__(592) + DESTROY: __webpack_require__(581), + VIDEO_COMPLETE: __webpack_require__(582), + VIDEO_CREATED: __webpack_require__(583), + VIDEO_ERROR: __webpack_require__(584), + VIDEO_LOOP: __webpack_require__(585), + VIDEO_PLAY: __webpack_require__(586), + VIDEO_SEEKED: __webpack_require__(587), + VIDEO_SEEKING: __webpack_require__(588), + VIDEO_STOP: __webpack_require__(589), + VIDEO_TIMEOUT: __webpack_require__(590), + VIDEO_UNLOCKED: __webpack_require__(591) }; /***/ }), -/* 91 */ +/* 90 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -16678,11 +16653,11 @@ module.exports = { var Class = __webpack_require__(0); var Components = __webpack_require__(11); var DegToRad = __webpack_require__(35); -var EventEmitter = __webpack_require__(9); +var EventEmitter = __webpack_require__(10); var Events = __webpack_require__(48); var Rectangle = __webpack_require__(12); var TransformMatrix = __webpack_require__(30); -var ValueToColor = __webpack_require__(162); +var ValueToColor = __webpack_require__(159); var Vector2 = __webpack_require__(3); /** @@ -18587,7 +18562,7 @@ module.exports = BaseCamera; /***/ }), -/* 92 */ +/* 91 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -18602,18 +18577,18 @@ module.exports = BaseCamera; module.exports = { - ENTER_FULLSCREEN: __webpack_require__(700), - FULLSCREEN_FAILED: __webpack_require__(701), - FULLSCREEN_UNSUPPORTED: __webpack_require__(702), - LEAVE_FULLSCREEN: __webpack_require__(703), - ORIENTATION_CHANGE: __webpack_require__(704), - RESIZE: __webpack_require__(705) + ENTER_FULLSCREEN: __webpack_require__(699), + FULLSCREEN_FAILED: __webpack_require__(700), + FULLSCREEN_UNSUPPORTED: __webpack_require__(701), + LEAVE_FULLSCREEN: __webpack_require__(702), + ORIENTATION_CHANGE: __webpack_require__(703), + RESIZE: __webpack_require__(704) }; /***/ }), -/* 93 */ +/* 92 */ /***/ (function(module, exports) { /** @@ -18657,7 +18632,7 @@ module.exports = SnapFloor; /***/ }), -/* 94 */ +/* 93 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -19476,7 +19451,7 @@ module.exports = Frame; /***/ }), -/* 95 */ +/* 94 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -19486,11 +19461,11 @@ module.exports = Frame; */ var Class = __webpack_require__(0); -var Contains = __webpack_require__(96); -var GetPoint = __webpack_require__(395); -var GetPoints = __webpack_require__(396); +var Contains = __webpack_require__(95); +var GetPoint = __webpack_require__(393); +var GetPoints = __webpack_require__(394); var GEOM_CONST = __webpack_require__(46); -var Random = __webpack_require__(155); +var Random = __webpack_require__(152); /** * @classdesc @@ -19858,7 +19833,7 @@ module.exports = Ellipse; /***/ }), -/* 96 */ +/* 95 */ /***/ (function(module, exports) { /** @@ -19900,7 +19875,7 @@ module.exports = Contains; /***/ }), -/* 97 */ +/* 96 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -19909,15 +19884,15 @@ module.exports = Contains; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Actions = __webpack_require__(240); +var Actions = __webpack_require__(238); var Class = __webpack_require__(0); -var Events = __webpack_require__(90); +var Events = __webpack_require__(89); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); var IsPlainObject = __webpack_require__(7); -var Range = __webpack_require__(389); -var Set = __webpack_require__(108); -var Sprite = __webpack_require__(69); +var Range = __webpack_require__(387); +var Set = __webpack_require__(128); +var Sprite = __webpack_require__(74); /** * @classdesc @@ -21538,7 +21513,7 @@ module.exports = Group; /***/ }), -/* 98 */ +/* 97 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -21547,137 +21522,7 @@ module.exports = Group; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Class = __webpack_require__(0); -var Components = __webpack_require__(11); -var GameObject = __webpack_require__(13); -var ImageRender = __webpack_require__(966); - -/** - * @classdesc - * An Image Game Object. - * - * An Image is a light-weight Game Object useful for the display of static images in your game, - * such as logos, backgrounds, scenery or other non-animated elements. Images can have input - * events and physics bodies, or be tweened, tinted or scrolled. The main difference between an - * Image and a Sprite is that you cannot animate an Image as they do not have the Animation component. - * - * @class Image - * @extends Phaser.GameObjects.GameObject - * @memberof Phaser.GameObjects - * @constructor - * @since 3.0.0 - * - * @extends Phaser.GameObjects.Components.Alpha - * @extends Phaser.GameObjects.Components.BlendMode - * @extends Phaser.GameObjects.Components.Depth - * @extends Phaser.GameObjects.Components.Flip - * @extends Phaser.GameObjects.Components.GetBounds - * @extends Phaser.GameObjects.Components.Mask - * @extends Phaser.GameObjects.Components.Origin - * @extends Phaser.GameObjects.Components.Pipeline - * @extends Phaser.GameObjects.Components.ScrollFactor - * @extends Phaser.GameObjects.Components.Size - * @extends Phaser.GameObjects.Components.TextureCrop - * @extends Phaser.GameObjects.Components.Tint - * @extends Phaser.GameObjects.Components.Transform - * @extends Phaser.GameObjects.Components.Visible - * - * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time. - * @param {number} x - The horizontal position of this Game Object in the world. - * @param {number} y - The vertical position of this Game Object in the world. - * @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. - * @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with. - */ -var Image = new Class({ - - Extends: GameObject, - - Mixins: [ - Components.Alpha, - Components.BlendMode, - Components.Depth, - Components.Flip, - Components.GetBounds, - Components.Mask, - Components.Origin, - Components.Pipeline, - Components.ScrollFactor, - Components.Size, - Components.TextureCrop, - Components.Tint, - Components.Transform, - Components.Visible, - ImageRender - ], - - initialize: - - function Image (scene, x, y, texture, frame) - { - GameObject.call(this, scene, 'Image'); - - /** - * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method. - * - * @name Phaser.GameObjects.Image#_crop - * @type {object} - * @private - * @since 3.11.0 - */ - this._crop = this.resetCropObject(); - - this.setTexture(texture, frame); - this.setPosition(x, y); - this.setSizeToFrame(); - this.setOriginFromFrame(); - this.initPipeline(); - } - -}); - -module.exports = Image; - - -/***/ }), -/* 99 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Determine whether the source object has a property with the specified key. - * - * @function Phaser.Utils.Objects.HasValue - * @since 3.0.0 - * - * @param {object} source - The source object to be checked. - * @param {string} key - The property to check for within the object - * - * @return {boolean} `true` if the provided `key` exists on the `source` object, otherwise `false`. - */ -var HasValue = function (source, key) -{ - return (source.hasOwnProperty(key)); -}; - -module.exports = HasValue; - - -/***/ }), -/* 100 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders a filled path for the given Shape. @@ -21732,7 +21577,7 @@ module.exports = FillPathWebGL; /***/ }), -/* 101 */ +/* 98 */ /***/ (function(module, exports) { /** @@ -21976,7 +21821,7 @@ module.exports = Vector; })(); /***/ }), -/* 102 */ +/* 99 */ /***/ (function(module, exports) { /** @@ -22102,7 +21947,7 @@ module.exports = Bounds; /***/ }), -/* 103 */ +/* 100 */ /***/ (function(module, exports) { /** @@ -22133,7 +21978,7 @@ module.exports = IsInLayerBounds; /***/ }), -/* 104 */ +/* 101 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -22248,13 +22093,13 @@ var LayerData = new Class({ this.baseTileHeight = GetFastValue(config, 'baseTileHeight', this.tileHeight); /** - * The layer's orientation, necessary to be able to determine q tile's pixelX and pixelY as well as the layer's width and height. + * The layer's orientation, necessary to be able to determine a tile's pixelX and pixelY as well as the layer's width and height. * * @name Phaser.Tilemaps.LayerData#orientation * @type {string} - * @since 3.22.PR_svipal + * @since 3.23beta.PR_svipal */ - this.orientation = GetFastValue(config, 'orientation', "orthogonal"); + this.orientation = GetFastValue(config, 'orientation', 'orthogonal'); /** @@ -22365,7 +22210,7 @@ module.exports = LayerData; /***/ }), -/* 105 */ +/* 102 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -22487,7 +22332,7 @@ var MapData = new Class({ * @since 3.0.0 */ this.orientation = GetFastValue(config, 'orientation', 'orthogonal'); - console.log("map data orientation : " + this.orientation) + /** * Determines the draw order of tilemap. Default is right-down * @@ -22590,7 +22435,7 @@ module.exports = MapData; /***/ }), -/* 106 */ +/* 103 */ /***/ (function(module, exports) { /** @@ -22724,52 +22569,7 @@ module.exports = ALIGN_CONST; /***/ }), -/* 107 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Clone = __webpack_require__(67); - -/** - * Creates a new Object using all values from obj1 and obj2. - * If a value exists in both obj1 and obj2, the value in obj1 is used. - * - * This is only a shallow copy. Deeply nested objects are not cloned, so be sure to only use this - * function on shallow objects. - * - * @function Phaser.Utils.Objects.Merge - * @since 3.0.0 - * - * @param {object} obj1 - The first object. - * @param {object} obj2 - The second object. - * - * @return {object} A new object containing the union of obj1's and obj2's properties. - */ -var Merge = function (obj1, obj2) -{ - var clone = Clone(obj1); - - for (var key in obj2) - { - if (!clone.hasOwnProperty(key)) - { - clone[key] = obj2[key]; - } - } - - return clone; -}; - -module.exports = Merge; - - -/***/ }), -/* 108 */ +/* 104 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -22779,446 +22579,127 @@ module.exports = Merge; */ var Class = __webpack_require__(0); - -/** - * @callback EachSetCallback - * - * @param {E} entry - The Set entry. - * @param {number} index - The index of the entry within the Set. - * - * @return {?boolean} The callback result. - */ +var Components = __webpack_require__(11); +var GameObject = __webpack_require__(13); +var ImageRender = __webpack_require__(965); /** * @classdesc - * A Set is a collection of unique elements. + * An Image Game Object. * - * @class Set - * @memberof Phaser.Structs + * An Image is a light-weight Game Object useful for the display of static images in your game, + * such as logos, backgrounds, scenery or other non-animated elements. Images can have input + * events and physics bodies, or be tweened, tinted or scrolled. The main difference between an + * Image and a Sprite is that you cannot animate an Image as they do not have the Animation component. + * + * @class Image + * @extends Phaser.GameObjects.GameObject + * @memberof Phaser.GameObjects * @constructor * @since 3.0.0 * - * @generic T - * @genericUse {T[]} - [elements] + * @extends Phaser.GameObjects.Components.Alpha + * @extends Phaser.GameObjects.Components.BlendMode + * @extends Phaser.GameObjects.Components.Depth + * @extends Phaser.GameObjects.Components.Flip + * @extends Phaser.GameObjects.Components.GetBounds + * @extends Phaser.GameObjects.Components.Mask + * @extends Phaser.GameObjects.Components.Origin + * @extends Phaser.GameObjects.Components.Pipeline + * @extends Phaser.GameObjects.Components.ScrollFactor + * @extends Phaser.GameObjects.Components.Size + * @extends Phaser.GameObjects.Components.TextureCrop + * @extends Phaser.GameObjects.Components.Tint + * @extends Phaser.GameObjects.Components.Transform + * @extends Phaser.GameObjects.Components.Visible * - * @param {Array.<*>} [elements] - An optional array of elements to insert into this Set. + * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time. + * @param {number} x - The horizontal position of this Game Object in the world. + * @param {number} y - The vertical position of this Game Object in the world. + * @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. + * @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with. */ -var Set = new Class({ +var Image = new Class({ + + Extends: GameObject, + + Mixins: [ + Components.Alpha, + Components.BlendMode, + Components.Depth, + Components.Flip, + Components.GetBounds, + Components.Mask, + Components.Origin, + Components.Pipeline, + Components.ScrollFactor, + Components.Size, + Components.TextureCrop, + Components.Tint, + Components.Transform, + Components.Visible, + ImageRender + ], initialize: - function Set (elements) + function Image (scene, x, y, texture, frame) { + GameObject.call(this, scene, 'Image'); + /** - * The entries of this Set. Stored internally as an array. + * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method. * - * @genericUse {T[]} - [$type] - * - * @name Phaser.Structs.Set#entries - * @type {Array.<*>} - * @default [] - * @since 3.0.0 + * @name Phaser.GameObjects.Image#_crop + * @type {object} + * @private + * @since 3.11.0 */ - this.entries = []; - - if (Array.isArray(elements)) - { - for (var i = 0; i < elements.length; i++) - { - this.set(elements[i]); - } - } - }, - - /** - * Inserts the provided value into this Set. If the value is already contained in this Set this method will have no effect. - * - * @method Phaser.Structs.Set#set - * @since 3.0.0 - * - * @genericUse {T} - [value] - * @genericUse {Phaser.Structs.Set.} - [$return] - * - * @param {*} value - The value to insert into this Set. - * - * @return {Phaser.Structs.Set} This Set object. - */ - set: function (value) - { - if (this.entries.indexOf(value) === -1) - { - this.entries.push(value); - } - - return this; - }, - - /** - * Get an element of this Set which has a property of the specified name, if that property is equal to the specified value. - * If no elements of this Set satisfy the condition then this method will return `null`. - * - * @method Phaser.Structs.Set#get - * @since 3.0.0 - * - * @genericUse {T} - [value,$return] - * - * @param {string} property - The property name to check on the elements of this Set. - * @param {*} value - The value to check for. - * - * @return {*} The first element of this Set that meets the required condition, or `null` if this Set contains no elements that meet the condition. - */ - get: function (property, value) - { - for (var i = 0; i < this.entries.length; i++) - { - var entry = this.entries[i]; - - if (entry[property] === value) - { - return entry; - } - } - }, - - /** - * Returns an array containing all the values in this Set. - * - * @method Phaser.Structs.Set#getArray - * @since 3.0.0 - * - * @genericUse {T[]} - [$return] - * - * @return {Array.<*>} An array containing all the values in this Set. - */ - getArray: function () - { - return this.entries.slice(0); - }, - - /** - * Removes the given value from this Set if this Set contains that value. - * - * @method Phaser.Structs.Set#delete - * @since 3.0.0 - * - * @genericUse {T} - [value] - * @genericUse {Phaser.Structs.Set.} - [$return] - * - * @param {*} value - The value to remove from the Set. - * - * @return {Phaser.Structs.Set} This Set object. - */ - delete: function (value) - { - var index = this.entries.indexOf(value); - - if (index > -1) - { - this.entries.splice(index, 1); - } - - return this; - }, - - /** - * Dumps the contents of this Set to the console via `console.group`. - * - * @method Phaser.Structs.Set#dump - * @since 3.0.0 - */ - dump: function () - { - // eslint-disable-next-line no-console - console.group('Set'); - - for (var i = 0; i < this.entries.length; i++) - { - var entry = this.entries[i]; - console.log(entry); - } - - // eslint-disable-next-line no-console - console.groupEnd(); - }, - - /** - * Passes each value in this Set to the given callback. - * Use this function when you know this Set will be modified during the iteration, otherwise use `iterate`. - * - * @method Phaser.Structs.Set#each - * @since 3.0.0 - * - * @genericUse {EachSetCallback.} - [callback] - * @genericUse {Phaser.Structs.Set.} - [$return] - * - * @param {EachSetCallback} callback - The callback to be invoked and passed each value this Set contains. - * @param {*} [callbackScope] - The scope of the callback. - * - * @return {Phaser.Structs.Set} This Set object. - */ - each: function (callback, callbackScope) - { - var i; - var temp = this.entries.slice(); - var len = temp.length; - - if (callbackScope) - { - for (i = 0; i < len; i++) - { - if (callback.call(callbackScope, temp[i], i) === false) - { - break; - } - } - } - else - { - for (i = 0; i < len; i++) - { - if (callback(temp[i], i) === false) - { - break; - } - } - } - - return this; - }, - - /** - * Passes each value in this Set to the given callback. - * For when you absolutely know this Set won't be modified during the iteration. - * - * @method Phaser.Structs.Set#iterate - * @since 3.0.0 - * - * @genericUse {EachSetCallback.} - [callback] - * @genericUse {Phaser.Structs.Set.} - [$return] - * - * @param {EachSetCallback} callback - The callback to be invoked and passed each value this Set contains. - * @param {*} [callbackScope] - The scope of the callback. - * - * @return {Phaser.Structs.Set} This Set object. - */ - iterate: function (callback, callbackScope) - { - var i; - var len = this.entries.length; - - if (callbackScope) - { - for (i = 0; i < len; i++) - { - if (callback.call(callbackScope, this.entries[i], i) === false) - { - break; - } - } - } - else - { - for (i = 0; i < len; i++) - { - if (callback(this.entries[i], i) === false) - { - break; - } - } - } - - return this; - }, - - /** - * Goes through each entry in this Set and invokes the given function on them, passing in the arguments. - * - * @method Phaser.Structs.Set#iterateLocal - * @since 3.0.0 - * - * @genericUse {Phaser.Structs.Set.} - [$return] - * - * @param {string} callbackKey - The key of the function to be invoked on each Set entry. - * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child. - * - * @return {Phaser.Structs.Set} This Set object. - */ - iterateLocal: function (callbackKey) - { - var i; - var args = []; - - for (i = 1; i < arguments.length; i++) - { - args.push(arguments[i]); - } - - var len = this.entries.length; - - for (i = 0; i < len; i++) - { - var entry = this.entries[i]; - - entry[callbackKey].apply(entry, args); - } - - return this; - }, - - /** - * Clears this Set so that it no longer contains any values. - * - * @method Phaser.Structs.Set#clear - * @since 3.0.0 - * - * @genericUse {Phaser.Structs.Set.} - [$return] - * - * @return {Phaser.Structs.Set} This Set object. - */ - clear: function () - { - this.entries.length = 0; - - return this; - }, - - /** - * Returns `true` if this Set contains the given value, otherwise returns `false`. - * - * @method Phaser.Structs.Set#contains - * @since 3.0.0 - * - * @genericUse {T} - [value] - * - * @param {*} value - The value to check for in this Set. - * - * @return {boolean} `true` if the given value was found in this Set, otherwise `false`. - */ - contains: function (value) - { - return (this.entries.indexOf(value) > -1); - }, - - /** - * Returns a new Set containing all values that are either in this Set or in the Set provided as an argument. - * - * @method Phaser.Structs.Set#union - * @since 3.0.0 - * - * @genericUse {Phaser.Structs.Set.} - [set,$return] - * - * @param {Phaser.Structs.Set} set - The Set to perform the union with. - * - * @return {Phaser.Structs.Set} A new Set containing all the values in this Set and the Set provided as an argument. - */ - union: function (set) - { - var newSet = new Set(); - - set.entries.forEach(function (value) - { - newSet.set(value); - }); - - this.entries.forEach(function (value) - { - newSet.set(value); - }); - - return newSet; - }, - - /** - * Returns a new Set that contains only the values which are in this Set and that are also in the given Set. - * - * @method Phaser.Structs.Set#intersect - * @since 3.0.0 - * - * @genericUse {Phaser.Structs.Set.} - [set,$return] - * - * @param {Phaser.Structs.Set} set - The Set to intersect this set with. - * - * @return {Phaser.Structs.Set} The result of the intersection, as a new Set. - */ - intersect: function (set) - { - var newSet = new Set(); - - this.entries.forEach(function (value) - { - if (set.contains(value)) - { - newSet.set(value); - } - }); - - return newSet; - }, - - /** - * Returns a new Set containing all the values in this Set which are *not* also in the given Set. - * - * @method Phaser.Structs.Set#difference - * @since 3.0.0 - * - * @genericUse {Phaser.Structs.Set.} - [set,$return] - * - * @param {Phaser.Structs.Set} set - The Set to perform the difference with. - * - * @return {Phaser.Structs.Set} A new Set containing all the values in this Set that are not also in the Set provided as an argument to this method. - */ - difference: function (set) - { - var newSet = new Set(); - - this.entries.forEach(function (value) - { - if (!set.contains(value)) - { - newSet.set(value); - } - }); - - return newSet; - }, - - /** - * The size of this Set. This is the number of entries within it. - * Changing the size will truncate the Set if the given value is smaller than the current size. - * Increasing the size larger than the current size has no effect. - * - * @name Phaser.Structs.Set#size - * @type {integer} - * @since 3.0.0 - */ - size: { - - get: function () - { - return this.entries.length; - }, - - set: function (value) - { - if (value < this.entries.length) - { - return this.entries.length = value; - } - else - { - return this.entries.length; - } - } + this._crop = this.resetCropObject(); + this.setTexture(texture, frame); + this.setPosition(x, y); + this.setSizeToFrame(); + this.setOriginFromFrame(); + this.initPipeline(); } }); -module.exports = Set; +module.exports = Image; /***/ }), -/* 109 */ +/* 105 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * Determine whether the source object has a property with the specified key. + * + * @function Phaser.Utils.Objects.HasValue + * @since 3.0.0 + * + * @param {object} source - The source object to be checked. + * @param {string} key - The property to check for within the object + * + * @return {boolean} `true` if the provided `key` exists on the `source` object, otherwise `false`. + */ +var HasValue = function (source, key) +{ + return (source.hasOwnProperty(key)); +}; + +module.exports = HasValue; + + +/***/ }), +/* 106 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -23236,12 +22717,12 @@ var Bodies = {}; module.exports = Bodies; -var Vertices = __webpack_require__(86); +var Vertices = __webpack_require__(85); var Common = __webpack_require__(37); var Body = __webpack_require__(62); -var Bounds = __webpack_require__(102); -var Vector = __webpack_require__(101); -var decomp = __webpack_require__(1388); +var Bounds = __webpack_require__(99); +var Vector = __webpack_require__(98); +var decomp = __webpack_require__(1377); (function() { @@ -23576,7 +23057,7 @@ var decomp = __webpack_require__(1388); /***/ }), -/* 110 */ +/* 107 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -23586,7 +23067,7 @@ var decomp = __webpack_require__(1388); */ var BlendModes = __webpack_require__(52); -var Circle = __webpack_require__(65); +var Circle = __webpack_require__(63); var CircleContains = __webpack_require__(55); var Class = __webpack_require__(0); var Components = __webpack_require__(11); @@ -23889,7 +23370,7 @@ module.exports = Zone; /***/ }), -/* 111 */ +/* 108 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -23904,30 +23385,30 @@ module.exports = Zone; module.exports = { - ADD_ANIMATION: __webpack_require__(534), - ANIMATION_COMPLETE: __webpack_require__(535), - ANIMATION_REPEAT: __webpack_require__(536), - ANIMATION_RESTART: __webpack_require__(537), - ANIMATION_START: __webpack_require__(538), - PAUSE_ALL: __webpack_require__(539), - REMOVE_ANIMATION: __webpack_require__(540), - RESUME_ALL: __webpack_require__(541), - SPRITE_ANIMATION_COMPLETE: __webpack_require__(542), - SPRITE_ANIMATION_KEY_COMPLETE: __webpack_require__(543), - SPRITE_ANIMATION_KEY_REPEAT: __webpack_require__(544), - SPRITE_ANIMATION_KEY_RESTART: __webpack_require__(545), - SPRITE_ANIMATION_KEY_START: __webpack_require__(546), - SPRITE_ANIMATION_KEY_UPDATE: __webpack_require__(547), - SPRITE_ANIMATION_REPEAT: __webpack_require__(548), - SPRITE_ANIMATION_RESTART: __webpack_require__(549), - SPRITE_ANIMATION_START: __webpack_require__(550), - SPRITE_ANIMATION_UPDATE: __webpack_require__(551) + ADD_ANIMATION: __webpack_require__(533), + ANIMATION_COMPLETE: __webpack_require__(534), + ANIMATION_REPEAT: __webpack_require__(535), + ANIMATION_RESTART: __webpack_require__(536), + ANIMATION_START: __webpack_require__(537), + PAUSE_ALL: __webpack_require__(538), + REMOVE_ANIMATION: __webpack_require__(539), + RESUME_ALL: __webpack_require__(540), + SPRITE_ANIMATION_COMPLETE: __webpack_require__(541), + SPRITE_ANIMATION_KEY_COMPLETE: __webpack_require__(542), + SPRITE_ANIMATION_KEY_REPEAT: __webpack_require__(543), + SPRITE_ANIMATION_KEY_RESTART: __webpack_require__(544), + SPRITE_ANIMATION_KEY_START: __webpack_require__(545), + SPRITE_ANIMATION_KEY_UPDATE: __webpack_require__(546), + SPRITE_ANIMATION_REPEAT: __webpack_require__(547), + SPRITE_ANIMATION_RESTART: __webpack_require__(548), + SPRITE_ANIMATION_START: __webpack_require__(549), + SPRITE_ANIMATION_UPDATE: __webpack_require__(550) }; /***/ }), -/* 112 */ +/* 109 */ /***/ (function(module, exports) { /** @@ -23955,7 +23436,7 @@ module.exports = Perimeter; /***/ }), -/* 113 */ +/* 110 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -23965,7 +23446,7 @@ module.exports = Perimeter; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(283); +var Events = __webpack_require__(281); /** * @callback DataEachCallback @@ -24596,7 +24077,7 @@ module.exports = DataManager; /***/ }), -/* 114 */ +/* 111 */ /***/ (function(module, exports) { /** @@ -24637,7 +24118,7 @@ module.exports = Shuffle; /***/ }), -/* 115 */ +/* 112 */ /***/ (function(module, exports) { /** @@ -24667,7 +24148,7 @@ module.exports = Linear; /***/ }), -/* 116 */ +/* 113 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** @@ -24836,10 +24317,10 @@ function init () module.exports = init(); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(726))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(725))) /***/ }), -/* 117 */ +/* 114 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -24848,7 +24329,7 @@ module.exports = init(); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var OS = __webpack_require__(116); +var OS = __webpack_require__(113); /** * Determines the browser type and version running this Phaser Game instance. @@ -24949,7 +24430,7 @@ module.exports = init(); /***/ }), -/* 118 */ +/* 115 */ /***/ (function(module, exports) { /** @@ -24979,7 +24460,7 @@ module.exports = IsSizePowerOfTwo; /***/ }), -/* 119 */ +/* 116 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -24994,17 +24475,17 @@ module.exports = IsSizePowerOfTwo; module.exports = { - ADD: __webpack_require__(776), - ERROR: __webpack_require__(777), - LOAD: __webpack_require__(778), - READY: __webpack_require__(779), - REMOVE: __webpack_require__(780) + ADD: __webpack_require__(775), + ERROR: __webpack_require__(776), + LOAD: __webpack_require__(777), + READY: __webpack_require__(778), + REMOVE: __webpack_require__(779) }; /***/ }), -/* 120 */ +/* 117 */ /***/ (function(module, exports) { /** @@ -25062,7 +24543,7 @@ module.exports = AddToDOM; /***/ }), -/* 121 */ +/* 118 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -25071,7 +24552,7 @@ module.exports = AddToDOM; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SpliceOne = __webpack_require__(80); +var SpliceOne = __webpack_require__(79); /** * Removes the given item, or array of items, from the array. @@ -25153,7 +24634,7 @@ module.exports = Remove; /***/ }), -/* 122 */ +/* 119 */ /***/ (function(module, exports) { /** @@ -26059,7 +25540,7 @@ module.exports = KeyCodes; /***/ }), -/* 123 */ +/* 120 */ /***/ (function(module, exports) { /** @@ -26182,7 +25663,52 @@ module.exports = CONST; /***/ }), -/* 124 */ +/* 121 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var Clone = __webpack_require__(65); + +/** + * Creates a new Object using all values from obj1 and obj2. + * If a value exists in both obj1 and obj2, the value in obj1 is used. + * + * This is only a shallow copy. Deeply nested objects are not cloned, so be sure to only use this + * function on shallow objects. + * + * @function Phaser.Utils.Objects.Merge + * @since 3.0.0 + * + * @param {object} obj1 - The first object. + * @param {object} obj2 - The second object. + * + * @return {object} A new object containing the union of obj1's and obj2's properties. + */ +var Merge = function (obj1, obj2) +{ + var clone = Clone(obj1); + + for (var key in obj2) + { + if (!clone.hasOwnProperty(key)) + { + clone[key] = obj2[key]; + } + } + + return clone; +}; + +module.exports = Merge; + + +/***/ }), +/* 122 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26193,8 +25719,8 @@ module.exports = CONST; */ var Class = __webpack_require__(0); -var Clone = __webpack_require__(67); -var EventEmitter = __webpack_require__(9); +var Clone = __webpack_require__(65); +var EventEmitter = __webpack_require__(10); var Events = __webpack_require__(59); var GameEvents = __webpack_require__(18); var NOOP = __webpack_require__(1); @@ -26807,7 +26333,7 @@ module.exports = BaseSoundManager; /***/ }), -/* 125 */ +/* 123 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -26818,7 +26344,7 @@ module.exports = BaseSoundManager; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); +var EventEmitter = __webpack_require__(10); var Events = __webpack_require__(59); var Extend = __webpack_require__(17); var NOOP = __webpack_require__(1); @@ -27307,7 +26833,7 @@ module.exports = BaseSound; /***/ }), -/* 126 */ +/* 124 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -27316,10 +26842,10 @@ module.exports = BaseSound; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayUtils = __webpack_require__(182); +var ArrayUtils = __webpack_require__(179); var Class = __webpack_require__(0); var NOOP = __webpack_require__(1); -var StableSort = __webpack_require__(128); +var StableSort = __webpack_require__(126); /** * @callback EachListCallback @@ -28123,7 +27649,7 @@ module.exports = List; /***/ }), -/* 127 */ +/* 125 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -28132,8 +27658,8 @@ module.exports = List; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CheckMatrix = __webpack_require__(183); -var TransposeMatrix = __webpack_require__(387); +var CheckMatrix = __webpack_require__(180); +var TransposeMatrix = __webpack_require__(385); /** * Rotates the array matrix based on the given rotation value. @@ -28195,7 +27721,7 @@ module.exports = RotateMatrix; /***/ }), -/* 128 */ +/* 126 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -28340,7 +27866,7 @@ else {} })(); /***/ }), -/* 129 */ +/* 127 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -28352,10 +27878,10 @@ else {} var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameObject = __webpack_require__(13); -var GetBitmapTextSize = __webpack_require__(941); -var ParseFromAtlas = __webpack_require__(942); -var ParseXMLBitmapFont = __webpack_require__(186); -var Render = __webpack_require__(943); +var GetBitmapTextSize = __webpack_require__(940); +var ParseFromAtlas = __webpack_require__(941); +var ParseXMLBitmapFont = __webpack_require__(183); +var Render = __webpack_require__(942); /** * @classdesc @@ -29069,7 +28595,456 @@ module.exports = BitmapText; /***/ }), -/* 130 */ +/* 128 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var Class = __webpack_require__(0); + +/** + * @callback EachSetCallback + * + * @param {E} entry - The Set entry. + * @param {number} index - The index of the entry within the Set. + * + * @return {?boolean} The callback result. + */ + +/** + * @classdesc + * A Set is a collection of unique elements. + * + * @class Set + * @memberof Phaser.Structs + * @constructor + * @since 3.0.0 + * + * @generic T + * @genericUse {T[]} - [elements] + * + * @param {Array.<*>} [elements] - An optional array of elements to insert into this Set. + */ +var Set = new Class({ + + initialize: + + function Set (elements) + { + /** + * The entries of this Set. Stored internally as an array. + * + * @genericUse {T[]} - [$type] + * + * @name Phaser.Structs.Set#entries + * @type {Array.<*>} + * @default [] + * @since 3.0.0 + */ + this.entries = []; + + if (Array.isArray(elements)) + { + for (var i = 0; i < elements.length; i++) + { + this.set(elements[i]); + } + } + }, + + /** + * Inserts the provided value into this Set. If the value is already contained in this Set this method will have no effect. + * + * @method Phaser.Structs.Set#set + * @since 3.0.0 + * + * @genericUse {T} - [value] + * @genericUse {Phaser.Structs.Set.} - [$return] + * + * @param {*} value - The value to insert into this Set. + * + * @return {Phaser.Structs.Set} This Set object. + */ + set: function (value) + { + if (this.entries.indexOf(value) === -1) + { + this.entries.push(value); + } + + return this; + }, + + /** + * Get an element of this Set which has a property of the specified name, if that property is equal to the specified value. + * If no elements of this Set satisfy the condition then this method will return `null`. + * + * @method Phaser.Structs.Set#get + * @since 3.0.0 + * + * @genericUse {T} - [value,$return] + * + * @param {string} property - The property name to check on the elements of this Set. + * @param {*} value - The value to check for. + * + * @return {*} The first element of this Set that meets the required condition, or `null` if this Set contains no elements that meet the condition. + */ + get: function (property, value) + { + for (var i = 0; i < this.entries.length; i++) + { + var entry = this.entries[i]; + + if (entry[property] === value) + { + return entry; + } + } + }, + + /** + * Returns an array containing all the values in this Set. + * + * @method Phaser.Structs.Set#getArray + * @since 3.0.0 + * + * @genericUse {T[]} - [$return] + * + * @return {Array.<*>} An array containing all the values in this Set. + */ + getArray: function () + { + return this.entries.slice(0); + }, + + /** + * Removes the given value from this Set if this Set contains that value. + * + * @method Phaser.Structs.Set#delete + * @since 3.0.0 + * + * @genericUse {T} - [value] + * @genericUse {Phaser.Structs.Set.} - [$return] + * + * @param {*} value - The value to remove from the Set. + * + * @return {Phaser.Structs.Set} This Set object. + */ + delete: function (value) + { + var index = this.entries.indexOf(value); + + if (index > -1) + { + this.entries.splice(index, 1); + } + + return this; + }, + + /** + * Dumps the contents of this Set to the console via `console.group`. + * + * @method Phaser.Structs.Set#dump + * @since 3.0.0 + */ + dump: function () + { + // eslint-disable-next-line no-console + console.group('Set'); + + for (var i = 0; i < this.entries.length; i++) + { + var entry = this.entries[i]; + console.log(entry); + } + + // eslint-disable-next-line no-console + console.groupEnd(); + }, + + /** + * Passes each value in this Set to the given callback. + * Use this function when you know this Set will be modified during the iteration, otherwise use `iterate`. + * + * @method Phaser.Structs.Set#each + * @since 3.0.0 + * + * @genericUse {EachSetCallback.} - [callback] + * @genericUse {Phaser.Structs.Set.} - [$return] + * + * @param {EachSetCallback} callback - The callback to be invoked and passed each value this Set contains. + * @param {*} [callbackScope] - The scope of the callback. + * + * @return {Phaser.Structs.Set} This Set object. + */ + each: function (callback, callbackScope) + { + var i; + var temp = this.entries.slice(); + var len = temp.length; + + if (callbackScope) + { + for (i = 0; i < len; i++) + { + if (callback.call(callbackScope, temp[i], i) === false) + { + break; + } + } + } + else + { + for (i = 0; i < len; i++) + { + if (callback(temp[i], i) === false) + { + break; + } + } + } + + return this; + }, + + /** + * Passes each value in this Set to the given callback. + * For when you absolutely know this Set won't be modified during the iteration. + * + * @method Phaser.Structs.Set#iterate + * @since 3.0.0 + * + * @genericUse {EachSetCallback.} - [callback] + * @genericUse {Phaser.Structs.Set.} - [$return] + * + * @param {EachSetCallback} callback - The callback to be invoked and passed each value this Set contains. + * @param {*} [callbackScope] - The scope of the callback. + * + * @return {Phaser.Structs.Set} This Set object. + */ + iterate: function (callback, callbackScope) + { + var i; + var len = this.entries.length; + + if (callbackScope) + { + for (i = 0; i < len; i++) + { + if (callback.call(callbackScope, this.entries[i], i) === false) + { + break; + } + } + } + else + { + for (i = 0; i < len; i++) + { + if (callback(this.entries[i], i) === false) + { + break; + } + } + } + + return this; + }, + + /** + * Goes through each entry in this Set and invokes the given function on them, passing in the arguments. + * + * @method Phaser.Structs.Set#iterateLocal + * @since 3.0.0 + * + * @genericUse {Phaser.Structs.Set.} - [$return] + * + * @param {string} callbackKey - The key of the function to be invoked on each Set entry. + * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child. + * + * @return {Phaser.Structs.Set} This Set object. + */ + iterateLocal: function (callbackKey) + { + var i; + var args = []; + + for (i = 1; i < arguments.length; i++) + { + args.push(arguments[i]); + } + + var len = this.entries.length; + + for (i = 0; i < len; i++) + { + var entry = this.entries[i]; + + entry[callbackKey].apply(entry, args); + } + + return this; + }, + + /** + * Clears this Set so that it no longer contains any values. + * + * @method Phaser.Structs.Set#clear + * @since 3.0.0 + * + * @genericUse {Phaser.Structs.Set.} - [$return] + * + * @return {Phaser.Structs.Set} This Set object. + */ + clear: function () + { + this.entries.length = 0; + + return this; + }, + + /** + * Returns `true` if this Set contains the given value, otherwise returns `false`. + * + * @method Phaser.Structs.Set#contains + * @since 3.0.0 + * + * @genericUse {T} - [value] + * + * @param {*} value - The value to check for in this Set. + * + * @return {boolean} `true` if the given value was found in this Set, otherwise `false`. + */ + contains: function (value) + { + return (this.entries.indexOf(value) > -1); + }, + + /** + * Returns a new Set containing all values that are either in this Set or in the Set provided as an argument. + * + * @method Phaser.Structs.Set#union + * @since 3.0.0 + * + * @genericUse {Phaser.Structs.Set.} - [set,$return] + * + * @param {Phaser.Structs.Set} set - The Set to perform the union with. + * + * @return {Phaser.Structs.Set} A new Set containing all the values in this Set and the Set provided as an argument. + */ + union: function (set) + { + var newSet = new Set(); + + set.entries.forEach(function (value) + { + newSet.set(value); + }); + + this.entries.forEach(function (value) + { + newSet.set(value); + }); + + return newSet; + }, + + /** + * Returns a new Set that contains only the values which are in this Set and that are also in the given Set. + * + * @method Phaser.Structs.Set#intersect + * @since 3.0.0 + * + * @genericUse {Phaser.Structs.Set.} - [set,$return] + * + * @param {Phaser.Structs.Set} set - The Set to intersect this set with. + * + * @return {Phaser.Structs.Set} The result of the intersection, as a new Set. + */ + intersect: function (set) + { + var newSet = new Set(); + + this.entries.forEach(function (value) + { + if (set.contains(value)) + { + newSet.set(value); + } + }); + + return newSet; + }, + + /** + * Returns a new Set containing all the values in this Set which are *not* also in the given Set. + * + * @method Phaser.Structs.Set#difference + * @since 3.0.0 + * + * @genericUse {Phaser.Structs.Set.} - [set,$return] + * + * @param {Phaser.Structs.Set} set - The Set to perform the difference with. + * + * @return {Phaser.Structs.Set} A new Set containing all the values in this Set that are not also in the Set provided as an argument to this method. + */ + difference: function (set) + { + var newSet = new Set(); + + this.entries.forEach(function (value) + { + if (!set.contains(value)) + { + newSet.set(value); + } + }); + + return newSet; + }, + + /** + * The size of this Set. This is the number of entries within it. + * Changing the size will truncate the Set if the given value is smaller than the current size. + * Increasing the size larger than the current size has no effect. + * + * @name Phaser.Structs.Set#size + * @type {integer} + * @since 3.0.0 + */ + size: { + + get: function () + { + return this.entries.length; + }, + + set: function (value) + { + if (value < this.entries.length) + { + return this.entries.length = value; + } + else + { + return this.entries.length; + } + } + + } + +}); + +module.exports = Set; + + +/***/ }), +/* 129 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29081,7 +29056,7 @@ module.exports = BitmapText; var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameObject = __webpack_require__(13); -var MeshRender = __webpack_require__(1073); +var MeshRender = __webpack_require__(1072); var NOOP = __webpack_require__(1); /** @@ -29240,7 +29215,7 @@ module.exports = Mesh; /***/ }), -/* 131 */ +/* 130 */ /***/ (function(module, exports) { /** @@ -29278,7 +29253,7 @@ module.exports = RectangleToRectangle; /***/ }), -/* 132 */ +/* 131 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29386,7 +29361,7 @@ module.exports = InputPluginCache; /***/ }), -/* 133 */ +/* 132 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29401,19 +29376,19 @@ module.exports = InputPluginCache; module.exports = { - ANY_KEY_DOWN: __webpack_require__(1212), - ANY_KEY_UP: __webpack_require__(1213), - COMBO_MATCH: __webpack_require__(1214), - DOWN: __webpack_require__(1215), - KEY_DOWN: __webpack_require__(1216), - KEY_UP: __webpack_require__(1217), - UP: __webpack_require__(1218) + ANY_KEY_DOWN: __webpack_require__(1211), + ANY_KEY_UP: __webpack_require__(1212), + COMBO_MATCH: __webpack_require__(1213), + DOWN: __webpack_require__(1214), + KEY_DOWN: __webpack_require__(1215), + KEY_UP: __webpack_require__(1216), + UP: __webpack_require__(1217) }; /***/ }), -/* 134 */ +/* 133 */ /***/ (function(module, exports) { /** @@ -29454,7 +29429,7 @@ module.exports = GetURL; /***/ }), -/* 135 */ +/* 134 */ /***/ (function(module, exports) { /** @@ -29523,7 +29498,7 @@ module.exports = XHRSettings; /***/ }), -/* 136 */ +/* 135 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29533,8 +29508,8 @@ module.exports = XHRSettings; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(216); -var Sprite = __webpack_require__(69); +var Components = __webpack_require__(213); +var Sprite = __webpack_require__(74); /** * @classdesc @@ -29624,7 +29599,7 @@ module.exports = ArcadeSprite; /***/ }), -/* 137 */ +/* 136 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29639,54 +29614,54 @@ module.exports = ArcadeSprite; module.exports = { - CalculateFacesAt: __webpack_require__(219), + CalculateFacesAt: __webpack_require__(216), CalculateFacesWithin: __webpack_require__(51), - Copy: __webpack_require__(1310), - CreateFromTiles: __webpack_require__(1311), - CullTiles: __webpack_require__(1312), - Fill: __webpack_require__(1313), - FilterTiles: __webpack_require__(1314), - FindByIndex: __webpack_require__(1315), - FindTile: __webpack_require__(1316), - ForEachTile: __webpack_require__(1317), - GetTileAt: __webpack_require__(138), - GetTileAtWorldXY: __webpack_require__(1318), + Copy: __webpack_require__(1307), + CreateFromTiles: __webpack_require__(1308), + CullTiles: __webpack_require__(1309), + Fill: __webpack_require__(1310), + FilterTiles: __webpack_require__(1311), + FindByIndex: __webpack_require__(1312), + FindTile: __webpack_require__(1313), + ForEachTile: __webpack_require__(1314), + GetTileAt: __webpack_require__(137), + GetTileAtWorldXY: __webpack_require__(1315), GetTilesWithin: __webpack_require__(24), - GetTilesWithinShape: __webpack_require__(1319), - GetTilesWithinWorldXY: __webpack_require__(1320), - HasTileAt: __webpack_require__(476), - HasTileAtWorldXY: __webpack_require__(1321), - IsInLayerBounds: __webpack_require__(103), - PutTileAt: __webpack_require__(220), - PutTileAtWorldXY: __webpack_require__(1322), - PutTilesAt: __webpack_require__(1323), - Randomize: __webpack_require__(1324), - RemoveTileAt: __webpack_require__(477), - RemoveTileAtWorldXY: __webpack_require__(1325), - RenderDebug: __webpack_require__(1326), - ReplaceByIndex: __webpack_require__(474), - SetCollision: __webpack_require__(1327), - SetCollisionBetween: __webpack_require__(1328), - SetCollisionByExclusion: __webpack_require__(1329), - SetCollisionByProperty: __webpack_require__(1330), - SetCollisionFromCollisionGroup: __webpack_require__(1331), - SetTileIndexCallback: __webpack_require__(1332), - SetTileLocationCallback: __webpack_require__(1333), - Shuffle: __webpack_require__(1334), - SwapByIndex: __webpack_require__(1335), - TileToWorldX: __webpack_require__(139), - TileToWorldXY: __webpack_require__(1336), - TileToWorldY: __webpack_require__(140), - WeightedRandomize: __webpack_require__(1337), - WorldToTileX: __webpack_require__(63), - WorldToTileXY: __webpack_require__(475), - WorldToTileY: __webpack_require__(64) + GetTilesWithinShape: __webpack_require__(1316), + GetTilesWithinWorldXY: __webpack_require__(1317), + HasTileAt: __webpack_require__(475), + HasTileAtWorldXY: __webpack_require__(1318), + IsInLayerBounds: __webpack_require__(100), + PutTileAt: __webpack_require__(218), + PutTileAtWorldXY: __webpack_require__(1319), + PutTilesAt: __webpack_require__(1320), + Randomize: __webpack_require__(1321), + RemoveTileAt: __webpack_require__(476), + RemoveTileAtWorldXY: __webpack_require__(1322), + RenderDebug: __webpack_require__(1323), + ReplaceByIndex: __webpack_require__(472), + SetCollision: __webpack_require__(1324), + SetCollisionBetween: __webpack_require__(1325), + SetCollisionByExclusion: __webpack_require__(1326), + SetCollisionByProperty: __webpack_require__(1327), + SetCollisionFromCollisionGroup: __webpack_require__(1328), + SetTileIndexCallback: __webpack_require__(1329), + SetTileLocationCallback: __webpack_require__(1330), + Shuffle: __webpack_require__(1331), + SwapByIndex: __webpack_require__(1332), + TileToWorldX: __webpack_require__(470), + TileToWorldXY: __webpack_require__(217), + TileToWorldY: __webpack_require__(471), + WeightedRandomize: __webpack_require__(1333), + WorldToTileX: __webpack_require__(473), + WorldToTileXY: __webpack_require__(72), + WorldToTileY: __webpack_require__(474) }; /***/ }), -/* 138 */ +/* 137 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -29695,7 +29670,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var IsInLayerBounds = __webpack_require__(103); +var IsInLayerBounds = __webpack_require__(100); /** * Gets a tile at the given tile coordinates from the given layer. @@ -29730,6 +29705,7 @@ var GetTileAt = function (tileX, tileY, nonNull, layer) else { return tile; + } } @@ -29743,112 +29719,7 @@ module.exports = GetTileAt; /***/ }), -/* 139 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from tile X coordinates (tile units) to world X coordinates (pixels), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.TileToWorldX - * @private - * @since 3.0.0 - * - * @param {integer} tileX - The x coordinate, in tiles, not pixels. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} - */ -var TileToWorldX = function (tileX, camera, layer) -{ - var orientation = layer.orientation; - var tileWidth = layer.baseTileWidth; - var tilemapLayer = layer.tilemapLayer; - var layerWorldX = 0; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); - - tileWidth *= tilemapLayer.scaleX; - } - - - if (orientation === "orthogonal") { - return layerWorldX + tileX * tileWidth; - } else if (orientation === "isometric") { - // Not Best Solution ? - console.warn('With isometric map types you have to use the TileToWorldXY function.'); - return null; - } - - -}; - -module.exports = TileToWorldX; - - -/***/ }), -/* 140 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Converts from tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the - * layer's position, scale and scroll. - * - * @function Phaser.Tilemaps.Components.TileToWorldY - * @private - * @since 3.0.0 - * - * @param {integer} tileY - The x coordinate, in tiles, not pixels. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {number} - */ -var TileToWorldY = function (tileY, camera, layer) -{ - var orientation = layer.orientation; - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - var layerWorldY = 0; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - tileHeight *= tilemapLayer.scaleY; - } - - if (orientation === "orthogonal") { - return layerWorldY + tileY * tileHeight; - } else if (orientation === "isometric") { - // Not Best Solution ? - console.warn('With isometric map types you have to use the TileToWorldXY function.'); - return null; - } -}; - -module.exports = TileToWorldY; - - -/***/ }), -/* 141 */ +/* 138 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30252,7 +30123,7 @@ module.exports = Tileset; /***/ }), -/* 142 */ +/* 139 */ /***/ (function(module, exports) { /** @@ -30316,7 +30187,7 @@ module.exports = GetNewValue; /***/ }), -/* 143 */ +/* 140 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30325,17 +30196,17 @@ module.exports = GetNewValue; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Defaults = __webpack_require__(229); +var Defaults = __webpack_require__(227); var GetAdvancedValue = __webpack_require__(14); -var GetBoolean = __webpack_require__(88); -var GetEaseFunction = __webpack_require__(70); -var GetNewValue = __webpack_require__(142); -var GetProps = __webpack_require__(498); -var GetTargets = __webpack_require__(227); +var GetBoolean = __webpack_require__(87); +var GetEaseFunction = __webpack_require__(67); +var GetNewValue = __webpack_require__(139); +var GetProps = __webpack_require__(497); +var GetTargets = __webpack_require__(225); var GetValue = __webpack_require__(6); -var GetValueOp = __webpack_require__(228); -var Tween = __webpack_require__(230); -var TweenData = __webpack_require__(232); +var GetValueOp = __webpack_require__(226); +var Tween = __webpack_require__(228); +var TweenData = __webpack_require__(230); /** * Creates a new Tween. @@ -30449,7 +30320,7 @@ module.exports = TweenBuilder; /***/ }), -/* 144 */ +/* 141 */ /***/ (function(module, exports) { /** @@ -30483,7 +30354,7 @@ module.exports = Equal; /***/ }), -/* 145 */ +/* 142 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -30494,7 +30365,7 @@ module.exports = Equal; */ var Class = __webpack_require__(0); -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * @classdesc @@ -31252,7 +31123,7 @@ module.exports = WebGLPipeline; /***/ }), -/* 146 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31270,9 +31141,9 @@ var Composite = {}; module.exports = Composite; -var Events = __webpack_require__(239); +var Events = __webpack_require__(237); var Common = __webpack_require__(37); -var Bounds = __webpack_require__(102); +var Bounds = __webpack_require__(99); var Body = __webpack_require__(62); (function() { @@ -31946,7 +31817,7 @@ var Body = __webpack_require__(62); /***/ }), -/* 147 */ +/* 144 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -31985,7 +31856,7 @@ module.exports = CircumferencePoint; /***/ }), -/* 148 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -32029,7 +31900,7 @@ module.exports = Random; /***/ }), -/* 149 */ +/* 146 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -32040,10 +31911,10 @@ module.exports = Random; var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(111); -var FindClosestInSorted = __webpack_require__(269); -var Frame = __webpack_require__(270); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(108); +var FindClosestInSorted = __webpack_require__(267); +var Frame = __webpack_require__(268); var GetValue = __webpack_require__(6); /** @@ -32258,7 +32129,7 @@ var Animation = new Class({ * @method Phaser.Animations.Animation#addFrame * @since 3.0.0 * - * @param {(string|Phaser.Types.Animations.AnimationFrame[])} config - [description] + * @param {(string|Phaser.Types.Animations.AnimationFrame[])} config - Either a string, in which case it will use all frames from a texture with the matching key, or an array of Animation Frame configuration objects. * * @return {Phaser.Animations.Animation} This Animation object. */ @@ -32274,7 +32145,7 @@ var Animation = new Class({ * @since 3.0.0 * * @param {integer} index - The index to insert the frame at within the animation. - * @param {(string|Phaser.Types.Animations.AnimationFrame[])} config - [description] + * @param {(string|Phaser.Types.Animations.AnimationFrame[])} config - Either a string, in which case it will use all frames from a texture with the matching key, or an array of Animation Frame configuration objects. * * @return {Phaser.Animations.Animation} This Animation object. */ @@ -32322,13 +32193,14 @@ var Animation = new Class({ }, /** - * [description] + * Called internally when this Animation completes playback. + * Optionally, hides the parent Game Object, then stops playback. * * @method Phaser.Animations.Animation#completeAnimation * @protected * @since 3.0.0 * - * @param {Phaser.GameObjects.Components.Animation} component - [description] + * @param {Phaser.GameObjects.Components.Animation} component - The Animation Component belonging to the Game Object invoking this call. */ completeAnimation: function (component) { @@ -32341,14 +32213,15 @@ var Animation = new Class({ }, /** - * [description] + * Called internally when this Animation first starts to play. + * Sets the accumulator and nextTick properties. * * @method Phaser.Animations.Animation#getFirstTick * @protected * @since 3.0.0 * - * @param {Phaser.GameObjects.Components.Animation} component - [description] - * @param {boolean} [includeDelay=true] - [description] + * @param {Phaser.GameObjects.Components.Animation} component - The Animation Component belonging to the Game Object invoking this call. + * @param {boolean} [includeDelay=true] - If `true` the Animation Components delay value will be added to the `nextTick` total. */ getFirstTick: function (component, includeDelay) { @@ -32381,16 +32254,16 @@ var Animation = new Class({ }, /** - * [description] + * Creates AnimationFrame instances based on the given frame data. * * @method Phaser.Animations.Animation#getFrames * @since 3.0.0 * - * @param {Phaser.Textures.TextureManager} textureManager - [description] - * @param {(string|Phaser.Types.Animations.AnimationFrame[])} frames - [description] - * @param {string} [defaultTextureKey] - [description] + * @param {Phaser.Textures.TextureManager} textureManager - A reference to the global Texture Manager. + * @param {(string|Phaser.Types.Animations.AnimationFrame[])} frames - Either a string, in which case it will use all frames from a texture with the matching key, or an array of Animation Frame configuration objects. + * @param {string} [defaultTextureKey] - The key to use if no key is set in the frame configuration object. * - * @return {Phaser.Animations.AnimationFrame[]} [description] + * @return {Phaser.Animations.AnimationFrame[]} An array of newly created AnimationFrame instances. */ getFrames: function (textureManager, frames, defaultTextureKey) { @@ -32483,12 +32356,12 @@ var Animation = new Class({ }, /** - * [description] + * Called internally. Sets the accumulator and nextTick values of the current Animation. * * @method Phaser.Animations.Animation#getNextTick * @since 3.0.0 * - * @param {Phaser.GameObjects.Components.Animation} component - [description] + * @param {Phaser.GameObjects.Components.Animation} component - The Animation Component belonging to the Game Object invoking this call. */ getNextTick: function (component) { @@ -32658,12 +32531,13 @@ var Animation = new Class({ }, /** - * [description] + * Called internally when the Animation is playing backwards. + * Sets the previous frame, causing a yoyo, repeat, complete or update, accordingly. * * @method Phaser.Animations.Animation#previousFrame * @since 3.0.0 * - * @param {Phaser.GameObjects.Components.Animation} component - [description] + * @param {Phaser.GameObjects.Components.Animation} component - The Animation Component belonging to the Game Object invoking this call. */ previousFrame: function (component) { @@ -32721,12 +32595,13 @@ var Animation = new Class({ }, /** - * [description] + * Removes the given AnimationFrame from this Animation instance. + * This is a global action. Any Game Object using this Animation will be impacted by this change. * * @method Phaser.Animations.Animation#removeFrame * @since 3.0.0 * - * @param {Phaser.Animations.AnimationFrame} frame - [description] + * @param {Phaser.Animations.AnimationFrame} frame - The AnimationFrame to be removed. * * @return {Phaser.Animations.Animation} This Animation object. */ @@ -32763,7 +32638,8 @@ var Animation = new Class({ }, /** - * [description] + * Called internally during playback. Forces the animation to repeat, providing there are enough counts left + * in the repeat counter. * * @method Phaser.Animations.Animation#repeatAnimation * @fires Phaser.Animations.Events#ANIMATION_REPEAT @@ -32771,7 +32647,7 @@ var Animation = new Class({ * @fires Phaser.Animations.Events#SPRITE_ANIMATION_KEY_REPEAT * @since 3.0.0 * - * @param {Phaser.GameObjects.Components.Animation} component - [description] + * @param {Phaser.GameObjects.Components.Animation} component - The Animation Component belonging to the Game Object invoking this call. */ repeatAnimation: function (component) { @@ -32816,7 +32692,7 @@ var Animation = new Class({ * @method Phaser.Animations.Animation#setFrame * @since 3.0.0 * - * @param {Phaser.GameObjects.Components.Animation} component - [description] + * @param {Phaser.GameObjects.Components.Animation} component - The Animation Component belonging to the Game Object invoking this call. */ setFrame: function (component) { @@ -32837,7 +32713,7 @@ var Animation = new Class({ * @method Phaser.Animations.Animation#toJSON * @since 3.0.0 * - * @return {Phaser.Types.Animations.JSONAnimation} [description] + * @return {Phaser.Types.Animations.JSONAnimation} The resulting JSONAnimation formatted object. */ toJSON: function () { @@ -32865,7 +32741,7 @@ var Animation = new Class({ }, /** - * [description] + * Called internally whenever frames are added to, or removed from, this Animation. * * @method Phaser.Animations.Animation#updateFrameSequence * @since 3.0.0 @@ -32922,7 +32798,7 @@ var Animation = new Class({ }, /** - * [description] + * Pauses playback of this Animation. The paused state is set immediately. * * @method Phaser.Animations.Animation#pause * @since 3.0.0 @@ -32937,7 +32813,7 @@ var Animation = new Class({ }, /** - * [description] + * Resumes playback of this Animation. The paused state is reset immediately. * * @method Phaser.Animations.Animation#resume * @since 3.0.0 @@ -32952,7 +32828,9 @@ var Animation = new Class({ }, /** - * [description] + * Destroys this Animation instance. It will remove all event listeners, + * remove this animation and its key from the global Animation Manager, + * and then destroy all Animation Frames in turn. * * @method Phaser.Animations.Animation#destroy * @since 3.0.0 @@ -32982,7 +32860,7 @@ module.exports = Animation; /***/ }), -/* 150 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -32991,22 +32869,26 @@ module.exports = Animation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Perimeter = __webpack_require__(112); +var Perimeter = __webpack_require__(109); var Point = __webpack_require__(4); /** - * Position is a value between 0 and 1 where 0 = the top-left of the rectangle and 0.5 = the bottom right. + * Calculates the coordinates of a point at a certain `position` on the Rectangle's perimeter. + * + * The `position` is a fraction between 0 and 1 which defines how far into the perimeter the point is. + * + * A value of 0 or 1 returns the point at the top left corner of the rectangle, while a value of 0.5 returns the point at the bottom right corner of the rectangle. Values between 0 and 0.5 are on the top or the right side and values between 0.5 and 1 are on the bottom or the left side. * * @function Phaser.Geom.Rectangle.GetPoint * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Rectangle} rectangle - [description] - * @param {number} position - [description] - * @param {(Phaser.Geom.Point|object)} [out] - [description] + * @param {Phaser.Geom.Rectangle} rectangle - The Rectangle to get the perimeter point from. + * @param {number} position - The normalized distance into the Rectangle's perimeter to return. + * @param {(Phaser.Geom.Point|object)} [out] - An object to update with the `x` and `y` coordinates of the point. * - * @return {Phaser.Geom.Point} [description] + * @return {Phaser.Geom.Point} The updated `output` object, or a new Point if no `output` object was given. */ var GetPoint = function (rectangle, position, out) { @@ -33059,7 +32941,7 @@ module.exports = GetPoint; /***/ }), -/* 151 */ +/* 148 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33124,7 +33006,7 @@ module.exports = GetPoints; /***/ }), -/* 152 */ +/* 149 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33164,7 +33046,7 @@ module.exports = Random; /***/ }), -/* 153 */ +/* 150 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33202,7 +33084,7 @@ module.exports = Random; /***/ }), -/* 154 */ +/* 151 */ /***/ (function(module, exports) { /** @@ -33331,7 +33213,7 @@ module.exports = Pipeline; /***/ }), -/* 155 */ +/* 152 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33372,7 +33254,7 @@ module.exports = Random; /***/ }), -/* 156 */ +/* 153 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33384,17 +33266,17 @@ module.exports = Random; var Point = __webpack_require__(4); /** - * [description] + * Returns a random Point from within the area of the given Triangle. * * @function Phaser.Geom.Triangle.Random * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Triangle} triangle - [description] - * @param {Phaser.Geom.Point} [out] - [description] + * @param {Phaser.Geom.Triangle} triangle - The Triangle to get a random point from. + * @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created. * - * @return {Phaser.Geom.Point} [description] + * @return {Phaser.Geom.Point} A Point object holding the coordinates of a random position within the Triangle. */ var Random = function (triangle, out) { @@ -33428,7 +33310,7 @@ module.exports = Random; /***/ }), -/* 157 */ +/* 154 */ /***/ (function(module, exports) { /** @@ -33465,7 +33347,7 @@ module.exports = RotateAroundDistance; /***/ }), -/* 158 */ +/* 155 */ /***/ (function(module, exports) { /** @@ -33504,7 +33386,7 @@ module.exports = SmootherStep; /***/ }), -/* 159 */ +/* 156 */ /***/ (function(module, exports) { /** @@ -33551,7 +33433,7 @@ module.exports = SmoothStep; /***/ }), -/* 160 */ +/* 157 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -33924,7 +33806,7 @@ module.exports = Map; /***/ }), -/* 161 */ +/* 158 */ /***/ (function(module, exports) { /** @@ -34000,7 +33882,7 @@ module.exports = Pad; /***/ }), -/* 162 */ +/* 159 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34009,10 +33891,10 @@ module.exports = Pad; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HexStringToColor = __webpack_require__(293); -var IntegerToColor = __webpack_require__(296); -var ObjectToColor = __webpack_require__(298); -var RGBStringToColor = __webpack_require__(299); +var HexStringToColor = __webpack_require__(291); +var IntegerToColor = __webpack_require__(294); +var ObjectToColor = __webpack_require__(296); +var RGBStringToColor = __webpack_require__(297); /** * Converts the given source color value into an instance of a Color class. @@ -34056,7 +33938,7 @@ module.exports = ValueToColor; /***/ }), -/* 163 */ +/* 160 */ /***/ (function(module, exports) { /** @@ -34086,7 +33968,7 @@ module.exports = GetColor; /***/ }), -/* 164 */ +/* 161 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34095,7 +33977,7 @@ module.exports = GetColor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetColor = __webpack_require__(163); +var GetColor = __webpack_require__(160); /** * Converts an HSV (hue, saturation and value) color value to RGB. @@ -34187,7 +34069,7 @@ module.exports = HSVToRGB; /***/ }), -/* 165 */ +/* 162 */ /***/ (function(module, exports) { /** @@ -34319,7 +34201,7 @@ module.exports = Smoothing(); /***/ }), -/* 166 */ +/* 163 */ /***/ (function(module, exports) { /** @@ -34356,7 +34238,7 @@ module.exports = CenterOn; /***/ }), -/* 167 */ +/* 164 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34365,18 +34247,18 @@ module.exports = CenterOn; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Back = __webpack_require__(301); -var Bounce = __webpack_require__(302); -var Circular = __webpack_require__(303); -var Cubic = __webpack_require__(304); -var Elastic = __webpack_require__(305); -var Expo = __webpack_require__(306); -var Linear = __webpack_require__(307); -var Quadratic = __webpack_require__(308); -var Quartic = __webpack_require__(309); -var Quintic = __webpack_require__(310); -var Sine = __webpack_require__(311); -var Stepped = __webpack_require__(312); +var Back = __webpack_require__(299); +var Bounce = __webpack_require__(300); +var Circular = __webpack_require__(301); +var Cubic = __webpack_require__(302); +var Elastic = __webpack_require__(303); +var Expo = __webpack_require__(304); +var Linear = __webpack_require__(305); +var Quadratic = __webpack_require__(306); +var Quartic = __webpack_require__(307); +var Quintic = __webpack_require__(308); +var Sine = __webpack_require__(309); +var Stepped = __webpack_require__(310); // EaseMap module.exports = { @@ -34437,7 +34319,7 @@ module.exports = { /***/ }), -/* 168 */ +/* 165 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34446,8 +34328,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var OS = __webpack_require__(116); -var Browser = __webpack_require__(117); +var OS = __webpack_require__(113); +var Browser = __webpack_require__(114); var CanvasPool = __webpack_require__(26); /** @@ -34629,7 +34511,7 @@ module.exports = init(); /***/ }), -/* 169 */ +/* 166 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34648,62 +34530,62 @@ var Extend = __webpack_require__(17); var PhaserMath = { // Collections of functions - Angle: __webpack_require__(731), - Distance: __webpack_require__(739), - Easing: __webpack_require__(744), - Fuzzy: __webpack_require__(745), - Interpolation: __webpack_require__(748), - Pow2: __webpack_require__(753), - Snap: __webpack_require__(755), + Angle: __webpack_require__(730), + Distance: __webpack_require__(738), + Easing: __webpack_require__(743), + Fuzzy: __webpack_require__(744), + Interpolation: __webpack_require__(747), + Pow2: __webpack_require__(752), + Snap: __webpack_require__(754), // Expose the RNG Class - RandomDataGenerator: __webpack_require__(757), + RandomDataGenerator: __webpack_require__(756), // Single functions - Average: __webpack_require__(758), - Bernstein: __webpack_require__(322), - Between: __webpack_require__(171), - CatmullRom: __webpack_require__(170), - CeilTo: __webpack_require__(759), + Average: __webpack_require__(757), + Bernstein: __webpack_require__(320), + Between: __webpack_require__(168), + CatmullRom: __webpack_require__(167), + CeilTo: __webpack_require__(758), Clamp: __webpack_require__(22), DegToRad: __webpack_require__(35), - Difference: __webpack_require__(760), - Factorial: __webpack_require__(323), - FloatBetween: __webpack_require__(329), - FloorTo: __webpack_require__(761), - FromPercent: __webpack_require__(87), - GetSpeed: __webpack_require__(762), - IsEven: __webpack_require__(763), - IsEvenStrict: __webpack_require__(764), - Linear: __webpack_require__(115), - MaxAdd: __webpack_require__(765), - MinSub: __webpack_require__(766), - Percent: __webpack_require__(767), - RadToDeg: __webpack_require__(172), - RandomXY: __webpack_require__(768), - RandomXYZ: __webpack_require__(769), - RandomXYZW: __webpack_require__(770), - Rotate: __webpack_require__(330), - RotateAround: __webpack_require__(275), - RotateAroundDistance: __webpack_require__(157), - RoundAwayFromZero: __webpack_require__(331), - RoundTo: __webpack_require__(771), - SinCosTableGenerator: __webpack_require__(772), - SmootherStep: __webpack_require__(158), - SmoothStep: __webpack_require__(159), - ToXY: __webpack_require__(773), - TransformXY: __webpack_require__(332), - Within: __webpack_require__(774), + Difference: __webpack_require__(759), + Factorial: __webpack_require__(321), + FloatBetween: __webpack_require__(327), + FloorTo: __webpack_require__(760), + FromPercent: __webpack_require__(86), + GetSpeed: __webpack_require__(761), + IsEven: __webpack_require__(762), + IsEvenStrict: __webpack_require__(763), + Linear: __webpack_require__(112), + MaxAdd: __webpack_require__(764), + MinSub: __webpack_require__(765), + Percent: __webpack_require__(766), + RadToDeg: __webpack_require__(169), + RandomXY: __webpack_require__(767), + RandomXYZ: __webpack_require__(768), + RandomXYZW: __webpack_require__(769), + Rotate: __webpack_require__(328), + RotateAround: __webpack_require__(273), + RotateAroundDistance: __webpack_require__(154), + RoundAwayFromZero: __webpack_require__(329), + RoundTo: __webpack_require__(770), + SinCosTableGenerator: __webpack_require__(771), + SmootherStep: __webpack_require__(155), + SmoothStep: __webpack_require__(156), + ToXY: __webpack_require__(772), + TransformXY: __webpack_require__(330), + Within: __webpack_require__(773), Wrap: __webpack_require__(58), // Vector classes Vector2: __webpack_require__(3), - Vector3: __webpack_require__(173), - Vector4: __webpack_require__(333), - Matrix3: __webpack_require__(334), - Matrix4: __webpack_require__(335), - Quaternion: __webpack_require__(336), - RotateVec3: __webpack_require__(775) + Vector3: __webpack_require__(170), + Vector4: __webpack_require__(331), + Matrix3: __webpack_require__(332), + Matrix4: __webpack_require__(333), + Quaternion: __webpack_require__(334), + RotateVec3: __webpack_require__(774) }; @@ -34717,7 +34599,7 @@ module.exports = PhaserMath; /***/ }), -/* 170 */ +/* 167 */ /***/ (function(module, exports) { /** @@ -34727,16 +34609,16 @@ module.exports = PhaserMath; */ /** - * Calculates a Catmull-Rom value. + * Calculates a Catmull-Rom value from the given points, based on an alpha of 0.5. * * @function Phaser.Math.CatmullRom * @since 3.0.0 * - * @param {number} t - [description] - * @param {number} p0 - [description] - * @param {number} p1 - [description] - * @param {number} p2 - [description] - * @param {number} p3 - [description] + * @param {number} t - The amount to interpolate by. + * @param {number} p0 - The first control point. + * @param {number} p1 - The second control point. + * @param {number} p2 - The third control point. + * @param {number} p3 - The fourth control point. * * @return {number} The Catmull-Rom value. */ @@ -34754,7 +34636,7 @@ module.exports = CatmullRom; /***/ }), -/* 171 */ +/* 168 */ /***/ (function(module, exports) { /** @@ -34783,7 +34665,7 @@ module.exports = Between; /***/ }), -/* 172 */ +/* 169 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -34813,7 +34695,7 @@ module.exports = RadToDeg; /***/ }), -/* 173 */ +/* 170 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35623,7 +35505,7 @@ module.exports = Vector3; /***/ }), -/* 174 */ +/* 171 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35724,7 +35606,7 @@ module.exports = DefaultPlugins; /***/ }), -/* 175 */ +/* 172 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35810,7 +35692,7 @@ module.exports = FromPoints; /***/ }), -/* 176 */ +/* 173 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35821,10 +35703,10 @@ module.exports = FromPoints; var CONST = { - CENTER: __webpack_require__(358), - ORIENTATION: __webpack_require__(359), - SCALE_MODE: __webpack_require__(360), - ZOOM: __webpack_require__(361) + CENTER: __webpack_require__(356), + ORIENTATION: __webpack_require__(357), + SCALE_MODE: __webpack_require__(358), + ZOOM: __webpack_require__(359) }; @@ -35832,7 +35714,7 @@ module.exports = CONST; /***/ }), -/* 177 */ +/* 174 */ /***/ (function(module, exports) { /** @@ -35861,7 +35743,7 @@ module.exports = RemoveFromDOM; /***/ }), -/* 178 */ +/* 175 */ /***/ (function(module, exports) { /** @@ -35959,7 +35841,7 @@ module.exports = INPUT_CONST; /***/ }), -/* 179 */ +/* 176 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -35969,13 +35851,13 @@ module.exports = INPUT_CONST; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(123); -var DefaultPlugins = __webpack_require__(174); -var Events = __webpack_require__(19); -var GetPhysicsPlugins = __webpack_require__(874); -var GetScenePlugins = __webpack_require__(875); +var CONST = __webpack_require__(120); +var DefaultPlugins = __webpack_require__(171); +var Events = __webpack_require__(21); +var GetPhysicsPlugins = __webpack_require__(873); +var GetScenePlugins = __webpack_require__(874); var NOOP = __webpack_require__(1); -var Settings = __webpack_require__(374); +var Settings = __webpack_require__(372); /** * @classdesc @@ -36733,7 +36615,7 @@ module.exports = Systems; /***/ }), -/* 180 */ +/* 177 */ /***/ (function(module, exports) { /** @@ -36770,7 +36652,7 @@ module.exports = UppercaseFirst; /***/ }), -/* 181 */ +/* 178 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -36780,8 +36662,8 @@ module.exports = UppercaseFirst; */ var Class = __webpack_require__(0); -var Frame = __webpack_require__(94); -var TextureSource = __webpack_require__(377); +var Frame = __webpack_require__(93); +var TextureSource = __webpack_require__(375); var TEXTURE_MISSING_ERROR = 'Texture.frame missing: '; @@ -37290,7 +37172,7 @@ module.exports = Texture; /***/ }), -/* 182 */ +/* 179 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -37305,45 +37187,45 @@ module.exports = Texture; module.exports = { - Matrix: __webpack_require__(910), + Matrix: __webpack_require__(909), - Add: __webpack_require__(917), - AddAt: __webpack_require__(918), - BringToTop: __webpack_require__(919), - CountAllMatching: __webpack_require__(920), - Each: __webpack_require__(921), - EachInRange: __webpack_require__(922), - FindClosestInSorted: __webpack_require__(269), - GetAll: __webpack_require__(923), - GetFirst: __webpack_require__(924), - GetRandom: __webpack_require__(184), - MoveDown: __webpack_require__(925), - MoveTo: __webpack_require__(926), - MoveUp: __webpack_require__(927), - NumberArray: __webpack_require__(928), - NumberArrayStep: __webpack_require__(929), - QuickSelect: __webpack_require__(388), - Range: __webpack_require__(389), - Remove: __webpack_require__(121), - RemoveAt: __webpack_require__(930), - RemoveBetween: __webpack_require__(931), - RemoveRandomElement: __webpack_require__(932), - Replace: __webpack_require__(933), - RotateLeft: __webpack_require__(285), - RotateRight: __webpack_require__(286), - SafeRange: __webpack_require__(68), - SendToBack: __webpack_require__(934), - SetAll: __webpack_require__(935), - Shuffle: __webpack_require__(114), - SpliceOne: __webpack_require__(80), - StableSort: __webpack_require__(128), - Swap: __webpack_require__(936) + Add: __webpack_require__(916), + AddAt: __webpack_require__(917), + BringToTop: __webpack_require__(918), + CountAllMatching: __webpack_require__(919), + Each: __webpack_require__(920), + EachInRange: __webpack_require__(921), + FindClosestInSorted: __webpack_require__(267), + GetAll: __webpack_require__(922), + GetFirst: __webpack_require__(923), + GetRandom: __webpack_require__(181), + MoveDown: __webpack_require__(924), + MoveTo: __webpack_require__(925), + MoveUp: __webpack_require__(926), + NumberArray: __webpack_require__(927), + NumberArrayStep: __webpack_require__(928), + QuickSelect: __webpack_require__(386), + Range: __webpack_require__(387), + Remove: __webpack_require__(118), + RemoveAt: __webpack_require__(929), + RemoveBetween: __webpack_require__(930), + RemoveRandomElement: __webpack_require__(931), + Replace: __webpack_require__(932), + RotateLeft: __webpack_require__(283), + RotateRight: __webpack_require__(284), + SafeRange: __webpack_require__(66), + SendToBack: __webpack_require__(933), + SetAll: __webpack_require__(934), + Shuffle: __webpack_require__(111), + SpliceOne: __webpack_require__(79), + StableSort: __webpack_require__(126), + Swap: __webpack_require__(935) }; /***/ }), -/* 183 */ +/* 180 */ /***/ (function(module, exports) { /** @@ -37404,7 +37286,7 @@ module.exports = CheckMatrix; /***/ }), -/* 184 */ +/* 181 */ /***/ (function(module, exports) { /** @@ -37439,7 +37321,7 @@ module.exports = GetRandom; /***/ }), -/* 185 */ +/* 182 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -37449,8 +37331,8 @@ module.exports = GetRandom; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(938); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(937); /** * @classdesc @@ -37730,7 +37612,7 @@ module.exports = ProcessQueue; /***/ }), -/* 186 */ +/* 183 */ /***/ (function(module, exports) { /** @@ -37869,7 +37751,7 @@ module.exports = ParseXMLBitmapFont; /***/ }), -/* 187 */ +/* 184 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -37878,13 +37760,13 @@ module.exports = ParseXMLBitmapFont; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BlitterRender = __webpack_require__(946); -var Bob = __webpack_require__(949); +var BlitterRender = __webpack_require__(945); +var Bob = __webpack_require__(948); var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var Frame = __webpack_require__(94); +var Frame = __webpack_require__(93); var GameObject = __webpack_require__(13); -var List = __webpack_require__(126); +var List = __webpack_require__(124); /** * @callback CreateCallback @@ -38168,7 +38050,7 @@ module.exports = Blitter; /***/ }), -/* 188 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -38178,15 +38060,15 @@ module.exports = Blitter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayUtils = __webpack_require__(182); +var ArrayUtils = __webpack_require__(179); var BlendModes = __webpack_require__(52); var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var Events = __webpack_require__(90); +var Events = __webpack_require__(89); var GameObject = __webpack_require__(13); var Rectangle = __webpack_require__(12); -var Render = __webpack_require__(950); -var Union = __webpack_require__(391); +var Render = __webpack_require__(949); +var Union = __webpack_require__(389); var Vector2 = __webpack_require__(3); /** @@ -39493,7 +39375,7 @@ module.exports = Container; /***/ }), -/* 189 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -39502,9 +39384,9 @@ module.exports = Container; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(129); +var BitmapText = __webpack_require__(127); var Class = __webpack_require__(0); -var Render = __webpack_require__(955); +var Render = __webpack_require__(954); /** * @classdesc @@ -39726,7 +39608,7 @@ module.exports = DynamicBitmapText; /***/ }), -/* 190 */ +/* 187 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -39735,26 +39617,26 @@ module.exports = DynamicBitmapText; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCamera = __webpack_require__(91); +var BaseCamera = __webpack_require__(90); var Class = __webpack_require__(0); -var Commands = __webpack_require__(191); -var ComponentsAlpha = __webpack_require__(268); -var ComponentsBlendMode = __webpack_require__(271); -var ComponentsDepth = __webpack_require__(272); -var ComponentsMask = __webpack_require__(276); -var ComponentsPipeline = __webpack_require__(154); -var ComponentsTransform = __webpack_require__(281); -var ComponentsVisible = __webpack_require__(282); -var ComponentsScrollFactor = __webpack_require__(279); +var Commands = __webpack_require__(188); +var ComponentsAlpha = __webpack_require__(266); +var ComponentsBlendMode = __webpack_require__(269); +var ComponentsDepth = __webpack_require__(270); +var ComponentsMask = __webpack_require__(274); +var ComponentsPipeline = __webpack_require__(151); +var ComponentsTransform = __webpack_require__(279); +var ComponentsVisible = __webpack_require__(280); +var ComponentsScrollFactor = __webpack_require__(277); var TransformMatrix = __webpack_require__(30); -var Ellipse = __webpack_require__(95); +var Ellipse = __webpack_require__(94); var GameObject = __webpack_require__(13); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); var MATH_CONST = __webpack_require__(15); -var Render = __webpack_require__(961); +var Render = __webpack_require__(960); /** * @classdesc @@ -41276,7 +41158,7 @@ module.exports = Graphics; /***/ }), -/* 191 */ +/* 188 */ /***/ (function(module, exports) { /** @@ -41313,7 +41195,7 @@ module.exports = { /***/ }), -/* 192 */ +/* 189 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -41355,7 +41237,7 @@ module.exports = CircumferencePoint; /***/ }), -/* 193 */ +/* 190 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -41367,10 +41249,10 @@ module.exports = CircumferencePoint; var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameObject = __webpack_require__(13); -var GravityWell = __webpack_require__(399); -var List = __webpack_require__(126); -var ParticleEmitter = __webpack_require__(401); -var Render = __webpack_require__(971); +var GravityWell = __webpack_require__(397); +var List = __webpack_require__(124); +var ParticleEmitter = __webpack_require__(399); +var Render = __webpack_require__(970); /** * @classdesc @@ -41844,7 +41726,7 @@ module.exports = ParticleEmitterManager; /***/ }), -/* 194 */ +/* 191 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -41854,16 +41736,16 @@ module.exports = ParticleEmitterManager; */ var BlendModes = __webpack_require__(52); -var Camera = __webpack_require__(91); +var Camera = __webpack_require__(90); var CanvasPool = __webpack_require__(26); var Class = __webpack_require__(0); var Components = __webpack_require__(11); var CONST = __webpack_require__(29); -var Frame = __webpack_require__(94); +var Frame = __webpack_require__(93); var GameObject = __webpack_require__(13); -var Render = __webpack_require__(975); -var Utils = __webpack_require__(10); -var UUID = __webpack_require__(195); +var Render = __webpack_require__(974); +var Utils = __webpack_require__(9); +var UUID = __webpack_require__(192); /** * @classdesc @@ -43083,7 +42965,7 @@ module.exports = RenderTexture; /***/ }), -/* 195 */ +/* 192 */ /***/ (function(module, exports) { /** @@ -43118,7 +43000,7 @@ module.exports = UUID; /***/ }), -/* 196 */ +/* 193 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -43130,7 +43012,7 @@ module.exports = UUID; var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameObject = __webpack_require__(13); -var RopeRender = __webpack_require__(981); +var RopeRender = __webpack_require__(980); var Vector2 = __webpack_require__(3); /** @@ -44224,7 +44106,7 @@ module.exports = Rope; /***/ }), -/* 197 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -44233,17 +44115,17 @@ module.exports = Rope; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AddToDOM = __webpack_require__(120); +var AddToDOM = __webpack_require__(117); var CanvasPool = __webpack_require__(26); var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameEvents = __webpack_require__(18); var GameObject = __webpack_require__(13); -var GetTextSize = __webpack_require__(984); +var GetTextSize = __webpack_require__(983); var GetValue = __webpack_require__(6); -var RemoveFromDOM = __webpack_require__(177); -var TextRender = __webpack_require__(985); -var TextStyle = __webpack_require__(988); +var RemoveFromDOM = __webpack_require__(174); +var TextRender = __webpack_require__(984); +var TextStyle = __webpack_require__(987); /** * @classdesc @@ -45633,7 +45515,7 @@ module.exports = Text; /***/ }), -/* 198 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -45647,9 +45529,9 @@ var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameEvents = __webpack_require__(18); var GameObject = __webpack_require__(13); -var GetPowerOfTwo = __webpack_require__(327); -var Smoothing = __webpack_require__(165); -var TileSpriteRender = __webpack_require__(990); +var GetPowerOfTwo = __webpack_require__(325); +var Smoothing = __webpack_require__(162); +var TileSpriteRender = __webpack_require__(989); var Vector2 = __webpack_require__(3); // bitmask flag for GameObject.renderMask @@ -46285,7 +46167,7 @@ module.exports = TileSprite; /***/ }), -/* 199 */ +/* 196 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -46297,12 +46179,12 @@ module.exports = TileSprite; var Class = __webpack_require__(0); var Clamp = __webpack_require__(22); var Components = __webpack_require__(11); -var Events = __webpack_require__(90); +var Events = __webpack_require__(89); var GameEvents = __webpack_require__(18); var GameObject = __webpack_require__(13); var SoundEvents = __webpack_require__(59); -var UUID = __webpack_require__(195); -var VideoRender = __webpack_require__(993); +var UUID = __webpack_require__(192); +var VideoRender = __webpack_require__(992); var MATH_CONST = __webpack_require__(15); /** @@ -48054,7 +47936,7 @@ module.exports = Video; /***/ }), -/* 200 */ +/* 197 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -48064,8 +47946,8 @@ module.exports = Video; */ var Class = __webpack_require__(0); -var Contains = __webpack_require__(201); -var GetPoints = __webpack_require__(416); +var Contains = __webpack_require__(198); +var GetPoints = __webpack_require__(414); var GEOM_CONST = __webpack_require__(46); /** @@ -48288,7 +48170,7 @@ module.exports = Polygon; /***/ }), -/* 201 */ +/* 198 */ /***/ (function(module, exports) { /** @@ -48337,7 +48219,7 @@ module.exports = Contains; /***/ }), -/* 202 */ +/* 199 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -48347,7 +48229,7 @@ module.exports = Contains; */ var Class = __webpack_require__(0); -var Mesh = __webpack_require__(130); +var Mesh = __webpack_require__(129); /** * @classdesc @@ -48998,7 +48880,7 @@ module.exports = Quad; /***/ }), -/* 203 */ +/* 200 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -49012,8 +48894,8 @@ var Components = __webpack_require__(11); var GameObject = __webpack_require__(13); var GetFastValue = __webpack_require__(2); var Extend = __webpack_require__(17); -var SetValue = __webpack_require__(424); -var ShaderRender = __webpack_require__(1076); +var SetValue = __webpack_require__(422); +var ShaderRender = __webpack_require__(1075); var TransformMatrix = __webpack_require__(30); /** @@ -50221,7 +50103,7 @@ module.exports = Shader; /***/ }), -/* 204 */ +/* 201 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50252,7 +50134,7 @@ module.exports = CircleToCircle; /***/ }), -/* 205 */ +/* 202 */ /***/ (function(module, exports) { /** @@ -50306,7 +50188,7 @@ module.exports = CircleToRectangle; /***/ }), -/* 206 */ +/* 203 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50317,7 +50199,7 @@ module.exports = CircleToRectangle; */ var Point = __webpack_require__(4); -var LineToCircle = __webpack_require__(207); +var LineToCircle = __webpack_require__(204); /** * Checks for intersection between the line segment and circle, @@ -50398,7 +50280,7 @@ module.exports = GetLineToCircle; /***/ }), -/* 207 */ +/* 204 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50482,7 +50364,7 @@ module.exports = LineToCircle; /***/ }), -/* 208 */ +/* 205 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50493,8 +50375,8 @@ module.exports = LineToCircle; */ var Point = __webpack_require__(4); -var LineToLine = __webpack_require__(84); -var LineToRectangle = __webpack_require__(429); +var LineToLine = __webpack_require__(83); +var LineToRectangle = __webpack_require__(427); /** * Checks for intersection between the Line and a Rectangle shape, @@ -50542,7 +50424,7 @@ module.exports = GetLineToRectangle; /***/ }), -/* 209 */ +/* 206 */ /***/ (function(module, exports) { /** @@ -50629,7 +50511,7 @@ module.exports = ContainsArray; /***/ }), -/* 210 */ +/* 207 */ /***/ (function(module, exports) { /** @@ -50677,7 +50559,7 @@ module.exports = RotateAroundXY; /***/ }), -/* 211 */ +/* 208 */ /***/ (function(module, exports) { /** @@ -50705,7 +50587,7 @@ module.exports = GetAspectRatio; /***/ }), -/* 212 */ +/* 209 */ /***/ (function(module, exports) { /** @@ -50759,7 +50641,7 @@ module.exports = RotateAroundXY; /***/ }), -/* 213 */ +/* 210 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50774,18 +50656,18 @@ module.exports = RotateAroundXY; module.exports = { - BUTTON_DOWN: __webpack_require__(1198), - BUTTON_UP: __webpack_require__(1199), - CONNECTED: __webpack_require__(1200), - DISCONNECTED: __webpack_require__(1201), - GAMEPAD_BUTTON_DOWN: __webpack_require__(1202), - GAMEPAD_BUTTON_UP: __webpack_require__(1203) + BUTTON_DOWN: __webpack_require__(1197), + BUTTON_UP: __webpack_require__(1198), + CONNECTED: __webpack_require__(1199), + DISCONNECTED: __webpack_require__(1200), + GAMEPAD_BUTTON_DOWN: __webpack_require__(1201), + GAMEPAD_BUTTON_UP: __webpack_require__(1202) }; /***/ }), -/* 214 */ +/* 211 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50795,7 +50677,7 @@ module.exports = { */ var Extend = __webpack_require__(17); -var XHRSettings = __webpack_require__(135); +var XHRSettings = __webpack_require__(134); /** * Takes two XHRSettings Objects and creates a new XHRSettings object from them. @@ -50833,7 +50715,7 @@ module.exports = MergeXHRSettings; /***/ }), -/* 215 */ +/* 212 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -50843,12 +50725,12 @@ module.exports = MergeXHRSettings; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); -var ParseXML = __webpack_require__(363); +var ParseXML = __webpack_require__(361); /** * @classdesc @@ -51018,7 +50900,7 @@ module.exports = XMLFile; /***/ }), -/* 216 */ +/* 213 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -51033,24 +50915,24 @@ module.exports = XMLFile; module.exports = { - Acceleration: __webpack_require__(1258), - Angular: __webpack_require__(1259), - Bounce: __webpack_require__(1260), - Debug: __webpack_require__(1261), - Drag: __webpack_require__(1262), - Enable: __webpack_require__(1263), - Friction: __webpack_require__(1264), - Gravity: __webpack_require__(1265), - Immovable: __webpack_require__(1266), - Mass: __webpack_require__(1267), - Size: __webpack_require__(1268), - Velocity: __webpack_require__(1269) + Acceleration: __webpack_require__(1257), + Angular: __webpack_require__(1258), + Bounce: __webpack_require__(1259), + Debug: __webpack_require__(1260), + Drag: __webpack_require__(1261), + Enable: __webpack_require__(1262), + Friction: __webpack_require__(1263), + Gravity: __webpack_require__(1264), + Immovable: __webpack_require__(1265), + Mass: __webpack_require__(1266), + Size: __webpack_require__(1267), + Velocity: __webpack_require__(1268) }; /***/ }), -/* 217 */ +/* 214 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -51065,20 +50947,20 @@ module.exports = { module.exports = { - COLLIDE: __webpack_require__(1271), - OVERLAP: __webpack_require__(1272), - PAUSE: __webpack_require__(1273), - RESUME: __webpack_require__(1274), - TILE_COLLIDE: __webpack_require__(1275), - TILE_OVERLAP: __webpack_require__(1276), - WORLD_BOUNDS: __webpack_require__(1277), - WORLD_STEP: __webpack_require__(1278) + COLLIDE: __webpack_require__(1270), + OVERLAP: __webpack_require__(1271), + PAUSE: __webpack_require__(1272), + RESUME: __webpack_require__(1273), + TILE_COLLIDE: __webpack_require__(1274), + TILE_OVERLAP: __webpack_require__(1275), + WORLD_BOUNDS: __webpack_require__(1276), + WORLD_STEP: __webpack_require__(1277) }; /***/ }), -/* 218 */ +/* 215 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -51095,11 +50977,11 @@ var Constraint = {}; module.exports = Constraint; -var Vertices = __webpack_require__(86); -var Vector = __webpack_require__(101); -var Sleeping = __webpack_require__(238); -var Bounds = __webpack_require__(102); -var Axes = __webpack_require__(513); +var Vertices = __webpack_require__(85); +var Vector = __webpack_require__(98); +var Sleeping = __webpack_require__(236); +var Bounds = __webpack_require__(99); +var Axes = __webpack_require__(512); var Common = __webpack_require__(37); (function() { @@ -51567,7 +51449,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 219 */ +/* 216 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -51576,7 +51458,7 @@ var Common = __webpack_require__(37); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTileAt = __webpack_require__(138); +var GetTileAt = __webpack_require__(137); /** * Calculates interesting faces at the given tile coordinates of the specified layer. Interesting @@ -51643,7 +51525,7 @@ module.exports = CalculateFacesAt; /***/ }), -/* 220 */ +/* 217 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -51652,10 +51534,87 @@ module.exports = CalculateFacesAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tile = __webpack_require__(75); -var IsInLayerBounds = __webpack_require__(103); -var CalculateFacesAt = __webpack_require__(219); -var SetTileCollision = __webpack_require__(74); +var TileToWorldX = __webpack_require__(470); +var TileToWorldY = __webpack_require__(471); +var Vector2 = __webpack_require__(3); + +/** + * Converts from tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the + * layer's position, scale and scroll. This will return a new Vector2 object or update the given + * `point` object. + * + * @function Phaser.Tilemaps.Components.TileToWorldXY + * @private + * @since 3.0.0 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {integer} tileY - The y coordinate, in tiles, not pixels. + * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {Phaser.Math.Vector2} The XY location in world coordinates. + */ +var TileToWorldXY = function (tileX, tileY, point, camera, layer) +{ + var orientation = layer.orientation; + var tileWidth = layer.baseTileWidth; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (point === undefined) { point = new Vector2(0, 0); } + + + + + + if (orientation === 'orthogonal') + { + point.x = TileToWorldX(tileX, camera, layer, orientation); + point.y = TileToWorldY(tileY, camera, layer, orientation); + } + else if (orientation === 'isometric') + { + + var layerWorldX = 0; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + tileWidth *= tilemapLayer.scaleX; + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + + + point.x = layerWorldX + (tileX - tileY) * (tileWidth / 2); + point.y = layerWorldY + (tileX + tileY) * (tileHeight / 2); + + } + + return point; +}; + +module.exports = TileToWorldXY; + + +/***/ }), +/* 218 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var Tile = __webpack_require__(73); +var IsInLayerBounds = __webpack_require__(100); +var CalculateFacesAt = __webpack_require__(216); +var SetTileCollision = __webpack_require__(71); /** * Puts a tile at the given tile coordinates in the specified layer. You can pass in either an index @@ -51705,6 +51664,7 @@ var PutTileAt = function (tile, tileX, tileY, recalculateFaces, layer) layer.data[tileY][tileX].index = index; } } + // Updating colliding flag on the new tile var newTile = layer.data[tileY][tileX]; var collides = layer.collideIndexes.indexOf(newTile.index) !== -1; @@ -51724,7 +51684,7 @@ module.exports = PutTileAt; /***/ }), -/* 221 */ +/* 219 */ /***/ (function(module, exports) { /** @@ -51763,7 +51723,7 @@ module.exports = SetLayerCollisionIndex; /***/ }), -/* 222 */ +/* 220 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -51772,10 +51732,10 @@ module.exports = SetLayerCollisionIndex; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Formats = __webpack_require__(32); -var LayerData = __webpack_require__(104); -var MapData = __webpack_require__(105); -var Tile = __webpack_require__(75); +var Formats = __webpack_require__(33); +var LayerData = __webpack_require__(101); +var MapData = __webpack_require__(102); +var Tile = __webpack_require__(73); /** * Parses a 2D array of tile indexes into a new MapData object with a single layer. @@ -51802,7 +51762,6 @@ var Parse2DArray = function (name, data, tileWidth, tileHeight, insertNull) tileWidth: tileWidth, tileHeight: tileHeight }); - console.log("parsing 2D array") var mapData = new MapData({ name: name, tileWidth: tileWidth, @@ -51855,7 +51814,7 @@ module.exports = Parse2DArray; /***/ }), -/* 223 */ +/* 221 */ /***/ (function(module, exports) { /** @@ -51945,7 +51904,7 @@ module.exports = ParseGID; /***/ }), -/* 224 */ +/* 222 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52006,7 +51965,7 @@ module.exports = CreateGroupLayer; /***/ }), -/* 225 */ +/* 223 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52015,8 +51974,8 @@ module.exports = CreateGroupLayer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Pick = __webpack_require__(486); -var ParseGID = __webpack_require__(223); +var Pick = __webpack_require__(485); +var ParseGID = __webpack_require__(221); var copyPoints = function (p) { return { x: p.x, y: p.y }; }; @@ -52088,7 +52047,7 @@ module.exports = ParseObject; /***/ }), -/* 226 */ +/* 224 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52097,10 +52056,10 @@ module.exports = ParseObject; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Formats = __webpack_require__(32); -var MapData = __webpack_require__(105); -var Parse = __webpack_require__(478); -var Tilemap = __webpack_require__(494); +var Formats = __webpack_require__(33); +var MapData = __webpack_require__(102); +var Parse = __webpack_require__(477); +var Tilemap = __webpack_require__(493); /** * Create a Tilemap from the given key or data. If neither is given, make a blank Tilemap. When @@ -52159,7 +52118,7 @@ var ParseToTilemap = function (scene, key, tileWidth, tileHeight, width, height, if (mapData === null) { - console.log("null mapdata") + console.log('null mapdata'); mapData = new MapData({ tileWidth: tileWidth, tileHeight: tileHeight, @@ -52175,7 +52134,7 @@ module.exports = ParseToTilemap; /***/ }), -/* 227 */ +/* 225 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52224,7 +52183,7 @@ module.exports = GetTargets; /***/ }), -/* 228 */ +/* 226 */ /***/ (function(module, exports) { /** @@ -52492,7 +52451,7 @@ module.exports = GetValueOp; /***/ }), -/* 229 */ +/* 227 */ /***/ (function(module, exports) { /** @@ -52536,7 +52495,7 @@ module.exports = TWEEN_DEFAULTS; /***/ }), -/* 230 */ +/* 228 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -52546,11 +52505,11 @@ module.exports = TWEEN_DEFAULTS; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(231); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(229); var GameObjectCreator = __webpack_require__(16); var GameObjectFactory = __webpack_require__(5); -var TWEEN_CONST = __webpack_require__(89); +var TWEEN_CONST = __webpack_require__(88); var MATH_CONST = __webpack_require__(15); /** @@ -54180,7 +54139,7 @@ module.exports = Tween; /***/ }), -/* 231 */ +/* 229 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54195,25 +54154,25 @@ module.exports = Tween; module.exports = { - TIMELINE_COMPLETE: __webpack_require__(1354), - TIMELINE_LOOP: __webpack_require__(1355), - TIMELINE_PAUSE: __webpack_require__(1356), - TIMELINE_RESUME: __webpack_require__(1357), - TIMELINE_START: __webpack_require__(1358), - TIMELINE_UPDATE: __webpack_require__(1359), - TWEEN_ACTIVE: __webpack_require__(1360), - TWEEN_COMPLETE: __webpack_require__(1361), - TWEEN_LOOP: __webpack_require__(1362), - TWEEN_REPEAT: __webpack_require__(1363), - TWEEN_START: __webpack_require__(1364), - TWEEN_UPDATE: __webpack_require__(1365), - TWEEN_YOYO: __webpack_require__(1366) + TIMELINE_COMPLETE: __webpack_require__(1350), + TIMELINE_LOOP: __webpack_require__(1351), + TIMELINE_PAUSE: __webpack_require__(1352), + TIMELINE_RESUME: __webpack_require__(1353), + TIMELINE_START: __webpack_require__(1354), + TIMELINE_UPDATE: __webpack_require__(1355), + TWEEN_ACTIVE: __webpack_require__(1356), + TWEEN_COMPLETE: __webpack_require__(1357), + TWEEN_LOOP: __webpack_require__(1358), + TWEEN_REPEAT: __webpack_require__(1359), + TWEEN_START: __webpack_require__(1360), + TWEEN_UPDATE: __webpack_require__(1361), + TWEEN_YOYO: __webpack_require__(1362) }; /***/ }), -/* 232 */ +/* 230 */ /***/ (function(module, exports) { /** @@ -54340,7 +54299,7 @@ module.exports = TweenData; /***/ }), -/* 233 */ +/* 231 */ /***/ (function(module, exports) { /** @@ -54394,7 +54353,7 @@ module.exports = ScaleModes; /***/ }), -/* 234 */ +/* 232 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54426,7 +54385,7 @@ module.exports = Wrap; /***/ }), -/* 235 */ +/* 233 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54458,7 +54417,7 @@ module.exports = WrapDegrees; /***/ }), -/* 236 */ +/* 234 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -54469,14 +54428,14 @@ module.exports = WrapDegrees; */ var Class = __webpack_require__(0); -var Earcut = __webpack_require__(66); +var Earcut = __webpack_require__(64); var GetFastValue = __webpack_require__(2); -var ModelViewProjection = __webpack_require__(237); -var ShaderSourceFS = __webpack_require__(339); -var ShaderSourceVS = __webpack_require__(340); +var ModelViewProjection = __webpack_require__(235); +var ShaderSourceFS = __webpack_require__(337); +var ShaderSourceVS = __webpack_require__(338); var TransformMatrix = __webpack_require__(30); -var Utils = __webpack_require__(10); -var WebGLPipeline = __webpack_require__(145); +var Utils = __webpack_require__(9); +var WebGLPipeline = __webpack_require__(142); /** * @classdesc @@ -55966,7 +55925,7 @@ module.exports = TextureTintPipeline; /***/ }), -/* 237 */ +/* 235 */ /***/ (function(module, exports) { /** @@ -56716,7 +56675,7 @@ module.exports = ModelViewProjection; /***/ }), -/* 238 */ +/* 236 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -56729,7 +56688,7 @@ var Sleeping = {}; module.exports = Sleeping; -var Events = __webpack_require__(239); +var Events = __webpack_require__(237); (function() { @@ -56851,7 +56810,7 @@ var Events = __webpack_require__(239); /***/ }), -/* 239 */ +/* 237 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -56969,7 +56928,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 240 */ +/* 238 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -56984,65 +56943,65 @@ var Common = __webpack_require__(37); module.exports = { - AlignTo: __webpack_require__(527), - Angle: __webpack_require__(528), - Call: __webpack_require__(529), - GetFirst: __webpack_require__(530), - GetLast: __webpack_require__(531), - GridAlign: __webpack_require__(532), - IncAlpha: __webpack_require__(593), - IncX: __webpack_require__(594), - IncXY: __webpack_require__(595), - IncY: __webpack_require__(596), - PlaceOnCircle: __webpack_require__(597), - PlaceOnEllipse: __webpack_require__(598), - PlaceOnLine: __webpack_require__(599), - PlaceOnRectangle: __webpack_require__(600), - PlaceOnTriangle: __webpack_require__(601), - PlayAnimation: __webpack_require__(602), + AlignTo: __webpack_require__(526), + Angle: __webpack_require__(527), + Call: __webpack_require__(528), + GetFirst: __webpack_require__(529), + GetLast: __webpack_require__(530), + GridAlign: __webpack_require__(531), + IncAlpha: __webpack_require__(592), + IncX: __webpack_require__(593), + IncXY: __webpack_require__(594), + IncY: __webpack_require__(595), + PlaceOnCircle: __webpack_require__(596), + PlaceOnEllipse: __webpack_require__(597), + PlaceOnLine: __webpack_require__(598), + PlaceOnRectangle: __webpack_require__(599), + PlaceOnTriangle: __webpack_require__(600), + PlayAnimation: __webpack_require__(601), PropertyValueInc: __webpack_require__(34), PropertyValueSet: __webpack_require__(25), - RandomCircle: __webpack_require__(603), - RandomEllipse: __webpack_require__(604), - RandomLine: __webpack_require__(605), - RandomRectangle: __webpack_require__(606), - RandomTriangle: __webpack_require__(607), - Rotate: __webpack_require__(608), - RotateAround: __webpack_require__(609), - RotateAroundDistance: __webpack_require__(610), - ScaleX: __webpack_require__(611), - ScaleXY: __webpack_require__(612), - ScaleY: __webpack_require__(613), - SetAlpha: __webpack_require__(614), - SetBlendMode: __webpack_require__(615), - SetDepth: __webpack_require__(616), - SetHitArea: __webpack_require__(617), - SetOrigin: __webpack_require__(618), - SetRotation: __webpack_require__(619), - SetScale: __webpack_require__(620), - SetScaleX: __webpack_require__(621), - SetScaleY: __webpack_require__(622), - SetScrollFactor: __webpack_require__(623), - SetScrollFactorX: __webpack_require__(624), - SetScrollFactorY: __webpack_require__(625), - SetTint: __webpack_require__(626), - SetVisible: __webpack_require__(627), - SetX: __webpack_require__(628), - SetXY: __webpack_require__(629), - SetY: __webpack_require__(630), - ShiftPosition: __webpack_require__(631), - Shuffle: __webpack_require__(632), - SmootherStep: __webpack_require__(633), - SmoothStep: __webpack_require__(634), - Spread: __webpack_require__(635), - ToggleVisible: __webpack_require__(636), - WrapInRectangle: __webpack_require__(637) + RandomCircle: __webpack_require__(602), + RandomEllipse: __webpack_require__(603), + RandomLine: __webpack_require__(604), + RandomRectangle: __webpack_require__(605), + RandomTriangle: __webpack_require__(606), + Rotate: __webpack_require__(607), + RotateAround: __webpack_require__(608), + RotateAroundDistance: __webpack_require__(609), + ScaleX: __webpack_require__(610), + ScaleXY: __webpack_require__(611), + ScaleY: __webpack_require__(612), + SetAlpha: __webpack_require__(613), + SetBlendMode: __webpack_require__(614), + SetDepth: __webpack_require__(615), + SetHitArea: __webpack_require__(616), + SetOrigin: __webpack_require__(617), + SetRotation: __webpack_require__(618), + SetScale: __webpack_require__(619), + SetScaleX: __webpack_require__(620), + SetScaleY: __webpack_require__(621), + SetScrollFactor: __webpack_require__(622), + SetScrollFactorX: __webpack_require__(623), + SetScrollFactorY: __webpack_require__(624), + SetTint: __webpack_require__(625), + SetVisible: __webpack_require__(626), + SetX: __webpack_require__(627), + SetXY: __webpack_require__(628), + SetY: __webpack_require__(629), + ShiftPosition: __webpack_require__(630), + Shuffle: __webpack_require__(631), + SmootherStep: __webpack_require__(632), + SmoothStep: __webpack_require__(633), + Spread: __webpack_require__(634), + ToggleVisible: __webpack_require__(635), + WrapInRectangle: __webpack_require__(636) }; /***/ }), -/* 241 */ +/* 239 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57051,22 +57010,22 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ALIGN_CONST = __webpack_require__(106); +var ALIGN_CONST = __webpack_require__(103); var AlignToMap = []; -AlignToMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(242); -AlignToMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(243); -AlignToMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(244); -AlignToMap[ALIGN_CONST.LEFT_BOTTOM] = __webpack_require__(245); -AlignToMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(246); -AlignToMap[ALIGN_CONST.LEFT_TOP] = __webpack_require__(247); -AlignToMap[ALIGN_CONST.RIGHT_BOTTOM] = __webpack_require__(248); -AlignToMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(249); -AlignToMap[ALIGN_CONST.RIGHT_TOP] = __webpack_require__(250); -AlignToMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(251); -AlignToMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(252); -AlignToMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(253); +AlignToMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(240); +AlignToMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(241); +AlignToMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(242); +AlignToMap[ALIGN_CONST.LEFT_BOTTOM] = __webpack_require__(243); +AlignToMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(244); +AlignToMap[ALIGN_CONST.LEFT_TOP] = __webpack_require__(245); +AlignToMap[ALIGN_CONST.RIGHT_BOTTOM] = __webpack_require__(246); +AlignToMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(247); +AlignToMap[ALIGN_CONST.RIGHT_TOP] = __webpack_require__(248); +AlignToMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(249); +AlignToMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(250); +AlignToMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(251); /** * Takes a Game Object and aligns it next to another, at the given position. @@ -57094,7 +57053,7 @@ module.exports = QuickSet; /***/ }), -/* 242 */ +/* 240 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57104,8 +57063,8 @@ module.exports = QuickSet; */ var GetBottom = __webpack_require__(38); -var GetCenterX = __webpack_require__(76); -var SetCenterX = __webpack_require__(77); +var GetCenterX = __webpack_require__(75); +var SetCenterX = __webpack_require__(76); var SetTop = __webpack_require__(39); /** @@ -57138,7 +57097,7 @@ module.exports = BottomCenter; /***/ }), -/* 243 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57182,7 +57141,7 @@ module.exports = BottomLeft; /***/ }), -/* 244 */ +/* 242 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57226,7 +57185,7 @@ module.exports = BottomRight; /***/ }), -/* 245 */ +/* 243 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57270,7 +57229,7 @@ module.exports = LeftBottom; /***/ }), -/* 246 */ +/* 244 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57279,9 +57238,9 @@ module.exports = LeftBottom; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(78); +var GetCenterY = __webpack_require__(77); var GetLeft = __webpack_require__(40); -var SetCenterY = __webpack_require__(79); +var SetCenterY = __webpack_require__(78); var SetRight = __webpack_require__(43); /** @@ -57314,7 +57273,7 @@ module.exports = LeftCenter; /***/ }), -/* 247 */ +/* 245 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57358,7 +57317,7 @@ module.exports = LeftTop; /***/ }), -/* 248 */ +/* 246 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57402,7 +57361,7 @@ module.exports = RightBottom; /***/ }), -/* 249 */ +/* 247 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57411,9 +57370,9 @@ module.exports = RightBottom; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(78); +var GetCenterY = __webpack_require__(77); var GetRight = __webpack_require__(42); -var SetCenterY = __webpack_require__(79); +var SetCenterY = __webpack_require__(78); var SetLeft = __webpack_require__(41); /** @@ -57446,7 +57405,7 @@ module.exports = RightCenter; /***/ }), -/* 250 */ +/* 248 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57490,7 +57449,7 @@ module.exports = RightTop; /***/ }), -/* 251 */ +/* 249 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57499,10 +57458,10 @@ module.exports = RightTop; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterX = __webpack_require__(76); +var GetCenterX = __webpack_require__(75); var GetTop = __webpack_require__(45); var SetBottom = __webpack_require__(44); -var SetCenterX = __webpack_require__(77); +var SetCenterX = __webpack_require__(76); /** * Takes given Game Object and aligns it so that it is positioned next to the top center position of the other. @@ -57534,7 +57493,7 @@ module.exports = TopCenter; /***/ }), -/* 252 */ +/* 250 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57578,7 +57537,7 @@ module.exports = TopLeft; /***/ }), -/* 253 */ +/* 251 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57622,7 +57581,7 @@ module.exports = TopRight; /***/ }), -/* 254 */ +/* 252 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57631,19 +57590,19 @@ module.exports = TopRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ALIGN_CONST = __webpack_require__(106); +var ALIGN_CONST = __webpack_require__(103); var AlignInMap = []; -AlignInMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(255); -AlignInMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(256); -AlignInMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(257); -AlignInMap[ALIGN_CONST.CENTER] = __webpack_require__(258); -AlignInMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(260); -AlignInMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(261); -AlignInMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(262); -AlignInMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(263); -AlignInMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(264); +AlignInMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(253); +AlignInMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(254); +AlignInMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(255); +AlignInMap[ALIGN_CONST.CENTER] = __webpack_require__(256); +AlignInMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(258); +AlignInMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(259); +AlignInMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(260); +AlignInMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(261); +AlignInMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(262); AlignInMap[ALIGN_CONST.LEFT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_LEFT]; AlignInMap[ALIGN_CONST.LEFT_TOP] = AlignInMap[ALIGN_CONST.TOP_LEFT]; AlignInMap[ALIGN_CONST.RIGHT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_RIGHT]; @@ -57675,7 +57634,7 @@ module.exports = QuickSet; /***/ }), -/* 255 */ +/* 253 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57685,9 +57644,9 @@ module.exports = QuickSet; */ var GetBottom = __webpack_require__(38); -var GetCenterX = __webpack_require__(76); +var GetCenterX = __webpack_require__(75); var SetBottom = __webpack_require__(44); -var SetCenterX = __webpack_require__(77); +var SetCenterX = __webpack_require__(76); /** * Takes given Game Object and aligns it so that it is positioned in the bottom center of the other. @@ -57719,7 +57678,7 @@ module.exports = BottomCenter; /***/ }), -/* 256 */ +/* 254 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57763,7 +57722,7 @@ module.exports = BottomLeft; /***/ }), -/* 257 */ +/* 255 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57807,7 +57766,7 @@ module.exports = BottomRight; /***/ }), -/* 258 */ +/* 256 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57816,9 +57775,9 @@ module.exports = BottomRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CenterOn = __webpack_require__(259); -var GetCenterX = __webpack_require__(76); -var GetCenterY = __webpack_require__(78); +var CenterOn = __webpack_require__(257); +var GetCenterX = __webpack_require__(75); +var GetCenterY = __webpack_require__(77); /** * Takes given Game Object and aligns it so that it is positioned in the center of the other. @@ -57849,7 +57808,7 @@ module.exports = Center; /***/ }), -/* 259 */ +/* 257 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57858,8 +57817,8 @@ module.exports = Center; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetCenterX = __webpack_require__(77); -var SetCenterY = __webpack_require__(79); +var SetCenterX = __webpack_require__(76); +var SetCenterY = __webpack_require__(78); /** * Positions the Game Object so that it is centered on the given coordinates. @@ -57886,7 +57845,7 @@ module.exports = CenterOn; /***/ }), -/* 260 */ +/* 258 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57895,9 +57854,9 @@ module.exports = CenterOn; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(78); +var GetCenterY = __webpack_require__(77); var GetLeft = __webpack_require__(40); -var SetCenterY = __webpack_require__(79); +var SetCenterY = __webpack_require__(78); var SetLeft = __webpack_require__(41); /** @@ -57930,7 +57889,7 @@ module.exports = LeftCenter; /***/ }), -/* 261 */ +/* 259 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57939,9 +57898,9 @@ module.exports = LeftCenter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterY = __webpack_require__(78); +var GetCenterY = __webpack_require__(77); var GetRight = __webpack_require__(42); -var SetCenterY = __webpack_require__(79); +var SetCenterY = __webpack_require__(78); var SetRight = __webpack_require__(43); /** @@ -57974,7 +57933,7 @@ module.exports = RightCenter; /***/ }), -/* 262 */ +/* 260 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -57983,9 +57942,9 @@ module.exports = RightCenter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetCenterX = __webpack_require__(76); +var GetCenterX = __webpack_require__(75); var GetTop = __webpack_require__(45); -var SetCenterX = __webpack_require__(77); +var SetCenterX = __webpack_require__(76); var SetTop = __webpack_require__(39); /** @@ -58018,7 +57977,7 @@ module.exports = TopCenter; /***/ }), -/* 263 */ +/* 261 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58062,7 +58021,7 @@ module.exports = TopLeft; /***/ }), -/* 264 */ +/* 262 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58106,7 +58065,7 @@ module.exports = TopRight; /***/ }), -/* 265 */ +/* 263 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58115,8 +58074,8 @@ module.exports = TopRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CircumferencePoint = __webpack_require__(147); -var FromPercent = __webpack_require__(87); +var CircumferencePoint = __webpack_require__(144); +var FromPercent = __webpack_require__(86); var MATH_CONST = __webpack_require__(15); var Point = __webpack_require__(4); @@ -58149,7 +58108,7 @@ module.exports = GetPoint; /***/ }), -/* 266 */ +/* 264 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58158,9 +58117,9 @@ module.exports = GetPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circumference = __webpack_require__(267); -var CircumferencePoint = __webpack_require__(147); -var FromPercent = __webpack_require__(87); +var Circumference = __webpack_require__(265); +var CircumferencePoint = __webpack_require__(144); +var FromPercent = __webpack_require__(86); var MATH_CONST = __webpack_require__(15); /** @@ -58201,7 +58160,7 @@ module.exports = GetPoints; /***/ }), -/* 267 */ +/* 265 */ /***/ (function(module, exports) { /** @@ -58229,7 +58188,7 @@ module.exports = Circumference; /***/ }), -/* 268 */ +/* 266 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58339,7 +58298,7 @@ module.exports = AlphaSingle; /***/ }), -/* 269 */ +/* 267 */ /***/ (function(module, exports) { /** @@ -58423,7 +58382,7 @@ module.exports = FindClosestInSorted; /***/ }), -/* 270 */ +/* 268 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58597,7 +58556,7 @@ module.exports = AnimationFrame; /***/ }), -/* 271 */ +/* 269 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58719,7 +58678,7 @@ module.exports = BlendMode; /***/ }), -/* 272 */ +/* 270 */ /***/ (function(module, exports) { /** @@ -58812,7 +58771,7 @@ module.exports = Depth; /***/ }), -/* 273 */ +/* 271 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58821,8 +58780,8 @@ module.exports = Depth; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetPoint = __webpack_require__(150); -var Perimeter = __webpack_require__(112); +var GetPoint = __webpack_require__(147); +var Perimeter = __webpack_require__(109); // Return an array of points from the perimeter of the rectangle // each spaced out based on the quantity or step required @@ -58866,7 +58825,7 @@ module.exports = GetPoints; /***/ }), -/* 274 */ +/* 272 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58905,7 +58864,7 @@ module.exports = GetPoint; /***/ }), -/* 275 */ +/* 273 */ /***/ (function(module, exports) { /** @@ -58945,7 +58904,7 @@ module.exports = RotateAround; /***/ }), -/* 276 */ +/* 274 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -58954,8 +58913,8 @@ module.exports = RotateAround; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapMask = __webpack_require__(277); -var GeometryMask = __webpack_require__(278); +var BitmapMask = __webpack_require__(275); +var GeometryMask = __webpack_require__(276); /** * Provides methods used for getting and setting the mask of a Game Object. @@ -59092,7 +59051,7 @@ module.exports = Mask; /***/ }), -/* 277 */ +/* 275 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -59385,7 +59344,7 @@ module.exports = BitmapMask; /***/ }), -/* 278 */ +/* 276 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -59700,7 +59659,7 @@ module.exports = GeometryMask; /***/ }), -/* 279 */ +/* 277 */ /***/ (function(module, exports) { /** @@ -59807,7 +59766,7 @@ module.exports = ScrollFactor; /***/ }), -/* 280 */ +/* 278 */ /***/ (function(module, exports) { /** @@ -59868,7 +59827,7 @@ module.exports = ToJSON; /***/ }), -/* 281 */ +/* 279 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -59879,8 +59838,8 @@ module.exports = ToJSON; var MATH_CONST = __webpack_require__(15); var TransformMatrix = __webpack_require__(30); -var WrapAngle = __webpack_require__(234); -var WrapAngleDegrees = __webpack_require__(235); +var WrapAngle = __webpack_require__(232); +var WrapAngleDegrees = __webpack_require__(233); // global bitmask flag for GameObject.renderMask (used by Scale) var _FLAG = 4; // 0100 @@ -60407,7 +60366,7 @@ module.exports = Transform; /***/ }), -/* 282 */ +/* 280 */ /***/ (function(module, exports) { /** @@ -60496,7 +60455,7 @@ module.exports = Visible; /***/ }), -/* 283 */ +/* 281 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -60511,16 +60470,16 @@ module.exports = Visible; module.exports = { - CHANGE_DATA: __webpack_require__(578), - CHANGE_DATA_KEY: __webpack_require__(579), - REMOVE_DATA: __webpack_require__(580), - SET_DATA: __webpack_require__(581) + CHANGE_DATA: __webpack_require__(577), + CHANGE_DATA_KEY: __webpack_require__(578), + REMOVE_DATA: __webpack_require__(579), + SET_DATA: __webpack_require__(580) }; /***/ }), -/* 284 */ +/* 282 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -60529,25 +60488,25 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Perimeter = __webpack_require__(112); +var Perimeter = __webpack_require__(109); var Point = __webpack_require__(4); /** - * Return an array of points from the perimeter of the rectangle - * each spaced out based on the quantity or step required + * Returns an array of points from the perimeter of the Rectangle, where each point is spaced out based + * on either the `step` value, or the `quantity`. * * @function Phaser.Geom.Rectangle.MarchingAnts * @since 3.0.0 * * @generic {Phaser.Geom.Point[]} O - [out,$return] * - * @param {Phaser.Geom.Rectangle} rect - [description] - * @param {number} step - [description] - * @param {integer} quantity - [description] - * @param {(array|Phaser.Geom.Point[])} [out] - [description] + * @param {Phaser.Geom.Rectangle} rect - The Rectangle to get the perimeter points from. + * @param {number} [step] - The distance between each point of the perimeter. Set to `null` if you wish to use the `quantity` parameter instead. + * @param {integer} [quantity] - The total number of points to return. The step is then calculated based on the length of the Rectangle, divided by this value. + * @param {(array|Phaser.Geom.Point[])} [out] - An array in which the perimeter points will be stored. If not given, a new array instance is created. * - * @return {(array|Phaser.Geom.Point[])} [description] + * @return {(array|Phaser.Geom.Point[])} An array containing the perimeter points from the Rectangle. */ var MarchingAnts = function (rect, step, quantity, out) { @@ -60639,7 +60598,7 @@ module.exports = MarchingAnts; /***/ }), -/* 285 */ +/* 283 */ /***/ (function(module, exports) { /** @@ -60679,7 +60638,7 @@ module.exports = RotateLeft; /***/ }), -/* 286 */ +/* 284 */ /***/ (function(module, exports) { /** @@ -60719,7 +60678,7 @@ module.exports = RotateRight; /***/ }), -/* 287 */ +/* 285 */ /***/ (function(module, exports) { /** @@ -60793,7 +60752,7 @@ module.exports = BresenhamPoints; /***/ }), -/* 288 */ +/* 286 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -60802,14 +60761,14 @@ module.exports = BresenhamPoints; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Animation = __webpack_require__(149); +var Animation = __webpack_require__(146); var Class = __webpack_require__(0); -var CustomMap = __webpack_require__(160); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(111); +var CustomMap = __webpack_require__(157); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(108); var GameEvents = __webpack_require__(18); var GetValue = __webpack_require__(6); -var Pad = __webpack_require__(161); +var Pad = __webpack_require__(158); /** * @classdesc @@ -61060,7 +61019,34 @@ var AnimationManager = new Class({ }, /** - * [description] + * Generate an array of {@link Phaser.Types.Animations.AnimationFrame} objects from a texture key and configuration object. + * + * Generates objects with string based frame names, as configured by the given {@link Phaser.Types.Animations.GenerateFrameNames}. + * + * It's a helper method, designed to make it easier for you to extract all of the frame names from texture atlases. + * If you're working with a sprite sheet, see the `generateFrameNumbers` method instead. + * + * Example: + * + * If you have a texture atlases loaded called `gems` and it contains 6 frames called `ruby_0001`, `ruby_0002`, and so on, + * then you can call this method using: `this.anims.generateFrameNames('gems', { prefix: 'ruby_', end: 6, zeroPad: 4 })`. + * + * The `end` value tells it to look for 6 frames, incrementally numbered, all starting with the prefix `ruby_`. The `zeroPad` + * value tells it how many zeroes pad out the numbers. To create an animation using this method, you can do: + * + * ```javascript + * this.anims.create({ + * key: 'ruby', + * repeat: -1, + * frames: this.anims.generateFrameNames('gems', { + * prefix: 'ruby_', + * end: 6, + * zeroPad: 4 + * }) + * }); + * ``` + * + * Please see the animation examples for further details. * * @method Phaser.Animations.AnimationManager#generateFrameNames * @since 3.0.0 @@ -61138,6 +61124,8 @@ var AnimationManager = new Class({ * Generate an array of {@link Phaser.Types.Animations.AnimationFrame} objects from a texture key and configuration object. * * Generates objects with numbered frame names, as configured by the given {@link Phaser.Types.Animations.GenerateFrameNumbers}. + * + * If you're working with a texture atlas, see the `generateFrameNames` method instead. * * @method Phaser.Animations.AnimationManager#generateFrameNumbers * @since 3.0.0 @@ -61303,7 +61291,10 @@ var AnimationManager = new Class({ }, /** - * Remove an animation. + * Removes an Animation from this Animation Manager, based on the given key. + * + * This is a global action. Once an Animation has been removed, no Game Objects + * can carry on using it. * * @method Phaser.Animations.AnimationManager#remove * @fires Phaser.Animations.Events#REMOVE_ANIMATION @@ -61311,7 +61302,7 @@ var AnimationManager = new Class({ * * @param {string} key - The key of the animation to remove. * - * @return {Phaser.Animations.Animation} [description] + * @return {Phaser.Animations.Animation} The Animation instance that was removed from the Animation Manager. */ remove: function (key) { @@ -61389,35 +61380,36 @@ var AnimationManager = new Class({ }, /** - * Get the animation data as javascript object by giving key, or get the data of all animations as array of objects, if key wasn't provided. + * Returns the Animation data as JavaScript object based on the given key. + * Or, if not key is defined, it will return the data of all animations as array of objects. * * @method Phaser.Animations.AnimationManager#toJSON * @since 3.0.0 * - * @param {string} key - [description] + * @param {string} [key] - The animation to get the JSONAnimation data from. If not provided, all animations are returned as an array. * - * @return {Phaser.Types.Animations.JSONAnimations} [description] + * @return {Phaser.Types.Animations.JSONAnimations} The resulting JSONAnimations formatted object. */ toJSON: function (key) { + var output = { + anims: [], + globalTimeScale: this.globalTimeScale + }; + if (key !== undefined && key !== '') { - return this.anims.get(key).toJSON(); + output.anims.push(this.anims.get(key).toJSON()); } else { - var output = { - anims: [], - globalTimeScale: this.globalTimeScale - }; - this.anims.each(function (animationKey, animation) { output.anims.push(animation.toJSON()); }); - - return output; } + + return output; }, /** @@ -61442,7 +61434,7 @@ module.exports = AnimationManager; /***/ }), -/* 289 */ +/* 287 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -61452,9 +61444,9 @@ module.exports = AnimationManager; */ var Class = __webpack_require__(0); -var CustomMap = __webpack_require__(160); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(290); +var CustomMap = __webpack_require__(157); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(288); /** * @classdesc @@ -61628,7 +61620,7 @@ module.exports = BaseCache; /***/ }), -/* 290 */ +/* 288 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -61643,14 +61635,14 @@ module.exports = BaseCache; module.exports = { - ADD: __webpack_require__(640), - REMOVE: __webpack_require__(641) + ADD: __webpack_require__(639), + REMOVE: __webpack_require__(640) }; /***/ }), -/* 291 */ +/* 289 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -61659,7 +61651,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCache = __webpack_require__(289); +var BaseCache = __webpack_require__(287); var Class = __webpack_require__(0); var GameEvents = __webpack_require__(18); @@ -61884,7 +61876,7 @@ module.exports = CacheManager; /***/ }), -/* 292 */ +/* 290 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -61893,14 +61885,14 @@ module.exports = CacheManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCamera = __webpack_require__(91); +var BaseCamera = __webpack_require__(90); var CanvasPool = __webpack_require__(26); -var CenterOn = __webpack_require__(166); +var CenterOn = __webpack_require__(163); var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var Effects = __webpack_require__(300); -var Linear = __webpack_require__(115); +var Effects = __webpack_require__(298); +var Linear = __webpack_require__(112); var Rectangle = __webpack_require__(12); var Vector2 = __webpack_require__(3); @@ -62902,7 +62894,7 @@ module.exports = Camera; /***/ }), -/* 293 */ +/* 291 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -62911,7 +62903,7 @@ module.exports = Camera; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); /** * Converts a hex string into a Phaser Color object. @@ -62955,7 +62947,7 @@ module.exports = HexStringToColor; /***/ }), -/* 294 */ +/* 292 */ /***/ (function(module, exports) { /** @@ -62986,7 +62978,7 @@ module.exports = GetColor32; /***/ }), -/* 295 */ +/* 293 */ /***/ (function(module, exports) { /** @@ -63066,7 +63058,7 @@ module.exports = RGBToHSV; /***/ }), -/* 296 */ +/* 294 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63075,8 +63067,8 @@ module.exports = RGBToHSV; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Color = __webpack_require__(33); -var IntegerToRGB = __webpack_require__(297); +var Color = __webpack_require__(32); +var IntegerToRGB = __webpack_require__(295); /** * Converts the given color value into an instance of a Color object. @@ -63099,7 +63091,7 @@ module.exports = IntegerToColor; /***/ }), -/* 297 */ +/* 295 */ /***/ (function(module, exports) { /** @@ -63147,7 +63139,7 @@ module.exports = IntegerToRGB; /***/ }), -/* 298 */ +/* 296 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63156,7 +63148,7 @@ module.exports = IntegerToRGB; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); /** * Converts an object containing `r`, `g`, `b` and `a` properties into a Color class instance. @@ -63177,7 +63169,7 @@ module.exports = ObjectToColor; /***/ }), -/* 299 */ +/* 297 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63186,7 +63178,7 @@ module.exports = ObjectToColor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); /** * Converts a CSS 'web' string into a Phaser Color object. @@ -63223,7 +63215,7 @@ module.exports = RGBStringToColor; /***/ }), -/* 300 */ +/* 298 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -63238,11 +63230,57 @@ module.exports = RGBStringToColor; module.exports = { - Fade: __webpack_require__(662), - Flash: __webpack_require__(663), - Pan: __webpack_require__(664), - Shake: __webpack_require__(697), - Zoom: __webpack_require__(698) + Fade: __webpack_require__(661), + Flash: __webpack_require__(662), + Pan: __webpack_require__(663), + Shake: __webpack_require__(696), + Zoom: __webpack_require__(697) + +}; + + +/***/ }), +/* 299 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Math.Easing.Back + */ + +module.exports = { + + In: __webpack_require__(664), + Out: __webpack_require__(665), + InOut: __webpack_require__(666) + +}; + + +/***/ }), +/* 300 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Math.Easing.Bounce + */ + +module.exports = { + + In: __webpack_require__(667), + Out: __webpack_require__(668), + InOut: __webpack_require__(669) }; @@ -63258,14 +63296,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Back + * @namespace Phaser.Math.Easing.Circular */ module.exports = { - In: __webpack_require__(665), - Out: __webpack_require__(666), - InOut: __webpack_require__(667) + In: __webpack_require__(670), + Out: __webpack_require__(671), + InOut: __webpack_require__(672) }; @@ -63281,14 +63319,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Bounce + * @namespace Phaser.Math.Easing.Cubic */ module.exports = { - In: __webpack_require__(668), - Out: __webpack_require__(669), - InOut: __webpack_require__(670) + In: __webpack_require__(673), + Out: __webpack_require__(674), + InOut: __webpack_require__(675) }; @@ -63304,14 +63342,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Circular + * @namespace Phaser.Math.Easing.Elastic */ module.exports = { - In: __webpack_require__(671), - Out: __webpack_require__(672), - InOut: __webpack_require__(673) + In: __webpack_require__(676), + Out: __webpack_require__(677), + InOut: __webpack_require__(678) }; @@ -63327,14 +63365,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Cubic + * @namespace Phaser.Math.Easing.Expo */ module.exports = { - In: __webpack_require__(674), - Out: __webpack_require__(675), - InOut: __webpack_require__(676) + In: __webpack_require__(679), + Out: __webpack_require__(680), + InOut: __webpack_require__(681) }; @@ -63350,16 +63388,10 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Elastic + * @namespace Phaser.Math.Easing.Linear */ -module.exports = { - - In: __webpack_require__(677), - Out: __webpack_require__(678), - InOut: __webpack_require__(679) - -}; +module.exports = __webpack_require__(682); /***/ }), @@ -63373,14 +63405,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Expo + * @namespace Phaser.Math.Easing.Quadratic */ module.exports = { - In: __webpack_require__(680), - Out: __webpack_require__(681), - InOut: __webpack_require__(682) + In: __webpack_require__(683), + Out: __webpack_require__(684), + InOut: __webpack_require__(685) }; @@ -63396,10 +63428,16 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Linear + * @namespace Phaser.Math.Easing.Quartic */ -module.exports = __webpack_require__(683); +module.exports = { + + In: __webpack_require__(686), + Out: __webpack_require__(687), + InOut: __webpack_require__(688) + +}; /***/ }), @@ -63413,14 +63451,14 @@ module.exports = __webpack_require__(683); */ /** - * @namespace Phaser.Math.Easing.Quadratic + * @namespace Phaser.Math.Easing.Quintic */ module.exports = { - In: __webpack_require__(684), - Out: __webpack_require__(685), - InOut: __webpack_require__(686) + In: __webpack_require__(689), + Out: __webpack_require__(690), + InOut: __webpack_require__(691) }; @@ -63436,14 +63474,14 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Quartic + * @namespace Phaser.Math.Easing.Sine */ module.exports = { - In: __webpack_require__(687), - Out: __webpack_require__(688), - InOut: __webpack_require__(689) + In: __webpack_require__(692), + Out: __webpack_require__(693), + InOut: __webpack_require__(694) }; @@ -63459,62 +63497,16 @@ module.exports = { */ /** - * @namespace Phaser.Math.Easing.Quintic + * @namespace Phaser.Math.Easing.Stepped */ -module.exports = { - - In: __webpack_require__(690), - Out: __webpack_require__(691), - InOut: __webpack_require__(692) - -}; +module.exports = __webpack_require__(695); /***/ }), /* 311 */ /***/ (function(module, exports, __webpack_require__) { -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Math.Easing.Sine - */ - -module.exports = { - - In: __webpack_require__(693), - Out: __webpack_require__(694), - InOut: __webpack_require__(695) - -}; - - -/***/ }), -/* 312 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Math.Easing.Stepped - */ - -module.exports = __webpack_require__(696); - - -/***/ }), -/* 313 */ -/***/ (function(module, exports, __webpack_require__) { - /** * @author Richard Davey * @copyright 2020 Photon Storm Ltd. @@ -63523,14 +63515,14 @@ module.exports = __webpack_require__(696); var Class = __webpack_require__(0); var CONST = __webpack_require__(29); -var Device = __webpack_require__(314); +var Device = __webpack_require__(312); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); var IsPlainObject = __webpack_require__(7); -var PhaserMath = __webpack_require__(169); +var PhaserMath = __webpack_require__(166); var NOOP = __webpack_require__(1); -var DefaultPlugins = __webpack_require__(174); -var ValueToColor = __webpack_require__(162); +var DefaultPlugins = __webpack_require__(171); +var ValueToColor = __webpack_require__(159); /** * @classdesc @@ -64093,7 +64085,7 @@ module.exports = Config; /***/ }), -/* 314 */ +/* 312 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64127,20 +64119,20 @@ module.exports = Config; module.exports = { - os: __webpack_require__(116), - browser: __webpack_require__(117), - features: __webpack_require__(168), - input: __webpack_require__(727), - audio: __webpack_require__(728), - video: __webpack_require__(729), - fullscreen: __webpack_require__(730), - canvasFeatures: __webpack_require__(315) + os: __webpack_require__(113), + browser: __webpack_require__(114), + features: __webpack_require__(165), + input: __webpack_require__(726), + audio: __webpack_require__(727), + video: __webpack_require__(728), + fullscreen: __webpack_require__(729), + canvasFeatures: __webpack_require__(313) }; /***/ }), -/* 315 */ +/* 313 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64254,7 +64246,7 @@ module.exports = init(); /***/ }), -/* 316 */ +/* 314 */ /***/ (function(module, exports) { /** @@ -64285,7 +64277,7 @@ module.exports = Between; /***/ }), -/* 317 */ +/* 315 */ /***/ (function(module, exports) { /** @@ -64322,7 +64314,7 @@ module.exports = Normalize; /***/ }), -/* 318 */ +/* 316 */ /***/ (function(module, exports) { /** @@ -64354,7 +64346,7 @@ module.exports = DistanceBetweenPoints; /***/ }), -/* 319 */ +/* 317 */ /***/ (function(module, exports) { /** @@ -64388,7 +64380,7 @@ module.exports = DistanceSquared; /***/ }), -/* 320 */ +/* 318 */ /***/ (function(module, exports) { /** @@ -64422,7 +64414,7 @@ module.exports = GreaterThan; /***/ }), -/* 321 */ +/* 319 */ /***/ (function(module, exports) { /** @@ -64456,7 +64448,7 @@ module.exports = LessThan; /***/ }), -/* 322 */ +/* 320 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64465,18 +64457,18 @@ module.exports = LessThan; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Factorial = __webpack_require__(323); +var Factorial = __webpack_require__(321); /** - * [description] + * Calculates the Bernstein basis from the three factorial coefficients. * * @function Phaser.Math.Bernstein * @since 3.0.0 * - * @param {number} n - [description] - * @param {number} i - [description] + * @param {number} n - The first value. + * @param {number} i - The second value. * - * @return {number} [description] + * @return {number} The Bernstein basis of Factorial(n) / Factorial(i) / Factorial(n - i) */ var Bernstein = function (n, i) { @@ -64487,7 +64479,7 @@ module.exports = Bernstein; /***/ }), -/* 323 */ +/* 321 */ /***/ (function(module, exports) { /** @@ -64527,7 +64519,7 @@ module.exports = Factorial; /***/ }), -/* 324 */ +/* 322 */ /***/ (function(module, exports) { /** @@ -64597,7 +64589,7 @@ module.exports = CubicBezierInterpolation; /***/ }), -/* 325 */ +/* 323 */ /***/ (function(module, exports) { /** @@ -64656,7 +64648,7 @@ module.exports = QuadraticBezierInterpolation; /***/ }), -/* 326 */ +/* 324 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64665,7 +64657,7 @@ module.exports = QuadraticBezierInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SmoothStep = __webpack_require__(159); +var SmoothStep = __webpack_require__(156); /** * A Smooth Step interpolation method. @@ -64689,7 +64681,7 @@ module.exports = SmoothStepInterpolation; /***/ }), -/* 327 */ +/* 325 */ /***/ (function(module, exports) { /** @@ -64719,7 +64711,7 @@ module.exports = GetPowerOfTwo; /***/ }), -/* 328 */ +/* 326 */ /***/ (function(module, exports) { /** @@ -64763,7 +64755,7 @@ module.exports = SnapCeil; /***/ }), -/* 329 */ +/* 327 */ /***/ (function(module, exports) { /** @@ -64792,7 +64784,7 @@ module.exports = FloatBetween; /***/ }), -/* 330 */ +/* 328 */ /***/ (function(module, exports) { /** @@ -64827,7 +64819,7 @@ module.exports = Rotate; /***/ }), -/* 331 */ +/* 329 */ /***/ (function(module, exports) { /** @@ -64856,7 +64848,7 @@ module.exports = RoundAwayFromZero; /***/ }), -/* 332 */ +/* 330 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -64911,7 +64903,7 @@ module.exports = TransformXY; /***/ }), -/* 333 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65456,7 +65448,7 @@ module.exports = Vector4; /***/ }), -/* 334 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -65969,12 +65961,12 @@ var Matrix3 = new Class({ }, /** - * [description] + * Set the values of this Matrix3 to be normalized from the given Matrix4. * * @method Phaser.Math.Matrix3#normalFromMat4 * @since 3.0.0 * - * @param {Phaser.Math.Matrix4} m - [description] + * @param {Phaser.Math.Matrix4} m - The Matrix4 to normalize the values from. * * @return {Phaser.Math.Matrix3} This Matrix3. */ @@ -66049,7 +66041,7 @@ module.exports = Matrix3; /***/ }), -/* 335 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -66613,12 +66605,12 @@ var Matrix4 = new Class({ }, /** - * [description] + * Multiply the values of this Matrix4 by those given in the `src` argument. * * @method Phaser.Math.Matrix4#multiplyLocal * @since 3.0.0 * - * @param {Phaser.Math.Matrix4} src - [description] + * @param {Phaser.Math.Matrix4} src - The source Matrix4 that this Matrix4 is multiplied by. * * @return {Phaser.Math.Matrix4} This Matrix4. */ @@ -67410,9 +67402,9 @@ var Matrix4 = new Class({ * @method Phaser.Math.Matrix4#yawPitchRoll * @since 3.0.0 * - * @param {number} yaw - [description] - * @param {number} pitch - [description] - * @param {number} roll - [description] + * @param {number} yaw - The yaw value. + * @param {number} pitch - The pitch value. + * @param {number} roll - The roll value. * * @return {Phaser.Math.Matrix4} This Matrix4. */ @@ -67511,7 +67503,7 @@ module.exports = Matrix4; /***/ }), -/* 336 */ +/* 334 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -67524,8 +67516,8 @@ module.exports = Matrix4; // and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl var Class = __webpack_require__(0); -var Vector3 = __webpack_require__(173); -var Matrix3 = __webpack_require__(334); +var Vector3 = __webpack_require__(170); +var Matrix3 = __webpack_require__(332); var EPSILON = 0.000001; @@ -67833,13 +67825,13 @@ var Quaternion = new Class({ }, /** - * [description] + * Rotates this Quaternion based on the two given vectors. * * @method Phaser.Math.Quaternion#rotationTo * @since 3.0.0 * - * @param {Phaser.Math.Vector3} a - [description] - * @param {Phaser.Math.Vector3} b - [description] + * @param {Phaser.Math.Vector3} a - The transform rotation vector. + * @param {Phaser.Math.Vector3} b - The target rotation vector. * * @return {Phaser.Math.Quaternion} This Quaternion. */ @@ -68283,7 +68275,7 @@ module.exports = Quaternion; /***/ }), -/* 337 */ +/* 335 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -68292,10 +68284,10 @@ module.exports = Quaternion; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasInterpolation = __webpack_require__(338); +var CanvasInterpolation = __webpack_require__(336); var CanvasPool = __webpack_require__(26); var CONST = __webpack_require__(29); -var Features = __webpack_require__(168); +var Features = __webpack_require__(165); /** * Called automatically by Phaser.Game and responsible for creating the renderer it will use. @@ -68385,8 +68377,8 @@ var CreateRenderer = function (game) if (true) { - CanvasRenderer = __webpack_require__(505); - WebGLRenderer = __webpack_require__(508); + CanvasRenderer = __webpack_require__(504); + WebGLRenderer = __webpack_require__(507); // Let the config pick the renderer type, as both are included if (config.renderType === CONST.WEBGL) @@ -68411,7 +68403,7 @@ module.exports = CreateRenderer; /***/ }), -/* 338 */ +/* 336 */ /***/ (function(module, exports) { /** @@ -68474,7 +68466,7 @@ module.exports = CanvasInterpolation; /***/ }), -/* 339 */ +/* 337 */ /***/ (function(module, exports) { module.exports = [ @@ -68518,7 +68510,7 @@ module.exports = [ /***/ }), -/* 340 */ +/* 338 */ /***/ (function(module, exports) { module.exports = [ @@ -68553,7 +68545,7 @@ module.exports = [ /***/ }), -/* 341 */ +/* 339 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -68683,7 +68675,7 @@ module.exports = DebugHeader; /***/ }), -/* 342 */ +/* 340 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -68695,7 +68687,7 @@ module.exports = DebugHeader; var Class = __webpack_require__(0); var GetValue = __webpack_require__(6); var NOOP = __webpack_require__(1); -var RequestAnimationFrame = __webpack_require__(343); +var RequestAnimationFrame = __webpack_require__(341); // http://www.testufo.com/#test=animation-time-graph @@ -69413,7 +69405,7 @@ module.exports = TimeStep; /***/ }), -/* 343 */ +/* 341 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -69627,7 +69619,7 @@ module.exports = RequestAnimationFrame; /***/ }), -/* 344 */ +/* 342 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -69718,7 +69710,7 @@ module.exports = VisibilityHandler; /***/ }), -/* 345 */ +/* 343 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -69727,19 +69719,47 @@ module.exports = VisibilityHandler; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Arne16 = __webpack_require__(346); +var Arne16 = __webpack_require__(344); var CanvasPool = __webpack_require__(26); var GetValue = __webpack_require__(6); /** - * [description] + * Generates a texture based on the given Create configuration object. + * + * The texture is drawn using a fixed-size indexed palette of 16 colors, where the hex value in the + * data cells map to a single color. For example, if the texture config looked like this: + * + * ```javascript + * var star = [ + * '.....828.....', + * '....72227....', + * '....82228....', + * '...7222227...', + * '2222222222222', + * '8222222222228', + * '.72222222227.', + * '..787777787..', + * '..877777778..', + * '.78778887787.', + * '.27887.78872.', + * '.787.....787.' + * ]; + * + * this.textures.generate('star', { data: star, pixelWidth: 4 }); + * ``` + * + * Then it would generate a texture that is 52 x 48 pixels in size, because each cell of the data array + * represents 1 pixel multiplied by the `pixelWidth` value. The cell values, such as `8`, maps to color + * number 8 in the palette. If a cell contains a period character `.` then it is transparent. + * + * The default palette is Arne16, but you can specify your own using the `palette` property. * * @function Phaser.Create.GenerateTexture * @since 3.0.0 * - * @param {Phaser.Types.Create.GenerateTextureConfig} config - [description] + * @param {Phaser.Types.Create.GenerateTextureConfig} config - The Generate Texture Configuration object. * - * @return {HTMLCanvasElement} [description] + * @return {HTMLCanvasElement} An HTMLCanvasElement which contains the generated texture drawn to it. */ var GenerateTexture = function (config) { @@ -69812,7 +69832,7 @@ module.exports = GenerateTexture; /***/ }), -/* 346 */ +/* 344 */ /***/ (function(module, exports) { /** @@ -69850,7 +69870,7 @@ module.exports = { /***/ }), -/* 347 */ +/* 345 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -69862,8 +69882,8 @@ module.exports = { // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var CubicBezier = __webpack_require__(324); -var Curve = __webpack_require__(81); +var CubicBezier = __webpack_require__(322); +var Curve = __webpack_require__(80); var Vector2 = __webpack_require__(3); /** @@ -70077,7 +70097,7 @@ module.exports = CubicBezierCurve; /***/ }), -/* 348 */ +/* 346 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -70089,10 +70109,10 @@ module.exports = CubicBezierCurve; // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var Curve = __webpack_require__(81); +var Curve = __webpack_require__(80); var DegToRad = __webpack_require__(35); var GetValue = __webpack_require__(6); -var RadToDeg = __webpack_require__(172); +var RadToDeg = __webpack_require__(169); var Vector2 = __webpack_require__(3); /** @@ -70701,7 +70721,7 @@ module.exports = EllipseCurve; /***/ }), -/* 349 */ +/* 347 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -70713,8 +70733,8 @@ module.exports = EllipseCurve; // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var Curve = __webpack_require__(81); -var FromPoints = __webpack_require__(175); +var Curve = __webpack_require__(80); +var FromPoints = __webpack_require__(172); var Rectangle = __webpack_require__(12); var Vector2 = __webpack_require__(3); @@ -71006,7 +71026,7 @@ module.exports = LineCurve; /***/ }), -/* 350 */ +/* 348 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71016,8 +71036,8 @@ module.exports = LineCurve; */ var Class = __webpack_require__(0); -var Curve = __webpack_require__(81); -var QuadraticBezierInterpolation = __webpack_require__(325); +var Curve = __webpack_require__(80); +var QuadraticBezierInterpolation = __webpack_require__(323); var Vector2 = __webpack_require__(3); /** @@ -71220,7 +71240,7 @@ module.exports = QuadraticBezier; /***/ }), -/* 351 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71231,9 +71251,9 @@ module.exports = QuadraticBezier; // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) -var CatmullRom = __webpack_require__(170); +var CatmullRom = __webpack_require__(167); var Class = __webpack_require__(0); -var Curve = __webpack_require__(81); +var Curve = __webpack_require__(80); var Vector2 = __webpack_require__(3); /** @@ -71445,7 +71465,7 @@ module.exports = SplineCurve; /***/ }), -/* 352 */ +/* 350 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71569,7 +71589,7 @@ module.exports = BaseShader; /***/ }), -/* 353 */ +/* 351 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71578,32 +71598,32 @@ module.exports = BaseShader; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); -Color.ColorToRGBA = __webpack_require__(805); -Color.ComponentToHex = __webpack_require__(354); -Color.GetColor = __webpack_require__(163); -Color.GetColor32 = __webpack_require__(294); -Color.HexStringToColor = __webpack_require__(293); -Color.HSLToColor = __webpack_require__(806); -Color.HSVColorWheel = __webpack_require__(807); -Color.HSVToRGB = __webpack_require__(164); -Color.HueToComponent = __webpack_require__(355); -Color.IntegerToColor = __webpack_require__(296); -Color.IntegerToRGB = __webpack_require__(297); -Color.Interpolate = __webpack_require__(808); -Color.ObjectToColor = __webpack_require__(298); -Color.RandomRGB = __webpack_require__(809); -Color.RGBStringToColor = __webpack_require__(299); -Color.RGBToHSV = __webpack_require__(295); -Color.RGBToString = __webpack_require__(810); -Color.ValueToColor = __webpack_require__(162); +Color.ColorToRGBA = __webpack_require__(804); +Color.ComponentToHex = __webpack_require__(352); +Color.GetColor = __webpack_require__(160); +Color.GetColor32 = __webpack_require__(292); +Color.HexStringToColor = __webpack_require__(291); +Color.HSLToColor = __webpack_require__(805); +Color.HSVColorWheel = __webpack_require__(806); +Color.HSVToRGB = __webpack_require__(161); +Color.HueToComponent = __webpack_require__(353); +Color.IntegerToColor = __webpack_require__(294); +Color.IntegerToRGB = __webpack_require__(295); +Color.Interpolate = __webpack_require__(807); +Color.ObjectToColor = __webpack_require__(296); +Color.RandomRGB = __webpack_require__(808); +Color.RGBStringToColor = __webpack_require__(297); +Color.RGBToHSV = __webpack_require__(293); +Color.RGBToString = __webpack_require__(809); +Color.ValueToColor = __webpack_require__(159); module.exports = Color; /***/ }), -/* 354 */ +/* 352 */ /***/ (function(module, exports) { /** @@ -71633,7 +71653,7 @@ module.exports = ComponentToHex; /***/ }), -/* 355 */ +/* 353 */ /***/ (function(module, exports) { /** @@ -71689,7 +71709,7 @@ module.exports = HueToComponent; /***/ }), -/* 356 */ +/* 354 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71698,7 +71718,7 @@ module.exports = HueToComponent; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var OS = __webpack_require__(116); +var OS = __webpack_require__(113); /** * @callback ContentLoadedCallback @@ -71752,7 +71772,7 @@ module.exports = DOMContentLoaded; /***/ }), -/* 357 */ +/* 355 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -71761,7 +71781,7 @@ module.exports = DOMContentLoaded; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(176); +var CONST = __webpack_require__(173); /** * Attempts to determine the screen orientation using the Orientation API. @@ -71818,7 +71838,7 @@ module.exports = GetScreenOrientation; /***/ }), -/* 358 */ +/* 356 */ /***/ (function(module, exports) { /** @@ -71904,7 +71924,7 @@ module.exports = { /***/ }), -/* 359 */ +/* 357 */ /***/ (function(module, exports) { /** @@ -71957,7 +71977,7 @@ module.exports = { /***/ }), -/* 360 */ +/* 358 */ /***/ (function(module, exports) { /** @@ -72055,7 +72075,7 @@ module.exports = { /***/ }), -/* 361 */ +/* 359 */ /***/ (function(module, exports) { /** @@ -72129,7 +72149,7 @@ module.exports = { /***/ }), -/* 362 */ +/* 360 */ /***/ (function(module, exports) { /** @@ -72180,7 +72200,7 @@ module.exports = GetTarget; /***/ }), -/* 363 */ +/* 361 */ /***/ (function(module, exports) { /** @@ -72237,7 +72257,7 @@ module.exports = ParseXML; /***/ }), -/* 364 */ +/* 362 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -72247,16 +72267,16 @@ module.exports = ParseXML; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(178); -var EventEmitter = __webpack_require__(9); +var CONST = __webpack_require__(175); +var EventEmitter = __webpack_require__(10); var Events = __webpack_require__(54); var GameEvents = __webpack_require__(18); -var Keyboard = __webpack_require__(365); -var Mouse = __webpack_require__(366); -var Pointer = __webpack_require__(367); -var Touch = __webpack_require__(368); +var Keyboard = __webpack_require__(363); +var Mouse = __webpack_require__(364); +var Pointer = __webpack_require__(365); +var Touch = __webpack_require__(366); var TransformMatrix = __webpack_require__(30); -var TransformXY = __webpack_require__(332); +var TransformXY = __webpack_require__(330); /** * @classdesc @@ -73319,7 +73339,7 @@ module.exports = InputManager; /***/ }), -/* 365 */ +/* 363 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -73328,11 +73348,11 @@ module.exports = InputManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayRemove = __webpack_require__(121); +var ArrayRemove = __webpack_require__(118); var Class = __webpack_require__(0); var GameEvents = __webpack_require__(18); var InputEvents = __webpack_require__(54); -var KeyCodes = __webpack_require__(122); +var KeyCodes = __webpack_require__(119); var NOOP = __webpack_require__(0); /** @@ -73769,7 +73789,7 @@ module.exports = KeyboardManager; /***/ }), -/* 366 */ +/* 364 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -73779,7 +73799,7 @@ module.exports = KeyboardManager; */ var Class = __webpack_require__(0); -var Features = __webpack_require__(168); +var Features = __webpack_require__(165); var InputEvents = __webpack_require__(54); var NOOP = __webpack_require__(0); @@ -74255,7 +74275,7 @@ module.exports = MouseManager; /***/ }), -/* 367 */ +/* 365 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -74264,11 +74284,11 @@ module.exports = MouseManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Angle = __webpack_require__(316); +var Angle = __webpack_require__(314); var Class = __webpack_require__(0); var Distance = __webpack_require__(53); -var FuzzyEqual = __webpack_require__(144); -var SmoothStepInterpolation = __webpack_require__(326); +var FuzzyEqual = __webpack_require__(141); +var SmoothStepInterpolation = __webpack_require__(324); var Vector2 = __webpack_require__(3); /** @@ -75533,7 +75553,7 @@ module.exports = Pointer; /***/ }), -/* 368 */ +/* 366 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -75946,7 +75966,7 @@ module.exports = TouchManager; /***/ }), -/* 369 */ +/* 367 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -75957,13 +75977,13 @@ module.exports = TouchManager; var Class = __webpack_require__(0); var GameEvents = __webpack_require__(18); -var EventEmitter = __webpack_require__(9); +var EventEmitter = __webpack_require__(10); var FileTypesManager = __webpack_require__(8); var GameObjectCreator = __webpack_require__(16); var GameObjectFactory = __webpack_require__(5); var GetFastValue = __webpack_require__(2); var PluginCache = __webpack_require__(23); -var Remove = __webpack_require__(121); +var Remove = __webpack_require__(118); /** * @classdesc @@ -76848,7 +76868,7 @@ module.exports = PluginManager; /***/ }), -/* 370 */ +/* 368 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -76857,18 +76877,18 @@ module.exports = PluginManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(176); +var CONST = __webpack_require__(173); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(92); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(91); var GameEvents = __webpack_require__(18); -var GetInnerHeight = __webpack_require__(863); -var GetTarget = __webpack_require__(362); -var GetScreenOrientation = __webpack_require__(357); +var GetInnerHeight = __webpack_require__(862); +var GetTarget = __webpack_require__(360); +var GetScreenOrientation = __webpack_require__(355); var NOOP = __webpack_require__(1); var Rectangle = __webpack_require__(12); -var Size = __webpack_require__(371); -var SnapFloor = __webpack_require__(93); +var Size = __webpack_require__(369); +var SnapFloor = __webpack_require__(92); var Vector2 = __webpack_require__(3); /** @@ -78565,7 +78585,7 @@ module.exports = ScaleManager; /***/ }), -/* 371 */ +/* 369 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -78576,7 +78596,7 @@ module.exports = ScaleManager; var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); -var SnapFloor = __webpack_require__(93); +var SnapFloor = __webpack_require__(92); var Vector2 = __webpack_require__(3); /** @@ -79343,7 +79363,7 @@ module.exports = Size; /***/ }), -/* 372 */ +/* 370 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -79353,14 +79373,14 @@ module.exports = Size; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(123); -var Events = __webpack_require__(19); +var CONST = __webpack_require__(120); +var Events = __webpack_require__(21); var GameEvents = __webpack_require__(18); var GetValue = __webpack_require__(6); -var LoaderEvents = __webpack_require__(82); +var LoaderEvents = __webpack_require__(81); var NOOP = __webpack_require__(1); -var Scene = __webpack_require__(373); -var Systems = __webpack_require__(179); +var Scene = __webpack_require__(371); +var Systems = __webpack_require__(176); /** * @classdesc @@ -80983,7 +81003,7 @@ module.exports = SceneManager; /***/ }), -/* 373 */ +/* 371 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -80993,7 +81013,7 @@ module.exports = SceneManager; */ var Class = __webpack_require__(0); -var Systems = __webpack_require__(179); +var Systems = __webpack_require__(176); /** * @classdesc @@ -81213,16 +81233,6 @@ var Scene = new Class({ */ this.physics; - /** - * A scene level Impact Physics Plugin. - * This property will only be available if defined in the Scene Injection Map, the plugin is installed and configured. - * - * @name Phaser.Scene#impact - * @type {Phaser.Physics.Impact.ImpactPhysics} - * @since 3.0.0 - */ - this.impact; - /** * A scene level Matter Physics Plugin. * This property will only be available if defined in the Scene Injection Map, the plugin is installed and configured. @@ -81279,7 +81289,7 @@ module.exports = Scene; /***/ }), -/* 374 */ +/* 372 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -81288,10 +81298,10 @@ module.exports = Scene; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(123); +var CONST = __webpack_require__(120); var GetValue = __webpack_require__(6); -var Merge = __webpack_require__(107); -var InjectionMap = __webpack_require__(876); +var Merge = __webpack_require__(121); +var InjectionMap = __webpack_require__(875); /** * @namespace Phaser.Scenes.Settings @@ -81375,7 +81385,7 @@ module.exports = Settings; /***/ }), -/* 375 */ +/* 373 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -81385,17 +81395,17 @@ module.exports = Settings; */ var CanvasPool = __webpack_require__(26); -var CanvasTexture = __webpack_require__(376); +var CanvasTexture = __webpack_require__(374); var Class = __webpack_require__(0); -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); var CONST = __webpack_require__(29); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(119); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(116); var GameEvents = __webpack_require__(18); -var GenerateTexture = __webpack_require__(345); +var GenerateTexture = __webpack_require__(343); var GetValue = __webpack_require__(6); -var Parser = __webpack_require__(378); -var Texture = __webpack_require__(181); +var Parser = __webpack_require__(376); +var Texture = __webpack_require__(178); /** * @callback EachTextureCallback @@ -81679,8 +81689,8 @@ var TextureManager = new Class({ * * @param {string} key - The unique string-based key of the Texture. * @param {(string|integer)} [frame] - The string-based name, or integer based index, of the Frame to get from the Texture. - * @param {string} [type='image/png'] - [description] - * @param {number} [encoderOptions=0.92] - [description] + * @param {string} [type='image/png'] - A DOMString indicating the image format. The default format type is image/png. + * @param {number} [encoderOptions=0.92] - A Number between 0 and 1 indicating the image quality to use for image formats that use lossy compression such as image/jpeg and image/webp. If this argument is anything else, the default value for image quality is used. The default value is 0.92. Other arguments are ignored. * * @return {string} The base64 encoded data, or an empty string if the texture frame could not be found. */ @@ -81823,14 +81833,44 @@ var TextureManager = new Class({ /** * Creates a new Texture using the given config values. + * * Generated textures consist of a Canvas element to which the texture data is drawn. - * See the Phaser.Create function for the more direct way to create textures. + * + * Generates a texture based on the given Create configuration object. + * + * The texture is drawn using a fixed-size indexed palette of 16 colors, where the hex value in the + * data cells map to a single color. For example, if the texture config looked like this: + * + * ```javascript + * var star = [ + * '.....828.....', + * '....72227....', + * '....82228....', + * '...7222227...', + * '2222222222222', + * '8222222222228', + * '.72222222227.', + * '..787777787..', + * '..877777778..', + * '.78778887787.', + * '.27887.78872.', + * '.787.....787.' + * ]; + * + * this.textures.generate('star', { data: star, pixelWidth: 4 }); + * ``` + * + * Then it would generate a texture that is 52 x 48 pixels in size, because each cell of the data array + * represents 1 pixel multiplied by the `pixelWidth` value. The cell values, such as `8`, maps to color + * number 8 in the palette. If a cell contains a period character `.` then it is transparent. + * + * The default palette is Arne16, but you can specify your own using the `palette` property. * * @method Phaser.Textures.TextureManager#generate * @since 3.0.0 * * @param {string} key - The unique string-based key of the Texture. - * @param {object} config - The configuration object needed to generate the texture. + * @param {Phaser.Types.Create.GenerateTextureConfig} config - The configuration object needed to generate the texture. * * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use. */ @@ -82547,7 +82587,7 @@ module.exports = TextureManager; /***/ }), -/* 376 */ +/* 374 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -82558,10 +82598,10 @@ module.exports = TextureManager; var Class = __webpack_require__(0); var Clamp = __webpack_require__(22); -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); var CONST = __webpack_require__(29); -var IsSizePowerOfTwo = __webpack_require__(118); -var Texture = __webpack_require__(181); +var IsSizePowerOfTwo = __webpack_require__(115); +var Texture = __webpack_require__(178); /** * @classdesc @@ -83178,7 +83218,7 @@ module.exports = CanvasTexture; /***/ }), -/* 377 */ +/* 375 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83189,8 +83229,8 @@ module.exports = CanvasTexture; var CanvasPool = __webpack_require__(26); var Class = __webpack_require__(0); -var IsSizePowerOfTwo = __webpack_require__(118); -var ScaleModes = __webpack_require__(233); +var IsSizePowerOfTwo = __webpack_require__(115); +var ScaleModes = __webpack_require__(231); /** * @classdesc @@ -83519,7 +83559,7 @@ module.exports = TextureSource; /***/ }), -/* 378 */ +/* 376 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83534,20 +83574,20 @@ module.exports = TextureSource; module.exports = { - AtlasXML: __webpack_require__(877), - Canvas: __webpack_require__(878), - Image: __webpack_require__(879), - JSONArray: __webpack_require__(880), - JSONHash: __webpack_require__(881), - SpriteSheet: __webpack_require__(882), - SpriteSheetFromAtlas: __webpack_require__(883), - UnityYAML: __webpack_require__(884) + AtlasXML: __webpack_require__(876), + Canvas: __webpack_require__(877), + Image: __webpack_require__(878), + JSONArray: __webpack_require__(879), + JSONHash: __webpack_require__(880), + SpriteSheet: __webpack_require__(881), + SpriteSheetFromAtlas: __webpack_require__(882), + UnityYAML: __webpack_require__(883) }; /***/ }), -/* 379 */ +/* 377 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83557,9 +83597,9 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HTML5AudioSoundManager = __webpack_require__(380); -var NoAudioSoundManager = __webpack_require__(382); -var WebAudioSoundManager = __webpack_require__(384); +var HTML5AudioSoundManager = __webpack_require__(378); +var NoAudioSoundManager = __webpack_require__(380); +var WebAudioSoundManager = __webpack_require__(382); /** * Creates a Web Audio, HTML5 Audio or No Audio Sound Manager based on config and device settings. @@ -83599,7 +83639,7 @@ module.exports = SoundManagerCreator; /***/ }), -/* 380 */ +/* 378 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -83609,10 +83649,10 @@ module.exports = SoundManagerCreator; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSoundManager = __webpack_require__(124); +var BaseSoundManager = __webpack_require__(122); var Class = __webpack_require__(0); var Events = __webpack_require__(59); -var HTML5AudioSound = __webpack_require__(381); +var HTML5AudioSound = __webpack_require__(379); /** * HTML5 Audio implementation of the Sound Manager. @@ -84064,7 +84104,7 @@ module.exports = HTML5AudioSoundManager; /***/ }), -/* 381 */ +/* 379 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -84074,7 +84114,7 @@ module.exports = HTML5AudioSoundManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSound = __webpack_require__(125); +var BaseSound = __webpack_require__(123); var Class = __webpack_require__(0); var Events = __webpack_require__(59); @@ -84989,7 +85029,7 @@ module.exports = HTML5AudioSound; /***/ }), -/* 382 */ +/* 380 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -84999,10 +85039,10 @@ module.exports = HTML5AudioSound; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSoundManager = __webpack_require__(124); +var BaseSoundManager = __webpack_require__(122); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var NoAudioSound = __webpack_require__(383); +var EventEmitter = __webpack_require__(10); +var NoAudioSound = __webpack_require__(381); var NOOP = __webpack_require__(1); /** @@ -85107,7 +85147,7 @@ module.exports = NoAudioSoundManager; /***/ }), -/* 383 */ +/* 381 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -85117,9 +85157,9 @@ module.exports = NoAudioSoundManager; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSound = __webpack_require__(125); +var BaseSound = __webpack_require__(123); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); +var EventEmitter = __webpack_require__(10); var Extend = __webpack_require__(17); /** @@ -85234,7 +85274,7 @@ module.exports = NoAudioSound; /***/ }), -/* 384 */ +/* 382 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -85244,11 +85284,11 @@ module.exports = NoAudioSound; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Base64ToArrayBuffer = __webpack_require__(385); -var BaseSoundManager = __webpack_require__(124); +var Base64ToArrayBuffer = __webpack_require__(383); +var BaseSoundManager = __webpack_require__(122); var Class = __webpack_require__(0); var Events = __webpack_require__(59); -var WebAudioSound = __webpack_require__(386); +var WebAudioSound = __webpack_require__(384); /** * @classdesc @@ -85693,7 +85733,7 @@ module.exports = WebAudioSoundManager; /***/ }), -/* 385 */ +/* 383 */ /***/ (function(module, exports) { /** @@ -85768,7 +85808,7 @@ module.exports = Base64ToArrayBuffer; /***/ }), -/* 386 */ +/* 384 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -85778,7 +85818,7 @@ module.exports = Base64ToArrayBuffer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseSound = __webpack_require__(125); +var BaseSound = __webpack_require__(123); var Class = __webpack_require__(0); var Events = __webpack_require__(59); @@ -86674,7 +86714,7 @@ module.exports = WebAudioSound; /***/ }), -/* 387 */ +/* 385 */ /***/ (function(module, exports) { /** @@ -86722,7 +86762,7 @@ module.exports = TransposeMatrix; /***/ }), -/* 388 */ +/* 386 */ /***/ (function(module, exports) { /** @@ -86844,7 +86884,7 @@ module.exports = QuickSelect; /***/ }), -/* 389 */ +/* 387 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -86854,7 +86894,7 @@ module.exports = QuickSelect; */ var GetValue = __webpack_require__(6); -var Shuffle = __webpack_require__(114); +var Shuffle = __webpack_require__(111); var BuildChunk = function (a, b, qty) { @@ -86982,7 +87022,7 @@ module.exports = Range; /***/ }), -/* 390 */ +/* 388 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87071,7 +87111,7 @@ module.exports = BuildGameObjectAnimation; /***/ }), -/* 391 */ +/* 389 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87113,7 +87153,7 @@ module.exports = Union; /***/ }), -/* 392 */ +/* 390 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -87124,12 +87164,12 @@ module.exports = Union; var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var DOMElementRender = __webpack_require__(953); +var DOMElementRender = __webpack_require__(952); var GameObject = __webpack_require__(13); var IsPlainObject = __webpack_require__(7); -var RemoveFromDOM = __webpack_require__(177); -var SCENE_EVENTS = __webpack_require__(19); -var Vector4 = __webpack_require__(333); +var RemoveFromDOM = __webpack_require__(174); +var SCENE_EVENTS = __webpack_require__(21); +var Vector4 = __webpack_require__(331); /** * @classdesc @@ -88087,7 +88127,7 @@ module.exports = DOMElement; /***/ }), -/* 393 */ +/* 391 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88096,7 +88136,7 @@ module.exports = DOMElement; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CSSBlendModes = __webpack_require__(954); +var CSSBlendModes = __webpack_require__(953); var GameObject = __webpack_require__(13); /** @@ -88209,7 +88249,7 @@ module.exports = DOMElementCSSRenderer; /***/ }), -/* 394 */ +/* 392 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88221,7 +88261,7 @@ module.exports = DOMElementCSSRenderer; var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameObject = __webpack_require__(13); -var ExternRender = __webpack_require__(958); +var ExternRender = __webpack_require__(957); /** * @classdesc @@ -88305,7 +88345,7 @@ module.exports = Extern; /***/ }), -/* 395 */ +/* 393 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88314,8 +88354,8 @@ module.exports = Extern; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CircumferencePoint = __webpack_require__(192); -var FromPercent = __webpack_require__(87); +var CircumferencePoint = __webpack_require__(189); +var FromPercent = __webpack_require__(86); var MATH_CONST = __webpack_require__(15); var Point = __webpack_require__(4); @@ -88348,7 +88388,7 @@ module.exports = GetPoint; /***/ }), -/* 396 */ +/* 394 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88357,9 +88397,9 @@ module.exports = GetPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circumference = __webpack_require__(397); -var CircumferencePoint = __webpack_require__(192); -var FromPercent = __webpack_require__(87); +var Circumference = __webpack_require__(395); +var CircumferencePoint = __webpack_require__(189); +var FromPercent = __webpack_require__(86); var MATH_CONST = __webpack_require__(15); /** @@ -88402,7 +88442,7 @@ module.exports = GetPoints; /***/ }), -/* 397 */ +/* 395 */ /***/ (function(module, exports) { /** @@ -88434,7 +88474,7 @@ module.exports = Circumference; /***/ }), -/* 398 */ +/* 396 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88443,7 +88483,7 @@ module.exports = Circumference; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Commands = __webpack_require__(191); +var Commands = __webpack_require__(188); var SetTransform = __webpack_require__(28); /** @@ -88684,7 +88724,7 @@ module.exports = GraphicsCanvasRenderer; /***/ }), -/* 399 */ +/* 397 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -88903,7 +88943,7 @@ module.exports = GravityWell; /***/ }), -/* 400 */ +/* 398 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89472,7 +89512,7 @@ module.exports = Particle; /***/ }), -/* 401 */ +/* 399 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -89484,17 +89524,17 @@ module.exports = Particle; var BlendModes = __webpack_require__(52); var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var DeathZone = __webpack_require__(402); -var EdgeZone = __webpack_require__(403); -var EmitterOp = __webpack_require__(970); +var DeathZone = __webpack_require__(400); +var EdgeZone = __webpack_require__(401); +var EmitterOp = __webpack_require__(969); var GetFastValue = __webpack_require__(2); -var GetRandom = __webpack_require__(184); -var HasAny = __webpack_require__(404); -var HasValue = __webpack_require__(99); -var Particle = __webpack_require__(400); -var RandomZone = __webpack_require__(405); +var GetRandom = __webpack_require__(181); +var HasAny = __webpack_require__(402); +var HasValue = __webpack_require__(105); +var Particle = __webpack_require__(398); +var RandomZone = __webpack_require__(403); var Rectangle = __webpack_require__(12); -var StableSort = __webpack_require__(128); +var StableSort = __webpack_require__(126); var Vector2 = __webpack_require__(3); var Wrap = __webpack_require__(58); @@ -91543,7 +91583,7 @@ module.exports = ParticleEmitter; /***/ }), -/* 402 */ +/* 400 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91621,7 +91661,7 @@ module.exports = DeathZone; /***/ }), -/* 403 */ +/* 401 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91865,7 +91905,7 @@ module.exports = EdgeZone; /***/ }), -/* 404 */ +/* 402 */ /***/ (function(module, exports) { /** @@ -91902,7 +91942,7 @@ module.exports = HasAny; /***/ }), -/* 405 */ +/* 403 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91975,7 +92015,7 @@ module.exports = RandomZone; /***/ }), -/* 406 */ +/* 404 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -91986,7 +92026,7 @@ module.exports = RandomZone; var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var Sprite = __webpack_require__(69); +var Sprite = __webpack_require__(74); /** * @classdesc @@ -92057,7 +92097,7 @@ module.exports = PathFollower; /***/ }), -/* 407 */ +/* 405 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92066,11 +92106,11 @@ module.exports = PathFollower; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcRender = __webpack_require__(996); +var ArcRender = __webpack_require__(995); var Class = __webpack_require__(0); var DegToRad = __webpack_require__(35); -var Earcut = __webpack_require__(66); -var GeomCircle = __webpack_require__(65); +var Earcut = __webpack_require__(64); +var GeomCircle = __webpack_require__(63); var MATH_CONST = __webpack_require__(15); var Shape = __webpack_require__(31); @@ -92466,7 +92506,7 @@ module.exports = Arc; /***/ }), -/* 408 */ +/* 406 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92476,8 +92516,8 @@ module.exports = Arc; */ var Class = __webpack_require__(0); -var CurveRender = __webpack_require__(999); -var Earcut = __webpack_require__(66); +var CurveRender = __webpack_require__(998); +var Earcut = __webpack_require__(64); var Rectangle = __webpack_require__(12); var Shape = __webpack_require__(31); @@ -92648,7 +92688,7 @@ module.exports = Curve; /***/ }), -/* 409 */ +/* 407 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92658,9 +92698,9 @@ module.exports = Curve; */ var Class = __webpack_require__(0); -var Earcut = __webpack_require__(66); -var EllipseRender = __webpack_require__(1002); -var GeomEllipse = __webpack_require__(95); +var Earcut = __webpack_require__(64); +var EllipseRender = __webpack_require__(1001); +var GeomEllipse = __webpack_require__(94); var Shape = __webpack_require__(31); /** @@ -92835,7 +92875,7 @@ module.exports = Ellipse; /***/ }), -/* 410 */ +/* 408 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -92846,7 +92886,7 @@ module.exports = Ellipse; var Class = __webpack_require__(0); var Shape = __webpack_require__(31); -var GridRender = __webpack_require__(1005); +var GridRender = __webpack_require__(1004); /** * @classdesc @@ -93117,7 +93157,7 @@ module.exports = Grid; /***/ }), -/* 411 */ +/* 409 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93126,7 +93166,7 @@ module.exports = Grid; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var IsoBoxRender = __webpack_require__(1008); +var IsoBoxRender = __webpack_require__(1007); var Class = __webpack_require__(0); var Shape = __webpack_require__(31); @@ -93332,7 +93372,7 @@ module.exports = IsoBox; /***/ }), -/* 412 */ +/* 410 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93342,7 +93382,7 @@ module.exports = IsoBox; */ var Class = __webpack_require__(0); -var IsoTriangleRender = __webpack_require__(1011); +var IsoTriangleRender = __webpack_require__(1010); var Shape = __webpack_require__(31); /** @@ -93578,7 +93618,7 @@ module.exports = IsoTriangle; /***/ }), -/* 413 */ +/* 411 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93590,7 +93630,7 @@ module.exports = IsoTriangle; var Class = __webpack_require__(0); var Shape = __webpack_require__(31); var GeomLine = __webpack_require__(56); -var LineRender = __webpack_require__(1014); +var LineRender = __webpack_require__(1013); /** * @classdesc @@ -93745,7 +93785,7 @@ module.exports = Line; /***/ }), -/* 414 */ +/* 412 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93754,13 +93794,13 @@ module.exports = Line; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PolygonRender = __webpack_require__(1017); +var PolygonRender = __webpack_require__(1016); var Class = __webpack_require__(0); -var Earcut = __webpack_require__(66); -var GetAABB = __webpack_require__(415); -var GeomPolygon = __webpack_require__(200); +var Earcut = __webpack_require__(64); +var GetAABB = __webpack_require__(413); +var GeomPolygon = __webpack_require__(197); var Shape = __webpack_require__(31); -var Smooth = __webpack_require__(418); +var Smooth = __webpack_require__(416); /** * @classdesc @@ -93884,7 +93924,7 @@ module.exports = Polygon; /***/ }), -/* 415 */ +/* 413 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93940,7 +93980,7 @@ module.exports = GetAABB; /***/ }), -/* 416 */ +/* 414 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -93951,7 +93991,7 @@ module.exports = GetAABB; var Length = __webpack_require__(57); var Line = __webpack_require__(56); -var Perimeter = __webpack_require__(417); +var Perimeter = __webpack_require__(415); /** * Returns an array of Point objects containing the coordinates of the points around the perimeter of the Polygon, @@ -94017,7 +94057,7 @@ module.exports = GetPoints; /***/ }), -/* 417 */ +/* 415 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94065,7 +94105,7 @@ module.exports = Perimeter; /***/ }), -/* 418 */ +/* 416 */ /***/ (function(module, exports) { /** @@ -94141,7 +94181,7 @@ module.exports = Smooth; /***/ }), -/* 419 */ +/* 417 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94153,7 +94193,7 @@ module.exports = Smooth; var Class = __webpack_require__(0); var GeomRectangle = __webpack_require__(12); var Shape = __webpack_require__(31); -var RectangleRender = __webpack_require__(1020); +var RectangleRender = __webpack_require__(1019); /** * @classdesc @@ -94253,7 +94293,7 @@ module.exports = Rectangle; /***/ }), -/* 420 */ +/* 418 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94262,9 +94302,9 @@ module.exports = Rectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var StarRender = __webpack_require__(1023); +var StarRender = __webpack_require__(1022); var Class = __webpack_require__(0); -var Earcut = __webpack_require__(66); +var Earcut = __webpack_require__(64); var Shape = __webpack_require__(31); /** @@ -94541,7 +94581,7 @@ module.exports = Star; /***/ }), -/* 421 */ +/* 419 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94552,8 +94592,8 @@ module.exports = Star; var Class = __webpack_require__(0); var Shape = __webpack_require__(31); -var GeomTriangle = __webpack_require__(72); -var TriangleRender = __webpack_require__(1026); +var GeomTriangle = __webpack_require__(69); +var TriangleRender = __webpack_require__(1025); /** * @classdesc @@ -94684,7 +94724,7 @@ module.exports = Triangle; /***/ }), -/* 422 */ +/* 420 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94771,7 +94811,7 @@ module.exports = GetPoint; /***/ }), -/* 423 */ +/* 421 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94864,7 +94904,7 @@ module.exports = GetPoints; /***/ }), -/* 424 */ +/* 422 */ /***/ (function(module, exports) { /** @@ -94947,7 +94987,7 @@ module.exports = SetValue; /***/ }), -/* 425 */ +/* 423 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -94957,7 +94997,7 @@ module.exports = SetValue; */ var Class = __webpack_require__(0); -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * @classdesc @@ -95210,7 +95250,7 @@ module.exports = Light; /***/ }), -/* 426 */ +/* 424 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95220,8 +95260,8 @@ module.exports = Light; */ var Class = __webpack_require__(0); -var Light = __webpack_require__(425); -var Utils = __webpack_require__(10); +var Light = __webpack_require__(423); +var Utils = __webpack_require__(9); /** * @callback LightForEach @@ -95573,7 +95613,7 @@ module.exports = LightsManager; /***/ }), -/* 427 */ +/* 425 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95591,14 +95631,14 @@ var Extend = __webpack_require__(17); var Geom = { - Circle: __webpack_require__(1086), - Ellipse: __webpack_require__(1096), - Intersects: __webpack_require__(428), - Line: __webpack_require__(1115), - Point: __webpack_require__(1137), - Polygon: __webpack_require__(1151), - Rectangle: __webpack_require__(441), - Triangle: __webpack_require__(1181) + Circle: __webpack_require__(1085), + Ellipse: __webpack_require__(1095), + Intersects: __webpack_require__(426), + Line: __webpack_require__(1114), + Point: __webpack_require__(1136), + Polygon: __webpack_require__(1150), + Rectangle: __webpack_require__(439), + Triangle: __webpack_require__(1180) }; @@ -95609,7 +95649,7 @@ module.exports = Geom; /***/ }), -/* 428 */ +/* 426 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95624,35 +95664,35 @@ module.exports = Geom; module.exports = { - CircleToCircle: __webpack_require__(204), - CircleToRectangle: __webpack_require__(205), - GetCircleToCircle: __webpack_require__(1106), - GetCircleToRectangle: __webpack_require__(1107), - GetLineToCircle: __webpack_require__(206), - GetLineToRectangle: __webpack_require__(208), - GetRectangleIntersection: __webpack_require__(1108), - GetRectangleToRectangle: __webpack_require__(1109), - GetRectangleToTriangle: __webpack_require__(1110), - GetTriangleToCircle: __webpack_require__(1111), - GetTriangleToLine: __webpack_require__(433), - GetTriangleToTriangle: __webpack_require__(1112), - LineToCircle: __webpack_require__(207), - LineToLine: __webpack_require__(84), - LineToRectangle: __webpack_require__(429), - PointToLine: __webpack_require__(437), - PointToLineSegment: __webpack_require__(1113), - RectangleToRectangle: __webpack_require__(131), - RectangleToTriangle: __webpack_require__(430), - RectangleToValues: __webpack_require__(1114), - TriangleToCircle: __webpack_require__(432), - TriangleToLine: __webpack_require__(434), - TriangleToTriangle: __webpack_require__(435) + CircleToCircle: __webpack_require__(201), + CircleToRectangle: __webpack_require__(202), + GetCircleToCircle: __webpack_require__(1105), + GetCircleToRectangle: __webpack_require__(1106), + GetLineToCircle: __webpack_require__(203), + GetLineToRectangle: __webpack_require__(205), + GetRectangleIntersection: __webpack_require__(1107), + GetRectangleToRectangle: __webpack_require__(1108), + GetRectangleToTriangle: __webpack_require__(1109), + GetTriangleToCircle: __webpack_require__(1110), + GetTriangleToLine: __webpack_require__(431), + GetTriangleToTriangle: __webpack_require__(1111), + LineToCircle: __webpack_require__(204), + LineToLine: __webpack_require__(83), + LineToRectangle: __webpack_require__(427), + PointToLine: __webpack_require__(435), + PointToLineSegment: __webpack_require__(1112), + RectangleToRectangle: __webpack_require__(130), + RectangleToTriangle: __webpack_require__(428), + RectangleToValues: __webpack_require__(1113), + TriangleToCircle: __webpack_require__(430), + TriangleToLine: __webpack_require__(432), + TriangleToTriangle: __webpack_require__(433) }; /***/ }), -/* 429 */ +/* 427 */ /***/ (function(module, exports) { /** @@ -95753,7 +95793,7 @@ module.exports = LineToRectangle; /***/ }), -/* 430 */ +/* 428 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95762,10 +95802,10 @@ module.exports = LineToRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var LineToLine = __webpack_require__(84); +var LineToLine = __webpack_require__(83); var Contains = __webpack_require__(47); -var ContainsArray = __webpack_require__(209); -var Decompose = __webpack_require__(431); +var ContainsArray = __webpack_require__(206); +var Decompose = __webpack_require__(429); /** * Checks for intersection between Rectangle shape and Triangle shape. @@ -95846,7 +95886,7 @@ module.exports = RectangleToTriangle; /***/ }), -/* 431 */ +/* 429 */ /***/ (function(module, exports) { /** @@ -95883,7 +95923,7 @@ module.exports = Decompose; /***/ }), -/* 432 */ +/* 430 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95892,8 +95932,8 @@ module.exports = Decompose; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var LineToCircle = __webpack_require__(207); -var Contains = __webpack_require__(83); +var LineToCircle = __webpack_require__(204); +var Contains = __webpack_require__(82); /** * Checks if a Triangle and a Circle intersect. @@ -95948,7 +95988,7 @@ module.exports = TriangleToCircle; /***/ }), -/* 433 */ +/* 431 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -95959,8 +95999,8 @@ module.exports = TriangleToCircle; */ var Point = __webpack_require__(4); -var TriangleToLine = __webpack_require__(434); -var LineToLine = __webpack_require__(84); +var TriangleToLine = __webpack_require__(432); +var LineToLine = __webpack_require__(83); /** * Checks if a Triangle and a Line intersect, and returns the intersection points as a Point object array. @@ -96007,7 +96047,7 @@ module.exports = GetTriangleToLine; /***/ }), -/* 434 */ +/* 432 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96016,8 +96056,8 @@ module.exports = GetTriangleToLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(83); -var LineToLine = __webpack_require__(84); +var Contains = __webpack_require__(82); +var LineToLine = __webpack_require__(83); /** * Checks if a Triangle and a Line intersect. @@ -96063,7 +96103,7 @@ module.exports = TriangleToLine; /***/ }), -/* 435 */ +/* 433 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96072,9 +96112,9 @@ module.exports = TriangleToLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ContainsArray = __webpack_require__(209); -var Decompose = __webpack_require__(436); -var LineToLine = __webpack_require__(84); +var ContainsArray = __webpack_require__(206); +var Decompose = __webpack_require__(434); +var LineToLine = __webpack_require__(83); /** * Checks if two Triangles intersect. @@ -96153,7 +96193,7 @@ module.exports = TriangleToTriangle; /***/ }), -/* 436 */ +/* 434 */ /***/ (function(module, exports) { /** @@ -96188,7 +96228,7 @@ module.exports = Decompose; /***/ }), -/* 437 */ +/* 435 */ /***/ (function(module, exports) { /** @@ -96258,7 +96298,7 @@ module.exports = PointToLine; /***/ }), -/* 438 */ +/* 436 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96269,7 +96309,7 @@ module.exports = PointToLine; var MATH_CONST = __webpack_require__(15); var Wrap = __webpack_require__(58); -var Angle = __webpack_require__(85); +var Angle = __webpack_require__(84); /** * Get the angle of the normal of the given line in radians. @@ -96292,7 +96332,7 @@ module.exports = NormalAngle; /***/ }), -/* 439 */ +/* 437 */ /***/ (function(module, exports) { /** @@ -96320,7 +96360,7 @@ module.exports = GetMagnitude; /***/ }), -/* 440 */ +/* 438 */ /***/ (function(module, exports) { /** @@ -96348,7 +96388,7 @@ module.exports = GetMagnitudeSq; /***/ }), -/* 441 */ +/* 439 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96359,49 +96399,49 @@ module.exports = GetMagnitudeSq; var Rectangle = __webpack_require__(12); -Rectangle.Area = __webpack_require__(1156); -Rectangle.Ceil = __webpack_require__(1157); -Rectangle.CeilAll = __webpack_require__(1158); -Rectangle.CenterOn = __webpack_require__(166); -Rectangle.Clone = __webpack_require__(1159); +Rectangle.Area = __webpack_require__(1155); +Rectangle.Ceil = __webpack_require__(1156); +Rectangle.CeilAll = __webpack_require__(1157); +Rectangle.CenterOn = __webpack_require__(163); +Rectangle.Clone = __webpack_require__(1158); Rectangle.Contains = __webpack_require__(47); -Rectangle.ContainsPoint = __webpack_require__(1160); -Rectangle.ContainsRect = __webpack_require__(442); -Rectangle.CopyFrom = __webpack_require__(1161); -Rectangle.Decompose = __webpack_require__(431); -Rectangle.Equals = __webpack_require__(1162); -Rectangle.FitInside = __webpack_require__(1163); -Rectangle.FitOutside = __webpack_require__(1164); -Rectangle.Floor = __webpack_require__(1165); -Rectangle.FloorAll = __webpack_require__(1166); -Rectangle.FromPoints = __webpack_require__(175); -Rectangle.GetAspectRatio = __webpack_require__(211); -Rectangle.GetCenter = __webpack_require__(1167); -Rectangle.GetPoint = __webpack_require__(150); -Rectangle.GetPoints = __webpack_require__(273); -Rectangle.GetSize = __webpack_require__(1168); -Rectangle.Inflate = __webpack_require__(1169); -Rectangle.Intersection = __webpack_require__(1170); -Rectangle.MarchingAnts = __webpack_require__(284); -Rectangle.MergePoints = __webpack_require__(1171); -Rectangle.MergeRect = __webpack_require__(1172); -Rectangle.MergeXY = __webpack_require__(1173); -Rectangle.Offset = __webpack_require__(1174); -Rectangle.OffsetPoint = __webpack_require__(1175); -Rectangle.Overlaps = __webpack_require__(1176); -Rectangle.Perimeter = __webpack_require__(112); -Rectangle.PerimeterPoint = __webpack_require__(1177); -Rectangle.Random = __webpack_require__(153); -Rectangle.RandomOutside = __webpack_require__(1178); -Rectangle.SameDimensions = __webpack_require__(1179); -Rectangle.Scale = __webpack_require__(1180); -Rectangle.Union = __webpack_require__(391); +Rectangle.ContainsPoint = __webpack_require__(1159); +Rectangle.ContainsRect = __webpack_require__(440); +Rectangle.CopyFrom = __webpack_require__(1160); +Rectangle.Decompose = __webpack_require__(429); +Rectangle.Equals = __webpack_require__(1161); +Rectangle.FitInside = __webpack_require__(1162); +Rectangle.FitOutside = __webpack_require__(1163); +Rectangle.Floor = __webpack_require__(1164); +Rectangle.FloorAll = __webpack_require__(1165); +Rectangle.FromPoints = __webpack_require__(172); +Rectangle.GetAspectRatio = __webpack_require__(208); +Rectangle.GetCenter = __webpack_require__(1166); +Rectangle.GetPoint = __webpack_require__(147); +Rectangle.GetPoints = __webpack_require__(271); +Rectangle.GetSize = __webpack_require__(1167); +Rectangle.Inflate = __webpack_require__(1168); +Rectangle.Intersection = __webpack_require__(1169); +Rectangle.MarchingAnts = __webpack_require__(282); +Rectangle.MergePoints = __webpack_require__(1170); +Rectangle.MergeRect = __webpack_require__(1171); +Rectangle.MergeXY = __webpack_require__(1172); +Rectangle.Offset = __webpack_require__(1173); +Rectangle.OffsetPoint = __webpack_require__(1174); +Rectangle.Overlaps = __webpack_require__(1175); +Rectangle.Perimeter = __webpack_require__(109); +Rectangle.PerimeterPoint = __webpack_require__(1176); +Rectangle.Random = __webpack_require__(150); +Rectangle.RandomOutside = __webpack_require__(1177); +Rectangle.SameDimensions = __webpack_require__(1178); +Rectangle.Scale = __webpack_require__(1179); +Rectangle.Union = __webpack_require__(389); module.exports = Rectangle; /***/ }), -/* 442 */ +/* 440 */ /***/ (function(module, exports) { /** @@ -96441,7 +96481,7 @@ module.exports = ContainsRect; /***/ }), -/* 443 */ +/* 441 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96485,7 +96525,7 @@ module.exports = Centroid; /***/ }), -/* 444 */ +/* 442 */ /***/ (function(module, exports) { /** @@ -96526,7 +96566,7 @@ module.exports = Offset; /***/ }), -/* 445 */ +/* 443 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96591,7 +96631,7 @@ module.exports = InCenter; /***/ }), -/* 446 */ +/* 444 */ /***/ (function(module, exports) { /** @@ -96662,7 +96702,7 @@ module.exports = CreateInteractiveObject; /***/ }), -/* 447 */ +/* 445 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96787,7 +96827,7 @@ module.exports = Axis; /***/ }), -/* 448 */ +/* 446 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96797,7 +96837,7 @@ module.exports = Axis; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(213); +var Events = __webpack_require__(210); /** * @classdesc @@ -96933,7 +96973,7 @@ module.exports = Button; /***/ }), -/* 449 */ +/* 447 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -96942,10 +96982,10 @@ module.exports = Button; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Axis = __webpack_require__(447); -var Button = __webpack_require__(448); +var Axis = __webpack_require__(445); +var Button = __webpack_require__(446); var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); +var EventEmitter = __webpack_require__(10); var Vector2 = __webpack_require__(3); /** @@ -97691,7 +97731,7 @@ module.exports = Gamepad; /***/ }), -/* 450 */ +/* 448 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -97701,8 +97741,8 @@ module.exports = Gamepad; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(133); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(132); /** * @classdesc @@ -98093,7 +98133,7 @@ module.exports = Key; /***/ }), -/* 451 */ +/* 449 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -98103,10 +98143,10 @@ module.exports = Key; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(133); +var Events = __webpack_require__(132); var GetFastValue = __webpack_require__(2); -var ProcessKeyCombo = __webpack_require__(1220); -var ResetKeyCombo = __webpack_require__(1222); +var ProcessKeyCombo = __webpack_require__(1219); +var ResetKeyCombo = __webpack_require__(1221); /** * @classdesc @@ -98386,7 +98426,7 @@ module.exports = KeyCombo; /***/ }), -/* 452 */ +/* 450 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -98395,7 +98435,7 @@ module.exports = KeyCombo; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MergeXHRSettings = __webpack_require__(214); +var MergeXHRSettings = __webpack_require__(211); /** * Creates a new XMLHttpRequest (xhr) object based on the given File and XHRSettings @@ -98459,7 +98499,7 @@ module.exports = XHRLoader; /***/ }), -/* 453 */ +/* 451 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -98470,10 +98510,10 @@ module.exports = XHRLoader; var Class = __webpack_require__(0); var CONST = __webpack_require__(29); -var File = __webpack_require__(21); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var HTML5AudioFile = __webpack_require__(454); +var HTML5AudioFile = __webpack_require__(452); var IsPlainObject = __webpack_require__(7); /** @@ -98730,7 +98770,7 @@ module.exports = AudioFile; /***/ }), -/* 454 */ +/* 452 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -98740,10 +98780,10 @@ module.exports = AudioFile; */ var Class = __webpack_require__(0); -var Events = __webpack_require__(82); -var File = __webpack_require__(21); +var Events = __webpack_require__(81); +var File = __webpack_require__(20); var GetFastValue = __webpack_require__(2); -var GetURL = __webpack_require__(134); +var GetURL = __webpack_require__(133); var IsPlainObject = __webpack_require__(7); /** @@ -98928,7 +98968,7 @@ module.exports = HTML5AudioFile; /***/ }), -/* 455 */ +/* 453 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -98938,8 +98978,8 @@ module.exports = HTML5AudioFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -99099,7 +99139,7 @@ module.exports = ScriptFile; /***/ }), -/* 456 */ +/* 454 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -99109,8 +99149,8 @@ module.exports = ScriptFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -99274,7 +99314,7 @@ module.exports = TextFile; /***/ }), -/* 457 */ +/* 455 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -99283,12 +99323,12 @@ module.exports = TextFile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcadeImage = __webpack_require__(458); -var ArcadeSprite = __webpack_require__(136); +var ArcadeImage = __webpack_require__(456); +var ArcadeSprite = __webpack_require__(135); var Class = __webpack_require__(0); var CONST = __webpack_require__(50); -var PhysicsGroup = __webpack_require__(459); -var StaticPhysicsGroup = __webpack_require__(460); +var PhysicsGroup = __webpack_require__(457); +var StaticPhysicsGroup = __webpack_require__(458); /** * @classdesc @@ -99545,7 +99585,7 @@ module.exports = Factory; /***/ }), -/* 458 */ +/* 456 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -99555,8 +99595,8 @@ module.exports = Factory; */ var Class = __webpack_require__(0); -var Components = __webpack_require__(216); -var Image = __webpack_require__(98); +var Components = __webpack_require__(213); +var Image = __webpack_require__(104); /** * @classdesc @@ -99645,7 +99685,7 @@ module.exports = ArcadeImage; /***/ }), -/* 459 */ +/* 457 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -99654,11 +99694,11 @@ module.exports = ArcadeImage; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcadeSprite = __webpack_require__(136); +var ArcadeSprite = __webpack_require__(135); var Class = __webpack_require__(0); var CONST = __webpack_require__(50); var GetFastValue = __webpack_require__(2); -var Group = __webpack_require__(97); +var Group = __webpack_require__(96); var IsPlainObject = __webpack_require__(7); /** @@ -99930,7 +99970,7 @@ module.exports = PhysicsGroup; /***/ }), -/* 460 */ +/* 458 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -99939,11 +99979,11 @@ module.exports = PhysicsGroup; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArcadeSprite = __webpack_require__(136); +var ArcadeSprite = __webpack_require__(135); var Class = __webpack_require__(0); var CONST = __webpack_require__(50); var GetFastValue = __webpack_require__(2); -var Group = __webpack_require__(97); +var Group = __webpack_require__(96); var IsPlainObject = __webpack_require__(7); /** @@ -100121,7 +100161,7 @@ module.exports = StaticPhysicsGroup; /***/ }), -/* 461 */ +/* 459 */ /***/ (function(module, exports) { /** @@ -100206,7 +100246,7 @@ module.exports = OverlapRect; /***/ }), -/* 462 */ +/* 460 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -100215,30 +100255,30 @@ module.exports = OverlapRect; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Body = __webpack_require__(463); +var Body = __webpack_require__(461); var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); -var Collider = __webpack_require__(464); +var Collider = __webpack_require__(462); var CONST = __webpack_require__(50); var DistanceBetween = __webpack_require__(53); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(217); -var FuzzyEqual = __webpack_require__(144); -var FuzzyGreaterThan = __webpack_require__(320); -var FuzzyLessThan = __webpack_require__(321); -var GetOverlapX = __webpack_require__(465); -var GetOverlapY = __webpack_require__(466); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(214); +var FuzzyEqual = __webpack_require__(141); +var FuzzyGreaterThan = __webpack_require__(318); +var FuzzyLessThan = __webpack_require__(319); +var GetOverlapX = __webpack_require__(463); +var GetOverlapY = __webpack_require__(464); var GetValue = __webpack_require__(6); -var ProcessQueue = __webpack_require__(185); -var ProcessTileCallbacks = __webpack_require__(1279); +var ProcessQueue = __webpack_require__(182); +var ProcessTileCallbacks = __webpack_require__(1278); var Rectangle = __webpack_require__(12); -var RTree = __webpack_require__(467); -var SeparateTile = __webpack_require__(1280); -var SeparateX = __webpack_require__(1285); -var SeparateY = __webpack_require__(1286); -var Set = __webpack_require__(108); -var StaticBody = __webpack_require__(469); -var TileIntersectsBody = __webpack_require__(468); +var RTree = __webpack_require__(465); +var SeparateTile = __webpack_require__(1279); +var SeparateX = __webpack_require__(1284); +var SeparateY = __webpack_require__(1285); +var Set = __webpack_require__(128); +var StaticBody = __webpack_require__(467); +var TileIntersectsBody = __webpack_require__(466); var TransformMatrix = __webpack_require__(30); var Vector2 = __webpack_require__(3); var Wrap = __webpack_require__(58); @@ -102595,7 +102635,7 @@ module.exports = World; /***/ }), -/* 463 */ +/* 461 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -102607,8 +102647,8 @@ module.exports = World; var Class = __webpack_require__(0); var CONST = __webpack_require__(50); -var Events = __webpack_require__(217); -var RadToDeg = __webpack_require__(172); +var Events = __webpack_require__(214); +var RadToDeg = __webpack_require__(169); var Rectangle = __webpack_require__(12); var RectangleContains = __webpack_require__(47); var Vector2 = __webpack_require__(3); @@ -102633,8 +102673,8 @@ var Body = new Class({ function Body (world, gameObject) { - var width = (gameObject.width) ? gameObject.width : 64; - var height = (gameObject.height) ? gameObject.height : 64; + var width = (gameObject.displayWidth) ? gameObject.displayWidth : 64; + var height = (gameObject.displayHeight) ? gameObject.displayHeight : 64; /** * The Arcade Physics simulation this Body belongs to. @@ -102748,7 +102788,10 @@ var Body = new Class({ * @type {Phaser.Math.Vector2} * @since 3.0.0 */ - this.position = new Vector2(gameObject.x, gameObject.y); + this.position = new Vector2( + gameObject.x - gameObject.scaleX * gameObject.displayOriginX, + gameObject.y - gameObject.scaleY * gameObject.displayOriginY + ); /** * The position of this Body during the previous step. @@ -102878,7 +102921,7 @@ var Body = new Class({ * @type {Phaser.Math.Vector2} * @since 3.0.0 */ - this.center = new Vector2(gameObject.x + this.halfWidth, gameObject.y + this.halfHeight); + this.center = new Vector2(this.position.x + this.halfWidth, this.position.y + this.halfHeight); /** * The Body's velocity, in pixels per second. @@ -103504,23 +103547,27 @@ var Body = new Class({ resetFlags: function () { // Store and reset collision flags - this.wasTouching.none = this.touching.none; - this.wasTouching.up = this.touching.up; - this.wasTouching.down = this.touching.down; - this.wasTouching.left = this.touching.left; - this.wasTouching.right = this.touching.right; + var wasTouching = this.wasTouching; + var touching = this.touching; + var blocked = this.blocked; - this.touching.none = true; - this.touching.up = false; - this.touching.down = false; - this.touching.left = false; - this.touching.right = false; + wasTouching.none = touching.none; + wasTouching.up = touching.up; + wasTouching.down = touching.down; + wasTouching.left = touching.left; + wasTouching.right = touching.right; - this.blocked.none = true; - this.blocked.up = false; - this.blocked.down = false; - this.blocked.left = false; - this.blocked.right = false; + touching.none = true; + touching.up = false; + touching.down = false; + touching.left = false; + touching.right = false; + + blocked.none = true; + blocked.up = false; + blocked.down = false; + blocked.left = false; + blocked.right = false; this.overlapR = 0; this.overlapX = 0; @@ -103833,10 +103880,10 @@ var Body = new Class({ if (center && gameObject.getCenter) { - var ox = gameObject.displayWidth / 2; - var oy = gameObject.displayHeight / 2; + var ox = (gameObject.width - width) / 2; + var oy = (gameObject.height - height) / 2; - this.offset.set(ox - this.halfWidth, oy - this.halfHeight); + this.offset.set(ox, oy); } this.isCircle = false; @@ -104923,7 +104970,7 @@ module.exports = Body; /***/ }), -/* 464 */ +/* 462 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -105106,7 +105153,7 @@ module.exports = Collider; /***/ }), -/* 465 */ +/* 463 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -105214,7 +105261,7 @@ module.exports = GetOverlapX; /***/ }), -/* 466 */ +/* 464 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -105322,7 +105369,7 @@ module.exports = GetOverlapY; /***/ }), -/* 467 */ +/* 465 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -105332,7 +105379,7 @@ module.exports = GetOverlapY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var quickselect = __webpack_require__(388); +var quickselect = __webpack_require__(386); /** * @classdesc @@ -105933,7 +105980,7 @@ function multiSelect (arr, left, right, n, compare) module.exports = rbush; /***/ }), -/* 468 */ +/* 466 */ /***/ (function(module, exports) { /** @@ -105956,7 +106003,6 @@ module.exports = rbush; var TileIntersectsBody = function (tileWorldRect, body) { // Currently, all bodies are treated as rectangles when colliding with a Tile. - return !( body.right <= tileWorldRect.left || body.bottom <= tileWorldRect.top || @@ -105969,7 +106015,7 @@ module.exports = TileIntersectsBody; /***/ }), -/* 469 */ +/* 467 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -105989,7 +106035,7 @@ var Vector2 = __webpack_require__(3); * A Static Arcade Physics Body. * * A Static Body never moves, and isn't automatically synchronized with its parent Game Object. - * That means if you make any change to the parent's origin, position, or scale after creating or adding the body, you'll need to update the Body manually. + * That means if you make any change to the parent's origin, position, or scale after creating or adding the body, you'll need to update the Static Body manually. * * A Static Body can collide with other Bodies, but is never moved by collisions. * @@ -106009,8 +106055,8 @@ var StaticBody = new Class({ function StaticBody (world, gameObject) { - var width = (gameObject.width) ? gameObject.width : 64; - var height = (gameObject.height) ? gameObject.height : 64; + var width = (gameObject.displayWidth) ? gameObject.displayWidth : 64; + var height = (gameObject.displayHeight) ? gameObject.displayHeight : 64; /** * The Arcade Physics simulation this Static Body belongs to. @@ -106069,8 +106115,8 @@ var StaticBody = new Class({ this.isCircle = false; /** - * If this Static Body is circular, this is the unscaled radius of the Static Body's boundary, as set by {@link #setCircle}, in source pixels. - * The true radius is equal to `halfWidth`. + * If this Static Body is circular, this is the radius of the boundary, as set by {@link Phaser.Physics.Arcade.StaticBody#setCircle}, in pixels. + * Equal to `halfWidth`. * * @name Phaser.Physics.Arcade.StaticBody#radius * @type {number} @@ -106080,12 +106126,13 @@ var StaticBody = new Class({ this.radius = 0; /** - * The offset of this Static Body's actual position from any updated position. + * The offset set by {@link Phaser.Physics.Arcade.StaticBody#setCircle} or {@link Phaser.Physics.Arcade.StaticBody#setSize}. * - * Unlike a dynamic Body, a Static Body does not follow its Game Object. As such, this offset is only applied when resizing the Static Body. + * This doesn't affect the Static Body's position, because a Static Body does not follow its Game Object. * * @name Phaser.Physics.Arcade.StaticBody#offset * @type {Phaser.Math.Vector2} + * @readonly * @since 3.0.0 */ this.offset = new Vector2(); @@ -106147,7 +106194,7 @@ var StaticBody = new Class({ * @type {Phaser.Math.Vector2} * @since 3.0.0 */ - this.center = new Vector2(gameObject.x + this.halfWidth, gameObject.y + this.halfHeight); + this.center = new Vector2(this.position.x + this.halfWidth, this.position.y + this.halfHeight); /** * A constant zero velocity used by the Arcade Physics simulation for calculations. @@ -106363,7 +106410,7 @@ var StaticBody = new Class({ this.physicsType = CONST.STATIC_BODY; /** - * The calculated change in the Body's horizontal position during the current step. + * The calculated change in the Static Body's horizontal position during the current step. * For a static body this is always zero. * * @name Phaser.Physics.Arcade.StaticBody#_dx @@ -106375,7 +106422,7 @@ var StaticBody = new Class({ this._dx = 0; /** - * The calculated change in the Body's vertical position during the current step. + * The calculated change in the Static Body's vertical position during the current step. * For a static body this is always zero. * * @name Phaser.Physics.Arcade.StaticBody#_dy @@ -106424,7 +106471,7 @@ var StaticBody = new Class({ }, /** - * Syncs the Body's position and size with its parent Game Object. + * Syncs the Static Body's position and size with its parent Game Object. * * @method Phaser.Physics.Arcade.StaticBody#updateFromGameObject * @since 3.1.0 @@ -106453,13 +106500,13 @@ var StaticBody = new Class({ }, /** - * Sets the offset of the body. + * Positions the Static Body at an offset from its Game Object. * * @method Phaser.Physics.Arcade.StaticBody#setOffset * @since 3.4.0 * - * @param {number} x - The horizontal offset of the Body from the Game Object's center. - * @param {number} y - The vertical offset of the Body from the Game Object's center. + * @param {number} x - The horizontal offset of the Static Body from the Game Object's `x`. + * @param {number} y - The vertical offset of the Static Body from the Game Object's `y`. * * @return {Phaser.Physics.Arcade.StaticBody} This Static Body object. */ @@ -106485,15 +106532,16 @@ var StaticBody = new Class({ }, /** - * Sets the size of the body. + * Sets the size of the Static Body. + * When `center` is true, also repositions it. * Resets the width and height to match current frame, if no width and height provided and a frame is found. * * @method Phaser.Physics.Arcade.StaticBody#setSize * @since 3.0.0 * - * @param {integer} [width] - The width of the Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame width. - * @param {integer} [height] - The height of the Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame height. - * @param {boolean} [center=true] - Modify the Body's `offset`, placing the Body's center on its Game Object's center. Only works if the Game Object has the `getCenter` method. + * @param {integer} [width] - The width of the Static Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame width. + * @param {integer} [height] - The height of the Static Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame height. + * @param {boolean} [center=true] - Place the Static Body's center on its Game Object's center. Only works if the Game Object has the `getCenter` method. * * @return {Phaser.Physics.Arcade.StaticBody} This Static Body object. */ @@ -106546,7 +106594,7 @@ var StaticBody = new Class({ }, /** - * Sets this Static Body to have a circular body and sets its sizes and position. + * Sets this Static Body to have a circular body and sets its size and position. * * @method Phaser.Physics.Arcade.StaticBody#setCircle * @since 3.0.0 @@ -106956,154 +107004,7 @@ module.exports = StaticBody; /***/ }), -/* 470 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Collision Types - Determine if and how entities collide with each other. - * - * In ACTIVE vs. LITE or FIXED vs. ANY collisions, only the "weak" entity moves, - * while the other one stays fixed. In ACTIVE vs. ACTIVE and ACTIVE vs. PASSIVE - * collisions, both entities are moved. LITE or PASSIVE entities don't collide - * with other LITE or PASSIVE entities at all. The behavior for FIXED vs. - * FIXED collisions is undefined. - * - * @namespace Phaser.Physics.Impact.COLLIDES - * @memberof Phaser.Physics.Impact - * @since 3.0.0 - */ - -module.exports = { - - /** - * Never collides. - * - * @name Phaser.Physics.Impact.COLLIDES.NEVER - * @type {integer} - * @const - * @since 3.0.0 - */ - NEVER: 0, - - /** - * Lite collision. - * - * @name Phaser.Physics.Impact.COLLIDES.LITE - * @type {integer} - * @const - * @since 3.0.0 - */ - LITE: 1, - - /** - * Passive collision. - * - * @name Phaser.Physics.Impact.COLLIDES.PASSIVE - * @type {integer} - * @const - * @since 3.0.0 - */ - PASSIVE: 2, - - /** - * Active collision. - * - * @name Phaser.Physics.Impact.COLLIDES.ACTIVE - * @type {integer} - * @const - * @since 3.0.0 - */ - ACTIVE: 4, - - /** - * Fixed collision. - * - * @name Phaser.Physics.Impact.COLLIDES.FIXED - * @type {integer} - * @const - * @since 3.0.0 - */ - FIXED: 8 - -}; - - -/***/ }), -/* 471 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Collision Types - Determine if and how entities collide with each other. - * - * In ACTIVE vs. LITE or FIXED vs. ANY collisions, only the "weak" entity moves, - * while the other one stays fixed. In ACTIVE vs. ACTIVE and ACTIVE vs. PASSIVE - * collisions, both entities are moved. LITE or PASSIVE entities don't collide - * with other LITE or PASSIVE entities at all. The behavior for FIXED vs. - * FIXED collisions is undefined. - * - * @namespace Phaser.Physics.Impact.TYPE - * @memberof Phaser.Physics.Impact - * @since 3.0.0 - */ -module.exports = { - - /** - * Collides with nothing. - * - * @name Phaser.Physics.Impact.TYPE.NONE - * @type {integer} - * @const - * @since 3.0.0 - */ - NONE: 0, - - /** - * Type A. Collides with Type B. - * - * @name Phaser.Physics.Impact.TYPE.A - * @type {integer} - * @const - * @since 3.0.0 - */ - A: 1, - - /** - * Type B. Collides with Type A. - * - * @name Phaser.Physics.Impact.TYPE.B - * @type {integer} - * @const - * @since 3.0.0 - */ - B: 2, - - /** - * Collides with both types A and B. - * - * @name Phaser.Physics.Impact.TYPE.BOTH - * @type {integer} - * @const - * @since 3.0.0 - */ - BOTH: 3 - -}; - - -/***/ }), -/* 472 */ +/* 468 */ /***/ (function(module, exports) { /** @@ -107229,7 +107130,7 @@ module.exports = Pair; /***/ }), -/* 473 */ +/* 469 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107359,7 +107260,118 @@ module.exports = BasePlugin; /***/ }), -/* 474 */ +/* 470 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * Converts from tile X coordinates (tile units) to world X coordinates (pixels), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.TileToWorldX + * @private + * @since 3.0.0 + * + * @param {integer} tileX - The x coordinate, in tiles, not pixels. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} + */ +var TileToWorldX = function (tileX, camera, layer) +{ + var orientation = layer.orientation; + var tileWidth = layer.baseTileWidth; + var tilemapLayer = layer.tilemapLayer; + var layerWorldX = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); + + tileWidth *= tilemapLayer.scaleX; + } + + + if (orientation === 'orthogonal') + { + return layerWorldX + tileX * tileWidth; + } + else if (orientation === 'isometric') + { + // Not Best Solution ? + console.warn('With isometric map types you have to use the TileToWorldXY function.'); + return null; + } + + +}; + +module.exports = TileToWorldX; + + +/***/ }), +/* 471 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * Converts from tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.TileToWorldY + * @private + * @since 3.0.0 + * + * @param {integer} tileY - The x coordinate, in tiles, not pixels. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} + */ +var TileToWorldY = function (tileY, camera, layer) +{ + var orientation = layer.orientation; + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + var layerWorldY = 0; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + tileHeight *= tilemapLayer.scaleY; + } + + if (orientation === 'orthogonal') + { + return layerWorldY + tileY * tileHeight; + } + else if (orientation === 'isometric') + { + // Not Best Solution ? + console.warn('With isometric map types you have to use the TileToWorldXY function.'); + return null; + } +}; + +module.exports = TileToWorldY; + + +/***/ }), +/* 472 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107403,6 +107415,129 @@ var ReplaceByIndex = function (findIndex, newIndex, tileX, tileY, width, height, module.exports = ReplaceByIndex; +/***/ }), +/* 473 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * Converts from world X coordinates (pixels) to tile X coordinates (tile units), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.WorldToTileX + * @private + * @since 3.0.0 + * + * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} The X location in tile units. + */ +var WorldToTileX = function (worldX, snapToFloor, camera, layer) +{ + + var orientation = layer.orientation; + if (snapToFloor === undefined) { snapToFloor = true; } + + var tileWidth = layer.baseTileWidth; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's horizontal scroll + worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); + + tileWidth *= tilemapLayer.scaleX; + } + + if (orientation === 'orthogonal') + { + return snapToFloor + ? Math.floor(worldX / tileWidth) + : worldX / tileWidth; + } + else if (orientation === 'isometric') + { + console.warn('With isometric map types you have to use the WorldToTileXY function.'); + return null; + } + +}; + +module.exports = WorldToTileX; + + +/***/ }), +/* 474 */ +/***/ (function(module, exports) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * Converts from world Y coordinates (pixels) to tile Y coordinates (tile units), factoring in the + * layer's position, scale and scroll. + * + * @function Phaser.Tilemaps.Components.WorldToTileY + * @private + * @since 3.0.0 + * + * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. + * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. + * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. + * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. + * + * @return {number} The Y location in tile units. + */ +var WorldToTileY = function (worldY, snapToFloor, camera, layer) +{ + var orientation = layer.orientation; + if (snapToFloor === undefined) { snapToFloor = true; } + var tileHeight = layer.baseTileHeight; + var tilemapLayer = layer.tilemapLayer; + + if (tilemapLayer) + { + if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } + + // Find the world position relative to the static or dynamic layer's top left origin, + // factoring in the camera's vertical scroll + worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); + + tileHeight *= tilemapLayer.scaleY; + + } + + if (orientation === 'orthogonal') + { + return snapToFloor + ? Math.floor(worldY / tileHeight) + : worldY / tileHeight; + } + else if (orientation === 'isometric') + { + console.warn('With isometric map types you have to use the WorldToTileXY function.'); + return null; + + } +}; + +module.exports = WorldToTileY; + + /***/ }), /* 475 */ /***/ (function(module, exports, __webpack_require__) { @@ -107413,88 +107548,7 @@ module.exports = ReplaceByIndex; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); -var Vector2 = __webpack_require__(3); - -/** - * Converts from world XY coordinates (pixels) to tile XY coordinates (tile units), factoring in the - * layer's position, scale and scroll. This will return a new Vector2 object or update the given - * `point` object. - * - * @function Phaser.Tilemaps.Components.WorldToTileXY - * @private - * @since 3.0.0 - * - * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles. - * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles. - * @param {boolean} [snapToFloor=true] - Whether or not to round the tile coordinate down to the nearest integer. - * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {Phaser.Math.Vector2} The XY location in tile units. - */ -var WorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer) -{ - var orientation = layer.orientation; - if (point === undefined) { point = new Vector2(0, 0); } - - if (orientation === "orthogonal") { - point.x = WorldToTileX(worldX, snapToFloor, camera, layer, orientation); - point.y = WorldToTileY(worldY, snapToFloor, camera, layer, orientation); - } else if (orientation === 'isometric') { - - var tileWidth = layer.baseTileWidth; - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's vertical scroll - // console.log(1,worldY) - worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - // console.log(worldY) - tileHeight *= tilemapLayer.scaleY; - - // Find the world position relative to the static or dynamic layer's top left origin, - // factoring in the camera's horizontal scroll - worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX)); - - tileWidth *= tilemapLayer.scaleX; - } - - point.x = snapToFloor - ? Math.floor((worldX/(tileWidth/2) + worldY/(tileHeight/2))/2) - : ((worldX/(tileWidth/2) + worldY/(tileHeight/2))/2); - - point.y = snapToFloor - ? Math.floor((worldY/(tileHeight/2) - worldX/(tileWidth/2))/2) - : ((worldY/(tileHeight/2) - worldX/(tileWidth/2))/2); - } - - - - return point; -}; - -module.exports = WorldToTileXY; - - -/***/ }), -/* 476 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var IsInLayerBounds = __webpack_require__(103); +var IsInLayerBounds = __webpack_require__(100); /** * Checks if there is a tile at the given location (in tile coordinates) in the given layer. Returns @@ -107528,7 +107582,7 @@ module.exports = HasTileAt; /***/ }), -/* 477 */ +/* 476 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107537,9 +107591,9 @@ module.exports = HasTileAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tile = __webpack_require__(75); -var IsInLayerBounds = __webpack_require__(103); -var CalculateFacesAt = __webpack_require__(219); +var Tile = __webpack_require__(73); +var IsInLayerBounds = __webpack_require__(100); +var CalculateFacesAt = __webpack_require__(216); /** * Removes the tile at the given tile coordinates in the specified layer and updates the layer's @@ -107591,7 +107645,7 @@ module.exports = RemoveTileAt; /***/ }), -/* 478 */ +/* 477 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107600,11 +107654,11 @@ module.exports = RemoveTileAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Formats = __webpack_require__(32); -var Parse2DArray = __webpack_require__(222); -var ParseCSV = __webpack_require__(479); -var ParseJSONTiled = __webpack_require__(480); -var ParseWeltmeister = __webpack_require__(491); +var Formats = __webpack_require__(33); +var Parse2DArray = __webpack_require__(220); +var ParseCSV = __webpack_require__(478); +var ParseJSONTiled = __webpack_require__(479); +var ParseWeltmeister = __webpack_require__(490); /** * Parses raw data of a given Tilemap format into a new MapData object. If no recognized data format @@ -107661,7 +107715,7 @@ module.exports = Parse; /***/ }), -/* 479 */ +/* 478 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107670,8 +107724,8 @@ module.exports = Parse; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Formats = __webpack_require__(32); -var Parse2DArray = __webpack_require__(222); +var Formats = __webpack_require__(33); +var Parse2DArray = __webpack_require__(220); /** * Parses a CSV string of tile indexes into a new MapData object with a single layer. @@ -107709,7 +107763,7 @@ module.exports = ParseCSV; /***/ }), -/* 480 */ +/* 479 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107718,14 +107772,14 @@ module.exports = ParseCSV; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Formats = __webpack_require__(32); -var MapData = __webpack_require__(105); -var ParseTileLayers = __webpack_require__(481); -var ParseImageLayers = __webpack_require__(483); -var ParseTilesets = __webpack_require__(484); -var ParseObjectLayers = __webpack_require__(487); -var BuildTilesetIndex = __webpack_require__(489); -var AssignTileProperties = __webpack_require__(490); +var Formats = __webpack_require__(33); +var MapData = __webpack_require__(102); +var ParseTileLayers = __webpack_require__(480); +var ParseImageLayers = __webpack_require__(482); +var ParseTilesets = __webpack_require__(483); +var ParseObjectLayers = __webpack_require__(486); +var BuildTilesetIndex = __webpack_require__(488); +var AssignTileProperties = __webpack_require__(489); /** * Parses a Tiled JSON object into a new MapData object. @@ -107746,11 +107800,13 @@ var AssignTileProperties = __webpack_require__(490); */ var ParseJSONTiled = function (name, json, insertNull) { - if (json.orientation == 'isometric') + if (json.orientation === 'isometric') { console.warn('isometric map types are WIP in this version of Phaser'); - } else if (json.orientation !== 'orthogonal') { + } + else if (json.orientation !== 'orthogonal') + { console.warn('Only orthogonal map types are supported in this version of Phaser'); return null; } @@ -107790,7 +107846,7 @@ module.exports = ParseJSONTiled; /***/ }), -/* 481 */ +/* 480 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -107799,12 +107855,12 @@ module.exports = ParseJSONTiled; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Base64Decode = __webpack_require__(482); +var Base64Decode = __webpack_require__(481); var GetFastValue = __webpack_require__(2); -var LayerData = __webpack_require__(104); -var ParseGID = __webpack_require__(223); -var Tile = __webpack_require__(75); -var CreateGroupLayer = __webpack_require__(224); +var LayerData = __webpack_require__(101); +var ParseGID = __webpack_require__(221); +var Tile = __webpack_require__(73); +var CreateGroupLayer = __webpack_require__(222); /** * Parses all tilemap layers in a Tiled JSON object into new LayerData objects. @@ -107926,7 +107982,6 @@ var ParseTileLayers = function (json, insertNull) orientation: json.orientation }); - console.log("layerdata orientation", layerData.orientation) for (var c = 0; c < curl.height; c++) { @@ -108001,7 +108056,6 @@ var ParseTileLayers = function (json, insertNull) properties: GetFastValue(curl, 'properties', {}), orientation: json.orientation }); - console.log("layerdata orientation", layerData.orientation) var row = []; // Loop through the data field in the JSON. @@ -108052,7 +108106,7 @@ module.exports = ParseTileLayers; /***/ }), -/* 482 */ +/* 481 */ /***/ (function(module, exports) { /** @@ -108095,7 +108149,7 @@ module.exports = Base64Decode; /***/ }), -/* 483 */ +/* 482 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108105,7 +108159,7 @@ module.exports = Base64Decode; */ var GetFastValue = __webpack_require__(2); -var CreateGroupLayer = __webpack_require__(224); +var CreateGroupLayer = __webpack_require__(222); /** * Parses a Tiled JSON object into an array of objects with details about the image layers. @@ -108183,7 +108237,7 @@ module.exports = ParseImageLayers; /***/ }), -/* 484 */ +/* 483 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108192,9 +108246,9 @@ module.exports = ParseImageLayers; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tileset = __webpack_require__(141); -var ImageCollection = __webpack_require__(485); -var ParseObject = __webpack_require__(225); +var Tileset = __webpack_require__(138); +var ImageCollection = __webpack_require__(484); +var ParseObject = __webpack_require__(223); /** * Tilesets and Image Collections @@ -108352,7 +108406,7 @@ module.exports = ParseTilesets; /***/ }), -/* 485 */ +/* 484 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108524,7 +108578,7 @@ module.exports = ImageCollection; /***/ }), -/* 486 */ +/* 485 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108533,7 +108587,7 @@ module.exports = ImageCollection; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HasValue = __webpack_require__(99); +var HasValue = __webpack_require__(105); /** * Returns a new object that only contains the `keys` that were found on the object provided. @@ -108568,7 +108622,7 @@ module.exports = Pick; /***/ }), -/* 487 */ +/* 486 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108578,9 +108632,9 @@ module.exports = Pick; */ var GetFastValue = __webpack_require__(2); -var ParseObject = __webpack_require__(225); -var ObjectLayer = __webpack_require__(488); -var CreateGroupLayer = __webpack_require__(224); +var ParseObject = __webpack_require__(223); +var ObjectLayer = __webpack_require__(487); +var CreateGroupLayer = __webpack_require__(222); /** * Parses a Tiled JSON object into an array of ObjectLayer objects. @@ -108667,7 +108721,7 @@ module.exports = ParseObjectLayers; /***/ }), -/* 488 */ +/* 487 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108789,7 +108843,7 @@ module.exports = ObjectLayer; /***/ }), -/* 489 */ +/* 488 */ /***/ (function(module, exports) { /** @@ -108862,7 +108916,7 @@ module.exports = BuildTilesetIndex; /***/ }), -/* 490 */ +/* 489 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108935,7 +108989,7 @@ module.exports = AssignTileProperties; /***/ }), -/* 491 */ +/* 490 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -108944,10 +108998,10 @@ module.exports = AssignTileProperties; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Formats = __webpack_require__(32); -var MapData = __webpack_require__(105); -var ParseTileLayers = __webpack_require__(492); -var ParseTilesets = __webpack_require__(493); +var Formats = __webpack_require__(33); +var MapData = __webpack_require__(102); +var ParseTileLayers = __webpack_require__(491); +var ParseTilesets = __webpack_require__(492); /** * Parses a Weltmeister JSON object into a new MapData object. @@ -109002,7 +109056,7 @@ module.exports = ParseWeltmeister; /***/ }), -/* 492 */ +/* 491 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -109011,8 +109065,8 @@ module.exports = ParseWeltmeister; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var LayerData = __webpack_require__(104); -var Tile = __webpack_require__(75); +var LayerData = __webpack_require__(101); +var Tile = __webpack_require__(73); /** * [description] @@ -109086,7 +109140,7 @@ module.exports = ParseTileLayers; /***/ }), -/* 493 */ +/* 492 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -109095,7 +109149,7 @@ module.exports = ParseTileLayers; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Tileset = __webpack_require__(141); +var Tileset = __webpack_require__(138); /** * [description] @@ -109137,7 +109191,7 @@ module.exports = ParseTilesets; /***/ }), -/* 494 */ +/* 493 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -109148,16 +109202,16 @@ module.exports = ParseTilesets; var Class = __webpack_require__(0); var DegToRad = __webpack_require__(35); -var DynamicTilemapLayer = __webpack_require__(495); +var DynamicTilemapLayer = __webpack_require__(494); var Extend = __webpack_require__(17); -var Formats = __webpack_require__(32); -var LayerData = __webpack_require__(104); -var Rotate = __webpack_require__(330); -var SpliceOne = __webpack_require__(80); -var StaticTilemapLayer = __webpack_require__(496); -var Tile = __webpack_require__(75); -var TilemapComponents = __webpack_require__(137); -var Tileset = __webpack_require__(141); +var Formats = __webpack_require__(33); +var LayerData = __webpack_require__(101); +var Rotate = __webpack_require__(328); +var SpliceOne = __webpack_require__(79); +var StaticTilemapLayer = __webpack_require__(495); +var Tile = __webpack_require__(73); +var TilemapComponents = __webpack_require__(136); +var Tileset = __webpack_require__(138); /** * @callback TilemapFilterCallback @@ -109277,7 +109331,6 @@ var Tilemap = new Class({ * @since 3.0.0 */ this.orientation = mapData.orientation; - console.log("map orientation :" + this.orientation) /** * The render (draw) order of the map data (as specified in Tiled), usually 'right-down'. @@ -109647,8 +109700,7 @@ var Tilemap = new Class({ height: height, orientation: this.orientation }); - console.log("tm orientation : ",layerData.orientation) - + var row; for (var tileY = 0; tileY < height; tileY++) @@ -111490,7 +111542,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.TileToWorldX(tileX, camera, layer, this.orientation); + return TilemapComponents.TileToWorldX(tileX, camera, layer); }, /** @@ -111515,7 +111567,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.TileToWorldY(tileX, camera, layer, this.orientation); + return TilemapComponents.TileToWorldY(tileX, camera, layer); }, /** @@ -111542,7 +111594,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.TileToWorldXY(tileX, tileY, point, camera, layer, this.orientation); + return TilemapComponents.TileToWorldXY(tileX, tileY, point, camera, layer); }, /** @@ -111613,7 +111665,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.WorldToTileX(worldX, snapToFloor, camera, layer, this.orientation); + return TilemapComponents.WorldToTileX(worldX, snapToFloor, camera, layer); }, /** @@ -111638,7 +111690,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.WorldToTileY(worldY, snapToFloor, camera, layer,this.orientation); + return TilemapComponents.WorldToTileY(worldY, snapToFloor, camera, layer); }, /** @@ -111666,7 +111718,7 @@ var Tilemap = new Class({ if (layer === null) { return null; } - return TilemapComponents.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, layer, this.orientation); + return TilemapComponents.WorldToTileXY(worldX, worldY, snapToFloor, point, camera, layer); }, /** @@ -111697,7 +111749,7 @@ module.exports = Tilemap; /***/ }), -/* 495 */ +/* 494 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -111708,9 +111760,9 @@ module.exports = Tilemap; var Class = __webpack_require__(0); var Components = __webpack_require__(11); -var DynamicTilemapLayerRender = __webpack_require__(1341); +var DynamicTilemapLayerRender = __webpack_require__(1337); var GameObject = __webpack_require__(13); -var TilemapComponents = __webpack_require__(137); +var TilemapComponents = __webpack_require__(136); /** * @classdesc @@ -111951,8 +112003,8 @@ var DynamicTilemapLayer = new Class({ this.initPipeline('TextureTintPipeline'); - console.log("layer sizes") - console.log(this.layer.tileWidth,this.layer.tileHeight) + console.log('layer sizes'); + console.log(this.layer.tileWidth,this.layer.tileHeight); }, /** @@ -113021,7 +113073,7 @@ module.exports = DynamicTilemapLayer; /***/ }), -/* 496 */ +/* 495 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -113034,10 +113086,10 @@ var Class = __webpack_require__(0); var Components = __webpack_require__(11); var GameEvents = __webpack_require__(18); var GameObject = __webpack_require__(13); -var StaticTilemapLayerRender = __webpack_require__(1344); -var TilemapComponents = __webpack_require__(137); +var StaticTilemapLayerRender = __webpack_require__(1340); +var TilemapComponents = __webpack_require__(136); var TransformMatrix = __webpack_require__(30); -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * @classdesc @@ -114518,7 +114570,7 @@ module.exports = StaticTilemapLayer; /***/ }), -/* 497 */ +/* 496 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -114831,7 +114883,7 @@ module.exports = TimerEvent; /***/ }), -/* 498 */ +/* 497 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -114840,7 +114892,7 @@ module.exports = TimerEvent; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RESERVED = __webpack_require__(1353); +var RESERVED = __webpack_require__(1349); /** * Internal function used by the Tween Builder to return an array of properties @@ -114892,7 +114944,7 @@ module.exports = GetProps; /***/ }), -/* 499 */ +/* 498 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -114940,7 +114992,7 @@ module.exports = GetTweens; /***/ }), -/* 500 */ +/* 499 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -114949,15 +115001,15 @@ module.exports = GetTweens; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Defaults = __webpack_require__(229); +var Defaults = __webpack_require__(227); var GetAdvancedValue = __webpack_require__(14); -var GetBoolean = __webpack_require__(88); -var GetEaseFunction = __webpack_require__(70); -var GetNewValue = __webpack_require__(142); +var GetBoolean = __webpack_require__(87); +var GetEaseFunction = __webpack_require__(67); +var GetNewValue = __webpack_require__(139); var GetValue = __webpack_require__(6); -var GetValueOp = __webpack_require__(228); -var Tween = __webpack_require__(230); -var TweenData = __webpack_require__(232); +var GetValueOp = __webpack_require__(226); +var Tween = __webpack_require__(228); +var TweenData = __webpack_require__(230); /** * Creates a new Number Tween. @@ -115070,7 +115122,7 @@ module.exports = NumberTweenBuilder; /***/ }), -/* 501 */ +/* 500 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -115079,7 +115131,7 @@ module.exports = NumberTweenBuilder; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetEaseFunction = __webpack_require__(70); +var GetEaseFunction = __webpack_require__(67); var GetValue = __webpack_require__(6); var MATH_CONST = __webpack_require__(15); @@ -115316,7 +115368,7 @@ module.exports = StaggerBuilder; /***/ }), -/* 502 */ +/* 501 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -115325,17 +115377,17 @@ module.exports = StaggerBuilder; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clone = __webpack_require__(67); -var Defaults = __webpack_require__(229); +var Clone = __webpack_require__(65); +var Defaults = __webpack_require__(227); var GetAdvancedValue = __webpack_require__(14); -var GetBoolean = __webpack_require__(88); -var GetEaseFunction = __webpack_require__(70); -var GetNewValue = __webpack_require__(142); -var GetTargets = __webpack_require__(227); -var GetTweens = __webpack_require__(499); +var GetBoolean = __webpack_require__(87); +var GetEaseFunction = __webpack_require__(67); +var GetNewValue = __webpack_require__(139); +var GetTargets = __webpack_require__(225); +var GetTweens = __webpack_require__(498); var GetValue = __webpack_require__(6); -var Timeline = __webpack_require__(503); -var TweenBuilder = __webpack_require__(143); +var Timeline = __webpack_require__(502); +var TweenBuilder = __webpack_require__(140); /** * Builds a Timeline of Tweens based on a configuration object. @@ -115468,7 +115520,7 @@ module.exports = TimelineBuilder; /***/ }), -/* 503 */ +/* 502 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -115478,10 +115530,10 @@ module.exports = TimelineBuilder; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(231); -var TweenBuilder = __webpack_require__(143); -var TWEEN_CONST = __webpack_require__(89); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(229); +var TweenBuilder = __webpack_require__(140); +var TWEEN_CONST = __webpack_require__(88); /** * @classdesc @@ -116373,7 +116425,7 @@ module.exports = Timeline; /***/ }), -/* 504 */ +/* 503 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -116382,9 +116434,9 @@ module.exports = Timeline; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseAnimation = __webpack_require__(149); +var BaseAnimation = __webpack_require__(146); var Class = __webpack_require__(0); -var Events = __webpack_require__(111); +var Events = __webpack_require__(108); /** * @classdesc @@ -117551,7 +117603,7 @@ module.exports = Animation; /***/ }), -/* 505 */ +/* 504 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -117561,12 +117613,12 @@ module.exports = Animation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CanvasSnapshot = __webpack_require__(506); +var CanvasSnapshot = __webpack_require__(505); var CameraEvents = __webpack_require__(48); var Class = __webpack_require__(0); var CONST = __webpack_require__(29); -var GetBlendModes = __webpack_require__(507); -var ScaleEvents = __webpack_require__(92); +var GetBlendModes = __webpack_require__(506); +var ScaleEvents = __webpack_require__(91); var TransformMatrix = __webpack_require__(30); /** @@ -118348,7 +118400,7 @@ module.exports = CanvasRenderer; /***/ }), -/* 506 */ +/* 505 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -118358,7 +118410,7 @@ module.exports = CanvasRenderer; */ var CanvasPool = __webpack_require__(26); -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); var GetFastValue = __webpack_require__(2); /** @@ -118441,7 +118493,7 @@ module.exports = CanvasSnapshot; /***/ }), -/* 507 */ +/* 506 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -118451,7 +118503,7 @@ module.exports = CanvasSnapshot; */ var modes = __webpack_require__(52); -var CanvasFeatures = __webpack_require__(315); +var CanvasFeatures = __webpack_require__(313); /** * Returns an array which maps the default blend modes to supported Canvas blend modes. @@ -118505,7 +118557,7 @@ module.exports = GetBlendModes; /***/ }), -/* 508 */ +/* 507 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -118515,25 +118567,25 @@ module.exports = GetBlendModes; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BaseCamera = __webpack_require__(91); +var BaseCamera = __webpack_require__(90); var CameraEvents = __webpack_require__(48); var Class = __webpack_require__(0); var CONST = __webpack_require__(29); var GameEvents = __webpack_require__(18); -var IsSizePowerOfTwo = __webpack_require__(118); +var IsSizePowerOfTwo = __webpack_require__(115); var NOOP = __webpack_require__(1); -var ScaleEvents = __webpack_require__(92); -var SpliceOne = __webpack_require__(80); -var TextureEvents = __webpack_require__(119); +var ScaleEvents = __webpack_require__(91); +var SpliceOne = __webpack_require__(79); +var TextureEvents = __webpack_require__(116); var TransformMatrix = __webpack_require__(30); -var Utils = __webpack_require__(10); -var WebGLSnapshot = __webpack_require__(509); +var Utils = __webpack_require__(9); +var WebGLSnapshot = __webpack_require__(508); // Default Pipelines -var BitmapMaskPipeline = __webpack_require__(510); -var ForwardDiffuseLightPipeline = __webpack_require__(511); -var TextureTintPipeline = __webpack_require__(236); -var TextureTintStripPipeline = __webpack_require__(512); +var BitmapMaskPipeline = __webpack_require__(509); +var ForwardDiffuseLightPipeline = __webpack_require__(510); +var TextureTintPipeline = __webpack_require__(234); +var TextureTintStripPipeline = __webpack_require__(511); /** * @callback WebGLContextCallback @@ -121057,14 +121109,16 @@ var WebGLRenderer = new Class({ }, /** - * [description] + * Sets a 1f uniform value on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat1 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {number} x - [description] + * @param {number} x - The 1f value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -121078,15 +121132,17 @@ var WebGLRenderer = new Class({ }, /** - * [description] + * Sets the 2f uniform values on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat2 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {number} x - [description] - * @param {number} y - [description] + * @param {number} x - The 2f x value to set on the named uniform. + * @param {number} y - The 2f y value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -121100,16 +121156,18 @@ var WebGLRenderer = new Class({ }, /** - * [description] + * Sets the 3f uniform values on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat3 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {number} x - [description] - * @param {number} y - [description] - * @param {number} z - [description] + * @param {number} x - The 3f x value to set on the named uniform. + * @param {number} y - The 3f y value to set on the named uniform. + * @param {number} z - The 3f z value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -121123,17 +121181,19 @@ var WebGLRenderer = new Class({ }, /** - * Sets uniform of a WebGLProgram + * Sets the 4f uniform values on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat4 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {number} x - X component - * @param {number} y - Y component - * @param {number} z - Z component - * @param {number} w - W component + * @param {number} x - The 4f x value to set on the named uniform. + * @param {number} y - The 4f y value to set on the named uniform. + * @param {number} z - The 4f z value to set on the named uniform. + * @param {number} w - The 4f w value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -121147,7 +121207,9 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the value of a 1fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat1v * @since 3.13.0 @@ -121168,7 +121230,9 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the value of a 2fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat2v * @since 3.13.0 @@ -121189,7 +121253,9 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the value of a 3fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat3v * @since 3.13.0 @@ -121210,7 +121276,9 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the value of a 4fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setFloat4v * @since 3.13.0 @@ -121232,14 +121300,16 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets a 1i uniform value on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setInt1 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {integer} x - [description] + * @param {integer} x - The 1i value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -121253,15 +121323,17 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the 2i uniform values on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setInt2 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {integer} x - The new X component - * @param {integer} y - The new Y component + * @param {integer} x - The 2i x value to set on the named uniform. + * @param {integer} y - The 2i y value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -121275,16 +121347,18 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the 3i uniform values on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setInt3 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {integer} x - The new X component - * @param {integer} y - The new Y component - * @param {integer} z - The new Z component + * @param {integer} x - The 3i x value to set on the named uniform. + * @param {integer} y - The 3i y value to set on the named uniform. + * @param {integer} z - The 3i z value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -121298,17 +121372,19 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a uniform variable in the given WebGLProgram. + * Sets the 4i uniform values on the given shader. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setInt4 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {integer} x - X component - * @param {integer} y - Y component - * @param {integer} z - Z component - * @param {integer} w - W component + * @param {integer} x - The 4i x value to set on the named uniform. + * @param {integer} y - The 4i y value to set on the named uniform. + * @param {integer} z - The 4i z value to set on the named uniform. + * @param {integer} w - The 4i w value to set on the named uniform. * * @return {this} This WebGL Renderer instance. */ @@ -121322,7 +121398,9 @@ var WebGLRenderer = new Class({ }, /** - * Sets the value of a 2x2 matrix uniform variable in the given WebGLProgram. + * Sets the value of a matrix 2fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setMatrix2 * @since 3.0.0 @@ -121330,7 +121408,7 @@ var WebGLRenderer = new Class({ * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. * @param {boolean} transpose - The value indicating whether to transpose the matrix. Must be false. - * @param {Float32Array} matrix - The new matrix value. + * @param {Float32Array} matrix - A Float32Array or sequence of 4 float values. * * @return {this} This WebGL Renderer instance. */ @@ -121344,15 +121422,17 @@ var WebGLRenderer = new Class({ }, /** - * [description] + * Sets the value of a matrix 3fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setMatrix3 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {boolean} transpose - [description] - * @param {Float32Array} matrix - [description] + * @param {boolean} transpose - The value indicating whether to transpose the matrix. Must be false. + * @param {Float32Array} matrix - A Float32Array or sequence of 9 float values. * * @return {this} This WebGL Renderer instance. */ @@ -121366,15 +121446,17 @@ var WebGLRenderer = new Class({ }, /** - * Sets uniform of a WebGLProgram + * Sets the value of a matrix 4fv uniform variable in the given WebGLProgram. + * + * If the shader is not currently active, it is made active first. * * @method Phaser.Renderer.WebGL.WebGLRenderer#setMatrix4 * @since 3.0.0 * * @param {WebGLProgram} program - The target WebGLProgram from which the uniform location will be looked-up. * @param {string} name - The name of the uniform to look-up and modify. - * @param {boolean} transpose - Is the matrix transposed - * @param {Float32Array} matrix - Matrix data + * @param {boolean} transpose - The value indicating whether to transpose the matrix. Must be false. + * @param {Float32Array} matrix - A Float32Array or sequence of 16 float values. * * @return {this} This WebGL Renderer instance. */ @@ -121464,7 +121546,7 @@ module.exports = WebGLRenderer; /***/ }), -/* 509 */ +/* 508 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -121474,7 +121556,7 @@ module.exports = WebGLRenderer; */ var CanvasPool = __webpack_require__(26); -var Color = __webpack_require__(33); +var Color = __webpack_require__(32); var GetFastValue = __webpack_require__(2); /** @@ -121574,7 +121656,7 @@ module.exports = WebGLSnapshot; /***/ }), -/* 510 */ +/* 509 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -121585,9 +121667,9 @@ module.exports = WebGLSnapshot; */ var Class = __webpack_require__(0); -var ShaderSourceFS = __webpack_require__(781); -var ShaderSourceVS = __webpack_require__(782); -var WebGLPipeline = __webpack_require__(145); +var ShaderSourceFS = __webpack_require__(780); +var ShaderSourceVS = __webpack_require__(781); +var WebGLPipeline = __webpack_require__(142); /** * @classdesc @@ -121705,21 +121787,23 @@ var BitmapMaskPipeline = new Class({ }, /** - * [description] + * Resizes this pipeline and updates the projection. * * @method Phaser.Renderer.WebGL.Pipelines.BitmapMaskPipeline#resize * @since 3.0.0 * - * @param {number} width - [description] - * @param {number} height - [description] - * @param {number} resolution - [description] + * @param {number} width - The new width. + * @param {number} height - The new height. + * @param {number} resolution - The resolution. * * @return {this} This WebGLPipeline instance. */ resize: function (width, height, resolution) { WebGLPipeline.prototype.resize.call(this, width, height, resolution); + this.resolutionDirty = true; + return this; }, @@ -121732,7 +121816,7 @@ var BitmapMaskPipeline = new Class({ * * @param {Phaser.GameObjects.GameObject} mask - GameObject used as mask. * @param {Phaser.GameObjects.GameObject} maskedObject - GameObject masked by the mask GameObject. - * @param {Phaser.Cameras.Scene2D.Camera} camera - [description] + * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera rendering the current mask. */ beginMask: function (mask, maskedObject, camera) { @@ -121837,7 +121921,7 @@ module.exports = BitmapMaskPipeline; /***/ }), -/* 511 */ +/* 510 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -121848,8 +121932,8 @@ module.exports = BitmapMaskPipeline; */ var Class = __webpack_require__(0); -var ShaderSourceFS = __webpack_require__(783); -var TextureTintPipeline = __webpack_require__(236); +var ShaderSourceFS = __webpack_require__(782); +var TextureTintPipeline = __webpack_require__(234); var LIGHT_COUNT = 10; @@ -122358,7 +122442,7 @@ module.exports = ForwardDiffuseLightPipeline; /***/ }), -/* 512 */ +/* 511 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122370,11 +122454,11 @@ module.exports = ForwardDiffuseLightPipeline; var Class = __webpack_require__(0); var GetFastValue = __webpack_require__(2); -var ModelViewProjection = __webpack_require__(237); -var ShaderSourceFS = __webpack_require__(339); -var ShaderSourceVS = __webpack_require__(340); +var ModelViewProjection = __webpack_require__(235); +var ShaderSourceFS = __webpack_require__(337); +var ShaderSourceVS = __webpack_require__(338); var TransformMatrix = __webpack_require__(30); -var WebGLPipeline = __webpack_require__(145); +var WebGLPipeline = __webpack_require__(142); /** * @classdesc @@ -122768,7 +122852,7 @@ module.exports = TextureTintStripPipeline; /***/ }), -/* 513 */ +/* 512 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122781,7 +122865,7 @@ var Axes = {}; module.exports = Axes; -var Vector = __webpack_require__(101); +var Vector = __webpack_require__(98); var Common = __webpack_require__(37); (function() { @@ -122838,7 +122922,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 514 */ +/* 513 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122853,24 +122937,24 @@ var Common = __webpack_require__(37); module.exports = { - Bounce: __webpack_require__(1422), - Collision: __webpack_require__(1423), - Force: __webpack_require__(1424), - Friction: __webpack_require__(1425), - Gravity: __webpack_require__(1426), - Mass: __webpack_require__(1427), - Static: __webpack_require__(1428), - Sensor: __webpack_require__(1429), - SetBody: __webpack_require__(1430), - Sleep: __webpack_require__(1431), - Transform: __webpack_require__(1448), - Velocity: __webpack_require__(1449) + Bounce: __webpack_require__(1388), + Collision: __webpack_require__(1389), + Force: __webpack_require__(1390), + Friction: __webpack_require__(1391), + Gravity: __webpack_require__(1392), + Mass: __webpack_require__(1393), + Static: __webpack_require__(1394), + Sensor: __webpack_require__(1395), + SetBody: __webpack_require__(1396), + Sleep: __webpack_require__(1397), + Transform: __webpack_require__(1414), + Velocity: __webpack_require__(1415) }; /***/ }), -/* 515 */ +/* 514 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122885,9 +122969,9 @@ var Detector = {}; module.exports = Detector; -var SAT = __webpack_require__(516); -var Pair = __webpack_require__(472); -var Bounds = __webpack_require__(102); +var SAT = __webpack_require__(515); +var Pair = __webpack_require__(468); +var Bounds = __webpack_require__(99); (function() { @@ -122983,7 +123067,7 @@ var Bounds = __webpack_require__(102); /***/ }), -/* 516 */ +/* 515 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -122998,8 +123082,8 @@ var SAT = {}; module.exports = SAT; -var Vertices = __webpack_require__(86); -var Vector = __webpack_require__(101); +var Vertices = __webpack_require__(85); +var Vector = __webpack_require__(98); (function() { @@ -123259,7 +123343,7 @@ var Vector = __webpack_require__(101); /***/ }), -/* 517 */ +/* 516 */ /***/ (function(module, exports) { var g; @@ -123285,9 +123369,10 @@ module.exports = g; /***/ }), -/* 518 */ +/* 517 */ /***/ (function(module, exports, __webpack_require__) { +__webpack_require__(518); __webpack_require__(519); __webpack_require__(520); __webpack_require__(521); @@ -123295,11 +123380,10 @@ __webpack_require__(522); __webpack_require__(523); __webpack_require__(524); __webpack_require__(525); -__webpack_require__(526); /***/ }), -/* 519 */ +/* 518 */ /***/ (function(module, exports) { /** @@ -123339,7 +123423,7 @@ if (!Array.prototype.forEach) /***/ }), -/* 520 */ +/* 519 */ /***/ (function(module, exports) { /** @@ -123355,7 +123439,7 @@ if (!Array.isArray) /***/ }), -/* 521 */ +/* 520 */ /***/ (function(module, exports) { /* Copyright 2013 Chris Wilson @@ -123542,7 +123626,7 @@ BiquadFilterNode.type and OscillatorNode.type. /***/ }), -/* 522 */ +/* 521 */ /***/ (function(module, exports) { /** @@ -123557,7 +123641,7 @@ if (!window.console) /***/ }), -/* 523 */ +/* 522 */ /***/ (function(module, exports) { // ES6 Math.trunc - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc @@ -123569,7 +123653,7 @@ if (!Math.trunc) { /***/ }), -/* 524 */ +/* 523 */ /***/ (function(module, exports) { /** @@ -123606,7 +123690,7 @@ if (!Math.trunc) { /***/ }), -/* 525 */ +/* 524 */ /***/ (function(module, exports) { // References: @@ -123663,7 +123747,7 @@ if (!window.cancelAnimationFrame) /***/ }), -/* 526 */ +/* 525 */ /***/ (function(module, exports) { /** @@ -123716,7 +123800,7 @@ if (typeof window.Uint32Array !== 'function' && typeof window.Uint32Array !== 'o /***/ }), -/* 527 */ +/* 526 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123725,7 +123809,7 @@ if (typeof window.Uint32Array !== 'function' && typeof window.Uint32Array !== 'o * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var QuickSet = __webpack_require__(241); +var QuickSet = __webpack_require__(239); /** * Takes an array of Game Objects, or any objects that have public `x` and `y` properties, and aligns them next to each other. @@ -123764,7 +123848,7 @@ module.exports = AlignTo; /***/ }), -/* 528 */ +/* 527 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123805,7 +123889,7 @@ module.exports = Angle; /***/ }), -/* 529 */ +/* 528 */ /***/ (function(module, exports) { /** @@ -123844,7 +123928,7 @@ module.exports = Call; /***/ }), -/* 530 */ +/* 529 */ /***/ (function(module, exports) { /** @@ -123902,7 +123986,7 @@ module.exports = GetFirst; /***/ }), -/* 531 */ +/* 530 */ /***/ (function(module, exports) { /** @@ -123960,7 +124044,7 @@ module.exports = GetLast; /***/ }), -/* 532 */ +/* 531 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -123969,11 +124053,11 @@ module.exports = GetLast; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AlignIn = __webpack_require__(254); -var CONST = __webpack_require__(106); +var AlignIn = __webpack_require__(252); +var CONST = __webpack_require__(103); var GetFastValue = __webpack_require__(2); var NOOP = __webpack_require__(1); -var Zone = __webpack_require__(110); +var Zone = __webpack_require__(107); var tempZone = new Zone({ sys: { queueDepthSort: NOOP, events: { once: NOOP } } }, 0, 0, 1, 1); @@ -124059,7 +124143,7 @@ module.exports = GridAlign; /***/ }), -/* 533 */ +/* 532 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -124354,7 +124438,7 @@ module.exports = Alpha; /***/ }), -/* 534 */ +/* 533 */ /***/ (function(module, exports) { /** @@ -124381,7 +124465,7 @@ module.exports = 'add'; /***/ }), -/* 535 */ +/* 534 */ /***/ (function(module, exports) { /** @@ -124409,7 +124493,7 @@ module.exports = 'complete'; /***/ }), -/* 536 */ +/* 535 */ /***/ (function(module, exports) { /** @@ -124436,7 +124520,7 @@ module.exports = 'repeat'; /***/ }), -/* 537 */ +/* 536 */ /***/ (function(module, exports) { /** @@ -124464,7 +124548,7 @@ module.exports = 'restart'; /***/ }), -/* 538 */ +/* 537 */ /***/ (function(module, exports) { /** @@ -124492,7 +124576,7 @@ module.exports = 'start'; /***/ }), -/* 539 */ +/* 538 */ /***/ (function(module, exports) { /** @@ -124516,7 +124600,7 @@ module.exports = 'pauseall'; /***/ }), -/* 540 */ +/* 539 */ /***/ (function(module, exports) { /** @@ -124540,7 +124624,7 @@ module.exports = 'remove'; /***/ }), -/* 541 */ +/* 540 */ /***/ (function(module, exports) { /** @@ -124563,7 +124647,7 @@ module.exports = 'resumeall'; /***/ }), -/* 542 */ +/* 541 */ /***/ (function(module, exports) { /** @@ -124592,7 +124676,7 @@ module.exports = 'animationcomplete'; /***/ }), -/* 543 */ +/* 542 */ /***/ (function(module, exports) { /** @@ -124620,7 +124704,7 @@ module.exports = 'animationcomplete-'; /***/ }), -/* 544 */ +/* 543 */ /***/ (function(module, exports) { /** @@ -124649,7 +124733,7 @@ module.exports = 'animationrepeat-'; /***/ }), -/* 545 */ +/* 544 */ /***/ (function(module, exports) { /** @@ -124677,7 +124761,7 @@ module.exports = 'animationrestart-'; /***/ }), -/* 546 */ +/* 545 */ /***/ (function(module, exports) { /** @@ -124705,7 +124789,7 @@ module.exports = 'animationstart-'; /***/ }), -/* 547 */ +/* 546 */ /***/ (function(module, exports) { /** @@ -124734,7 +124818,7 @@ module.exports = 'animationupdate-'; /***/ }), -/* 548 */ +/* 547 */ /***/ (function(module, exports) { /** @@ -124764,7 +124848,7 @@ module.exports = 'animationrepeat'; /***/ }), -/* 549 */ +/* 548 */ /***/ (function(module, exports) { /** @@ -124793,7 +124877,7 @@ module.exports = 'animationrestart'; /***/ }), -/* 550 */ +/* 549 */ /***/ (function(module, exports) { /** @@ -124822,7 +124906,7 @@ module.exports = 'animationstart'; /***/ }), -/* 551 */ +/* 550 */ /***/ (function(module, exports) { /** @@ -124852,7 +124936,7 @@ module.exports = 'animationupdate'; /***/ }), -/* 552 */ +/* 551 */ /***/ (function(module, exports) { /** @@ -125001,7 +125085,7 @@ module.exports = ComputedSize; /***/ }), -/* 553 */ +/* 552 */ /***/ (function(module, exports) { /** @@ -125126,7 +125210,7 @@ module.exports = Crop; /***/ }), -/* 554 */ +/* 553 */ /***/ (function(module, exports) { /** @@ -125290,7 +125374,7 @@ module.exports = Flip; /***/ }), -/* 555 */ +/* 554 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -125300,7 +125384,7 @@ module.exports = Flip; */ var Rectangle = __webpack_require__(12); -var RotateAround = __webpack_require__(275); +var RotateAround = __webpack_require__(273); var Vector2 = __webpack_require__(3); /** @@ -125649,7 +125733,7 @@ module.exports = GetBounds; /***/ }), -/* 556 */ +/* 555 */ /***/ (function(module, exports) { /** @@ -125672,7 +125756,7 @@ module.exports = 'blur'; /***/ }), -/* 557 */ +/* 556 */ /***/ (function(module, exports) { /** @@ -125694,7 +125778,7 @@ module.exports = 'boot'; /***/ }), -/* 558 */ +/* 557 */ /***/ (function(module, exports) { /** @@ -125717,7 +125801,7 @@ module.exports = 'contextlost'; /***/ }), -/* 559 */ +/* 558 */ /***/ (function(module, exports) { /** @@ -125740,7 +125824,7 @@ module.exports = 'contextrestored'; /***/ }), -/* 560 */ +/* 559 */ /***/ (function(module, exports) { /** @@ -125763,7 +125847,7 @@ module.exports = 'destroy'; /***/ }), -/* 561 */ +/* 560 */ /***/ (function(module, exports) { /** @@ -125785,7 +125869,7 @@ module.exports = 'focus'; /***/ }), -/* 562 */ +/* 561 */ /***/ (function(module, exports) { /** @@ -125811,7 +125895,7 @@ module.exports = 'hidden'; /***/ }), -/* 563 */ +/* 562 */ /***/ (function(module, exports) { /** @@ -125832,7 +125916,7 @@ module.exports = 'pause'; /***/ }), -/* 564 */ +/* 563 */ /***/ (function(module, exports) { /** @@ -125858,7 +125942,7 @@ module.exports = 'postrender'; /***/ }), -/* 565 */ +/* 564 */ /***/ (function(module, exports) { /** @@ -125883,7 +125967,7 @@ module.exports = 'poststep'; /***/ }), -/* 566 */ +/* 565 */ /***/ (function(module, exports) { /** @@ -125908,7 +125992,7 @@ module.exports = 'prerender'; /***/ }), -/* 567 */ +/* 566 */ /***/ (function(module, exports) { /** @@ -125933,7 +126017,7 @@ module.exports = 'prestep'; /***/ }), -/* 568 */ +/* 567 */ /***/ (function(module, exports) { /** @@ -125955,7 +126039,7 @@ module.exports = 'ready'; /***/ }), -/* 569 */ +/* 568 */ /***/ (function(module, exports) { /** @@ -125976,7 +126060,7 @@ module.exports = 'resume'; /***/ }), -/* 570 */ +/* 569 */ /***/ (function(module, exports) { /** @@ -126001,7 +126085,7 @@ module.exports = 'step'; /***/ }), -/* 571 */ +/* 570 */ /***/ (function(module, exports) { /** @@ -126025,7 +126109,7 @@ module.exports = 'visible'; /***/ }), -/* 572 */ +/* 571 */ /***/ (function(module, exports) { /** @@ -126228,7 +126312,7 @@ module.exports = Origin; /***/ }), -/* 573 */ +/* 572 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -126238,9 +126322,9 @@ module.exports = Origin; */ var DegToRad = __webpack_require__(35); -var GetBoolean = __webpack_require__(88); +var GetBoolean = __webpack_require__(87); var GetValue = __webpack_require__(6); -var TWEEN_CONST = __webpack_require__(89); +var TWEEN_CONST = __webpack_require__(88); var Vector2 = __webpack_require__(3); /** @@ -126634,7 +126718,7 @@ module.exports = PathFollower; /***/ }), -/* 574 */ +/* 573 */ /***/ (function(module, exports) { /** @@ -126821,7 +126905,7 @@ module.exports = Size; /***/ }), -/* 575 */ +/* 574 */ /***/ (function(module, exports) { /** @@ -126951,7 +127035,7 @@ module.exports = Texture; /***/ }), -/* 576 */ +/* 575 */ /***/ (function(module, exports) { /** @@ -127159,7 +127243,7 @@ module.exports = TextureCrop; /***/ }), -/* 577 */ +/* 576 */ /***/ (function(module, exports) { /** @@ -127499,7 +127583,7 @@ module.exports = Tint; /***/ }), -/* 578 */ +/* 577 */ /***/ (function(module, exports) { /** @@ -127531,7 +127615,7 @@ module.exports = 'changedata'; /***/ }), -/* 579 */ +/* 578 */ /***/ (function(module, exports) { /** @@ -127561,7 +127645,7 @@ module.exports = 'changedata-'; /***/ }), -/* 580 */ +/* 579 */ /***/ (function(module, exports) { /** @@ -127589,7 +127673,7 @@ module.exports = 'removedata'; /***/ }), -/* 581 */ +/* 580 */ /***/ (function(module, exports) { /** @@ -127617,7 +127701,7 @@ module.exports = 'setdata'; /***/ }), -/* 582 */ +/* 581 */ /***/ (function(module, exports) { /** @@ -127642,7 +127726,7 @@ module.exports = 'destroy'; /***/ }), -/* 583 */ +/* 582 */ /***/ (function(module, exports) { /** @@ -127674,7 +127758,7 @@ module.exports = 'complete'; /***/ }), -/* 584 */ +/* 583 */ /***/ (function(module, exports) { /** @@ -127703,7 +127787,7 @@ module.exports = 'created'; /***/ }), -/* 585 */ +/* 584 */ /***/ (function(module, exports) { /** @@ -127729,7 +127813,7 @@ module.exports = 'error'; /***/ }), -/* 586 */ +/* 585 */ /***/ (function(module, exports) { /** @@ -127761,7 +127845,7 @@ module.exports = 'loop'; /***/ }), -/* 587 */ +/* 586 */ /***/ (function(module, exports) { /** @@ -127789,7 +127873,7 @@ module.exports = 'play'; /***/ }), -/* 588 */ +/* 587 */ /***/ (function(module, exports) { /** @@ -127814,7 +127898,7 @@ module.exports = 'seeked'; /***/ }), -/* 589 */ +/* 588 */ /***/ (function(module, exports) { /** @@ -127840,7 +127924,7 @@ module.exports = 'seeking'; /***/ }), -/* 590 */ +/* 589 */ /***/ (function(module, exports) { /** @@ -127866,7 +127950,7 @@ module.exports = 'stop'; /***/ }), -/* 591 */ +/* 590 */ /***/ (function(module, exports) { /** @@ -127892,7 +127976,7 @@ module.exports = 'timeout'; /***/ }), -/* 592 */ +/* 591 */ /***/ (function(module, exports) { /** @@ -127918,7 +128002,7 @@ module.exports = 'unlocked'; /***/ }), -/* 593 */ +/* 592 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -127959,7 +128043,7 @@ module.exports = IncAlpha; /***/ }), -/* 594 */ +/* 593 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128000,7 +128084,7 @@ module.exports = IncX; /***/ }), -/* 595 */ +/* 594 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128047,7 +128131,7 @@ module.exports = IncXY; /***/ }), -/* 596 */ +/* 595 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128088,7 +128172,7 @@ module.exports = IncY; /***/ }), -/* 597 */ +/* 596 */ /***/ (function(module, exports) { /** @@ -128137,7 +128221,7 @@ module.exports = PlaceOnCircle; /***/ }), -/* 598 */ +/* 597 */ /***/ (function(module, exports) { /** @@ -128189,7 +128273,7 @@ module.exports = PlaceOnEllipse; /***/ }), -/* 599 */ +/* 598 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128198,7 +128282,7 @@ module.exports = PlaceOnEllipse; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetPoints = __webpack_require__(151); +var GetPoints = __webpack_require__(148); /** * Positions an array of Game Objects on evenly spaced points of a Line. @@ -128233,7 +128317,7 @@ module.exports = PlaceOnLine; /***/ }), -/* 600 */ +/* 599 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128242,9 +128326,9 @@ module.exports = PlaceOnLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MarchingAnts = __webpack_require__(284); -var RotateLeft = __webpack_require__(285); -var RotateRight = __webpack_require__(286); +var MarchingAnts = __webpack_require__(282); +var RotateLeft = __webpack_require__(283); +var RotateRight = __webpack_require__(284); /** * Takes an array of Game Objects and positions them on evenly spaced points around the perimeter of a Rectangle. @@ -128291,7 +128375,7 @@ module.exports = PlaceOnRectangle; /***/ }), -/* 601 */ +/* 600 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128300,7 +128384,7 @@ module.exports = PlaceOnRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BresenhamPoints = __webpack_require__(287); +var BresenhamPoints = __webpack_require__(285); /** * Takes an array of Game Objects and positions them on evenly spaced points around the edges of a Triangle. @@ -128352,7 +128436,7 @@ module.exports = PlaceOnTriangle; /***/ }), -/* 602 */ +/* 601 */ /***/ (function(module, exports) { /** @@ -128389,7 +128473,7 @@ module.exports = PlayAnimation; /***/ }), -/* 603 */ +/* 602 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128398,7 +128482,7 @@ module.exports = PlayAnimation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(148); +var Random = __webpack_require__(145); /** * Takes an array of Game Objects and positions them at random locations within the Circle. @@ -128429,7 +128513,7 @@ module.exports = RandomCircle; /***/ }), -/* 604 */ +/* 603 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128438,7 +128522,7 @@ module.exports = RandomCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(155); +var Random = __webpack_require__(152); /** * Takes an array of Game Objects and positions them at random locations within the Ellipse. @@ -128469,7 +128553,7 @@ module.exports = RandomEllipse; /***/ }), -/* 605 */ +/* 604 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128478,7 +128562,7 @@ module.exports = RandomEllipse; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(152); +var Random = __webpack_require__(149); /** * Takes an array of Game Objects and positions them at random locations on the Line. @@ -128509,7 +128593,7 @@ module.exports = RandomLine; /***/ }), -/* 606 */ +/* 605 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128518,7 +128602,7 @@ module.exports = RandomLine; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(153); +var Random = __webpack_require__(150); /** * Takes an array of Game Objects and positions them at random locations within the Rectangle. @@ -128547,7 +128631,7 @@ module.exports = RandomRectangle; /***/ }), -/* 607 */ +/* 606 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128556,7 +128640,7 @@ module.exports = RandomRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Random = __webpack_require__(156); +var Random = __webpack_require__(153); /** * Takes an array of Game Objects and positions them at random locations within the Triangle. @@ -128587,7 +128671,7 @@ module.exports = RandomTriangle; /***/ }), -/* 608 */ +/* 607 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128628,7 +128712,7 @@ module.exports = Rotate; /***/ }), -/* 609 */ +/* 608 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128637,7 +128721,7 @@ module.exports = Rotate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundDistance = __webpack_require__(157); +var RotateAroundDistance = __webpack_require__(154); var DistanceBetween = __webpack_require__(53); /** @@ -128674,7 +128758,7 @@ module.exports = RotateAround; /***/ }), -/* 610 */ +/* 609 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128683,7 +128767,7 @@ module.exports = RotateAround; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MathRotateAroundDistance = __webpack_require__(157); +var MathRotateAroundDistance = __webpack_require__(154); /** * Rotates an array of Game Objects around a point by the given angle and distance. @@ -128723,7 +128807,7 @@ module.exports = RotateAroundDistance; /***/ }), -/* 611 */ +/* 610 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128764,7 +128848,7 @@ module.exports = ScaleX; /***/ }), -/* 612 */ +/* 611 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128811,7 +128895,7 @@ module.exports = ScaleXY; /***/ }), -/* 613 */ +/* 612 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128852,7 +128936,7 @@ module.exports = ScaleY; /***/ }), -/* 614 */ +/* 613 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128893,7 +128977,7 @@ module.exports = SetAlpha; /***/ }), -/* 615 */ +/* 614 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128933,7 +129017,7 @@ module.exports = SetBlendMode; /***/ }), -/* 616 */ +/* 615 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -128974,7 +129058,7 @@ module.exports = SetDepth; /***/ }), -/* 617 */ +/* 616 */ /***/ (function(module, exports) { /** @@ -129013,7 +129097,7 @@ module.exports = SetHitArea; /***/ }), -/* 618 */ +/* 617 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129060,7 +129144,7 @@ module.exports = SetOrigin; /***/ }), -/* 619 */ +/* 618 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129101,7 +129185,7 @@ module.exports = SetRotation; /***/ }), -/* 620 */ +/* 619 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129148,7 +129232,7 @@ module.exports = SetScale; /***/ }), -/* 621 */ +/* 620 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129189,7 +129273,7 @@ module.exports = SetScaleX; /***/ }), -/* 622 */ +/* 621 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129230,7 +129314,7 @@ module.exports = SetScaleY; /***/ }), -/* 623 */ +/* 622 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129277,7 +129361,7 @@ module.exports = SetScrollFactor; /***/ }), -/* 624 */ +/* 623 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129318,7 +129402,7 @@ module.exports = SetScrollFactorX; /***/ }), -/* 625 */ +/* 624 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129359,7 +129443,7 @@ module.exports = SetScrollFactorY; /***/ }), -/* 626 */ +/* 625 */ /***/ (function(module, exports) { /** @@ -129398,7 +129482,7 @@ module.exports = SetTint; /***/ }), -/* 627 */ +/* 626 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129436,7 +129520,7 @@ module.exports = SetVisible; /***/ }), -/* 628 */ +/* 627 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129477,7 +129561,7 @@ module.exports = SetX; /***/ }), -/* 629 */ +/* 628 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129524,7 +129608,7 @@ module.exports = SetXY; /***/ }), -/* 630 */ +/* 629 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129565,7 +129649,7 @@ module.exports = SetY; /***/ }), -/* 631 */ +/* 630 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129695,7 +129779,7 @@ module.exports = ShiftPosition; /***/ }), -/* 632 */ +/* 631 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129704,7 +129788,7 @@ module.exports = ShiftPosition; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayShuffle = __webpack_require__(114); +var ArrayShuffle = __webpack_require__(111); /** * Shuffles the array in place. The shuffled array is both modified and returned. @@ -129728,7 +129812,7 @@ module.exports = Shuffle; /***/ }), -/* 633 */ +/* 632 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129737,7 +129821,7 @@ module.exports = Shuffle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MathSmootherStep = __webpack_require__(158); +var MathSmootherStep = __webpack_require__(155); /** * Smootherstep is a sigmoid-like interpolation and clamping function. @@ -129786,7 +129870,7 @@ module.exports = SmootherStep; /***/ }), -/* 634 */ +/* 633 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129795,7 +129879,7 @@ module.exports = SmootherStep; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MathSmoothStep = __webpack_require__(159); +var MathSmoothStep = __webpack_require__(156); /** * Smoothstep is a sigmoid-like interpolation and clamping function. @@ -129844,7 +129928,7 @@ module.exports = SmoothStep; /***/ }), -/* 635 */ +/* 634 */ /***/ (function(module, exports) { /** @@ -129907,7 +129991,7 @@ module.exports = Spread; /***/ }), -/* 636 */ +/* 635 */ /***/ (function(module, exports) { /** @@ -129943,7 +130027,7 @@ module.exports = ToggleVisible; /***/ }), -/* 637 */ +/* 636 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -129992,7 +130076,7 @@ module.exports = WrapInRectangle; /***/ }), -/* 638 */ +/* 637 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130007,16 +130091,16 @@ module.exports = WrapInRectangle; module.exports = { - Animation: __webpack_require__(149), - AnimationFrame: __webpack_require__(270), - AnimationManager: __webpack_require__(288), - Events: __webpack_require__(111) + Animation: __webpack_require__(146), + AnimationFrame: __webpack_require__(268), + AnimationManager: __webpack_require__(286), + Events: __webpack_require__(108) }; /***/ }), -/* 639 */ +/* 638 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130031,15 +130115,15 @@ module.exports = { module.exports = { - BaseCache: __webpack_require__(289), - CacheManager: __webpack_require__(291), - Events: __webpack_require__(290) + BaseCache: __webpack_require__(287), + CacheManager: __webpack_require__(289), + Events: __webpack_require__(288) }; /***/ }), -/* 640 */ +/* 639 */ /***/ (function(module, exports) { /** @@ -130064,7 +130148,7 @@ module.exports = 'add'; /***/ }), -/* 641 */ +/* 640 */ /***/ (function(module, exports) { /** @@ -130089,7 +130173,7 @@ module.exports = 'remove'; /***/ }), -/* 642 */ +/* 641 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130108,14 +130192,14 @@ module.exports = 'remove'; module.exports = { - Controls: __webpack_require__(643), - Scene2D: __webpack_require__(646) + Controls: __webpack_require__(642), + Scene2D: __webpack_require__(645) }; /***/ }), -/* 643 */ +/* 642 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130130,14 +130214,14 @@ module.exports = { module.exports = { - FixedKeyControl: __webpack_require__(644), - SmoothedKeyControl: __webpack_require__(645) + FixedKeyControl: __webpack_require__(643), + SmoothedKeyControl: __webpack_require__(644) }; /***/ }), -/* 644 */ +/* 643 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130443,7 +130527,7 @@ module.exports = FixedKeyControl; /***/ }), -/* 645 */ +/* 644 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130926,7 +131010,7 @@ module.exports = SmoothedKeyControl; /***/ }), -/* 646 */ +/* 645 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -130941,17 +131025,17 @@ module.exports = SmoothedKeyControl; module.exports = { - Camera: __webpack_require__(292), - BaseCamera: __webpack_require__(91), - CameraManager: __webpack_require__(699), - Effects: __webpack_require__(300), + Camera: __webpack_require__(290), + BaseCamera: __webpack_require__(90), + CameraManager: __webpack_require__(698), + Effects: __webpack_require__(298), Events: __webpack_require__(48) }; /***/ }), -/* 647 */ +/* 646 */ /***/ (function(module, exports) { /** @@ -130974,7 +131058,7 @@ module.exports = 'cameradestroy'; /***/ }), -/* 648 */ +/* 647 */ /***/ (function(module, exports) { /** @@ -131000,7 +131084,7 @@ module.exports = 'camerafadeincomplete'; /***/ }), -/* 649 */ +/* 648 */ /***/ (function(module, exports) { /** @@ -131030,7 +131114,7 @@ module.exports = 'camerafadeinstart'; /***/ }), -/* 650 */ +/* 649 */ /***/ (function(module, exports) { /** @@ -131056,7 +131140,7 @@ module.exports = 'camerafadeoutcomplete'; /***/ }), -/* 651 */ +/* 650 */ /***/ (function(module, exports) { /** @@ -131086,7 +131170,7 @@ module.exports = 'camerafadeoutstart'; /***/ }), -/* 652 */ +/* 651 */ /***/ (function(module, exports) { /** @@ -131110,7 +131194,7 @@ module.exports = 'cameraflashcomplete'; /***/ }), -/* 653 */ +/* 652 */ /***/ (function(module, exports) { /** @@ -131138,7 +131222,7 @@ module.exports = 'cameraflashstart'; /***/ }), -/* 654 */ +/* 653 */ /***/ (function(module, exports) { /** @@ -131162,7 +131246,7 @@ module.exports = 'camerapancomplete'; /***/ }), -/* 655 */ +/* 654 */ /***/ (function(module, exports) { /** @@ -131189,7 +131273,7 @@ module.exports = 'camerapanstart'; /***/ }), -/* 656 */ +/* 655 */ /***/ (function(module, exports) { /** @@ -131215,7 +131299,7 @@ module.exports = 'postrender'; /***/ }), -/* 657 */ +/* 656 */ /***/ (function(module, exports) { /** @@ -131241,7 +131325,7 @@ module.exports = 'prerender'; /***/ }), -/* 658 */ +/* 657 */ /***/ (function(module, exports) { /** @@ -131265,7 +131349,7 @@ module.exports = 'camerashakecomplete'; /***/ }), -/* 659 */ +/* 658 */ /***/ (function(module, exports) { /** @@ -131291,7 +131375,7 @@ module.exports = 'camerashakestart'; /***/ }), -/* 660 */ +/* 659 */ /***/ (function(module, exports) { /** @@ -131315,7 +131399,7 @@ module.exports = 'camerazoomcomplete'; /***/ }), -/* 661 */ +/* 660 */ /***/ (function(module, exports) { /** @@ -131341,7 +131425,7 @@ module.exports = 'camerazoomstart'; /***/ }), -/* 662 */ +/* 661 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -131729,7 +131813,7 @@ module.exports = Fade; /***/ }), -/* 663 */ +/* 662 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -132080,7 +132164,7 @@ module.exports = Flash; /***/ }), -/* 664 */ +/* 663 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -132091,7 +132175,7 @@ module.exports = Flash; var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); -var EaseMap = __webpack_require__(167); +var EaseMap = __webpack_require__(164); var Events = __webpack_require__(48); var Vector2 = __webpack_require__(3); @@ -132405,7 +132489,7 @@ module.exports = Pan; /***/ }), -/* 665 */ +/* 664 */ /***/ (function(module, exports) { /** @@ -132436,7 +132520,7 @@ module.exports = In; /***/ }), -/* 666 */ +/* 665 */ /***/ (function(module, exports) { /** @@ -132467,7 +132551,7 @@ module.exports = Out; /***/ }), -/* 667 */ +/* 666 */ /***/ (function(module, exports) { /** @@ -132507,7 +132591,7 @@ module.exports = InOut; /***/ }), -/* 668 */ +/* 667 */ /***/ (function(module, exports) { /** @@ -132552,7 +132636,7 @@ module.exports = In; /***/ }), -/* 669 */ +/* 668 */ /***/ (function(module, exports) { /** @@ -132595,7 +132679,7 @@ module.exports = Out; /***/ }), -/* 670 */ +/* 669 */ /***/ (function(module, exports) { /** @@ -132659,7 +132743,7 @@ module.exports = InOut; /***/ }), -/* 671 */ +/* 670 */ /***/ (function(module, exports) { /** @@ -132687,7 +132771,7 @@ module.exports = In; /***/ }), -/* 672 */ +/* 671 */ /***/ (function(module, exports) { /** @@ -132715,7 +132799,7 @@ module.exports = Out; /***/ }), -/* 673 */ +/* 672 */ /***/ (function(module, exports) { /** @@ -132750,7 +132834,7 @@ module.exports = InOut; /***/ }), -/* 674 */ +/* 673 */ /***/ (function(module, exports) { /** @@ -132778,7 +132862,7 @@ module.exports = In; /***/ }), -/* 675 */ +/* 674 */ /***/ (function(module, exports) { /** @@ -132806,7 +132890,7 @@ module.exports = Out; /***/ }), -/* 676 */ +/* 675 */ /***/ (function(module, exports) { /** @@ -132841,7 +132925,7 @@ module.exports = InOut; /***/ }), -/* 677 */ +/* 676 */ /***/ (function(module, exports) { /** @@ -132896,7 +132980,7 @@ module.exports = In; /***/ }), -/* 678 */ +/* 677 */ /***/ (function(module, exports) { /** @@ -132951,7 +133035,7 @@ module.exports = Out; /***/ }), -/* 679 */ +/* 678 */ /***/ (function(module, exports) { /** @@ -133013,7 +133097,7 @@ module.exports = InOut; /***/ }), -/* 680 */ +/* 679 */ /***/ (function(module, exports) { /** @@ -133041,7 +133125,7 @@ module.exports = In; /***/ }), -/* 681 */ +/* 680 */ /***/ (function(module, exports) { /** @@ -133069,7 +133153,7 @@ module.exports = Out; /***/ }), -/* 682 */ +/* 681 */ /***/ (function(module, exports) { /** @@ -133104,7 +133188,7 @@ module.exports = InOut; /***/ }), -/* 683 */ +/* 682 */ /***/ (function(module, exports) { /** @@ -133132,7 +133216,7 @@ module.exports = Linear; /***/ }), -/* 684 */ +/* 683 */ /***/ (function(module, exports) { /** @@ -133160,7 +133244,7 @@ module.exports = In; /***/ }), -/* 685 */ +/* 684 */ /***/ (function(module, exports) { /** @@ -133188,7 +133272,7 @@ module.exports = Out; /***/ }), -/* 686 */ +/* 685 */ /***/ (function(module, exports) { /** @@ -133223,7 +133307,7 @@ module.exports = InOut; /***/ }), -/* 687 */ +/* 686 */ /***/ (function(module, exports) { /** @@ -133251,7 +133335,7 @@ module.exports = In; /***/ }), -/* 688 */ +/* 687 */ /***/ (function(module, exports) { /** @@ -133279,7 +133363,7 @@ module.exports = Out; /***/ }), -/* 689 */ +/* 688 */ /***/ (function(module, exports) { /** @@ -133314,7 +133398,7 @@ module.exports = InOut; /***/ }), -/* 690 */ +/* 689 */ /***/ (function(module, exports) { /** @@ -133342,7 +133426,7 @@ module.exports = In; /***/ }), -/* 691 */ +/* 690 */ /***/ (function(module, exports) { /** @@ -133370,7 +133454,7 @@ module.exports = Out; /***/ }), -/* 692 */ +/* 691 */ /***/ (function(module, exports) { /** @@ -133405,7 +133489,7 @@ module.exports = InOut; /***/ }), -/* 693 */ +/* 692 */ /***/ (function(module, exports) { /** @@ -133444,7 +133528,7 @@ module.exports = In; /***/ }), -/* 694 */ +/* 693 */ /***/ (function(module, exports) { /** @@ -133483,7 +133567,7 @@ module.exports = Out; /***/ }), -/* 695 */ +/* 694 */ /***/ (function(module, exports) { /** @@ -133522,7 +133606,7 @@ module.exports = InOut; /***/ }), -/* 696 */ +/* 695 */ /***/ (function(module, exports) { /** @@ -133564,7 +133648,7 @@ module.exports = Stepped; /***/ }), -/* 697 */ +/* 696 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133883,7 +133967,7 @@ module.exports = Shake; /***/ }), -/* 698 */ +/* 697 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -133894,7 +133978,7 @@ module.exports = Shake; var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); -var EaseMap = __webpack_require__(167); +var EaseMap = __webpack_require__(164); var Events = __webpack_require__(48); /** @@ -134176,7 +134260,7 @@ module.exports = Zoom; /***/ }), -/* 699 */ +/* 698 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -134185,13 +134269,13 @@ module.exports = Zoom; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Camera = __webpack_require__(292); +var Camera = __webpack_require__(290); var Class = __webpack_require__(0); var GetFastValue = __webpack_require__(2); var PluginCache = __webpack_require__(23); var RectangleContains = __webpack_require__(47); -var ScaleEvents = __webpack_require__(92); -var SceneEvents = __webpack_require__(19); +var ScaleEvents = __webpack_require__(91); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -134924,7 +135008,7 @@ module.exports = CameraManager; /***/ }), -/* 700 */ +/* 699 */ /***/ (function(module, exports) { /** @@ -134943,7 +135027,7 @@ module.exports = 'enterfullscreen'; /***/ }), -/* 701 */ +/* 700 */ /***/ (function(module, exports) { /** @@ -134962,7 +135046,7 @@ module.exports = 'fullscreenfailed'; /***/ }), -/* 702 */ +/* 701 */ /***/ (function(module, exports) { /** @@ -134981,7 +135065,7 @@ module.exports = 'fullscreenunsupported'; /***/ }), -/* 703 */ +/* 702 */ /***/ (function(module, exports) { /** @@ -135001,7 +135085,7 @@ module.exports = 'leavefullscreen'; /***/ }), -/* 704 */ +/* 703 */ /***/ (function(module, exports) { /** @@ -135022,7 +135106,7 @@ module.exports = 'orientationchange'; /***/ }), -/* 705 */ +/* 704 */ /***/ (function(module, exports) { /** @@ -135053,7 +135137,7 @@ module.exports = 'resize'; /***/ }), -/* 706 */ +/* 705 */ /***/ (function(module, exports) { /** @@ -135078,7 +135162,7 @@ module.exports = 'boot'; /***/ }), -/* 707 */ +/* 706 */ /***/ (function(module, exports) { /** @@ -135107,7 +135191,7 @@ module.exports = 'create'; /***/ }), -/* 708 */ +/* 707 */ /***/ (function(module, exports) { /** @@ -135134,7 +135218,7 @@ module.exports = 'destroy'; /***/ }), -/* 709 */ +/* 708 */ /***/ (function(module, exports) { /** @@ -135161,7 +135245,7 @@ module.exports = 'pause'; /***/ }), -/* 710 */ +/* 709 */ /***/ (function(module, exports) { /** @@ -135198,7 +135282,7 @@ module.exports = 'postupdate'; /***/ }), -/* 711 */ +/* 710 */ /***/ (function(module, exports) { /** @@ -135235,7 +135319,7 @@ module.exports = 'preupdate'; /***/ }), -/* 712 */ +/* 711 */ /***/ (function(module, exports) { /** @@ -135263,7 +135347,7 @@ module.exports = 'ready'; /***/ }), -/* 713 */ +/* 712 */ /***/ (function(module, exports) { /** @@ -135299,7 +135383,7 @@ module.exports = 'render'; /***/ }), -/* 714 */ +/* 713 */ /***/ (function(module, exports) { /** @@ -135326,7 +135410,7 @@ module.exports = 'resume'; /***/ }), -/* 715 */ +/* 714 */ /***/ (function(module, exports) { /** @@ -135356,7 +135440,7 @@ module.exports = 'shutdown'; /***/ }), -/* 716 */ +/* 715 */ /***/ (function(module, exports) { /** @@ -135383,7 +135467,7 @@ module.exports = 'sleep'; /***/ }), -/* 717 */ +/* 716 */ /***/ (function(module, exports) { /** @@ -135408,7 +135492,7 @@ module.exports = 'start'; /***/ }), -/* 718 */ +/* 717 */ /***/ (function(module, exports) { /** @@ -135444,7 +135528,7 @@ module.exports = 'transitioncomplete'; /***/ }), -/* 719 */ +/* 718 */ /***/ (function(module, exports) { /** @@ -135481,7 +135565,7 @@ module.exports = 'transitioninit'; /***/ }), -/* 720 */ +/* 719 */ /***/ (function(module, exports) { /** @@ -135515,7 +135599,7 @@ module.exports = 'transitionout'; /***/ }), -/* 721 */ +/* 720 */ /***/ (function(module, exports) { /** @@ -135555,7 +135639,7 @@ module.exports = 'transitionstart'; /***/ }), -/* 722 */ +/* 721 */ /***/ (function(module, exports) { /** @@ -135590,7 +135674,7 @@ module.exports = 'transitionwake'; /***/ }), -/* 723 */ +/* 722 */ /***/ (function(module, exports) { /** @@ -135627,7 +135711,7 @@ module.exports = 'update'; /***/ }), -/* 724 */ +/* 723 */ /***/ (function(module, exports) { /** @@ -135654,7 +135738,7 @@ module.exports = 'wake'; /***/ }), -/* 725 */ +/* 724 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135669,18 +135753,18 @@ module.exports = 'wake'; module.exports = { - Config: __webpack_require__(313), - CreateRenderer: __webpack_require__(337), - DebugHeader: __webpack_require__(341), + Config: __webpack_require__(311), + CreateRenderer: __webpack_require__(335), + DebugHeader: __webpack_require__(339), Events: __webpack_require__(18), - TimeStep: __webpack_require__(342), - VisibilityHandler: __webpack_require__(344) + TimeStep: __webpack_require__(340), + VisibilityHandler: __webpack_require__(342) }; /***/ }), -/* 726 */ +/* 725 */ /***/ (function(module, exports) { // shim for using process in browser @@ -135870,7 +135954,7 @@ process.umask = function() { return 0; }; /***/ }), -/* 727 */ +/* 726 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135879,7 +135963,7 @@ process.umask = function() { return 0; }; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Browser = __webpack_require__(117); +var Browser = __webpack_require__(114); /** * Determines the input support of the browser running this Phaser Game instance. @@ -135945,7 +136029,7 @@ module.exports = init(); /***/ }), -/* 728 */ +/* 727 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -135954,7 +136038,7 @@ module.exports = init(); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Browser = __webpack_require__(117); +var Browser = __webpack_require__(114); /** * Determines the audio playback capabilities of the device running this Phaser Game instance. @@ -136070,7 +136154,7 @@ module.exports = init(); /***/ }), -/* 729 */ +/* 728 */ /***/ (function(module, exports) { /** @@ -136157,7 +136241,7 @@ module.exports = init(); /***/ }), -/* 730 */ +/* 729 */ /***/ (function(module, exports) { /** @@ -136261,7 +136345,7 @@ module.exports = init(); /***/ }), -/* 731 */ +/* 730 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136276,23 +136360,23 @@ module.exports = init(); module.exports = { - Between: __webpack_require__(316), - BetweenPoints: __webpack_require__(732), - BetweenPointsY: __webpack_require__(733), - BetweenY: __webpack_require__(734), - CounterClockwise: __webpack_require__(735), - Normalize: __webpack_require__(317), - Reverse: __webpack_require__(736), - RotateTo: __webpack_require__(737), - ShortestBetween: __webpack_require__(738), - Wrap: __webpack_require__(234), - WrapDegrees: __webpack_require__(235) + Between: __webpack_require__(314), + BetweenPoints: __webpack_require__(731), + BetweenPointsY: __webpack_require__(732), + BetweenY: __webpack_require__(733), + CounterClockwise: __webpack_require__(734), + Normalize: __webpack_require__(315), + Reverse: __webpack_require__(735), + RotateTo: __webpack_require__(736), + ShortestBetween: __webpack_require__(737), + Wrap: __webpack_require__(232), + WrapDegrees: __webpack_require__(233) }; /***/ }), -/* 732 */ +/* 731 */ /***/ (function(module, exports) { /** @@ -136323,7 +136407,7 @@ module.exports = BetweenPoints; /***/ }), -/* 733 */ +/* 732 */ /***/ (function(module, exports) { /** @@ -136355,7 +136439,7 @@ module.exports = BetweenPointsY; /***/ }), -/* 734 */ +/* 733 */ /***/ (function(module, exports) { /** @@ -136389,7 +136473,7 @@ module.exports = BetweenY; /***/ }), -/* 735 */ +/* 734 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136434,7 +136518,7 @@ module.exports = CounterClockwise; /***/ }), -/* 736 */ +/* 735 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136443,7 +136527,7 @@ module.exports = CounterClockwise; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Normalize = __webpack_require__(317); +var Normalize = __webpack_require__(315); /** * Reverse the given angle. @@ -136464,7 +136548,7 @@ module.exports = Reverse; /***/ }), -/* 737 */ +/* 736 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136531,7 +136615,7 @@ module.exports = RotateTo; /***/ }), -/* 738 */ +/* 737 */ /***/ (function(module, exports) { /** @@ -136580,7 +136664,7 @@ module.exports = ShortestBetween; /***/ }), -/* 739 */ +/* 738 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136596,18 +136680,18 @@ module.exports = ShortestBetween; module.exports = { Between: __webpack_require__(53), - BetweenPoints: __webpack_require__(318), - BetweenPointsSquared: __webpack_require__(740), - Chebyshev: __webpack_require__(741), - Power: __webpack_require__(742), - Snake: __webpack_require__(743), - Squared: __webpack_require__(319) + BetweenPoints: __webpack_require__(316), + BetweenPointsSquared: __webpack_require__(739), + Chebyshev: __webpack_require__(740), + Power: __webpack_require__(741), + Snake: __webpack_require__(742), + Squared: __webpack_require__(317) }; /***/ }), -/* 740 */ +/* 739 */ /***/ (function(module, exports) { /** @@ -136639,7 +136723,7 @@ module.exports = DistanceBetweenPointsSquared; /***/ }), -/* 741 */ +/* 740 */ /***/ (function(module, exports) { /** @@ -136673,7 +136757,7 @@ module.exports = ChebyshevDistance; /***/ }), -/* 742 */ +/* 741 */ /***/ (function(module, exports) { /** @@ -136707,7 +136791,7 @@ module.exports = DistancePower; /***/ }), -/* 743 */ +/* 742 */ /***/ (function(module, exports) { /** @@ -136741,7 +136825,7 @@ module.exports = SnakeDistance; /***/ }), -/* 744 */ +/* 743 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136756,24 +136840,24 @@ module.exports = SnakeDistance; module.exports = { - Back: __webpack_require__(301), - Bounce: __webpack_require__(302), - Circular: __webpack_require__(303), - Cubic: __webpack_require__(304), - Elastic: __webpack_require__(305), - Expo: __webpack_require__(306), - Linear: __webpack_require__(307), - Quadratic: __webpack_require__(308), - Quartic: __webpack_require__(309), - Quintic: __webpack_require__(310), - Sine: __webpack_require__(311), - Stepped: __webpack_require__(312) + Back: __webpack_require__(299), + Bounce: __webpack_require__(300), + Circular: __webpack_require__(301), + Cubic: __webpack_require__(302), + Elastic: __webpack_require__(303), + Expo: __webpack_require__(304), + Linear: __webpack_require__(305), + Quadratic: __webpack_require__(306), + Quartic: __webpack_require__(307), + Quintic: __webpack_require__(308), + Sine: __webpack_require__(309), + Stepped: __webpack_require__(310) }; /***/ }), -/* 745 */ +/* 744 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136788,17 +136872,17 @@ module.exports = { module.exports = { - Ceil: __webpack_require__(746), - Equal: __webpack_require__(144), - Floor: __webpack_require__(747), - GreaterThan: __webpack_require__(320), - LessThan: __webpack_require__(321) + Ceil: __webpack_require__(745), + Equal: __webpack_require__(141), + Floor: __webpack_require__(746), + GreaterThan: __webpack_require__(318), + LessThan: __webpack_require__(319) }; /***/ }), -/* 746 */ +/* 745 */ /***/ (function(module, exports) { /** @@ -136829,7 +136913,7 @@ module.exports = Ceil; /***/ }), -/* 747 */ +/* 746 */ /***/ (function(module, exports) { /** @@ -136860,7 +136944,7 @@ module.exports = Floor; /***/ }), -/* 748 */ +/* 747 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136875,19 +136959,19 @@ module.exports = Floor; module.exports = { - Bezier: __webpack_require__(749), - CatmullRom: __webpack_require__(750), - CubicBezier: __webpack_require__(324), - Linear: __webpack_require__(751), - QuadraticBezier: __webpack_require__(325), - SmoothStep: __webpack_require__(326), - SmootherStep: __webpack_require__(752) + Bezier: __webpack_require__(748), + CatmullRom: __webpack_require__(749), + CubicBezier: __webpack_require__(322), + Linear: __webpack_require__(750), + QuadraticBezier: __webpack_require__(323), + SmoothStep: __webpack_require__(324), + SmootherStep: __webpack_require__(751) }; /***/ }), -/* 749 */ +/* 748 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136896,7 +136980,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bernstein = __webpack_require__(322); +var Bernstein = __webpack_require__(320); /** * A bezier interpolation method. @@ -136926,7 +137010,7 @@ module.exports = BezierInterpolation; /***/ }), -/* 750 */ +/* 749 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136935,7 +137019,7 @@ module.exports = BezierInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CatmullRom = __webpack_require__(170); +var CatmullRom = __webpack_require__(167); /** * A Catmull-Rom interpolation method. @@ -136983,7 +137067,7 @@ module.exports = CatmullRomInterpolation; /***/ }), -/* 751 */ +/* 750 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -136992,7 +137076,7 @@ module.exports = CatmullRomInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Linear = __webpack_require__(115); +var Linear = __webpack_require__(112); /** * A linear interpolation method. @@ -137030,7 +137114,7 @@ module.exports = LinearInterpolation; /***/ }), -/* 752 */ +/* 751 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -137039,7 +137123,7 @@ module.exports = LinearInterpolation; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SmootherStep = __webpack_require__(158); +var SmootherStep = __webpack_require__(155); /** * A Smoother Step interpolation method. @@ -137063,7 +137147,7 @@ module.exports = SmootherStepInterpolation; /***/ }), -/* 753 */ +/* 752 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -137078,15 +137162,15 @@ module.exports = SmootherStepInterpolation; module.exports = { - GetNext: __webpack_require__(327), - IsSize: __webpack_require__(118), - IsValue: __webpack_require__(754) + GetNext: __webpack_require__(325), + IsSize: __webpack_require__(115), + IsValue: __webpack_require__(753) }; /***/ }), -/* 754 */ +/* 753 */ /***/ (function(module, exports) { /** @@ -137114,7 +137198,7 @@ module.exports = IsValuePowerOfTwo; /***/ }), -/* 755 */ +/* 754 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -137129,15 +137213,15 @@ module.exports = IsValuePowerOfTwo; module.exports = { - Ceil: __webpack_require__(328), - Floor: __webpack_require__(93), - To: __webpack_require__(756) + Ceil: __webpack_require__(326), + Floor: __webpack_require__(92), + To: __webpack_require__(755) }; /***/ }), -/* 756 */ +/* 755 */ /***/ (function(module, exports) { /** @@ -137180,7 +137264,7 @@ module.exports = SnapTo; /***/ }), -/* 757 */ +/* 756 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -137690,7 +137774,7 @@ module.exports = RandomDataGenerator; /***/ }), -/* 758 */ +/* 757 */ /***/ (function(module, exports) { /** @@ -137725,7 +137809,7 @@ module.exports = Average; /***/ }), -/* 759 */ +/* 758 */ /***/ (function(module, exports) { /** @@ -137762,7 +137846,7 @@ module.exports = CeilTo; /***/ }), -/* 760 */ +/* 759 */ /***/ (function(module, exports) { /** @@ -137791,7 +137875,7 @@ module.exports = Difference; /***/ }), -/* 761 */ +/* 760 */ /***/ (function(module, exports) { /** @@ -137828,7 +137912,7 @@ module.exports = FloorTo; /***/ }), -/* 762 */ +/* 761 */ /***/ (function(module, exports) { /** @@ -137861,7 +137945,7 @@ module.exports = GetSpeed; /***/ }), -/* 763 */ +/* 762 */ /***/ (function(module, exports) { /** @@ -137892,7 +137976,7 @@ module.exports = IsEven; /***/ }), -/* 764 */ +/* 763 */ /***/ (function(module, exports) { /** @@ -137921,7 +138005,7 @@ module.exports = IsEvenStrict; /***/ }), -/* 765 */ +/* 764 */ /***/ (function(module, exports) { /** @@ -137951,7 +138035,7 @@ module.exports = MaxAdd; /***/ }), -/* 766 */ +/* 765 */ /***/ (function(module, exports) { /** @@ -137981,7 +138065,7 @@ module.exports = MinSub; /***/ }), -/* 767 */ +/* 766 */ /***/ (function(module, exports) { /** @@ -138040,7 +138124,7 @@ module.exports = Percent; /***/ }), -/* 768 */ +/* 767 */ /***/ (function(module, exports) { /** @@ -138080,7 +138164,7 @@ module.exports = RandomXY; /***/ }), -/* 769 */ +/* 768 */ /***/ (function(module, exports) { /** @@ -138119,7 +138203,7 @@ module.exports = RandomXYZ; /***/ }), -/* 770 */ +/* 769 */ /***/ (function(module, exports) { /** @@ -138156,7 +138240,7 @@ module.exports = RandomXYZW; /***/ }), -/* 771 */ +/* 770 */ /***/ (function(module, exports) { /** @@ -138208,7 +138292,7 @@ module.exports = RoundTo; /***/ }), -/* 772 */ +/* 771 */ /***/ (function(module, exports) { /** @@ -138261,7 +138345,7 @@ module.exports = SinCosTableGenerator; /***/ }), -/* 773 */ +/* 772 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138319,7 +138403,7 @@ module.exports = ToXY; /***/ }), -/* 774 */ +/* 773 */ /***/ (function(module, exports) { /** @@ -138349,7 +138433,7 @@ module.exports = Within; /***/ }), -/* 775 */ +/* 774 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138358,9 +138442,9 @@ module.exports = Within; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Vector3 = __webpack_require__(173); -var Matrix4 = __webpack_require__(335); -var Quaternion = __webpack_require__(336); +var Vector3 = __webpack_require__(170); +var Matrix4 = __webpack_require__(333); +var Quaternion = __webpack_require__(334); var tmpMat4 = new Matrix4(); var tmpQuat = new Quaternion(); @@ -138397,7 +138481,7 @@ module.exports = RotateVec3; /***/ }), -/* 776 */ +/* 775 */ /***/ (function(module, exports) { /** @@ -138423,7 +138507,7 @@ module.exports = 'addtexture'; /***/ }), -/* 777 */ +/* 776 */ /***/ (function(module, exports) { /** @@ -138449,7 +138533,7 @@ module.exports = 'onerror'; /***/ }), -/* 778 */ +/* 777 */ /***/ (function(module, exports) { /** @@ -138478,7 +138562,7 @@ module.exports = 'onload'; /***/ }), -/* 779 */ +/* 778 */ /***/ (function(module, exports) { /** @@ -138501,7 +138585,7 @@ module.exports = 'ready'; /***/ }), -/* 780 */ +/* 779 */ /***/ (function(module, exports) { /** @@ -138529,7 +138613,7 @@ module.exports = 'removetexture'; /***/ }), -/* 781 */ +/* 780 */ /***/ (function(module, exports) { module.exports = [ @@ -138565,7 +138649,7 @@ module.exports = [ /***/ }), -/* 782 */ +/* 781 */ /***/ (function(module, exports) { module.exports = [ @@ -138584,7 +138668,7 @@ module.exports = [ /***/ }), -/* 783 */ +/* 782 */ /***/ (function(module, exports) { module.exports = [ @@ -138643,7 +138727,7 @@ module.exports = [ /***/ }), -/* 784 */ +/* 783 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138658,14 +138742,14 @@ module.exports = [ module.exports = { - GenerateTexture: __webpack_require__(345), - Palettes: __webpack_require__(785) + GenerateTexture: __webpack_require__(343), + Palettes: __webpack_require__(784) }; /***/ }), -/* 785 */ +/* 784 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138680,17 +138764,17 @@ module.exports = { module.exports = { - ARNE16: __webpack_require__(346), - C64: __webpack_require__(786), - CGA: __webpack_require__(787), - JMP: __webpack_require__(788), - MSX: __webpack_require__(789) + ARNE16: __webpack_require__(344), + C64: __webpack_require__(785), + CGA: __webpack_require__(786), + JMP: __webpack_require__(787), + MSX: __webpack_require__(788) }; /***/ }), -/* 786 */ +/* 785 */ /***/ (function(module, exports) { /** @@ -138728,7 +138812,7 @@ module.exports = { /***/ }), -/* 787 */ +/* 786 */ /***/ (function(module, exports) { /** @@ -138766,7 +138850,7 @@ module.exports = { /***/ }), -/* 788 */ +/* 787 */ /***/ (function(module, exports) { /** @@ -138804,7 +138888,7 @@ module.exports = { /***/ }), -/* 789 */ +/* 788 */ /***/ (function(module, exports) { /** @@ -138842,7 +138926,7 @@ module.exports = { /***/ }), -/* 790 */ +/* 789 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138856,19 +138940,19 @@ module.exports = { */ module.exports = { - Path: __webpack_require__(791), + Path: __webpack_require__(790), - CubicBezier: __webpack_require__(347), - Curve: __webpack_require__(81), - Ellipse: __webpack_require__(348), - Line: __webpack_require__(349), - QuadraticBezier: __webpack_require__(350), - Spline: __webpack_require__(351) + CubicBezier: __webpack_require__(345), + Curve: __webpack_require__(80), + Ellipse: __webpack_require__(346), + Line: __webpack_require__(347), + QuadraticBezier: __webpack_require__(348), + Spline: __webpack_require__(349) }; /***/ }), -/* 791 */ +/* 790 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -138880,14 +138964,14 @@ module.exports = { // Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog) var Class = __webpack_require__(0); -var CubicBezierCurve = __webpack_require__(347); -var EllipseCurve = __webpack_require__(348); +var CubicBezierCurve = __webpack_require__(345); +var EllipseCurve = __webpack_require__(346); var GameObjectFactory = __webpack_require__(5); -var LineCurve = __webpack_require__(349); -var MovePathTo = __webpack_require__(792); -var QuadraticBezierCurve = __webpack_require__(350); +var LineCurve = __webpack_require__(347); +var MovePathTo = __webpack_require__(791); +var QuadraticBezierCurve = __webpack_require__(348); var Rectangle = __webpack_require__(12); -var SplineCurve = __webpack_require__(351); +var SplineCurve = __webpack_require__(349); var Vector2 = __webpack_require__(3); var MATH_CONST = __webpack_require__(15); @@ -139717,7 +139801,7 @@ module.exports = Path; /***/ }), -/* 792 */ +/* 791 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -139857,7 +139941,7 @@ module.exports = MoveTo; /***/ }), -/* 793 */ +/* 792 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -139872,15 +139956,15 @@ module.exports = MoveTo; module.exports = { - DataManager: __webpack_require__(113), - DataManagerPlugin: __webpack_require__(794), - Events: __webpack_require__(283) + DataManager: __webpack_require__(110), + DataManagerPlugin: __webpack_require__(793), + Events: __webpack_require__(281) }; /***/ }), -/* 794 */ +/* 793 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -139890,9 +139974,9 @@ module.exports = { */ var Class = __webpack_require__(0); -var DataManager = __webpack_require__(113); +var DataManager = __webpack_require__(110); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -140007,7 +140091,7 @@ module.exports = DataManagerPlugin; /***/ }), -/* 795 */ +/* 794 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140022,18 +140106,18 @@ module.exports = DataManagerPlugin; module.exports = { - Align: __webpack_require__(796), - BaseShader: __webpack_require__(352), - Bounds: __webpack_require__(799), - Canvas: __webpack_require__(802), - Color: __webpack_require__(353), - Masks: __webpack_require__(811) + Align: __webpack_require__(795), + BaseShader: __webpack_require__(350), + Bounds: __webpack_require__(798), + Canvas: __webpack_require__(801), + Color: __webpack_require__(351), + Masks: __webpack_require__(810) }; /***/ }), -/* 796 */ +/* 795 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140042,7 +140126,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(106); +var CONST = __webpack_require__(103); var Extend = __webpack_require__(17); /** @@ -140051,8 +140135,8 @@ var Extend = __webpack_require__(17); var Align = { - In: __webpack_require__(797), - To: __webpack_require__(798) + In: __webpack_require__(796), + To: __webpack_require__(797) }; @@ -140063,7 +140147,7 @@ module.exports = Align; /***/ }), -/* 797 */ +/* 796 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140078,16 +140162,49 @@ module.exports = Align; module.exports = { - BottomCenter: __webpack_require__(255), - BottomLeft: __webpack_require__(256), - BottomRight: __webpack_require__(257), - Center: __webpack_require__(258), - LeftCenter: __webpack_require__(260), - QuickSet: __webpack_require__(254), - RightCenter: __webpack_require__(261), - TopCenter: __webpack_require__(262), - TopLeft: __webpack_require__(263), - TopRight: __webpack_require__(264) + BottomCenter: __webpack_require__(253), + BottomLeft: __webpack_require__(254), + BottomRight: __webpack_require__(255), + Center: __webpack_require__(256), + LeftCenter: __webpack_require__(258), + QuickSet: __webpack_require__(252), + RightCenter: __webpack_require__(259), + TopCenter: __webpack_require__(260), + TopLeft: __webpack_require__(261), + TopRight: __webpack_require__(262) + +}; + + +/***/ }), +/* 797 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +/** + * @namespace Phaser.Display.Align.To + */ + +module.exports = { + + BottomCenter: __webpack_require__(240), + BottomLeft: __webpack_require__(241), + BottomRight: __webpack_require__(242), + LeftBottom: __webpack_require__(243), + LeftCenter: __webpack_require__(244), + LeftTop: __webpack_require__(245), + QuickSet: __webpack_require__(239), + RightBottom: __webpack_require__(246), + RightCenter: __webpack_require__(247), + RightTop: __webpack_require__(248), + TopCenter: __webpack_require__(249), + TopLeft: __webpack_require__(250), + TopRight: __webpack_require__(251) }; @@ -140096,39 +140213,6 @@ module.exports = { /* 798 */ /***/ (function(module, exports, __webpack_require__) { -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Display.Align.To - */ - -module.exports = { - - BottomCenter: __webpack_require__(242), - BottomLeft: __webpack_require__(243), - BottomRight: __webpack_require__(244), - LeftBottom: __webpack_require__(245), - LeftCenter: __webpack_require__(246), - LeftTop: __webpack_require__(247), - QuickSet: __webpack_require__(241), - RightBottom: __webpack_require__(248), - RightCenter: __webpack_require__(249), - RightTop: __webpack_require__(250), - TopCenter: __webpack_require__(251), - TopLeft: __webpack_require__(252), - TopRight: __webpack_require__(253) - -}; - - -/***/ }), -/* 799 */ -/***/ (function(module, exports, __webpack_require__) { - /** * @author Richard Davey * @copyright 2020 Photon Storm Ltd. @@ -140141,18 +140225,18 @@ module.exports = { module.exports = { - CenterOn: __webpack_require__(259), + CenterOn: __webpack_require__(257), GetBottom: __webpack_require__(38), - GetCenterX: __webpack_require__(76), - GetCenterY: __webpack_require__(78), + GetCenterX: __webpack_require__(75), + GetCenterY: __webpack_require__(77), GetLeft: __webpack_require__(40), - GetOffsetX: __webpack_require__(800), - GetOffsetY: __webpack_require__(801), + GetOffsetX: __webpack_require__(799), + GetOffsetY: __webpack_require__(800), GetRight: __webpack_require__(42), GetTop: __webpack_require__(45), SetBottom: __webpack_require__(44), - SetCenterX: __webpack_require__(77), - SetCenterY: __webpack_require__(79), + SetCenterX: __webpack_require__(76), + SetCenterY: __webpack_require__(78), SetLeft: __webpack_require__(41), SetRight: __webpack_require__(43), SetTop: __webpack_require__(39) @@ -140161,7 +140245,7 @@ module.exports = { /***/ }), -/* 800 */ +/* 799 */ /***/ (function(module, exports) { /** @@ -140191,7 +140275,7 @@ module.exports = GetOffsetX; /***/ }), -/* 801 */ +/* 800 */ /***/ (function(module, exports) { /** @@ -140221,7 +140305,7 @@ module.exports = GetOffsetY; /***/ }), -/* 802 */ +/* 801 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140236,17 +140320,17 @@ module.exports = GetOffsetY; module.exports = { - CanvasInterpolation: __webpack_require__(338), + CanvasInterpolation: __webpack_require__(336), CanvasPool: __webpack_require__(26), - Smoothing: __webpack_require__(165), - TouchAction: __webpack_require__(803), - UserSelect: __webpack_require__(804) + Smoothing: __webpack_require__(162), + TouchAction: __webpack_require__(802), + UserSelect: __webpack_require__(803) }; /***/ }), -/* 803 */ +/* 802 */ /***/ (function(module, exports) { /** @@ -140281,7 +140365,7 @@ module.exports = TouchAction; /***/ }), -/* 804 */ +/* 803 */ /***/ (function(module, exports) { /** @@ -140328,7 +140412,7 @@ module.exports = UserSelect; /***/ }), -/* 805 */ +/* 804 */ /***/ (function(module, exports) { /** @@ -140368,7 +140452,7 @@ module.exports = ColorToRGBA; /***/ }), -/* 806 */ +/* 805 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140377,8 +140461,8 @@ module.exports = ColorToRGBA; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Color = __webpack_require__(33); -var HueToComponent = __webpack_require__(355); +var Color = __webpack_require__(32); +var HueToComponent = __webpack_require__(353); /** * Converts HSL (hue, saturation and lightness) values to a Phaser Color object. @@ -140418,7 +140502,7 @@ module.exports = HSLToColor; /***/ }), -/* 807 */ +/* 806 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140427,7 +140511,7 @@ module.exports = HSLToColor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HSVToRGB = __webpack_require__(164); +var HSVToRGB = __webpack_require__(161); /** * Get HSV color wheel values in an array which will be 360 elements in size. @@ -140459,7 +140543,7 @@ module.exports = HSVColorWheel; /***/ }), -/* 808 */ +/* 807 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140468,7 +140552,7 @@ module.exports = HSVColorWheel; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Linear = __webpack_require__(115); +var Linear = __webpack_require__(112); /** * @namespace Phaser.Display.Color.Interpolate @@ -140567,7 +140651,7 @@ module.exports = { /***/ }), -/* 809 */ +/* 808 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140576,8 +140660,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Between = __webpack_require__(171); -var Color = __webpack_require__(33); +var Between = __webpack_require__(168); +var Color = __webpack_require__(32); /** * Creates a new Color object where the r, g, and b values have been set to random values @@ -140603,7 +140687,7 @@ module.exports = RandomRGB; /***/ }), -/* 810 */ +/* 809 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140612,7 +140696,7 @@ module.exports = RandomRGB; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ComponentToHex = __webpack_require__(354); +var ComponentToHex = __webpack_require__(352); /** * Converts the color values into an HTML compatible color string, prefixed with either `#` or `0x`. @@ -140647,7 +140731,7 @@ module.exports = RGBToString; /***/ }), -/* 811 */ +/* 810 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140662,14 +140746,14 @@ module.exports = RGBToString; module.exports = { - BitmapMask: __webpack_require__(277), - GeometryMask: __webpack_require__(278) + BitmapMask: __webpack_require__(275), + GeometryMask: __webpack_require__(276) }; /***/ }), -/* 812 */ +/* 811 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140684,13 +140768,13 @@ module.exports = { var Dom = { - AddToDOM: __webpack_require__(120), - DOMContentLoaded: __webpack_require__(356), - GetScreenOrientation: __webpack_require__(357), - GetTarget: __webpack_require__(362), - ParseXML: __webpack_require__(363), - RemoveFromDOM: __webpack_require__(177), - RequestAnimationFrame: __webpack_require__(343) + AddToDOM: __webpack_require__(117), + DOMContentLoaded: __webpack_require__(354), + GetScreenOrientation: __webpack_require__(355), + GetTarget: __webpack_require__(360), + ParseXML: __webpack_require__(361), + RemoveFromDOM: __webpack_require__(174), + RequestAnimationFrame: __webpack_require__(341) }; @@ -140698,7 +140782,7 @@ module.exports = Dom; /***/ }), -/* 813 */ +/* 812 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140711,11 +140795,11 @@ module.exports = Dom; * @namespace Phaser.Events */ -module.exports = { EventEmitter: __webpack_require__(814) }; +module.exports = { EventEmitter: __webpack_require__(813) }; /***/ }), -/* 814 */ +/* 813 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140725,7 +140809,7 @@ module.exports = { EventEmitter: __webpack_require__(814) }; */ var Class = __webpack_require__(0); -var EE = __webpack_require__(9); +var EE = __webpack_require__(10); var PluginCache = __webpack_require__(23); /** @@ -140899,7 +140983,7 @@ module.exports = EventEmitter; /***/ }), -/* 815 */ +/* 814 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -140908,33 +140992,33 @@ module.exports = EventEmitter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AddToDOM = __webpack_require__(120); -var AnimationManager = __webpack_require__(288); -var CacheManager = __webpack_require__(291); +var AddToDOM = __webpack_require__(117); +var AnimationManager = __webpack_require__(286); +var CacheManager = __webpack_require__(289); var CanvasPool = __webpack_require__(26); var Class = __webpack_require__(0); -var Config = __webpack_require__(313); -var CreateDOMContainer = __webpack_require__(816); -var CreateRenderer = __webpack_require__(337); -var DataManager = __webpack_require__(113); -var DebugHeader = __webpack_require__(341); -var Device = __webpack_require__(314); -var DOMContentLoaded = __webpack_require__(356); -var EventEmitter = __webpack_require__(9); +var Config = __webpack_require__(311); +var CreateDOMContainer = __webpack_require__(815); +var CreateRenderer = __webpack_require__(335); +var DataManager = __webpack_require__(110); +var DebugHeader = __webpack_require__(339); +var Device = __webpack_require__(312); +var DOMContentLoaded = __webpack_require__(354); +var EventEmitter = __webpack_require__(10); var Events = __webpack_require__(18); -var InputManager = __webpack_require__(364); +var InputManager = __webpack_require__(362); var PluginCache = __webpack_require__(23); -var PluginManager = __webpack_require__(369); -var ScaleManager = __webpack_require__(370); -var SceneManager = __webpack_require__(372); -var TextureEvents = __webpack_require__(119); -var TextureManager = __webpack_require__(375); -var TimeStep = __webpack_require__(342); -var VisibilityHandler = __webpack_require__(344); +var PluginManager = __webpack_require__(367); +var ScaleManager = __webpack_require__(368); +var SceneManager = __webpack_require__(370); +var TextureEvents = __webpack_require__(116); +var TextureManager = __webpack_require__(373); +var TimeStep = __webpack_require__(340); +var VisibilityHandler = __webpack_require__(342); if (true) { - var SoundManagerCreator = __webpack_require__(379); + var SoundManagerCreator = __webpack_require__(377); } if (false) @@ -141602,7 +141686,7 @@ module.exports = Game; /***/ }), -/* 816 */ +/* 815 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -141611,7 +141695,7 @@ module.exports = Game; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AddToDOM = __webpack_require__(120); +var AddToDOM = __webpack_require__(117); var CreateDOMContainer = function (game) { @@ -141646,7 +141730,7 @@ module.exports = CreateDOMContainer; /***/ }), -/* 817 */ +/* 816 */ /***/ (function(module, exports) { /** @@ -141667,7 +141751,7 @@ module.exports = 'boot'; /***/ }), -/* 818 */ +/* 817 */ /***/ (function(module, exports) { /** @@ -141688,7 +141772,7 @@ module.exports = 'destroy'; /***/ }), -/* 819 */ +/* 818 */ /***/ (function(module, exports) { /** @@ -141716,7 +141800,7 @@ module.exports = 'dragend'; /***/ }), -/* 820 */ +/* 819 */ /***/ (function(module, exports) { /** @@ -141747,7 +141831,7 @@ module.exports = 'dragenter'; /***/ }), -/* 821 */ +/* 820 */ /***/ (function(module, exports) { /** @@ -141779,7 +141863,7 @@ module.exports = 'drag'; /***/ }), -/* 822 */ +/* 821 */ /***/ (function(module, exports) { /** @@ -141810,7 +141894,7 @@ module.exports = 'dragleave'; /***/ }), -/* 823 */ +/* 822 */ /***/ (function(module, exports) { /** @@ -141844,7 +141928,7 @@ module.exports = 'dragover'; /***/ }), -/* 824 */ +/* 823 */ /***/ (function(module, exports) { /** @@ -141874,7 +141958,7 @@ module.exports = 'dragstart'; /***/ }), -/* 825 */ +/* 824 */ /***/ (function(module, exports) { /** @@ -141903,7 +141987,7 @@ module.exports = 'drop'; /***/ }), -/* 826 */ +/* 825 */ /***/ (function(module, exports) { /** @@ -141930,7 +142014,7 @@ module.exports = 'gameout'; /***/ }), -/* 827 */ +/* 826 */ /***/ (function(module, exports) { /** @@ -141957,7 +142041,7 @@ module.exports = 'gameover'; /***/ }), -/* 828 */ +/* 827 */ /***/ (function(module, exports) { /** @@ -141998,7 +142082,7 @@ module.exports = 'gameobjectdown'; /***/ }), -/* 829 */ +/* 828 */ /***/ (function(module, exports) { /** @@ -142029,7 +142113,7 @@ module.exports = 'dragend'; /***/ }), -/* 830 */ +/* 829 */ /***/ (function(module, exports) { /** @@ -142059,7 +142143,7 @@ module.exports = 'dragenter'; /***/ }), -/* 831 */ +/* 830 */ /***/ (function(module, exports) { /** @@ -142090,7 +142174,7 @@ module.exports = 'drag'; /***/ }), -/* 832 */ +/* 831 */ /***/ (function(module, exports) { /** @@ -142120,7 +142204,7 @@ module.exports = 'dragleave'; /***/ }), -/* 833 */ +/* 832 */ /***/ (function(module, exports) { /** @@ -142153,7 +142237,7 @@ module.exports = 'dragover'; /***/ }), -/* 834 */ +/* 833 */ /***/ (function(module, exports) { /** @@ -142187,7 +142271,7 @@ module.exports = 'dragstart'; /***/ }), -/* 835 */ +/* 834 */ /***/ (function(module, exports) { /** @@ -142217,7 +142301,7 @@ module.exports = 'drop'; /***/ }), -/* 836 */ +/* 835 */ /***/ (function(module, exports) { /** @@ -142258,7 +142342,7 @@ module.exports = 'gameobjectmove'; /***/ }), -/* 837 */ +/* 836 */ /***/ (function(module, exports) { /** @@ -142299,7 +142383,7 @@ module.exports = 'gameobjectout'; /***/ }), -/* 838 */ +/* 837 */ /***/ (function(module, exports) { /** @@ -142340,7 +142424,7 @@ module.exports = 'gameobjectover'; /***/ }), -/* 839 */ +/* 838 */ /***/ (function(module, exports) { /** @@ -142381,7 +142465,7 @@ module.exports = 'pointerdown'; /***/ }), -/* 840 */ +/* 839 */ /***/ (function(module, exports) { /** @@ -142422,7 +142506,7 @@ module.exports = 'pointermove'; /***/ }), -/* 841 */ +/* 840 */ /***/ (function(module, exports) { /** @@ -142461,7 +142545,7 @@ module.exports = 'pointerout'; /***/ }), -/* 842 */ +/* 841 */ /***/ (function(module, exports) { /** @@ -142502,7 +142586,7 @@ module.exports = 'pointerover'; /***/ }), -/* 843 */ +/* 842 */ /***/ (function(module, exports) { /** @@ -142543,7 +142627,7 @@ module.exports = 'pointerup'; /***/ }), -/* 844 */ +/* 843 */ /***/ (function(module, exports) { /** @@ -142585,7 +142669,7 @@ module.exports = 'wheel'; /***/ }), -/* 845 */ +/* 844 */ /***/ (function(module, exports) { /** @@ -142626,7 +142710,7 @@ module.exports = 'gameobjectup'; /***/ }), -/* 846 */ +/* 845 */ /***/ (function(module, exports) { /** @@ -142670,7 +142754,7 @@ module.exports = 'gameobjectwheel'; /***/ }), -/* 847 */ +/* 846 */ /***/ (function(module, exports) { /** @@ -142691,7 +142775,7 @@ module.exports = 'boot'; /***/ }), -/* 848 */ +/* 847 */ /***/ (function(module, exports) { /** @@ -142716,7 +142800,7 @@ module.exports = 'process'; /***/ }), -/* 849 */ +/* 848 */ /***/ (function(module, exports) { /** @@ -142737,7 +142821,7 @@ module.exports = 'update'; /***/ }), -/* 850 */ +/* 849 */ /***/ (function(module, exports) { /** @@ -142772,7 +142856,7 @@ module.exports = 'pointerdown'; /***/ }), -/* 851 */ +/* 850 */ /***/ (function(module, exports) { /** @@ -142806,7 +142890,7 @@ module.exports = 'pointerdownoutside'; /***/ }), -/* 852 */ +/* 851 */ /***/ (function(module, exports) { /** @@ -142841,7 +142925,7 @@ module.exports = 'pointermove'; /***/ }), -/* 853 */ +/* 852 */ /***/ (function(module, exports) { /** @@ -142876,7 +142960,7 @@ module.exports = 'pointerout'; /***/ }), -/* 854 */ +/* 853 */ /***/ (function(module, exports) { /** @@ -142911,7 +142995,7 @@ module.exports = 'pointerover'; /***/ }), -/* 855 */ +/* 854 */ /***/ (function(module, exports) { /** @@ -142946,7 +143030,7 @@ module.exports = 'pointerup'; /***/ }), -/* 856 */ +/* 855 */ /***/ (function(module, exports) { /** @@ -142980,7 +143064,7 @@ module.exports = 'pointerupoutside'; /***/ }), -/* 857 */ +/* 856 */ /***/ (function(module, exports) { /** @@ -143018,7 +143102,7 @@ module.exports = 'wheel'; /***/ }), -/* 858 */ +/* 857 */ /***/ (function(module, exports) { /** @@ -143042,7 +143126,7 @@ module.exports = 'pointerlockchange'; /***/ }), -/* 859 */ +/* 858 */ /***/ (function(module, exports) { /** @@ -143064,7 +143148,7 @@ module.exports = 'preupdate'; /***/ }), -/* 860 */ +/* 859 */ /***/ (function(module, exports) { /** @@ -143085,7 +143169,7 @@ module.exports = 'shutdown'; /***/ }), -/* 861 */ +/* 860 */ /***/ (function(module, exports) { /** @@ -143107,7 +143191,7 @@ module.exports = 'start'; /***/ }), -/* 862 */ +/* 861 */ /***/ (function(module, exports) { /** @@ -143132,7 +143216,7 @@ module.exports = 'update'; /***/ }), -/* 863 */ +/* 862 */ /***/ (function(module, exports) { /** @@ -143191,7 +143275,7 @@ module.exports = GetInnerHeight; /***/ }), -/* 864 */ +/* 863 */ /***/ (function(module, exports) { /** @@ -143221,7 +143305,7 @@ module.exports = 'addfile'; /***/ }), -/* 865 */ +/* 864 */ /***/ (function(module, exports) { /** @@ -143249,7 +143333,7 @@ module.exports = 'complete'; /***/ }), -/* 866 */ +/* 865 */ /***/ (function(module, exports) { /** @@ -143278,7 +143362,7 @@ module.exports = 'filecomplete'; /***/ }), -/* 867 */ +/* 866 */ /***/ (function(module, exports) { /** @@ -143332,7 +143416,7 @@ module.exports = 'filecomplete-'; /***/ }), -/* 868 */ +/* 867 */ /***/ (function(module, exports) { /** @@ -143357,7 +143441,7 @@ module.exports = 'loaderror'; /***/ }), -/* 869 */ +/* 868 */ /***/ (function(module, exports) { /** @@ -143383,7 +143467,7 @@ module.exports = 'load'; /***/ }), -/* 870 */ +/* 869 */ /***/ (function(module, exports) { /** @@ -143410,7 +143494,7 @@ module.exports = 'fileprogress'; /***/ }), -/* 871 */ +/* 870 */ /***/ (function(module, exports) { /** @@ -143439,7 +143523,7 @@ module.exports = 'postprocess'; /***/ }), -/* 872 */ +/* 871 */ /***/ (function(module, exports) { /** @@ -143464,7 +143548,7 @@ module.exports = 'progress'; /***/ }), -/* 873 */ +/* 872 */ /***/ (function(module, exports) { /** @@ -143491,7 +143575,7 @@ module.exports = 'start'; /***/ }), -/* 874 */ +/* 873 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143501,7 +143585,7 @@ module.exports = 'start'; */ var GetFastValue = __webpack_require__(2); -var UppercaseFirst = __webpack_require__(180); +var UppercaseFirst = __webpack_require__(177); /** * Builds an array of which physics plugins should be activated for the given Scene. @@ -143553,7 +143637,7 @@ module.exports = GetPhysicsPlugins; /***/ }), -/* 875 */ +/* 874 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143600,7 +143684,7 @@ module.exports = GetScenePlugins; /***/ }), -/* 876 */ +/* 875 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143661,7 +143745,7 @@ module.exports = InjectionMap; /***/ }), -/* 877 */ +/* 876 */ /***/ (function(module, exports) { /** @@ -143742,7 +143826,7 @@ module.exports = AtlasXML; /***/ }), -/* 878 */ +/* 877 */ /***/ (function(module, exports) { /** @@ -143777,7 +143861,7 @@ module.exports = Canvas; /***/ }), -/* 879 */ +/* 878 */ /***/ (function(module, exports) { /** @@ -143812,7 +143896,7 @@ module.exports = Image; /***/ }), -/* 880 */ +/* 879 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143821,7 +143905,7 @@ module.exports = Image; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clone = __webpack_require__(67); +var Clone = __webpack_require__(65); /** * Parses a Texture Atlas JSON Array and adds the Frames to the Texture. @@ -143919,7 +144003,7 @@ module.exports = JSONArray; /***/ }), -/* 881 */ +/* 880 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -143928,7 +144012,7 @@ module.exports = JSONArray; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clone = __webpack_require__(67); +var Clone = __webpack_require__(65); /** * Parses a Texture Atlas JSON Hash and adds the Frames to the Texture. @@ -144018,7 +144102,7 @@ module.exports = JSONHash; /***/ }), -/* 882 */ +/* 881 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144042,15 +144126,15 @@ var GetFastValue = __webpack_require__(2); * * @param {Phaser.Textures.Texture} texture - The Texture to add the Frames to. * @param {integer} sourceIndex - The index of the TextureSource. - * @param {integer} x - [description] - * @param {integer} y - [description] - * @param {integer} width - [description] - * @param {integer} height - [description] + * @param {integer} x - The top-left coordinate of the Sprite Sheet. Defaults to zero. Used when extracting sheets from atlases. + * @param {integer} y - The top-left coordinate of the Sprite Sheet. Defaults to zero. Used when extracting sheets from atlases. + * @param {integer} width - The width of the source image. + * @param {integer} height - The height of the source image. * @param {object} config - An object describing how to parse the Sprite Sheet. * @param {number} config.frameWidth - Width in pixels of a single frame in the sprite sheet. * @param {number} [config.frameHeight] - Height in pixels of a single frame in the sprite sheet. Defaults to frameWidth if not provided. - * @param {number} [config.startFrame=0] - [description] - * @param {number} [config.endFrame=-1] - [description] + * @param {number} [config.startFrame=0] - The frame to start extracting from. Defaults to zero. + * @param {number} [config.endFrame=-1] - The frame to finish extracting at. Defaults to -1, which means 'all frames'. * @param {number} [config.margin=0] - If the frames have been drawn with a margin, specify the amount here. * @param {number} [config.spacing=0] - If the frames have been drawn with spacing between them, specify the amount here. * @@ -144143,7 +144227,7 @@ module.exports = SpriteSheet; /***/ }), -/* 883 */ +/* 882 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -144334,7 +144418,7 @@ module.exports = SpriteSheetFromAtlas; /***/ }), -/* 884 */ +/* 883 */ /***/ (function(module, exports) { /** @@ -144504,7 +144588,7 @@ TextureImporter: /***/ }), -/* 885 */ +/* 884 */ /***/ (function(module, exports) { /** @@ -144535,7 +144619,7 @@ module.exports = 'complete'; /***/ }), -/* 886 */ +/* 885 */ /***/ (function(module, exports) { /** @@ -144565,7 +144649,7 @@ module.exports = 'decoded'; /***/ }), -/* 887 */ +/* 886 */ /***/ (function(module, exports) { /** @@ -144597,7 +144681,7 @@ module.exports = 'decodedall'; /***/ }), -/* 888 */ +/* 887 */ /***/ (function(module, exports) { /** @@ -144629,7 +144713,7 @@ module.exports = 'destroy'; /***/ }), -/* 889 */ +/* 888 */ /***/ (function(module, exports) { /** @@ -144662,7 +144746,7 @@ module.exports = 'detune'; /***/ }), -/* 890 */ +/* 889 */ /***/ (function(module, exports) { /** @@ -144690,7 +144774,7 @@ module.exports = 'detune'; /***/ }), -/* 891 */ +/* 890 */ /***/ (function(module, exports) { /** @@ -144717,7 +144801,7 @@ module.exports = 'mute'; /***/ }), -/* 892 */ +/* 891 */ /***/ (function(module, exports) { /** @@ -144745,7 +144829,7 @@ module.exports = 'rate'; /***/ }), -/* 893 */ +/* 892 */ /***/ (function(module, exports) { /** @@ -144772,7 +144856,7 @@ module.exports = 'volume'; /***/ }), -/* 894 */ +/* 893 */ /***/ (function(module, exports) { /** @@ -144806,7 +144890,7 @@ module.exports = 'loop'; /***/ }), -/* 895 */ +/* 894 */ /***/ (function(module, exports) { /** @@ -144840,7 +144924,7 @@ module.exports = 'looped'; /***/ }), -/* 896 */ +/* 895 */ /***/ (function(module, exports) { /** @@ -144873,7 +144957,7 @@ module.exports = 'mute'; /***/ }), -/* 897 */ +/* 896 */ /***/ (function(module, exports) { /** @@ -144900,7 +144984,7 @@ module.exports = 'pauseall'; /***/ }), -/* 898 */ +/* 897 */ /***/ (function(module, exports) { /** @@ -144932,7 +145016,7 @@ module.exports = 'pause'; /***/ }), -/* 899 */ +/* 898 */ /***/ (function(module, exports) { /** @@ -144963,7 +145047,7 @@ module.exports = 'play'; /***/ }), -/* 900 */ +/* 899 */ /***/ (function(module, exports) { /** @@ -144996,7 +145080,7 @@ module.exports = 'rate'; /***/ }), -/* 901 */ +/* 900 */ /***/ (function(module, exports) { /** @@ -145023,7 +145107,7 @@ module.exports = 'resumeall'; /***/ }), -/* 902 */ +/* 901 */ /***/ (function(module, exports) { /** @@ -145056,7 +145140,7 @@ module.exports = 'resume'; /***/ }), -/* 903 */ +/* 902 */ /***/ (function(module, exports) { /** @@ -145089,7 +145173,7 @@ module.exports = 'seek'; /***/ }), -/* 904 */ +/* 903 */ /***/ (function(module, exports) { /** @@ -145116,7 +145200,7 @@ module.exports = 'stopall'; /***/ }), -/* 905 */ +/* 904 */ /***/ (function(module, exports) { /** @@ -145148,7 +145232,7 @@ module.exports = 'stop'; /***/ }), -/* 906 */ +/* 905 */ /***/ (function(module, exports) { /** @@ -145175,7 +145259,7 @@ module.exports = 'unlocked'; /***/ }), -/* 907 */ +/* 906 */ /***/ (function(module, exports) { /** @@ -145208,7 +145292,7 @@ module.exports = 'volume'; /***/ }), -/* 908 */ +/* 907 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145223,105 +145307,105 @@ module.exports = 'volume'; var GameObjects = { - Events: __webpack_require__(90), + Events: __webpack_require__(89), - DisplayList: __webpack_require__(909), + DisplayList: __webpack_require__(908), GameObjectCreator: __webpack_require__(16), GameObjectFactory: __webpack_require__(5), - UpdateList: __webpack_require__(937), + UpdateList: __webpack_require__(936), Components: __webpack_require__(11), BuildGameObject: __webpack_require__(27), - BuildGameObjectAnimation: __webpack_require__(390), + BuildGameObjectAnimation: __webpack_require__(388), GameObject: __webpack_require__(13), - BitmapText: __webpack_require__(129), - Blitter: __webpack_require__(187), - Container: __webpack_require__(188), - DOMElement: __webpack_require__(392), - DynamicBitmapText: __webpack_require__(189), - Extern: __webpack_require__(394), - Graphics: __webpack_require__(190), - Group: __webpack_require__(97), - Image: __webpack_require__(98), - Particles: __webpack_require__(969), - PathFollower: __webpack_require__(406), - RenderTexture: __webpack_require__(194), - RetroFont: __webpack_require__(978), - Rope: __webpack_require__(196), - Sprite: __webpack_require__(69), - Text: __webpack_require__(197), - TileSprite: __webpack_require__(198), - Zone: __webpack_require__(110), - Video: __webpack_require__(199), + BitmapText: __webpack_require__(127), + Blitter: __webpack_require__(184), + Container: __webpack_require__(185), + DOMElement: __webpack_require__(390), + DynamicBitmapText: __webpack_require__(186), + Extern: __webpack_require__(392), + Graphics: __webpack_require__(187), + Group: __webpack_require__(96), + Image: __webpack_require__(104), + Particles: __webpack_require__(968), + PathFollower: __webpack_require__(404), + RenderTexture: __webpack_require__(191), + RetroFont: __webpack_require__(977), + Rope: __webpack_require__(193), + Sprite: __webpack_require__(74), + Text: __webpack_require__(194), + TileSprite: __webpack_require__(195), + Zone: __webpack_require__(107), + Video: __webpack_require__(196), // Shapes Shape: __webpack_require__(31), - Arc: __webpack_require__(407), - Curve: __webpack_require__(408), - Ellipse: __webpack_require__(409), - Grid: __webpack_require__(410), - IsoBox: __webpack_require__(411), - IsoTriangle: __webpack_require__(412), - Line: __webpack_require__(413), - Polygon: __webpack_require__(414), - Rectangle: __webpack_require__(419), - Star: __webpack_require__(420), - Triangle: __webpack_require__(421), + Arc: __webpack_require__(405), + Curve: __webpack_require__(406), + Ellipse: __webpack_require__(407), + Grid: __webpack_require__(408), + IsoBox: __webpack_require__(409), + IsoTriangle: __webpack_require__(410), + Line: __webpack_require__(411), + Polygon: __webpack_require__(412), + Rectangle: __webpack_require__(417), + Star: __webpack_require__(418), + Triangle: __webpack_require__(419), // Game Object Factories Factories: { - Blitter: __webpack_require__(1029), - Container: __webpack_require__(1030), - DOMElement: __webpack_require__(1031), - DynamicBitmapText: __webpack_require__(1032), - Extern: __webpack_require__(1033), - Graphics: __webpack_require__(1034), - Group: __webpack_require__(1035), - Image: __webpack_require__(1036), - Particles: __webpack_require__(1037), - PathFollower: __webpack_require__(1038), - RenderTexture: __webpack_require__(1039), - Rope: __webpack_require__(1040), - Sprite: __webpack_require__(1041), - StaticBitmapText: __webpack_require__(1042), - Text: __webpack_require__(1043), - TileSprite: __webpack_require__(1044), - Zone: __webpack_require__(1045), - Video: __webpack_require__(1046), + Blitter: __webpack_require__(1028), + Container: __webpack_require__(1029), + DOMElement: __webpack_require__(1030), + DynamicBitmapText: __webpack_require__(1031), + Extern: __webpack_require__(1032), + Graphics: __webpack_require__(1033), + Group: __webpack_require__(1034), + Image: __webpack_require__(1035), + Particles: __webpack_require__(1036), + PathFollower: __webpack_require__(1037), + RenderTexture: __webpack_require__(1038), + Rope: __webpack_require__(1039), + Sprite: __webpack_require__(1040), + StaticBitmapText: __webpack_require__(1041), + Text: __webpack_require__(1042), + TileSprite: __webpack_require__(1043), + Zone: __webpack_require__(1044), + Video: __webpack_require__(1045), // Shapes - Arc: __webpack_require__(1047), - Curve: __webpack_require__(1048), - Ellipse: __webpack_require__(1049), - Grid: __webpack_require__(1050), - IsoBox: __webpack_require__(1051), - IsoTriangle: __webpack_require__(1052), - Line: __webpack_require__(1053), - Polygon: __webpack_require__(1054), - Rectangle: __webpack_require__(1055), - Star: __webpack_require__(1056), - Triangle: __webpack_require__(1057) + Arc: __webpack_require__(1046), + Curve: __webpack_require__(1047), + Ellipse: __webpack_require__(1048), + Grid: __webpack_require__(1049), + IsoBox: __webpack_require__(1050), + IsoTriangle: __webpack_require__(1051), + Line: __webpack_require__(1052), + Polygon: __webpack_require__(1053), + Rectangle: __webpack_require__(1054), + Star: __webpack_require__(1055), + Triangle: __webpack_require__(1056) }, Creators: { - Blitter: __webpack_require__(1058), - Container: __webpack_require__(1059), - DynamicBitmapText: __webpack_require__(1060), - Graphics: __webpack_require__(1061), - Group: __webpack_require__(1062), - Image: __webpack_require__(1063), - Particles: __webpack_require__(1064), - RenderTexture: __webpack_require__(1065), - Rope: __webpack_require__(1066), - Sprite: __webpack_require__(1067), - StaticBitmapText: __webpack_require__(1068), - Text: __webpack_require__(1069), - TileSprite: __webpack_require__(1070), - Zone: __webpack_require__(1071), - Video: __webpack_require__(1072) + Blitter: __webpack_require__(1057), + Container: __webpack_require__(1058), + DynamicBitmapText: __webpack_require__(1059), + Graphics: __webpack_require__(1060), + Group: __webpack_require__(1061), + Image: __webpack_require__(1062), + Particles: __webpack_require__(1063), + RenderTexture: __webpack_require__(1064), + Rope: __webpack_require__(1065), + Sprite: __webpack_require__(1066), + StaticBitmapText: __webpack_require__(1067), + Text: __webpack_require__(1068), + TileSprite: __webpack_require__(1069), + Zone: __webpack_require__(1070), + Video: __webpack_require__(1071) } }; @@ -145329,29 +145413,29 @@ var GameObjects = { if (true) { // WebGL only Game Objects - GameObjects.Mesh = __webpack_require__(130); - GameObjects.Quad = __webpack_require__(202); - GameObjects.Shader = __webpack_require__(203); + GameObjects.Mesh = __webpack_require__(129); + GameObjects.Quad = __webpack_require__(199); + GameObjects.Shader = __webpack_require__(200); - GameObjects.Factories.Mesh = __webpack_require__(1079); - GameObjects.Factories.Quad = __webpack_require__(1080); - GameObjects.Factories.Shader = __webpack_require__(1081); + GameObjects.Factories.Mesh = __webpack_require__(1078); + GameObjects.Factories.Quad = __webpack_require__(1079); + GameObjects.Factories.Shader = __webpack_require__(1080); - GameObjects.Creators.Mesh = __webpack_require__(1082); - GameObjects.Creators.Quad = __webpack_require__(1083); - GameObjects.Creators.Shader = __webpack_require__(1084); + GameObjects.Creators.Mesh = __webpack_require__(1081); + GameObjects.Creators.Quad = __webpack_require__(1082); + GameObjects.Creators.Shader = __webpack_require__(1083); - GameObjects.Light = __webpack_require__(425); + GameObjects.Light = __webpack_require__(423); - __webpack_require__(426); - __webpack_require__(1085); + __webpack_require__(424); + __webpack_require__(1084); } module.exports = GameObjects; /***/ }), -/* 909 */ +/* 908 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145361,10 +145445,10 @@ module.exports = GameObjects; */ var Class = __webpack_require__(0); -var List = __webpack_require__(126); +var List = __webpack_require__(124); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); -var StableSort = __webpack_require__(128); +var SceneEvents = __webpack_require__(21); +var StableSort = __webpack_require__(126); /** * @classdesc @@ -145556,7 +145640,7 @@ module.exports = DisplayList; /***/ }), -/* 910 */ +/* 909 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145571,21 +145655,21 @@ module.exports = DisplayList; module.exports = { - CheckMatrix: __webpack_require__(183), - MatrixToString: __webpack_require__(911), - ReverseColumns: __webpack_require__(912), - ReverseRows: __webpack_require__(913), - Rotate180: __webpack_require__(914), - RotateLeft: __webpack_require__(915), - RotateMatrix: __webpack_require__(127), - RotateRight: __webpack_require__(916), - TransposeMatrix: __webpack_require__(387) + CheckMatrix: __webpack_require__(180), + MatrixToString: __webpack_require__(910), + ReverseColumns: __webpack_require__(911), + ReverseRows: __webpack_require__(912), + Rotate180: __webpack_require__(913), + RotateLeft: __webpack_require__(914), + RotateMatrix: __webpack_require__(125), + RotateRight: __webpack_require__(915), + TransposeMatrix: __webpack_require__(385) }; /***/ }), -/* 911 */ +/* 910 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145594,8 +145678,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Pad = __webpack_require__(161); -var CheckMatrix = __webpack_require__(183); +var Pad = __webpack_require__(158); +var CheckMatrix = __webpack_require__(180); /** * Generates a string (which you can pass to console.log) from the given Array Matrix. @@ -145666,7 +145750,7 @@ module.exports = MatrixToString; /***/ }), -/* 912 */ +/* 911 */ /***/ (function(module, exports) { /** @@ -145697,7 +145781,7 @@ module.exports = ReverseColumns; /***/ }), -/* 913 */ +/* 912 */ /***/ (function(module, exports) { /** @@ -145733,7 +145817,7 @@ module.exports = ReverseRows; /***/ }), -/* 914 */ +/* 913 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145742,7 +145826,7 @@ module.exports = ReverseRows; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateMatrix = __webpack_require__(127); +var RotateMatrix = __webpack_require__(125); /** * Rotates the array matrix 180 degrees. @@ -145766,7 +145850,7 @@ module.exports = Rotate180; /***/ }), -/* 915 */ +/* 914 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145775,7 +145859,7 @@ module.exports = Rotate180; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateMatrix = __webpack_require__(127); +var RotateMatrix = __webpack_require__(125); /** * Rotates the array matrix to the left (or 90 degrees) @@ -145799,7 +145883,7 @@ module.exports = RotateLeft; /***/ }), -/* 916 */ +/* 915 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -145808,7 +145892,7 @@ module.exports = RotateLeft; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateMatrix = __webpack_require__(127); +var RotateMatrix = __webpack_require__(125); /** * Rotates the array matrix to the left (or -90 degrees) @@ -145832,7 +145916,7 @@ module.exports = RotateRight; /***/ }), -/* 917 */ +/* 916 */ /***/ (function(module, exports) { /** @@ -145949,7 +146033,7 @@ module.exports = Add; /***/ }), -/* 918 */ +/* 917 */ /***/ (function(module, exports) { /** @@ -146071,7 +146155,7 @@ module.exports = AddAt; /***/ }), -/* 919 */ +/* 918 */ /***/ (function(module, exports) { /** @@ -146109,7 +146193,7 @@ module.exports = BringToTop; /***/ }), -/* 920 */ +/* 919 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146118,7 +146202,7 @@ module.exports = BringToTop; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SafeRange = __webpack_require__(68); +var SafeRange = __webpack_require__(66); /** * Returns the total number of elements in the array which have a property matching the given value. @@ -146161,7 +146245,7 @@ module.exports = CountAllMatching; /***/ }), -/* 921 */ +/* 920 */ /***/ (function(module, exports) { /** @@ -146207,7 +146291,7 @@ module.exports = Each; /***/ }), -/* 922 */ +/* 921 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146216,7 +146300,7 @@ module.exports = Each; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SafeRange = __webpack_require__(68); +var SafeRange = __webpack_require__(66); /** * Passes each element in the array, between the start and end indexes, to the given callback. @@ -146263,7 +146347,7 @@ module.exports = EachInRange; /***/ }), -/* 923 */ +/* 922 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146272,7 +146356,7 @@ module.exports = EachInRange; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SafeRange = __webpack_require__(68); +var SafeRange = __webpack_require__(66); /** * Returns all elements in the array. @@ -146325,7 +146409,7 @@ module.exports = GetAll; /***/ }), -/* 924 */ +/* 923 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146334,7 +146418,7 @@ module.exports = GetAll; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SafeRange = __webpack_require__(68); +var SafeRange = __webpack_require__(66); /** * Returns the first element in the array. @@ -146384,7 +146468,7 @@ module.exports = GetFirst; /***/ }), -/* 925 */ +/* 924 */ /***/ (function(module, exports) { /** @@ -146426,7 +146510,7 @@ module.exports = MoveDown; /***/ }), -/* 926 */ +/* 925 */ /***/ (function(module, exports) { /** @@ -146473,7 +146557,7 @@ module.exports = MoveTo; /***/ }), -/* 927 */ +/* 926 */ /***/ (function(module, exports) { /** @@ -146515,7 +146599,7 @@ module.exports = MoveUp; /***/ }), -/* 928 */ +/* 927 */ /***/ (function(module, exports) { /** @@ -146579,7 +146663,7 @@ module.exports = NumberArray; /***/ }), -/* 929 */ +/* 928 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146588,7 +146672,7 @@ module.exports = NumberArray; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RoundAwayFromZero = __webpack_require__(331); +var RoundAwayFromZero = __webpack_require__(329); /** * Create an array of numbers (positive and/or negative) progressing from `start` @@ -146656,7 +146740,7 @@ module.exports = NumberArrayStep; /***/ }), -/* 930 */ +/* 929 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146665,7 +146749,7 @@ module.exports = NumberArrayStep; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SpliceOne = __webpack_require__(80); +var SpliceOne = __webpack_require__(79); /** * Removes the item from the given position in the array. @@ -146707,7 +146791,7 @@ module.exports = RemoveAt; /***/ }), -/* 931 */ +/* 930 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146716,7 +146800,7 @@ module.exports = RemoveAt; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SafeRange = __webpack_require__(68); +var SafeRange = __webpack_require__(66); /** * Removes the item within the given range in the array. @@ -146770,7 +146854,7 @@ module.exports = RemoveBetween; /***/ }), -/* 932 */ +/* 931 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146779,7 +146863,7 @@ module.exports = RemoveBetween; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SpliceOne = __webpack_require__(80); +var SpliceOne = __webpack_require__(79); /** * Removes a random object from the given array and returns it. @@ -146808,7 +146892,7 @@ module.exports = RemoveRandomElement; /***/ }), -/* 933 */ +/* 932 */ /***/ (function(module, exports) { /** @@ -146852,7 +146936,7 @@ module.exports = Replace; /***/ }), -/* 934 */ +/* 933 */ /***/ (function(module, exports) { /** @@ -146890,7 +146974,7 @@ module.exports = SendToBack; /***/ }), -/* 935 */ +/* 934 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -146899,7 +146983,7 @@ module.exports = SendToBack; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SafeRange = __webpack_require__(68); +var SafeRange = __webpack_require__(66); /** * Scans the array for elements with the given property. If found, the property is set to the `value`. @@ -146945,7 +147029,7 @@ module.exports = SetAll; /***/ }), -/* 936 */ +/* 935 */ /***/ (function(module, exports) { /** @@ -146993,7 +147077,7 @@ module.exports = Swap; /***/ }), -/* 937 */ +/* 936 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147003,9 +147087,9 @@ module.exports = Swap; */ var Class = __webpack_require__(0); -var ProcessQueue = __webpack_require__(185); +var ProcessQueue = __webpack_require__(182); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -147294,7 +147378,7 @@ module.exports = UpdateList; /***/ }), -/* 938 */ +/* 937 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147309,14 +147393,14 @@ module.exports = UpdateList; module.exports = { - PROCESS_QUEUE_ADD: __webpack_require__(939), - PROCESS_QUEUE_REMOVE: __webpack_require__(940) + PROCESS_QUEUE_ADD: __webpack_require__(938), + PROCESS_QUEUE_REMOVE: __webpack_require__(939) }; /***/ }), -/* 939 */ +/* 938 */ /***/ (function(module, exports) { /** @@ -147343,7 +147427,7 @@ module.exports = 'add'; /***/ }), -/* 940 */ +/* 939 */ /***/ (function(module, exports) { /** @@ -147370,7 +147454,7 @@ module.exports = 'remove'; /***/ }), -/* 941 */ +/* 940 */ /***/ (function(module, exports) { /** @@ -147823,7 +147907,7 @@ module.exports = GetBitmapTextSize; /***/ }), -/* 942 */ +/* 941 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147832,7 +147916,7 @@ module.exports = GetBitmapTextSize; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ParseXMLBitmapFont = __webpack_require__(186); +var ParseXMLBitmapFont = __webpack_require__(183); /** * Parse an XML Bitmap Font from an Atlas. @@ -147876,7 +147960,7 @@ module.exports = ParseFromAtlas; /***/ }), -/* 943 */ +/* 942 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147890,12 +147974,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(944); + renderWebGL = __webpack_require__(943); } if (true) { - renderCanvas = __webpack_require__(945); + renderCanvas = __webpack_require__(944); } module.exports = { @@ -147907,7 +147991,7 @@ module.exports = { /***/ }), -/* 944 */ +/* 943 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -147916,7 +148000,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -148143,7 +148227,7 @@ module.exports = BitmapTextWebGLRenderer; /***/ }), -/* 945 */ +/* 944 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148325,7 +148409,7 @@ module.exports = BitmapTextCanvasRenderer; /***/ }), -/* 946 */ +/* 945 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148339,12 +148423,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(947); + renderWebGL = __webpack_require__(946); } if (true) { - renderCanvas = __webpack_require__(948); + renderCanvas = __webpack_require__(947); } module.exports = { @@ -148356,7 +148440,7 @@ module.exports = { /***/ }), -/* 947 */ +/* 946 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148365,7 +148449,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -148486,7 +148570,7 @@ module.exports = BlitterWebGLRenderer; /***/ }), -/* 948 */ +/* 947 */ /***/ (function(module, exports) { /** @@ -148616,7 +148700,7 @@ module.exports = BlitterCanvasRenderer; /***/ }), -/* 949 */ +/* 948 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -148626,7 +148710,7 @@ module.exports = BlitterCanvasRenderer; */ var Class = __webpack_require__(0); -var Frame = __webpack_require__(94); +var Frame = __webpack_require__(93); /** * @classdesc @@ -149046,7 +149130,7 @@ module.exports = Bob; /***/ }), -/* 950 */ +/* 949 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149061,12 +149145,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(951); + renderWebGL = __webpack_require__(950); } if (true) { - renderCanvas = __webpack_require__(952); + renderCanvas = __webpack_require__(951); } module.exports = { @@ -149078,7 +149162,7 @@ module.exports = { /***/ }), -/* 951 */ +/* 950 */ /***/ (function(module, exports) { /** @@ -149227,7 +149311,7 @@ module.exports = ContainerWebGLRenderer; /***/ }), -/* 952 */ +/* 951 */ /***/ (function(module, exports) { /** @@ -149324,7 +149408,7 @@ module.exports = ContainerCanvasRenderer; /***/ }), -/* 953 */ +/* 952 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149338,12 +149422,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(393); + renderWebGL = __webpack_require__(391); } if (true) { - renderCanvas = __webpack_require__(393); + renderCanvas = __webpack_require__(391); } module.exports = { @@ -149355,7 +149439,7 @@ module.exports = { /***/ }), -/* 954 */ +/* 953 */ /***/ (function(module, exports) { /** @@ -149396,7 +149480,7 @@ module.exports = [ /***/ }), -/* 955 */ +/* 954 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149410,12 +149494,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(956); + renderWebGL = __webpack_require__(955); } if (true) { - renderCanvas = __webpack_require__(957); + renderCanvas = __webpack_require__(956); } module.exports = { @@ -149427,7 +149511,7 @@ module.exports = { /***/ }), -/* 956 */ +/* 955 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149436,7 +149520,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -149733,7 +149817,7 @@ module.exports = DynamicBitmapTextWebGLRenderer; /***/ }), -/* 957 */ +/* 956 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149944,7 +150028,7 @@ module.exports = DynamicBitmapTextCanvasRenderer; /***/ }), -/* 958 */ +/* 957 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -149958,12 +150042,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(959); + renderWebGL = __webpack_require__(958); } if (true) { - renderCanvas = __webpack_require__(960); + renderCanvas = __webpack_require__(959); } module.exports = { @@ -149975,7 +150059,7 @@ module.exports = { /***/ }), -/* 959 */ +/* 958 */ /***/ (function(module, exports) { /** @@ -150044,13 +150128,13 @@ module.exports = ExternWebGLRenderer; /***/ }), -/* 960 */ +/* 959 */ /***/ (function(module, exports) { /***/ }), -/* 961 */ +/* 960 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150064,15 +150148,15 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(962); + renderWebGL = __webpack_require__(961); // Needed for Graphics.generateTexture - renderCanvas = __webpack_require__(398); + renderCanvas = __webpack_require__(396); } if (true) { - renderCanvas = __webpack_require__(398); + renderCanvas = __webpack_require__(396); } module.exports = { @@ -150084,7 +150168,7 @@ module.exports = { /***/ }), -/* 962 */ +/* 961 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150093,8 +150177,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Commands = __webpack_require__(191); -var Utils = __webpack_require__(10); +var Commands = __webpack_require__(188); +var Utils = __webpack_require__(9); // TODO: Remove the use of this var Point = function (x, y, width) @@ -150449,7 +150533,7 @@ module.exports = GraphicsWebGLRenderer; /***/ }), -/* 963 */ +/* 962 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150463,12 +150547,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(964); + renderWebGL = __webpack_require__(963); } if (true) { - renderCanvas = __webpack_require__(965); + renderCanvas = __webpack_require__(964); } module.exports = { @@ -150480,7 +150564,7 @@ module.exports = { /***/ }), -/* 964 */ +/* 963 */ /***/ (function(module, exports) { /** @@ -150513,7 +150597,7 @@ module.exports = SpriteWebGLRenderer; /***/ }), -/* 965 */ +/* 964 */ /***/ (function(module, exports) { /** @@ -150546,7 +150630,7 @@ module.exports = SpriteCanvasRenderer; /***/ }), -/* 966 */ +/* 965 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150560,12 +150644,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(967); + renderWebGL = __webpack_require__(966); } if (true) { - renderCanvas = __webpack_require__(968); + renderCanvas = __webpack_require__(967); } module.exports = { @@ -150577,7 +150661,7 @@ module.exports = { /***/ }), -/* 967 */ +/* 966 */ /***/ (function(module, exports) { /** @@ -150610,7 +150694,7 @@ module.exports = ImageWebGLRenderer; /***/ }), -/* 968 */ +/* 967 */ /***/ (function(module, exports) { /** @@ -150643,7 +150727,7 @@ module.exports = ImageCanvasRenderer; /***/ }), -/* 969 */ +/* 968 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150658,17 +150742,17 @@ module.exports = ImageCanvasRenderer; module.exports = { - GravityWell: __webpack_require__(399), - Particle: __webpack_require__(400), - ParticleEmitter: __webpack_require__(401), - ParticleEmitterManager: __webpack_require__(193), - Zones: __webpack_require__(974) + GravityWell: __webpack_require__(397), + Particle: __webpack_require__(398), + ParticleEmitter: __webpack_require__(399), + ParticleEmitterManager: __webpack_require__(190), + Zones: __webpack_require__(973) }; /***/ }), -/* 970 */ +/* 969 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -150678,8 +150762,8 @@ module.exports = { */ var Class = __webpack_require__(0); -var FloatBetween = __webpack_require__(329); -var GetEaseFunction = __webpack_require__(70); +var FloatBetween = __webpack_require__(327); +var GetEaseFunction = __webpack_require__(67); var GetFastValue = __webpack_require__(2); var Wrap = __webpack_require__(58); @@ -151259,7 +151343,7 @@ module.exports = EmitterOp; /***/ }), -/* 971 */ +/* 970 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151273,12 +151357,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(972); + renderWebGL = __webpack_require__(971); } if (true) { - renderCanvas = __webpack_require__(973); + renderCanvas = __webpack_require__(972); } module.exports = { @@ -151290,7 +151374,7 @@ module.exports = { /***/ }), -/* 972 */ +/* 971 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151299,7 +151383,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -151449,7 +151533,7 @@ module.exports = ParticleManagerWebGLRenderer; /***/ }), -/* 973 */ +/* 972 */ /***/ (function(module, exports) { /** @@ -151572,7 +151656,7 @@ module.exports = ParticleManagerCanvasRenderer; /***/ }), -/* 974 */ +/* 973 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151587,9 +151671,40 @@ module.exports = ParticleManagerCanvasRenderer; module.exports = { - DeathZone: __webpack_require__(402), - EdgeZone: __webpack_require__(403), - RandomZone: __webpack_require__(405) + DeathZone: __webpack_require__(400), + EdgeZone: __webpack_require__(401), + RandomZone: __webpack_require__(403) + +}; + + +/***/ }), +/* 974 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var renderWebGL = __webpack_require__(1); +var renderCanvas = __webpack_require__(1); + +if (true) +{ + renderWebGL = __webpack_require__(975); +} + +if (true) +{ + renderCanvas = __webpack_require__(976); +} + +module.exports = { + + renderWebGL: renderWebGL, + renderCanvas: renderCanvas }; @@ -151604,38 +151719,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var renderWebGL = __webpack_require__(1); -var renderCanvas = __webpack_require__(1); - -if (true) -{ - renderWebGL = __webpack_require__(976); -} - -if (true) -{ - renderCanvas = __webpack_require__(977); -} - -module.exports = { - - renderWebGL: renderWebGL, - renderCanvas: renderCanvas - -}; - - -/***/ }), -/* 976 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -151689,7 +151773,7 @@ module.exports = RenderTextureWebGLRenderer; /***/ }), -/* 977 */ +/* 976 */ /***/ (function(module, exports) { /** @@ -151722,7 +151806,7 @@ module.exports = RenderTextureCanvasRenderer; /***/ }), -/* 978 */ +/* 977 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151731,7 +151815,7 @@ module.exports = RenderTextureCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RETRO_FONT_CONST = __webpack_require__(979); +var RETRO_FONT_CONST = __webpack_require__(978); var Extend = __webpack_require__(17); /** @@ -151739,7 +151823,7 @@ var Extend = __webpack_require__(17); * @since 3.6.0 */ -var RetroFont = { Parse: __webpack_require__(980) }; +var RetroFont = { Parse: __webpack_require__(979) }; // Merge in the consts RetroFont = Extend(false, RetroFont, RETRO_FONT_CONST); @@ -151748,7 +151832,7 @@ module.exports = RetroFont; /***/ }), -/* 979 */ +/* 978 */ /***/ (function(module, exports) { /** @@ -151864,7 +151948,7 @@ module.exports = RETRO_FONT_CONST; /***/ }), -/* 980 */ +/* 979 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151980,7 +152064,7 @@ module.exports = ParseRetroFont; /***/ }), -/* 981 */ +/* 980 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -151994,12 +152078,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(982); + renderWebGL = __webpack_require__(981); } if (true) { - renderCanvas = __webpack_require__(983); + renderCanvas = __webpack_require__(982); } module.exports = { @@ -152011,7 +152095,7 @@ module.exports = { /***/ }), -/* 982 */ +/* 981 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152020,7 +152104,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -152150,7 +152234,7 @@ module.exports = RopeWebGLRenderer; /***/ }), -/* 983 */ +/* 982 */ /***/ (function(module, exports) { /** @@ -152179,7 +152263,7 @@ module.exports = RopeCanvasRenderer; /***/ }), -/* 984 */ +/* 983 */ /***/ (function(module, exports) { /** @@ -152261,7 +152345,7 @@ module.exports = GetTextSize; /***/ }), -/* 985 */ +/* 984 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152275,12 +152359,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(986); + renderWebGL = __webpack_require__(985); } if (true) { - renderCanvas = __webpack_require__(987); + renderCanvas = __webpack_require__(986); } module.exports = { @@ -152292,7 +152376,7 @@ module.exports = { /***/ }), -/* 986 */ +/* 985 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152301,7 +152385,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -152357,7 +152441,7 @@ module.exports = TextWebGLRenderer; /***/ }), -/* 987 */ +/* 986 */ /***/ (function(module, exports) { /** @@ -152395,7 +152479,7 @@ module.exports = TextCanvasRenderer; /***/ }), -/* 988 */ +/* 987 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -152407,7 +152491,7 @@ module.exports = TextCanvasRenderer; var Class = __webpack_require__(0); var GetAdvancedValue = __webpack_require__(14); var GetValue = __webpack_require__(6); -var MeasureText = __webpack_require__(989); +var MeasureText = __webpack_require__(988); // Key: [ Object Key, Default Value ] @@ -153448,7 +153532,7 @@ module.exports = TextStyle; /***/ }), -/* 989 */ +/* 988 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153583,7 +153667,7 @@ module.exports = MeasureText; /***/ }), -/* 990 */ +/* 989 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153597,12 +153681,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(991); + renderWebGL = __webpack_require__(990); } if (true) { - renderCanvas = __webpack_require__(992); + renderCanvas = __webpack_require__(991); } module.exports = { @@ -153614,7 +153698,7 @@ module.exports = { /***/ }), -/* 991 */ +/* 990 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153623,7 +153707,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -153674,7 +153758,7 @@ module.exports = TileSpriteWebGLRenderer; /***/ }), -/* 992 */ +/* 991 */ /***/ (function(module, exports) { /** @@ -153709,7 +153793,7 @@ module.exports = TileSpriteCanvasRenderer; /***/ }), -/* 993 */ +/* 992 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153723,12 +153807,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(994); + renderWebGL = __webpack_require__(993); } if (true) { - renderCanvas = __webpack_require__(995); + renderCanvas = __webpack_require__(994); } module.exports = { @@ -153740,7 +153824,7 @@ module.exports = { /***/ }), -/* 994 */ +/* 993 */ /***/ (function(module, exports) { /** @@ -153776,7 +153860,7 @@ module.exports = VideoWebGLRenderer; /***/ }), -/* 995 */ +/* 994 */ /***/ (function(module, exports) { /** @@ -153812,7 +153896,7 @@ module.exports = VideoCanvasRenderer; /***/ }), -/* 996 */ +/* 995 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153826,12 +153910,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(997); + renderWebGL = __webpack_require__(996); } if (true) { - renderCanvas = __webpack_require__(998); + renderCanvas = __webpack_require__(997); } module.exports = { @@ -153843,7 +153927,7 @@ module.exports = { /***/ }), -/* 997 */ +/* 996 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153852,8 +153936,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(100); -var StrokePathWebGL = __webpack_require__(71); +var FillPathWebGL = __webpack_require__(97); +var StrokePathWebGL = __webpack_require__(68); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -153921,7 +154005,7 @@ module.exports = ArcWebGLRenderer; /***/ }), -/* 998 */ +/* 997 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -153997,7 +154081,7 @@ module.exports = ArcCanvasRenderer; /***/ }), -/* 999 */ +/* 998 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154011,12 +154095,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1000); + renderWebGL = __webpack_require__(999); } if (true) { - renderCanvas = __webpack_require__(1001); + renderCanvas = __webpack_require__(1000); } module.exports = { @@ -154028,7 +154112,7 @@ module.exports = { /***/ }), -/* 1000 */ +/* 999 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154037,8 +154121,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(100); -var StrokePathWebGL = __webpack_require__(71); +var FillPathWebGL = __webpack_require__(97); +var StrokePathWebGL = __webpack_require__(68); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -154106,7 +154190,7 @@ module.exports = CurveWebGLRenderer; /***/ }), -/* 1001 */ +/* 1000 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154194,7 +154278,7 @@ module.exports = CurveCanvasRenderer; /***/ }), -/* 1002 */ +/* 1001 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154208,12 +154292,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1003); + renderWebGL = __webpack_require__(1002); } if (true) { - renderCanvas = __webpack_require__(1004); + renderCanvas = __webpack_require__(1003); } module.exports = { @@ -154225,7 +154309,7 @@ module.exports = { /***/ }), -/* 1003 */ +/* 1002 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154234,8 +154318,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(100); -var StrokePathWebGL = __webpack_require__(71); +var FillPathWebGL = __webpack_require__(97); +var StrokePathWebGL = __webpack_require__(68); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -154303,7 +154387,7 @@ module.exports = EllipseWebGLRenderer; /***/ }), -/* 1004 */ +/* 1003 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154388,7 +154472,7 @@ module.exports = EllipseCanvasRenderer; /***/ }), -/* 1005 */ +/* 1004 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154402,12 +154486,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1006); + renderWebGL = __webpack_require__(1005); } if (true) { - renderCanvas = __webpack_require__(1007); + renderCanvas = __webpack_require__(1006); } module.exports = { @@ -154419,7 +154503,7 @@ module.exports = { /***/ }), -/* 1006 */ +/* 1005 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154428,7 +154512,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -154645,7 +154729,7 @@ module.exports = GridWebGLRenderer; /***/ }), -/* 1007 */ +/* 1006 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154834,7 +154918,7 @@ module.exports = GridCanvasRenderer; /***/ }), -/* 1008 */ +/* 1007 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154848,12 +154932,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1009); + renderWebGL = __webpack_require__(1008); } if (true) { - renderCanvas = __webpack_require__(1010); + renderCanvas = __webpack_require__(1009); } module.exports = { @@ -154865,7 +154949,7 @@ module.exports = { /***/ }), -/* 1009 */ +/* 1008 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -154874,7 +154958,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -155023,7 +155107,7 @@ module.exports = IsoBoxWebGLRenderer; /***/ }), -/* 1010 */ +/* 1009 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155124,7 +155208,7 @@ module.exports = IsoBoxCanvasRenderer; /***/ }), -/* 1011 */ +/* 1010 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155138,12 +155222,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1012); + renderWebGL = __webpack_require__(1011); } if (true) { - renderCanvas = __webpack_require__(1013); + renderCanvas = __webpack_require__(1012); } module.exports = { @@ -155155,7 +155239,7 @@ module.exports = { /***/ }), -/* 1012 */ +/* 1011 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155164,7 +155248,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -155332,7 +155416,7 @@ module.exports = IsoTriangleWebGLRenderer; /***/ }), -/* 1013 */ +/* 1012 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155446,7 +155530,7 @@ module.exports = IsoTriangleCanvasRenderer; /***/ }), -/* 1014 */ +/* 1013 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155460,12 +155544,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1015); + renderWebGL = __webpack_require__(1014); } if (true) { - renderCanvas = __webpack_require__(1016); + renderCanvas = __webpack_require__(1015); } module.exports = { @@ -155477,7 +155561,7 @@ module.exports = { /***/ }), -/* 1015 */ +/* 1014 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155486,7 +155570,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -155570,7 +155654,7 @@ module.exports = LineWebGLRenderer; /***/ }), -/* 1016 */ +/* 1015 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155627,7 +155711,7 @@ module.exports = LineCanvasRenderer; /***/ }), -/* 1017 */ +/* 1016 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155641,12 +155725,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1018); + renderWebGL = __webpack_require__(1017); } if (true) { - renderCanvas = __webpack_require__(1019); + renderCanvas = __webpack_require__(1018); } module.exports = { @@ -155658,7 +155742,7 @@ module.exports = { /***/ }), -/* 1018 */ +/* 1017 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155667,8 +155751,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(100); -var StrokePathWebGL = __webpack_require__(71); +var FillPathWebGL = __webpack_require__(97); +var StrokePathWebGL = __webpack_require__(68); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -155736,7 +155820,7 @@ module.exports = PolygonWebGLRenderer; /***/ }), -/* 1019 */ +/* 1018 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155821,7 +155905,7 @@ module.exports = PolygonCanvasRenderer; /***/ }), -/* 1020 */ +/* 1019 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155835,12 +155919,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1021); + renderWebGL = __webpack_require__(1020); } if (true) { - renderCanvas = __webpack_require__(1022); + renderCanvas = __webpack_require__(1021); } module.exports = { @@ -155852,7 +155936,7 @@ module.exports = { /***/ }), -/* 1021 */ +/* 1020 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -155861,8 +155945,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var StrokePathWebGL = __webpack_require__(71); -var Utils = __webpack_require__(10); +var StrokePathWebGL = __webpack_require__(68); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -155944,7 +156028,7 @@ module.exports = RectangleWebGLRenderer; /***/ }), -/* 1022 */ +/* 1021 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156018,7 +156102,7 @@ module.exports = RectangleCanvasRenderer; /***/ }), -/* 1023 */ +/* 1022 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156032,12 +156116,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1024); + renderWebGL = __webpack_require__(1023); } if (true) { - renderCanvas = __webpack_require__(1025); + renderCanvas = __webpack_require__(1024); } module.exports = { @@ -156049,7 +156133,7 @@ module.exports = { /***/ }), -/* 1024 */ +/* 1023 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156058,8 +156142,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var FillPathWebGL = __webpack_require__(100); -var StrokePathWebGL = __webpack_require__(71); +var FillPathWebGL = __webpack_require__(97); +var StrokePathWebGL = __webpack_require__(68); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -156127,7 +156211,7 @@ module.exports = StarWebGLRenderer; /***/ }), -/* 1025 */ +/* 1024 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156212,7 +156296,7 @@ module.exports = StarCanvasRenderer; /***/ }), -/* 1026 */ +/* 1025 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156226,12 +156310,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1027); + renderWebGL = __webpack_require__(1026); } if (true) { - renderCanvas = __webpack_require__(1028); + renderCanvas = __webpack_require__(1027); } module.exports = { @@ -156243,7 +156327,7 @@ module.exports = { /***/ }), -/* 1027 */ +/* 1026 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156252,8 +156336,8 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var StrokePathWebGL = __webpack_require__(71); -var Utils = __webpack_require__(10); +var StrokePathWebGL = __webpack_require__(68); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -156346,7 +156430,7 @@ module.exports = TriangleWebGLRenderer; /***/ }), -/* 1028 */ +/* 1027 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156421,7 +156505,7 @@ module.exports = TriangleCanvasRenderer; /***/ }), -/* 1029 */ +/* 1028 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156430,7 +156514,7 @@ module.exports = TriangleCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Blitter = __webpack_require__(187); +var Blitter = __webpack_require__(184); var GameObjectFactory = __webpack_require__(5); /** @@ -156463,7 +156547,7 @@ GameObjectFactory.register('blitter', function (x, y, key, frame) /***/ }), -/* 1030 */ +/* 1029 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156473,7 +156557,7 @@ GameObjectFactory.register('blitter', function (x, y, key, frame) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Container = __webpack_require__(188); +var Container = __webpack_require__(185); var GameObjectFactory = __webpack_require__(5); /** @@ -156497,7 +156581,7 @@ GameObjectFactory.register('container', function (x, y, children) /***/ }), -/* 1031 */ +/* 1030 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156506,7 +156590,7 @@ GameObjectFactory.register('container', function (x, y, children) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var DOMElement = __webpack_require__(392); +var DOMElement = __webpack_require__(390); var GameObjectFactory = __webpack_require__(5); /** @@ -156587,7 +156671,7 @@ GameObjectFactory.register('dom', function (x, y, element, style, innerText) /***/ }), -/* 1032 */ +/* 1031 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156596,7 +156680,7 @@ GameObjectFactory.register('dom', function (x, y, element, style, innerText) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var DynamicBitmapText = __webpack_require__(189); +var DynamicBitmapText = __webpack_require__(186); var GameObjectFactory = __webpack_require__(5); /** @@ -156656,7 +156740,7 @@ GameObjectFactory.register('dynamicBitmapText', function (x, y, font, text, size /***/ }), -/* 1033 */ +/* 1032 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156665,7 +156749,7 @@ GameObjectFactory.register('dynamicBitmapText', function (x, y, font, text, size * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Extern = __webpack_require__(394); +var Extern = __webpack_require__(392); var GameObjectFactory = __webpack_require__(5); /** @@ -156698,7 +156782,7 @@ GameObjectFactory.register('extern', function () /***/ }), -/* 1034 */ +/* 1033 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156707,7 +156791,7 @@ GameObjectFactory.register('extern', function () * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Graphics = __webpack_require__(190); +var Graphics = __webpack_require__(187); var GameObjectFactory = __webpack_require__(5); /** @@ -156737,7 +156821,7 @@ GameObjectFactory.register('graphics', function (config) /***/ }), -/* 1035 */ +/* 1034 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156746,7 +156830,7 @@ GameObjectFactory.register('graphics', function (config) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Group = __webpack_require__(97); +var Group = __webpack_require__(96); var GameObjectFactory = __webpack_require__(5); /** @@ -156769,7 +156853,7 @@ GameObjectFactory.register('group', function (children, config) /***/ }), -/* 1036 */ +/* 1035 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156778,7 +156862,7 @@ GameObjectFactory.register('group', function (children, config) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Image = __webpack_require__(98); +var Image = __webpack_require__(104); var GameObjectFactory = __webpack_require__(5); /** @@ -156811,7 +156895,7 @@ GameObjectFactory.register('image', function (x, y, key, frame) /***/ }), -/* 1037 */ +/* 1036 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156821,7 +156905,7 @@ GameObjectFactory.register('image', function (x, y, key, frame) */ var GameObjectFactory = __webpack_require__(5); -var ParticleEmitterManager = __webpack_require__(193); +var ParticleEmitterManager = __webpack_require__(190); /** * Creates a new Particle Emitter Manager Game Object and adds it to the Scene. @@ -156857,7 +156941,7 @@ GameObjectFactory.register('particles', function (key, frame, emitters) /***/ }), -/* 1038 */ +/* 1037 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156867,7 +156951,7 @@ GameObjectFactory.register('particles', function (key, frame, emitters) */ var GameObjectFactory = __webpack_require__(5); -var PathFollower = __webpack_require__(406); +var PathFollower = __webpack_require__(404); /** * Creates a new PathFollower Game Object and adds it to the Scene. @@ -156905,7 +156989,7 @@ GameObjectFactory.register('follower', function (path, x, y, key, frame) /***/ }), -/* 1039 */ +/* 1038 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156915,7 +156999,7 @@ GameObjectFactory.register('follower', function (path, x, y, key, frame) */ var GameObjectFactory = __webpack_require__(5); -var RenderTexture = __webpack_require__(194); +var RenderTexture = __webpack_require__(191); /** * Creates a new Render Texture Game Object and adds it to the Scene. @@ -156945,7 +157029,7 @@ GameObjectFactory.register('renderTexture', function (x, y, width, height, key, /***/ }), -/* 1040 */ +/* 1039 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -156954,7 +157038,7 @@ GameObjectFactory.register('renderTexture', function (x, y, width, height, key, * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Rope = __webpack_require__(196); +var Rope = __webpack_require__(193); var GameObjectFactory = __webpack_require__(5); /** @@ -156999,7 +157083,7 @@ if (true) /***/ }), -/* 1041 */ +/* 1040 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157009,7 +157093,7 @@ if (true) */ var GameObjectFactory = __webpack_require__(5); -var Sprite = __webpack_require__(69); +var Sprite = __webpack_require__(74); /** * Creates a new Sprite Game Object and adds it to the Scene. @@ -157046,7 +157130,7 @@ GameObjectFactory.register('sprite', function (x, y, key, frame) /***/ }), -/* 1042 */ +/* 1041 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157055,7 +157139,7 @@ GameObjectFactory.register('sprite', function (x, y, key, frame) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(129); +var BitmapText = __webpack_require__(127); var GameObjectFactory = __webpack_require__(5); /** @@ -157110,7 +157194,7 @@ GameObjectFactory.register('bitmapText', function (x, y, font, text, size, align /***/ }), -/* 1043 */ +/* 1042 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157119,7 +157203,7 @@ GameObjectFactory.register('bitmapText', function (x, y, font, text, size, align * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Text = __webpack_require__(197); +var Text = __webpack_require__(194); var GameObjectFactory = __webpack_require__(5); /** @@ -157175,7 +157259,7 @@ GameObjectFactory.register('text', function (x, y, text, style) /***/ }), -/* 1044 */ +/* 1043 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157184,7 +157268,7 @@ GameObjectFactory.register('text', function (x, y, text, style) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileSprite = __webpack_require__(198); +var TileSprite = __webpack_require__(195); var GameObjectFactory = __webpack_require__(5); /** @@ -157219,7 +157303,7 @@ GameObjectFactory.register('tileSprite', function (x, y, width, height, key, fra /***/ }), -/* 1045 */ +/* 1044 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157228,7 +157312,7 @@ GameObjectFactory.register('tileSprite', function (x, y, width, height, key, fra * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Zone = __webpack_require__(110); +var Zone = __webpack_require__(107); var GameObjectFactory = __webpack_require__(5); /** @@ -157261,7 +157345,7 @@ GameObjectFactory.register('zone', function (x, y, width, height) /***/ }), -/* 1046 */ +/* 1045 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157270,7 +157354,7 @@ GameObjectFactory.register('zone', function (x, y, width, height) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Video = __webpack_require__(199); +var Video = __webpack_require__(196); var GameObjectFactory = __webpack_require__(5); /** @@ -157308,7 +157392,7 @@ GameObjectFactory.register('video', function (x, y, key) /***/ }), -/* 1047 */ +/* 1046 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157317,7 +157401,7 @@ GameObjectFactory.register('video', function (x, y, key) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Arc = __webpack_require__(407); +var Arc = __webpack_require__(405); var GameObjectFactory = __webpack_require__(5); /** @@ -157381,7 +157465,7 @@ GameObjectFactory.register('circle', function (x, y, radius, fillColor, fillAlph /***/ }), -/* 1048 */ +/* 1047 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157391,7 +157475,7 @@ GameObjectFactory.register('circle', function (x, y, radius, fillColor, fillAlph */ var GameObjectFactory = __webpack_require__(5); -var Curve = __webpack_require__(408); +var Curve = __webpack_require__(406); /** * Creates a new Curve Shape Game Object and adds it to the Scene. @@ -157431,7 +157515,7 @@ GameObjectFactory.register('curve', function (x, y, curve, fillColor, fillAlpha) /***/ }), -/* 1049 */ +/* 1048 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157440,7 +157524,7 @@ GameObjectFactory.register('curve', function (x, y, curve, fillColor, fillAlpha) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Ellipse = __webpack_require__(409); +var Ellipse = __webpack_require__(407); var GameObjectFactory = __webpack_require__(5); /** @@ -157483,7 +157567,7 @@ GameObjectFactory.register('ellipse', function (x, y, width, height, fillColor, /***/ }), -/* 1050 */ +/* 1049 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157493,7 +157577,7 @@ GameObjectFactory.register('ellipse', function (x, y, width, height, fillColor, */ var GameObjectFactory = __webpack_require__(5); -var Grid = __webpack_require__(410); +var Grid = __webpack_require__(408); /** * Creates a new Grid Shape Game Object and adds it to the Scene. @@ -157538,7 +157622,7 @@ GameObjectFactory.register('grid', function (x, y, width, height, cellWidth, cel /***/ }), -/* 1051 */ +/* 1050 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157548,7 +157632,7 @@ GameObjectFactory.register('grid', function (x, y, width, height, cellWidth, cel */ var GameObjectFactory = __webpack_require__(5); -var IsoBox = __webpack_require__(411); +var IsoBox = __webpack_require__(409); /** * Creates a new IsoBox Shape Game Object and adds it to the Scene. @@ -157589,7 +157673,7 @@ GameObjectFactory.register('isobox', function (x, y, size, height, fillTop, fill /***/ }), -/* 1052 */ +/* 1051 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157599,7 +157683,7 @@ GameObjectFactory.register('isobox', function (x, y, size, height, fillTop, fill */ var GameObjectFactory = __webpack_require__(5); -var IsoTriangle = __webpack_require__(412); +var IsoTriangle = __webpack_require__(410); /** * Creates a new IsoTriangle Shape Game Object and adds it to the Scene. @@ -157642,7 +157726,7 @@ GameObjectFactory.register('isotriangle', function (x, y, size, height, reversed /***/ }), -/* 1053 */ +/* 1052 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157652,7 +157736,7 @@ GameObjectFactory.register('isotriangle', function (x, y, size, height, reversed */ var GameObjectFactory = __webpack_require__(5); -var Line = __webpack_require__(413); +var Line = __webpack_require__(411); /** * Creates a new Line Shape Game Object and adds it to the Scene. @@ -157693,7 +157777,7 @@ GameObjectFactory.register('line', function (x, y, x1, y1, x2, y2, strokeColor, /***/ }), -/* 1054 */ +/* 1053 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157703,7 +157787,7 @@ GameObjectFactory.register('line', function (x, y, x1, y1, x2, y2, strokeColor, */ var GameObjectFactory = __webpack_require__(5); -var Polygon = __webpack_require__(414); +var Polygon = __webpack_require__(412); /** * Creates a new Polygon Shape Game Object and adds it to the Scene. @@ -157746,7 +157830,7 @@ GameObjectFactory.register('polygon', function (x, y, points, fillColor, fillAlp /***/ }), -/* 1055 */ +/* 1054 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157756,7 +157840,7 @@ GameObjectFactory.register('polygon', function (x, y, points, fillColor, fillAlp */ var GameObjectFactory = __webpack_require__(5); -var Rectangle = __webpack_require__(419); +var Rectangle = __webpack_require__(417); /** * Creates a new Rectangle Shape Game Object and adds it to the Scene. @@ -157791,7 +157875,7 @@ GameObjectFactory.register('rectangle', function (x, y, width, height, fillColor /***/ }), -/* 1056 */ +/* 1055 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157800,7 +157884,7 @@ GameObjectFactory.register('rectangle', function (x, y, width, height, fillColor * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Star = __webpack_require__(420); +var Star = __webpack_require__(418); var GameObjectFactory = __webpack_require__(5); /** @@ -157843,7 +157927,7 @@ GameObjectFactory.register('star', function (x, y, points, innerRadius, outerRad /***/ }), -/* 1057 */ +/* 1056 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157853,7 +157937,7 @@ GameObjectFactory.register('star', function (x, y, points, innerRadius, outerRad */ var GameObjectFactory = __webpack_require__(5); -var Triangle = __webpack_require__(421); +var Triangle = __webpack_require__(419); /** * Creates a new Triangle Shape Game Object and adds it to the Scene. @@ -157894,7 +157978,7 @@ GameObjectFactory.register('triangle', function (x, y, x1, y1, x2, y2, x3, y3, f /***/ }), -/* 1058 */ +/* 1057 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157903,7 +157987,7 @@ GameObjectFactory.register('triangle', function (x, y, x1, y1, x2, y2, x3, y3, f * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Blitter = __webpack_require__(187); +var Blitter = __webpack_require__(184); var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); @@ -157944,7 +158028,7 @@ GameObjectCreator.register('blitter', function (config, addToScene) /***/ }), -/* 1059 */ +/* 1058 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -157955,7 +158039,7 @@ GameObjectCreator.register('blitter', function (config, addToScene) */ var BuildGameObject = __webpack_require__(27); -var Container = __webpack_require__(188); +var Container = __webpack_require__(185); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); @@ -157993,7 +158077,7 @@ GameObjectCreator.register('container', function (config, addToScene) /***/ }), -/* 1060 */ +/* 1059 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158002,7 +158086,7 @@ GameObjectCreator.register('container', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(189); +var BitmapText = __webpack_require__(186); var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); @@ -158044,7 +158128,7 @@ GameObjectCreator.register('dynamicBitmapText', function (config, addToScene) /***/ }), -/* 1061 */ +/* 1060 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158054,7 +158138,7 @@ GameObjectCreator.register('dynamicBitmapText', function (config, addToScene) */ var GameObjectCreator = __webpack_require__(16); -var Graphics = __webpack_require__(190); +var Graphics = __webpack_require__(187); /** * Creates a new Graphics Game Object and returns it. @@ -158092,7 +158176,7 @@ GameObjectCreator.register('graphics', function (config, addToScene) /***/ }), -/* 1062 */ +/* 1061 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158102,7 +158186,7 @@ GameObjectCreator.register('graphics', function (config, addToScene) */ var GameObjectCreator = __webpack_require__(16); -var Group = __webpack_require__(97); +var Group = __webpack_require__(96); /** * Creates a new Group Game Object and returns it. @@ -158125,7 +158209,7 @@ GameObjectCreator.register('group', function (config) /***/ }), -/* 1063 */ +/* 1062 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158137,7 +158221,7 @@ GameObjectCreator.register('group', function (config) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Image = __webpack_require__(98); +var Image = __webpack_require__(104); /** * Creates a new Image Game Object and returns it. @@ -158175,7 +158259,7 @@ GameObjectCreator.register('image', function (config, addToScene) /***/ }), -/* 1064 */ +/* 1063 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158187,7 +158271,7 @@ GameObjectCreator.register('image', function (config, addToScene) var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); var GetFastValue = __webpack_require__(2); -var ParticleEmitterManager = __webpack_require__(193); +var ParticleEmitterManager = __webpack_require__(190); /** * Creates a new Particle Emitter Manager Game Object and returns it. @@ -158232,7 +158316,7 @@ GameObjectCreator.register('particles', function (config, addToScene) /***/ }), -/* 1065 */ +/* 1064 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158244,7 +158328,7 @@ GameObjectCreator.register('particles', function (config, addToScene) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var RenderTexture = __webpack_require__(194); +var RenderTexture = __webpack_require__(191); /** * Creates a new Render Texture Game Object and returns it. @@ -158284,7 +158368,7 @@ GameObjectCreator.register('renderTexture', function (config, addToScene) /***/ }), -/* 1066 */ +/* 1065 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158297,7 +158381,7 @@ var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); var GetValue = __webpack_require__(6); -var Rope = __webpack_require__(196); +var Rope = __webpack_require__(193); /** * Creates a new Rope Game Object and returns it. @@ -158339,7 +158423,7 @@ GameObjectCreator.register('rope', function (config, addToScene) /***/ }), -/* 1067 */ +/* 1066 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158349,10 +158433,10 @@ GameObjectCreator.register('rope', function (config, addToScene) */ var BuildGameObject = __webpack_require__(27); -var BuildGameObjectAnimation = __webpack_require__(390); +var BuildGameObjectAnimation = __webpack_require__(388); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Sprite = __webpack_require__(69); +var Sprite = __webpack_require__(74); /** * Creates a new Sprite Game Object and returns it. @@ -158392,7 +158476,7 @@ GameObjectCreator.register('sprite', function (config, addToScene) /***/ }), -/* 1068 */ +/* 1067 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158401,7 +158485,7 @@ GameObjectCreator.register('sprite', function (config, addToScene) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var BitmapText = __webpack_require__(129); +var BitmapText = __webpack_require__(127); var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); @@ -158445,7 +158529,7 @@ GameObjectCreator.register('bitmapText', function (config, addToScene) /***/ }), -/* 1069 */ +/* 1068 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158457,7 +158541,7 @@ GameObjectCreator.register('bitmapText', function (config, addToScene) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Text = __webpack_require__(197); +var Text = __webpack_require__(194); /** * Creates a new Text Game Object and returns it. @@ -158532,7 +158616,7 @@ GameObjectCreator.register('text', function (config, addToScene) /***/ }), -/* 1070 */ +/* 1069 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158544,7 +158628,7 @@ GameObjectCreator.register('text', function (config, addToScene) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var TileSprite = __webpack_require__(198); +var TileSprite = __webpack_require__(195); /** * Creates a new TileSprite Game Object and returns it. @@ -158584,7 +158668,7 @@ GameObjectCreator.register('tileSprite', function (config, addToScene) /***/ }), -/* 1071 */ +/* 1070 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158595,7 +158679,7 @@ GameObjectCreator.register('tileSprite', function (config, addToScene) var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Zone = __webpack_require__(110); +var Zone = __webpack_require__(107); /** * Creates a new Zone Game Object and returns it. @@ -158623,7 +158707,7 @@ GameObjectCreator.register('zone', function (config) /***/ }), -/* 1072 */ +/* 1071 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158635,7 +158719,7 @@ GameObjectCreator.register('zone', function (config) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Video = __webpack_require__(199); +var Video = __webpack_require__(196); /** * Creates a new Video Game Object and returns it. @@ -158672,7 +158756,7 @@ GameObjectCreator.register('video', function (config, addToScene) /***/ }), -/* 1073 */ +/* 1072 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158686,12 +158770,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1074); + renderWebGL = __webpack_require__(1073); } if (true) { - renderCanvas = __webpack_require__(1075); + renderCanvas = __webpack_require__(1074); } module.exports = { @@ -158703,7 +158787,7 @@ module.exports = { /***/ }), -/* 1074 */ +/* 1073 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158712,7 +158796,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -158821,7 +158905,7 @@ module.exports = MeshWebGLRenderer; /***/ }), -/* 1075 */ +/* 1074 */ /***/ (function(module, exports) { /** @@ -158850,7 +158934,7 @@ module.exports = MeshCanvasRenderer; /***/ }), -/* 1076 */ +/* 1075 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -158864,12 +158948,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1077); + renderWebGL = __webpack_require__(1076); } if (true) { - renderCanvas = __webpack_require__(1078); + renderCanvas = __webpack_require__(1077); } module.exports = { @@ -158881,7 +158965,7 @@ module.exports = { /***/ }), -/* 1077 */ +/* 1076 */ /***/ (function(module, exports) { /** @@ -158965,7 +159049,7 @@ module.exports = ShaderWebGLRenderer; /***/ }), -/* 1078 */ +/* 1077 */ /***/ (function(module, exports) { /** @@ -158994,7 +159078,7 @@ module.exports = ShaderCanvasRenderer; /***/ }), -/* 1079 */ +/* 1078 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159003,7 +159087,7 @@ module.exports = ShaderCanvasRenderer; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Mesh = __webpack_require__(130); +var Mesh = __webpack_require__(129); var GameObjectFactory = __webpack_require__(5); /** @@ -159044,7 +159128,7 @@ if (true) /***/ }), -/* 1080 */ +/* 1079 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159053,7 +159137,7 @@ if (true) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Quad = __webpack_require__(202); +var Quad = __webpack_require__(199); var GameObjectFactory = __webpack_require__(5); /** @@ -159090,7 +159174,7 @@ if (true) /***/ }), -/* 1081 */ +/* 1080 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159099,7 +159183,7 @@ if (true) * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Shader = __webpack_require__(203); +var Shader = __webpack_require__(200); var GameObjectFactory = __webpack_require__(5); /** @@ -159131,7 +159215,7 @@ if (true) /***/ }), -/* 1082 */ +/* 1081 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159144,7 +159228,7 @@ var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); var GetValue = __webpack_require__(6); -var Mesh = __webpack_require__(130); +var Mesh = __webpack_require__(129); /** * Creates a new Mesh Game Object and returns it. @@ -159186,7 +159270,7 @@ GameObjectCreator.register('mesh', function (config, addToScene) /***/ }), -/* 1083 */ +/* 1082 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159198,7 +159282,7 @@ GameObjectCreator.register('mesh', function (config, addToScene) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Quad = __webpack_require__(202); +var Quad = __webpack_require__(199); /** * Creates a new Quad Game Object and returns it. @@ -159236,7 +159320,7 @@ GameObjectCreator.register('quad', function (config, addToScene) /***/ }), -/* 1084 */ +/* 1083 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159248,7 +159332,7 @@ GameObjectCreator.register('quad', function (config, addToScene) var BuildGameObject = __webpack_require__(27); var GameObjectCreator = __webpack_require__(16); var GetAdvancedValue = __webpack_require__(14); -var Shader = __webpack_require__(203); +var Shader = __webpack_require__(200); /** * Creates a new Shader Game Object and returns it. @@ -159289,7 +159373,7 @@ GameObjectCreator.register('shader', function (config, addToScene) /***/ }), -/* 1085 */ +/* 1084 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159299,9 +159383,9 @@ GameObjectCreator.register('shader', function (config, addToScene) */ var Class = __webpack_require__(0); -var LightsManager = __webpack_require__(426); +var LightsManager = __webpack_require__(424); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -159405,7 +159489,7 @@ module.exports = LightsPlugin; /***/ }), -/* 1086 */ +/* 1085 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159414,29 +159498,29 @@ module.exports = LightsPlugin; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circle = __webpack_require__(65); +var Circle = __webpack_require__(63); -Circle.Area = __webpack_require__(1087); -Circle.Circumference = __webpack_require__(267); -Circle.CircumferencePoint = __webpack_require__(147); -Circle.Clone = __webpack_require__(1088); +Circle.Area = __webpack_require__(1086); +Circle.Circumference = __webpack_require__(265); +Circle.CircumferencePoint = __webpack_require__(144); +Circle.Clone = __webpack_require__(1087); Circle.Contains = __webpack_require__(55); -Circle.ContainsPoint = __webpack_require__(1089); -Circle.ContainsRect = __webpack_require__(1090); -Circle.CopyFrom = __webpack_require__(1091); -Circle.Equals = __webpack_require__(1092); -Circle.GetBounds = __webpack_require__(1093); -Circle.GetPoint = __webpack_require__(265); -Circle.GetPoints = __webpack_require__(266); -Circle.Offset = __webpack_require__(1094); -Circle.OffsetPoint = __webpack_require__(1095); -Circle.Random = __webpack_require__(148); +Circle.ContainsPoint = __webpack_require__(1088); +Circle.ContainsRect = __webpack_require__(1089); +Circle.CopyFrom = __webpack_require__(1090); +Circle.Equals = __webpack_require__(1091); +Circle.GetBounds = __webpack_require__(1092); +Circle.GetPoint = __webpack_require__(263); +Circle.GetPoints = __webpack_require__(264); +Circle.Offset = __webpack_require__(1093); +Circle.OffsetPoint = __webpack_require__(1094); +Circle.Random = __webpack_require__(145); module.exports = Circle; /***/ }), -/* 1087 */ +/* 1086 */ /***/ (function(module, exports) { /** @@ -159464,7 +159548,7 @@ module.exports = Area; /***/ }), -/* 1088 */ +/* 1087 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159473,7 +159557,7 @@ module.exports = Area; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circle = __webpack_require__(65); +var Circle = __webpack_require__(63); /** * Creates a new Circle instance based on the values contained in the given source. @@ -159494,7 +159578,7 @@ module.exports = Clone; /***/ }), -/* 1089 */ +/* 1088 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159525,7 +159609,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1090 */ +/* 1089 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159561,7 +159645,7 @@ module.exports = ContainsRect; /***/ }), -/* 1091 */ +/* 1090 */ /***/ (function(module, exports) { /** @@ -159593,7 +159677,7 @@ module.exports = CopyFrom; /***/ }), -/* 1092 */ +/* 1091 */ /***/ (function(module, exports) { /** @@ -159627,7 +159711,7 @@ module.exports = Equals; /***/ }), -/* 1093 */ +/* 1092 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159667,7 +159751,7 @@ module.exports = GetBounds; /***/ }), -/* 1094 */ +/* 1093 */ /***/ (function(module, exports) { /** @@ -159702,7 +159786,7 @@ module.exports = Offset; /***/ }), -/* 1095 */ +/* 1094 */ /***/ (function(module, exports) { /** @@ -159736,7 +159820,7 @@ module.exports = OffsetPoint; /***/ }), -/* 1096 */ +/* 1095 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159745,29 +159829,29 @@ module.exports = OffsetPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Ellipse = __webpack_require__(95); +var Ellipse = __webpack_require__(94); -Ellipse.Area = __webpack_require__(1097); -Ellipse.Circumference = __webpack_require__(397); -Ellipse.CircumferencePoint = __webpack_require__(192); -Ellipse.Clone = __webpack_require__(1098); -Ellipse.Contains = __webpack_require__(96); -Ellipse.ContainsPoint = __webpack_require__(1099); -Ellipse.ContainsRect = __webpack_require__(1100); -Ellipse.CopyFrom = __webpack_require__(1101); -Ellipse.Equals = __webpack_require__(1102); -Ellipse.GetBounds = __webpack_require__(1103); -Ellipse.GetPoint = __webpack_require__(395); -Ellipse.GetPoints = __webpack_require__(396); -Ellipse.Offset = __webpack_require__(1104); -Ellipse.OffsetPoint = __webpack_require__(1105); -Ellipse.Random = __webpack_require__(155); +Ellipse.Area = __webpack_require__(1096); +Ellipse.Circumference = __webpack_require__(395); +Ellipse.CircumferencePoint = __webpack_require__(189); +Ellipse.Clone = __webpack_require__(1097); +Ellipse.Contains = __webpack_require__(95); +Ellipse.ContainsPoint = __webpack_require__(1098); +Ellipse.ContainsRect = __webpack_require__(1099); +Ellipse.CopyFrom = __webpack_require__(1100); +Ellipse.Equals = __webpack_require__(1101); +Ellipse.GetBounds = __webpack_require__(1102); +Ellipse.GetPoint = __webpack_require__(393); +Ellipse.GetPoints = __webpack_require__(394); +Ellipse.Offset = __webpack_require__(1103); +Ellipse.OffsetPoint = __webpack_require__(1104); +Ellipse.Random = __webpack_require__(152); module.exports = Ellipse; /***/ }), -/* 1097 */ +/* 1096 */ /***/ (function(module, exports) { /** @@ -159801,7 +159885,7 @@ module.exports = Area; /***/ }), -/* 1098 */ +/* 1097 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159810,7 +159894,7 @@ module.exports = Area; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Ellipse = __webpack_require__(95); +var Ellipse = __webpack_require__(94); /** * Creates a new Ellipse instance based on the values contained in the given source. @@ -159831,7 +159915,7 @@ module.exports = Clone; /***/ }), -/* 1099 */ +/* 1098 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159840,7 +159924,7 @@ module.exports = Clone; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(96); +var Contains = __webpack_require__(95); /** * Check to see if the Ellipse contains the given Point object. @@ -159862,7 +159946,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1100 */ +/* 1099 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -159871,7 +159955,7 @@ module.exports = ContainsPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(96); +var Contains = __webpack_require__(95); /** * Check to see if the Ellipse contains all four points of the given Rectangle object. @@ -159898,7 +159982,7 @@ module.exports = ContainsRect; /***/ }), -/* 1101 */ +/* 1100 */ /***/ (function(module, exports) { /** @@ -159930,7 +160014,7 @@ module.exports = CopyFrom; /***/ }), -/* 1102 */ +/* 1101 */ /***/ (function(module, exports) { /** @@ -159965,7 +160049,7 @@ module.exports = Equals; /***/ }), -/* 1103 */ +/* 1102 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160005,7 +160089,7 @@ module.exports = GetBounds; /***/ }), -/* 1104 */ +/* 1103 */ /***/ (function(module, exports) { /** @@ -160040,7 +160124,7 @@ module.exports = Offset; /***/ }), -/* 1105 */ +/* 1104 */ /***/ (function(module, exports) { /** @@ -160074,7 +160158,7 @@ module.exports = OffsetPoint; /***/ }), -/* 1106 */ +/* 1105 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160085,7 +160169,7 @@ module.exports = OffsetPoint; */ var Point = __webpack_require__(4); -var CircleToCircle = __webpack_require__(204); +var CircleToCircle = __webpack_require__(201); /** * Checks if two Circles intersect and returns the intersection points as a Point object array. @@ -160168,7 +160252,7 @@ module.exports = GetCircleToCircle; /***/ }), -/* 1107 */ +/* 1106 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160178,8 +160262,8 @@ module.exports = GetCircleToCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetLineToCircle = __webpack_require__(206); -var CircleToRectangle = __webpack_require__(205); +var GetLineToCircle = __webpack_require__(203); +var CircleToRectangle = __webpack_require__(202); /** * Checks for intersection between a circle and a rectangle, @@ -160218,7 +160302,7 @@ module.exports = GetCircleToRectangle; /***/ }), -/* 1108 */ +/* 1107 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160228,7 +160312,7 @@ module.exports = GetCircleToRectangle; */ var Rectangle = __webpack_require__(12); -var RectangleToRectangle = __webpack_require__(131); +var RectangleToRectangle = __webpack_require__(130); /** * Checks if two Rectangle shapes intersect and returns the area of this intersection as Rectangle object. @@ -160267,7 +160351,7 @@ module.exports = GetRectangleIntersection; /***/ }), -/* 1109 */ +/* 1108 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160277,8 +160361,8 @@ module.exports = GetRectangleIntersection; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetLineToRectangle = __webpack_require__(208); -var RectangleToRectangle = __webpack_require__(131); +var GetLineToRectangle = __webpack_require__(205); +var RectangleToRectangle = __webpack_require__(130); /** * Checks if two Rectangles intersect and returns the intersection points as a Point object array. @@ -160318,7 +160402,7 @@ module.exports = GetRectangleToRectangle; /***/ }), -/* 1110 */ +/* 1109 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160328,8 +160412,8 @@ module.exports = GetRectangleToRectangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RectangleToTriangle = __webpack_require__(430); -var GetLineToRectangle = __webpack_require__(208); +var RectangleToTriangle = __webpack_require__(428); +var GetLineToRectangle = __webpack_require__(205); /** * Checks for intersection between Rectangle shape and Triangle shape, @@ -160366,7 +160450,7 @@ module.exports = GetRectangleToTriangle; /***/ }), -/* 1111 */ +/* 1110 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160376,8 +160460,8 @@ module.exports = GetRectangleToTriangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetLineToCircle = __webpack_require__(206); -var TriangleToCircle = __webpack_require__(432); +var GetLineToCircle = __webpack_require__(203); +var TriangleToCircle = __webpack_require__(430); /** * Checks if a Triangle and a Circle intersect, and returns the intersection points as a Point object array. @@ -160415,7 +160499,7 @@ module.exports = GetTriangleToCircle; /***/ }), -/* 1112 */ +/* 1111 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160425,8 +160509,8 @@ module.exports = GetTriangleToCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TriangleToTriangle = __webpack_require__(435); -var GetTriangleToLine = __webpack_require__(433); +var TriangleToTriangle = __webpack_require__(433); +var GetTriangleToLine = __webpack_require__(431); /** * Checks if two Triangles intersect, and returns the intersection points as a Point object array. @@ -160464,7 +160548,7 @@ module.exports = GetTriangleToTriangle; /***/ }), -/* 1113 */ +/* 1112 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160473,7 +160557,7 @@ module.exports = GetTriangleToTriangle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PointToLine = __webpack_require__(437); +var PointToLine = __webpack_require__(435); /** * Checks if a Point is located on the given line segment. @@ -160505,7 +160589,7 @@ module.exports = PointToLineSegment; /***/ }), -/* 1114 */ +/* 1113 */ /***/ (function(module, exports) { /** @@ -160545,7 +160629,7 @@ module.exports = RectangleToValues; /***/ }), -/* 1115 */ +/* 1114 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160556,41 +160640,41 @@ module.exports = RectangleToValues; var Line = __webpack_require__(56); -Line.Angle = __webpack_require__(85); -Line.BresenhamPoints = __webpack_require__(287); -Line.CenterOn = __webpack_require__(1116); -Line.Clone = __webpack_require__(1117); -Line.CopyFrom = __webpack_require__(1118); -Line.Equals = __webpack_require__(1119); -Line.Extend = __webpack_require__(1120); -Line.GetEasedPoints = __webpack_require__(1121); -Line.GetMidPoint = __webpack_require__(1122); -Line.GetNearestPoint = __webpack_require__(1123); -Line.GetNormal = __webpack_require__(1124); -Line.GetPoint = __webpack_require__(274); -Line.GetPoints = __webpack_require__(151); -Line.GetShortestDistance = __webpack_require__(1125); -Line.Height = __webpack_require__(1126); +Line.Angle = __webpack_require__(84); +Line.BresenhamPoints = __webpack_require__(285); +Line.CenterOn = __webpack_require__(1115); +Line.Clone = __webpack_require__(1116); +Line.CopyFrom = __webpack_require__(1117); +Line.Equals = __webpack_require__(1118); +Line.Extend = __webpack_require__(1119); +Line.GetEasedPoints = __webpack_require__(1120); +Line.GetMidPoint = __webpack_require__(1121); +Line.GetNearestPoint = __webpack_require__(1122); +Line.GetNormal = __webpack_require__(1123); +Line.GetPoint = __webpack_require__(272); +Line.GetPoints = __webpack_require__(148); +Line.GetShortestDistance = __webpack_require__(1124); +Line.Height = __webpack_require__(1125); Line.Length = __webpack_require__(57); -Line.NormalAngle = __webpack_require__(438); -Line.NormalX = __webpack_require__(1127); -Line.NormalY = __webpack_require__(1128); -Line.Offset = __webpack_require__(1129); -Line.PerpSlope = __webpack_require__(1130); -Line.Random = __webpack_require__(152); -Line.ReflectAngle = __webpack_require__(1131); -Line.Rotate = __webpack_require__(1132); -Line.RotateAroundPoint = __webpack_require__(1133); -Line.RotateAroundXY = __webpack_require__(210); -Line.SetToAngle = __webpack_require__(1134); -Line.Slope = __webpack_require__(1135); -Line.Width = __webpack_require__(1136); +Line.NormalAngle = __webpack_require__(436); +Line.NormalX = __webpack_require__(1126); +Line.NormalY = __webpack_require__(1127); +Line.Offset = __webpack_require__(1128); +Line.PerpSlope = __webpack_require__(1129); +Line.Random = __webpack_require__(149); +Line.ReflectAngle = __webpack_require__(1130); +Line.Rotate = __webpack_require__(1131); +Line.RotateAroundPoint = __webpack_require__(1132); +Line.RotateAroundXY = __webpack_require__(207); +Line.SetToAngle = __webpack_require__(1133); +Line.Slope = __webpack_require__(1134); +Line.Width = __webpack_require__(1135); module.exports = Line; /***/ }), -/* 1116 */ +/* 1115 */ /***/ (function(module, exports) { /** @@ -160630,7 +160714,7 @@ module.exports = CenterOn; /***/ }), -/* 1117 */ +/* 1116 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160660,7 +160744,7 @@ module.exports = Clone; /***/ }), -/* 1118 */ +/* 1117 */ /***/ (function(module, exports) { /** @@ -160691,7 +160775,7 @@ module.exports = CopyFrom; /***/ }), -/* 1119 */ +/* 1118 */ /***/ (function(module, exports) { /** @@ -160725,7 +160809,7 @@ module.exports = Equals; /***/ }), -/* 1120 */ +/* 1119 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160783,7 +160867,7 @@ module.exports = Extend; /***/ }), -/* 1121 */ +/* 1120 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160792,8 +160876,8 @@ module.exports = Extend; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var DistanceBetweenPoints = __webpack_require__(318); -var GetEaseFunction = __webpack_require__(70); +var DistanceBetweenPoints = __webpack_require__(316); +var GetEaseFunction = __webpack_require__(67); var Point = __webpack_require__(4); /** @@ -160903,7 +160987,7 @@ module.exports = GetEasedPoints; /***/ }), -/* 1122 */ +/* 1121 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160941,7 +161025,7 @@ module.exports = GetMidPoint; /***/ }), -/* 1123 */ +/* 1122 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -160996,7 +161080,7 @@ module.exports = GetNearestPoint; /***/ }), -/* 1124 */ +/* 1123 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161006,7 +161090,7 @@ module.exports = GetNearestPoint; */ var MATH_CONST = __webpack_require__(15); -var Angle = __webpack_require__(85); +var Angle = __webpack_require__(84); var Point = __webpack_require__(4); /** @@ -161040,7 +161124,7 @@ module.exports = GetNormal; /***/ }), -/* 1125 */ +/* 1124 */ /***/ (function(module, exports) { /** @@ -161087,7 +161171,7 @@ module.exports = GetShortestDistance; /***/ }), -/* 1126 */ +/* 1125 */ /***/ (function(module, exports) { /** @@ -161115,7 +161199,7 @@ module.exports = Height; /***/ }), -/* 1127 */ +/* 1126 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161125,17 +161209,17 @@ module.exports = Height; */ var MATH_CONST = __webpack_require__(15); -var Angle = __webpack_require__(85); +var Angle = __webpack_require__(84); /** - * [description] + * Returns the x component of the normal vector of the given line. * * @function Phaser.Geom.Line.NormalX * @since 3.0.0 * * @param {Phaser.Geom.Line} line - The Line object to get the normal value from. * - * @return {number} [description] + * @return {number} The x component of the normal vector of the line. */ var NormalX = function (line) { @@ -161146,7 +161230,7 @@ module.exports = NormalX; /***/ }), -/* 1128 */ +/* 1127 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161156,7 +161240,7 @@ module.exports = NormalX; */ var MATH_CONST = __webpack_require__(15); -var Angle = __webpack_require__(85); +var Angle = __webpack_require__(84); /** * The Y value of the normal of the given line. @@ -161178,7 +161262,7 @@ module.exports = NormalY; /***/ }), -/* 1129 */ +/* 1128 */ /***/ (function(module, exports) { /** @@ -161216,7 +161300,7 @@ module.exports = Offset; /***/ }), -/* 1130 */ +/* 1129 */ /***/ (function(module, exports) { /** @@ -161244,7 +161328,7 @@ module.exports = PerpSlope; /***/ }), -/* 1131 */ +/* 1130 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161253,8 +161337,8 @@ module.exports = PerpSlope; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Angle = __webpack_require__(85); -var NormalAngle = __webpack_require__(438); +var Angle = __webpack_require__(84); +var NormalAngle = __webpack_require__(436); /** * Calculate the reflected angle between two lines. @@ -161278,7 +161362,7 @@ module.exports = ReflectAngle; /***/ }), -/* 1132 */ +/* 1131 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161287,7 +161371,7 @@ module.exports = ReflectAngle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(210); +var RotateAroundXY = __webpack_require__(207); /** * Rotate a line around its midpoint by the given angle in radians. @@ -161314,7 +161398,7 @@ module.exports = Rotate; /***/ }), -/* 1133 */ +/* 1132 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161323,7 +161407,7 @@ module.exports = Rotate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(210); +var RotateAroundXY = __webpack_require__(207); /** * Rotate a line around a point by the given angle in radians. @@ -161348,7 +161432,7 @@ module.exports = RotateAroundPoint; /***/ }), -/* 1134 */ +/* 1133 */ /***/ (function(module, exports) { /** @@ -161388,7 +161472,7 @@ module.exports = SetToAngle; /***/ }), -/* 1135 */ +/* 1134 */ /***/ (function(module, exports) { /** @@ -161416,7 +161500,7 @@ module.exports = Slope; /***/ }), -/* 1136 */ +/* 1135 */ /***/ (function(module, exports) { /** @@ -161444,7 +161528,7 @@ module.exports = Width; /***/ }), -/* 1137 */ +/* 1136 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161455,27 +161539,27 @@ module.exports = Width; var Point = __webpack_require__(4); -Point.Ceil = __webpack_require__(1138); -Point.Clone = __webpack_require__(1139); -Point.CopyFrom = __webpack_require__(1140); -Point.Equals = __webpack_require__(1141); -Point.Floor = __webpack_require__(1142); -Point.GetCentroid = __webpack_require__(1143); -Point.GetMagnitude = __webpack_require__(439); -Point.GetMagnitudeSq = __webpack_require__(440); -Point.GetRectangleFromPoints = __webpack_require__(1144); -Point.Interpolate = __webpack_require__(1145); -Point.Invert = __webpack_require__(1146); -Point.Negative = __webpack_require__(1147); -Point.Project = __webpack_require__(1148); -Point.ProjectUnit = __webpack_require__(1149); -Point.SetMagnitude = __webpack_require__(1150); +Point.Ceil = __webpack_require__(1137); +Point.Clone = __webpack_require__(1138); +Point.CopyFrom = __webpack_require__(1139); +Point.Equals = __webpack_require__(1140); +Point.Floor = __webpack_require__(1141); +Point.GetCentroid = __webpack_require__(1142); +Point.GetMagnitude = __webpack_require__(437); +Point.GetMagnitudeSq = __webpack_require__(438); +Point.GetRectangleFromPoints = __webpack_require__(1143); +Point.Interpolate = __webpack_require__(1144); +Point.Invert = __webpack_require__(1145); +Point.Negative = __webpack_require__(1146); +Point.Project = __webpack_require__(1147); +Point.ProjectUnit = __webpack_require__(1148); +Point.SetMagnitude = __webpack_require__(1149); module.exports = Point; /***/ }), -/* 1138 */ +/* 1137 */ /***/ (function(module, exports) { /** @@ -161505,7 +161589,7 @@ module.exports = Ceil; /***/ }), -/* 1139 */ +/* 1138 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161535,7 +161619,7 @@ module.exports = Clone; /***/ }), -/* 1140 */ +/* 1139 */ /***/ (function(module, exports) { /** @@ -161566,7 +161650,7 @@ module.exports = CopyFrom; /***/ }), -/* 1141 */ +/* 1140 */ /***/ (function(module, exports) { /** @@ -161595,7 +161679,7 @@ module.exports = Equals; /***/ }), -/* 1142 */ +/* 1141 */ /***/ (function(module, exports) { /** @@ -161625,7 +161709,7 @@ module.exports = Floor; /***/ }), -/* 1143 */ +/* 1142 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161645,10 +161729,10 @@ var Point = __webpack_require__(4); * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Point[]} points - [description] - * @param {Phaser.Geom.Point} [out] - [description] + * @param {Phaser.Types.Math.Vector2Like[]} points - An array of Vector2Like objects to get the geometric center of. + * @param {Phaser.Geom.Point} [out] - A Point object to store the output coordinates in. If not given, a new Point instance is created. * - * @return {Phaser.Geom.Point} [description] + * @return {Phaser.Geom.Point} A Point object representing the geometric center of the given points. */ var GetCentroid = function (points, out) { @@ -161689,7 +161773,7 @@ module.exports = GetCentroid; /***/ }), -/* 1144 */ +/* 1143 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161708,10 +161792,10 @@ var Rectangle = __webpack_require__(12); * * @generic {Phaser.Geom.Rectangle} O - [out,$return] * - * @param {Phaser.Geom.Point[]} points - [description] - * @param {Phaser.Geom.Rectangle} [out] - [description] + * @param {Phaser.Types.Math.Vector2Like[]} points - An array of Vector2Like objects to get the AABB from. + * @param {Phaser.Geom.Rectangle} [out] - A Rectangle object to store the results in. If not given, a new Rectangle instance is created. * - * @return {Phaser.Geom.Rectangle} [description] + * @return {Phaser.Geom.Rectangle} A Rectangle object holding the AABB values for the given points. */ var GetRectangleFromPoints = function (points, out) { @@ -161759,7 +161843,7 @@ module.exports = GetRectangleFromPoints; /***/ }), -/* 1145 */ +/* 1144 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161771,7 +161855,7 @@ module.exports = GetRectangleFromPoints; var Point = __webpack_require__(4); /** - * [description] + * Returns the linear interpolation point between the two given points, based on `t`. * * @function Phaser.Geom.Point.Interpolate * @since 3.0.0 @@ -161800,7 +161884,7 @@ module.exports = Interpolate; /***/ }), -/* 1146 */ +/* 1145 */ /***/ (function(module, exports) { /** @@ -161830,7 +161914,7 @@ module.exports = Invert; /***/ }), -/* 1147 */ +/* 1146 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161865,7 +161949,7 @@ module.exports = Negative; /***/ }), -/* 1148 */ +/* 1147 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161875,21 +161959,22 @@ module.exports = Negative; */ var Point = __webpack_require__(4); -var GetMagnitudeSq = __webpack_require__(440); +var GetMagnitudeSq = __webpack_require__(438); /** - * [description] + * Calculates the vector projection of `pointA` onto the nonzero `pointB`. This is the + * orthogonal projection of `pointA` onto a straight line paralle to `pointB`. * * @function Phaser.Geom.Point.Project * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Point} pointA - [description] - * @param {Phaser.Geom.Point} pointB - [description] - * @param {Phaser.Geom.Point} [out] - [description] + * @param {Phaser.Geom.Point} pointA - Point A, to be projected onto Point B. + * @param {Phaser.Geom.Point} pointB - Point B, to have Point A projected upon it. + * @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created. * - * @return {Phaser.Geom.Point} [description] + * @return {Phaser.Geom.Point} A Point object holding the coordinates of the vector projection of `pointA` onto `pointB`. */ var Project = function (pointA, pointB, out) { @@ -161911,7 +161996,7 @@ module.exports = Project; /***/ }), -/* 1149 */ +/* 1148 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161923,18 +162008,19 @@ module.exports = Project; var Point = __webpack_require__(4); /** - * [description] + * Calculates the vector projection of `pointA` onto the nonzero `pointB`. This is the + * orthogonal projection of `pointA` onto a straight line paralle to `pointB`. * * @function Phaser.Geom.Point.ProjectUnit * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Point} pointA - [description] - * @param {Phaser.Geom.Point} pointB - [description] - * @param {Phaser.Geom.Point} [out] - [description] + * @param {Phaser.Geom.Point} pointA - Point A, to be projected onto Point B. Must be a normalized point with a magnitude of 1. + * @param {Phaser.Geom.Point} pointB - Point B, to have Point A projected upon it. + * @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created. * - * @return {Phaser.Geom.Point} [description] + * @return {Phaser.Geom.Point} A unit Point object holding the coordinates of the vector projection of `pointA` onto `pointB`. */ var ProjectUnit = function (pointA, pointB, out) { @@ -161955,7 +162041,7 @@ module.exports = ProjectUnit; /***/ }), -/* 1150 */ +/* 1149 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -161964,7 +162050,7 @@ module.exports = ProjectUnit; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetMagnitude = __webpack_require__(439); +var GetMagnitude = __webpack_require__(437); /** * Changes the magnitude (length) of a two-dimensional vector without changing its direction. @@ -161998,6 +162084,31 @@ var SetMagnitude = function (point, magnitude) module.exports = SetMagnitude; +/***/ }), +/* 1150 */ +/***/ (function(module, exports, __webpack_require__) { + +/** + * @author Richard Davey + * @copyright 2020 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */ + +var Polygon = __webpack_require__(197); + +Polygon.Clone = __webpack_require__(1151); +Polygon.Contains = __webpack_require__(198); +Polygon.ContainsPoint = __webpack_require__(1152); +Polygon.GetAABB = __webpack_require__(413); +Polygon.GetNumberArray = __webpack_require__(1153); +Polygon.GetPoints = __webpack_require__(414); +Polygon.Perimeter = __webpack_require__(415); +Polygon.Reverse = __webpack_require__(1154); +Polygon.Smooth = __webpack_require__(416); + +module.exports = Polygon; + + /***/ }), /* 1151 */ /***/ (function(module, exports, __webpack_require__) { @@ -162008,32 +162119,7 @@ module.exports = SetMagnitude; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Polygon = __webpack_require__(200); - -Polygon.Clone = __webpack_require__(1152); -Polygon.Contains = __webpack_require__(201); -Polygon.ContainsPoint = __webpack_require__(1153); -Polygon.GetAABB = __webpack_require__(415); -Polygon.GetNumberArray = __webpack_require__(1154); -Polygon.GetPoints = __webpack_require__(416); -Polygon.Perimeter = __webpack_require__(417); -Polygon.Reverse = __webpack_require__(1155); -Polygon.Smooth = __webpack_require__(418); - -module.exports = Polygon; - - -/***/ }), -/* 1152 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Polygon = __webpack_require__(200); +var Polygon = __webpack_require__(197); /** * Create a new polygon which is a copy of the specified polygon @@ -162054,7 +162140,7 @@ module.exports = Clone; /***/ }), -/* 1153 */ +/* 1152 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162063,18 +162149,18 @@ module.exports = Clone; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(201); +var Contains = __webpack_require__(198); /** - * [description] + * Checks the given Point again the Polygon to see if the Point lays within its vertices. * * @function Phaser.Geom.Polygon.ContainsPoint * @since 3.0.0 * - * @param {Phaser.Geom.Polygon} polygon - [description] - * @param {Phaser.Geom.Point} point - [description] + * @param {Phaser.Geom.Polygon} polygon - The Polygon to check. + * @param {Phaser.Geom.Point} point - The Point to check if it's within the Polygon. * - * @return {boolean} [description] + * @return {boolean} `true` if the Point is within the Polygon, otherwise `false`. */ var ContainsPoint = function (polygon, point) { @@ -162085,7 +162171,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1154 */ +/* 1153 */ /***/ (function(module, exports) { /** @@ -162128,7 +162214,7 @@ module.exports = GetNumberArray; /***/ }), -/* 1155 */ +/* 1154 */ /***/ (function(module, exports) { /** @@ -162160,7 +162246,7 @@ module.exports = Reverse; /***/ }), -/* 1156 */ +/* 1155 */ /***/ (function(module, exports) { /** @@ -162188,7 +162274,7 @@ module.exports = Area; /***/ }), -/* 1157 */ +/* 1156 */ /***/ (function(module, exports) { /** @@ -162221,7 +162307,7 @@ module.exports = Ceil; /***/ }), -/* 1158 */ +/* 1157 */ /***/ (function(module, exports) { /** @@ -162256,7 +162342,7 @@ module.exports = CeilAll; /***/ }), -/* 1159 */ +/* 1158 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162286,7 +162372,7 @@ module.exports = Clone; /***/ }), -/* 1160 */ +/* 1159 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162317,7 +162403,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1161 */ +/* 1160 */ /***/ (function(module, exports) { /** @@ -162348,7 +162434,7 @@ module.exports = CopyFrom; /***/ }), -/* 1162 */ +/* 1161 */ /***/ (function(module, exports) { /** @@ -162382,7 +162468,7 @@ module.exports = Equals; /***/ }), -/* 1163 */ +/* 1162 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162391,7 +162477,7 @@ module.exports = Equals; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetAspectRatio = __webpack_require__(211); +var GetAspectRatio = __webpack_require__(208); /** * Adjusts the target rectangle, changing its width, height and position, @@ -162435,7 +162521,7 @@ module.exports = FitInside; /***/ }), -/* 1164 */ +/* 1163 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162444,7 +162530,7 @@ module.exports = FitInside; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetAspectRatio = __webpack_require__(211); +var GetAspectRatio = __webpack_require__(208); /** * Adjusts the target rectangle, changing its width, height and position, @@ -162488,7 +162574,7 @@ module.exports = FitOutside; /***/ }), -/* 1165 */ +/* 1164 */ /***/ (function(module, exports) { /** @@ -162521,7 +162607,7 @@ module.exports = Floor; /***/ }), -/* 1166 */ +/* 1165 */ /***/ (function(module, exports) { /** @@ -162556,7 +162642,7 @@ module.exports = FloorAll; /***/ }), -/* 1167 */ +/* 1166 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162594,7 +162680,7 @@ module.exports = GetCenter; /***/ }), -/* 1168 */ +/* 1167 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162607,18 +162693,18 @@ var Point = __webpack_require__(4); /** - * The size of the Rectangle object, expressed as a Point object - * with the values of the width and height properties. + * Returns the size of the Rectangle, expressed as a Point object. + * With the value of the `width` as the `x` property and the `height` as the `y` property. * * @function Phaser.Geom.Rectangle.GetSize * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Rectangle} rect - [description] - * @param {(Phaser.Geom.Point|object)} [out] - [description] + * @param {Phaser.Geom.Rectangle} rect - The Rectangle to get the size from. + * @param {(Phaser.Geom.Point|object)} [out] - The Point object to store the size in. If not given, a new Point instance is created. * - * @return {(Phaser.Geom.Point|object)} [description] + * @return {(Phaser.Geom.Point|object)} A Point object where `x` holds the width and `y` holds the height of the Rectangle. */ var GetSize = function (rect, out) { @@ -162634,7 +162720,7 @@ module.exports = GetSize; /***/ }), -/* 1169 */ +/* 1168 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162643,7 +162729,7 @@ module.exports = GetSize; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CenterOn = __webpack_require__(166); +var CenterOn = __webpack_require__(163); /** @@ -162676,7 +162762,7 @@ module.exports = Inflate; /***/ }), -/* 1170 */ +/* 1169 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162686,7 +162772,7 @@ module.exports = Inflate; */ var Rectangle = __webpack_require__(12); -var Intersects = __webpack_require__(131); +var Intersects = __webpack_require__(130); /** * Takes two Rectangles and first checks to see if they intersect. @@ -162727,7 +162813,7 @@ module.exports = Intersection; /***/ }), -/* 1171 */ +/* 1170 */ /***/ (function(module, exports) { /** @@ -162776,7 +162862,7 @@ module.exports = MergePoints; /***/ }), -/* 1172 */ +/* 1171 */ /***/ (function(module, exports) { /** @@ -162823,7 +162909,7 @@ module.exports = MergeRect; /***/ }), -/* 1173 */ +/* 1172 */ /***/ (function(module, exports) { /** @@ -162867,7 +162953,7 @@ module.exports = MergeXY; /***/ }), -/* 1174 */ +/* 1173 */ /***/ (function(module, exports) { /** @@ -162902,7 +162988,7 @@ module.exports = Offset; /***/ }), -/* 1175 */ +/* 1174 */ /***/ (function(module, exports) { /** @@ -162936,7 +163022,7 @@ module.exports = OffsetPoint; /***/ }), -/* 1176 */ +/* 1175 */ /***/ (function(module, exports) { /** @@ -162970,7 +163056,7 @@ module.exports = Overlaps; /***/ }), -/* 1177 */ +/* 1176 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -162983,18 +163069,18 @@ var Point = __webpack_require__(4); var DegToRad = __webpack_require__(35); /** - * [description] + * Returns a Point from the perimeter of a Rectangle based on the given angle. * * @function Phaser.Geom.Rectangle.PerimeterPoint * @since 3.0.0 * * @generic {Phaser.Geom.Point} O - [out,$return] * - * @param {Phaser.Geom.Rectangle} rectangle - [description] - * @param {integer} angle - [description] - * @param {Phaser.Geom.Point} [out] - [description] + * @param {Phaser.Geom.Rectangle} rectangle - The Rectangle to get the perimeter point from. + * @param {integer} angle - The angle of the point, in degrees. + * @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created. * - * @return {Phaser.Geom.Point} [description] + * @return {Phaser.Geom.Point} A Point object holding the coordinates of the Rectangle perimeter. */ var PerimeterPoint = function (rectangle, angle, out) { @@ -163027,7 +163113,7 @@ module.exports = PerimeterPoint; /***/ }), -/* 1178 */ +/* 1177 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163036,8 +163122,8 @@ module.exports = PerimeterPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Between = __webpack_require__(171); -var ContainsRect = __webpack_require__(442); +var Between = __webpack_require__(168); +var ContainsRect = __webpack_require__(440); var Point = __webpack_require__(4); /** @@ -163098,7 +163184,7 @@ module.exports = RandomOutside; /***/ }), -/* 1179 */ +/* 1178 */ /***/ (function(module, exports) { /** @@ -163127,7 +163213,7 @@ module.exports = SameDimensions; /***/ }), -/* 1180 */ +/* 1179 */ /***/ (function(module, exports) { /** @@ -163166,7 +163252,7 @@ module.exports = Scale; /***/ }), -/* 1181 */ +/* 1180 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163175,38 +163261,38 @@ module.exports = Scale; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Triangle = __webpack_require__(72); +var Triangle = __webpack_require__(69); -Triangle.Area = __webpack_require__(1182); -Triangle.BuildEquilateral = __webpack_require__(1183); -Triangle.BuildFromPolygon = __webpack_require__(1184); -Triangle.BuildRight = __webpack_require__(1185); -Triangle.CenterOn = __webpack_require__(1186); -Triangle.Centroid = __webpack_require__(443); -Triangle.CircumCenter = __webpack_require__(1187); -Triangle.CircumCircle = __webpack_require__(1188); -Triangle.Clone = __webpack_require__(1189); -Triangle.Contains = __webpack_require__(83); -Triangle.ContainsArray = __webpack_require__(209); -Triangle.ContainsPoint = __webpack_require__(1190); -Triangle.CopyFrom = __webpack_require__(1191); -Triangle.Decompose = __webpack_require__(436); -Triangle.Equals = __webpack_require__(1192); -Triangle.GetPoint = __webpack_require__(422); -Triangle.GetPoints = __webpack_require__(423); -Triangle.InCenter = __webpack_require__(445); -Triangle.Perimeter = __webpack_require__(1193); -Triangle.Offset = __webpack_require__(444); -Triangle.Random = __webpack_require__(156); -Triangle.Rotate = __webpack_require__(1194); -Triangle.RotateAroundPoint = __webpack_require__(1195); -Triangle.RotateAroundXY = __webpack_require__(212); +Triangle.Area = __webpack_require__(1181); +Triangle.BuildEquilateral = __webpack_require__(1182); +Triangle.BuildFromPolygon = __webpack_require__(1183); +Triangle.BuildRight = __webpack_require__(1184); +Triangle.CenterOn = __webpack_require__(1185); +Triangle.Centroid = __webpack_require__(441); +Triangle.CircumCenter = __webpack_require__(1186); +Triangle.CircumCircle = __webpack_require__(1187); +Triangle.Clone = __webpack_require__(1188); +Triangle.Contains = __webpack_require__(82); +Triangle.ContainsArray = __webpack_require__(206); +Triangle.ContainsPoint = __webpack_require__(1189); +Triangle.CopyFrom = __webpack_require__(1190); +Triangle.Decompose = __webpack_require__(434); +Triangle.Equals = __webpack_require__(1191); +Triangle.GetPoint = __webpack_require__(420); +Triangle.GetPoints = __webpack_require__(421); +Triangle.InCenter = __webpack_require__(443); +Triangle.Perimeter = __webpack_require__(1192); +Triangle.Offset = __webpack_require__(442); +Triangle.Random = __webpack_require__(153); +Triangle.Rotate = __webpack_require__(1193); +Triangle.RotateAroundPoint = __webpack_require__(1194); +Triangle.RotateAroundXY = __webpack_require__(209); module.exports = Triangle; /***/ }), -/* 1182 */ +/* 1181 */ /***/ (function(module, exports) { /** @@ -163245,7 +163331,7 @@ module.exports = Area; /***/ }), -/* 1183 */ +/* 1182 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163254,7 +163340,7 @@ module.exports = Area; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Triangle = __webpack_require__(72); +var Triangle = __webpack_require__(69); /** * Builds an equilateral triangle. In the equilateral triangle, all the sides are the same length (congruent) and all the angles are the same size (congruent). @@ -163289,7 +163375,7 @@ module.exports = BuildEquilateral; /***/ }), -/* 1184 */ +/* 1183 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163298,11 +163384,12 @@ module.exports = BuildEquilateral; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var EarCut = __webpack_require__(66); -var Triangle = __webpack_require__(72); +var EarCut = __webpack_require__(64); +var Triangle = __webpack_require__(69); /** - * [description] + * Takes an array of vertex coordinates, and optionally an array of hole indices, then returns an array + * of Triangle instances, where the given vertices have been decomposed into a series of triangles. * * @function Phaser.Geom.Triangle.BuildFromPolygon * @since 3.0.0 @@ -163311,11 +163398,11 @@ var Triangle = __webpack_require__(72); * * @param {array} data - A flat array of vertex coordinates like [x0,y0, x1,y1, x2,y2, ...] * @param {array} [holes=null] - An array of hole indices if any (e.g. [5, 8] for a 12-vertex input would mean one hole with vertices 5–7 and another with 8–11). - * @param {number} [scaleX=1] - [description] - * @param {number} [scaleY=1] - [description] - * @param {(array|Phaser.Geom.Triangle[])} [out] - [description] + * @param {number} [scaleX=1] - Horizontal scale factor to multiply the resulting points by. + * @param {number} [scaleY=1] - Vertical scale factor to multiply the resulting points by. + * @param {(array|Phaser.Geom.Triangle[])} [out] - An array to store the resulting Triangle instances in. If not provided, a new array is created. * - * @return {(array|Phaser.Geom.Triangle[])} [description] + * @return {(array|Phaser.Geom.Triangle[])} An array of Triangle instances, where each triangle is based on the decomposed vertices data. */ var BuildFromPolygon = function (data, holes, scaleX, scaleY, out) { @@ -163364,7 +163451,7 @@ module.exports = BuildFromPolygon; /***/ }), -/* 1185 */ +/* 1184 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163373,7 +163460,7 @@ module.exports = BuildFromPolygon; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Triangle = __webpack_require__(72); +var Triangle = __webpack_require__(69); // Builds a right triangle, with one 90 degree angle and two acute angles // The x/y is the coordinate of the 90 degree angle (and will map to x1/y1 in the resulting Triangle) @@ -163413,7 +163500,7 @@ module.exports = BuildRight; /***/ }), -/* 1186 */ +/* 1185 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163422,8 +163509,8 @@ module.exports = BuildRight; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Centroid = __webpack_require__(443); -var Offset = __webpack_require__(444); +var Centroid = __webpack_require__(441); +var Offset = __webpack_require__(442); /** * @callback CenterFunction @@ -163466,7 +163553,7 @@ module.exports = CenterOn; /***/ }), -/* 1187 */ +/* 1186 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163510,10 +163597,10 @@ function det (m00, m01, m10, m11) * * @generic {Phaser.Math.Vector2} O - [out,$return] * - * @param {Phaser.Geom.Triangle} triangle - [description] - * @param {Phaser.Math.Vector2} [out] - [description] + * @param {Phaser.Geom.Triangle} triangle - The Triangle to get the circumcenter of. + * @param {Phaser.Math.Vector2} [out] - The Vector2 object to store the position in. If not given, a new Vector2 instance is created. * - * @return {Phaser.Math.Vector2} [description] + * @return {Phaser.Math.Vector2} A Vector2 object holding the coordinates of the circumcenter of the Triangle. */ var CircumCenter = function (triangle, out) { @@ -163542,7 +163629,7 @@ module.exports = CircumCenter; /***/ }), -/* 1188 */ +/* 1187 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163551,7 +163638,7 @@ module.exports = CircumCenter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circle = __webpack_require__(65); +var Circle = __webpack_require__(63); // Adapted from https://gist.github.com/mutoo/5617691 @@ -163625,7 +163712,7 @@ module.exports = CircumCircle; /***/ }), -/* 1189 */ +/* 1188 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163634,7 +163721,7 @@ module.exports = CircumCircle; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Triangle = __webpack_require__(72); +var Triangle = __webpack_require__(69); /** * Clones a Triangle object. @@ -163655,7 +163742,7 @@ module.exports = Clone; /***/ }), -/* 1190 */ +/* 1189 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163664,7 +163751,7 @@ module.exports = Clone; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Contains = __webpack_require__(83); +var Contains = __webpack_require__(82); /** * Tests if a triangle contains a point. @@ -163686,7 +163773,7 @@ module.exports = ContainsPoint; /***/ }), -/* 1191 */ +/* 1190 */ /***/ (function(module, exports) { /** @@ -163717,7 +163804,7 @@ module.exports = CopyFrom; /***/ }), -/* 1192 */ +/* 1191 */ /***/ (function(module, exports) { /** @@ -163753,7 +163840,7 @@ module.exports = Equals; /***/ }), -/* 1193 */ +/* 1192 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163764,17 +163851,16 @@ module.exports = Equals; var Length = __webpack_require__(57); -// The 2D area of a triangle. The area value is always non-negative. - /** * Gets the length of the perimeter of the given triangle. + * Calculated by adding together the length of each of the three sides. * * @function Phaser.Geom.Triangle.Perimeter * @since 3.0.0 * - * @param {Phaser.Geom.Triangle} triangle - [description] + * @param {Phaser.Geom.Triangle} triangle - The Triangle to get the length from. * - * @return {number} [description] + * @return {number} The length of the Triangle. */ var Perimeter = function (triangle) { @@ -163789,7 +163875,7 @@ module.exports = Perimeter; /***/ }), -/* 1194 */ +/* 1193 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163798,8 +163884,8 @@ module.exports = Perimeter; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(212); -var InCenter = __webpack_require__(445); +var RotateAroundXY = __webpack_require__(209); +var InCenter = __webpack_require__(443); /** * Rotates a Triangle about its incenter, which is the point at which its three angle bisectors meet. @@ -163825,7 +163911,7 @@ module.exports = Rotate; /***/ }), -/* 1195 */ +/* 1194 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163834,7 +163920,7 @@ module.exports = Rotate; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RotateAroundXY = __webpack_require__(212); +var RotateAroundXY = __webpack_require__(209); /** * Rotates a Triangle at a certain angle about a given Point or object with public `x` and `y` properties. @@ -163859,7 +163945,7 @@ module.exports = RotateAroundPoint; /***/ }), -/* 1196 */ +/* 1195 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163868,7 +163954,7 @@ module.exports = RotateAroundPoint; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(178); +var CONST = __webpack_require__(175); var Extend = __webpack_require__(17); /** @@ -163877,16 +163963,16 @@ var Extend = __webpack_require__(17); var Input = { - CreateInteractiveObject: __webpack_require__(446), + CreateInteractiveObject: __webpack_require__(444), Events: __webpack_require__(54), - Gamepad: __webpack_require__(1197), - InputManager: __webpack_require__(364), - InputPlugin: __webpack_require__(1209), - InputPluginCache: __webpack_require__(132), - Keyboard: __webpack_require__(1211), - Mouse: __webpack_require__(1228), - Pointer: __webpack_require__(367), - Touch: __webpack_require__(1229) + Gamepad: __webpack_require__(1196), + InputManager: __webpack_require__(362), + InputPlugin: __webpack_require__(1208), + InputPluginCache: __webpack_require__(131), + Keyboard: __webpack_require__(1210), + Mouse: __webpack_require__(1227), + Pointer: __webpack_require__(365), + Touch: __webpack_require__(1228) }; @@ -163897,7 +163983,7 @@ module.exports = Input; /***/ }), -/* 1197 */ +/* 1196 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -163912,18 +163998,18 @@ module.exports = Input; module.exports = { - Axis: __webpack_require__(447), - Button: __webpack_require__(448), - Events: __webpack_require__(213), - Gamepad: __webpack_require__(449), - GamepadPlugin: __webpack_require__(1204), + Axis: __webpack_require__(445), + Button: __webpack_require__(446), + Events: __webpack_require__(210), + Gamepad: __webpack_require__(447), + GamepadPlugin: __webpack_require__(1203), - Configs: __webpack_require__(1205) + Configs: __webpack_require__(1204) }; /***/ }), -/* 1198 */ +/* 1197 */ /***/ (function(module, exports) { /** @@ -163952,7 +164038,7 @@ module.exports = 'down'; /***/ }), -/* 1199 */ +/* 1198 */ /***/ (function(module, exports) { /** @@ -163981,7 +164067,7 @@ module.exports = 'up'; /***/ }), -/* 1200 */ +/* 1199 */ /***/ (function(module, exports) { /** @@ -164012,7 +164098,7 @@ module.exports = 'connected'; /***/ }), -/* 1201 */ +/* 1200 */ /***/ (function(module, exports) { /** @@ -164038,7 +164124,7 @@ module.exports = 'disconnected'; /***/ }), -/* 1202 */ +/* 1201 */ /***/ (function(module, exports) { /** @@ -164070,7 +164156,7 @@ module.exports = 'down'; /***/ }), -/* 1203 */ +/* 1202 */ /***/ (function(module, exports) { /** @@ -164102,7 +164188,7 @@ module.exports = 'up'; /***/ }), -/* 1204 */ +/* 1203 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164112,11 +164198,11 @@ module.exports = 'up'; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(213); -var Gamepad = __webpack_require__(449); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(210); +var Gamepad = __webpack_require__(447); var GetValue = __webpack_require__(6); -var InputPluginCache = __webpack_require__(132); +var InputPluginCache = __webpack_require__(131); var InputEvents = __webpack_require__(54); /** @@ -164740,7 +164826,7 @@ module.exports = GamepadPlugin; /***/ }), -/* 1205 */ +/* 1204 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164755,15 +164841,15 @@ module.exports = GamepadPlugin; module.exports = { - DUALSHOCK_4: __webpack_require__(1206), - SNES_USB: __webpack_require__(1207), - XBOX_360: __webpack_require__(1208) + DUALSHOCK_4: __webpack_require__(1205), + SNES_USB: __webpack_require__(1206), + XBOX_360: __webpack_require__(1207) }; /***/ }), -/* 1206 */ +/* 1205 */ /***/ (function(module, exports) { /** @@ -164813,7 +164899,7 @@ module.exports = { /***/ }), -/* 1207 */ +/* 1206 */ /***/ (function(module, exports) { /** @@ -164852,7 +164938,7 @@ module.exports = { /***/ }), -/* 1208 */ +/* 1207 */ /***/ (function(module, exports) { /** @@ -164903,7 +164989,7 @@ module.exports = { /***/ }), -/* 1209 */ +/* 1208 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -164912,27 +164998,27 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Circle = __webpack_require__(65); +var Circle = __webpack_require__(63); var CircleContains = __webpack_require__(55); var Class = __webpack_require__(0); -var CONST = __webpack_require__(178); -var CreateInteractiveObject = __webpack_require__(446); -var CreatePixelPerfectHandler = __webpack_require__(1210); +var CONST = __webpack_require__(175); +var CreateInteractiveObject = __webpack_require__(444); +var CreatePixelPerfectHandler = __webpack_require__(1209); var DistanceBetween = __webpack_require__(53); -var Ellipse = __webpack_require__(95); -var EllipseContains = __webpack_require__(96); +var Ellipse = __webpack_require__(94); +var EllipseContains = __webpack_require__(95); var Events = __webpack_require__(54); -var EventEmitter = __webpack_require__(9); +var EventEmitter = __webpack_require__(10); var GetFastValue = __webpack_require__(2); var GEOM_CONST = __webpack_require__(46); -var InputPluginCache = __webpack_require__(132); +var InputPluginCache = __webpack_require__(131); var IsPlainObject = __webpack_require__(7); var PluginCache = __webpack_require__(23); var Rectangle = __webpack_require__(12); var RectangleContains = __webpack_require__(47); -var SceneEvents = __webpack_require__(19); -var Triangle = __webpack_require__(72); -var TriangleContains = __webpack_require__(83); +var SceneEvents = __webpack_require__(21); +var Triangle = __webpack_require__(69); +var TriangleContains = __webpack_require__(82); /** * @classdesc @@ -168055,7 +168141,7 @@ module.exports = InputPlugin; /***/ }), -/* 1210 */ +/* 1209 */ /***/ (function(module, exports) { /** @@ -168091,7 +168177,7 @@ module.exports = CreatePixelPerfectHandler; /***/ }), -/* 1211 */ +/* 1210 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168106,26 +168192,26 @@ module.exports = CreatePixelPerfectHandler; module.exports = { - Events: __webpack_require__(133), + Events: __webpack_require__(132), - KeyboardManager: __webpack_require__(365), - KeyboardPlugin: __webpack_require__(1219), + KeyboardManager: __webpack_require__(363), + KeyboardPlugin: __webpack_require__(1218), - Key: __webpack_require__(450), - KeyCodes: __webpack_require__(122), + Key: __webpack_require__(448), + KeyCodes: __webpack_require__(119), - KeyCombo: __webpack_require__(451), + KeyCombo: __webpack_require__(449), - JustDown: __webpack_require__(1224), - JustUp: __webpack_require__(1225), - DownDuration: __webpack_require__(1226), - UpDuration: __webpack_require__(1227) + JustDown: __webpack_require__(1223), + JustUp: __webpack_require__(1224), + DownDuration: __webpack_require__(1225), + UpDuration: __webpack_require__(1226) }; /***/ }), -/* 1212 */ +/* 1211 */ /***/ (function(module, exports) { /** @@ -168161,7 +168247,7 @@ module.exports = 'keydown'; /***/ }), -/* 1213 */ +/* 1212 */ /***/ (function(module, exports) { /** @@ -168190,7 +168276,7 @@ module.exports = 'keyup'; /***/ }), -/* 1214 */ +/* 1213 */ /***/ (function(module, exports) { /** @@ -168224,7 +168310,7 @@ module.exports = 'keycombomatch'; /***/ }), -/* 1215 */ +/* 1214 */ /***/ (function(module, exports) { /** @@ -168258,7 +168344,7 @@ module.exports = 'down'; /***/ }), -/* 1216 */ +/* 1215 */ /***/ (function(module, exports) { /** @@ -168297,7 +168383,7 @@ module.exports = 'keydown-'; /***/ }), -/* 1217 */ +/* 1216 */ /***/ (function(module, exports) { /** @@ -168329,7 +168415,7 @@ module.exports = 'keyup-'; /***/ }), -/* 1218 */ +/* 1217 */ /***/ (function(module, exports) { /** @@ -168363,7 +168449,7 @@ module.exports = 'up'; /***/ }), -/* 1219 */ +/* 1218 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -168373,17 +168459,17 @@ module.exports = 'up'; */ var Class = __webpack_require__(0); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(133); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(132); var GameEvents = __webpack_require__(18); var GetValue = __webpack_require__(6); var InputEvents = __webpack_require__(54); -var InputPluginCache = __webpack_require__(132); -var Key = __webpack_require__(450); -var KeyCodes = __webpack_require__(122); -var KeyCombo = __webpack_require__(451); -var KeyMap = __webpack_require__(1223); -var SnapFloor = __webpack_require__(93); +var InputPluginCache = __webpack_require__(131); +var Key = __webpack_require__(448); +var KeyCodes = __webpack_require__(119); +var KeyCombo = __webpack_require__(449); +var KeyMap = __webpack_require__(1222); +var SnapFloor = __webpack_require__(92); /** * @classdesc @@ -169249,7 +169335,7 @@ module.exports = KeyboardPlugin; /***/ }), -/* 1220 */ +/* 1219 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169258,7 +169344,7 @@ module.exports = KeyboardPlugin; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AdvanceKeyCombo = __webpack_require__(1221); +var AdvanceKeyCombo = __webpack_require__(1220); /** * Used internally by the KeyCombo class. @@ -169330,7 +169416,7 @@ module.exports = ProcessKeyCombo; /***/ }), -/* 1221 */ +/* 1220 */ /***/ (function(module, exports) { /** @@ -169372,7 +169458,7 @@ module.exports = AdvanceKeyCombo; /***/ }), -/* 1222 */ +/* 1221 */ /***/ (function(module, exports) { /** @@ -169407,7 +169493,7 @@ module.exports = ResetKeyCombo; /***/ }), -/* 1223 */ +/* 1222 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169416,7 +169502,7 @@ module.exports = ResetKeyCombo; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var KeyCodes = __webpack_require__(122); +var KeyCodes = __webpack_require__(119); var KeyMap = {}; @@ -169429,7 +169515,7 @@ module.exports = KeyMap; /***/ }), -/* 1224 */ +/* 1223 */ /***/ (function(module, exports) { /** @@ -169471,7 +169557,7 @@ module.exports = JustDown; /***/ }), -/* 1225 */ +/* 1224 */ /***/ (function(module, exports) { /** @@ -169513,7 +169599,7 @@ module.exports = JustUp; /***/ }), -/* 1226 */ +/* 1225 */ /***/ (function(module, exports) { /** @@ -169547,7 +169633,7 @@ module.exports = DownDuration; /***/ }), -/* 1227 */ +/* 1226 */ /***/ (function(module, exports) { /** @@ -169581,7 +169667,7 @@ module.exports = UpDuration; /***/ }), -/* 1228 */ +/* 1227 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169597,14 +169683,14 @@ module.exports = UpDuration; /* eslint-disable */ module.exports = { - MouseManager: __webpack_require__(366) + MouseManager: __webpack_require__(364) }; /* eslint-enable */ /***/ }), -/* 1229 */ +/* 1228 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169620,14 +169706,14 @@ module.exports = { /* eslint-disable */ module.exports = { - TouchManager: __webpack_require__(368) + TouchManager: __webpack_require__(366) }; /* eslint-enable */ /***/ }), -/* 1230 */ +/* 1229 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169636,7 +169722,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(20); +var CONST = __webpack_require__(19); var Extend = __webpack_require__(17); /** @@ -169645,18 +169731,18 @@ var Extend = __webpack_require__(17); var Loader = { - Events: __webpack_require__(82), + Events: __webpack_require__(81), - FileTypes: __webpack_require__(1231), + FileTypes: __webpack_require__(1230), - File: __webpack_require__(21), + File: __webpack_require__(20), FileTypesManager: __webpack_require__(8), - GetURL: __webpack_require__(134), - LoaderPlugin: __webpack_require__(1255), - MergeXHRSettings: __webpack_require__(214), + GetURL: __webpack_require__(133), + LoaderPlugin: __webpack_require__(1254), + MergeXHRSettings: __webpack_require__(211), MultiFile: __webpack_require__(61), - XHRLoader: __webpack_require__(452), - XHRSettings: __webpack_require__(135) + XHRLoader: __webpack_require__(450), + XHRSettings: __webpack_require__(134) }; @@ -169667,7 +169753,7 @@ module.exports = Loader; /***/ }), -/* 1231 */ +/* 1230 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169682,42 +169768,42 @@ module.exports = Loader; module.exports = { - AnimationJSONFile: __webpack_require__(1232), - AtlasJSONFile: __webpack_require__(1233), - AtlasXMLFile: __webpack_require__(1234), - AudioFile: __webpack_require__(453), - AudioSpriteFile: __webpack_require__(1235), - BinaryFile: __webpack_require__(1236), - BitmapFontFile: __webpack_require__(1237), - CSSFile: __webpack_require__(1238), - GLSLFile: __webpack_require__(1239), - HTML5AudioFile: __webpack_require__(454), - HTMLFile: __webpack_require__(1240), - HTMLTextureFile: __webpack_require__(1241), - ImageFile: __webpack_require__(73), + AnimationJSONFile: __webpack_require__(1231), + AtlasJSONFile: __webpack_require__(1232), + AtlasXMLFile: __webpack_require__(1233), + AudioFile: __webpack_require__(451), + AudioSpriteFile: __webpack_require__(1234), + BinaryFile: __webpack_require__(1235), + BitmapFontFile: __webpack_require__(1236), + CSSFile: __webpack_require__(1237), + GLSLFile: __webpack_require__(1238), + HTML5AudioFile: __webpack_require__(452), + HTMLFile: __webpack_require__(1239), + HTMLTextureFile: __webpack_require__(1240), + ImageFile: __webpack_require__(70), JSONFile: __webpack_require__(60), - MultiAtlasFile: __webpack_require__(1242), - MultiScriptFile: __webpack_require__(1243), - PackFile: __webpack_require__(1244), - PluginFile: __webpack_require__(1245), - SceneFile: __webpack_require__(1246), - ScenePluginFile: __webpack_require__(1247), - ScriptFile: __webpack_require__(455), - SpriteSheetFile: __webpack_require__(1248), - SVGFile: __webpack_require__(1249), - TextFile: __webpack_require__(456), - TilemapCSVFile: __webpack_require__(1250), - TilemapImpactFile: __webpack_require__(1251), - TilemapJSONFile: __webpack_require__(1252), - UnityAtlasFile: __webpack_require__(1253), - VideoFile: __webpack_require__(1254), - XMLFile: __webpack_require__(215) + MultiAtlasFile: __webpack_require__(1241), + MultiScriptFile: __webpack_require__(1242), + PackFile: __webpack_require__(1243), + PluginFile: __webpack_require__(1244), + SceneFile: __webpack_require__(1245), + ScenePluginFile: __webpack_require__(1246), + ScriptFile: __webpack_require__(453), + SpriteSheetFile: __webpack_require__(1247), + SVGFile: __webpack_require__(1248), + TextFile: __webpack_require__(454), + TilemapCSVFile: __webpack_require__(1249), + TilemapImpactFile: __webpack_require__(1250), + TilemapJSONFile: __webpack_require__(1251), + UnityAtlasFile: __webpack_require__(1252), + VideoFile: __webpack_require__(1253), + XMLFile: __webpack_require__(212) }; /***/ }), -/* 1232 */ +/* 1231 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169729,7 +169815,7 @@ module.exports = { var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var JSONFile = __webpack_require__(60); -var LoaderEvents = __webpack_require__(82); +var LoaderEvents = __webpack_require__(81); /** * @classdesc @@ -169920,7 +170006,7 @@ module.exports = AnimationJSONFile; /***/ }), -/* 1233 */ +/* 1232 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -169932,7 +170018,7 @@ module.exports = AnimationJSONFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var ImageFile = __webpack_require__(73); +var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var JSONFile = __webpack_require__(60); var MultiFile = __webpack_require__(61); @@ -170169,7 +170255,7 @@ module.exports = AtlasJSONFile; /***/ }), -/* 1234 */ +/* 1233 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -170181,10 +170267,10 @@ module.exports = AtlasJSONFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var ImageFile = __webpack_require__(73); +var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var XMLFile = __webpack_require__(215); +var XMLFile = __webpack_require__(212); /** * @classdesc @@ -170412,7 +170498,7 @@ module.exports = AtlasXMLFile; /***/ }), -/* 1235 */ +/* 1234 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -170421,7 +170507,7 @@ module.exports = AtlasXMLFile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AudioFile = __webpack_require__(453); +var AudioFile = __webpack_require__(451); var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); @@ -170702,7 +170788,7 @@ FileTypesManager.register('audioSprite', function (key, jsonURL, audioURL, audio /***/ }), -/* 1236 */ +/* 1235 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -170712,8 +170798,8 @@ FileTypesManager.register('audioSprite', function (key, jsonURL, audioURL, audio */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -170884,7 +170970,7 @@ module.exports = BinaryFile; /***/ }), -/* 1237 */ +/* 1236 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -170896,11 +170982,11 @@ module.exports = BinaryFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var ImageFile = __webpack_require__(73); +var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var ParseXMLBitmapFont = __webpack_require__(186); -var XMLFile = __webpack_require__(215); +var ParseXMLBitmapFont = __webpack_require__(183); +var XMLFile = __webpack_require__(212); /** * @classdesc @@ -171127,7 +171213,7 @@ module.exports = BitmapFontFile; /***/ }), -/* 1238 */ +/* 1237 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -171137,8 +171223,8 @@ module.exports = BitmapFontFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -171295,7 +171381,7 @@ module.exports = CSSFile; /***/ }), -/* 1239 */ +/* 1238 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -171305,12 +171391,12 @@ module.exports = CSSFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); -var Shader = __webpack_require__(352); +var Shader = __webpack_require__(350); /** * @classdesc @@ -171706,7 +171792,7 @@ module.exports = GLSLFile; /***/ }), -/* 1240 */ +/* 1239 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -171716,8 +171802,8 @@ module.exports = GLSLFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -171881,7 +171967,7 @@ module.exports = HTMLFile; /***/ }), -/* 1241 */ +/* 1240 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -171891,8 +171977,8 @@ module.exports = HTMLFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -172139,7 +172225,7 @@ module.exports = HTMLTextureFile; /***/ }), -/* 1242 */ +/* 1241 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -172151,7 +172237,7 @@ module.exports = HTMLTextureFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var ImageFile = __webpack_require__(73); +var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var JSONFile = __webpack_require__(60); var MultiFile = __webpack_require__(61); @@ -172472,7 +172558,7 @@ module.exports = MultiAtlasFile; /***/ }), -/* 1243 */ +/* 1242 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -172486,7 +172572,7 @@ var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var ScriptFile = __webpack_require__(455); +var ScriptFile = __webpack_require__(453); /** * @classdesc @@ -172689,7 +172775,7 @@ module.exports = MultiScriptFile; /***/ }), -/* 1244 */ +/* 1243 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -172699,7 +172785,7 @@ module.exports = MultiScriptFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); +var CONST = __webpack_require__(19); var FileTypesManager = __webpack_require__(8); var JSONFile = __webpack_require__(60); @@ -172907,7 +172993,7 @@ module.exports = PackFile; /***/ }), -/* 1245 */ +/* 1244 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -172917,8 +173003,8 @@ module.exports = PackFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -173119,7 +173205,7 @@ module.exports = PluginFile; /***/ }), -/* 1246 */ +/* 1245 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173129,8 +173215,8 @@ module.exports = PluginFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -173340,7 +173426,7 @@ module.exports = SceneFile; /***/ }), -/* 1247 */ +/* 1246 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173350,8 +173436,8 @@ module.exports = SceneFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -173546,7 +173632,7 @@ module.exports = ScenePluginFile; /***/ }), -/* 1248 */ +/* 1247 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173557,7 +173643,7 @@ module.exports = ScenePluginFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); -var ImageFile = __webpack_require__(73); +var ImageFile = __webpack_require__(70); /** * @classdesc @@ -173737,7 +173823,7 @@ module.exports = SpriteSheetFile; /***/ }), -/* 1249 */ +/* 1248 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -173747,8 +173833,8 @@ module.exports = SpriteSheetFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -174076,7 +174162,7 @@ module.exports = SVGFile; /***/ }), -/* 1250 */ +/* 1249 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174086,12 +174172,12 @@ module.exports = SVGFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var File = __webpack_require__(21); +var CONST = __webpack_require__(19); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); -var TILEMAP_FORMATS = __webpack_require__(32); +var TILEMAP_FORMATS = __webpack_require__(33); /** * @classdesc @@ -174271,7 +174357,7 @@ module.exports = TilemapCSVFile; /***/ }), -/* 1251 */ +/* 1250 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174283,7 +174369,7 @@ module.exports = TilemapCSVFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var JSONFile = __webpack_require__(60); -var TILEMAP_FORMATS = __webpack_require__(32); +var TILEMAP_FORMATS = __webpack_require__(33); /** * @classdesc @@ -174427,7 +174513,7 @@ module.exports = TilemapImpactFile; /***/ }), -/* 1252 */ +/* 1251 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174439,7 +174525,7 @@ module.exports = TilemapImpactFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var JSONFile = __webpack_require__(60); -var TILEMAP_FORMATS = __webpack_require__(32); +var TILEMAP_FORMATS = __webpack_require__(33); /** * @classdesc @@ -174583,7 +174669,7 @@ module.exports = TilemapJSONFile; /***/ }), -/* 1253 */ +/* 1252 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174595,10 +174681,10 @@ module.exports = TilemapJSONFile; var Class = __webpack_require__(0); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); -var ImageFile = __webpack_require__(73); +var ImageFile = __webpack_require__(70); var IsPlainObject = __webpack_require__(7); var MultiFile = __webpack_require__(61); -var TextFile = __webpack_require__(456); +var TextFile = __webpack_require__(454); /** * @classdesc @@ -174825,7 +174911,7 @@ module.exports = UnityAtlasFile; /***/ }), -/* 1254 */ +/* 1253 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -174836,9 +174922,9 @@ module.exports = UnityAtlasFile; var Class = __webpack_require__(0); var CONST = __webpack_require__(29); -var File = __webpack_require__(21); +var File = __webpack_require__(20); var FileTypesManager = __webpack_require__(8); -var GetURL = __webpack_require__(134); +var GetURL = __webpack_require__(133); var GetFastValue = __webpack_require__(2); var IsPlainObject = __webpack_require__(7); @@ -175216,7 +175302,7 @@ module.exports = VideoFile; /***/ }), -/* 1255 */ +/* 1254 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -175226,15 +175312,15 @@ module.exports = VideoFile; */ var Class = __webpack_require__(0); -var CONST = __webpack_require__(20); -var CustomSet = __webpack_require__(108); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(82); +var CONST = __webpack_require__(19); +var CustomSet = __webpack_require__(128); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(81); var FileTypesManager = __webpack_require__(8); var GetFastValue = __webpack_require__(2); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); -var XHRSettings = __webpack_require__(135); +var SceneEvents = __webpack_require__(21); +var XHRSettings = __webpack_require__(134); /** * @classdesc @@ -176294,7 +176380,7 @@ module.exports = LoaderPlugin; /***/ }), -/* 1256 */ +/* 1255 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176319,18 +176405,18 @@ var Extend = __webpack_require__(17); var Arcade = { - ArcadePhysics: __webpack_require__(1257), - Body: __webpack_require__(463), - Collider: __webpack_require__(464), - Components: __webpack_require__(216), - Events: __webpack_require__(217), - Factory: __webpack_require__(457), - Group: __webpack_require__(459), - Image: __webpack_require__(458), - Sprite: __webpack_require__(136), - StaticBody: __webpack_require__(469), - StaticGroup: __webpack_require__(460), - World: __webpack_require__(462) + ArcadePhysics: __webpack_require__(1256), + Body: __webpack_require__(461), + Collider: __webpack_require__(462), + Components: __webpack_require__(213), + Events: __webpack_require__(214), + Factory: __webpack_require__(455), + Group: __webpack_require__(457), + Image: __webpack_require__(456), + Sprite: __webpack_require__(135), + StaticBody: __webpack_require__(467), + StaticGroup: __webpack_require__(458), + World: __webpack_require__(460) }; @@ -176341,7 +176427,7 @@ module.exports = Arcade; /***/ }), -/* 1257 */ +/* 1256 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -176353,16 +176439,16 @@ module.exports = Arcade; var Class = __webpack_require__(0); var DegToRad = __webpack_require__(35); var DistanceBetween = __webpack_require__(53); -var DistanceSquared = __webpack_require__(319); -var Factory = __webpack_require__(457); +var DistanceSquared = __webpack_require__(317); +var Factory = __webpack_require__(455); var GetFastValue = __webpack_require__(2); -var Merge = __webpack_require__(107); -var OverlapCirc = __webpack_require__(1270); -var OverlapRect = __webpack_require__(461); +var Merge = __webpack_require__(121); +var OverlapCirc = __webpack_require__(1269); +var OverlapRect = __webpack_require__(459); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); var Vector2 = __webpack_require__(3); -var World = __webpack_require__(462); +var World = __webpack_require__(460); /** * @classdesc @@ -177030,7 +177116,7 @@ module.exports = ArcadePhysics; /***/ }), -/* 1258 */ +/* 1257 */ /***/ (function(module, exports) { /** @@ -177105,7 +177191,7 @@ module.exports = Acceleration; /***/ }), -/* 1259 */ +/* 1258 */ /***/ (function(module, exports) { /** @@ -177187,7 +177273,7 @@ module.exports = Angular; /***/ }), -/* 1260 */ +/* 1259 */ /***/ (function(module, exports) { /** @@ -177286,7 +177372,7 @@ module.exports = Bounce; /***/ }), -/* 1261 */ +/* 1260 */ /***/ (function(module, exports) { /** @@ -177413,7 +177499,7 @@ module.exports = Debug; /***/ }), -/* 1262 */ +/* 1261 */ /***/ (function(module, exports) { /** @@ -177546,7 +177632,7 @@ module.exports = Drag; /***/ }), -/* 1263 */ +/* 1262 */ /***/ (function(module, exports) { /** @@ -177670,7 +177756,7 @@ module.exports = Enable; /***/ }), -/* 1264 */ +/* 1263 */ /***/ (function(module, exports) { /** @@ -177748,7 +177834,7 @@ module.exports = Friction; /***/ }), -/* 1265 */ +/* 1264 */ /***/ (function(module, exports) { /** @@ -177826,7 +177912,7 @@ module.exports = Gravity; /***/ }), -/* 1266 */ +/* 1265 */ /***/ (function(module, exports) { /** @@ -177868,7 +177954,7 @@ module.exports = Immovable; /***/ }), -/* 1267 */ +/* 1266 */ /***/ (function(module, exports) { /** @@ -177908,7 +177994,7 @@ module.exports = Mass; /***/ }), -/* 1268 */ +/* 1267 */ /***/ (function(module, exports) { /** @@ -177990,7 +178076,7 @@ module.exports = Size; /***/ }), -/* 1269 */ +/* 1268 */ /***/ (function(module, exports) { /** @@ -178089,13 +178175,13 @@ module.exports = Velocity; /***/ }), -/* 1270 */ +/* 1269 */ /***/ (function(module, exports, __webpack_require__) { -var OverlapRect = __webpack_require__(461); -var Circle = __webpack_require__(65); -var CircleToCircle = __webpack_require__(204); -var CircleToRectangle = __webpack_require__(205); +var OverlapRect = __webpack_require__(459); +var Circle = __webpack_require__(63); +var CircleToCircle = __webpack_require__(201); +var CircleToRectangle = __webpack_require__(202); /** * This method will search the given circular area and return an array of all physics bodies that @@ -178157,7 +178243,7 @@ module.exports = OverlapCirc; /***/ }), -/* 1271 */ +/* 1270 */ /***/ (function(module, exports) { /** @@ -178190,7 +178276,7 @@ module.exports = 'collide'; /***/ }), -/* 1272 */ +/* 1271 */ /***/ (function(module, exports) { /** @@ -178223,7 +178309,7 @@ module.exports = 'overlap'; /***/ }), -/* 1273 */ +/* 1272 */ /***/ (function(module, exports) { /** @@ -178246,7 +178332,7 @@ module.exports = 'pause'; /***/ }), -/* 1274 */ +/* 1273 */ /***/ (function(module, exports) { /** @@ -178269,7 +178355,7 @@ module.exports = 'resume'; /***/ }), -/* 1275 */ +/* 1274 */ /***/ (function(module, exports) { /** @@ -178301,7 +178387,7 @@ module.exports = 'tilecollide'; /***/ }), -/* 1276 */ +/* 1275 */ /***/ (function(module, exports) { /** @@ -178333,7 +178419,7 @@ module.exports = 'tileoverlap'; /***/ }), -/* 1277 */ +/* 1276 */ /***/ (function(module, exports) { /** @@ -178365,7 +178451,7 @@ module.exports = 'worldbounds'; /***/ }), -/* 1278 */ +/* 1277 */ /***/ (function(module, exports) { /** @@ -178391,7 +178477,7 @@ module.exports = 'worldstep'; /***/ }), -/* 1279 */ +/* 1278 */ /***/ (function(module, exports) { /** @@ -178432,7 +178518,7 @@ module.exports = ProcessTileCallbacks; /***/ }), -/* 1280 */ +/* 1279 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -178441,9 +178527,9 @@ module.exports = ProcessTileCallbacks; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileCheckX = __webpack_require__(1281); -var TileCheckY = __webpack_require__(1283); -var TileIntersectsBody = __webpack_require__(468); +var TileCheckX = __webpack_require__(1280); +var TileCheckY = __webpack_require__(1282); +var TileIntersectsBody = __webpack_require__(466); /** * The core separation function to separate a physics body and a tile. @@ -178552,7 +178638,7 @@ module.exports = SeparateTile; /***/ }), -/* 1281 */ +/* 1280 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -178561,7 +178647,7 @@ module.exports = SeparateTile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ProcessTileSeparationX = __webpack_require__(1282); +var ProcessTileSeparationX = __webpack_require__(1281); /** * Check the body against the given tile on the X axis. @@ -178642,7 +178728,7 @@ module.exports = TileCheckX; /***/ }), -/* 1282 */ +/* 1281 */ /***/ (function(module, exports) { /** @@ -178689,7 +178775,7 @@ module.exports = ProcessTileSeparationX; /***/ }), -/* 1283 */ +/* 1282 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -178698,7 +178784,7 @@ module.exports = ProcessTileSeparationX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ProcessTileSeparationY = __webpack_require__(1284); +var ProcessTileSeparationY = __webpack_require__(1283); /** * Check the body against the given tile on the Y axis. @@ -178779,7 +178865,7 @@ module.exports = TileCheckY; /***/ }), -/* 1284 */ +/* 1283 */ /***/ (function(module, exports) { /** @@ -178826,7 +178912,7 @@ module.exports = ProcessTileSeparationY; /***/ }), -/* 1285 */ +/* 1284 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -178835,7 +178921,7 @@ module.exports = ProcessTileSeparationY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetOverlapX = __webpack_require__(465); +var GetOverlapX = __webpack_require__(463); /** * Separates two overlapping bodies on the X-axis (horizontally). @@ -178917,7 +179003,7 @@ module.exports = SeparateX; /***/ }), -/* 1286 */ +/* 1285 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -178926,7 +179012,7 @@ module.exports = SeparateX; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetOverlapY = __webpack_require__(466); +var GetOverlapY = __webpack_require__(464); /** * Separates two overlapping bodies on the Y-axis (vertically). @@ -179008,62 +179094,7 @@ module.exports = SeparateY; /***/ }), -/* 1287 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Physics.Impact.Events - */ - -module.exports = { - - COLLIDE: __webpack_require__(1400), - PAUSE: __webpack_require__(1401), - RESUME: __webpack_require__(1402) - -}; - - -/***/ }), -/* 1288 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * @namespace Phaser.Physics.Impact.Components - */ - -module.exports = { - - Acceleration: __webpack_require__(1404), - BodyScale: __webpack_require__(1405), - BodyType: __webpack_require__(1406), - Bounce: __webpack_require__(1407), - CheckAgainst: __webpack_require__(1408), - Collides: __webpack_require__(1409), - Debug: __webpack_require__(1410), - Friction: __webpack_require__(1411), - Gravity: __webpack_require__(1412), - Offset: __webpack_require__(1413), - SetGameObject: __webpack_require__(1414), - Velocity: __webpack_require__(1415) - -}; - - -/***/ }), -/* 1289 */ +/* 1286 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179079,11 +179110,11 @@ var Composites = {}; module.exports = Composites; -var Composite = __webpack_require__(146); -var Constraint = __webpack_require__(218); +var Composite = __webpack_require__(143); +var Constraint = __webpack_require__(215); var Common = __webpack_require__(37); var Body = __webpack_require__(62); -var Bodies = __webpack_require__(109); +var Bodies = __webpack_require__(106); (function() { @@ -179396,7 +179427,7 @@ var Bodies = __webpack_require__(109); /***/ }), -/* 1290 */ +/* 1287 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179413,7 +179444,7 @@ var Svg = {}; module.exports = Svg; -var Bounds = __webpack_require__(102); +var Bounds = __webpack_require__(99); var Common = __webpack_require__(37); (function() { @@ -179627,7 +179658,7 @@ var Common = __webpack_require__(37); })(); /***/ }), -/* 1291 */ +/* 1288 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179638,11 +179669,11 @@ var Common = __webpack_require__(37); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bodies = __webpack_require__(109); +var Bodies = __webpack_require__(106); var Body = __webpack_require__(62); var Common = __webpack_require__(37); var GetFastValue = __webpack_require__(2); -var Vertices = __webpack_require__(86); +var Vertices = __webpack_require__(85); /** * Use PhysicsEditorParser.parseBody() to build a Matter body object, based on a physics data file @@ -179769,7 +179800,7 @@ module.exports = PhysicsEditorParser; /***/ }), -/* 1292 */ +/* 1289 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179778,7 +179809,7 @@ module.exports = PhysicsEditorParser; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bodies = __webpack_require__(109); +var Bodies = __webpack_require__(106); var Body = __webpack_require__(62); /** @@ -179886,7 +179917,7 @@ module.exports = PhysicsJSONParser; /***/ }), -/* 1293 */ +/* 1290 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179901,28 +179932,28 @@ module.exports = PhysicsJSONParser; module.exports = { - AFTER_ADD: __webpack_require__(1432), - AFTER_REMOVE: __webpack_require__(1433), - AFTER_UPDATE: __webpack_require__(1434), - BEFORE_ADD: __webpack_require__(1435), - BEFORE_REMOVE: __webpack_require__(1436), - BEFORE_UPDATE: __webpack_require__(1437), - COLLISION_ACTIVE: __webpack_require__(1438), - COLLISION_END: __webpack_require__(1439), - COLLISION_START: __webpack_require__(1440), - DRAG_END: __webpack_require__(1441), - DRAG: __webpack_require__(1442), - DRAG_START: __webpack_require__(1443), - PAUSE: __webpack_require__(1444), - RESUME: __webpack_require__(1445), - SLEEP_END: __webpack_require__(1446), - SLEEP_START: __webpack_require__(1447) + AFTER_ADD: __webpack_require__(1398), + AFTER_REMOVE: __webpack_require__(1399), + AFTER_UPDATE: __webpack_require__(1400), + BEFORE_ADD: __webpack_require__(1401), + BEFORE_REMOVE: __webpack_require__(1402), + BEFORE_UPDATE: __webpack_require__(1403), + COLLISION_ACTIVE: __webpack_require__(1404), + COLLISION_END: __webpack_require__(1405), + COLLISION_START: __webpack_require__(1406), + DRAG_END: __webpack_require__(1407), + DRAG: __webpack_require__(1408), + DRAG_START: __webpack_require__(1409), + PAUSE: __webpack_require__(1410), + RESUME: __webpack_require__(1411), + SLEEP_END: __webpack_require__(1412), + SLEEP_START: __webpack_require__(1413) }; /***/ }), -/* 1294 */ +/* 1291 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -179931,14 +179962,14 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bodies = __webpack_require__(109); +var Bodies = __webpack_require__(106); var Body = __webpack_require__(62); var Class = __webpack_require__(0); -var Components = __webpack_require__(514); -var EventEmitter = __webpack_require__(9); +var Components = __webpack_require__(513); +var EventEmitter = __webpack_require__(10); var GetFastValue = __webpack_require__(2); -var HasValue = __webpack_require__(99); -var Vertices = __webpack_require__(86); +var HasValue = __webpack_require__(105); +var Vertices = __webpack_require__(85); /** * @classdesc @@ -180242,7 +180273,7 @@ module.exports = MatterTileBody; /***/ }), -/* 1295 */ +/* 1292 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -180255,36 +180286,36 @@ module.exports = MatterTileBody; * @namespace Phaser.Physics.Matter.Matter */ -var Matter = __webpack_require__(1391); +var Matter = __webpack_require__(1380); Matter.Body = __webpack_require__(62); -Matter.Composite = __webpack_require__(146); -Matter.World = __webpack_require__(1297); +Matter.Composite = __webpack_require__(143); +Matter.World = __webpack_require__(1294); -Matter.Detector = __webpack_require__(515); -Matter.Grid = __webpack_require__(1298); -Matter.Pairs = __webpack_require__(1299); -Matter.Pair = __webpack_require__(472); -Matter.Query = __webpack_require__(1392); -Matter.Resolver = __webpack_require__(1300); -Matter.SAT = __webpack_require__(516); +Matter.Detector = __webpack_require__(514); +Matter.Grid = __webpack_require__(1295); +Matter.Pairs = __webpack_require__(1296); +Matter.Pair = __webpack_require__(468); +Matter.Query = __webpack_require__(1381); +Matter.Resolver = __webpack_require__(1297); +Matter.SAT = __webpack_require__(515); -Matter.Constraint = __webpack_require__(218); +Matter.Constraint = __webpack_require__(215); Matter.Common = __webpack_require__(37); -Matter.Engine = __webpack_require__(1393); -Matter.Events = __webpack_require__(239); -Matter.Sleeping = __webpack_require__(238); -Matter.Plugin = __webpack_require__(1296); +Matter.Engine = __webpack_require__(1382); +Matter.Events = __webpack_require__(237); +Matter.Sleeping = __webpack_require__(236); +Matter.Plugin = __webpack_require__(1293); -Matter.Bodies = __webpack_require__(109); -Matter.Composites = __webpack_require__(1289); +Matter.Bodies = __webpack_require__(106); +Matter.Composites = __webpack_require__(1286); -Matter.Axes = __webpack_require__(513); -Matter.Bounds = __webpack_require__(102); -Matter.Svg = __webpack_require__(1290); -Matter.Vector = __webpack_require__(101); -Matter.Vertices = __webpack_require__(86); +Matter.Axes = __webpack_require__(512); +Matter.Bounds = __webpack_require__(99); +Matter.Svg = __webpack_require__(1287); +Matter.Vector = __webpack_require__(98); +Matter.Vertices = __webpack_require__(85); // aliases @@ -180299,7 +180330,7 @@ module.exports = Matter; /***/ }), -/* 1296 */ +/* 1293 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -180649,7 +180680,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 1297 */ +/* 1294 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -180669,8 +180700,8 @@ var World = {}; module.exports = World; -var Composite = __webpack_require__(146); -var Constraint = __webpack_require__(218); +var Composite = __webpack_require__(143); +var Constraint = __webpack_require__(215); var Common = __webpack_require__(37); (function() { @@ -180802,7 +180833,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 1298 */ +/* 1295 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -180815,8 +180846,8 @@ var Grid = {}; module.exports = Grid; -var Pair = __webpack_require__(472); -var Detector = __webpack_require__(515); +var Pair = __webpack_require__(468); +var Detector = __webpack_require__(514); var Common = __webpack_require__(37); (function() { @@ -181129,7 +181160,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 1299 */ +/* 1296 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -181142,7 +181173,7 @@ var Pairs = {}; module.exports = Pairs; -var Pair = __webpack_require__(472); +var Pair = __webpack_require__(468); var Common = __webpack_require__(37); (function() { @@ -181294,7 +181325,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 1300 */ +/* 1297 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -181307,10 +181338,10 @@ var Resolver = {}; module.exports = Resolver; -var Vertices = __webpack_require__(86); -var Vector = __webpack_require__(101); +var Vertices = __webpack_require__(85); +var Vector = __webpack_require__(98); var Common = __webpack_require__(37); -var Bounds = __webpack_require__(102); +var Bounds = __webpack_require__(99); (function() { @@ -181650,7 +181681,7 @@ var Bounds = __webpack_require__(102); /***/ }), -/* 1301 */ +/* 1298 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -181665,17 +181696,17 @@ var Bounds = __webpack_require__(102); module.exports = { - BasePlugin: __webpack_require__(473), - DefaultPlugins: __webpack_require__(174), + BasePlugin: __webpack_require__(469), + DefaultPlugins: __webpack_require__(171), PluginCache: __webpack_require__(23), - PluginManager: __webpack_require__(369), - ScenePlugin: __webpack_require__(1302) + PluginManager: __webpack_require__(367), + ScenePlugin: __webpack_require__(1299) }; /***/ }), -/* 1302 */ +/* 1299 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -181684,9 +181715,9 @@ module.exports = { * @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License} */ -var BasePlugin = __webpack_require__(473); +var BasePlugin = __webpack_require__(469); var Class = __webpack_require__(0); -var SceneEvents = __webpack_require__(19); +var SceneEvents = __webpack_require__(21); /** * @classdesc @@ -181803,7 +181834,7 @@ module.exports = ScenePlugin; /***/ }), -/* 1303 */ +/* 1300 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -181813,7 +181844,7 @@ module.exports = ScenePlugin; */ var Extend = __webpack_require__(17); -var CONST = __webpack_require__(176); +var CONST = __webpack_require__(173); /** * @namespace Phaser.Scale @@ -181841,12 +181872,12 @@ var CONST = __webpack_require__(176); var Scale = { - Center: __webpack_require__(358), - Events: __webpack_require__(92), - Orientation: __webpack_require__(359), - ScaleManager: __webpack_require__(370), - ScaleModes: __webpack_require__(360), - Zoom: __webpack_require__(361) + Center: __webpack_require__(356), + Events: __webpack_require__(91), + Orientation: __webpack_require__(357), + ScaleManager: __webpack_require__(368), + ScaleModes: __webpack_require__(358), + Zoom: __webpack_require__(359) }; @@ -181859,7 +181890,7 @@ module.exports = Scale; /***/ }), -/* 1304 */ +/* 1301 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -181868,7 +181899,7 @@ module.exports = Scale; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(123); +var CONST = __webpack_require__(120); var Extend = __webpack_require__(17); /** @@ -181877,11 +181908,11 @@ var Extend = __webpack_require__(17); var Scene = { - Events: __webpack_require__(19), - SceneManager: __webpack_require__(372), - ScenePlugin: __webpack_require__(1305), - Settings: __webpack_require__(374), - Systems: __webpack_require__(179) + Events: __webpack_require__(21), + SceneManager: __webpack_require__(370), + ScenePlugin: __webpack_require__(1302), + Settings: __webpack_require__(372), + Systems: __webpack_require__(176) }; @@ -181892,7 +181923,7 @@ module.exports = Scene; /***/ }), -/* 1305 */ +/* 1302 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -181903,7 +181934,7 @@ module.exports = Scene; var Clamp = __webpack_require__(22); var Class = __webpack_require__(0); -var Events = __webpack_require__(19); +var Events = __webpack_require__(21); var GetFastValue = __webpack_require__(2); var PluginCache = __webpack_require__(23); @@ -182902,7 +182933,7 @@ module.exports = ScenePlugin; /***/ }), -/* 1306 */ +/* 1303 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -182917,18 +182948,18 @@ module.exports = ScenePlugin; module.exports = { - List: __webpack_require__(126), - Map: __webpack_require__(160), - ProcessQueue: __webpack_require__(185), - RTree: __webpack_require__(467), - Set: __webpack_require__(108), - Size: __webpack_require__(371) + List: __webpack_require__(124), + Map: __webpack_require__(157), + ProcessQueue: __webpack_require__(182), + RTree: __webpack_require__(465), + Set: __webpack_require__(128), + Size: __webpack_require__(369) }; /***/ }), -/* 1307 */ +/* 1304 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -182938,7 +182969,7 @@ module.exports = { */ var Extend = __webpack_require__(17); -var FilterMode = __webpack_require__(1308); +var FilterMode = __webpack_require__(1305); /** * @namespace Phaser.Textures @@ -182964,14 +182995,14 @@ var FilterMode = __webpack_require__(1308); var Textures = { - CanvasTexture: __webpack_require__(376), - Events: __webpack_require__(119), + CanvasTexture: __webpack_require__(374), + Events: __webpack_require__(116), FilterMode: FilterMode, - Frame: __webpack_require__(94), - Parsers: __webpack_require__(378), - Texture: __webpack_require__(181), - TextureManager: __webpack_require__(375), - TextureSource: __webpack_require__(377) + Frame: __webpack_require__(93), + Parsers: __webpack_require__(376), + Texture: __webpack_require__(178), + TextureManager: __webpack_require__(373), + TextureSource: __webpack_require__(375) }; @@ -182981,7 +183012,7 @@ module.exports = Textures; /***/ }), -/* 1308 */ +/* 1305 */ /***/ (function(module, exports) { /** @@ -183025,7 +183056,7 @@ module.exports = CONST; /***/ }), -/* 1309 */ +/* 1306 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183040,30 +183071,30 @@ module.exports = CONST; module.exports = { - Components: __webpack_require__(137), - Parsers: __webpack_require__(1338), + Components: __webpack_require__(136), + Parsers: __webpack_require__(1334), - Formats: __webpack_require__(32), - ImageCollection: __webpack_require__(485), - ParseToTilemap: __webpack_require__(226), - Tile: __webpack_require__(75), - Tilemap: __webpack_require__(494), - TilemapCreator: __webpack_require__(1347), - TilemapFactory: __webpack_require__(1348), - Tileset: __webpack_require__(141), + Formats: __webpack_require__(33), + ImageCollection: __webpack_require__(484), + ParseToTilemap: __webpack_require__(224), + Tile: __webpack_require__(73), + Tilemap: __webpack_require__(493), + TilemapCreator: __webpack_require__(1343), + TilemapFactory: __webpack_require__(1344), + Tileset: __webpack_require__(138), - LayerData: __webpack_require__(104), - MapData: __webpack_require__(105), - ObjectLayer: __webpack_require__(488), + LayerData: __webpack_require__(101), + MapData: __webpack_require__(102), + ObjectLayer: __webpack_require__(487), - DynamicTilemapLayer: __webpack_require__(495), - StaticTilemapLayer: __webpack_require__(496) + DynamicTilemapLayer: __webpack_require__(494), + StaticTilemapLayer: __webpack_require__(495) }; /***/ }), -/* 1310 */ +/* 1307 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183128,7 +183159,7 @@ module.exports = Copy; /***/ }), -/* 1311 */ +/* 1308 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183137,10 +183168,9 @@ module.exports = Copy; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var TileToWorldX = __webpack_require__(139); -var TileToWorldY = __webpack_require__(140); +var TileToWorldXY = __webpack_require__(217); var GetTilesWithin = __webpack_require__(24); -var ReplaceByIndex = __webpack_require__(474); +var ReplaceByIndex = __webpack_require__(472); /** * Creates a Sprite for every object matching the given tile indexes in the layer. You can @@ -183181,7 +183211,7 @@ var CreateFromTiles = function (indexes, replacements, spriteConfig, scene, came if (indexes.indexOf(tile.index) !== -1) { - var point = TileToWorldXY(tile.x,tile.y, camera, layer) + var point = TileToWorldXY(tile.x,tile.y, camera, layer); spriteConfig.x = point.x; spriteConfig.y = point.y; var sprite = scene.make.sprite(spriteConfig); @@ -183213,7 +183243,7 @@ module.exports = CreateFromTiles; /***/ }), -/* 1312 */ +/* 1309 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183222,8 +183252,8 @@ module.exports = CreateFromTiles; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SnapFloor = __webpack_require__(93); -var SnapCeil = __webpack_require__(328); +var SnapFloor = __webpack_require__(92); +var SnapCeil = __webpack_require__(326); /** * Returns the tiles in the given layer that are within the camera's viewport. This is used internally. @@ -183263,34 +183293,42 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) var drawRight = mapWidth; var drawTop = 0; var drawBottom = mapHeight; - var inIsoBounds = function (x,y) { return true;} - if (!tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1) { - if (layer.orientation == "orthogonal") { + + // we define it earlier for it to make sense in scope + var inIsoBounds = function () { return true; }; + if (!tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1) + { + if (layer.orientation === 'orthogonal') + { // Camera world view bounds, snapped for scaled tile size // Cull Padding values are given in tiles, not pixels - var boundsLeft = SnapFloor(camera.worldView.x - tilemapLayer.x, tileW, 0, true) - tilemapLayer.cullPaddingX; - var boundsRight = SnapCeil(camera.worldView.right - tilemapLayer.x, tileW, 0, true) + tilemapLayer.cullPaddingX; - var boundsTop = SnapFloor(camera.worldView.y - tilemapLayer.y, tileH, 0, true) - tilemapLayer.cullPaddingY; + var boundsLeft = SnapFloor(camera.worldView.x - tilemapLayer.x, tileW, 0, true) - tilemapLayer.cullPaddingX; + var boundsRight = SnapCeil(camera.worldView.right - tilemapLayer.x, tileW, 0, true) + tilemapLayer.cullPaddingX; + var boundsTop = SnapFloor(camera.worldView.y - tilemapLayer.y, tileH, 0, true) - tilemapLayer.cullPaddingY; var boundsBottom = SnapCeil(camera.worldView.bottom - tilemapLayer.y, tileH, 0, true) + tilemapLayer.cullPaddingY; drawLeft = Math.max(0, boundsLeft); drawRight = Math.min(mapWidth, boundsRight); drawTop = Math.max(0, boundsTop); drawBottom = Math.min(mapHeight, boundsBottom); - } else if (layer.orientation == "isometric") { - inIsoBounds = function (x,y){ - var pos = tilemapLayer.tileToWorldXY(x,y,undefined,camera) - return (pos.x > camera.worldView.x && pos.x < camera.worldView.right) && (pos.y > camera.worldView.y && pos.y < camera.worldView.bottom) - } } - } + else if (layer.orientation === 'isometric') + { + inIsoBounds = function (x,y) + { + var pos = tilemapLayer.tileToWorldXY(x,y,undefined,camera); + return (pos.x > camera.worldView.x && pos.x < camera.worldView.right - layer.tileWidth) && (pos.y > camera.worldView.y && pos.y < camera.worldView.bottom - layer.tileHeight); + }; + } + } var x; var y; var tile; - if (layer.orientation == "orthogonal") { + if (layer.orientation === 'orthogonal') + { if (renderOrder === 0) { @@ -183368,8 +183406,10 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) } } } - } else if (layer.orientation == "isometric") { - if (renderOrder === 0) + } + else if (layer.orientation === 'isometric') + { + if (renderOrder === 0) { // right-down @@ -183377,7 +183417,8 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) { for (x = drawLeft; mapData[y] && x < drawRight; x++) { - if (inIsoBounds(x,y)) { + if (inIsoBounds(x,y)) + { tile = mapData[y][x]; if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0) @@ -183399,7 +183440,8 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) { for (x = drawRight; mapData[y] && x >= drawLeft; x--) { - if (inIsoBounds(x,y)) { + if (inIsoBounds(x,y)) + { tile = mapData[y][x]; if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0) @@ -183420,7 +183462,8 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) { for (x = drawLeft; mapData[y] && x < drawRight; x++) { - if (inIsoBounds(x,y)) { + if (inIsoBounds(x,y)) + { tile = mapData[y][x]; if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0) @@ -183441,7 +183484,8 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) { for (x = drawRight; mapData[y] && x >= drawLeft; x--) { - if (inIsoBounds(x,y)) { + if (inIsoBounds(x,y)) + { tile = mapData[y][x]; if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0) @@ -183468,7 +183512,7 @@ module.exports = CullTiles; /***/ }), -/* 1313 */ +/* 1310 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183479,7 +183523,7 @@ module.exports = CullTiles; var GetTilesWithin = __webpack_require__(24); var CalculateFacesWithin = __webpack_require__(51); -var SetTileCollision = __webpack_require__(74); +var SetTileCollision = __webpack_require__(71); /** * Sets the tiles in the given rectangular area (in tile coordinates) of the layer with the @@ -183522,7 +183566,7 @@ module.exports = Fill; /***/ }), -/* 1314 */ +/* 1311 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183570,7 +183614,7 @@ module.exports = FilterTiles; /***/ }), -/* 1315 */ +/* 1312 */ /***/ (function(module, exports) { /** @@ -183658,7 +183702,7 @@ module.exports = FindByIndex; /***/ }), -/* 1316 */ +/* 1313 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183712,7 +183756,7 @@ module.exports = FindTile; /***/ }), -/* 1317 */ +/* 1314 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183762,7 +183806,7 @@ module.exports = ForEachTile; /***/ }), -/* 1318 */ +/* 1315 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183771,9 +183815,8 @@ module.exports = ForEachTile; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var GetTileAt = __webpack_require__(138); -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); +var GetTileAt = __webpack_require__(137); +var WorldToTileXY = __webpack_require__(72); /** * Gets a tile at the given world coordinates from the given layer. @@ -183793,9 +183836,9 @@ var WorldToTileY = __webpack_require__(64); */ var GetTileAtWorldXY = function (worldX, worldY, nonNull, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, camera, layer); - var tileX = point.x - var tileY = point.y + var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var tileX = point.x; + var tileY = point.y; return GetTileAt(tileX, tileY, nonNull, layer); }; @@ -183803,7 +183846,7 @@ module.exports = GetTileAtWorldXY; /***/ }), -/* 1319 */ +/* 1316 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183812,14 +183855,12 @@ module.exports = GetTileAtWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Geom = __webpack_require__(427); +var Geom = __webpack_require__(425); var GetTilesWithin = __webpack_require__(24); -var Intersects = __webpack_require__(428); +var Intersects = __webpack_require__(426); var NOOP = __webpack_require__(1); -var TileToWorldX = __webpack_require__(139); -var TileToWorldY = __webpack_require__(140); -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); +var TileToWorldXY = __webpack_require__(217); +var WorldToTileXY = __webpack_require__(72); var TriangleToRectangle = function (triangle, rect) { @@ -183849,7 +183890,6 @@ var TriangleToRectangle = function (triangle, rect) */ var GetTilesWithinShape = function (shape, filteringOptions, camera, layer) { - var orientation = layer.orientation; if (shape === undefined) { return []; } // intersectTest is a function with parameters: shape, rect @@ -183860,12 +183900,12 @@ var GetTilesWithinShape = function (shape, filteringOptions, camera, layer) else if (shape instanceof Geom.Line) { intersectTest = Intersects.LineToRectangle; } // Top left corner of the shapes's bounding box, rounded down to include partial tiles - var pointStart = WorldToTileXY(shape.left, shape.top, true, camera, layer, orientation); + var pointStart = WorldToTileXY(shape.left, shape.top, true, undefined, camera, layer); var xStart = pointStart.x; var yStart = pointStart.y; // Bottom right corner of the shapes's bounding box, rounded up to include partial tiles - var pointEnd = WorldToTileXY(shape.right, shape.bottom, true, camera, layer, orientation); + var pointEnd = WorldToTileXY(shape.right, shape.bottom, true, undefined, camera, layer); var xEnd = Math.ceil(pointEnd.x); var yEnd = Math.ceil(pointEnd.y); @@ -183888,8 +183928,9 @@ var GetTilesWithinShape = function (shape, filteringOptions, camera, layer) for (var i = 0; i < tiles.length; i++) { var tile = tiles[i]; - tileRect.x = TileToWorldX(tile.x, camera, layer); - tileRect.y = TileToWorldY(tile.y, camera, layer); + var point = TileToWorldXY(tile.x, tile.y, undefined, camera, layer); + tileRect.x = point.x; + tileRect.y = point.y; if (intersectTest(shape, tileRect)) { results.push(tile); @@ -183903,7 +183944,7 @@ module.exports = GetTilesWithinShape; /***/ }), -/* 1320 */ +/* 1317 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183913,9 +183954,7 @@ module.exports = GetTilesWithinShape; */ var GetTilesWithin = __webpack_require__(24); -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); -var WorldToTileXY = __webpack_require__(475); +var WorldToTileXY = __webpack_require__(72); /** * Gets the tiles in the given rectangular area (in world coordinates) of the layer. @@ -183939,14 +183978,14 @@ var WorldToTileXY = __webpack_require__(475); */ var GetTilesWithinWorldXY = function (worldX, worldY, width, height, filteringOptions, camera, layer) { - var orientation = layer.orientation + // Top left corner of the rect, rounded down to include partial tiles - var pointStart = WorldToTileXY(worldX, worldY, true, camera, layer, orientation); + var pointStart = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); var xStart = pointStart.x; var yStart = pointStart.y; // Bottom right corner of the rect, rounded up to include partial tiles - var pointEnd = WorldToTileXY(worldX+ width, worldY+ height, true, camera, layer, orientation); + var pointEnd = WorldToTileXY(worldX + width, worldY + height, false, undefined, camera, layer); var xEnd = Math.ceil(pointEnd.x); var yEnd = Math.ceil(pointEnd.y); @@ -183957,7 +183996,7 @@ module.exports = GetTilesWithinWorldXY; /***/ }), -/* 1321 */ +/* 1318 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -183966,9 +184005,8 @@ module.exports = GetTilesWithinWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var HasTileAt = __webpack_require__(476); -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); +var HasTileAt = __webpack_require__(475); +var WorldToTileXY = __webpack_require__(72); /** * Checks if there is a tile at the given location (in world coordinates) in the given layer. Returns @@ -183987,7 +184025,7 @@ var WorldToTileY = __webpack_require__(64); */ var HasTileAtWorldXY = function (worldX, worldY, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, camera, layer); + var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); var tileX = point.x; var tileY = point.y; return HasTileAt(tileX, tileY, layer); @@ -183997,7 +184035,7 @@ module.exports = HasTileAtWorldXY; /***/ }), -/* 1322 */ +/* 1319 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184006,9 +184044,8 @@ module.exports = HasTileAtWorldXY; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var PutTileAt = __webpack_require__(220); -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); +var PutTileAt = __webpack_require__(218); +var WorldToTileXY = __webpack_require__(72); /** * Puts a tile at the given world coordinates (pixels) in the specified layer. You can pass in either @@ -184031,10 +184068,9 @@ var WorldToTileY = __webpack_require__(64); */ var PutTileAtWorldXY = function (tile, worldX, worldY, recalculateFaces, camera, layer) { - var orientation = layer.orientation - var point = WorldToTileXY(worldX, worldY, true, camera, layer); - var tileX = point.x - var tileY = point.y + var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var tileX = point.x; + var tileY = point.y; return PutTileAt(tile, tileX, tileY, recalculateFaces, layer); }; @@ -184042,7 +184078,7 @@ module.exports = PutTileAtWorldXY; /***/ }), -/* 1323 */ +/* 1320 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184052,7 +184088,7 @@ module.exports = PutTileAtWorldXY; */ var CalculateFacesWithin = __webpack_require__(51); -var PutTileAt = __webpack_require__(220); +var PutTileAt = __webpack_require__(218); /** * Puts an array of tiles or a 2D array of tiles at the given tile coordinates in the specified @@ -184107,7 +184143,7 @@ module.exports = PutTilesAt; /***/ }), -/* 1324 */ +/* 1321 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184117,7 +184153,7 @@ module.exports = PutTilesAt; */ var GetTilesWithin = __webpack_require__(24); -var GetRandom = __webpack_require__(184); +var GetRandom = __webpack_require__(181); /** * Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the @@ -184165,7 +184201,7 @@ module.exports = Randomize; /***/ }), -/* 1325 */ +/* 1322 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184174,9 +184210,8 @@ module.exports = Randomize; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var RemoveTileAt = __webpack_require__(477); -var WorldToTileX = __webpack_require__(63); -var WorldToTileY = __webpack_require__(64); +var RemoveTileAt = __webpack_require__(476); +var WorldToTileXY = __webpack_require__(72); /** * Removes the tile at the given world coordinates in the specified layer and updates the layer's @@ -184197,10 +184232,9 @@ var WorldToTileY = __webpack_require__(64); */ var RemoveTileAtWorldXY = function (worldX, worldY, replaceWithNull, recalculateFaces, camera, layer) { - var orientation = layer.orientation - var point = WorldToTileXY(worldX, worldY, true, camera, layer); - var tileX = point.x - var tileY = point.y + var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); + var tileX = point.x; + var tileY = point.y; return RemoveTileAt(tileX, tileY, replaceWithNull, recalculateFaces, layer); }; @@ -184208,7 +184242,7 @@ module.exports = RemoveTileAtWorldXY; /***/ }), -/* 1326 */ +/* 1323 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184218,7 +184252,7 @@ module.exports = RemoveTileAtWorldXY; */ var GetTilesWithin = __webpack_require__(24); -var Color = __webpack_require__(353); +var Color = __webpack_require__(351); var defaultTileColor = new Color(105, 210, 231, 150); var defaultCollidingTileColor = new Color(243, 134, 48, 200); @@ -184297,7 +184331,7 @@ module.exports = RenderDebug; /***/ }), -/* 1327 */ +/* 1324 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184306,9 +184340,9 @@ module.exports = RenderDebug; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTileCollision = __webpack_require__(74); +var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var SetLayerCollisionIndex = __webpack_require__(221); +var SetLayerCollisionIndex = __webpack_require__(219); /** * Sets collision on the given tile or tiles within a layer by index. You can pass in either a @@ -184366,7 +184400,7 @@ module.exports = SetCollision; /***/ }), -/* 1328 */ +/* 1325 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184375,9 +184409,9 @@ module.exports = SetCollision; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTileCollision = __webpack_require__(74); +var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var SetLayerCollisionIndex = __webpack_require__(221); +var SetLayerCollisionIndex = __webpack_require__(219); /** * Sets collision on a range of tiles in a layer whose index is between the specified `start` and @@ -184441,7 +184475,7 @@ module.exports = SetCollisionBetween; /***/ }), -/* 1329 */ +/* 1326 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184450,9 +184484,9 @@ module.exports = SetCollisionBetween; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTileCollision = __webpack_require__(74); +var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var SetLayerCollisionIndex = __webpack_require__(221); +var SetLayerCollisionIndex = __webpack_require__(219); /** * Sets collision on all tiles in the given layer, except for tiles that have an index specified in @@ -184498,7 +184532,7 @@ module.exports = SetCollisionByExclusion; /***/ }), -/* 1330 */ +/* 1327 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184507,9 +184541,9 @@ module.exports = SetCollisionByExclusion; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTileCollision = __webpack_require__(74); +var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); -var HasValue = __webpack_require__(99); +var HasValue = __webpack_require__(105); /** * Sets collision on the tiles within a layer by checking tile properties. If a tile has a property @@ -184573,7 +184607,7 @@ module.exports = SetCollisionByProperty; /***/ }), -/* 1331 */ +/* 1328 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184582,7 +184616,7 @@ module.exports = SetCollisionByProperty; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var SetTileCollision = __webpack_require__(74); +var SetTileCollision = __webpack_require__(71); var CalculateFacesWithin = __webpack_require__(51); /** @@ -184633,7 +184667,7 @@ module.exports = SetCollisionFromCollisionGroup; /***/ }), -/* 1332 */ +/* 1329 */ /***/ (function(module, exports) { /** @@ -184680,7 +184714,7 @@ module.exports = SetTileIndexCallback; /***/ }), -/* 1333 */ +/* 1330 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184723,7 +184757,7 @@ module.exports = SetTileLocationCallback; /***/ }), -/* 1334 */ +/* 1331 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184733,7 +184767,7 @@ module.exports = SetTileLocationCallback; */ var GetTilesWithin = __webpack_require__(24); -var ShuffleArray = __webpack_require__(114); +var ShuffleArray = __webpack_require__(111); /** * Shuffles the tiles in a rectangular region (specified in tile coordinates) within the given @@ -184768,7 +184802,7 @@ module.exports = Shuffle; /***/ }), -/* 1335 */ +/* 1332 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184819,81 +184853,7 @@ module.exports = SwapByIndex; /***/ }), -/* 1336 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var TileToWorldX = __webpack_require__(139); -var TileToWorldY = __webpack_require__(140); -var Vector2 = __webpack_require__(3); - -/** - * Converts from tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the - * layer's position, scale and scroll. This will return a new Vector2 object or update the given - * `point` object. - * - * @function Phaser.Tilemaps.Components.TileToWorldXY - * @private - * @since 3.0.0 - * - * @param {integer} tileX - The x coordinate, in tiles, not pixels. - * @param {integer} tileY - The y coordinate, in tiles, not pixels. - * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created. - * @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when calculating the tile index from the world values. - * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. - * - * @return {Phaser.Math.Vector2} The XY location in world coordinates. - */ -var TileToWorldXY = function (tileX, tileY, point, camera, layer) -{ - var orientation = layer.orientation; - var tileWidth = layer.baseTileWidth; - var tileHeight = layer.baseTileHeight; - var tilemapLayer = layer.tilemapLayer; - - if (point === undefined) { point = new Vector2(0, 0); } - - - - - - if (orientation === "orthogonal") { - point.x = TileToWorldX(tileX, camera, layer, orientation); - point.y = TileToWorldY(tileY, camera, layer, orientation); - } else if (orientation === "isometric") { - - var layerWorldX = 0; - var layerWorldY = 0; - - if (tilemapLayer) - { - if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; } - layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX); - tileWidth *= tilemapLayer.scaleX; - layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY)); - tileHeight *= tilemapLayer.scaleY; - } - - - - point.x = layerWorldX + (tileX - tileY) * (tileWidth/2); - point.y = layerWorldY + (tileX + tileY) * (tileHeight/2); - - } - - return point; -}; - -module.exports = TileToWorldXY; - - -/***/ }), -/* 1337 */ +/* 1333 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184973,7 +184933,7 @@ module.exports = WeightedRandomize; /***/ }), -/* 1338 */ +/* 1334 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -184988,18 +184948,18 @@ module.exports = WeightedRandomize; module.exports = { - Parse: __webpack_require__(478), - Parse2DArray: __webpack_require__(222), - ParseCSV: __webpack_require__(479), + Parse: __webpack_require__(477), + Parse2DArray: __webpack_require__(220), + ParseCSV: __webpack_require__(478), - Impact: __webpack_require__(1339), - Tiled: __webpack_require__(1340) + Impact: __webpack_require__(1335), + Tiled: __webpack_require__(1336) }; /***/ }), -/* 1339 */ +/* 1335 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -185014,15 +184974,15 @@ module.exports = { module.exports = { - ParseTileLayers: __webpack_require__(492), - ParseTilesets: __webpack_require__(493), - ParseWeltmeister: __webpack_require__(491) + ParseTileLayers: __webpack_require__(491), + ParseTilesets: __webpack_require__(492), + ParseWeltmeister: __webpack_require__(490) }; /***/ }), -/* 1340 */ +/* 1336 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -185037,22 +184997,22 @@ module.exports = { module.exports = { - AssignTileProperties: __webpack_require__(490), - Base64Decode: __webpack_require__(482), - BuildTilesetIndex: __webpack_require__(489), - ParseGID: __webpack_require__(223), - ParseImageLayers: __webpack_require__(483), - ParseJSONTiled: __webpack_require__(480), - ParseObject: __webpack_require__(225), - ParseObjectLayers: __webpack_require__(487), - ParseTileLayers: __webpack_require__(481), - ParseTilesets: __webpack_require__(484) + AssignTileProperties: __webpack_require__(489), + Base64Decode: __webpack_require__(481), + BuildTilesetIndex: __webpack_require__(488), + ParseGID: __webpack_require__(221), + ParseImageLayers: __webpack_require__(482), + ParseJSONTiled: __webpack_require__(479), + ParseObject: __webpack_require__(223), + ParseObjectLayers: __webpack_require__(486), + ParseTileLayers: __webpack_require__(480), + ParseTilesets: __webpack_require__(483) }; /***/ }), -/* 1341 */ +/* 1337 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -185066,12 +185026,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1342); + renderWebGL = __webpack_require__(1338); } if (true) { - renderCanvas = __webpack_require__(1343); + renderCanvas = __webpack_require__(1339); } module.exports = { @@ -185083,7 +185043,7 @@ module.exports = { /***/ }), -/* 1342 */ +/* 1338 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -185092,7 +185052,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Utils = __webpack_require__(10); +var Utils = __webpack_require__(9); /** * Renders this Game Object with the WebGL Renderer to the given Camera. @@ -185162,28 +185122,27 @@ var DynamicTilemapLayerWebGLRenderer = function (renderer, src, interpolationPer { continue; } - if (src.layer.orientation === "isometric") { - // here we use the tileset width and height to fix problems with isometric map types - - var frameWidth = tileset.tileWidth; - var frameHeight = tileset.tileHeight; - - var frameX = tileTexCoords.x; - var frameY = tileTexCoords.y; - - var tw = tileset.tileWidth * 0.5; - var th = tileset.tileHeight * 0.5; - } else { - var frameWidth = tile.width; - var frameHeight = tile.height; - - var frameX = tileTexCoords.x; - var frameY = tileTexCoords.y; - - var tw = tile.width * 0.5; - var th = tile.height * 0.5; + + var frameWidth = 0; + var frameHeight = 0; + + if (src.layer.orientation === 'isometric') + { + // we use the tileset width and height because in isometric maps the tileset's height is often different from the tilemap's. + frameWidth = tileset.tileWidth; + frameHeight = tileset.tileHeight; + } + else + { + frameWidth = tile.width; + frameHeight = tile.height; } + var frameX = tileTexCoords.x; + var frameY = tileTexCoords.y; + + var tw = frameWidth * 0.5; + var th = frameHeight * 0.5; var tint = getTint(tile.tint, alpha * tile.alpha); @@ -185214,7 +185173,7 @@ module.exports = DynamicTilemapLayerWebGLRenderer; /***/ }), -/* 1343 */ +/* 1339 */ /***/ (function(module, exports) { /** @@ -185311,14 +185270,15 @@ var DynamicTilemapLayerCanvasRenderer = function (renderer, src, interpolationPe var width = tile.width; var height = tile.width; - if (src.layer.orientation === "isometric") { - // here we use the tileset width and height to fix problems with isometric map types + if (src.layer.orientation === 'isometric') + { + // we use the tileset width and height because in isometric maps the tileset's height is often different from the tilemap's. width = tileset.tileWidth; width = tileset.tileHeight; } - halfWidth = width / 2; - halfHeight = height / 2; + var halfWidth = width / 2; + var halfHeight = height / 2; ctx.save(); @@ -185356,7 +185316,7 @@ module.exports = DynamicTilemapLayerCanvasRenderer; /***/ }), -/* 1344 */ +/* 1340 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -185370,12 +185330,12 @@ var renderCanvas = __webpack_require__(1); if (true) { - renderWebGL = __webpack_require__(1345); + renderWebGL = __webpack_require__(1341); } if (true) { - renderCanvas = __webpack_require__(1346); + renderCanvas = __webpack_require__(1342); } module.exports = { @@ -185387,7 +185347,7 @@ module.exports = { /***/ }), -/* 1345 */ +/* 1341 */ /***/ (function(module, exports) { /** @@ -185459,7 +185419,7 @@ module.exports = StaticTilemapLayerWebGLRenderer; /***/ }), -/* 1346 */ +/* 1342 */ /***/ (function(module, exports) { /** @@ -185592,7 +185552,7 @@ module.exports = StaticTilemapLayerCanvasRenderer; /***/ }), -/* 1347 */ +/* 1343 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -185602,7 +185562,7 @@ module.exports = StaticTilemapLayerCanvasRenderer; */ var GameObjectCreator = __webpack_require__(16); -var ParseToTilemap = __webpack_require__(226); +var ParseToTilemap = __webpack_require__(224); /** * Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided. @@ -185621,7 +185581,6 @@ GameObjectCreator.register('tilemap', function (config) { // Defaults are applied in ParseToTilemap var c = (config !== undefined) ? config : {}; - console.log("TC tilemap") return ParseToTilemap( this.scene, c.key, @@ -185636,7 +185595,7 @@ GameObjectCreator.register('tilemap', function (config) /***/ }), -/* 1348 */ +/* 1344 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -185646,7 +185605,7 @@ GameObjectCreator.register('tilemap', function (config) */ var GameObjectFactory = __webpack_require__(5); -var ParseToTilemap = __webpack_require__(226); +var ParseToTilemap = __webpack_require__(224); /** * Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided. @@ -185702,7 +185661,7 @@ GameObjectFactory.register('tilemap', function (key, tileWidth, tileHeight, widt /***/ }), -/* 1349 */ +/* 1345 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -185717,14 +185676,14 @@ GameObjectFactory.register('tilemap', function (key, tileWidth, tileHeight, widt module.exports = { - Clock: __webpack_require__(1350), - TimerEvent: __webpack_require__(497) + Clock: __webpack_require__(1346), + TimerEvent: __webpack_require__(496) }; /***/ }), -/* 1350 */ +/* 1346 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -185735,8 +185694,8 @@ module.exports = { var Class = __webpack_require__(0); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); -var TimerEvent = __webpack_require__(497); +var SceneEvents = __webpack_require__(21); +var TimerEvent = __webpack_require__(496); /** * @classdesc @@ -186130,7 +186089,7 @@ module.exports = Clock; /***/ }), -/* 1351 */ +/* 1347 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -186139,7 +186098,7 @@ module.exports = Clock; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var CONST = __webpack_require__(89); +var CONST = __webpack_require__(88); var Extend = __webpack_require__(17); /** @@ -186148,13 +186107,13 @@ var Extend = __webpack_require__(17); var Tweens = { - Builders: __webpack_require__(1352), - Events: __webpack_require__(231), + Builders: __webpack_require__(1348), + Events: __webpack_require__(229), - TweenManager: __webpack_require__(1367), - Tween: __webpack_require__(230), - TweenData: __webpack_require__(232), - Timeline: __webpack_require__(503) + TweenManager: __webpack_require__(1363), + Tween: __webpack_require__(228), + TweenData: __webpack_require__(230), + Timeline: __webpack_require__(502) }; @@ -186165,7 +186124,7 @@ module.exports = Tweens; /***/ }), -/* 1352 */ +/* 1348 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -186180,23 +186139,23 @@ module.exports = Tweens; module.exports = { - GetBoolean: __webpack_require__(88), - GetEaseFunction: __webpack_require__(70), - GetNewValue: __webpack_require__(142), - GetProps: __webpack_require__(498), - GetTargets: __webpack_require__(227), - GetTweens: __webpack_require__(499), - GetValueOp: __webpack_require__(228), - NumberTweenBuilder: __webpack_require__(500), - StaggerBuilder: __webpack_require__(501), - TimelineBuilder: __webpack_require__(502), - TweenBuilder: __webpack_require__(143) + GetBoolean: __webpack_require__(87), + GetEaseFunction: __webpack_require__(67), + GetNewValue: __webpack_require__(139), + GetProps: __webpack_require__(497), + GetTargets: __webpack_require__(225), + GetTweens: __webpack_require__(498), + GetValueOp: __webpack_require__(226), + NumberTweenBuilder: __webpack_require__(499), + StaggerBuilder: __webpack_require__(500), + TimelineBuilder: __webpack_require__(501), + TweenBuilder: __webpack_require__(140) }; /***/ }), -/* 1353 */ +/* 1349 */ /***/ (function(module, exports) { /** @@ -186271,7 +186230,7 @@ module.exports = [ /***/ }), -/* 1354 */ +/* 1350 */ /***/ (function(module, exports) { /** @@ -186307,7 +186266,7 @@ module.exports = 'complete'; /***/ }), -/* 1355 */ +/* 1351 */ /***/ (function(module, exports) { /** @@ -186344,7 +186303,7 @@ module.exports = 'loop'; /***/ }), -/* 1356 */ +/* 1352 */ /***/ (function(module, exports) { /** @@ -186381,7 +186340,7 @@ module.exports = 'pause'; /***/ }), -/* 1357 */ +/* 1353 */ /***/ (function(module, exports) { /** @@ -186418,7 +186377,7 @@ module.exports = 'resume'; /***/ }), -/* 1358 */ +/* 1354 */ /***/ (function(module, exports) { /** @@ -186454,7 +186413,7 @@ module.exports = 'start'; /***/ }), -/* 1359 */ +/* 1355 */ /***/ (function(module, exports) { /** @@ -186491,7 +186450,7 @@ module.exports = 'update'; /***/ }), -/* 1360 */ +/* 1356 */ /***/ (function(module, exports) { /** @@ -186531,7 +186490,7 @@ module.exports = 'active'; /***/ }), -/* 1361 */ +/* 1357 */ /***/ (function(module, exports) { /** @@ -186572,7 +186531,7 @@ module.exports = 'complete'; /***/ }), -/* 1362 */ +/* 1358 */ /***/ (function(module, exports) { /** @@ -186616,7 +186575,7 @@ module.exports = 'loop'; /***/ }), -/* 1363 */ +/* 1359 */ /***/ (function(module, exports) { /** @@ -186661,7 +186620,7 @@ module.exports = 'repeat'; /***/ }), -/* 1364 */ +/* 1360 */ /***/ (function(module, exports) { /** @@ -186701,7 +186660,7 @@ module.exports = 'start'; /***/ }), -/* 1365 */ +/* 1361 */ /***/ (function(module, exports) { /** @@ -186744,7 +186703,7 @@ module.exports = 'update'; /***/ }), -/* 1366 */ +/* 1362 */ /***/ (function(module, exports) { /** @@ -186790,7 +186749,7 @@ module.exports = 'yoyo'; /***/ }), -/* 1367 */ +/* 1363 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -186799,15 +186758,15 @@ module.exports = 'yoyo'; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ArrayRemove = __webpack_require__(121); +var ArrayRemove = __webpack_require__(118); var Class = __webpack_require__(0); -var NumberTweenBuilder = __webpack_require__(500); +var NumberTweenBuilder = __webpack_require__(499); var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); -var StaggerBuilder = __webpack_require__(501); -var TimelineBuilder = __webpack_require__(502); -var TWEEN_CONST = __webpack_require__(89); -var TweenBuilder = __webpack_require__(143); +var SceneEvents = __webpack_require__(21); +var StaggerBuilder = __webpack_require__(500); +var TimelineBuilder = __webpack_require__(501); +var TWEEN_CONST = __webpack_require__(88); +var TweenBuilder = __webpack_require__(140); /** * @classdesc @@ -187562,7 +187521,7 @@ module.exports = TweenManager; /***/ }), -/* 1368 */ +/* 1364 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -187577,16 +187536,16 @@ module.exports = TweenManager; module.exports = { - Array: __webpack_require__(182), - Base64: __webpack_require__(1369), - Objects: __webpack_require__(1371), - String: __webpack_require__(1375) + Array: __webpack_require__(179), + Base64: __webpack_require__(1365), + Objects: __webpack_require__(1367), + String: __webpack_require__(1371) }; /***/ }), -/* 1369 */ +/* 1365 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -187601,14 +187560,14 @@ module.exports = { module.exports = { - ArrayBufferToBase64: __webpack_require__(1370), - Base64ToArrayBuffer: __webpack_require__(385) + ArrayBufferToBase64: __webpack_require__(1366), + Base64ToArrayBuffer: __webpack_require__(383) }; /***/ }), -/* 1370 */ +/* 1366 */ /***/ (function(module, exports) { /** @@ -187666,7 +187625,7 @@ module.exports = ArrayBufferToBase64; /***/ }), -/* 1371 */ +/* 1367 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -187681,26 +187640,26 @@ module.exports = ArrayBufferToBase64; module.exports = { - Clone: __webpack_require__(67), + Clone: __webpack_require__(65), Extend: __webpack_require__(17), GetAdvancedValue: __webpack_require__(14), GetFastValue: __webpack_require__(2), - GetMinMaxValue: __webpack_require__(1372), + GetMinMaxValue: __webpack_require__(1368), GetValue: __webpack_require__(6), - HasAll: __webpack_require__(1373), - HasAny: __webpack_require__(404), - HasValue: __webpack_require__(99), + HasAll: __webpack_require__(1369), + HasAny: __webpack_require__(402), + HasValue: __webpack_require__(105), IsPlainObject: __webpack_require__(7), - Merge: __webpack_require__(107), - MergeRight: __webpack_require__(1374), - Pick: __webpack_require__(486), - SetValue: __webpack_require__(424) + Merge: __webpack_require__(121), + MergeRight: __webpack_require__(1370), + Pick: __webpack_require__(485), + SetValue: __webpack_require__(422) }; /***/ }), -/* 1372 */ +/* 1368 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -187739,7 +187698,7 @@ module.exports = GetMinMaxValue; /***/ }), -/* 1373 */ +/* 1369 */ /***/ (function(module, exports) { /** @@ -187776,7 +187735,7 @@ module.exports = HasAll; /***/ }), -/* 1374 */ +/* 1370 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -187785,7 +187744,7 @@ module.exports = HasAll; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Clone = __webpack_require__(67); +var Clone = __webpack_require__(65); /** * Creates a new Object using all values from obj1. @@ -187819,7 +187778,7 @@ module.exports = MergeRight; /***/ }), -/* 1375 */ +/* 1371 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -187834,17 +187793,17 @@ module.exports = MergeRight; module.exports = { - Format: __webpack_require__(1376), - Pad: __webpack_require__(161), - Reverse: __webpack_require__(1377), - UppercaseFirst: __webpack_require__(180), - UUID: __webpack_require__(195) + Format: __webpack_require__(1372), + Pad: __webpack_require__(158), + Reverse: __webpack_require__(1373), + UppercaseFirst: __webpack_require__(177), + UUID: __webpack_require__(192) }; /***/ }), -/* 1376 */ +/* 1372 */ /***/ (function(module, exports) { /** @@ -187879,7 +187838,7 @@ module.exports = Format; /***/ }), -/* 1377 */ +/* 1373 */ /***/ (function(module, exports) { /** @@ -187908,7 +187867,7 @@ module.exports = Reverse; /***/ }), -/* 1378 */ +/* 1374 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -187924,2586 +187883,27 @@ module.exports = Reverse; module.exports = { - SoundManagerCreator: __webpack_require__(379), + SoundManagerCreator: __webpack_require__(377), Events: __webpack_require__(59), - BaseSound: __webpack_require__(125), - BaseSoundManager: __webpack_require__(124), + BaseSound: __webpack_require__(123), + BaseSoundManager: __webpack_require__(122), - WebAudioSound: __webpack_require__(386), - WebAudioSoundManager: __webpack_require__(384), + WebAudioSound: __webpack_require__(384), + WebAudioSoundManager: __webpack_require__(382), - HTML5AudioSound: __webpack_require__(381), - HTML5AudioSoundManager: __webpack_require__(380), + HTML5AudioSound: __webpack_require__(379), + HTML5AudioSoundManager: __webpack_require__(378), - NoAudioSound: __webpack_require__(383), - NoAudioSoundManager: __webpack_require__(382) + NoAudioSound: __webpack_require__(381), + NoAudioSoundManager: __webpack_require__(380) }; /***/ }), -/* 1379 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Class = __webpack_require__(0); -var COLLIDES = __webpack_require__(470); -var GetVelocity = __webpack_require__(1398); -var TYPE = __webpack_require__(471); -var UpdateMotion = __webpack_require__(1399); - -/** - * @callback Phaser.Types.Physics.Impact.BodyUpdateCallback - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body} body - [description] - */ - -/** - * @classdesc - * An Impact.js compatible physics body. - * This re-creates the properties you'd get on an Entity and the math needed to update them. - * - * @class Body - * @memberof Phaser.Physics.Impact - * @constructor - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.World} world - [description] - * @param {number} x - [description] - * @param {number} y - [description] - * @param {number} [sx=16] - [description] - * @param {number} [sy=16] - [description] - */ -var Body = new Class({ - - initialize: - - function Body (world, x, y, sx, sy) - { - if (sx === undefined) { sx = 16; } - if (sy === undefined) { sy = sx; } - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#world - * @type {Phaser.Physics.Impact.World} - * @since 3.0.0 - */ - this.world = world; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#gameObject - * @type {Phaser.GameObjects.GameObject} - * @default null - * @since 3.0.0 - */ - this.gameObject = null; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#enabled - * @type {boolean} - * @default true - * @since 3.0.0 - */ - this.enabled = true; - - /** - * The ImpactBody, ImpactSprite or ImpactImage object that owns this Body, if any. - * - * @name Phaser.Physics.Impact.Body#parent - * @type {?(Phaser.Physics.Impact.ImpactBody|Phaser.Physics.Impact.ImpactImage|Phaser.Physics.Impact.ImpactSprite)} - * @since 3.0.0 - */ - this.parent; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#id - * @type {integer} - * @since 3.0.0 - */ - this.id = world.getNextID(); - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#name - * @type {string} - * @default '' - * @since 3.0.0 - */ - this.name = ''; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#size - * @type {Phaser.Types.Math.Vector2Like} - * @since 3.0.0 - */ - this.size = { x: sx, y: sy }; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#offset - * @type {Phaser.Types.Math.Vector2Like} - * @since 3.0.0 - */ - this.offset = { x: 0, y: 0 }; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#pos - * @type {Phaser.Types.Math.Vector2Like} - * @since 3.0.0 - */ - this.pos = { x: x, y: y }; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#last - * @type {Phaser.Types.Math.Vector2Like} - * @since 3.0.0 - */ - this.last = { x: x, y: y }; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#vel - * @type {Phaser.Types.Math.Vector2Like} - * @since 3.0.0 - */ - this.vel = { x: 0, y: 0 }; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#accel - * @type {Phaser.Types.Math.Vector2Like} - * @since 3.0.0 - */ - this.accel = { x: 0, y: 0 }; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#friction - * @type {Phaser.Types.Math.Vector2Like} - * @since 3.0.0 - */ - this.friction = { x: 0, y: 0 }; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#maxVel - * @type {Phaser.Types.Math.Vector2Like} - * @since 3.0.0 - */ - this.maxVel = { x: world.defaults.maxVelocityX, y: world.defaults.maxVelocityY }; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#standing - * @type {boolean} - * @default false - * @since 3.0.0 - */ - this.standing = false; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#gravityFactor - * @type {number} - * @since 3.0.0 - */ - this.gravityFactor = world.defaults.gravityFactor; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#bounciness - * @type {number} - * @since 3.0.0 - */ - this.bounciness = world.defaults.bounciness; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#minBounceVelocity - * @type {number} - * @since 3.0.0 - */ - this.minBounceVelocity = world.defaults.minBounceVelocity; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#accelGround - * @type {number} - * @default 0 - * @since 3.0.0 - */ - this.accelGround = 0; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#accelAir - * @type {number} - * @default 0 - * @since 3.0.0 - */ - this.accelAir = 0; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#jumpSpeed - * @type {number} - * @default 0 - * @since 3.0.0 - */ - this.jumpSpeed = 0; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#type - * @type {Phaser.Physics.Impact.TYPE} - * @since 3.0.0 - */ - this.type = TYPE.NONE; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#checkAgainst - * @type {Phaser.Physics.Impact.TYPE} - * @since 3.0.0 - */ - this.checkAgainst = TYPE.NONE; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#collides - * @type {Phaser.Physics.Impact.COLLIDES} - * @since 3.0.0 - */ - this.collides = COLLIDES.NEVER; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#debugShowBody - * @type {boolean} - * @since 3.0.0 - */ - this.debugShowBody = world.defaults.debugShowBody; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#debugShowVelocity - * @type {boolean} - * @since 3.0.0 - */ - this.debugShowVelocity = world.defaults.debugShowVelocity; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#debugBodyColor - * @type {integer} - * @since 3.0.0 - */ - this.debugBodyColor = world.defaults.bodyDebugColor; - - /** - * [description] - * - * @name Phaser.Physics.Impact.Body#updateCallback - * @type {?Phaser.Types.Physics.Impact.BodyUpdateCallback} - * @since 3.0.0 - */ - this.updateCallback; - - /** - * min 44 deg, max 136 deg - * - * @name Phaser.Physics.Impact.Body#slopeStanding - * @type {{ min: number, max: number }} - * @since 3.0.0 - */ - this.slopeStanding = { min: 0.767944870877505, max: 2.3736477827122884 }; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Body#reset - * @since 3.0.0 - * - * @param {number} x - [description] - * @param {number} y - [description] - */ - reset: function (x, y) - { - this.pos = { x: x, y: y }; - this.last = { x: x, y: y }; - this.vel = { x: 0, y: 0 }; - this.accel = { x: 0, y: 0 }; - this.friction = { x: 0, y: 0 }; - this.maxVel = { x: 100, y: 100 }; - - this.standing = false; - - this.gravityFactor = 1; - this.bounciness = 0; - this.minBounceVelocity = 40; - - this.accelGround = 0; - this.accelAir = 0; - this.jumpSpeed = 0; - - this.type = TYPE.NONE; - this.checkAgainst = TYPE.NONE; - this.collides = COLLIDES.NEVER; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Body#update - * @since 3.0.0 - * - * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate. - */ - update: function (delta) - { - var pos = this.pos; - - this.last.x = pos.x; - this.last.y = pos.y; - - this.vel.y += this.world.gravity * delta * this.gravityFactor; - - this.vel.x = GetVelocity(delta, this.vel.x, this.accel.x, this.friction.x, this.maxVel.x); - this.vel.y = GetVelocity(delta, this.vel.y, this.accel.y, this.friction.y, this.maxVel.y); - - var mx = this.vel.x * delta; - var my = this.vel.y * delta; - - var res = this.world.collisionMap.trace(pos.x, pos.y, mx, my, this.size.x, this.size.y); - - if (this.handleMovementTrace(res)) - { - UpdateMotion(this, res); - } - - var go = this.gameObject; - - if (go) - { - go.x = (pos.x - this.offset.x) + go.displayOriginX * go.scaleX; - go.y = (pos.y - this.offset.y) + go.displayOriginY * go.scaleY; - } - - if (this.updateCallback) - { - this.updateCallback(this); - } - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Body#drawDebug - * @since 3.0.0 - * - * @param {Phaser.GameObjects.Graphics} graphic - [description] - */ - drawDebug: function (graphic) - { - var pos = this.pos; - - if (this.debugShowBody) - { - graphic.lineStyle(1, this.debugBodyColor, 1); - graphic.strokeRect(pos.x, pos.y, this.size.x, this.size.y); - } - - if (this.debugShowVelocity) - { - var x = pos.x + this.size.x / 2; - var y = pos.y + this.size.y / 2; - - graphic.lineStyle(1, this.world.defaults.velocityDebugColor, 1); - graphic.lineBetween(x, y, x + this.vel.x, y + this.vel.y); - } - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Body#willDrawDebug - * @since 3.0.0 - * - * @return {boolean} [description] - */ - willDrawDebug: function () - { - return (this.debugShowBody || this.debugShowVelocity); - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Body#skipHash - * @since 3.0.0 - * - * @return {boolean} [description] - */ - skipHash: function () - { - return (!this.enabled || (this.type === 0 && this.checkAgainst === 0 && this.collides === 0)); - }, - - /** - * Determines whether the body collides with the `other` one or not. - * - * @method Phaser.Physics.Impact.Body#touches - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body} other - [description] - * - * @return {boolean} [description] - */ - touches: function (other) - { - return !( - this.pos.x >= other.pos.x + other.size.x || - this.pos.x + this.size.x <= other.pos.x || - this.pos.y >= other.pos.y + other.size.y || - this.pos.y + this.size.y <= other.pos.y - ); - }, - - /** - * Reset the size and position of the physics body. - * - * @method Phaser.Physics.Impact.Body#resetSize - * @since 3.0.0 - * - * @param {number} x - The x coordinate to position the body. - * @param {number} y - The y coordinate to position the body. - * @param {number} width - The width of the body. - * @param {number} height - The height of the body. - * - * @return {Phaser.Physics.Impact.Body} This Body object. - */ - resetSize: function (x, y, width, height) - { - this.pos.x = x; - this.pos.y = y; - this.size.x = width; - this.size.y = height; - - return this; - }, - - /** - * Export this body object to JSON. - * - * @method Phaser.Physics.Impact.Body#toJSON - * @since 3.0.0 - * - * @return {Phaser.Types.Physics.Impact.JSONImpactBody} JSON representation of this body object. - */ - toJSON: function () - { - var output = { - name: this.name, - size: { x: this.size.x, y: this.size.y }, - pos: { x: this.pos.x, y: this.pos.y }, - vel: { x: this.vel.x, y: this.vel.y }, - accel: { x: this.accel.x, y: this.accel.y }, - friction: { x: this.friction.x, y: this.friction.y }, - maxVel: { x: this.maxVel.x, y: this.maxVel.y }, - gravityFactor: this.gravityFactor, - bounciness: this.bounciness, - minBounceVelocity: this.minBounceVelocity, - type: this.type, - checkAgainst: this.checkAgainst, - collides: this.collides - }; - - return output; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Body#fromJSON - * @todo Code it! - * @since 3.0.0 - * - * @param {object} config - [description] - */ - fromJSON: function () - { - }, - - /** - * Can be overridden by user code - * - * @method Phaser.Physics.Impact.Body#check - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body} other - [description] - */ - check: function () - { - }, - - /** - * Can be overridden by user code - * - * @method Phaser.Physics.Impact.Body#collideWith - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body} other - [description] - * @param {string} axis - [description] - */ - collideWith: function (other, axis) - { - if (this.parent && this.parent._collideCallback) - { - this.parent._collideCallback.call(this.parent._callbackScope, this, other, axis); - } - }, - - /** - * Can be overridden by user code but must return a boolean. - * - * @method Phaser.Physics.Impact.Body#handleMovementTrace - * @since 3.0.0 - * - * @param {number} res - [description] - * - * @return {boolean} [description] - */ - handleMovementTrace: function () - { - return true; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Body#destroy - * @since 3.0.0 - */ - destroy: function () - { - this.world.remove(this); - - this.enabled = false; - - this.world = null; - - this.gameObject = null; - - this.parent = null; - } - -}); - -module.exports = Body; - - -/***/ }), -/* 1380 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Class = __webpack_require__(0); -var DefaultDefs = __webpack_require__(1403); - -/** - * @classdesc - * [description] - * - * @class CollisionMap - * @memberof Phaser.Physics.Impact - * @constructor - * @since 3.0.0 - * - * @param {integer} [tilesize=32] - [description] - * @param {array} [data] - [description] - */ -var CollisionMap = new Class({ - - initialize: - - function CollisionMap (tilesize, data) - { - if (tilesize === undefined) { tilesize = 32; } - - /** - * [description] - * - * @name Phaser.Physics.Impact.CollisionMap#tilesize - * @type {integer} - * @default 32 - * @since 3.0.0 - */ - this.tilesize = tilesize; - - /** - * [description] - * - * @name Phaser.Physics.Impact.CollisionMap#data - * @type {array} - * @since 3.0.0 - */ - this.data = (Array.isArray(data)) ? data : []; - - /** - * [description] - * - * @name Phaser.Physics.Impact.CollisionMap#width - * @type {number} - * @since 3.0.0 - */ - this.width = (Array.isArray(data)) ? data[0].length : 0; - - /** - * [description] - * - * @name Phaser.Physics.Impact.CollisionMap#height - * @type {number} - * @since 3.0.0 - */ - this.height = (Array.isArray(data)) ? data.length : 0; - - /** - * [description] - * - * @name Phaser.Physics.Impact.CollisionMap#lastSlope - * @type {integer} - * @default 55 - * @since 3.0.0 - */ - this.lastSlope = 55; - - /** - * [description] - * - * @name Phaser.Physics.Impact.CollisionMap#tiledef - * @type {object} - * @since 3.0.0 - */ - this.tiledef = DefaultDefs; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.CollisionMap#trace - * @since 3.0.0 - * - * @param {number} x - [description] - * @param {number} y - [description] - * @param {number} vx - [description] - * @param {number} vy - [description] - * @param {number} objectWidth - [description] - * @param {number} objectHeight - [description] - * - * @return {boolean} [description] - */ - trace: function (x, y, vx, vy, objectWidth, objectHeight) - { - // Set up the trace-result - var res = { - collision: { x: false, y: false, slope: false }, - pos: { x: x + vx, y: y + vy }, - tile: { x: 0, y: 0 } - }; - - if (!this.data) - { - return res; - } - - var steps = Math.ceil(Math.max(Math.abs(vx), Math.abs(vy)) / this.tilesize); - - if (steps > 1) - { - var sx = vx / steps; - var sy = vy / steps; - - for (var i = 0; i < steps && (sx || sy); i++) - { - this.step(res, x, y, sx, sy, objectWidth, objectHeight, vx, vy, i); - - x = res.pos.x; - y = res.pos.y; - - if (res.collision.x) - { - sx = 0; - vx = 0; - } - - if (res.collision.y) - { - sy = 0; - vy = 0; - } - - if (res.collision.slope) - { - break; - } - } - } - else - { - this.step(res, x, y, vx, vy, objectWidth, objectHeight, vx, vy, 0); - } - - return res; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.CollisionMap#step - * @since 3.0.0 - * - * @param {object} res - [description] - * @param {number} x - [description] - * @param {number} y - [description] - * @param {number} vx - [description] - * @param {number} vy - [description] - * @param {number} width - [description] - * @param {number} height - [description] - * @param {number} rvx - [description] - * @param {number} rvy - [description] - * @param {number} step - [description] - */ - step: function (res, x, y, vx, vy, width, height, rvx, rvy, step) - { - var t = 0; - var tileX; - var tileY; - var tilesize = this.tilesize; - var mapWidth = this.width; - var mapHeight = this.height; - - // Horizontal - if (vx) - { - var pxOffsetX = (vx > 0 ? width : 0); - var tileOffsetX = (vx < 0 ? tilesize : 0); - - var firstTileY = Math.max(Math.floor(y / tilesize), 0); - var lastTileY = Math.min(Math.ceil((y + height) / tilesize), mapHeight); - - tileX = Math.floor((res.pos.x + pxOffsetX) / tilesize); - - var prevTileX = Math.floor((x + pxOffsetX) / tilesize); - - if (step > 0 || tileX === prevTileX || prevTileX < 0 || prevTileX >= mapWidth) - { - prevTileX = -1; - } - - if (tileX >= 0 && tileX < mapWidth) - { - for (tileY = firstTileY; tileY < lastTileY; tileY++) - { - if (prevTileX !== -1) - { - t = this.data[tileY][prevTileX]; - - if (t > 1 && t <= this.lastSlope && this.checkDef(res, t, x, y, rvx, rvy, width, height, prevTileX, tileY)) - { - break; - } - } - - t = this.data[tileY][tileX]; - - if (t === 1 || t > this.lastSlope || (t > 1 && this.checkDef(res, t, x, y, rvx, rvy, width, height, tileX, tileY))) - { - if (t > 1 && t <= this.lastSlope && res.collision.slope) - { - break; - } - - res.collision.x = true; - res.tile.x = t; - res.pos.x = (tileX * tilesize) - pxOffsetX + tileOffsetX; - x = res.pos.x; - rvx = 0; - - break; - } - } - } - } - - // Vertical - if (vy) - { - var pxOffsetY = (vy > 0 ? height : 0); - var tileOffsetY = (vy < 0 ? tilesize : 0); - - var firstTileX = Math.max(Math.floor(res.pos.x / tilesize), 0); - var lastTileX = Math.min(Math.ceil((res.pos.x + width) / tilesize), mapWidth); - - tileY = Math.floor((res.pos.y + pxOffsetY) / tilesize); - - var prevTileY = Math.floor((y + pxOffsetY) / tilesize); - - if (step > 0 || tileY === prevTileY || prevTileY < 0 || prevTileY >= mapHeight) - { - prevTileY = -1; - } - - if (tileY >= 0 && tileY < mapHeight) - { - for (tileX = firstTileX; tileX < lastTileX; tileX++) - { - if (prevTileY !== -1) - { - t = this.data[prevTileY][tileX]; - - if (t > 1 && t <= this.lastSlope && this.checkDef(res, t, x, y, rvx, rvy, width, height, tileX, prevTileY)) - { - break; - } - } - - t = this.data[tileY][tileX]; - - if (t === 1 || t > this.lastSlope || (t > 1 && this.checkDef(res, t, x, y, rvx, rvy, width, height, tileX, tileY))) - { - if (t > 1 && t <= this.lastSlope && res.collision.slope) - { - break; - } - - res.collision.y = true; - res.tile.y = t; - res.pos.y = tileY * tilesize - pxOffsetY + tileOffsetY; - - break; - } - } - } - } - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.CollisionMap#checkDef - * @since 3.0.0 - * - * @param {object} res - [description] - * @param {number} t - [description] - * @param {number} x - [description] - * @param {number} y - [description] - * @param {number} vx - [description] - * @param {number} vy - [description] - * @param {number} width - [description] - * @param {number} height - [description] - * @param {number} tileX - [description] - * @param {number} tileY - [description] - * - * @return {boolean} [description] - */ - checkDef: function (res, t, x, y, vx, vy, width, height, tileX, tileY) - { - var def = this.tiledef[t]; - - if (!def) - { - return false; - } - - var tilesize = this.tilesize; - - var lx = (tileX + def[0]) * tilesize; - var ly = (tileY + def[1]) * tilesize; - var lvx = (def[2] - def[0]) * tilesize; - var lvy = (def[3] - def[1]) * tilesize; - var solid = def[4]; - - var tx = x + vx + (lvy < 0 ? width : 0) - lx; - var ty = y + vy + (lvx > 0 ? height : 0) - ly; - - if (lvx * ty - lvy * tx > 0) - { - if (vx * -lvy + vy * lvx < 0) - { - return solid; - } - - var length = Math.sqrt(lvx * lvx + lvy * lvy); - var nx = lvy / length; - var ny = -lvx / length; - - var proj = tx * nx + ty * ny; - var px = nx * proj; - var py = ny * proj; - - if (px * px + py * py >= vx * vx + vy * vy) - { - return solid || (lvx * (ty - vy) - lvy * (tx - vx) < 0.5); - } - - res.pos.x = x + vx - px; - res.pos.y = y + vy - py; - res.collision.slope = { x: lvx, y: lvy, nx: nx, ny: ny }; - - return true; - } - - return false; - } - -}); - -module.exports = CollisionMap; - - -/***/ }), -/* 1381 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Class = __webpack_require__(0); -var ImpactBody = __webpack_require__(1382); -var ImpactImage = __webpack_require__(1383); -var ImpactSprite = __webpack_require__(1384); - -/** - * @classdesc - * The Impact Physics Factory allows you to easily create Impact Physics enabled Game Objects. - * Objects that are created by this Factory are automatically added to the physics world. - * - * @class Factory - * @memberof Phaser.Physics.Impact - * @constructor - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.World} world - A reference to the Impact Physics world. - */ -var Factory = new Class({ - - initialize: - - function Factory (world) - { - /** - * A reference to the Impact Physics world. - * - * @name Phaser.Physics.Impact.Factory#world - * @type {Phaser.Physics.Impact.World} - * @since 3.0.0 - */ - this.world = world; - - /** - * A reference to the Scene.Systems this Impact Physics instance belongs to. - * - * @name Phaser.Physics.Impact.Factory#sys - * @type {Phaser.Scenes.Systems} - * @since 3.0.0 - */ - this.sys = world.scene.sys; - }, - - /** - * Creates a new ImpactBody object and adds it to the physics simulation. - * - * @method Phaser.Physics.Impact.Factory#body - * @since 3.0.0 - * - * @param {number} x - The horizontal position of the body in the physics world. - * @param {number} y - The vertical position of the body in the physics world. - * @param {number} width - The width of the body. - * @param {number} height - The height of the body. - * - * @return {Phaser.Physics.Impact.ImpactBody} The ImpactBody object that was created. - */ - body: function (x, y, width, height) - { - return new ImpactBody(this.world, x, y, width, height); - }, - - /** - * Adds an Impact Physics Body to the given Game Object. - * - * @method Phaser.Physics.Impact.Factory#existing - * @since 3.0.0 - * - * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to receive the physics body. - * - * @return {Phaser.GameObjects.GameObject} The Game Object. - */ - existing: function (gameObject) - { - var x = gameObject.x - gameObject.frame.centerX; - var y = gameObject.y - gameObject.frame.centerY; - var w = gameObject.width; - var h = gameObject.height; - - gameObject.body = this.world.create(x, y, w, h); - - gameObject.body.parent = gameObject; - gameObject.body.gameObject = gameObject; - - return gameObject; - }, - - /** - * Creates a new ImpactImage object and adds it to the physics world. - * - * @method Phaser.Physics.Impact.Factory#image - * @since 3.0.0 - * - * @param {number} x - The horizontal position of this Game Object in the world. - * @param {number} y - The vertical position of this Game Object in the world. - * @param {string} key - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. - * @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with. - * - * @return {Phaser.Physics.Impact.ImpactImage} The ImpactImage object that was created. - */ - image: function (x, y, key, frame) - { - var image = new ImpactImage(this.world, x, y, key, frame); - - this.sys.displayList.add(image); - - return image; - }, - - /** - * Creates a new ImpactSprite object and adds it to the physics world. - * - * @method Phaser.Physics.Impact.Factory#sprite - * @since 3.0.0 - * - * @param {number} x - The horizontal position of this Game Object in the world. - * @param {number} y - The vertical position of this Game Object in the world. - * @param {string} key - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. - * @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with. - * - * @return {Phaser.Physics.Impact.ImpactSprite} The ImpactSprite object that was created. - */ - sprite: function (x, y, key, frame) - { - var sprite = new ImpactSprite(this.world, x, y, key, frame); - - this.sys.displayList.add(sprite); - this.sys.updateList.add(sprite); - - return sprite; - }, - - /** - * Destroys this Factory. - * - * @method Phaser.Physics.Impact.Factory#destroy - * @since 3.5.0 - */ - destroy: function () - { - this.world = null; - this.sys = null; - } - -}); - -module.exports = Factory; - - -/***/ }), -/* 1382 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Class = __webpack_require__(0); -var Components = __webpack_require__(1288); - -/** - * @classdesc - * [description] - * - * @class ImpactBody - * @memberof Phaser.Physics.Impact - * @constructor - * @since 3.0.0 - * - * @extends Phaser.Physics.Impact.Components.Acceleration - * @extends Phaser.Physics.Impact.Components.BodyScale - * @extends Phaser.Physics.Impact.Components.BodyType - * @extends Phaser.Physics.Impact.Components.Bounce - * @extends Phaser.Physics.Impact.Components.CheckAgainst - * @extends Phaser.Physics.Impact.Components.Collides - * @extends Phaser.Physics.Impact.Components.Debug - * @extends Phaser.Physics.Impact.Components.Friction - * @extends Phaser.Physics.Impact.Components.Gravity - * @extends Phaser.Physics.Impact.Components.Offset - * @extends Phaser.Physics.Impact.Components.SetGameObject - * @extends Phaser.Physics.Impact.Components.Velocity - * - * @param {Phaser.Physics.Impact.World} world - [description] - * @param {number} x - x - The horizontal position of this physics body in the world. - * @param {number} y - y - The vertical position of this physics body in the world. - * @param {number} width - The width of the physics body in the world. - * @param {number} height - [description] - */ -var ImpactBody = new Class({ - - Mixins: [ - Components.Acceleration, - Components.BodyScale, - Components.BodyType, - Components.Bounce, - Components.CheckAgainst, - Components.Collides, - Components.Debug, - Components.Friction, - Components.Gravity, - Components.Offset, - Components.SetGameObject, - Components.Velocity - ], - - initialize: - - function ImpactBody (world, x, y, width, height) - { - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactBody#body - * @type {Phaser.Physics.Impact.Body} - * @since 3.0.0 - */ - this.body = world.create(x, y, width, height); - - this.body.parent = this; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactBody#size - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.size = this.body.size; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactBody#offset - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.offset = this.body.offset; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactBody#vel - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.vel = this.body.vel; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactBody#accel - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.accel = this.body.accel; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactBody#friction - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.friction = this.body.friction; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactBody#maxVel - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.maxVel = this.body.maxVel; - } - -}); - -module.exports = ImpactBody; - - -/***/ }), -/* 1383 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Class = __webpack_require__(0); -var Components = __webpack_require__(1288); -var Image = __webpack_require__(98); - -/** - * @classdesc - * An Impact Physics Image Game Object. - * - * An Image is a light-weight Game Object useful for the display of static images in your game, - * such as logos, backgrounds, scenery or other non-animated elements. Images can have input - * events and physics bodies, or be tweened, tinted or scrolled. The main difference between an - * Image and a Sprite is that you cannot animate an Image as they do not have the Animation component. - * - * @class ImpactImage - * @extends Phaser.GameObjects.Image - * @memberof Phaser.Physics.Impact - * @constructor - * @since 3.0.0 - * - * @extends Phaser.Physics.Impact.Components.Acceleration - * @extends Phaser.Physics.Impact.Components.BodyScale - * @extends Phaser.Physics.Impact.Components.BodyType - * @extends Phaser.Physics.Impact.Components.Bounce - * @extends Phaser.Physics.Impact.Components.CheckAgainst - * @extends Phaser.Physics.Impact.Components.Collides - * @extends Phaser.Physics.Impact.Components.Debug - * @extends Phaser.Physics.Impact.Components.Friction - * @extends Phaser.Physics.Impact.Components.Gravity - * @extends Phaser.Physics.Impact.Components.Offset - * @extends Phaser.Physics.Impact.Components.SetGameObject - * @extends Phaser.Physics.Impact.Components.Velocity - * @extends Phaser.GameObjects.Components.Alpha - * @extends Phaser.GameObjects.Components.BlendMode - * @extends Phaser.GameObjects.Components.Depth - * @extends Phaser.GameObjects.Components.Flip - * @extends Phaser.GameObjects.Components.GetBounds - * @extends Phaser.GameObjects.Components.Origin - * @extends Phaser.GameObjects.Components.Pipeline - * @extends Phaser.GameObjects.Components.ScrollFactor - * @extends Phaser.GameObjects.Components.Size - * @extends Phaser.GameObjects.Components.Texture - * @extends Phaser.GameObjects.Components.Tint - * @extends Phaser.GameObjects.Components.Transform - * @extends Phaser.GameObjects.Components.Visible - * - * @param {Phaser.Physics.Impact.World} world - The physics world of the Impact physics system. - * @param {number} x - The horizontal position of this Game Object in the world. - * @param {number} y - The vertical position of this Game Object in the world. - * @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. - * @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with. - */ -var ImpactImage = new Class({ - - Extends: Image, - - Mixins: [ - Components.Acceleration, - Components.BodyScale, - Components.BodyType, - Components.Bounce, - Components.CheckAgainst, - Components.Collides, - Components.Debug, - Components.Friction, - Components.Gravity, - Components.Offset, - Components.SetGameObject, - Components.Velocity - ], - - initialize: - - function ImpactImage (world, x, y, texture, frame) - { - Image.call(this, world.scene, x, y, texture, frame); - - /** - * The Physics Body linked to an ImpactImage. - * - * @name Phaser.Physics.Impact.ImpactImage#body - * @type {Phaser.Physics.Impact.Body} - * @since 3.0.0 - */ - this.body = world.create(x - this.frame.centerX, y - this.frame.centerY, this.width, this.height); - - this.body.parent = this; - this.body.gameObject = this; - - /** - * The size of the physics Body. - * - * @name Phaser.Physics.Impact.ImpactImage#size - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.size = this.body.size; - - /** - * The X and Y offset of the Body from the left and top of the Image. - * - * @name Phaser.Physics.Impact.ImpactImage#offset - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.offset = this.body.offset; - - /** - * The velocity, or rate of change the Body's position. Measured in pixels per second. - * - * @name Phaser.Physics.Impact.ImpactImage#vel - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.vel = this.body.vel; - - /** - * The acceleration is the rate of change of the velocity. Measured in pixels per second squared. - * - * @name Phaser.Physics.Impact.ImpactImage#accel - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.accel = this.body.accel; - - /** - * Friction between colliding bodies. - * - * @name Phaser.Physics.Impact.ImpactImage#friction - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.friction = this.body.friction; - - /** - * The maximum velocity of the body. - * - * @name Phaser.Physics.Impact.ImpactImage#maxVel - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.maxVel = this.body.maxVel; - } - -}); - -module.exports = ImpactImage; - - -/***/ }), -/* 1384 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Class = __webpack_require__(0); -var Components = __webpack_require__(1288); -var Sprite = __webpack_require__(69); - -/** - * @classdesc - * An Impact Physics Sprite Game Object. - * - * A Sprite Game Object is used for the display of both static and animated images in your game. - * Sprites can have input events and physics bodies. They can also be tweened, tinted, scrolled - * and animated. - * - * The main difference between a Sprite and an Image Game Object is that you cannot animate Images. - * As such, Sprites take a fraction longer to process and have a larger API footprint due to the Animation - * Component. If you do not require animation then you can safely use Images to replace Sprites in all cases. - * - * @class ImpactSprite - * @extends Phaser.GameObjects.Sprite - * @memberof Phaser.Physics.Impact - * @constructor - * @since 3.0.0 - * - * @extends Phaser.Physics.Impact.Components.Acceleration - * @extends Phaser.Physics.Impact.Components.BodyScale - * @extends Phaser.Physics.Impact.Components.BodyType - * @extends Phaser.Physics.Impact.Components.Bounce - * @extends Phaser.Physics.Impact.Components.CheckAgainst - * @extends Phaser.Physics.Impact.Components.Collides - * @extends Phaser.Physics.Impact.Components.Debug - * @extends Phaser.Physics.Impact.Components.Friction - * @extends Phaser.Physics.Impact.Components.Gravity - * @extends Phaser.Physics.Impact.Components.Offset - * @extends Phaser.Physics.Impact.Components.SetGameObject - * @extends Phaser.Physics.Impact.Components.Velocity - * @extends Phaser.GameObjects.Components.Alpha - * @extends Phaser.GameObjects.Components.BlendMode - * @extends Phaser.GameObjects.Components.Depth - * @extends Phaser.GameObjects.Components.Flip - * @extends Phaser.GameObjects.Components.GetBounds - * @extends Phaser.GameObjects.Components.Origin - * @extends Phaser.GameObjects.Components.Pipeline - * @extends Phaser.GameObjects.Components.ScrollFactor - * @extends Phaser.GameObjects.Components.Size - * @extends Phaser.GameObjects.Components.Texture - * @extends Phaser.GameObjects.Components.Tint - * @extends Phaser.GameObjects.Components.Transform - * @extends Phaser.GameObjects.Components.Visible - * - * @param {Phaser.Physics.Impact.World} world - [description] - * @param {number} x - The horizontal position of this Game Object in the world. - * @param {number} y - The vertical position of this Game Object in the world. - * @param {string} texture - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. - * @param {(string|integer)} [frame] - An optional frame from the Texture this Game Object is rendering with. - */ -var ImpactSprite = new Class({ - - Extends: Sprite, - - Mixins: [ - Components.Acceleration, - Components.BodyScale, - Components.BodyType, - Components.Bounce, - Components.CheckAgainst, - Components.Collides, - Components.Debug, - Components.Friction, - Components.Gravity, - Components.Offset, - Components.SetGameObject, - Components.Velocity - ], - - initialize: - - function ImpactSprite (world, x, y, texture, frame) - { - Sprite.call(this, world.scene, x, y, texture, frame); - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactSprite#body - * @type {Phaser.Physics.Impact.Body} - * @since 3.0.0 - */ - this.body = world.create(x - this.frame.centerX, y - this.frame.centerY, this.width, this.height); - - this.body.parent = this; - this.body.gameObject = this; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactSprite#size - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.size = this.body.size; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactSprite#offset - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.offset = this.body.offset; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactSprite#vel - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.vel = this.body.vel; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactSprite#accel - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.accel = this.body.accel; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactSprite#friction - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.friction = this.body.friction; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactSprite#maxVel - * @type {{x: number, y: number}} - * @since 3.0.0 - */ - this.maxVel = this.body.maxVel; - } - -}); - -module.exports = ImpactSprite; - - -/***/ }), -/* 1385 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Body = __webpack_require__(1379); -var Class = __webpack_require__(0); -var COLLIDES = __webpack_require__(470); -var CollisionMap = __webpack_require__(1380); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(1287); -var GetFastValue = __webpack_require__(2); -var HasValue = __webpack_require__(99); -var Set = __webpack_require__(108); -var Solver = __webpack_require__(1417); -var TILEMAP_FORMATS = __webpack_require__(32); -var TYPE = __webpack_require__(471); - -/** - * @classdesc - * [description] - * - * @class World - * @extends Phaser.Events.EventEmitter - * @memberof Phaser.Physics.Impact - * @constructor - * @since 3.0.0 - * - * @param {Phaser.Scene} scene - The Scene to which this Impact World instance belongs. - * @param {Phaser.Types.Physics.Impact.WorldConfig} config - [description] - */ -var World = new Class({ - - Extends: EventEmitter, - - initialize: - - function World (scene, config) - { - EventEmitter.call(this); - - /** - * [description] - * - * @name Phaser.Physics.Impact.World#scene - * @type {Phaser.Scene} - * @since 3.0.0 - */ - this.scene = scene; - - /** - * [description] - * - * @name Phaser.Physics.Impact.World#bodies - * @type {Phaser.Structs.Set.} - * @since 3.0.0 - */ - this.bodies = new Set(); - - /** - * [description] - * - * @name Phaser.Physics.Impact.World#gravity - * @type {number} - * @default 0 - * @since 3.0.0 - */ - this.gravity = GetFastValue(config, 'gravity', 0); - - /** - * Spatial hash cell dimensions - * - * @name Phaser.Physics.Impact.World#cellSize - * @type {integer} - * @default 64 - * @since 3.0.0 - */ - this.cellSize = GetFastValue(config, 'cellSize', 64); - - /** - * [description] - * - * @name Phaser.Physics.Impact.World#collisionMap - * @type {Phaser.Physics.Impact.CollisionMap} - * @since 3.0.0 - */ - this.collisionMap = new CollisionMap(); - - /** - * [description] - * - * @name Phaser.Physics.Impact.World#timeScale - * @type {number} - * @default 1 - * @since 3.0.0 - */ - this.timeScale = GetFastValue(config, 'timeScale', 1); - - /** - * Impacts maximum time step is 20 fps. - * - * @name Phaser.Physics.Impact.World#maxStep - * @type {number} - * @default 0.05 - * @since 3.0.0 - */ - this.maxStep = GetFastValue(config, 'maxStep', 0.05); - - /** - * [description] - * - * @name Phaser.Physics.Impact.World#enabled - * @type {boolean} - * @default true - * @since 3.0.0 - */ - this.enabled = true; - - /** - * [description] - * - * @name Phaser.Physics.Impact.World#drawDebug - * @type {boolean} - * @since 3.0.0 - */ - this.drawDebug = GetFastValue(config, 'debug', false); - - /** - * [description] - * - * @name Phaser.Physics.Impact.World#debugGraphic - * @type {Phaser.GameObjects.Graphics} - * @since 3.0.0 - */ - this.debugGraphic; - - var _maxVelocity = GetFastValue(config, 'maxVelocity', 100); - - /** - * [description] - * - * @name Phaser.Physics.Impact.World#defaults - * @type {Phaser.Types.Physics.Impact.WorldDefaults} - * @since 3.0.0 - */ - this.defaults = { - debugShowBody: GetFastValue(config, 'debugShowBody', true), - debugShowVelocity: GetFastValue(config, 'debugShowVelocity', true), - bodyDebugColor: GetFastValue(config, 'debugBodyColor', 0xff00ff), - velocityDebugColor: GetFastValue(config, 'debugVelocityColor', 0x00ff00), - maxVelocityX: GetFastValue(config, 'maxVelocityX', _maxVelocity), - maxVelocityY: GetFastValue(config, 'maxVelocityY', _maxVelocity), - minBounceVelocity: GetFastValue(config, 'minBounceVelocity', 40), - gravityFactor: GetFastValue(config, 'gravityFactor', 1), - bounciness: GetFastValue(config, 'bounciness', 0) - }; - - /** - * An object containing the 4 wall bodies that bound the physics world. - * - * @name Phaser.Physics.Impact.World#walls - * @type {Phaser.Types.Physics.Impact.WorldWalls} - * @since 3.0.0 - */ - this.walls = { left: null, right: null, top: null, bottom: null }; - - /** - * [description] - * - * @name Phaser.Physics.Impact.World#delta - * @type {number} - * @default 0 - * @since 3.0.0 - */ - this.delta = 0; - - /** - * [description] - * - * @name Phaser.Physics.Impact.World#_lastId - * @type {number} - * @private - * @default 0 - * @since 3.0.0 - */ - this._lastId = 0; - - if (GetFastValue(config, 'setBounds', false)) - { - var boundsConfig = config['setBounds']; - - if (typeof boundsConfig === 'boolean') - { - this.setBounds(); - } - else - { - var x = GetFastValue(boundsConfig, 'x', 0); - var y = GetFastValue(boundsConfig, 'y', 0); - var width = GetFastValue(boundsConfig, 'width', scene.sys.scale.width); - var height = GetFastValue(boundsConfig, 'height', scene.sys.scale.height); - var thickness = GetFastValue(boundsConfig, 'thickness', 64); - var left = GetFastValue(boundsConfig, 'left', true); - var right = GetFastValue(boundsConfig, 'right', true); - var top = GetFastValue(boundsConfig, 'top', true); - var bottom = GetFastValue(boundsConfig, 'bottom', true); - - this.setBounds(x, y, width, height, thickness, left, right, top, bottom); - } - } - - if (this.drawDebug) - { - this.createDebugGraphic(); - } - }, - - /** - * Sets the collision map for the world either from a Weltmeister JSON level in the cache or from - * a 2D array. If loading from a Weltmeister level, the map must have a layer called "collision". - * - * @method Phaser.Physics.Impact.World#setCollisionMap - * @since 3.0.0 - * - * @param {(string|integer[][])} key - Either a string key that corresponds to a Weltmeister level - * in the cache, or a 2D array of collision IDs. - * @param {integer} tileSize - The size of a tile. This is optional if loading from a Weltmeister - * level in the cache. - * - * @return {?Phaser.Physics.Impact.CollisionMap} The newly created CollisionMap, or null if the method failed to - * create the CollisionMap. - */ - setCollisionMap: function (key, tileSize) - { - if (typeof key === 'string') - { - var tilemapData = this.scene.cache.tilemap.get(key); - - if (!tilemapData || tilemapData.format !== TILEMAP_FORMATS.WELTMEISTER) - { - console.warn('The specified key does not correspond to a Weltmeister tilemap: ' + key); - return null; - } - - var layers = tilemapData.data.layer; - var collisionLayer; - for (var i = 0; i < layers.length; i++) - { - if (layers[i].name === 'collision') - { - collisionLayer = layers[i]; - break; - } - } - - if (tileSize === undefined) { tileSize = collisionLayer.tilesize; } - - this.collisionMap = new CollisionMap(tileSize, collisionLayer.data); - } - else if (Array.isArray(key)) - { - this.collisionMap = new CollisionMap(tileSize, key); - } - else - { - console.warn('Invalid Weltmeister collision map data: ' + key); - } - - return this.collisionMap; - }, - - /** - * Sets the collision map for the world from a tilemap layer. Only tiles that are marked as - * colliding will be used. You can specify the mapping from tiles to slope IDs in a couple of - * ways. The easiest is to use Tiled and the slopeTileProperty option. Alternatively, you can - * manually create a slopeMap that stores the mapping between tile indices and slope IDs. - * - * @method Phaser.Physics.Impact.World#setCollisionMapFromTilemapLayer - * @since 3.0.0 - * - * @param {(Phaser.Tilemaps.DynamicTilemapLayer|Phaser.Tilemaps.StaticTilemapLayer)} tilemapLayer - The tilemap layer to use. - * @param {Phaser.Types.Physics.Impact.CollisionOptions} [options] - Options for controlling the mapping from tiles to slope IDs. - * - * @return {Phaser.Physics.Impact.CollisionMap} The newly created CollisionMap. - */ - setCollisionMapFromTilemapLayer: function (tilemapLayer, options) - { - if (options === undefined) { options = {}; } - var slopeProperty = GetFastValue(options, 'slopeProperty', null); - var slopeMap = GetFastValue(options, 'slopeMap', null); - var collidingSlope = GetFastValue(options, 'defaultCollidingSlope', null); - var nonCollidingSlope = GetFastValue(options, 'defaultNonCollidingSlope', 0); - - var layerData = tilemapLayer.layer; - var tileSize = layerData.baseTileWidth; - var collisionData = []; - - for (var ty = 0; ty < layerData.height; ty++) - { - collisionData[ty] = []; - - for (var tx = 0; tx < layerData.width; tx++) - { - var tile = layerData.data[ty][tx]; - - if (tile && tile.collides) - { - if (slopeProperty !== null && HasValue(tile.properties, slopeProperty)) - { - collisionData[ty][tx] = parseInt(tile.properties[slopeProperty], 10); - } - else if (slopeMap !== null && HasValue(slopeMap, tile.index)) - { - collisionData[ty][tx] = slopeMap[tile.index]; - } - else if (collidingSlope !== null) - { - collisionData[ty][tx] = collidingSlope; - } - else - { - collisionData[ty][tx] = tile.index; - } - } - else - { - collisionData[ty][tx] = nonCollidingSlope; - } - } - } - - this.collisionMap = new CollisionMap(tileSize, collisionData); - - return this.collisionMap; - }, - - /** - * Sets the bounds of the Physics world to match the given world pixel dimensions. - * You can optionally set which 'walls' to create: left, right, top or bottom. - * If none of the walls are given it will default to use the walls settings it had previously. - * I.e. if you previously told it to not have the left or right walls, and you then adjust the world size - * the newly created bounds will also not have the left and right walls. - * Explicitly state them in the parameters to override this. - * - * @method Phaser.Physics.Impact.World#setBounds - * @since 3.0.0 - * - * @param {number} [x] - The x coordinate of the top-left corner of the bounds. - * @param {number} [y] - The y coordinate of the top-left corner of the bounds. - * @param {number} [width] - The width of the bounds. - * @param {number} [height] - The height of the bounds. - * @param {number} [thickness=64] - [description] - * @param {boolean} [left=true] - If true will create the left bounds wall. - * @param {boolean} [right=true] - If true will create the right bounds wall. - * @param {boolean} [top=true] - If true will create the top bounds wall. - * @param {boolean} [bottom=true] - If true will create the bottom bounds wall. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setBounds: function (x, y, width, height, thickness, left, right, top, bottom) - { - if (x === undefined) { x = 0; } - if (y === undefined) { y = 0; } - if (width === undefined) { width = this.scene.sys.scale.width; } - if (height === undefined) { height = this.scene.sys.scale.height; } - if (thickness === undefined) { thickness = 64; } - if (left === undefined) { left = true; } - if (right === undefined) { right = true; } - if (top === undefined) { top = true; } - if (bottom === undefined) { bottom = true; } - - this.updateWall(left, 'left', x - thickness, y, thickness, height); - this.updateWall(right, 'right', x + width, y, thickness, height); - this.updateWall(top, 'top', x, y - thickness, width, thickness); - this.updateWall(bottom, 'bottom', x, y + height, width, thickness); - - return this; - }, - - /** - * position = 'left', 'right', 'top' or 'bottom' - * - * @method Phaser.Physics.Impact.World#updateWall - * @since 3.0.0 - * - * @param {boolean} add - [description] - * @param {string} position - [description] - * @param {number} x - [description] - * @param {number} y - [description] - * @param {number} width - [description] - * @param {number} height - [description] - */ - updateWall: function (add, position, x, y, width, height) - { - var wall = this.walls[position]; - - if (add) - { - if (wall) - { - wall.resetSize(x, y, width, height); - } - else - { - this.walls[position] = this.create(x, y, width, height); - this.walls[position].name = position; - this.walls[position].gravityFactor = 0; - this.walls[position].collides = COLLIDES.FIXED; - } - } - else - { - if (wall) - { - this.bodies.remove(wall); - } - - this.walls[position] = null; - } - }, - - /** - * Creates a Graphics Game Object used for debug display and enables the world for debug drawing. - * - * @method Phaser.Physics.Impact.World#createDebugGraphic - * @since 3.0.0 - * - * @return {Phaser.GameObjects.Graphics} The Graphics object created that will have the debug visuals drawn to it. - */ - createDebugGraphic: function () - { - var graphic = this.scene.sys.add.graphics({ x: 0, y: 0 }); - - graphic.setDepth(Number.MAX_VALUE); - - this.debugGraphic = graphic; - - this.drawDebug = true; - - return graphic; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#getNextID - * @since 3.0.0 - * - * @return {integer} [description] - */ - getNextID: function () - { - return this._lastId++; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#create - * @since 3.0.0 - * - * @param {number} x - [description] - * @param {number} y - [description] - * @param {number} sizeX - [description] - * @param {number} sizeY - [description] - * - * @return {Phaser.Physics.Impact.Body} The Body that was added to this World. - */ - create: function (x, y, sizeX, sizeY) - { - var body = new Body(this, x, y, sizeX, sizeY); - - this.bodies.set(body); - - return body; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#remove - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body} object - The Body to remove from this World. - */ - remove: function (object) - { - this.bodies.delete(object); - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#pause - * @fires Phaser.Physics.Impact.Events#PAUSE - * @since 3.0.0 - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - pause: function () - { - this.enabled = false; - - this.emit(Events.PAUSE); - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#resume - * @fires Phaser.Physics.Impact.Events#RESUME - * @since 3.0.0 - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - resume: function () - { - this.enabled = true; - - this.emit(Events.RESUME); - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#update - * @since 3.0.0 - * - * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout. - * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate. - */ - update: function (time, delta) - { - if (!this.enabled || this.bodies.size === 0) - { - return; - } - - // Impact uses a divided delta value that is clamped to the maxStep (20fps) maximum - - var clampedDelta = Math.min(delta / 1000, this.maxStep) * this.timeScale; - - this.delta = clampedDelta; - - // Update all active bodies - - var i; - var body; - var bodies = this.bodies.entries; - var len = bodies.length; - var hash = {}; - var size = this.cellSize; - - for (i = 0; i < len; i++) - { - body = bodies[i]; - - if (body.enabled) - { - body.update(clampedDelta); - } - } - - // Run collision against them all now they're in the new positions from the update - - for (i = 0; i < len; i++) - { - body = bodies[i]; - - if (body && !body.skipHash()) - { - this.checkHash(body, hash, size); - } - } - - if (this.drawDebug) - { - var graphics = this.debugGraphic; - - graphics.clear(); - - for (i = 0; i < len; i++) - { - body = bodies[i]; - - if (body && body.willDrawDebug()) - { - body.drawDebug(graphics); - } - } - } - }, - - /** - * Check the body against the spatial hash. - * - * @method Phaser.Physics.Impact.World#checkHash - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body} body - [description] - * @param {object} hash - [description] - * @param {number} size - [description] - */ - checkHash: function (body, hash, size) - { - var checked = {}; - - var xmin = Math.floor(body.pos.x / size); - var ymin = Math.floor(body.pos.y / size); - var xmax = Math.floor((body.pos.x + body.size.x) / size) + 1; - var ymax = Math.floor((body.pos.y + body.size.y) / size) + 1; - - for (var x = xmin; x < xmax; x++) - { - for (var y = ymin; y < ymax; y++) - { - if (!hash[x]) - { - hash[x] = {}; - hash[x][y] = [ body ]; - } - else if (!hash[x][y]) - { - hash[x][y] = [ body ]; - } - else - { - var cell = hash[x][y]; - - for (var c = 0; c < cell.length; c++) - { - if (body.touches(cell[c]) && !checked[cell[c].id]) - { - checked[cell[c].id] = true; - - this.checkBodies(body, cell[c]); - } - } - - cell.push(body); - } - } - } - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#checkBodies - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body} bodyA - [description] - * @param {Phaser.Physics.Impact.Body} bodyB - [description] - */ - checkBodies: function (bodyA, bodyB) - { - // 2 fixed bodies won't do anything - if (bodyA.collides === COLLIDES.FIXED && bodyB.collides === COLLIDES.FIXED) - { - return; - } - - // bitwise checks - if (bodyA.checkAgainst & bodyB.type) - { - bodyA.check(bodyB); - } - - if (bodyB.checkAgainst & bodyA.type) - { - bodyB.check(bodyA); - } - - if (bodyA.collides && bodyB.collides && bodyA.collides + bodyB.collides > COLLIDES.ACTIVE) - { - Solver(this, bodyA, bodyB); - } - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setCollidesNever - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the collides value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setCollidesNever: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].collides = COLLIDES.NEVER; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setLite - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the collides value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setLite: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].collides = COLLIDES.LITE; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setPassive - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the collides value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setPassive: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].collides = COLLIDES.PASSIVE; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setActive - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the collides value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setActive: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].collides = COLLIDES.ACTIVE; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setFixed - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the collides value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setFixed: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].collides = COLLIDES.FIXED; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setTypeNone - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the type value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setTypeNone: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].type = TYPE.NONE; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setTypeA - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the type value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setTypeA: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].type = TYPE.A; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setTypeB - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the type value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setTypeB: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].type = TYPE.B; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setAvsB - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the type value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setAvsB: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].type = TYPE.A; - bodies[i].checkAgainst = TYPE.B; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setBvsA - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the type value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setBvsA: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].type = TYPE.B; - bodies[i].checkAgainst = TYPE.A; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setCheckAgainstNone - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the type value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setCheckAgainstNone: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].checkAgainst = TYPE.NONE; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setCheckAgainstA - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the type value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setCheckAgainstA: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].checkAgainst = TYPE.A; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#setCheckAgainstB - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body[]} bodies - An Array of Impact Bodies to set the type value on. - * - * @return {Phaser.Physics.Impact.World} This World object. - */ - setCheckAgainstB: function (bodies) - { - for (var i = 0; i < bodies.length; i++) - { - bodies[i].checkAgainst = TYPE.B; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#shutdown - * @since 3.0.0 - */ - shutdown: function () - { - this.removeAllListeners(); - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.World#destroy - * @since 3.0.0 - */ - destroy: function () - { - this.removeAllListeners(); - - this.scene = null; - - this.bodies.clear(); - - this.bodies = null; - - this.collisionMap = null; - } - -}); - -module.exports = World; - - -/***/ }), -/* 1386 */ +/* 1375 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -190909,7 +188309,7 @@ module.exports = BodyBounds; /***/ }), -/* 1387 */ +/* 1376 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -190918,19 +188318,19 @@ module.exports = BodyBounds; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bodies = __webpack_require__(109); +var Bodies = __webpack_require__(106); var Class = __webpack_require__(0); -var Composites = __webpack_require__(1289); -var Constraint = __webpack_require__(218); -var Svg = __webpack_require__(1290); -var MatterGameObject = __webpack_require__(1421); -var MatterImage = __webpack_require__(1389); -var MatterSprite = __webpack_require__(1390); -var MatterTileBody = __webpack_require__(1294); -var PhysicsEditorParser = __webpack_require__(1291); -var PhysicsJSONParser = __webpack_require__(1292); -var PointerConstraint = __webpack_require__(1450); -var Vertices = __webpack_require__(86); +var Composites = __webpack_require__(1286); +var Constraint = __webpack_require__(215); +var Svg = __webpack_require__(1287); +var MatterGameObject = __webpack_require__(1387); +var MatterImage = __webpack_require__(1378); +var MatterSprite = __webpack_require__(1379); +var MatterTileBody = __webpack_require__(1291); +var PhysicsEditorParser = __webpack_require__(1288); +var PhysicsJSONParser = __webpack_require__(1289); +var PointerConstraint = __webpack_require__(1416); +var Vertices = __webpack_require__(85); /** * @classdesc @@ -191839,7 +189239,7 @@ module.exports = Factory; /***/ }), -/* 1388 */ +/* 1377 */ /***/ (function(module, exports) { /** @@ -192509,7 +189909,7 @@ function points_eq(a,b,precision){ /***/ }), -/* 1389 */ +/* 1378 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -192519,11 +189919,11 @@ function points_eq(a,b,precision){ */ var Class = __webpack_require__(0); -var Components = __webpack_require__(514); +var Components = __webpack_require__(513); var GameObject = __webpack_require__(13); var GetFastValue = __webpack_require__(2); -var Image = __webpack_require__(98); -var Pipeline = __webpack_require__(154); +var Image = __webpack_require__(104); +var Pipeline = __webpack_require__(151); var Vector2 = __webpack_require__(3); /** @@ -192645,7 +190045,7 @@ module.exports = MatterImage; /***/ }), -/* 1390 */ +/* 1379 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -192654,13 +190054,13 @@ module.exports = MatterImage; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var AnimationComponent = __webpack_require__(504); +var AnimationComponent = __webpack_require__(503); var Class = __webpack_require__(0); -var Components = __webpack_require__(514); +var Components = __webpack_require__(513); var GameObject = __webpack_require__(13); var GetFastValue = __webpack_require__(2); -var Pipeline = __webpack_require__(154); -var Sprite = __webpack_require__(69); +var Pipeline = __webpack_require__(151); +var Sprite = __webpack_require__(74); var Vector2 = __webpack_require__(3); /** @@ -192787,7 +190187,7 @@ module.exports = MatterSprite; /***/ }), -/* 1391 */ +/* 1380 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -192800,7 +190200,7 @@ var Matter = {}; module.exports = Matter; -var Plugin = __webpack_require__(1296); +var Plugin = __webpack_require__(1293); var Common = __webpack_require__(37); (function() { @@ -192879,7 +190279,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 1392 */ +/* 1381 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -192894,11 +190294,11 @@ var Query = {}; module.exports = Query; -var Vector = __webpack_require__(101); -var SAT = __webpack_require__(516); -var Bounds = __webpack_require__(102); -var Bodies = __webpack_require__(109); -var Vertices = __webpack_require__(86); +var Vector = __webpack_require__(98); +var SAT = __webpack_require__(515); +var Bounds = __webpack_require__(99); +var Bodies = __webpack_require__(106); +var Vertices = __webpack_require__(85); (function() { @@ -193021,7 +190421,7 @@ var Vertices = __webpack_require__(86); /***/ }), -/* 1393 */ +/* 1382 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -193038,15 +190438,15 @@ var Engine = {}; module.exports = Engine; -var World = __webpack_require__(1297); -var Sleeping = __webpack_require__(238); -var Resolver = __webpack_require__(1300); -var Pairs = __webpack_require__(1299); -var Metrics = __webpack_require__(1451); -var Grid = __webpack_require__(1298); -var Events = __webpack_require__(239); -var Composite = __webpack_require__(146); -var Constraint = __webpack_require__(218); +var World = __webpack_require__(1294); +var Sleeping = __webpack_require__(236); +var Resolver = __webpack_require__(1297); +var Pairs = __webpack_require__(1296); +var Metrics = __webpack_require__(1417); +var Grid = __webpack_require__(1295); +var Events = __webpack_require__(237); +var Composite = __webpack_require__(143); +var Constraint = __webpack_require__(215); var Common = __webpack_require__(37); var Body = __webpack_require__(62); @@ -193514,7 +190914,7 @@ var Body = __webpack_require__(62); /***/ }), -/* 1394 */ +/* 1383 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -193523,21 +190923,21 @@ var Body = __webpack_require__(62); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bodies = __webpack_require__(109); +var Bodies = __webpack_require__(106); var Body = __webpack_require__(62); var Class = __webpack_require__(0); var Common = __webpack_require__(37); -var Composite = __webpack_require__(146); -var Engine = __webpack_require__(1393); -var EventEmitter = __webpack_require__(9); -var Events = __webpack_require__(1293); +var Composite = __webpack_require__(143); +var Engine = __webpack_require__(1382); +var EventEmitter = __webpack_require__(10); +var Events = __webpack_require__(1290); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); var MatterBody = __webpack_require__(62); -var MatterEvents = __webpack_require__(239); -var MatterTileBody = __webpack_require__(1294); -var MatterWorld = __webpack_require__(1297); -var Vector = __webpack_require__(101); +var MatterEvents = __webpack_require__(237); +var MatterTileBody = __webpack_require__(1291); +var MatterWorld = __webpack_require__(1294); +var Vector = __webpack_require__(98); /** * @classdesc @@ -195735,7 +193135,7 @@ module.exports = World; /***/ }), -/* 1395 */ +/* 1384 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** @@ -195744,7 +193144,7 @@ module.exports = World; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -__webpack_require__(518); +__webpack_require__(517); var CONST = __webpack_require__(29); var Extend = __webpack_require__(17); @@ -195755,38 +193155,38 @@ var Extend = __webpack_require__(17); var Phaser = { - Actions: __webpack_require__(240), - Animations: __webpack_require__(638), + Actions: __webpack_require__(238), + Animations: __webpack_require__(637), BlendModes: __webpack_require__(52), - Cache: __webpack_require__(639), - Cameras: __webpack_require__(642), - Core: __webpack_require__(725), + Cache: __webpack_require__(638), + Cameras: __webpack_require__(641), + Core: __webpack_require__(724), Class: __webpack_require__(0), - Create: __webpack_require__(784), - Curves: __webpack_require__(790), - Data: __webpack_require__(793), - Display: __webpack_require__(795), - DOM: __webpack_require__(812), - Events: __webpack_require__(813), - Game: __webpack_require__(815), - GameObjects: __webpack_require__(908), - Geom: __webpack_require__(427), - Input: __webpack_require__(1196), - Loader: __webpack_require__(1230), - Math: __webpack_require__(169), - Physics: __webpack_require__(1396), - Plugins: __webpack_require__(1301), - Renderer: __webpack_require__(1456), - Scale: __webpack_require__(1303), - ScaleModes: __webpack_require__(233), - Scene: __webpack_require__(373), - Scenes: __webpack_require__(1304), - Structs: __webpack_require__(1306), - Textures: __webpack_require__(1307), - Tilemaps: __webpack_require__(1309), - Time: __webpack_require__(1349), - Tweens: __webpack_require__(1351), - Utils: __webpack_require__(1368) + Create: __webpack_require__(783), + Curves: __webpack_require__(789), + Data: __webpack_require__(792), + Display: __webpack_require__(794), + DOM: __webpack_require__(811), + Events: __webpack_require__(812), + Game: __webpack_require__(814), + GameObjects: __webpack_require__(907), + Geom: __webpack_require__(425), + Input: __webpack_require__(1195), + Loader: __webpack_require__(1229), + Math: __webpack_require__(166), + Physics: __webpack_require__(1385), + Plugins: __webpack_require__(1298), + Renderer: __webpack_require__(1422), + Scale: __webpack_require__(1300), + ScaleModes: __webpack_require__(231), + Scene: __webpack_require__(371), + Scenes: __webpack_require__(1301), + Structs: __webpack_require__(1303), + Textures: __webpack_require__(1304), + Tilemaps: __webpack_require__(1306), + Time: __webpack_require__(1345), + Tweens: __webpack_require__(1347), + Utils: __webpack_require__(1364) }; @@ -195794,7 +193194,7 @@ var Phaser = { if (true) { - Phaser.Sound = __webpack_require__(1378); + Phaser.Sound = __webpack_require__(1374); } if (false) @@ -195826,10 +193226,10 @@ global.Phaser = Phaser; * -- Dick Brandon */ -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(517))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(516))) /***/ }), -/* 1396 */ +/* 1385 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -195848,1869 +193248,14 @@ global.Phaser = Phaser; module.exports = { - Arcade: __webpack_require__(1256), - Impact: __webpack_require__(1397), - Matter: __webpack_require__(1420) + Arcade: __webpack_require__(1255), + Matter: __webpack_require__(1386) }; /***/ }), -/* 1397 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * An Impact.js compatible physics world, body and solver, for those who are used - * to the Impact way of defining and controlling physics bodies. Also works with - * the new Loader support for Weltmeister map data. - * - * World updated to run off the Phaser main loop. - * Body extended to support additional setter functions. - * - * To create the map data you'll need Weltmeister, which comes with Impact - * and can be purchased from http://impactjs.com - * - * My thanks to Dominic Szablewski for his permission to support Impact in Phaser. - * - * @namespace Phaser.Physics.Impact - */ -module.exports = { - - Body: __webpack_require__(1379), - Events: __webpack_require__(1287), - COLLIDES: __webpack_require__(470), - CollisionMap: __webpack_require__(1380), - Factory: __webpack_require__(1381), - Image: __webpack_require__(1383), - ImpactBody: __webpack_require__(1382), - ImpactPhysics: __webpack_require__(1416), - Sprite: __webpack_require__(1384), - TYPE: __webpack_require__(471), - World: __webpack_require__(1385) - -}; - - -/***/ }), -/* 1398 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Clamp = __webpack_require__(22); - -/** - * [description] - * - * @function Phaser.Physics.Impact.GetVelocity - * @since 3.0.0 - * - * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate. - * @param {number} vel - [description] - * @param {number} accel - [description] - * @param {number} friction - [description] - * @param {number} max - [description] - * - * @return {number} [description] - */ -var GetVelocity = function (delta, vel, accel, friction, max) -{ - if (accel) - { - return Clamp(vel + accel * delta, -max, max); - } - else if (friction) - { - var frictionDelta = friction * delta; - - if (vel - frictionDelta > 0) - { - return vel - frictionDelta; - } - else if (vel + frictionDelta < 0) - { - return vel + frictionDelta; - } - else - { - return 0; - } - } - - return Clamp(vel, -max, max); -}; - -module.exports = GetVelocity; - - -/***/ }), -/* 1399 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * Set up the trace-result - * var res = { - * collision: {x: false, y: false, slope: false}, - * pos: {x: x, y: y}, - * tile: {x: 0, y: 0} - * }; - * - * @function Phaser.Physics.Impact.UpdateMotion - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body} body - [description] - * @param {object} res - [description] - */ -var UpdateMotion = function (body, res) -{ - body.standing = false; - - // Y - if (res.collision.y) - { - if (body.bounciness > 0 && Math.abs(body.vel.y) > body.minBounceVelocity) - { - body.vel.y *= -body.bounciness; - } - else - { - if (body.vel.y > 0) - { - body.standing = true; - } - - body.vel.y = 0; - } - } - - // X - if (res.collision.x) - { - if (body.bounciness > 0 && Math.abs(body.vel.x) > body.minBounceVelocity) - { - body.vel.x *= -body.bounciness; - } - else - { - body.vel.x = 0; - } - } - - // SLOPE - if (res.collision.slope) - { - var s = res.collision.slope; - - if (body.bounciness > 0) - { - var proj = body.vel.x * s.nx + body.vel.y * s.ny; - - body.vel.x = (body.vel.x - s.nx * proj * 2) * body.bounciness; - body.vel.y = (body.vel.y - s.ny * proj * 2) * body.bounciness; - } - else - { - var lengthSquared = s.x * s.x + s.y * s.y; - var dot = (body.vel.x * s.x + body.vel.y * s.y) / lengthSquared; - - body.vel.x = s.x * dot; - body.vel.y = s.y * dot; - - var angle = Math.atan2(s.x, s.y); - - if (angle > body.slopeStanding.min && angle < body.slopeStanding.max) - { - body.standing = true; - } - } - } - - body.pos.x = res.pos.x; - body.pos.y = res.pos.y; -}; - -module.exports = UpdateMotion; - - -/***/ }), -/* 1400 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * The Impact Physics World Collide Event. - * - * This event is dispatched by an Impact Physics World instance if two bodies collide. - * - * Listen to it from a Scene using: `this.impact.world.on('collide', listener)`. - * - * @event Phaser.Physics.Impact.Events#COLLIDE - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.Body} bodyA - The first body involved in the collision. - * @param {Phaser.Physics.Impact.Body} bodyB - The second body involved in the collision. - * @param {string} axis - The collision axis. Either `x` or `y`. - */ -module.exports = 'collide'; - - -/***/ }), -/* 1401 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * The Impact Physics World Pause Event. - * - * This event is dispatched by an Impact Physics World instance when it is paused. - * - * Listen to it from a Scene using: `this.impact.world.on('pause', listener)`. - * - * @event Phaser.Physics.Impact.Events#PAUSE - * @since 3.0.0 - */ -module.exports = 'pause'; - - -/***/ }), -/* 1402 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * The Impact Physics World Resume Event. - * - * This event is dispatched by an Impact Physics World instance when it resumes from a paused state. - * - * Listen to it from a Scene using: `this.impact.world.on('resume', listener)`. - * - * @event Phaser.Physics.Impact.Events#RESUME - * @since 3.0.0 - */ -module.exports = 'resume'; - - -/***/ }), -/* 1403 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var H = 0.5; -var N = 1 / 3; -var M = 2 / 3; - -// Tile ID to Slope defs. -// First 4 elements = line data, final = solid or non-solid behind the line - -module.exports = { - - 2: [ 0, 1, 1, 0, true ], - 3: [ 0, 1, 1, H, true ], - 4: [ 0, H, 1, 0, true ], - 5: [ 0, 1, 1, M, true ], - 6: [ 0, M, 1, N, true ], - 7: [ 0, N, 1, 0, true ], - 8: [ H, 1, 0, 0, true ], - 9: [ 1, 0, H, 1, true ], - 10: [ H, 1, 1, 0, true ], - 11: [ 0, 0, H, 1, true ], - 12: [ 0, 0, 1, 0, false ], - 13: [ 1, 1, 0, 0, true ], - 14: [ 1, H, 0, 0, true ], - 15: [ 1, 1, 0, H, true ], - 16: [ 1, N, 0, 0, true ], - 17: [ 1, M, 0, N, true ], - 18: [ 1, 1, 0, M, true ], - 19: [ 1, 1, H, 0, true ], - 20: [ H, 0, 0, 1, true ], - 21: [ 0, 1, H, 0, true ], - 22: [ H, 0, 1, 1, true ], - 23: [ 1, 1, 0, 1, false ], - 24: [ 0, 0, 1, 1, true ], - 25: [ 0, 0, 1, H, true ], - 26: [ 0, H, 1, 1, true ], - 27: [ 0, 0, 1, N, true ], - 28: [ 0, N, 1, M, true ], - 29: [ 0, M, 1, 1, true ], - 30: [ N, 1, 0, 0, true ], - 31: [ 1, 0, M, 1, true ], - 32: [ M, 1, 1, 0, true ], - 33: [ 0, 0, N, 1, true ], - 34: [ 1, 0, 1, 1, false ], - 35: [ 1, 0, 0, 1, true ], - 36: [ 1, H, 0, 1, true ], - 37: [ 1, 0, 0, H, true ], - 38: [ 1, M, 0, 1, true ], - 39: [ 1, N, 0, M, true ], - 40: [ 1, 0, 0, N, true ], - 41: [ M, 1, N, 0, true ], - 42: [ M, 0, N, 1, true ], - 43: [ N, 1, M, 0, true ], - 44: [ N, 0, M, 1, true ], - 45: [ 0, 1, 0, 0, false ], - 52: [ 1, 1, M, 0, true ], - 53: [ N, 0, 0, 1, true ], - 54: [ 0, 1, N, 0, true ], - 55: [ M, 0, 1, 1, true ] - -}; - - -/***/ }), -/* 1404 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * The Impact Acceleration component. - * Should be applied as a mixin. - * - * @namespace Phaser.Physics.Impact.Components.Acceleration - * @since 3.0.0 - */ -var Acceleration = { - - /** - * Sets the horizontal acceleration of this body. - * - * @method Phaser.Physics.Impact.Components.Acceleration#setAccelerationX - * @since 3.0.0 - * - * @param {number} x - The amount of acceleration to apply. - * - * @return {this} This Game Object. - */ - setAccelerationX: function (x) - { - this.accel.x = x; - - return this; - }, - - /** - * Sets the vertical acceleration of this body. - * - * @method Phaser.Physics.Impact.Components.Acceleration#setAccelerationY - * @since 3.0.0 - * - * @param {number} y - The amount of acceleration to apply. - * - * @return {this} This Game Object. - */ - setAccelerationY: function (y) - { - this.accel.y = y; - - return this; - }, - - /** - * Sets the horizontal and vertical acceleration of this body. - * - * @method Phaser.Physics.Impact.Components.Acceleration#setAcceleration - * @since 3.0.0 - * - * @param {number} x - The amount of horizontal acceleration to apply. - * @param {number} y - The amount of vertical acceleration to apply. - * - * @return {this} This Game Object. - */ - setAcceleration: function (x, y) - { - this.accel.x = x; - this.accel.y = y; - - return this; - } - -}; - -module.exports = Acceleration; - - -/***/ }), -/* 1405 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * The Impact Body Scale component. - * Should be applied as a mixin. - * - * @namespace Phaser.Physics.Impact.Components.BodyScale - * @since 3.0.0 - */ -var BodyScale = { - - /** - * Sets the size of the physics body. - * - * @method Phaser.Physics.Impact.Components.BodyScale#setBodySize - * @since 3.0.0 - * - * @param {number} width - The width of the body in pixels. - * @param {number} [height=width] - The height of the body in pixels. - * - * @return {this} This Game Object. - */ - setBodySize: function (width, height) - { - if (height === undefined) { height = width; } - - this.body.size.x = Math.round(width); - this.body.size.y = Math.round(height); - - return this; - }, - - /** - * Sets the scale of the physics body. - * - * @method Phaser.Physics.Impact.Components.BodyScale#setBodyScale - * @since 3.0.0 - * - * @param {number} scaleX - The horizontal scale of the body. - * @param {number} [scaleY] - The vertical scale of the body. If not given, will use the horizontal scale value. - * - * @return {this} This Game Object. - */ - setBodyScale: function (scaleX, scaleY) - { - if (scaleY === undefined) { scaleY = scaleX; } - - var gameObject = this.body.gameObject; - - if (gameObject) - { - gameObject.setScale(scaleX, scaleY); - - return this.setBodySize(gameObject.width * gameObject.scaleX, gameObject.height * gameObject.scaleY); - } - else - { - return this.setBodySize(this.body.size.x * scaleX, this.body.size.y * scaleY); - } - } - -}; - -module.exports = BodyScale; - - -/***/ }), -/* 1406 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var TYPE = __webpack_require__(471); - -/** - * The Impact Body Type component. - * Should be applied as a mixin. - * - * @namespace Phaser.Physics.Impact.Components.BodyType - * @since 3.0.0 - */ -var BodyType = { - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.BodyType#getBodyType - * @since 3.0.0 - * - * @return {number} [description] - */ - getBodyType: function () - { - return this.body.type; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.BodyType#setTypeNone - * @since 3.0.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setTypeNone: function () - { - this.body.type = TYPE.NONE; - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.BodyType#setTypeA - * @since 3.0.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setTypeA: function () - { - this.body.type = TYPE.A; - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.BodyType#setTypeB - * @since 3.0.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setTypeB: function () - { - this.body.type = TYPE.B; - - return this; - } - -}; - -module.exports = BodyType; - - -/***/ }), -/* 1407 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * The Impact Bounce component. - * Should be applied as a mixin. - * - * @namespace Phaser.Physics.Impact.Components.Bounce - * @since 3.0.0 - */ -var Bounce = { - - /** - * Sets the impact physics bounce, or restitution, value. - * - * @method Phaser.Physics.Impact.Components.Bounce#setBounce - * @since 3.0.0 - * - * @param {number} value - A value between 0 (no rebound) and 1 (full rebound) - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setBounce: function (value) - { - this.body.bounciness = value; - - return this; - }, - - /** - * Sets the minimum velocity the body is allowed to be moving to be considered for rebound. - * - * @method Phaser.Physics.Impact.Components.Bounce#setMinBounceVelocity - * @since 3.0.0 - * - * @param {number} value - The minimum allowed velocity. - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setMinBounceVelocity: function (value) - { - this.body.minBounceVelocity = value; - - return this; - }, - - /** - * The bounce, or restitution, value of this body. - * A value between 0 (no rebound) and 1 (full rebound) - * - * @name Phaser.Physics.Impact.Components.Bounce#bounce - * @type {number} - * @since 3.0.0 - */ - bounce: { - - get: function () - { - return this.body.bounciness; - }, - - set: function (value) - { - this.body.bounciness = value; - } - - } - -}; - -module.exports = Bounce; - - -/***/ }), -/* 1408 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var TYPE = __webpack_require__(471); - -/** - * The Impact Check Against component. - * Should be applied as a mixin. - * - * @namespace Phaser.Physics.Impact.Components.CheckAgainst - * @since 3.0.0 - */ -var CheckAgainst = { - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.CheckAgainst#setAvsB - * @since 3.0.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setAvsB: function () - { - this.setTypeA(); - - return this.setCheckAgainstB(); - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.CheckAgainst#setBvsA - * @since 3.0.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setBvsA: function () - { - this.setTypeB(); - - return this.setCheckAgainstA(); - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.CheckAgainst#setCheckAgainstNone - * @since 3.0.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setCheckAgainstNone: function () - { - this.body.checkAgainst = TYPE.NONE; - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.CheckAgainst#setCheckAgainstA - * @since 3.0.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setCheckAgainstA: function () - { - this.body.checkAgainst = TYPE.A; - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.CheckAgainst#setCheckAgainstB - * @since 3.0.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setCheckAgainstB: function () - { - this.body.checkAgainst = TYPE.B; - - return this; - }, - - /** - * [description] - * - * @name Phaser.Physics.Impact.Components.CheckAgainst#checkAgainst - * @type {number} - * @since 3.0.0 - */ - checkAgainst: { - - get: function () - { - return this.body.checkAgainst; - }, - - set: function (value) - { - this.body.checkAgainst = value; - } - - } - -}; - -module.exports = CheckAgainst; - - -/***/ }), -/* 1409 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var COLLIDES = __webpack_require__(470); - -/** - * @callback CollideCallback - * - * @param {Phaser.Physics.Impact.Body} body - [description] - * @param {Phaser.Physics.Impact.Body} other - [description] - * @param {string} axis - [description] - */ - -/** - * The Impact Collides component. - * Should be applied as a mixin. - * - * @namespace Phaser.Physics.Impact.Components.Collides - * @since 3.0.0 - */ -var Collides = { - - _collideCallback: null, - _callbackScope: null, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Collides#setCollideCallback - * @since 3.0.0 - * - * @param {CollideCallback} callback - [description] - * @param {*} scope - [description] - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setCollideCallback: function (callback, scope) - { - this._collideCallback = callback; - - if (scope) - { - this._callbackScope = scope; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Collides#setCollidesNever - * @since 3.0.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setCollidesNever: function () - { - this.body.collides = COLLIDES.NEVER; - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Collides#setLiteCollision - * @since 3.6.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setLiteCollision: function () - { - this.body.collides = COLLIDES.LITE; - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Collides#setPassiveCollision - * @since 3.6.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setPassiveCollision: function () - { - this.body.collides = COLLIDES.PASSIVE; - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Collides#setActiveCollision - * @since 3.6.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setActiveCollision: function () - { - this.body.collides = COLLIDES.ACTIVE; - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Collides#setFixedCollision - * @since 3.6.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setFixedCollision: function () - { - this.body.collides = COLLIDES.FIXED; - - return this; - }, - - /** - * [description] - * - * @name Phaser.Physics.Impact.Components.Collides#collides - * @type {number} - * @since 3.0.0 - */ - collides: { - - get: function () - { - return this.body.collides; - }, - - set: function (value) - { - this.body.collides = value; - } - - } - -}; - -module.exports = Collides; - - -/***/ }), -/* 1410 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * The Impact Debug component. - * Should be applied as a mixin. - * - * @namespace Phaser.Physics.Impact.Components.Debug - * @since 3.0.0 - */ -var Debug = { - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Debug#setDebug - * @since 3.0.0 - * - * @param {boolean} showBody - [description] - * @param {boolean} showVelocity - [description] - * @param {number} bodyColor - [description] - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setDebug: function (showBody, showVelocity, bodyColor) - { - this.debugShowBody = showBody; - this.debugShowVelocity = showVelocity; - this.debugBodyColor = bodyColor; - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Debug#setDebugBodyColor - * @since 3.0.0 - * - * @param {number} value - [description] - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setDebugBodyColor: function (value) - { - this.body.debugBodyColor = value; - - return this; - }, - - /** - * [description] - * - * @name Phaser.Physics.Impact.Components.Debug#debugShowBody - * @type {boolean} - * @since 3.0.0 - */ - debugShowBody: { - - get: function () - { - return this.body.debugShowBody; - }, - - set: function (value) - { - this.body.debugShowBody = value; - } - - }, - - /** - * [description] - * - * @name Phaser.Physics.Impact.Components.Debug#debugShowVelocity - * @type {boolean} - * @since 3.0.0 - */ - debugShowVelocity: { - - get: function () - { - return this.body.debugShowVelocity; - }, - - set: function (value) - { - this.body.debugShowVelocity = value; - } - - }, - - /** - * [description] - * - * @name Phaser.Physics.Impact.Components.Debug#debugBodyColor - * @type {number} - * @since 3.0.0 - */ - debugBodyColor: { - - get: function () - { - return this.body.debugBodyColor; - }, - - set: function (value) - { - this.body.debugBodyColor = value; - } - - } - -}; - -module.exports = Debug; - - -/***/ }), -/* 1411 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * The Impact Friction component. - * Should be applied as a mixin. - * - * @namespace Phaser.Physics.Impact.Components.Friction - * @since 3.0.0 - */ -var Friction = { - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Friction#setFrictionX - * @since 3.0.0 - * - * @param {number} x - [description] - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setFrictionX: function (x) - { - this.friction.x = x; - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Friction#setFrictionY - * @since 3.0.0 - * - * @param {number} y - [description] - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setFrictionY: function (y) - { - this.friction.y = y; - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Friction#setFriction - * @since 3.0.0 - * - * @param {number} x - [description] - * @param {number} y - [description] - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setFriction: function (x, y) - { - this.friction.x = x; - this.friction.y = y; - - return this; - } - -}; - -module.exports = Friction; - - -/***/ }), -/* 1412 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * The Impact Gravity component. - * Should be applied as a mixin. - * - * @namespace Phaser.Physics.Impact.Components.Gravity - * @since 3.0.0 - */ -var Gravity = { - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Gravity#setGravity - * @since 3.0.0 - * - * @param {number} value - [description] - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setGravity: function (value) - { - this.body.gravityFactor = value; - - return this; - }, - - /** - * [description] - * - * @name Phaser.Physics.Impact.Components.Gravity#gravity - * @type {number} - * @since 3.0.0 - */ - gravity: { - - get: function () - { - return this.body.gravityFactor; - }, - - set: function (value) - { - this.body.gravityFactor = value; - } - - } - -}; - -module.exports = Gravity; - - -/***/ }), -/* 1413 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * The Impact Offset component. - * Should be applied as a mixin. - * - * @namespace Phaser.Physics.Impact.Components.Offset - * @since 3.0.0 - */ -var Offset = { - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.Offset#setOffset - * @since 3.0.0 - * - * @param {number} x - [description] - * @param {number} y - [description] - * @param {number} [width] - [description] - * @param {number} [height] - [description] - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setOffset: function (x, y, width, height) - { - this.body.offset.x = x; - this.body.offset.y = y; - - if (width) - { - this.setBodySize(width, height); - } - - return this; - } - -}; - -module.exports = Offset; - - -/***/ }), -/* 1414 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * The Impact Set Game Object component. - * Should be applied as a mixin. - * - * @namespace Phaser.Physics.Impact.Components.SetGameObject - * @since 3.0.0 - */ -var SetGameObject = { - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.SetGameObject#setGameObject - * @since 3.0.0 - * - * @param {Phaser.GameObjects.GameObject} gameObject - [description] - * @param {boolean} [sync=true] - [description] - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - setGameObject: function (gameObject, sync) - { - if (sync === undefined) { sync = true; } - - if (gameObject) - { - this.body.gameObject = gameObject; - - if (sync) - { - this.syncGameObject(); - } - } - else - { - this.body.gameObject = null; - } - - return this; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.Components.SetGameObject#syncGameObject - * @since 3.0.0 - * - * @return {Phaser.GameObjects.GameObject} This Game Object. - */ - syncGameObject: function () - { - var gameObject = this.body.gameObject; - - if (gameObject) - { - this.setBodySize(gameObject.width * gameObject.scaleX, gameObject.height * gameObject.scaleY); - } - - return this; - } - -}; - -module.exports = SetGameObject; - - -/***/ }), -/* 1415 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * The Impact Velocity component. - * Should be applied as a mixin. - * - * @namespace Phaser.Physics.Impact.Components.Velocity - * @since 3.0.0 - */ -var Velocity = { - - /** - * Sets the horizontal velocity of the physics body. - * - * @method Phaser.Physics.Impact.Components.Velocity#setVelocityX - * @since 3.0.0 - * - * @param {number} x - The horizontal velocity value. - * - * @return {this} This Game Object. - */ - setVelocityX: function (x) - { - this.vel.x = x; - - return this; - }, - - /** - * Sets the vertical velocity of the physics body. - * - * @method Phaser.Physics.Impact.Components.Velocity#setVelocityY - * @since 3.0.0 - * - * @param {number} y - The vertical velocity value. - * - * @return {this} This Game Object. - */ - setVelocityY: function (y) - { - this.vel.y = y; - - return this; - }, - - /** - * Sets the horizontal and vertical velocities of the physics body. - * - * @method Phaser.Physics.Impact.Components.Velocity#setVelocity - * @since 3.0.0 - * - * @param {number} x - The horizontal velocity value. - * @param {number} [y=x] - The vertical velocity value. If not given, defaults to the horizontal value. - * - * @return {this} This Game Object. - */ - setVelocity: function (x, y) - { - if (y === undefined) { y = x; } - - this.vel.x = x; - this.vel.y = y; - - return this; - }, - - /** - * Sets the maximum velocity this body can travel at. - * - * @method Phaser.Physics.Impact.Components.Velocity#setMaxVelocity - * @since 3.0.0 - * - * @param {number} x - The maximum allowed horizontal velocity. - * @param {number} [y=x] - The maximum allowed vertical velocity. If not given, defaults to the horizontal value. - * - * @return {this} This Game Object. - */ - setMaxVelocity: function (x, y) - { - if (y === undefined) { y = x; } - - this.maxVel.x = x; - this.maxVel.y = y; - - return this; - } - -}; - -module.exports = Velocity; - - -/***/ }), -/* 1416 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var Class = __webpack_require__(0); -var Factory = __webpack_require__(1381); -var GetFastValue = __webpack_require__(2); -var Merge = __webpack_require__(107); -var PluginCache = __webpack_require__(23); -var SceneEvents = __webpack_require__(19); -var World = __webpack_require__(1385); - -/** - * @classdesc - * [description] - * - * @class ImpactPhysics - * @memberof Phaser.Physics.Impact - * @constructor - * @since 3.0.0 - * - * @param {Phaser.Scene} scene - [description] - */ -var ImpactPhysics = new Class({ - - initialize: - - function ImpactPhysics (scene) - { - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactPhysics#scene - * @type {Phaser.Scene} - * @since 3.0.0 - */ - this.scene = scene; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactPhysics#systems - * @type {Phaser.Scenes.Systems} - * @since 3.0.0 - */ - this.systems = scene.sys; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactPhysics#config - * @type {object} - * @since 3.0.0 - */ - this.config = this.getConfig(); - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactPhysics#world - * @type {Phaser.Physics.Impact.World} - * @since 3.0.0 - */ - this.world; - - /** - * [description] - * - * @name Phaser.Physics.Impact.ImpactPhysics#add - * @type {Phaser.Physics.Impact.Factory} - * @since 3.0.0 - */ - this.add; - - scene.sys.events.once(SceneEvents.BOOT, this.boot, this); - scene.sys.events.on(SceneEvents.START, this.start, this); - }, - - /** - * This method is called automatically, only once, when the Scene is first created. - * Do not invoke it directly. - * - * @method Phaser.Physics.Impact.ImpactPhysics#boot - * @private - * @since 3.5.1 - */ - boot: function () - { - this.world = new World(this.scene, this.config); - this.add = new Factory(this.world); - - this.systems.events.once(SceneEvents.DESTROY, this.destroy, this); - }, - - /** - * This method is called automatically by the Scene when it is starting up. - * It is responsible for creating local systems, properties and listening for Scene events. - * Do not invoke it directly. - * - * @method Phaser.Physics.Impact.ImpactPhysics#start - * @private - * @since 3.5.0 - */ - start: function () - { - if (!this.world) - { - this.world = new World(this.scene, this.config); - this.add = new Factory(this.world); - } - - var eventEmitter = this.systems.events; - - eventEmitter.on(SceneEvents.UPDATE, this.world.update, this.world); - eventEmitter.once(SceneEvents.SHUTDOWN, this.shutdown, this); - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.ImpactPhysics#getConfig - * @since 3.0.0 - * - * @return {object} [description] - */ - getConfig: function () - { - var gameConfig = this.systems.game.config.physics; - var sceneConfig = this.systems.settings.physics; - - var config = Merge( - GetFastValue(sceneConfig, 'impact', {}), - GetFastValue(gameConfig, 'impact', {}) - ); - - return config; - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.ImpactPhysics#pause - * @since 3.0.0 - * - * @return {Phaser.Physics.Impact.World} The Impact World object. - */ - pause: function () - { - return this.world.pause(); - }, - - /** - * [description] - * - * @method Phaser.Physics.Impact.ImpactPhysics#resume - * @since 3.0.0 - * - * @return {Phaser.Physics.Impact.World} The Impact World object. - */ - resume: function () - { - return this.world.resume(); - }, - - /** - * The Scene that owns this plugin is shutting down. - * We need to kill and reset all internal properties as well as stop listening to Scene events. - * - * @method Phaser.Physics.Impact.ImpactPhysics#shutdown - * @private - * @since 3.0.0 - */ - shutdown: function () - { - var eventEmitter = this.systems.events; - - eventEmitter.off(SceneEvents.UPDATE, this.world.update, this.world); - eventEmitter.off(SceneEvents.SHUTDOWN, this.shutdown, this); - - this.add.destroy(); - this.world.destroy(); - - this.add = null; - this.world = null; - }, - - /** - * The Scene that owns this plugin is being destroyed. - * We need to shutdown and then kill off all external references. - * - * @method Phaser.Physics.Impact.ImpactPhysics#destroy - * @private - * @since 3.0.0 - */ - destroy: function () - { - this.shutdown(); - - this.scene.sys.events.off(SceneEvents.START, this.start, this); - - this.scene = null; - this.systems = null; - } - -}); - -PluginCache.register('ImpactPhysics', ImpactPhysics, 'impactPhysics'); - -module.exports = ImpactPhysics; - - -/***/ }), -/* 1417 */ -/***/ (function(module, exports, __webpack_require__) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -var COLLIDES = __webpack_require__(470); -var Events = __webpack_require__(1287); -var SeparateX = __webpack_require__(1418); -var SeparateY = __webpack_require__(1419); - -/** - * Impact Physics Solver - * - * @function Phaser.Physics.Impact.Solver - * @fires Phaser.Physics.Impact.Events#COLLIDE - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.World} world - The Impact simulation to run the solver in. - * @param {Phaser.Physics.Impact.Body} bodyA - The first body in the collision. - * @param {Phaser.Physics.Impact.Body} bodyB - The second body in the collision. - */ -var Solver = function (world, bodyA, bodyB) -{ - var weak = null; - - if (bodyA.collides === COLLIDES.LITE || bodyB.collides === COLLIDES.FIXED) - { - weak = bodyA; - } - else if (bodyB.collides === COLLIDES.LITE || bodyA.collides === COLLIDES.FIXED) - { - weak = bodyB; - } - - if (bodyA.last.x + bodyA.size.x > bodyB.last.x && bodyA.last.x < bodyB.last.x + bodyB.size.x) - { - if (bodyA.last.y < bodyB.last.y) - { - SeparateY(world, bodyA, bodyB, weak); - } - else - { - SeparateY(world, bodyB, bodyA, weak); - } - - bodyA.collideWith(bodyB, 'y'); - bodyB.collideWith(bodyA, 'y'); - - world.emit(Events.COLLIDE, bodyA, bodyB, 'y'); - } - else if (bodyA.last.y + bodyA.size.y > bodyB.last.y && bodyA.last.y < bodyB.last.y + bodyB.size.y) - { - if (bodyA.last.x < bodyB.last.x) - { - SeparateX(world, bodyA, bodyB, weak); - } - else - { - SeparateX(world, bodyB, bodyA, weak); - } - - bodyA.collideWith(bodyB, 'x'); - bodyB.collideWith(bodyA, 'x'); - - world.emit(Events.COLLIDE, bodyA, bodyB, 'x'); - } -}; - -module.exports = Solver; - - -/***/ }), -/* 1418 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * [description] - * - * @function Phaser.Physics.Impact.SeparateX - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.World} world - [description] - * @param {Phaser.Physics.Impact.Body} left - [description] - * @param {Phaser.Physics.Impact.Body} right - [description] - * @param {Phaser.Physics.Impact.Body} [weak] - [description] - */ -var SeparateX = function (world, left, right, weak) -{ - var nudge = left.pos.x + left.size.x - right.pos.x; - - // We have a weak entity, so just move this one - if (weak) - { - var strong = (left === weak) ? right : left; - - weak.vel.x = -weak.vel.x * weak.bounciness + strong.vel.x; - - var resWeak = world.collisionMap.trace(weak.pos.x, weak.pos.y, weak === left ? -nudge : nudge, 0, weak.size.x, weak.size.y); - - weak.pos.x = resWeak.pos.x; - } - else - { - var v2 = (left.vel.x - right.vel.x) / 2; - - left.vel.x = -v2; - right.vel.x = v2; - - var resLeft = world.collisionMap.trace(left.pos.x, left.pos.y, -nudge / 2, 0, left.size.x, left.size.y); - - left.pos.x = Math.floor(resLeft.pos.x); - - var resRight = world.collisionMap.trace(right.pos.x, right.pos.y, nudge / 2, 0, right.size.x, right.size.y); - - right.pos.x = Math.ceil(resRight.pos.x); - } -}; - -module.exports = SeparateX; - - -/***/ }), -/* 1419 */ -/***/ (function(module, exports) { - -/** - * @author Richard Davey - * @copyright 2020 Photon Storm Ltd. - * @license {@link https://opensource.org/licenses/MIT|MIT License} - */ - -/** - * [description] - * - * @function Phaser.Physics.Impact.SeparateY - * @since 3.0.0 - * - * @param {Phaser.Physics.Impact.World} world - [description] - * @param {Phaser.Physics.Impact.Body} top - [description] - * @param {Phaser.Physics.Impact.Body} bottom - [description] - * @param {Phaser.Physics.Impact.Body} [weak] - [description] - */ -var SeparateY = function (world, top, bottom, weak) -{ - var nudge = (top.pos.y + top.size.y - bottom.pos.y); - var nudgeX; - var resTop; - - if (weak) - { - var strong = (top === weak) ? bottom : top; - - weak.vel.y = -weak.vel.y * weak.bounciness + strong.vel.y; - - // Riding on a platform? - nudgeX = 0; - - if (weak === top && Math.abs(weak.vel.y - strong.vel.y) < weak.minBounceVelocity) - { - weak.standing = true; - nudgeX = strong.vel.x * world.delta; - } - - var resWeak = world.collisionMap.trace(weak.pos.x, weak.pos.y, nudgeX, weak === top ? -nudge : nudge, weak.size.x, weak.size.y); - - weak.pos.y = resWeak.pos.y; - weak.pos.x = resWeak.pos.x; - } - else if (world.gravity && (bottom.standing || top.vel.y > 0)) - { - resTop = world.collisionMap.trace(top.pos.x, top.pos.y, 0, -(top.pos.y + top.size.y - bottom.pos.y), top.size.x, top.size.y); - - top.pos.y = resTop.pos.y; - - if (top.bounciness > 0 && top.vel.y > top.minBounceVelocity) - { - top.vel.y *= -top.bounciness; - } - else - { - top.standing = true; - top.vel.y = 0; - } - } - else - { - var v2 = (top.vel.y - bottom.vel.y) / 2; - - top.vel.y = -v2; - bottom.vel.y = v2; - - nudgeX = bottom.vel.x * world.delta; - - resTop = world.collisionMap.trace(top.pos.x, top.pos.y, nudgeX, -nudge / 2, top.size.x, top.size.y); - - top.pos.y = resTop.pos.y; - - var resBottom = world.collisionMap.trace(bottom.pos.x, bottom.pos.y, 0, nudge / 2, bottom.size.x, bottom.size.y); - - bottom.pos.y = resBottom.pos.y; - } -}; - -module.exports = SeparateY; - - -/***/ }), -/* 1420 */ +/* 1386 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -197725,23 +193270,23 @@ module.exports = SeparateY; module.exports = { - BodyBounds: __webpack_require__(1386), - Factory: __webpack_require__(1387), - Image: __webpack_require__(1389), - Matter: __webpack_require__(1295), - MatterPhysics: __webpack_require__(1452), - PolyDecomp: __webpack_require__(1388), - Sprite: __webpack_require__(1390), - TileBody: __webpack_require__(1294), - PhysicsEditorParser: __webpack_require__(1291), - PhysicsJSONParser: __webpack_require__(1292), - World: __webpack_require__(1394) + BodyBounds: __webpack_require__(1375), + Factory: __webpack_require__(1376), + Image: __webpack_require__(1378), + Matter: __webpack_require__(1292), + MatterPhysics: __webpack_require__(1418), + PolyDecomp: __webpack_require__(1377), + Sprite: __webpack_require__(1379), + TileBody: __webpack_require__(1291), + PhysicsEditorParser: __webpack_require__(1288), + PhysicsJSONParser: __webpack_require__(1289), + World: __webpack_require__(1383) }; /***/ }), -/* 1421 */ +/* 1387 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -197750,7 +193295,7 @@ module.exports = { * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Components = __webpack_require__(514); +var Components = __webpack_require__(513); var GetFastValue = __webpack_require__(2); var Vector2 = __webpack_require__(3); @@ -197867,7 +193412,7 @@ module.exports = MatterGameObject; /***/ }), -/* 1422 */ +/* 1388 */ /***/ (function(module, exports) { /** @@ -197907,7 +193452,7 @@ module.exports = Bounce; /***/ }), -/* 1423 */ +/* 1389 */ /***/ (function(module, exports) { /** @@ -198093,7 +193638,7 @@ module.exports = Collision; /***/ }), -/* 1424 */ +/* 1390 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -198249,7 +193794,7 @@ module.exports = Force; /***/ }), -/* 1425 */ +/* 1391 */ /***/ (function(module, exports) { /** @@ -198339,7 +193884,7 @@ module.exports = Friction; /***/ }), -/* 1426 */ +/* 1392 */ /***/ (function(module, exports) { /** @@ -198379,7 +193924,7 @@ module.exports = Gravity; /***/ }), -/* 1427 */ +/* 1393 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -198461,7 +194006,7 @@ module.exports = Mass; /***/ }), -/* 1428 */ +/* 1394 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -198516,7 +194061,7 @@ module.exports = Static; /***/ }), -/* 1429 */ +/* 1395 */ /***/ (function(module, exports) { /** @@ -198570,7 +194115,7 @@ module.exports = Sensor; /***/ }), -/* 1430 */ +/* 1396 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -198579,13 +194124,13 @@ module.exports = Sensor; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bodies = __webpack_require__(109); +var Bodies = __webpack_require__(106); var Body = __webpack_require__(62); -var FuzzyEquals = __webpack_require__(144); +var FuzzyEquals = __webpack_require__(141); var GetFastValue = __webpack_require__(2); -var PhysicsEditorParser = __webpack_require__(1291); -var PhysicsJSONParser = __webpack_require__(1292); -var Vertices = __webpack_require__(86); +var PhysicsEditorParser = __webpack_require__(1288); +var PhysicsJSONParser = __webpack_require__(1289); +var Vertices = __webpack_require__(85); /** * Enables a Matter-enabled Game Object to set its Body. Should be used as a mixin and not directly. @@ -198860,7 +194405,7 @@ module.exports = SetBody; /***/ }), -/* 1431 */ +/* 1397 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -198869,9 +194414,9 @@ module.exports = SetBody; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Events = __webpack_require__(1293); -var Sleeping = __webpack_require__(238); -var MatterEvents = __webpack_require__(239); +var Events = __webpack_require__(1290); +var Sleeping = __webpack_require__(236); +var MatterEvents = __webpack_require__(237); /** * Enables a Matter-enabled Game Object to be able to go to sleep. Should be used as a mixin and not directly. @@ -199014,7 +194559,7 @@ module.exports = Sleep; /***/ }), -/* 1432 */ +/* 1398 */ /***/ (function(module, exports) { /** @@ -199048,7 +194593,7 @@ module.exports = 'afteradd'; /***/ }), -/* 1433 */ +/* 1399 */ /***/ (function(module, exports) { /** @@ -199082,7 +194627,7 @@ module.exports = 'afterremove'; /***/ }), -/* 1434 */ +/* 1400 */ /***/ (function(module, exports) { /** @@ -199115,7 +194660,7 @@ module.exports = 'afterupdate'; /***/ }), -/* 1435 */ +/* 1401 */ /***/ (function(module, exports) { /** @@ -199149,7 +194694,7 @@ module.exports = 'beforeadd'; /***/ }), -/* 1436 */ +/* 1402 */ /***/ (function(module, exports) { /** @@ -199183,7 +194728,7 @@ module.exports = 'beforeremove'; /***/ }), -/* 1437 */ +/* 1403 */ /***/ (function(module, exports) { /** @@ -199216,7 +194761,7 @@ module.exports = 'beforeupdate'; /***/ }), -/* 1438 */ +/* 1404 */ /***/ (function(module, exports) { /** @@ -199253,7 +194798,7 @@ module.exports = 'collisionactive'; /***/ }), -/* 1439 */ +/* 1405 */ /***/ (function(module, exports) { /** @@ -199290,7 +194835,7 @@ module.exports = 'collisionend'; /***/ }), -/* 1440 */ +/* 1406 */ /***/ (function(module, exports) { /** @@ -199327,7 +194872,7 @@ module.exports = 'collisionstart'; /***/ }), -/* 1441 */ +/* 1407 */ /***/ (function(module, exports) { /** @@ -199354,7 +194899,7 @@ module.exports = 'dragend'; /***/ }), -/* 1442 */ +/* 1408 */ /***/ (function(module, exports) { /** @@ -199381,7 +194926,7 @@ module.exports = 'drag'; /***/ }), -/* 1443 */ +/* 1409 */ /***/ (function(module, exports) { /** @@ -199409,7 +194954,7 @@ module.exports = 'dragstart'; /***/ }), -/* 1444 */ +/* 1410 */ /***/ (function(module, exports) { /** @@ -199432,7 +194977,7 @@ module.exports = 'pause'; /***/ }), -/* 1445 */ +/* 1411 */ /***/ (function(module, exports) { /** @@ -199455,7 +195000,7 @@ module.exports = 'resume'; /***/ }), -/* 1446 */ +/* 1412 */ /***/ (function(module, exports) { /** @@ -199488,7 +195033,7 @@ module.exports = 'sleepend'; /***/ }), -/* 1447 */ +/* 1413 */ /***/ (function(module, exports) { /** @@ -199521,7 +195066,7 @@ module.exports = 'sleepstart'; /***/ }), -/* 1448 */ +/* 1414 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -199532,8 +195077,8 @@ module.exports = 'sleepstart'; var Body = __webpack_require__(62); var MATH_CONST = __webpack_require__(15); -var WrapAngle = __webpack_require__(234); -var WrapAngleDegrees = __webpack_require__(235); +var WrapAngle = __webpack_require__(232); +var WrapAngleDegrees = __webpack_require__(233); // global bitmask flag for GameObject.renderMask (used by Scale) var _FLAG = 4; // 0100 @@ -199836,7 +195381,7 @@ module.exports = Transform; /***/ }), -/* 1449 */ +/* 1415 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -199937,7 +195482,7 @@ module.exports = Velocity; /***/ }), -/* 1450 */ +/* 1416 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -199946,17 +195491,17 @@ module.exports = Velocity; * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var Bounds = __webpack_require__(102); +var Bounds = __webpack_require__(99); var Class = __webpack_require__(0); -var Composite = __webpack_require__(146); -var Constraint = __webpack_require__(218); -var Detector = __webpack_require__(515); -var Events = __webpack_require__(1293); +var Composite = __webpack_require__(143); +var Constraint = __webpack_require__(215); +var Detector = __webpack_require__(514); +var Events = __webpack_require__(1290); var InputEvents = __webpack_require__(54); -var Merge = __webpack_require__(107); -var Sleeping = __webpack_require__(238); +var Merge = __webpack_require__(121); +var Sleeping = __webpack_require__(236); var Vector2 = __webpack_require__(3); -var Vertices = __webpack_require__(86); +var Vertices = __webpack_require__(85); /** * @classdesc @@ -200325,7 +195870,7 @@ module.exports = PointerConstraint; /***/ }), -/* 1451 */ +/* 1417 */ /***/ (function(module, exports, __webpack_require__) { // @if DEBUG @@ -200338,7 +195883,7 @@ var Metrics = {}; module.exports = Metrics; -var Composite = __webpack_require__(146); +var Composite = __webpack_require__(143); var Common = __webpack_require__(37); (function() { @@ -200424,7 +195969,7 @@ var Common = __webpack_require__(37); /***/ }), -/* 1452 */ +/* 1418 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -200433,39 +195978,39 @@ var Common = __webpack_require__(37); * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var ALIGN_CONST = __webpack_require__(106); -var Axes = __webpack_require__(513); -var Bodies = __webpack_require__(109); +var ALIGN_CONST = __webpack_require__(103); +var Axes = __webpack_require__(512); +var Bodies = __webpack_require__(106); var Body = __webpack_require__(62); -var BodyBounds = __webpack_require__(1386); -var Bounds = __webpack_require__(102); +var BodyBounds = __webpack_require__(1375); +var Bounds = __webpack_require__(99); var Class = __webpack_require__(0); -var Composite = __webpack_require__(146); -var Composites = __webpack_require__(1289); -var Constraint = __webpack_require__(218); -var Detector = __webpack_require__(515); +var Composite = __webpack_require__(143); +var Composites = __webpack_require__(1286); +var Constraint = __webpack_require__(215); +var Detector = __webpack_require__(514); var DistanceBetween = __webpack_require__(53); -var Factory = __webpack_require__(1387); +var Factory = __webpack_require__(1376); var GetFastValue = __webpack_require__(2); var GetValue = __webpack_require__(6); -var Grid = __webpack_require__(1298); -var MatterAttractors = __webpack_require__(1453); -var MatterCollisionEvents = __webpack_require__(1454); -var MatterLib = __webpack_require__(1391); -var MatterWrap = __webpack_require__(1455); -var Merge = __webpack_require__(107); -var Pair = __webpack_require__(472); -var Pairs = __webpack_require__(1299); -var Plugin = __webpack_require__(1296); +var Grid = __webpack_require__(1295); +var MatterAttractors = __webpack_require__(1419); +var MatterCollisionEvents = __webpack_require__(1420); +var MatterLib = __webpack_require__(1380); +var MatterWrap = __webpack_require__(1421); +var Merge = __webpack_require__(121); +var Pair = __webpack_require__(468); +var Pairs = __webpack_require__(1296); +var Plugin = __webpack_require__(1293); var PluginCache = __webpack_require__(23); -var Query = __webpack_require__(1392); -var Resolver = __webpack_require__(1300); -var SAT = __webpack_require__(516); -var SceneEvents = __webpack_require__(19); -var Svg = __webpack_require__(1290); -var Vector = __webpack_require__(101); -var Vertices = __webpack_require__(86); -var World = __webpack_require__(1394); +var Query = __webpack_require__(1381); +var Resolver = __webpack_require__(1297); +var SAT = __webpack_require__(515); +var SceneEvents = __webpack_require__(21); +var Svg = __webpack_require__(1287); +var Vector = __webpack_require__(98); +var Vertices = __webpack_require__(85); +var World = __webpack_require__(1383); /** * @classdesc @@ -201893,10 +197438,10 @@ module.exports = MatterPhysics; /***/ }), -/* 1453 */ +/* 1419 */ /***/ (function(module, exports, __webpack_require__) { -var Matter = __webpack_require__(1295); +var Matter = __webpack_require__(1292); /** * An attractors plugin for matter.js. @@ -202035,7 +197580,7 @@ module.exports = MatterAttractors; /***/ }), -/* 1454 */ +/* 1420 */ /***/ (function(module, exports) { /** @@ -202168,10 +197713,10 @@ module.exports = MatterCollisionEvents; /***/ }), -/* 1455 */ +/* 1421 */ /***/ (function(module, exports, __webpack_require__) { -var Matter = __webpack_require__(1295); +var Matter = __webpack_require__(1292); /** * A coordinate wrapping plugin for matter.js. @@ -202350,7 +197895,7 @@ module.exports = MatterWrap; */ /***/ }), -/* 1456 */ +/* 1422 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -202369,15 +197914,15 @@ module.exports = MatterWrap; module.exports = { - Canvas: __webpack_require__(1457), - Snapshot: __webpack_require__(1458), - WebGL: __webpack_require__(1459) + Canvas: __webpack_require__(1423), + Snapshot: __webpack_require__(1424), + WebGL: __webpack_require__(1425) }; /***/ }), -/* 1457 */ +/* 1423 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -202392,15 +197937,15 @@ module.exports = { module.exports = { - CanvasRenderer: __webpack_require__(505), - GetBlendModes: __webpack_require__(507), + CanvasRenderer: __webpack_require__(504), + GetBlendModes: __webpack_require__(506), SetTransform: __webpack_require__(28) }; /***/ }), -/* 1458 */ +/* 1424 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -202415,14 +197960,14 @@ module.exports = { module.exports = { - Canvas: __webpack_require__(506), - WebGL: __webpack_require__(509) + Canvas: __webpack_require__(505), + WebGL: __webpack_require__(508) }; /***/ }), -/* 1459 */ +/* 1425 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -202437,10 +197982,10 @@ module.exports = { module.exports = { - Utils: __webpack_require__(10), - WebGLPipeline: __webpack_require__(145), - WebGLRenderer: __webpack_require__(508), - Pipelines: __webpack_require__(1460), + Utils: __webpack_require__(9), + WebGLPipeline: __webpack_require__(142), + WebGLRenderer: __webpack_require__(507), + Pipelines: __webpack_require__(1426), // Constants BYTE: 0, @@ -202453,7 +197998,7 @@ module.exports = { /***/ }), -/* 1460 */ +/* 1426 */ /***/ (function(module, exports, __webpack_require__) { /** @@ -202468,11 +198013,11 @@ module.exports = { module.exports = { - BitmapMaskPipeline: __webpack_require__(510), - ForwardDiffuseLightPipeline: __webpack_require__(511), - TextureTintPipeline: __webpack_require__(236), - TextureTintStripPipeline: __webpack_require__(512), - ModelViewProjection: __webpack_require__(237) + BitmapMaskPipeline: __webpack_require__(509), + ForwardDiffuseLightPipeline: __webpack_require__(510), + TextureTintPipeline: __webpack_require__(234), + TextureTintStripPipeline: __webpack_require__(511), + ModelViewProjection: __webpack_require__(235) }; diff --git a/dist/phaser.min.js b/dist/phaser.min.js index 35beb9a24..420259085 100644 --- a/dist/phaser.min.js +++ b/dist/phaser.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Phaser",[],e):"object"==typeof exports?exports.Phaser=e():t.Phaser=e()}(window,function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1395)}([function(t,e){function i(t,e,i){var n=i?t[e]:Object.getOwnPropertyDescriptor(t,e);return!i&&n.value&&"object"==typeof n.value&&(n=n.value),!(!n||!function(t){return!!t.get&&"function"==typeof t.get||!!t.set&&"function"==typeof t.set}(n))&&(void 0===n.enumerable&&(n.enumerable=!0),void 0===n.configurable&&(n.configurable=!0),n)}function n(t,e){var i=Object.getOwnPropertyDescriptor(t,e);return!!i&&(i.value&&"object"==typeof i.value&&(i=i.value),!1===i.configurable)}function s(t,e,s,r){for(var a in e)if(e.hasOwnProperty(a)){var h=i(e,a,s);if(!1!==h){if(n((r||t).prototype,a)){if(o.ignoreFinals)continue;throw new Error("cannot override final property '"+a+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,a,h)}else t.prototype[a]=e[a]}}function r(t,e){if(e){Array.isArray(e)||(e=[e]);for(var i=0;i0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this},transformMat3:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this},transformMat4:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[4]*i+n[12],this.y=n[1]*e+n[5]*i+n[13],this},reset:function(){return this.x=0,this.y=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0),n.LEFT=new n(-1,0),n.UP=new n(0,-1),n.DOWN=new n(0,1),n.ONE=new n(1,1),t.exports=n},function(t,e,i){var n=i(0),s=i(46),r=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=s.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=r},function(t,e,i){var n=i(0),s=i(23),r=i(19),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectFactory",o,"add"),t.exports=o},function(t,e){t.exports=function(t,e,i){if(t&&"number"!=typeof t){if(t.hasOwnProperty(e))return t[e];if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=i,o=0;o>>0},getTintAppendFloatAlpha:function(t,e){return((255&(255*e|0))<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255&(255*e|0))<<24|(255&(0|t))<<16|(255&(t>>8|0))<<8|255&(t>>16|0))>>>0},getFloatsFromUintRGB:function(t){return[(255&(t>>16|0))/255,(255&(t>>8|0))/255,(255&(0|t))/255]},getComponentCount:function(t,e){for(var i=0,n=0;n=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},function(t,e,i){var n=i(0),s=i(280),r=i(113),o=i(9),a=i(90),h=new n({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new r(this)),this},setData:function(t,e){return this.data||(this.data=new r(this)),this.data.set(t,e),this},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.input&&(this.input.enabled=!1),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},update:function(){},toJSON:function(){return s(this)},willRender:function(t){return!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return i.unshift(this.scene.sys.displayList.getIndex(t)),i},destroy:function(t){if(void 0===t&&(t=!1),this.scene&&!this.ignoreDestroy){this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this);var e=this.scene.sys;t||(e.displayList.remove(this),e.updateList.remove(this)),this.input&&(e.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),t||e.queueDepthSort(),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0,this.removeAllListeners()}}});h.RENDER_MASK=15,t.exports=h},function(t,e,i){var n=i(169),s=i(6);t.exports=function(t,e,i){var r=s(t,e,null);if(null===r)return i;if(Array.isArray(r))return n.RND.pick(r);if("object"==typeof r){if(r.hasOwnProperty("randInt"))return n.RND.integerInRange(r.randInt[0],r.randInt[1]);if(r.hasOwnProperty("randFloat"))return n.RND.realInRange(r.randFloat[0],r.randFloat[1])}else if("function"==typeof r)return r(e);return r}},function(t,e){var i={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=i},function(t,e,i){var n=i(0),s=i(23),r=i(19),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectCreator",o,"make"),t.exports=o},function(t,e,i){var n=i(7),s=function(){var t,e,i,r,o,a,h=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof h&&(c=h,h=arguments[1]||{},l=2),u===l&&(h=this,--l);l=400&&t.status<=599&&(n=!1),this.resetXHR(),this.loader.nextFile(this,n)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(r.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=s.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=s.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=s.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.cache.add(this.key,this.data),this.pendingDestroy()},pendingDestroy:function(t){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit(r.FILE_COMPLETE,e,i,t),this.loader.emit(r.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});c.createObjectURL=function(t,e,i){if("function"==typeof URL)t.src=URL.createObjectURL(e);else{var n=new FileReader;n.onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+n.result.split(",")[1]},n.onerror=t.onerror,n.readAsDataURL(e)}},c.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=c},function(t,e){t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},function(t,e){var i={},n={},s={register:function(t,e,n,s){void 0===s&&(s=!1),i[t]={plugin:e,mapping:n,custom:s}},registerCustom:function(t,e,i,s){n[t]={plugin:e,mapping:i,data:s}},hasCore:function(t){return i.hasOwnProperty(t)},hasCustom:function(t){return n.hasOwnProperty(t)},getCore:function(t){return i[t]},getCustom:function(t){return n[t]},getCustomClass:function(t){return n.hasOwnProperty(t)?n[t].plugin:null},remove:function(t){i.hasOwnProperty(t)&&delete i[t]},removeCustom:function(t){n.hasOwnProperty(t)&&delete n[t]},destroyCorePlugins:function(){for(var t in i)i.hasOwnProperty(t)&&delete i[t]},destroyCustomPlugins:function(){for(var t in n)n.hasOwnProperty(t)&&delete n[t]}};t.exports=s},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=o.width),void 0===s&&(s=o.height);var a=n(r,"isNotEmpty",!1),h=n(r,"isColliding",!1),l=n(r,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(s+=e,e=0),t+i>o.width&&(i=Math.max(o.width-t,0)),e+s>o.height&&(s=Math.max(o.height-e,0));for(var u=[],c=e;c=0;o--)t[o][e]=i+a*n,a++;return t}},function(t,e,i){var n,s,r,o=i(29),a=i(165),h=[],l=!1;t.exports={create2D:function(t,e,i){return n(t,e,i,o.CANVAS)},create:n=function(t,e,i,n,r){var u;void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=o.CANVAS),void 0===r&&(r=!1);var c=s(n);return null===c?(c={parent:t,canvas:document.createElement("canvas"),type:n},n===o.CANVAS&&h.push(c),u=c.canvas):(c.parent=t,u=c.canvas),r&&(c.parent=u),u.width=e,u.height=i,l&&n===o.CANVAS&&a.disable(u.getContext("2d")),u},createWebGL:function(t,e,i){return n(t,e,i,o.WEBGL)},disableSmoothing:function(){l=!0},enableSmoothing:function(){l=!1},first:s=function(t){if(void 0===t&&(t=o.CANVAS),t===o.WEBGL)return null;for(var e=0;e0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):n||r?s.TAU-(r>0?Math.acos(-n/this.scaleY):-Math.acos(n/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,e){var i=this.matrix;return i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5],this},scale:function(t,e){var i=this.matrix;return i[0]*=t,i[1]*=t,i[2]*=e,i[3]*=e,this},rotate:function(t){var e=Math.sin(t),i=Math.cos(t),n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3];return n[0]=s*i+o*e,n[1]=r*i+a*e,n[2]=s*-e+o*i,n[3]=r*-e+a*i,this},multiply:function(t,e){var i=this.matrix,n=t.matrix,s=i[0],r=i[1],o=i[2],a=i[3],h=i[4],l=i[5],u=n[0],c=n[1],d=n[2],f=n[3],p=n[4],g=n[5],v=void 0===e?this:e;return v.a=u*s+c*o,v.b=u*r+c*a,v.c=d*s+f*o,v.d=d*r+f*a,v.e=p*s+g*o+h,v.f=p*r+g*a+l,v},multiplyWithOffset:function(t,e,i){var n=this.matrix,s=t.matrix,r=n[0],o=n[1],a=n[2],h=n[3],l=e*r+i*a+n[4],u=e*o+i*h+n[5],c=s[0],d=s[1],f=s[2],p=s[3],g=s[4],v=s[5];return n[0]=c*r+d*a,n[1]=c*o+d*h,n[2]=f*r+p*a,n[3]=f*o+p*h,n[4]=g*r+v*a+l,n[5]=g*o+v*h+u,this},transform:function(t,e,i,n,s,r){var o=this.matrix,a=o[0],h=o[1],l=o[2],u=o[3],c=o[4],d=o[5];return o[0]=t*a+e*l,o[1]=t*h+e*u,o[2]=i*a+n*l,o[3]=i*h+n*u,o[4]=s*a+r*l+c,o[5]=s*h+r*u+d,this},transformPoint:function(t,e,i){void 0===i&&(i={x:0,y:0});var n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3],h=n[4],l=n[5];return i.x=t*s+e*o+h,i.y=t*r+e*a+l,i},invert:function(){var t=this.matrix,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=e*s-i*n;return t[0]=s/a,t[1]=-i/a,t[2]=-n/a,t[3]=e/a,t[4]=(n*o-s*r)/a,t[5]=-(e*o-i*r)/a,this},copyFrom:function(t){var e=this.matrix;return e[0]=t.a,e[1]=t.b,e[2]=t.c,e[3]=t.d,e[4]=t.e,e[5]=t.f,this},copyFromArray:function(t){var e=this.matrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],this},copyToContext:function(t){var e=this.matrix;return t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t},setToContext:function(t){var e=this.matrix;return t.setTransform(e[0],e[1],e[2],e[3],e[4],e[5]),t},copyToArray:function(t){var e=this.matrix;return void 0===t?t=[e[0],e[1],e[2],e[3],e[4],e[5]]:(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]),t},setTransform:function(t,e,i,n,s,r){var o=this.matrix;return o[0]=t,o[1]=e,o[2]=i,o[3]=n,o[4]=s,o[5]=r,this},decomposeMatrix:function(){var t=this.decomposedMatrix,e=this.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(t.translateX=e[4],t.translateY=e[5],i||n){var a=Math.sqrt(i*i+n*n);t.rotation=n>0?Math.acos(i/a):-Math.acos(i/a),t.scaleX=a,t.scaleY=o/a}else if(s||r){var h=Math.sqrt(s*s+r*r);t.rotation=.5*Math.PI-(r>0?Math.acos(-s/h):-Math.acos(s/h)),t.scaleX=o/h,t.scaleY=h}else t.rotation=0,t.scaleX=0,t.scaleY=0;return t},applyITRS:function(t,e,i,n,s){var r=this.matrix,o=Math.sin(i),a=Math.cos(i);return r[4]=t,r[5]=e,r[0]=a*n,r[1]=o*n,r[2]=-o*s,r[3]=a*s,this},applyInverse:function(t,e,i){void 0===i&&(i=new r);var n=this.matrix,s=n[0],o=n[1],a=n[2],h=n[3],l=n[4],u=n[5],c=1/(s*h+a*-o);return i.x=h*c*t+-a*c*e+(u*a-l*h)*c,i.y=s*c*e+-o*c*t+(-u*s+l*o)*c,i},getX:function(t,e){return t*this.a+e*this.c+this.e},getY:function(t,e){return t*this.b+e*this.d+this.f},getCSSMatrix:function(){var t=this.matrix;return"matrix("+t[0]+","+t[1]+","+t[2]+","+t[3]+","+t[4]+","+t[5]+")"},destroy:function(){this.matrix=null,this.decomposedMatrix=null}});t.exports=o},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(56),a=new n({Extends:r,Mixins:[s.AlphaSingle,s.BlendMode,s.ComputedSize,s.Depth,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Transform,s.Visible],initialize:function(t,e,i){void 0===e&&(e="Shape"),r.call(this,t,e),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.initPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]}});t.exports=a},function(t,e){t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},function(t,e,i){var n=i(0),s=i(163),r=i(294),o=i(164),a=i(295),h=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,n)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(t,e,i,n,s){return void 0===n&&(n=255),void 0===s&&(s=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=n,this._locked=!1,this.update(s)},setGLTo:function(t,e,i,n){return void 0===n&&(n=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=n,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return o(t,e,i,this)},update:function(t){if(void 0===t&&(t=!1),this._locked)return this;var e=this.r,i=this.g,n=this.b,o=this.a;return this._color=s(e,i,n),this._color32=r(e,i,n,o),this._rgba="rgba("+e+","+i+","+n+","+o/255+")",t&&a(e,i,n,this),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return a(t,e,i,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),n=Math.floor(t+Math.random()*(e-t)),s=Math.floor(t+Math.random()*(e-t));return this.setTo(i,n,s)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t));return this.setTo(i,i,i)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,n=this.b;return e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),n=Math.max(0,Math.min(255,n-Math.round(-t/100*255))),this.setTo(e,i,n)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,o(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,o(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,o(this._h,this._s,t,this)}}});t.exports=h},function(t,e){t.exports=function(t,e,i,n,s,r){var o;void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=1);var a=0,h=t.length;if(1===r)for(o=s;o=0;o--)t[o][e]+=i+a*n,a++;return t}},function(t,e,i){var n=i(15);t.exports=function(t){return t*n.DEG_TO_RAD}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.fillColor,r=n||e.fillAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.fillStyle="rgba("+o+","+a+","+h+","+r+")"}},function(t,e){var i={};t.exports=i,function(){i._nextId=0,i._seed=0,i._nowStartTime=+new Date,i.extend=function(t,e){var n,s;"boolean"==typeof e?(n=2,s=e):(n=1,s=!0);for(var r=n;r0;e--){var n=Math.floor(i.random()*(e+1)),s=t[e];t[e]=t[n],t[n]=s}return t},i.choose=function(t){return t[Math.floor(i.random()*t.length)]},i.isElement=function(t){return"undefined"!=typeof HTMLElement?t instanceof HTMLElement:!!(t&&t.nodeType&&t.nodeName)},i.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i.isFunction=function(t){return"function"==typeof t},i.isPlainObject=function(t){return"object"==typeof t&&t.constructor===Object},i.isString=function(t){return"[object String]"===toString.call(t)},i.clamp=function(t,e,i){return ti?i:t},i.sign=function(t){return t<0?-1:1},i.now=function(){if("undefined"!=typeof window&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return new Date-i._nowStartTime},i.random=function(e,i){return e=void 0!==e?e:0,i=void 0!==i?i:1,e+t()*(i-e)};var t=function(){return i._seed=(9301*i._seed+49297)%233280,i._seed/233280};i.colorToNumber=function(t){return 3==(t=t.replace("#","")).length&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),parseInt(t,16)},i.logLevel=1,i.log=function(){console&&i.logLevel>0&&i.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.info=function(){console&&i.logLevel>0&&i.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.warn=function(){console&&i.logLevel>0&&i.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.nextId=function(){return i._nextId++},i.indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0;i=e&&t.y<=i&&t.y+t.height>=i}},function(t,e,i){t.exports={DESTROY:i(647),FADE_IN_COMPLETE:i(648),FADE_IN_START:i(649),FADE_OUT_COMPLETE:i(650),FADE_OUT_START:i(651),FLASH_COMPLETE:i(652),FLASH_START:i(653),PAN_COMPLETE:i(654),PAN_START:i(655),POST_RENDER:i(656),PRE_RENDER:i(657),SHAKE_COMPLETE:i(658),SHAKE_START:i(659),ZOOM_COMPLETE:i(660),ZOOM_START:i(661)}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.strokeColor,r=n||e.strokeAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.strokeStyle="rgba("+o+","+a+","+h+","+r+")",t.lineWidth=e.lineWidth}},function(t,e){t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},function(t,e,i){var n=i(138),s=i(24);t.exports=function(t,e,i,r,o){for(var a=null,h=null,l=null,u=null,c=s(t,e,i,r,null,o),d=0;d0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},function(t,e,i){var n=i(0),s=i(274),r=i(151),o=i(46),a=i(152),h=i(3),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=n},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return r(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this},getPointA:function(t){return void 0===t&&(t=new h),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new h),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=l},function(t,e){t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},function(t,e){t.exports=function(t,e,i){var n=i-e;return e+((t-e)%n+n)%n}},function(t,e,i){t.exports={COMPLETE:i(885),DECODED:i(886),DECODED_ALL:i(887),DESTROY:i(888),DETUNE:i(889),GLOBAL_DETUNE:i(890),GLOBAL_MUTE:i(891),GLOBAL_RATE:i(892),GLOBAL_VOLUME:i(893),LOOP:i(894),LOOPED:i(895),MUTE:i(896),PAUSE_ALL:i(897),PAUSE:i(898),PLAY:i(899),RATE:i(900),RESUME_ALL:i(901),RESUME:i(902),SEEK:i(903),STOP_ALL:i(904),STOP:i(905),UNLOCKED:i(906),VOLUME:i(907)}},function(t,e,i){var n=i(0),s=i(20),r=i(21),o=i(8),a=i(2),h=i(6),l=i(7),u=new n({Extends:r,initialize:function(t,e,i,n,o){var u="json";if(l(e)){var c=e;e=a(c,"key"),i=a(c,"url"),n=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"dataKey",o)}var d={type:"json",cache:t.cacheManager.json,extension:u,responseType:"text",key:e,url:i,xhrSettings:n,config:o};r.call(this,t,d),l(i)&&(this.data=o?h(i,o):i,this.state=s.FILE_POPULATED)},onProcess:function(){if(this.state!==s.FILE_POPULATED){this.state=s.FILE_PROCESSING;var t=JSON.parse(this.xhrLoader.responseText),e=this.config;this.data="string"==typeof e?h(t,e,t):t}this.onProcessComplete()}});o.register("json",function(t,e,i,n){if(Array.isArray(t))for(var s=0;s0&&r.rotateAbout(o.position,i,t.position,o.position)}},n.setVelocity=function(t,e){t.positionPrev.x=t.position.x-e.x,t.positionPrev.y=t.position.y-e.y,t.velocity.x=e.x,t.velocity.y=e.y,t.speed=r.magnitude(t.velocity)},n.setAngularVelocity=function(t,e){t.anglePrev=t.angle-e,t.angularVelocity=e,t.angularSpeed=Math.abs(t.angularVelocity)},n.translate=function(t,e){n.setPosition(t,r.add(t.position,e))},n.rotate=function(t,e,i){if(i){var s=Math.cos(e),r=Math.sin(e),o=t.position.x-i.x,a=t.position.y-i.y;n.setPosition(t,{x:i.x+(o*s-a*r),y:i.y+(o*r+a*s)}),n.setAngle(t,t.angle+e)}else n.setAngle(t,t.angle+e)},n.scale=function(t,e,i,r){var o=0,a=0;r=r||t.position;for(var u=0;u0&&(o+=c.area,a+=c.inertia),c.position.x=r.x+(c.position.x-r.x)*e,c.position.y=r.y+(c.position.y-r.y)*i,h.update(c.bounds,c.vertices,t.velocity)}t.parts.length>1&&(t.area=o,t.isStatic||(n.setMass(t,t.density*o),n.setInertia(t,a))),t.circleRadius&&(e===i?t.circleRadius*=e:t.circleRadius=null)},n.update=function(t,e,i,n){var o=Math.pow(e*i*t.timeScale,2),a=1-t.frictionAir*i*t.timeScale,u=t.position.x-t.positionPrev.x,c=t.position.y-t.positionPrev.y;t.velocity.x=u*a*n+t.force.x/t.mass*o,t.velocity.y=c*a*n+t.force.y/t.mass*o,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.position.x+=t.velocity.x,t.position.y+=t.velocity.y,t.angularVelocity=(t.angle-t.anglePrev)*a*n+t.torque/t.inertia*o,t.anglePrev=t.angle,t.angle+=t.angularVelocity,t.speed=r.magnitude(t.velocity),t.angularSpeed=Math.abs(t.angularVelocity);for(var d=0;d0&&(f.position.x+=t.velocity.x,f.position.y+=t.velocity.y),0!==t.angularVelocity&&(s.rotate(f.vertices,t.angularVelocity,t.position),l.rotate(f.axes,t.angularVelocity),d>0&&r.rotateAbout(f.position,t.angularVelocity,t.position,f.position)),h.update(f.bounds,f.vertices,t.velocity)}},n.applyForce=function(t,e,i){t.force.x+=i.x,t.force.y+=i.y;var n=e.x-t.position.x,s=e.y-t.position.y;t.torque+=n*i.y-s*i.x},n._totalProperties=function(t){for(var e={mass:0,area:0,inertia:0,centre:{x:0,y:0}},i=1===t.parts.length?0:1;i80*i){n=h=t[0],a=l=t[1];for(var T=i;Th&&(h=u),f>l&&(l=f);g=0!==(g=Math.max(h-n,l-a))?1/g:0}return o(m,x,i,n,a,g),x}function s(t,e,i,n,s){var r,o;if(s===A(t,e,i,n)>0)for(r=e;r=e;r-=n)o=b(r,t[r],t[r+1],o);return o&&m(o,o.next)&&(E(o),o=o.next),o}function r(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!m(n,n.next)&&0!==y(n.prev,n,n.next))n=n.next;else{if(E(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function o(t,e,i,n,s,c,d){if(t){!d&&c&&function(t,e,i,n){var s=t;do{null===s.z&&(s.z=f(s.x,s.y,e,i,n)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next}while(s!==t);s.prevZ.nextZ=null,s.prevZ=null,function(t){var e,i,n,s,r,o,a,h,l=1;do{for(i=t,t=null,r=null,o=0;i;){for(o++,n=i,a=0,e=0;e0||h>0&&n;)0!==a&&(0===h||!n||i.z<=n.z)?(s=i,i=i.nextZ,a--):(s=n,n=n.nextZ,h--),r?r.nextZ=s:t=s,s.prevZ=r,r=s;i=n}r.nextZ=null,l*=2}while(o>1)}(s)}(t,n,s,c);for(var p,g,v=t;t.prev!==t.next;)if(p=t.prev,g=t.next,c?h(t,n,s,c):a(t))e.push(p.i/i),e.push(t.i/i),e.push(g.i/i),E(t),t=g.next,v=g.next;else if((t=g)===v){d?1===d?o(t=l(t,e,i),e,i,n,s,c,2):2===d&&u(t,e,i,n,s,c):o(r(t),e,i,n,s,c,1);break}}}function a(t){var e=t.prev,i=t,n=t.next;if(y(e,i,n)>=0)return!1;for(var s=t.next.next;s!==t.prev;){if(g(e.x,e.y,i.x,i.y,n.x,n.y,s.x,s.y)&&y(s.prev,s,s.next)>=0)return!1;s=s.next}return!0}function h(t,e,i,n){var s=t.prev,r=t,o=t.next;if(y(s,r,o)>=0)return!1;for(var a=s.xr.x?s.x>o.x?s.x:o.x:r.x>o.x?r.x:o.x,u=s.y>r.y?s.y>o.y?s.y:o.y:r.y>o.y?r.y:o.y,c=f(a,h,e,i,n),d=f(l,u,e,i,n),p=t.prevZ,v=t.nextZ;p&&p.z>=c&&v&&v.z<=d;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&y(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;p&&p.z>=c;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;v&&v.z<=d;){if(v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&y(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function l(t,e,i){var n=t;do{var s=n.prev,r=n.next.next;!m(s,r)&&x(s,n,n.next,r)&&T(s,r)&&T(r,s)&&(e.push(s.i/i),e.push(n.i/i),e.push(r.i/i),E(n),E(n.next),n=t=r),n=n.next}while(n!==t);return n}function u(t,e,i,n,s,a){var h=t;do{for(var l=h.next.next;l!==h.prev;){if(h.i!==l.i&&v(h,l)){var u=w(h,l);return h=r(h,h.next),u=r(u,u.next),o(h,e,i,n,s,a),void o(u,e,i,n,s,a)}l=l.next}h=h.next}while(h!==t)}function c(t,e){return t.x-e.x}function d(t,e){if(e=function(t,e){var i,n=e,s=t.x,r=t.y,o=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){var a=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=s&&a>o){if(o=a,a===s){if(r===n.y)return n;if(r===n.next.y)return n.next}i=n.x=n.x&&n.x>=u&&s!==n.x&&g(ri.x)&&T(n,t)&&(i=n,d=h),n=n.next;return i}(t,e)){var i=w(e,t);r(i,i.next)}}function f(t,e,i,n,s){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*s)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*s)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,i=t;do{e.x=0&&(t-o)*(n-a)-(i-o)*(e-a)>=0&&(i-o)*(r-a)-(s-o)*(n-a)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&x(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&T(t,e)&&T(e,t)&&function(t,e){var i=t,n=!1,s=(t.x+e.x)/2,r=(t.y+e.y)/2;do{i.y>r!=i.next.y>r&&i.next.y!==i.y&&s<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)}function y(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function m(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,i,n){return!!(m(t,e)&&m(i,n)||m(t,n)&&m(i,e))||y(t,e,i)>0!=y(t,e,n)>0&&y(i,n,t)>0!=y(i,n,e)>0}function T(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function w(t,e){var i=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),s=t.next,r=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,n.next=i,i.prev=n,r.next=n,n.prev=r,n}function b(t,e,i,n){var s=new S(t,e,i);return n?(s.next=n.next,s.prev=n,n.next.prev=s,n.next=s):(s.prev=s,s.next=s),s}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function S(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function A(t,e,i,n){for(var s=0,r=e,o=i-n;r0&&(n+=t[s-1].length,i.holes.push(n))}return i}},function(t,e){t.exports=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i]=t[i].slice(0):e[i]=t[i];return e}},function(t,e){t.exports=function(t,e,i,n){var s=t.length;if(e<0||e>s||e>=i||i>s||e+i>s){if(n)throw new Error("Range Error: Values outside acceptable range");return!1}return!0}},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(963),a=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Size,s.TextureCrop,s.Tint,s.Transform,s.Visible,o],initialize:function(t,e,i,n,o){r.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s.Animation(this),this.setTexture(n,o),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline()},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e,i){return this.anims.play(t,e,i),this},toJSON:function(){return s.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=a},function(t,e,i){var n=i(167),s=i(180);t.exports=function(t,e){var i=n.Power0;if("string"==typeof t)if(n.hasOwnProperty(t))i=n[t];else{var r="";t.indexOf(".")&&("in"===(r=t.substr(t.indexOf(".")+1)).toLowerCase()?r="easeIn":"out"===r.toLowerCase()?r="easeOut":"inout"===r.toLowerCase()&&(r="easeInOut")),t=s(t.substr(0,t.indexOf(".")+1)+r),n.hasOwnProperty(t)&&(i=n[t])}else"function"==typeof t?i=t:Array.isArray(t)&&t.length;if(!e)return i;var o=e.slice(0);return o.unshift(0),function(t){return o[0]=t,i.apply(this,o)}}},function(t,e,i){var n=i(10);t.exports=function(t,e,i,s,r){var o=t.strokeTint,a=n.getTintAppendFloatAlphaAndSwap(e.strokeColor,e.strokeAlpha*i);o.TL=a,o.TR=a,o.BL=a,o.BR=a;var h=e.pathData,l=h.length-1,u=e.lineWidth,c=u/2,d=h[0]-s,f=h[1]-r;e.closePath||(l-=2);for(var p=2;p=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}}});t.exports=u},function(t,e,i){var n=i(0),s=i(20),r=i(21),o=i(8),a=i(2),h=i(7),l=new n({Extends:r,initialize:function t(e,i,n,s,o){var l,u="png";if(h(i)){var c=i;i=a(c,"key"),n=a(c,"url"),l=a(c,"normalMap"),s=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"frameConfig")}Array.isArray(n)&&(l=n[1],n=n[0]);var d={type:"image",cache:e.textureManager,extension:u,responseType:"blob",key:i,url:n,xhrSettings:s,config:o};if(r.call(this,e,d),l){var f=new t(e,this.key,l,s,o);f.type="normalMap",this.setLink(f),e.addFile(f)}},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){r.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(t.data),t.onProcessError()},r.createObjectURL(this.data,this.xhrLoader.response,"image/png")},addToCache:function(){var t,e=this.linkFile;e&&e.state===s.FILE_COMPLETE?(t="image"===this.type?this.cache.addImage(this.key,this.data,e.data):this.cache.addImage(e.key,e.data,this.data),this.pendingDestroy(t),e.pendingDestroy(t)):e||(t=this.cache.addImage(this.key,this.data),this.pendingDestroy(t))}});o.register("image",function(t,e,i){if(Array.isArray(t))for(var n=0;nthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=t.properties,this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldX(this.x,t):this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldY(this.y,t)-(this.height-this.baseHeight)*e.scaleY:this.y*this.baseHeight-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return void 0===e&&(e=new r),e.x=this.getLeft(),e.y=this.getTop(),e.width=this.getRight()-e.x,e.height=this.getBottom()-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},intersects:function(t,e,i,n){return!(i<=this.pixelX||n<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){(void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,n,s){(void 0===e&&(e=t),void 0===i&&(i=t),void 0===n&&(n=t),void 0===s&&(s=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=n,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=n,s)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,n){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==n&&(this.baseHeight=n),this.updatePixelXY(),this},updatePixelXY:function(){return"orthogonal"===this.layer.orientation?(this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight):"isometric"===this.layer.orientation&&(this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5),this},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.layer.tilemapLayer;if(t){var e=t.gidMap[this.index];if(e)return e}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=o},function(t,e){t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},function(t,e){t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},function(t,e){t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},function(t,e){t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},function(t,e){t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,n=t[e],s=e;si&&(e=i/2);var n=Math.max(1,Math.round(i/e));return s(this.getSpacedPoints(n),t)},getDistancePoints:function(t){var e=this.getLength(),i=Math.max(1,e/t);return this.getSpacedPoints(i)},getEndPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(1,t)},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],n=this.getPoint(0,this._tmpVec2A),s=0;i.push(0);for(var r=1;r<=t;r++)s+=(e=this.getPoint(r/t,this._tmpVec2B)).distance(n),i.push(s),n.copy(e);return this.cacheArcLengths=i,i},getPointAt:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++)i.push(this.getPoint(n/t));return i},getRandomPoint:function(t){return void 0===t&&(t=new o),this.getPoint(Math.random(),t)},getSpacedPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++){var s=this.getUtoTmapping(n/t,null,t);i.push(this.getPoint(s))}return i},getStartPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(0,t)},getTangent:function(t,e){void 0===e&&(e=new o);var i=t-1e-4,n=t+1e-4;return i<0&&(i=0),n>1&&(n=1),this.getPoint(i,this._tmpVec2A),this.getPoint(n,e),e.subtract(this._tmpVec2A).normalize()},getTangentAt:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)},getTFromDistance:function(t,e){return t<=0?0:this.getUtoTmapping(0,t,e)},getUtoTmapping:function(t,e,i){var n,s=this.getLengths(i),r=0,o=s.length;n=e?Math.min(e,s[o-1]):t*s[o-1];for(var a,h=0,l=o-1;h<=l;)if((a=s[r=Math.floor(h+(l-h)/2)]-n)<0)h=r+1;else{if(!(a>0)){l=r;break}l=r-1}if(s[r=l]===n)return r/(o-1);var u=s[r];return(r+(n-u)/(s[r+1]-u))/(o-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});t.exports=a},function(t,e,i){t.exports={ADD:i(864),COMPLETE:i(865),FILE_COMPLETE:i(866),FILE_KEY_COMPLETE:i(867),FILE_LOAD_ERROR:i(868),FILE_LOAD:i(869),FILE_PROGRESS:i(870),POST_PROCESS:i(871),PROGRESS:i(872),START:i(873)}},function(t,e){t.exports=function(t,e,i){var n=t.x3-t.x1,s=t.y3-t.y1,r=t.x2-t.x1,o=t.y2-t.y1,a=e-t.x1,h=i-t.y1,l=n*n+s*s,u=n*r+s*o,c=n*a+s*h,d=r*r+o*o,f=r*a+o*h,p=l*d-u*u,g=0===p?0:1/p,v=(d*c-u*f)*g,y=(l*f-u*c)*g;return v>=0&&y>=0&&v+y<1}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.x1,r=t.y1,o=t.x2,a=t.y2,h=e.x1,l=e.y1,u=e.x2,c=e.y2,d=(u-h)*(r-l)-(c-l)*(s-h),f=(o-s)*(r-l)-(a-r)*(s-h),p=(c-l)*(o-s)-(u-h)*(a-r);if(0===p)return!1;var g=d/p,v=f/p;return g>=0&&g<=1&&v>=0&&v<=1&&(i.x=s+g*(o-s),i.y=r+g*(a-r),!0)}},function(t,e){t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},function(t,e,i){var n={};t.exports=n;var s=i(101),r=i(37);n.create=function(t,e){for(var i=[],n=0;n0)return!1}return!0},n.scale=function(t,e,i,r){if(1===e&&1===i)return t;var o,a;r=r||n.centre(t);for(var h=0;h=0?h-1:t.length-1],u=t[h],c=t[(h+1)%t.length],d=e[h0&&(r|=2),3===r)return!1;return 0!==r||null},n.hull=function(t){var e,i,n=[],r=[];for((t=t.slice(0)).sort(function(t,e){var i=t.x-e.x;return 0!==i?i:t.y-e.y}),i=0;i=2&&s.cross3(r[r.length-2],r[r.length-1],e)<=0;)r.pop();r.push(e)}for(i=t.length-1;i>=0;i-=1){for(e=t[i];n.length>=2&&s.cross3(n[n.length-2],n[n.length-1],e)<=0;)n.pop();n.push(e)}return n.pop(),r.pop(),n.concat(r)}},function(t,e,i){var n=i(22);t.exports=function(t,e,i){return(i-e)*(t=n(t,0,1))}},function(t,e){t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},function(t,e){t.exports={CREATED:0,INIT:1,DELAY:2,OFFSET_DELAY:3,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING_ADD:20,PAUSED:21,LOOP_DELAY:22,ACTIVE:23,COMPLETE_DELAY:24,PENDING_REMOVE:25,REMOVED:26}},function(t,e,i){t.exports={DESTROY:i(582),VIDEO_COMPLETE:i(583),VIDEO_CREATED:i(584),VIDEO_ERROR:i(585),VIDEO_LOOP:i(586),VIDEO_PLAY:i(587),VIDEO_SEEKED:i(588),VIDEO_SEEKING:i(589),VIDEO_STOP:i(590),VIDEO_TIMEOUT:i(591),VIDEO_UNLOCKED:i(592)}},function(t,e,i){var n=i(0),s=i(11),r=i(35),o=i(9),a=i(48),h=i(12),l=i(30),u=i(162),c=i(3),d=new n({Extends:o,Mixins:[s.Alpha,s.Visible],initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.resolution=1,this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=t,this._y=e,this._cx=0,this._cy=0,this._cw=0,this._ch=0,this._width=i,this._height=n,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoom=1,this._rotation=0,this.matrix=new l,this.transparent=!0,this.backgroundColor=u("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new c(i/2,n/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new c);var n=.5*this.width,s=.5*this.height;return i.x=t-n,i.y=e-s,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){if(this.useBounds){var t=this._bounds,e=.5*this.width,i=.5*this.height;this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i}return this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(!o)return t;var a=e[4],h=e[5],l=this.scrollX,u=this.scrollY,c=this.width,d=this.height,f=this.culledObjects,p=t.length;o=1/o,f.length=0;for(var g=0;gC&&wA&&b<_&&f.push(v)}else f.push(v)}return f},getWorldPoint:function(t,e,i){void 0===i&&(i=new c);var n=this.matrix.matrix,s=n[0],r=n[1],o=n[2],a=n[3],h=n[4],l=n[5],u=s*a-r*o;if(!u)return i.x=t,i.y=e,i;var d=a*(u=1/u),f=-r*u,p=-o*u,g=s*u,v=(o*l-a*h)*u,y=(r*h-s*l)*u,m=Math.cos(this.rotation),x=Math.sin(this.rotation),T=this.zoom,w=this.resolution,b=this.scrollX,E=this.scrollY,S=t+(b*m-E*x)*T,A=e+(b*x+E*m)*T;return i.x=(S*d+A*p)*w+v,i.y=(S*f+A*g)*w+y,i},ignore:function(t){var e=this.id;Array.isArray(t)||(t=[t]);for(var i=0;is&&(t=s),t},clampY:function(t){var e=this._bounds,i=this.displayHeight,n=e.y+(i-this.height)/2,s=Math.max(n,n+e.height-i);return ts&&(t=s),t},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(t){return void 0===t&&(t=0),this.rotation=r(t),this},setBackgroundColor:function(t){return void 0===t&&(t="rgba(0,0,0,0)"),this.backgroundColor=u(t),this.transparent=0===this.backgroundColor.alpha,this},setBounds:function(t,e,i,n,s){return void 0===s&&(s=!1),this._bounds.setTo(t,e,i,n),this.dirty=!0,this.useBounds=!0,s?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(t){void 0===t&&(t=new h);var e=this._bounds;return t.setTo(e.x,e.y,e.width,e.height),t},setName:function(t){return void 0===t&&(t=""),this.name=t,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setRoundPixels:function(t){return this.roundPixels=t,this},setScene:function(t){this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=t;var e=t.sys;this.sceneManager=e.game.scene,this.scaleManager=e.scale,this.cameraManager=e.cameras;var i=this.scaleManager.resolution;return this.resolution=i,this._cx=this._x*i,this._cy=this._y*i,this._cw=this._width*i,this._ch=this._height*i,this.updateSystem(),this},setScroll:function(t,e){return void 0===e&&(e=t),this.scrollX=t,this.scrollY=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},setViewport:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setZoom:function(t){return void 0===t&&(t=1),0===t&&(t=.001),this.zoom=t,this},setMask:function(t,e){return void 0===e&&(e=!0),this.mask=t,this._maskCamera=e?this.cameraManager.default:this,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var t={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(t.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),t},update:function(){},updateSystem:function(){if(this.scaleManager){var t=0!==this._x||0!==this._y||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,e=this.sceneManager;t&&!this._customViewport?e.customViewports++:!t&&this._customViewport&&e.customViewports--,this.dirty=!0,this._customViewport=t}},destroy:function(){this.emit(a.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(t){this._x=t,this._cx=t*this.resolution,this.updateSystem()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._cy=t*this.resolution,this.updateSystem()}},width:{get:function(){return this._width},set:function(t){this._width=t,this._cw=t*this.resolution,this.updateSystem()}},height:{get:function(){return this._height},set:function(t){this._height=t,this._ch=t*this.resolution,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(t){this._scrollX=t,this.dirty=!0}},scrollY:{get:function(){return this._scrollY},set:function(t){this._scrollY=t,this.dirty=!0}},zoom:{get:function(){return this._zoom},set:function(t){this._zoom=t,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=t,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoom}},displayHeight:{get:function(){return this.height/this.zoom}}});t.exports=d},function(t,e,i){t.exports={ENTER_FULLSCREEN:i(700),FULLSCREEN_FAILED:i(701),FULLSCREEN_UNSUPPORTED:i(702),LEAVE_FULLSCREEN:i(703),ORIENTATION_CHANGE:i(704),RESIZE:i(705)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=i(0),s=i(22),r=i(17),o=new n({initialize:function(t,e,i,n,s,r,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.glTexture=this.source.glTexture,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0}},this.setSize(r,o,n,s)},setSize:function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0),this.cutX=i,this.cutY=n,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var s=this.data,r=s.cut;r.x=i,r.y=n,r.w=t,r.h=e,r.r=i+t,r.b=n+e,s.sourceSize.w=t,s.sourceSize.h=e,s.spriteSourceSize.w=t,s.spriteSourceSize.h=e,s.radius=.5*Math.sqrt(t*t+e*e);var o=s.drawImage;return o.x=i,o.y=n,o.width=t,o.height=e,this.updateUVs()},setTrim:function(t,e,i,n,s,r){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=n,a.w=s,a.h=r,a.r=i+s,a.b=n+r,this.x=i,this.y=n,this.width=s,this.height=r,this.halfWidth=.5*s,this.halfHeight=.5*r,this.centerX=Math.floor(s/2),this.centerY=Math.floor(r/2),this.updateUVs()},setCropUVs:function(t,e,i,n,r,o,a){var h=this.cutX,l=this.cutY,u=this.cutWidth,c=this.cutHeight,d=this.realWidth,f=this.realHeight,p=h+(e=s(e,0,d)),g=l+(i=s(i,0,f)),v=n=s(n,0,d-e),y=r=s(r,0,f-i),m=this.data;if(m.trim){var x=m.spriteSourceSize,T=e+(n=s(n,0,u-e)),w=i+(r=s(r,0,c-i));if(!(x.rT||x.y>w)){var b=Math.max(x.x,e),E=Math.max(x.y,i),S=Math.min(x.r,T)-b,A=Math.min(x.b,w)-E;v=S,y=A,p=o?h+(u-(b-x.x)-S):h+(b-x.x),g=a?l+(c-(E-x.y)-A):l+(E-x.y),e=b,i=E,n=S,r=A}else p=0,g=0,v=0,y=0}else o&&(p=h+(u-e-n)),a&&(g=l+(c-i-r));var _=this.source.width,C=this.source.height;return t.u0=Math.max(0,p/_),t.v0=Math.max(0,g/C),t.u1=Math.min(1,(p+v)/_),t.v1=Math.min(1,(g+y)/C),t.x=e,t.y=i,t.cx=p,t.cy=g,t.cw=v,t.ch=y,t.width=n,t.height=r,t.flipX=o,t.flipY=a,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,n=this.cutHeight,s=this.data.drawImage;s.width=i,s.height=n;var r=this.source.width,o=this.source.height;return this.u0=t/r,this.v0=e/o,this.u1=(t+i)/r,this.v1=(e+n)/o,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new o(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=r(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.source=null,this.texture=null,this.glTexture=null,this.customData=null,this.data=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=o},function(t,e,i){var n=i(0),s=i(96),r=i(395),o=i(396),a=i(46),h=i(155),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=a.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=n},contains:function(t,e){return s(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=l},function(t,e){t.exports=function(t,e,i){if(t.width<=0||t.height<=0)return!1;var n=(e-t.x)/t.width,s=(i-t.y)/t.height;return(n*=n)+(s*=s)<.25}},function(t,e,i){var n=i(240),s=i(0),r=i(90),o=i(2),a=i(6),h=i(7),l=i(389),u=i(108),c=i(69),d=new s({initialize:function(t,e,i){i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?h(e[0])&&(i=e,e=null):h(e)&&(i=e,e=null),this.scene=t,this.children=new u(e),this.isParent=!0,this.type="Group",this.classType=o(i,"classType",c),this.name=o(i,"name",""),this.active=o(i,"active",!0),this.maxSize=o(i,"maxSize",-1),this.defaultKey=o(i,"defaultKey",null),this.defaultFrame=o(i,"defaultFrame",null),this.runChildUpdate=o(i,"runChildUpdate",!1),this.createCallback=o(i,"createCallback",null),this.removeCallback=o(i,"removeCallback",null),this.createMultipleCallback=o(i,"createMultipleCallback",null),this.internalCreateCallback=o(i,"internalCreateCallback",null),this.internalRemoveCallback=o(i,"internalRemoveCallback",null),i&&this.createMultiple(i)},create:function(t,e,i,n,s,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===n&&(n=this.defaultFrame),void 0===s&&(s=!0),void 0===r&&(r=!0),this.isFull())return null;var o=new this.classType(this.scene,t,e,i,n);return this.scene.sys.displayList.add(o),o.preUpdate&&this.scene.sys.updateList.add(o),o.visible=s,o.setActive(r),this.add(o),o},createMultiple:function(t){if(this.isFull())return[];Array.isArray(t)||(t=[t]);var e=[];if(t[0].key)for(var i=0;i=0;u--)if((l=d[u]).active===i){if(++c===e)break}else l=null;return l?("number"==typeof s&&(l.x=s),"number"==typeof r&&(l.y=r),l):n?this.create(s,r,o,a,h):null},get:function(t,e,i,n,s){return this.getFirst(!1,!0,t,e,i,n,s)},getFirstAlive:function(t,e,i,n,s,r){return this.getFirst(!0,t,e,i,n,s,r)},getFirstDead:function(t,e,i,n,s,r){return this.getFirst(!1,t,e,i,n,s,r)},playAnimation:function(t,e){return n.PlayAnimation(this.children.entries,t,e),this},isFull:function(){return-1!==this.maxSize&&this.children.size>=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;it.max.x&&(t.max.x=s.x),s.xt.max.y&&(t.max.y=s.y),s.y0?t.max.x+=i.x:t.min.x+=i.x,i.y>0?t.max.y+=i.y:t.min.y+=i.y)},i.contains=function(t,e){return e.x>=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},i.overlaps=function(t,e){return t.min.x<=e.max.x&&t.max.x>=e.min.x&&t.max.y>=e.min.y&&t.min.y<=e.max.y},i.translate=function(t,e){t.min.x+=e.x,t.max.x+=e.x,t.min.y+=e.y,t.max.y+=e.y},i.shift=function(t,e){var i=t.max.x-t.min.x,n=t.max.y-t.min.y;t.min.x=e.x,t.max.x=e.x+i,t.min.y=e.y,t.max.y=e.y+n}},function(t,e){t.exports=function(t,e,i){return t>=0&&t=0&&e-1&&this.entries.splice(e,1),this},dump:function(){console.group("Set");for(var t=0;t-1},union:function(t){var e=new n;return t.entries.forEach(function(t){e.set(t)}),this.entries.forEach(function(t){e.set(t)}),e},intersect:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)&&e.set(i)}),e},difference:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)||e.set(i)}),e},size:{get:function(){return this.entries.length},set:function(t){return t0&&s.area(T)1?(d=o.create(r.extend({parts:f.slice(0)},a)),o.setPosition(d,{x:t,y:e}),d):f[0]},n.flagCoincidentParts=function(t,e){void 0===e&&(e=5);for(var i=0;i0;e--){var i=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[i],t[i]=n}return t}},function(t,e){t.exports=function(t,e,i){return(e-t)*i+t}},function(t,e,i){(function(e){var i={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=function(){var t=navigator.userAgent;/Windows/.test(t)?i.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?i.macOS=!0:/Android/.test(t)?i.android=!0:/Linux/.test(t)?i.linux=!0:/iP[ao]d|iPhone/i.test(t)?(i.iOS=!0,navigator.appVersion.match(/OS (\d+)/),i.iOSVersion=parseInt(RegExp.$1,10),i.iPhone=-1!==t.toLowerCase().indexOf("iphone"),i.iPad=-1!==t.toLowerCase().indexOf("ipad")):/Kindle/.test(t)||/\bKF[A-Z][A-Z]+/.test(t)||/Silk.*Mobile Safari/.test(t)?i.kindle=!0:/CrOS/.test(t)&&(i.chromeOS=!0),(/Windows Phone/i.test(t)||/IEMobile/i.test(t))&&(i.android=!1,i.iOS=!1,i.macOS=!1,i.windows=!0,i.windowsPhone=!0);var n=/Silk/.test(t);return(i.windows||i.macOS||i.linux&&!n||i.chromeOS)&&(i.desktop=!0),(i.windowsPhone||/Windows NT/i.test(t)&&/Touch/i.test(t))&&(i.desktop=!1),navigator.standalone&&(i.webApp=!0),void 0!==window.cordova&&(i.cordova=!0),void 0!==e&&e.versions&&e.versions.node&&(i.node=!0),i.node&&"object"==typeof e.versions&&(i.nodeWebkit=!!e.versions["node-webkit"],i.electron=!!e.versions.electron),void 0!==window.ejecta&&(i.ejecta=!0),/Crosswalk/.test(t)&&(i.crosswalk=!0),i.pixelRatio=window.devicePixelRatio||1,i}()}).call(this,i(726))},function(t,e,i){var n,s=i(116),r={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0};t.exports=(n=navigator.userAgent,/Edge\/\d+/.test(n)?r.edge=!0:/Chrome\/(\d+)/.test(n)&&!s.windowsPhone?(r.chrome=!0,r.chromeVersion=parseInt(RegExp.$1,10)):/Firefox\D+(\d+)/.test(n)?(r.firefox=!0,r.firefoxVersion=parseInt(RegExp.$1,10)):/AppleWebKit/.test(n)&&s.iOS?r.mobileSafari=!0:/MSIE (\d+\.\d+);/.test(n)?(r.ie=!0,r.ieVersion=parseInt(RegExp.$1,10)):/Opera/.test(n)?r.opera=!0:/Safari/.test(n)&&!s.windowsPhone?r.safari=!0:/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(n)&&(r.ie=!0,r.trident=!0,r.tridentVersion=parseInt(RegExp.$1,10),r.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(n)&&(r.silk=!0),r)},function(t,e){t.exports=function(t,e){return t>0&&0==(t&t-1)&&e>0&&0==(e&e-1)}},function(t,e,i){t.exports={ADD:i(776),ERROR:i(777),LOAD:i(778),READY:i(779),REMOVE:i(780)}},function(t,e){t.exports=function(t,e){var i;if(e)"string"==typeof e?i=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement)return t;return i||(i=document.body),i.appendChild(t),t}},function(t,e,i){var n=i(80);t.exports=function(t,e,i,s){var r;if(void 0===s&&(s=t),!Array.isArray(e))return-1!==(r=t.indexOf(e))?(n(t,r),i&&i.call(s,e),e):null;for(var o=e.length-1;o>=0;){var a=e[o];-1!==(r=t.indexOf(a))?(n(t,r),i&&i.call(s,a)):e.pop(),o--}return e}},function(t,e){t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},function(t,e){t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},function(t,e,i){var n=i(0),s=i(67),r=i(9),o=i(59),a=i(18),h=i(1),l=new n({Extends:r,initialize:function(t){r.call(this),this.game=t,this.jsonCache=t.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,t.events.on(a.BLUR,function(){this.pauseOnBlur&&this.onBlur()},this),t.events.on(a.FOCUS,function(){this.pauseOnBlur&&this.onFocus()},this),t.events.on(a.PRE_STEP,this.update,this),t.events.once(a.DESTROY,this.destroy,this)},add:h,addAudioSprite:function(t,e){void 0===e&&(e={});var i=this.add(t,e);for(var n in i.spritemap=this.jsonCache.get(t).spritemap,i.spritemap)if(i.spritemap.hasOwnProperty(n)){var r=s(e),o=i.spritemap[n];r.loop=!!o.hasOwnProperty("loop")&&o.loop,i.addMarker({name:n,start:o.start,duration:o.end-o.start,config:r})}return i},play:function(t,e){var i=this.add(t);return i.once(o.COMPLETE,i.destroy,i),e?e.name?(i.addMarker(e),i.play(e.name)):i.play(e):i.play()},playAudioSprite:function(t,e,i){var n=this.addAudioSprite(t);return n.once(o.COMPLETE,n.destroy,n),n.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;i>=0;i--){var n=this.sounds[i];n.key===t&&(n.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound(function(t){t.pause()}),this.emit(o.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(t){t.resume()}),this.emit(o.RESUME_ALL,this)},stopAll:function(){this.forEachActiveSound(function(t){t.stop()}),this.emit(o.STOP_ALL,this)},unlock:h,onBlur:h,onFocus:h,update:function(t,e){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(o.UNLOCKED,this));for(var i=this.sounds.length-1;i>=0;i--)this.sounds[i].pendingRemove&&this.sounds.splice(i,1);this.sounds.forEach(function(i){i.update(t,e)})},destroy:function(){this.removeAllListeners(),this.forEachActiveSound(function(t){t.destroy()}),this.sounds.length=0,this.sounds=null,this.game=null},forEachActiveSound:function(t,e){var i=this;this.sounds.forEach(function(n,s){n&&!n.pendingRemove&&t.call(e||i,n,s,i.sounds)})},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_DETUNE,this,t)}}});t.exports=l},function(t,e,i){var n=i(0),s=i(9),r=i(59),o=i(17),a=i(1),h=new n({Extends:s,initialize:function(t,e,i){s.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},this.currentConfig=this.config,this.config=o(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(console.error("addMarker "+t.name+" already exists in Sound"),!1):(t=o(!0,{name:"",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0}},t),this.markers[t.name]=t,!0))},updateMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(this.markers[t.name]=o(!0,this.markers[t.name],t),!0):(console.warn("Audio Marker: "+t.name+" missing in Sound: "+this.key),!1))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if(void 0===t&&(t=""),"object"==typeof t&&(e=t,t=""),"string"!=typeof t)return!1;if(t){if(!this.markers[t])return console.warn("Marker: "+t+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=o(this.currentConfig,e),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return!(this.isPaused||!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!0,!0)},resume:function(){return!(!this.isPaused||this.isPlaying)&&(this.isPlaying=!0,this.isPaused=!1,!0)},stop:function(){return!(!this.isPaused&&!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),!0)},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:a,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,e=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*e},destroy:function(){this.pendingRemove||(this.emit(r.DESTROY,this),this.pendingRemove=!0,this.manager=null,this.key="",this.removeAllListeners(),this.isPlaying=!1,this.isPaused=!1,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=h},function(t,e,i){var n=i(182),s=i(0),r=i(1),o=i(128),a=new s({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=r,this.removeCallback=r,this._sortKey=""},add:function(t,e){return e?n.Add(this.list,t):n.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?n.AddAt(this.list,t,e):n.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(t,e){return t?(void 0===e&&(e=function(e,i){return e[t]-i[t]}),o.inplace(this.list,e),this):this},getByName:function(t){return n.GetFirst(this.list,"name",t)},getRandom:function(t,e){return n.GetRandom(this.list,t,e)},getFirst:function(t,e,i,s){return n.GetFirst(this.list,t,e,i,s)},getAll:function(t,e,i,s){return n.GetAll(this.list,t,e,i,s)},count:function(t,e){return n.CountAllMatching(this.list,t,e)},swap:function(t,e){n.Swap(this.list,t,e)},moveTo:function(t,e){return n.MoveTo(this.list,t,e)},remove:function(t,e){return e?n.Remove(this.list,t):n.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?n.RemoveAt(this.list,t):n.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?n.RemoveBetween(this.list,t,e):n.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return n.BringToTop(this.list,t)},sendToBack:function(t){return n.SendToBack(this.list,t)},moveUp:function(t){return n.MoveUp(this.list,t),t},moveDown:function(t){return n.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return n.Shuffle(this.list),this},replace:function(t,e){return n.Replace(this.list,t,e)},exists:function(t){return this.list.indexOf(t)>-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){for(var i=[null],n=2;n0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});t.exports=a},function(t,e,i){var n=i(183),s=i(387);t.exports=function(t,e){if(void 0===e&&(e=90),!n(t))return null;if("string"!=typeof e&&(e=(e%360+360)%360),90===e||-270===e||"rotateLeft"===e)(t=s(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=s(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;il&&(r=l),o>l&&(o=l),a=s,h=r;;)if(a0&&o.length0&&a.lengthe.right||t.y>e.bottom)}},function(t,e,i){var n=i(6),s={},r={register:function(t,e,i,n,r){s[t]={plugin:e,mapping:i,settingsKey:n,configKey:r}},getPlugin:function(t){return s[t]},install:function(t){var e=t.scene.sys,i=e.settings.input,r=e.game.config;for(var o in s){var a=s[o].plugin,h=s[o].mapping,l=s[o].settingsKey,u=s[o].configKey;n(i,l,r[u])&&(t[h]=new a(t))}},remove:function(t){s.hasOwnProperty(t)&&delete s[t]}};t.exports=r},function(t,e,i){t.exports={ANY_KEY_DOWN:i(1212),ANY_KEY_UP:i(1213),COMBO_MATCH:i(1214),DOWN:i(1215),KEY_DOWN:i(1216),KEY_UP:i(1217),UP:i(1218)}},function(t,e){t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===t&&(t=""),void 0===e&&(e=!0),void 0===i&&(i=""),void 0===n&&(n=""),void 0===s&&(s=0),void 0===r&&(r=!1),{responseType:t,async:e,user:i,password:n,timeout:s,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:r}}},function(t,e,i){var n=i(0),s=i(216),r=i(69),o=new n({Extends:r,Mixins:[s.Acceleration,s.Angular,s.Bounce,s.Debug,s.Drag,s.Enable,s.Friction,s.Gravity,s.Immovable,s.Mass,s.Size,s.Velocity],initialize:function(t,e,i,n,s){r.call(this,t,e,i,n,s),this.body=null}});t.exports=o},function(t,e,i){t.exports={CalculateFacesAt:i(219),CalculateFacesWithin:i(51),Copy:i(1310),CreateFromTiles:i(1311),CullTiles:i(1312),Fill:i(1313),FilterTiles:i(1314),FindByIndex:i(1315),FindTile:i(1316),ForEachTile:i(1317),GetTileAt:i(138),GetTileAtWorldXY:i(1318),GetTilesWithin:i(24),GetTilesWithinShape:i(1319),GetTilesWithinWorldXY:i(1320),HasTileAt:i(476),HasTileAtWorldXY:i(1321),IsInLayerBounds:i(103),PutTileAt:i(220),PutTileAtWorldXY:i(1322),PutTilesAt:i(1323),Randomize:i(1324),RemoveTileAt:i(477),RemoveTileAtWorldXY:i(1325),RenderDebug:i(1326),ReplaceByIndex:i(474),SetCollision:i(1327),SetCollisionBetween:i(1328),SetCollisionByExclusion:i(1329),SetCollisionByProperty:i(1330),SetCollisionFromCollisionGroup:i(1331),SetTileIndexCallback:i(1332),SetTileLocationCallback:i(1333),Shuffle:i(1334),SwapByIndex:i(1335),TileToWorldX:i(139),TileToWorldXY:i(1336),TileToWorldY:i(140),WeightedRandomize:i(1337),WorldToTileX:i(63),WorldToTileXY:i(475),WorldToTileY:i(64)}},function(t,e,i){var n=i(103);t.exports=function(t,e,i,s){if(void 0===i&&(i=!1),n(t,e,s)){var r=s.data[e][t]||null;return null===r?null:-1===r.index?i?r:null:r}return null}},function(t,e){t.exports=function(t,e,i){var n=i.orientation,s=i.baseTileWidth,r=i.tilemapLayer,o=0;return r&&(void 0===e&&(e=r.scene.cameras.main),o=r.x+e.scrollX*(1-r.scrollFactorX),s*=r.scaleX),"orthogonal"===n?o+t*s:"isometric"===n?(console.warn("With isometric map types you have to use the TileToWorldXY function."),null):void 0}},function(t,e){t.exports=function(t,e,i){var n=i.orientation,s=i.baseTileHeight,r=i.tilemapLayer,o=0;return r&&(void 0===e&&(e=r.scene.cameras.main),o=r.y+e.scrollY*(1-r.scrollFactorY),s*=r.scaleY),"orthogonal"===n?o+t*s:"isometric"===n?(console.warn("With isometric map types you have to use the TileToWorldXY function."),null):void 0}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o,a){(void 0===i||i<=0)&&(i=32),(void 0===n||n<=0)&&(n=32),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o={}),void 0===a&&(a={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=n,this.tileMargin=s,this.tileSpacing=r,this.tileProperties=o,this.tileData=a,this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){var e=this.getTileData(t);return e&&e.objectgroup?e.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&t=this.vertexCapacity},resize:function(t,e,i){return this.width=t*i,this.height=e*i,this.resolution=i,this},bind:function(){var t=this.gl,e=this.vertexBuffer,i=this.attributes,n=this.program,s=this.renderer,r=this.vertexSize;s.setProgram(n),s.setVertexBuffer(e);for(var o=0;o=0?(t.enableVertexAttribArray(h),t.vertexAttribPointer(h,a.size,a.type,a.normalized,r,a.offset)):-1!==h&&t.disableVertexAttribArray(h)}return this},onBind:function(){return this},onPreRender:function(){return this},onRender:function(){return this},onPostRender:function(){return this},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t=this.gl,e=this.vertexCount,i=this.topology,n=this.vertexSize;if(0!==e)return t.bufferSubData(t.ARRAY_BUFFER,0,this.bytes.subarray(0,e*n)),t.drawArrays(i,0,e),this.vertexCount=0,this.flushLocked=!1,this;this.flushLocked=!1},destroy:function(){var t=this.gl;return t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),delete this.program,delete this.vertexBuffer,delete this.gl,this},setFloat1:function(t,e){return this.renderer.setFloat1(this.program,t,e),this},setFloat2:function(t,e,i){return this.renderer.setFloat2(this.program,t,e,i),this},setFloat3:function(t,e,i,n){return this.renderer.setFloat3(this.program,t,e,i,n),this},setFloat4:function(t,e,i,n,s){return this.renderer.setFloat4(this.program,t,e,i,n,s),this},setFloat1v:function(t,e){return this.renderer.setFloat1v(this.program,t,e),this},setFloat2v:function(t,e){return this.renderer.setFloat2v(this.program,t,e),this},setFloat3v:function(t,e){return this.renderer.setFloat3v(this.program,t,e),this},setFloat4v:function(t,e){return this.renderer.setFloat4v(this.program,t,e),this},setInt1:function(t,e){return this.renderer.setInt1(this.program,t,e),this},setInt2:function(t,e,i){return this.renderer.setInt2(this.program,t,e,i),this},setInt3:function(t,e,i,n){return this.renderer.setInt3(this.program,t,e,i,n),this},setInt4:function(t,e,i,n,s){return this.renderer.setInt4(this.program,t,e,i,n,s),this},setMatrix2:function(t,e,i){return this.renderer.setMatrix2(this.program,t,e,i),this},setMatrix3:function(t,e,i){return this.renderer.setMatrix3(this.program,t,e,i),this},setMatrix4:function(t,e,i){return this.renderer.setMatrix4(this.program,t,e,i),this}});t.exports=r},function(t,e,i){var n={};t.exports=n;var s=i(239),r=i(37),o=i(102),a=i(62);n.create=function(t){return r.extend({id:r.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{}},t)},n.setModified=function(t,e,i,r){if(s.trigger(t,"compositeModified",t),t.isModified=e,i&&t.parent&&n.setModified(t.parent,e,i,r),r)for(var o=0;o1?2-s:s,o=r*Math.cos(i),a=r*Math.sin(i);return e.x=t.x+o*t.radius,e.y=t.y+a*t.radius,e}},function(t,e,i){var n=i(22),s=i(0),r=i(9),o=i(111),a=i(269),h=i(270),l=i(6),u=new s({Extends:r,initialize:function(t,e,i){r.call(this),this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,l(i,"frames",[]),l(i,"defaultTextureKey",null)),this.frameRate=l(i,"frameRate",null),this.duration=l(i,"duration",null),null===this.duration&&null===this.frameRate?(this.frameRate=24,this.duration=this.frameRate/this.frames.length*1e3):this.duration&&null===this.frameRate?this.frameRate=this.frames.length/(this.duration/1e3):this.duration=this.frames.length/this.frameRate*1e3,this.msPerFrame=1e3/this.frameRate,this.skipMissedFrames=l(i,"skipMissedFrames",!0),this.delay=l(i,"delay",0),this.repeat=l(i,"repeat",0),this.repeatDelay=l(i,"repeatDelay",0),this.yoyo=l(i,"yoyo",!1),this.showOnStart=l(i,"showOnStart",!1),this.hideOnComplete=l(i,"hideOnComplete",!1),this.paused=!1,this.manager.on(o.PAUSE_ALL,this.pause,this),this.manager.on(o.RESUME_ALL,this.resume,this)},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i=this.getFrames(this.manager.textureManager,e);if(i.length>0){if(0===t)this.frames=i.concat(this.frames);else if(t===this.frames.length)this.frames=this.frames.concat(i);else{var n=this.frames.slice(0,t),s=this.frames.slice(t);this.frames=n.concat(i,s)}this.updateFrameSequence()}return this},checkFrame:function(t){return t>=0&&t0){s.isLast=!0,s.nextFrame=a[0],a[0].prevFrame=s;var v=1/(a.length-1);for(r=0;r=this.frames.length&&(e=0),t.currentAnim!==this&&(t.currentAnim=this,t.frameRate=this.frameRate,t.duration=this.duration,t.msPerFrame=this.msPerFrame,t.skipMissedFrames=this.skipMissedFrames,t._delay=this.delay,t._repeat=this.repeat,t._repeatDelay=this.repeatDelay,t._yoyo=this.yoyo);var i=this.frames[e];0!==e||t.forward||(i=this.getLastFrame()),t.updateFrame(i)},getFrameByProgress:function(t){return t=n(t,0,1),a(t,this.frames,"progress")},nextFrame:function(t){var e=t.currentFrame;e.isLast?t._yoyo?this.handleYoyoFrame(t,!1):t.repeatCounter>0?t._reverse&&t.forward?t.forward=!1:this.repeatAnimation(t):this.completeAnimation(t):this.updateAndGetNextTick(t,e.nextFrame)},handleYoyoFrame:function(t,e){if(e||(e=!1),t._reverse===!e&&t.repeatCounter>0)return t.forward=e,void this.repeatAnimation(t);if(t._reverse===e||0!==t.repeatCounter){t.forward=e;var i=e?t.currentFrame.nextFrame:t.currentFrame.prevFrame;this.updateAndGetNextTick(t,i)}else this.completeAnimation(t)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(t){var e=t.currentFrame;e.isFirst?t._yoyo?this.handleYoyoFrame(t,!0):t.repeatCounter>0?t._reverse&&!t.forward?(t.currentFrame=this.getLastFrame(),this.repeatAnimation(t)):(t.forward=!0,this.repeatAnimation(t)):this.completeAnimation(t):this.updateAndGetNextTick(t,e.prevFrame)},updateAndGetNextTick:function(t,e){t.updateFrame(e),this.getNextTick(t)},removeFrame:function(t){var e=this.frames.indexOf(t);return-1!==e&&this.removeFrameAt(e),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop)return this.completeAnimation(t);if(t._repeatDelay>0&&!1===t.pendingRepeat)t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t._repeatDelay;else if(t.repeatCounter--,t.updateFrame(t.currentFrame[t.forward?"nextFrame":"prevFrame"]),t.isPlaying){this.getNextTick(t),t.pendingRepeat=!1;var e=t.currentFrame,i=t.parent;this.emit(o.ANIMATION_REPEAT,this,e),i.emit(o.SPRITE_ANIMATION_KEY_REPEAT+this.key,this,e,t.repeatCounter,i),i.emit(o.SPRITE_ANIMATION_REPEAT,this,e,t.repeatCounter,i)}},setFrame:function(t){t.forward?this.nextFrame(t):this.previousFrame(t)},toJSON:function(){var t={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showOnStart:this.showOnStart,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(e){t.frames.push(e.toJSON())}),t},updateFrameSequence:function(){for(var t,e=this.frames.length,i=1/(e-1),n=0;n1?(t.isLast=!0,t.prevFrame=this.frames[e-2],t.nextFrame=this.frames[0]):e>1&&(t.prevFrame=this.frames[n-1],t.nextFrame=this.frames[n+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.removeAllListeners(),this.manager.off(o.PAUSE_ALL,this.pause,this),this.manager.off(o.RESUME_ALL,this.resume,this),this.manager.remove(this.key);for(var t=0;t=1)return i.x=t.x,i.y=t.y,i;var r=n(t)*e;return e>.5?(r-=t.width+t.height)<=t.width?(i.x=t.right-r,i.y=t.bottom):(i.x=t.x,i.y=t.bottom-(r-t.width)):r<=t.width?(i.x=t.x+r,i.y=t.y):(i.x=t.right,i.y=t.y+(r-t.width)),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=n(t)/i);for(var o=t.x1,a=t.y1,h=t.x2,l=t.y2,u=0;u=1&&(a=1-a,h=1-h),e.x=t.x1+(i*a+r*h),e.y=t.y1+(s*a+o*h),e}},function(t,e){t.exports=function(t,e,i,n,s){var r=n+Math.atan2(t.y-i,t.x-e);return t.x=e+s*Math.cos(r),t.y=i+s*Math.sin(r),t}},function(t,e){t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},function(t,e){t.exports=function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){if(this.entries={},this.size=0,Array.isArray(t))for(var e=0;e=(t=t.toString()).length)switch(n){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var r=Math.ceil((s=e-t.length)/2);t=new Array(s-r+1).join(i)+t+new Array(r+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},function(t,e,i){var n=i(293),s=i(296),r=i(298),o=i(299);t.exports=function(t){switch(typeof t){case"string":return"rgb"===t.substr(0,3).toLowerCase()?o(t):n(t);case"number":return s(t);case"object":return r(t)}}},function(t,e){t.exports=function(t,e,i){return t<<16|e<<8|i}},function(t,e,i){var n=i(163);t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1);var r=Math.floor(6*t),o=6*t-r,a=Math.floor(i*(1-e)*255),h=Math.floor(i*(1-o*e)*255),l=Math.floor(i*(1-(1-o)*e)*255),u=i=Math.floor(i*=255),c=i,d=i,f=r%6;return 0===f?(c=l,d=a):1===f?(u=h,d=a):2===f?(u=a,d=l):3===f?(u=a,c=h):4===f?(u=l,c=a):5===f&&(c=a,d=h),s?s.setTo?s.setTo(u,c,d,s.alpha,!1):(s.r=u,s.g=c,s.b=d,s.color=n(u,c,d),s):{r:u,g:c,b:d,color:n(u,c,d)}}},function(t,e){var i,n="";t.exports={disable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!1),t},enable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!0),t},getPrefix:i=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i0&&(n=1/Math.sqrt(n),this.x=t*n,this.y=e*n,this.z=i*n),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z;return this.x=i*o-n*r,this.y=n*s-e*o,this.z=e*r-i*s,this},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this},transformMat3:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=e*s[0]+i*s[3]+n*s[6],this.y=e*s[1]+i*s[4]+n*s[7],this.z=e*s[2]+i*s[5]+n*s[8],this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12],this.y=s[1]*e+s[5]*i+s[9]*n+s[13],this.z=s[2]*e+s[6]*i+s[10]*n+s[14],this},transformCoordinates:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=e*s[0]+i*s[4]+n*s[8]+s[12],o=e*s[1]+i*s[5]+n*s[9]+s[13],a=e*s[2]+i*s[6]+n*s[10]+s[14],h=e*s[3]+i*s[7]+n*s[11]+s[15];return this.x=r/h,this.y=o/h,this.z=a/h,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},project:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=s[0],o=s[1],a=s[2],h=s[3],l=s[4],u=s[5],c=s[6],d=s[7],f=s[8],p=s[9],g=s[10],v=s[11],y=s[12],m=s[13],x=s[14],T=1/(e*h+i*d+n*v+s[15]);return this.x=(e*r+i*l+n*f+y)*T,this.y=(e*o+i*u+n*p+m)*T,this.z=(e*a+i*c+n*g+x)*T,this},unproject:function(t,e){var i=t.x,n=t.y,s=t.z,r=t.w,o=this.x-i,a=r-this.y-1-n,h=this.z;return this.x=2*o/s-1,this.y=2*a/r-1,this.z=2*h-1,this.project(e)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0,0),n.LEFT=new n(-1,0,0),n.UP=new n(0,-1,0),n.DOWN=new n(0,1,0),n.FORWARD=new n(0,0,1),n.BACK=new n(0,0,-1),n.ONE=new n(1,1,1),t.exports=n},function(t,e,i){t.exports={Global:["game","anims","cache","plugins","registry","scale","sound","textures"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]}},function(t,e,i){var n=i(12),s=i(15);t.exports=function(t,e){if(void 0===e&&(e=new n),0===t.length)return e;for(var i,r,o,a=Number.MAX_VALUE,h=Number.MAX_VALUE,l=s.MIN_SAFE_INTEGER,u=s.MIN_SAFE_INTEGER,c=0;c0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(t){return this.settings.visible=t,this},setActive:function(t,e){return t?this.resume(e):this.pause(e)},start:function(t){t&&(this.settings.data=t),this.settings.status=s.START,this.settings.active=!0,this.settings.visible=!0,this.events.emit(o.START,this),this.events.emit(o.READY,this,t)},shutdown:function(t){this.events.off(o.TRANSITION_INIT),this.events.off(o.TRANSITION_START),this.events.off(o.TRANSITION_COMPLETE),this.events.off(o.TRANSITION_OUT),this.settings.status=s.SHUTDOWN,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.SHUTDOWN,this,t)},destroy:function(){this.settings.status=s.DESTROYED,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.DESTROY,this),this.events.removeAllListeners();for(var t=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],e=0;e0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});t.exports=u},function(t,e,i){var n=i(182),s=i(52),r=i(0),o=i(11),a=i(90),h=i(13),l=i(12),u=i(950),c=i(391),d=i(3),f=new r({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.Transform,o.Visible,u],initialize:function(t,e,i,n){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._displayList=t.sys.displayList,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.setPosition(e,i),this.clearAlpha(),this.setBlendMode(s.SKIP_CHECK),n&&this.add(n)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return void 0===t&&(t=!0),this.exclusive=t,this},getBounds:function(t){if(void 0===t&&(t=new l),t.setTo(this.x,this.y,0,0),this.list.length>0)for(var e=this.list,i=new l,n=0;n-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){var i,n=[null],s=this.list.slice(),r=s.length;for(i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[],this._displayList=null}});t.exports=f},function(t,e,i){var n=i(129),s=i(0),r=i(955),o=new s({Extends:n,Mixins:[r],initialize:function(t,e,i,s,r,o,a){n.call(this,t,e,i,s,r,o,a),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=o},function(t,e,i){var n=i(91),s=i(0),r=i(191),o=i(268),a=i(271),h=i(272),l=i(276),u=i(154),c=i(281),d=i(282),f=i(279),p=i(30),g=i(95),v=i(13),y=i(2),m=i(6),x=i(15),T=i(961),w=new s({Extends:v,Mixins:[o,a,h,l,u,c,d,f,T],initialize:function(t,e){var i=m(e,"x",0),n=m(e,"y",0);v.call(this,t,"Graphics"),this.setPosition(i,n),this.initPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this._tempMatrix1=new p,this._tempMatrix2=new p,this._tempMatrix3=new p,this.setDefaultStyles(e)},setDefaultStyles:function(t){return m(t,"lineStyle",null)&&(this.defaultStrokeWidth=m(t,"lineStyle.width",1),this.defaultStrokeColor=m(t,"lineStyle.color",16777215),this.defaultStrokeAlpha=m(t,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),m(t,"fillStyle",null)&&(this.defaultFillColor=m(t,"fillStyle.color",16777215),this.defaultFillAlpha=m(t,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return void 0===i&&(i=1),this.commandBuffer.push(r.LINE_STYLE,t,e,i),this._lineWidth=t,this},fillStyle:function(t,e){return void 0===e&&(e=1),this.commandBuffer.push(r.FILL_STYLE,t,e),this},fillGradientStyle:function(t,e,i,n,s){return void 0===s&&(s=1),this.commandBuffer.push(r.GRADIENT_FILL_STYLE,s,t,e,i,n),this},lineGradientStyle:function(t,e,i,n,s,o){return void 0===o&&(o=1),this.commandBuffer.push(r.GRADIENT_LINE_STYLE,t,o,e,i,n,s),this},setTexture:function(t,e,i){if(void 0===i&&(i=0),void 0===t)this.commandBuffer.push(r.CLEAR_TEXTURE);else{var n=this.scene.sys.textures.getFrame(t,e);n&&(2===i&&(i=3),this.commandBuffer.push(r.SET_TEXTURE,n,i))}return this},beginPath:function(){return this.commandBuffer.push(r.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(r.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(r.FILL_PATH),this},fill:function(){return this.commandBuffer.push(r.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(r.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(r.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,n){return this.commandBuffer.push(r.FILL_RECT,t,e,i,n),this},strokeRect:function(t,e,i,n){var s=this._lineWidth/2,r=t-s,o=t+s;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+n),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+n),this.strokePath(),this.beginPath(),this.moveTo(r,e),this.lineTo(o+i,e),this.strokePath(),this.beginPath(),this.moveTo(r,e+n),this.lineTo(o+i,e+n),this.strokePath(),this},fillRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=y(s,"tl",20),o=y(s,"tr",20),a=y(s,"bl",20),h=y(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.fillPath(),this},strokeRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=y(s,"tl",20),o=y(s,"tr",20),a=y(s,"bl",20),h=y(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(r.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.FILL_TRIANGLE,t,e,i,n,s,o),this},strokeTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.STROKE_TRIANGLE,t,e,i,n,s,o),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,n){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,n),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(r.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(r.MOVE_TO,t,e),this},strokePoints:function(t,e,i,n){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var s=1;s-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(t,e,i){var n,s,r=this.scene.sys,o=r.game.renderer;if(void 0===e&&(e=r.scale.width),void 0===i&&(i=r.scale.height),w.TargetCamera.setScene(this.scene),w.TargetCamera.setViewport(0,0,e,i),w.TargetCamera.scrollX=this.x,w.TargetCamera.scrollY=this.y,"string"==typeof t)if(r.textures.exists(t)){var a=(n=r.textures.get(t)).getSourceImage();a instanceof HTMLCanvasElement&&(s=a.getContext("2d"))}else s=(n=r.textures.createCanvas(t,e,i)).getSourceImage().getContext("2d");else t instanceof HTMLCanvasElement&&(s=t.getContext("2d"));return s&&(this.renderCanvas(o,this,0,w.TargetCamera,null,s,!1),n&&n.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});w.TargetCamera=new n,t.exports=w},function(t,e){t.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,SET_TEXTURE:19,CLEAR_TEXTURE:20,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.width/2,r=t.height/2;return i.x=t.x+s*Math.cos(e),i.y=t.y+r*Math.sin(e),i}},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(399),a=i(126),h=i(401),l=i(971),u=new n({Extends:r,Mixins:[s.Depth,s.Mask,s.Pipeline,s.Transform,s.Visible,l],initialize:function(t,e,i,n){if(r.call(this,t,"ParticleEmitterManager"),this.blendMode=-1,this.timeScale=1,this.texture=null,this.frame=null,this.frameNames=[],null===i||"object"!=typeof i&&!Array.isArray(i)||(n=i,i=null),this.setTexture(e,i),this.initPipeline(),this.emitters=new a(this),this.wells=new a(this),n){Array.isArray(n)||(n=[n]);for(var s=0;s0?e.defaultFrame=i[0]:e.defaultFrame=this.defaultFrame,this},addEmitter:function(t){return this.emitters.add(t)},createEmitter:function(t){return this.addEmitter(new h(this,t))},removeEmitter:function(t){return this.emitters.remove(t,!0)},addGravityWell:function(t){return this.wells.add(t)},createGravityWell:function(t){return this.addGravityWell(new o(t))},emitParticle:function(t,e,i){for(var n=this.emitters.list,s=0;ss.width&&(t=s.width-this.frame.cutX),this.frame.cutY+e>s.height&&(e=s.height-this.frame.cutY),this.frame.setSize(t,e,this.frame.cutX,this.frame.cutY)}this.updateDisplayOrigin();var r=this.input;return r&&!r.customHitArea&&(r.hitArea.width=t,r.hitArea.height=e),this},setGlobalTint:function(t){return this.globalTint=t,this},setGlobalAlpha:function(t){return this.globalAlpha=t,this},saveTexture:function(t){return this.textureManager.renameTexture(this.texture.key,t),this._saved=!0,this.texture},fill:function(t,e,i,n,s,r){void 0===e&&(e=1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.frame.cutWidth),void 0===r&&(r=this.frame.cutHeight);var o=255&(t>>16|0),a=255&(t>>8|0),h=255&(0|t),l=this.gl,u=this.frame;if(this.camera.preRender(1,1),l){var c=this.camera._cx,f=this.camera._cy,p=this.camera._cw,g=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(c,f,p,g,g);var v=this.pipeline;v.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),v.drawFillRect(i,n,s,r,d.getTintFromFloats(o/255,a/255,h/255,1),e),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),v.projOrtho(0,v.width,v.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.context.fillStyle="rgba("+o+","+a+","+h+","+e+")",this.context.fillRect(i+u.cutX,n+u.cutY,s,r),this.renderer.setContext();return this.dirty=!0,this},clear:function(){if(this.dirty){var t=this.gl;if(t){var e=this.renderer;e.setFramebuffer(this.framebuffer,!0),this.frame.cutWidth===this.canvas.width&&this.frame.cutHeight===this.canvas.height||t.scissor(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),e.setFramebuffer(null,!0)}else{var i=this.context;i.save(),i.setTransform(1,0,0,1,0,0),i.clearRect(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),i.restore()}this.dirty=!1}return this},erase:function(t,e,i){this._eraseMode=!0;var s=this.renderer.currentBlendMode;return this.renderer.setBlendMode(n.ERASE),this.draw(t,e,i,1,16777215),this.renderer.setBlendMode(s),this._eraseMode=!1,this},draw:function(t,e,i,n,s){void 0===n&&(n=this.globalAlpha),s=void 0===s?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(s>>16)+(65280&s)+((255&s)<<16),Array.isArray(t)||(t=[t]);var r=this.gl;if(this.camera.preRender(1,1),r){var o=this.camera._cx,a=this.camera._cy,h=this.camera._cw,l=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(o,a,h,l,l);var u=this.pipeline;u.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),this.batchList(t,e,i,n,s),u.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),u.projOrtho(0,u.width,u.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.batchList(t,e,i,n,s),this.renderer.setContext();return this.dirty=!0,this},drawFrame:function(t,e,i,n,s,r){void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.globalAlpha),r=void 0===r?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(r>>16)+(65280&r)+((255&r)<<16);var o=this.gl,a=this.textureManager.getFrame(t,e);if(a){if(this.camera.preRender(1,1),o){var h=this.camera._cx,l=this.camera._cy,u=this.camera._cw,c=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(h,l,u,c,c);var d=this.pipeline;d.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),d.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,r,s,this.camera.matrix,null),d.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),d.projOrtho(0,d.width,d.height,0,-1e3,1e3)}else this.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,s,r);this.dirty=!0}return this},batchList:function(t,e,i,n,s){for(var r=0;rr&&(o=t[r]),s[r]=o,t.length>r+1&&(o=t[r+1]),s[r+1]=o}return this},setColors:function(t){var e=this.points.length;if(e<1)return this;var i,n=this.colors;void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]);var s=0;if(t.length===e)for(i=0;is&&(r=t[s]),n[s]=r,t.length>s+1&&(r=t[s+1]),n[s+1]=r}return this},setPoints:function(t,e,i){if(void 0===t&&(t=2),"number"==typeof t){var n,s,r,o=t;if(o<2&&(o=2),t=[],this.horizontal)for(r=-this.frame.halfWidth,s=this.frame.width/(o-1),n=0;nl){if(0===c){for(var g=f;g.length&&(g=g.slice(0,-1),!((p=e.measureText(g).width)<=l)););if(!g.length)throw new Error("This text's wordWrapWidth setting is less than a single character!");var v=d.substr(g.length);u[c]=v,h+=g}var y=u[c].length?c:c+1,m=u.slice(y).join(" ").replace(/[ \n]*$/gi,"");s[o+1]=m+" "+(s[o+1]||""),r=s.length;break}h+=f,l-=p}n+=h.replace(/[ \n]*$/gi,"")+"\n"}}return n=n.replace(/[\s|\n]*$/gi,"")},basicWordWrap:function(t,e,i){for(var n="",s=t.split(this.splitRegExp),r=s.length-1,o=e.measureText(" ").width,a=0;a<=r;a++){for(var h=i,l=s[a].split(" "),u=l.length-1,c=0;c<=u;c++){var d=l[c],f=e.measureText(d).width,p=f+o;p>h&&c>0&&(n+="\n",h=i),n+=d,c0&&(d+=h.lineSpacing*g),i.rtl)c=f-c;else if("right"===i.align)c+=o-h.lineWidths[g];else if("center"===i.align)c+=(o-h.lineWidths[g])/2;else if("justify"===i.align){if(h.lineWidths[g]/h.width>=.85){var v=h.width-h.lineWidths[g],y=e.measureText(" ").width,m=a[g].trim(),x=m.split(" ");v+=(a[g].length-m.length)*y;for(var T=Math.floor(v/y),w=0;T>0;)x[w]+=" ",w=(w+1)%(x.length-1||1),--T;a[g]=x.join(" ")}}this.autoRound&&(c=Math.round(c),d=Math.round(d)),i.strokeThickness&&(this.style.syncShadow(e,i.shadowStroke),e.strokeText(a[g],c,d)),i.color&&(this.style.syncShadow(e,i.shadowFill),e.fillText(a[g],c,d))}e.restore(),this.renderer.gl&&(this.frame.source.glTexture=this.renderer.canvasToTexture(t,this.frame.source.glTexture,!0),this.frame.glTexture=this.frame.source.glTexture),this.dirty=!0;var b=this.input;return b&&!b.customHitArea&&(b.hitArea.width=this.width,b.hitArea.height=this.height),this},getTextMetrics:function(){return this.style.getTextMetrics()},text:{get:function(){return this._text},set:function(t){this.setText(t)}},toJSON:function(){var t=o.ToJSON(this),e={autoRound:this.autoRound,text:this._text,style:this.style.toJSON(),padding:{left:this.padding.left,right:this.padding.right,top:this.padding.top,bottom:this.padding.bottom}};return t.data=e,t},preDestroy:function(){this.style.rtl&&c(this.canvas),s.remove(this.canvas),this.texture.destroy()}});t.exports=p},function(t,e,i){var n=i(26),s=i(0),r=i(11),o=i(18),a=i(13),h=i(327),l=i(165),u=i(990),c=i(3),d=new s({Extends:a,Mixins:[r.Alpha,r.BlendMode,r.ComputedSize,r.Crop,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Tint,r.Transform,r.Visible,u],initialize:function(t,e,i,s,r,l,u){var d=t.sys.game.renderer;a.call(this,t,"TileSprite");var f=t.sys.textures.get(l),p=f.get(u);s&&r?(s=Math.floor(s),r=Math.floor(r)):(s=p.width,r=p.height),this._tilePosition=new c,this._tileScale=new c(1,1),this.dirty=!1,this.renderer=d,this.canvas=n.create(this,s,r),this.context=this.canvas.getContext("2d"),this.displayTexture=f,this.displayFrame=p,this._crop=this.resetCropObject(),this.texture=t.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.potWidth=h(p.width),this.potHeight=h(p.height),this.fillCanvas=n.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d"),this.fillPattern=null,this.setPosition(e,i),this.setSize(s,r),this.setFrame(u),this.setOriginFromFrame(),this.initPipeline(),t.sys.game.events.on(o.CONTEXT_RESTORED,function(t){var e=t.gl;this.dirty=!0,this.fillPattern=null,this.fillPattern=t.createTexture2D(0,e.LINEAR,e.LINEAR,e.REPEAT,e.REPEAT,e.RGBA,this.fillCanvas,this.potWidth,this.potHeight)},this)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){var e=this.displayTexture.get(t);return this.potWidth=h(e.width),this.potHeight=h(e.height),this.canvas.width=0,e.cutWidth&&e.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=e,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){if(this.dirty&&this.renderer){var t=this.displayFrame;if(t.source.isRenderTexture||t.source.isGLTexture)return console.warn("TileSprites can only use Image or Canvas based textures"),void(this.dirty=!1);var e=this.fillContext,i=this.fillCanvas,n=this.potWidth,s=this.potHeight;this.renderer.gl||(n=t.cutWidth,s=t.cutHeight),e.clearRect(0,0,n,s),i.width=n,i.height=s,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,n,s),this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var t=this.canvas;if(t.width===this.width&&t.height===this.height||(t.width=this.width,t.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl)this.dirty=!1;else{var e=this.context;this.scene.sys.game.config.antialias||l.disable(e);var i=this._tileScale.x,n=this._tileScale.y,s=this._tilePosition.x,r=this._tilePosition.y;e.clearRect(0,0,this.width,this.height),e.save(),e.scale(i,n),e.translate(-s,-r),e.fillStyle=this.fillPattern,e.fillRect(s,r,this.width/i,this.height/n),e.restore(),this.dirty=!1}},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),n.remove(this.canvas),n.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null,this.texture.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=d},function(t,e,i){var n=i(0),s=i(22),r=i(11),o=i(90),a=i(18),h=i(13),l=i(59),u=i(195),c=i(993),d=i(15),f=new n({Extends:h,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,c],initialize:function(t,e,i,n){h.call(this,t,"Video"),this.video=null,this.videoTexture=null,this.videoTextureSource=null,this.snapshotTexture=null,this.flipY=!1,this._key=u(),this.touchLocked=!0,this.playWhenUnlocked=!1,this.retryLimit=20,this.retry=0,this.retryInterval=500,this._retryID=null,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={play:this.playHandler.bind(this),error:this.loadErrorHandler.bind(this),end:this.completeHandler.bind(this),time:this.timeUpdateHandler.bind(this),seeking:this.seekingHandler.bind(this),seeked:this.seekedHandler.bind(this)},this._crop=this.resetCropObject(),this.markers={},this._markerIn=-1,this._markerOut=d.MAX_SAFE_INTEGER,this._lastUpdate=0,this._cacheKey="",this._isSeeking=!1,this.removeVideoElementOnDestroy=!1,this.setPosition(e,i),this.initPipeline(),n&&this.changeSource(n,!1);var s=t.sys.game.events;s.on(a.PAUSE,this.globalPause,this),s.on(a.RESUME,this.globalResume,this);var r=t.sys.sound;r&&r.on(l.GLOBAL_MUTE,this.globalMute,this)},play:function(t,e,i){if(this.touchLocked&&this.playWhenUnlocked||this.isPlaying())return this;var n=this.video;if(!n)return console.warn("Video not loaded"),this;void 0===t&&(t=n.loop);var s=this.scene.sys.sound;s&&s.mute&&this.setMute(!0),isNaN(e)||(this._markerIn=e),!isNaN(i)&&i>e&&(this._markerOut=i),n.loop=t;var r=this._callbacks,o=n.play();return void 0!==o?o.then(this.playPromiseSuccessHandler.bind(this)).catch(this.playPromiseErrorHandler.bind(this)):(n.addEventListener("playing",r.play,!0),n.readyState<2&&(this.retry=this.retryLimit,this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval))),n.addEventListener("ended",r.end,!0),n.addEventListener("timeupdate",r.time,!0),n.addEventListener("seeking",r.seeking,!0),n.addEventListener("seeked",r.seeked,!0),this},changeSource:function(t,e,i,n,s){void 0===e&&(e=!0),this.video&&this.stop();var r=this.scene.sys.cache.video.get(t);return r?(this.video=r,this._cacheKey=t,this._codePaused=r.paused,this._codeMuted=r.muted,this.videoTexture?(this.scene.sys.textures.remove(this._key),this.videoTexture=this.scene.sys.textures.create(this._key,r,r.videoWidth,r.videoHeight),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,r.videoWidth,r.videoHeight),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,r.videoWidth,r.videoHeight)):this.updateTexture(),r.currentTime=0,this._lastUpdate=0,e&&this.play(i,n,s)):this.video=null,this},addMarker:function(t,e,i){return!isNaN(e)&&e>=0&&!isNaN(i)&&(this.markers[t]=[e,i]),this},playMarker:function(t,e){var i=this.markers[t];return i&&this.play(e,i[0],i[1]),this},removeMarker:function(t){return delete this.markers[t],this},snapshot:function(t,e){return void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.snapshotArea(0,0,this.width,this.height,t,e)},snapshotArea:function(t,e,i,n,s,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=this.height),void 0===s&&(s=i),void 0===r&&(r=n);var o=this.video,a=this.snapshotTexture;return a?(a.setSize(s,r),o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)):(a=this.scene.sys.textures.createCanvas(u(),s,r),this.snapshotTexture=a,o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)),a.update()},saveSnapshotTexture:function(t){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,t):this.snapshotTexture=this.scene.sys.textures.createCanvas(t,this.width,this.height),this.snapshotTexture},loadURL:function(t,e,i){void 0===e&&(e="loadeddata"),void 0===i&&(i=!1),this.video&&this.stop(),this.videoTexture&&this.scene.sys.textures.remove(this._key);var n=document.createElement("video");return n.controls=!1,i&&(n.muted=!0,n.defaultMuted=!0,n.setAttribute("autoplay","autoplay")),n.setAttribute("playsinline","playsinline"),n.setAttribute("preload","auto"),n.addEventListener("error",this._callbacks.error,!0),n.src=t,n.load(),this.video=n,this},playPromiseSuccessHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn)},playPromiseErrorHandler:function(t){this.scene.sys.input.once("pointerdown",this.unlockHandler,this),this.touchLocked=!0,this.playWhenUnlocked=!0,this.emit(o.VIDEO_ERROR,this,t)},playHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this.video.removeEventListener("playing",this._callbacks.play,!0)},loadErrorHandler:function(t){this.stop(),this.emit(o.VIDEO_ERROR,this,t)},unlockHandler:function(){this.touchLocked=!1,this.playWhenUnlocked=!1,this.emit(o.VIDEO_UNLOCKED,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn),this.video.play(),this.emit(o.VIDEO_PLAY,this)},completeHandler:function(){this.emit(o.VIDEO_COMPLETE,this)},timeUpdateHandler:function(){this.video&&this.video.currentTime=this._markerOut&&(t.loop?(t.currentTime=this._markerIn,this.updateTexture(),this._lastUpdate=e,this.emit(o.VIDEO_LOOP,this)):(this.emit(o.VIDEO_COMPLETE,this),this.stop())))}},checkVideoProgress:function(){this.video.readyState>=2?this.updateTexture():(this.retry--,this.retry>0?this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval):this.emit(o.VIDEO_TIMEOUT,this))},updateTexture:function(){var t=this.video,e=t.videoWidth,i=t.videoHeight;if(this.videoTexture){var n=this.videoTextureSource;n.source!==t&&(n.source=t,n.width=e,n.height=i),n.update()}else this.videoTexture=this.scene.sys.textures.create(this._key,t,e,i),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,e,i),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,e,i)},getVideoKey:function(){return this._cacheKey},seekTo:function(t){var e=this.video;if(e){var i=e.duration;if(i!==1/0&&!isNaN(i)){var n=i*t;this.setCurrentTime(n)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e=this.video;if(e){if("string"==typeof t){var i=t[0],n=parseFloat(t.substr(1));"+"===i?t=e.currentTime+n:"-"===i&&(t=e.currentTime-n)}e.currentTime=t,this._lastUpdate=t}return this},isSeeking:function(){return this._isSeeking},seekingHandler:function(){this._isSeeking=!0,this.emit(o.VIDEO_SEEKING,this)},seekedHandler:function(){this._isSeeking=!1,this.emit(o.VIDEO_SEEKED,this),this.video&&this.updateTexture()},getProgress:function(){var t=this.video;if(t){var e=t.currentTime,i=t.duration;if(i!==1/0&&!isNaN(i))return e/i}return 0},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){void 0===t&&(t=!0),this._codeMuted=t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},globalPause:function(){this._systemPaused=!0,this.video&&this.video.pause()},globalResume:function(){this._systemPaused=!1,this.video&&!this._codePaused&&this.video.play()},setPaused:function(t){void 0===t&&(t=!0);var e=this.video;return this._codePaused=t,e&&(t?e.paused||e.pause():t||e.paused&&!this._systemPaused&&e.play()),this},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(t){return void 0===t&&(t=1),this.video&&(this.video.volume=s(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&this.scene.sys.textures.renameTexture(this._key,t),this._key=t,this.flipY=e,this.videoTextureSource&&this.videoTextureSource.setFlipY(e),this.videoTexture},stop:function(){var t=this.video;if(t){var e=this._callbacks;for(var i in e)t.removeEventListener(i,e[i],!0);t.pause()}return this._retryID&&window.clearTimeout(this._retryID),this.emit(o.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("autoplay"),t.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(),this.removeVideoElementOnDestroy&&this.removeVideoElement();var t=this.scene.sys.game.events;t.off(a.PAUSE,this.globalPause,this),t.off(a.RESUME,this.globalResume,this);var e=this.scene.sys.sound;e&&e.off(l.GLOBAL_MUTE,this.globalMute,this),this._retryID&&window.clearTimeout(this._retryID)}});t.exports=f},function(t,e,i){var n=i(0),s=i(201),r=i(416),o=i(46),a=new n({initialize:function(t){this.type=o.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return s(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],"string"==typeof t&&(t=t.split(" ")),!Array.isArray(t))return this;for(var e,i=Number.MAX_VALUE,n=0;no||r>a)return!1;if(s<=i||r<=n)return!0;var h=s-i,l=r-n;return h*h+l*l<=t.radius*t.radius}},function(t,e,i){var n=i(4),s=i(207);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a=t.x1,h=t.y1,l=t.x2,u=t.y2,c=e.x,d=e.y,f=e.radius,p=l-a,g=u-h,v=a-c,y=h-d,m=p*p+g*g,x=2*(p*v+g*y),T=x*x-4*m*(v*v+y*y-f*f);if(0===T){var w=-x/(2*m);r=a+w*p,o=h+w*g,w>=0&&w<=1&&i.push(new n(r,o))}else if(T>0){var b=(-x-Math.sqrt(T))/(2*m);r=a+b*p,o=h+b*g,b>=0&&b<=1&&i.push(new n(r,o));var E=(-x+Math.sqrt(T))/(2*m);r=a+E*p,o=h+E*g,E>=0&&E<=1&&i.push(new n(r,o))}}return i}},function(t,e,i){var n=i(55),s=new(i(4));t.exports=function(t,e,i){if(void 0===i&&(i=s),n(e,t.x1,t.y1))return i.x=t.x1,i.y=t.y1,!0;if(n(e,t.x2,t.y2))return i.x=t.x2,i.y=t.y2,!0;var r=t.x2-t.x1,o=t.y2-t.y1,a=e.x-t.x1,h=e.y-t.y1,l=r*r+o*o,u=r,c=o;if(l>0){var d=(a*r+h*o)/l;u*=d,c*=d}return i.x=t.x1+u,i.y=t.y1+c,u*u+c*c<=l&&u*r+c*o>=0&&n(e,i.x,i.y)}},function(t,e,i){var n=i(4),s=i(84),r=i(429);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e))for(var o=e.getLineA(),a=e.getLineB(),h=e.getLineC(),l=e.getLineD(),u=[new n,new n,new n,new n],c=[s(o,t,u[0]),s(a,t,u[1]),s(h,t,u[2]),s(l,t,u[3])],d=0;d<4;d++)c[d]&&i.push(u[d]);return i}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=!1),void 0===n&&(n=[]);for(var s,r,o,a,h,l,u=t.x3-t.x1,c=t.y3-t.y1,d=t.x2-t.x1,f=t.y2-t.y1,p=u*u+c*c,g=u*d+c*f,v=d*d+f*f,y=p*v-g*g,m=0===y?0:1/y,x=t.x1,T=t.y1,w=0;w=0&&r>=0&&s+r<1&&(n.push({x:e[w].x,y:e[w].y}),i)));w++);return n}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,t}},function(t,e){t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,o=t.x3-e,a=t.y3-i,t.x3=o*s-a*r+e,t.y3=o*r+a*s+i,t}},function(t,e,i){t.exports={BUTTON_DOWN:i(1198),BUTTON_UP:i(1199),CONNECTED:i(1200),DISCONNECTED:i(1201),GAMEPAD_BUTTON_DOWN:i(1202),GAMEPAD_BUTTON_UP:i(1203)}},function(t,e,i){var n=i(17),s=i(135);t.exports=function(t,e){var i=void 0===t?s():n({},t);if(e)for(var r in e)void 0!==e[r]&&(i[r]=e[r]);return i}},function(t,e,i){var n=i(0),s=i(20),r=i(21),o=i(8),a=i(2),h=i(7),l=i(363),u=new n({Extends:r,initialize:function(t,e,i,n){var s="xml";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),n=a(o,"xhrSettings"),s=a(o,"extension",s)}var l={type:"xml",cache:t.cacheManager.xml,extension:s,responseType:"text",key:e,url:i,xhrSettings:n};r.call(this,t,l)},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=l(this.xhrLoader.responseText),this.data?this.onProcessComplete():(console.warn("Invalid XMLFile: "+this.key),this.onProcessError())}});o.register("xml",function(t,e,i){if(Array.isArray(t))for(var n=0;n0?1:.7),e.damping=e.damping||0,e.angularStiffness=e.angularStiffness||0,e.angleA=e.bodyA?e.bodyA.angle:e.angleA,e.angleB=e.bodyB?e.bodyB.angle:e.angleB,e.plugin={};var o={visible:!0,type:"line",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return 0===e.length&&e.stiffness>.1?(o.type="pin",o.anchors=!1):e.stiffness<.9&&(o.type="spring"),e.render=l.extend(o,e.render),e},n.preSolveAll=function(t){for(var e=0;e0&&(c.position.x+=l.x,c.position.y+=l.y),0!==l.angle&&(s.rotate(c.vertices,l.angle,i.position),h.rotate(c.axes,l.angle),u>0&&r.rotateAbout(c.position,l.angle,i.position,c.position)),a.update(c.bounds,c.vertices,i.velocity)}l.angle*=n._warming,l.x*=n._warming,l.y*=n._warming}}},n.pointAWorld=function(t){return{x:(t.bodyA?t.bodyA.position.x:0)+t.pointA.x,y:(t.bodyA?t.bodyA.position.y:0)+t.pointA.y}},n.pointBWorld=function(t){return{x:(t.bodyB?t.bodyB.position.x:0)+t.pointB.x,y:(t.bodyB?t.bodyB.position.y:0)+t.pointB.y}}},function(t,e,i){var n=i(138);t.exports=function(t,e,i){var s=n(t,e,!0,i),r=n(t,e-1,!0,i),o=n(t,e+1,!0,i),a=n(t-1,e,!0,i),h=n(t+1,e,!0,i),l=s&&s.collides;return l&&(s.faceTop=!0,s.faceBottom=!0,s.faceLeft=!0,s.faceRight=!0),r&&r.collides&&(l&&(s.faceTop=!1),r.faceBottom=!l),o&&o.collides&&(l&&(s.faceBottom=!1),o.faceTop=!l),a&&a.collides&&(l&&(s.faceLeft=!1),a.faceRight=!l),h&&h.collides&&(l&&(s.faceRight=!1),h.faceLeft=!l),s&&!s.collides&&s.resetFaces(),s}},function(t,e,i){var n=i(75),s=i(103),r=i(219),o=i(74);t.exports=function(t,e,i,a,h){if(!s(e,i,h))return null;void 0===a&&(a=!0);var l=h.data[i][e],u=l&&l.collides;if(t instanceof n)null===h.data[i][e]&&(h.data[i][e]=new n(h,t.index,e,i,h.tileWidth,h.tileHeight)),h.data[i][e].copy(t);else{var c=t;null===h.data[i][e]?h.data[i][e]=new n(h,c,e,i,h.tileWidth,h.tileHeight):h.data[i][e].index=c}var d=h.data[i][e],f=-1!==h.collideIndexes.indexOf(d.index);return o(d,f),a&&u!==d.collides&&r(e,i,h),d}},function(t,e){t.exports=function(t,e,i){var n=i.collideIndexes.indexOf(t);e&&-1===n?i.collideIndexes.push(t):e||-1===n||i.collideIndexes.splice(n,1)}},function(t,e,i){var n=i(32),s=i(104),r=i(105),o=i(75);t.exports=function(t,e,i,a,h){var l=new s({tileWidth:i,tileHeight:a});console.log("parsing 2D array");for(var u=new r({name:t,tileWidth:i,tileHeight:a,format:n.ARRAY_2D,layers:[l]}),c=[],d=e.length,f=0,p=0;p0&&(s.totalDuration+=s.t2*s.repeat),s.totalDuration>t&&(t=s.totalDuration),s.delay0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay,this.startDelay=e},init:function(){if(this.paused&&!this.parentIsTimeline)return this.state=h.PENDING_ADD,this._pausedState=h.INIT,!1;for(var t=this.data,e=this.totalTargets,i=0;i0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=h.LOOP_DELAY):(this.state=h.ACTIVE,this.dispatchTweenEvent(r.TWEEN_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=h.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=h.PENDING_REMOVE,this.dispatchTweenEvent(r.TWEEN_COMPLETE,this.callbacks.onComplete))},pause:function(){return this.state===h.PAUSED?this:(this.paused=!0,this._pausedState=this.state,this.state=h.PAUSED,this)},play:function(t){void 0===t&&(t=!1);var e=this.state;return e!==h.INIT||this.parentIsTimeline?e===h.ACTIVE||e===h.PENDING_ADD&&this._pausedState===h.PENDING_ADD?this:this.parentIsTimeline||e!==h.PENDING_REMOVE&&e!==h.REMOVED?(this.parentIsTimeline?(this.resetTweenData(t),0===this.calculatedOffset?this.state=h.ACTIVE:(this.countdown=this.calculatedOffset,this.state=h.OFFSET_DELAY)):this.paused?(this.paused=!1,this.makeActive()):(this.resetTweenData(t),this.state=h.ACTIVE,this.makeActive()),this):(this.seek(0),this.parent.makeActive(this),this):(this.resetTweenData(!1),this.state=h.ACTIVE,this)},resetTweenData:function(t){for(var e=this.data,i=this.totalData,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY),r.getActiveValue&&(o[a]=r.getActiveValue(r.target,r.key,r.start))}},resume:function(){return this.state===h.PAUSED?(this.paused=!1,this.state=this._pausedState):this.play(),this},seek:function(t,e){if(void 0===e&&(e=16.6),this.totalDuration>=36e5)return console.warn("Tween.seek duration too long"),this;this.state===h.REMOVED&&this.makeActive(),this.elapsed=0,this.progress=0,this.totalElapsed=0,this.totalProgress=0;for(var i=this.data,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY)}this.calcDuration();var c=!1;this.state===h.PAUSED&&(c=!0,this.state=h.ACTIVE),this.isSeeking=!0;do{this.update(0,e)}while(this.totalProgress0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.start=e.getStartValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},setStateFromStart:function(t,e,i){return e.repeatCounter>0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},updateTweenData:function(t,e,i){var n=e.target;switch(e.state){case h.PLAYING_FORWARD:case h.PLAYING_BACKWARD:if(!n){e.state=h.COMPLETE;break}var s=e.elapsed,o=e.duration,a=0;(s+=i)>o&&(a=s-o,s=o);var l=e.state===h.PLAYING_FORWARD,u=s/o;if(e.elapsed=s,e.progress=u,e.previous=e.current,1===u)l?(e.current=e.end,n[e.key]=e.end,e.hold>0?(e.elapsed=e.hold-a,e.state=h.HOLD_DELAY):e.state=this.setStateFromEnd(t,e,a)):(e.current=e.start,n[e.key]=e.start,e.state=this.setStateFromStart(t,e,a));else{var c=l?e.ease(u):e.ease(1-u);e.current=e.start+(e.end-e.start)*c,n[e.key]=e.current}this.dispatchTweenDataEvent(r.TWEEN_UPDATE,t.callbacks.onUpdate,e);break;case h.DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PENDING_RENDER);break;case h.REPEAT_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PLAYING_FORWARD,this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e));break;case h.HOLD_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.state=this.setStateFromEnd(t,e,Math.abs(e.elapsed)));break;case h.PENDING_RENDER:n?(e.start=e.getStartValue(n,e.key,n[e.key],e.index,t.totalTargets,t),e.end=e.getEndValue(n,e.key,e.start,e.index,t.totalTargets,t),e.current=e.start,n[e.key]=e.start,e.state=h.PLAYING_FORWARD):e.state=h.COMPLETE}return e.state!==h.COMPLETE}});u.TYPES=["onActive","onComplete","onLoop","onRepeat","onStart","onUpdate","onYoyo"],a.register("tween",function(t){return this.scene.sys.tweens.add(t)}),o.register("tween",function(t){return this.scene.sys.tweens.create(t)}),t.exports=u},function(t,e,i){t.exports={TIMELINE_COMPLETE:i(1354),TIMELINE_LOOP:i(1355),TIMELINE_PAUSE:i(1356),TIMELINE_RESUME:i(1357),TIMELINE_START:i(1358),TIMELINE_UPDATE:i(1359),TWEEN_ACTIVE:i(1360),TWEEN_COMPLETE:i(1361),TWEEN_LOOP:i(1362),TWEEN_REPEAT:i(1363),TWEEN_START:i(1364),TWEEN_UPDATE:i(1365),TWEEN_YOYO:i(1366)}},function(t,e){t.exports=function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p){return{target:t,index:e,key:i,getActiveValue:r,getEndValue:n,getStartValue:s,ease:o,duration:0,totalDuration:0,delay:0,yoyo:l,hold:0,repeat:0,repeatDelay:0,flipX:f,flipY:p,progress:0,elapsed:0,repeatCounter:0,start:0,previous:0,current:0,end:0,t1:0,t2:0,gen:{delay:a,duration:h,hold:u,repeat:c,repeatDelay:d},state:0}}},function(t,e){t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-Math.PI,Math.PI)}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-180,180)}},function(t,e,i){var n=i(0),s=i(66),r=i(2),o=i(237),a=i(339),h=i(340),l=i(30),u=i(10),c=i(145),d=new n({Extends:c,Mixins:[o],initialize:function(t){var e=t.renderer.config;c.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:r(t,"topology",t.renderer.gl.TRIANGLES),vertShader:r(t,"vertShader",h),fragShader:r(t,"fragShader",a),vertexCapacity:r(t,"vertexCapacity",6*e.batchSize),vertexSize:r(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.tintEffect=2,this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[],this.mvpInit()},onBind:function(){return c.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return c.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this},batchSprite:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix1,s=this._tempMatrix2,r=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,l=o.v0,c=o.u1,d=o.v1,f=o.x,p=o.y,g=o.cutWidth,v=o.cutHeight,y=o.customPivot,m=t.displayOriginX,x=t.displayOriginY,T=-m+f,w=-x+p;if(t.isCropped){var b=t._crop;b.flipX===t.flipX&&b.flipY===t.flipY||o.updateCropUVs(b,t.flipX,t.flipY),h=b.u0,l=b.v0,c=b.u1,d=b.v1,g=b.width,v=b.height,T=-m+(f=b.x),w=-x+(p=b.y)}var E=1,S=1;t.flipX&&(y||(T+=-o.realWidth+2*m),E=-1),(t.flipY||o.source.isGLTexture&&!a.flipY)&&(y||(w+=-o.realHeight+2*x),S=-1),s.applyITRS(t.x,t.y,t.rotation,t.scaleX*E,t.scaleY*S),n.copyFrom(e.matrix),i?(n.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),s.e=t.x,s.f=t.y,n.multiply(s,r)):(s.e-=e.scrollX*t.scrollFactorX,s.f-=e.scrollY*t.scrollFactorY,n.multiply(s,r));var A=T+g,_=w+v,C=r.getX(T,w),M=r.getY(T,w),P=r.getX(T,_),O=r.getY(T,_),R=r.getX(A,_),L=r.getY(A,_),k=r.getX(A,w),D=r.getY(A,w),F=u.getTintAppendFloatAlpha(t._tintTL,e.alpha*t._alphaTL),I=u.getTintAppendFloatAlpha(t._tintTR,e.alpha*t._alphaTR),B=u.getTintAppendFloatAlpha(t._tintBL,e.alpha*t._alphaBL),N=u.getTintAppendFloatAlpha(t._tintBR,e.alpha*t._alphaBR);e.roundPixels&&(C=Math.round(C),M=Math.round(M),P=Math.round(P),O=Math.round(O),R=Math.round(R),L=Math.round(L),k=Math.round(k),D=Math.round(D)),this.setTexture2D(a,0);var Y=t._isTinted&&t.tintFill;this.batchQuad(C,M,P,O,R,L,k,D,h,l,c,d,F,I,B,N,Y,a,0)},batchQuad:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,y,m){var x=!1;this.vertexCount+6>this.vertexCapacity&&(this.flush(),x=!0,this.setTexture2D(y,m));var T=this.vertexViewF32,w=this.vertexViewU32,b=this.vertexCount*this.vertexComponentCount-1;return T[++b]=t,T[++b]=e,T[++b]=h,T[++b]=l,T[++b]=v,w[++b]=d,T[++b]=i,T[++b]=n,T[++b]=h,T[++b]=c,T[++b]=v,w[++b]=p,T[++b]=s,T[++b]=r,T[++b]=u,T[++b]=c,T[++b]=v,w[++b]=g,T[++b]=t,T[++b]=e,T[++b]=h,T[++b]=l,T[++b]=v,w[++b]=d,T[++b]=s,T[++b]=r,T[++b]=u,T[++b]=c,T[++b]=v,w[++b]=g,T[++b]=o,T[++b]=a,T[++b]=u,T[++b]=l,T[++b]=v,w[++b]=f,this.vertexCount+=6,x},batchTri:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g){var v=!1;this.vertexCount+3>this.vertexCapacity&&(this.flush(),this.setTexture2D(p,g),v=!0);var y=this.vertexViewF32,m=this.vertexViewU32,x=this.vertexCount*this.vertexComponentCount-1;return y[++x]=t,y[++x]=e,y[++x]=o,y[++x]=a,y[++x]=f,m[++x]=u,y[++x]=i,y[++x]=n,y[++x]=o,y[++x]=l,y[++x]=f,m[++x]=c,y[++x]=s,y[++x]=r,y[++x]=h,y[++x]=l,y[++x]=f,m[++x]=d,this.vertexCount+=3,v},batchTexture:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,y,m,x,T,w,b,E,S,A,_,C,M,P,O){this.renderer.setPipeline(this,t);var R=this._tempMatrix1,L=this._tempMatrix2,k=this._tempMatrix3,D=y/i+_,F=m/n+C,I=(y+x)/i+_,B=(m+T)/n+C,N=o,Y=a,X=-g,z=-v;if(t.isCropped){var U=t._crop;N=U.width,Y=U.height,o=U.width,a=U.height;var W=y=U.x,G=m=U.y;c&&(W=x-U.x-U.width),d&&!e.isRenderTexture&&(G=T-U.y-U.height),D=W/i+_,F=G/n+C,I=(W+U.width)/i+_,B=(G+U.height)/n+C,X=-g+y,z=-v+m}d^=!O&&e.isRenderTexture?1:0,c&&(N*=-1,X+=o),d&&(Y*=-1,z+=a);var V=X+N,H=z+Y;L.applyITRS(s,r,u,h,l),R.copyFrom(M.matrix),P?(R.multiplyWithOffset(P,-M.scrollX*f,-M.scrollY*p),L.e=s,L.f=r,R.multiply(L,k)):(L.e-=M.scrollX*f,L.f-=M.scrollY*p,R.multiply(L,k));var j=k.getX(X,z),q=k.getY(X,z),K=k.getX(X,H),J=k.getY(X,H),Z=k.getX(V,H),Q=k.getY(V,H),$=k.getX(V,z),tt=k.getY(V,z);M.roundPixels&&(j=Math.round(j),q=Math.round(q),K=Math.round(K),J=Math.round(J),Z=Math.round(Z),Q=Math.round(Q),$=Math.round($),tt=Math.round(tt)),this.setTexture2D(e,0),this.batchQuad(j,q,K,J,Z,Q,$,tt,D,F,I,B,w,b,E,S,A,e,0)},batchTextureFrame:function(t,e,i,n,s,r,o){this.renderer.setPipeline(this);var a=this._tempMatrix1.copyFrom(r),h=this._tempMatrix2,l=e+t.width,c=i+t.height;o?a.multiply(o,h):h=a;var d=h.getX(e,i),f=h.getY(e,i),p=h.getX(e,c),g=h.getY(e,c),v=h.getX(l,c),y=h.getY(l,c),m=h.getX(l,i),x=h.getY(l,i);this.setTexture2D(t.glTexture,0),n=u.getTintAppendFloatAlpha(n,s),this.batchQuad(d,f,p,g,v,y,m,x,t.u0,t.v0,t.u1,t.v1,n,n,n,n,0,t.glTexture,0)},drawFillRect:function(t,e,i,n,s,r){var o=t+i,a=e+n;this.setTexture2D();var h=u.getTintAppendFloatAlphaAndSwap(s,r);this.batchQuad(t,e,t,a,o,a,o,e,0,0,1,1,h,h,h,h,2)},batchFillRect:function(t,e,i,n,s,r){this.renderer.setPipeline(this);var o=this._tempMatrix3;r&&r.multiply(s,o);var a=t+i,h=e+n,l=o.getX(t,e),u=o.getY(t,e),c=o.getX(t,h),d=o.getY(t,h),f=o.getX(a,h),p=o.getY(a,h),g=o.getX(a,e),v=o.getY(a,e),y=this.currentFrame,m=y.u0,x=y.v0,T=y.u1,w=y.v1;this.batchQuad(l,u,c,d,f,p,g,v,m,x,T,w,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.fillTint.BR,this.tintEffect)},batchFillTriangle:function(t,e,i,n,s,r,o,a){this.renderer.setPipeline(this);var h=this._tempMatrix3;a&&a.multiply(o,h);var l=h.getX(t,e),u=h.getY(t,e),c=h.getX(i,n),d=h.getY(i,n),f=h.getX(s,r),p=h.getY(s,r),g=this.currentFrame,v=g.u0,y=g.v0,m=g.u1,x=g.v1;this.batchTri(l,u,c,d,f,p,v,y,m,x,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.tintEffect)},batchStrokeTriangle:function(t,e,i,n,s,r,o,a,h){var l=this.tempTriangle;l[0].x=t,l[0].y=e,l[0].width=o,l[1].x=i,l[1].y=n,l[1].width=o,l[2].x=s,l[2].y=r,l[2].width=o,l[3].x=t,l[3].y=e,l[3].width=o,this.batchStrokePath(l,o,!1,a,h)},batchFillPath:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix3;i&&i.multiply(e,n);for(var r,o,a=t.length,h=this.polygonCache,l=this.fillTint.TL,u=this.fillTint.TR,c=this.fillTint.BL,d=this.tintEffect,f=0;f0&&H[4]?this.batchQuad(k,D,P,O,H[0],H[1],H[2],H[3],U,W,G,V,B,N,Y,X,I):(j[0]=k,j[1]=D,j[2]=P,j[3]=O,j[4]=1),h&&j[4]?this.batchQuad(C,M,R,L,j[0],j[1],j[2],j[3],U,W,G,V,B,N,Y,X,I):(H[0]=C,H[1]=M,H[2]=R,H[3]=L,H[4]=1)}}});t.exports=d},function(t,e){var i={modelMatrixDirty:!1,viewMatrixDirty:!1,projectionMatrixDirty:!1,modelMatrix:null,viewMatrix:null,projectionMatrix:null,mvpInit:function(){return this.modelMatrixDirty=!0,this.viewMatrixDirty=!0,this.projectionMatrixDirty=!0,this.modelMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},mvpUpdate:function(){var t=this.program;return this.modelMatrixDirty&&(this.renderer.setMatrix4(t,"uModelMatrix",!1,this.modelMatrix),this.modelMatrixDirty=!1),this.viewMatrixDirty&&(this.renderer.setMatrix4(t,"uViewMatrix",!1,this.viewMatrix),this.viewMatrixDirty=!1),this.projectionMatrixDirty&&(this.renderer.setMatrix4(t,"uProjectionMatrix",!1,this.projectionMatrix),this.projectionMatrixDirty=!1),this},modelIdentity:function(){var t=this.modelMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.modelMatrixDirty=!0,this},modelScale:function(t,e,i){var n=this.modelMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.modelMatrixDirty=!0,this},modelTranslate:function(t,e,i){var n=this.modelMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.modelMatrixDirty=!0,this},modelRotateX:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.modelMatrixDirty=!0,this},modelRotateY:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.modelMatrixDirty=!0,this},modelRotateZ:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.modelMatrixDirty=!0,this},viewIdentity:function(){var t=this.viewMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.viewMatrixDirty=!0,this},viewScale:function(t,e,i){var n=this.viewMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.viewMatrixDirty=!0,this},viewTranslate:function(t,e,i){var n=this.viewMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.viewMatrixDirty=!0,this},viewRotateX:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.viewMatrixDirty=!0,this},viewRotateY:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.viewMatrixDirty=!0,this},viewRotateZ:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.viewMatrixDirty=!0,this},viewLoad2D:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=0,e[4]=t[2],e[5]=t[3],e[6]=0,e[7]=0,e[8]=t[4],e[9]=t[5],e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this.viewMatrixDirty=!0,this},viewLoad:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this.viewMatrixDirty=!0,this},projIdentity:function(){var t=this.projectionMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.projectionMatrixDirty=!0,this},projOrtho:function(t,e,i,n,s,r){var o=this.projectionMatrix,a=1/(t-e),h=1/(i-n),l=1/(s-r);return o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this.projectionMatrixDirty=!0,this},projPersp:function(t,e,i,n){var s=this.projectionMatrix,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this.projectionMatrixDirty=!0,this}};t.exports=i},function(t,e,i){var n={};t.exports=n;var s=i(239);n._motionWakeThreshold=.18,n._motionSleepThreshold=.08,n._minBias=.9,n.update=function(t,e){for(var i=e*e*e,s=0;s0&&r.motion=r.sleepThreshold&&n.set(r,!0)):r.sleepCounter>0&&(r.sleepCounter-=1)}else n.set(r,!1)}},n.afterCollisions=function(t,e){for(var i=e*e*e,s=0;sn._motionWakeThreshold*i&&n.set(l,!1)}}}},n.set=function(t,e){var i=t.isSleeping;e?(t.isSleeping=!0,t.sleepCounter=t.sleepThreshold,t.positionImpulse.x=0,t.positionImpulse.y=0,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.anglePrev=t.angle,t.speed=0,t.angularSpeed=0,t.motion=0,i||s.trigger(t,"sleepStart")):(t.isSleeping=!1,t.sleepCounter=0,i&&s.trigger(t,"sleepEnd"))}},function(t,e,i){var n={};t.exports=n;var s=i(37);n.on=function(t,e,i){for(var n,s=e.split(" "),r=0;r0){i||(i={}),n=e.split(" ");for(var l=0;le.length&&(r=e.length),i?(n=e[r-1][i],(s=e[r][i])-t<=t-n?e[r]:e[r-1]):(n=e[r-1],(s=e[r])-t<=t-n?s:n)}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=n,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration}},destroy:function(){this.frame=void 0}});t.exports=n},function(t,e,i){var n=i(52),s={_blendMode:n.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=n[t]),(t|=0)>=-1&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=s},function(t,e){var i={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.scene.sys.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}};t.exports=i},function(t,e,i){var n=i(150),s=i(112);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=s(t)/i);for(var o=0;o=t.right&&(h=1,a+=o-t.right,o=t.right);break;case 1:(a+=e)>=t.bottom&&(h=2,o-=a-t.bottom,a=t.bottom);break;case 2:(o-=e)<=t.left&&(h=3,a-=t.left-o,o=t.left);break;case 3:(a-=e)<=t.top&&(h=0,a=t.top)}return r}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,n=0;n-h&&(c-=h,n+=l),fd.right&&(f=u(f,f+(g-d.right),this.lerp.x)),vd.bottom&&(p=u(p,p+(v-d.bottom),this.lerp.y))):(f=u(f,g-h,this.lerp.x),p=u(p,v-l,this.lerp.y))}this.useBounds&&(f=this.clampX(f),p=this.clampY(p)),this.roundPixels&&(h=Math.round(h),l=Math.round(l)),this.scrollX=f,this.scrollY=p;var y=f+n,m=p+s;this.midPoint.set(y,m);var x=e/o,T=i/o;this.worldView.setTo(y-x/2,m-T/2,x,T),a.applyITRS(this.x+h,this.y+l,this.rotation,o,o),a.translate(-h,-l),this.shakeEffect.preRender()},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.followOffset.set(t,e),this},startFollow:function(t,e,i,n,s,r){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===n&&(n=i),void 0===s&&(s=0),void 0===r&&(r=s),this._follow=t,this.roundPixels=e,i=o(i,0,1),n=o(n,0,1),this.lerp.set(i,n),this.followOffset.set(s,r);var a=this.width/2,h=this.height/2,l=t.x-s,u=t.y-r;return this.midPoint.set(l,u),this.scrollX=l-a,this.scrollY=u-h,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.visible&&(this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.clearRenderToTexture(),this.resetFX(),n.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=f},function(t,e,i){var n=i(33);t.exports=function(t){var e=new n;t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var i=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(i){var s=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16);e.setTo(s,r,o)}return e}},function(t,e){t.exports=function(t,e,i,n){return n<<24|t<<16|e<<8|i}},function(t,e){t.exports=function(t,e,i,n){void 0===n&&(n={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var s=Math.min(t,e,i),r=Math.max(t,e,i),o=r-s,a=0,h=0===r?0:o/r,l=r;return r!==s&&(r===t?a=(e-i)/o+(e16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},function(t,e,i){var n=i(33);t.exports=function(t){return new n(t.r,t.g,t.b,t.a)}},function(t,e,i){var n=i(33);t.exports=function(t){var e=new n,i=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t.toLowerCase());if(i){var s=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10),a=void 0!==i[4]?parseFloat(i[4]):1;e.setTo(s,r,o,255*a)}return e}},function(t,e,i){t.exports={Fade:i(662),Flash:i(663),Pan:i(664),Shake:i(697),Zoom:i(698)}},function(t,e,i){t.exports={In:i(665),Out:i(666),InOut:i(667)}},function(t,e,i){t.exports={In:i(668),Out:i(669),InOut:i(670)}},function(t,e,i){t.exports={In:i(671),Out:i(672),InOut:i(673)}},function(t,e,i){t.exports={In:i(674),Out:i(675),InOut:i(676)}},function(t,e,i){t.exports={In:i(677),Out:i(678),InOut:i(679)}},function(t,e,i){t.exports={In:i(680),Out:i(681),InOut:i(682)}},function(t,e,i){t.exports=i(683)},function(t,e,i){t.exports={In:i(684),Out:i(685),InOut:i(686)}},function(t,e,i){t.exports={In:i(687),Out:i(688),InOut:i(689)}},function(t,e,i){t.exports={In:i(690),Out:i(691),InOut:i(692)}},function(t,e,i){t.exports={In:i(693),Out:i(694),InOut:i(695)}},function(t,e,i){t.exports=i(696)},function(t,e,i){var n=i(0),s=i(29),r=i(314),o=i(2),a=i(6),h=i(7),l=i(169),u=i(1),c=i(174),d=i(162),f=new n({initialize:function(t){void 0===t&&(t={});this.width=a(t,"width",1024),this.height=a(t,"height",768),this.zoom=a(t,"zoom",1),this.resolution=a(t,"resolution",1),this.parent=a(t,"parent",void 0),this.scaleMode=a(t,"scaleMode",0),this.expandParent=a(t,"expandParent",!0),this.autoRound=a(t,"autoRound",!1),this.autoCenter=a(t,"autoCenter",0),this.resizeInterval=a(t,"resizeInterval",500),this.fullscreenTarget=a(t,"fullscreenTarget",null),this.minWidth=a(t,"minWidth",0),this.maxWidth=a(t,"maxWidth",0),this.minHeight=a(t,"minHeight",0),this.maxHeight=a(t,"maxHeight",0);var e=a(t,"scale",null);e&&(this.width=a(e,"width",this.width),this.height=a(e,"height",this.height),this.zoom=a(e,"zoom",this.zoom),this.resolution=a(e,"resolution",this.resolution),this.parent=a(e,"parent",this.parent),this.scaleMode=a(e,"mode",this.scaleMode),this.expandParent=a(e,"expandParent",this.expandParent),this.autoRound=a(e,"autoRound",this.autoRound),this.autoCenter=a(e,"autoCenter",this.autoCenter),this.resizeInterval=a(e,"resizeInterval",this.resizeInterval),this.fullscreenTarget=a(e,"fullscreenTarget",this.fullscreenTarget),this.minWidth=a(e,"min.width",this.minWidth),this.maxWidth=a(e,"max.width",this.maxWidth),this.minHeight=a(e,"min.height",this.minHeight),this.maxHeight=a(e,"max.height",this.maxHeight)),this.renderType=a(t,"type",s.AUTO),this.canvas=a(t,"canvas",null),this.context=a(t,"context",null),this.canvasStyle=a(t,"canvasStyle",null),this.customEnvironment=a(t,"customEnvironment",!1),this.sceneConfig=a(t,"scene",null),this.seed=a(t,"seed",[(Date.now()*Math.random()).toString()]),l.RND=new l.RandomDataGenerator(this.seed),this.gameTitle=a(t,"title",""),this.gameURL=a(t,"url","https://phaser.io"),this.gameVersion=a(t,"version",""),this.autoFocus=a(t,"autoFocus",!0),this.domCreateContainer=a(t,"dom.createContainer",!1),this.domBehindCanvas=a(t,"dom.behindCanvas",!1),this.inputKeyboard=a(t,"input.keyboard",!0),this.inputKeyboardEventTarget=a(t,"input.keyboard.target",window),this.inputKeyboardCapture=a(t,"input.keyboard.capture",[]),this.inputMouse=a(t,"input.mouse",!0),this.inputMouseEventTarget=a(t,"input.mouse.target",null),this.inputMouseCapture=a(t,"input.mouse.capture",!0),this.inputTouch=a(t,"input.touch",r.input.touch),this.inputTouchEventTarget=a(t,"input.touch.target",null),this.inputTouchCapture=a(t,"input.touch.capture",!0),this.inputActivePointers=a(t,"input.activePointers",1),this.inputSmoothFactor=a(t,"input.smoothFactor",0),this.inputWindowEvents=a(t,"input.windowEvents",!0),this.inputGamepad=a(t,"input.gamepad",!1),this.inputGamepadEventTarget=a(t,"input.gamepad.target",window),this.disableContextMenu=a(t,"disableContextMenu",!1),this.audio=a(t,"audio"),this.hideBanner=!1===a(t,"banner",null),this.hidePhaser=a(t,"banner.hidePhaser",!1),this.bannerTextColor=a(t,"banner.text","#ffffff"),this.bannerBackgroundColor=a(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=a(t,"fps",null);var i=a(t,"render",t);this.antialias=a(i,"antialias",!0),this.antialiasGL=a(i,"antialiasGL",!0),this.mipmapFilter=a(i,"mipmapFilter","LINEAR"),this.desynchronized=a(i,"desynchronized",!1),this.roundPixels=a(i,"roundPixels",!1),this.pixelArt=a(i,"pixelArt",1!==this.zoom),this.pixelArt&&(this.antialias=!1,this.roundPixels=!0),this.transparent=a(i,"transparent",!1),this.clearBeforeRender=a(i,"clearBeforeRender",!0),this.premultipliedAlpha=a(i,"premultipliedAlpha",!0),this.failIfMajorPerformanceCaveat=a(i,"failIfMajorPerformanceCaveat",!1),this.powerPreference=a(i,"powerPreference","default"),this.batchSize=a(i,"batchSize",2e3),this.maxLights=a(i,"maxLights",10);var n=a(t,"backgroundColor",0);this.backgroundColor=d(n),0===n&&this.transparent&&(this.backgroundColor.alpha=0),this.preBoot=a(t,"callbacks.preBoot",u),this.postBoot=a(t,"callbacks.postBoot",u),this.physics=a(t,"physics",{}),this.defaultPhysicsSystem=a(this.physics,"default",!1),this.loaderBaseURL=a(t,"loader.baseURL",""),this.loaderPath=a(t,"loader.path",""),this.loaderMaxParallelDownloads=a(t,"loader.maxParallelDownloads",32),this.loaderCrossOrigin=a(t,"loader.crossOrigin",void 0),this.loaderResponseType=a(t,"loader.responseType",""),this.loaderAsync=a(t,"loader.async",!0),this.loaderUser=a(t,"loader.user",""),this.loaderPassword=a(t,"loader.password",""),this.loaderTimeout=a(t,"loader.timeout",0),this.loaderWithCredentials=a(t,"loader.withCredentials",!1),this.installGlobalPlugins=[],this.installScenePlugins=[];var f=a(t,"plugins",null),p=c.DefaultScene;f&&(Array.isArray(f)?this.defaultPlugins=f:h(f)&&(this.installGlobalPlugins=o(f,"global",[]),this.installScenePlugins=o(f,"scene",[]),Array.isArray(f.default)?p=f.default:Array.isArray(f.defaultMerge)&&(p=p.concat(f.defaultMerge)))),this.defaultPlugins=p;var g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=a(t,"images.default",g+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=a(t,"images.missing",g+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),window&&(window.FORCE_WEBGL?this.renderType=s.WEBGL:window.FORCE_CANVAS&&(this.renderType=s.CANVAS))}});t.exports=f},function(t,e,i){t.exports={os:i(116),browser:i(117),features:i(168),input:i(727),audio:i(728),video:i(729),fullscreen:i(730),canvasFeatures:i(315)}},function(t,e,i){var n,s,r,o=i(26),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=(void 0!==document&&(a.supportNewBlendModes=(n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",s="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(r=new Image).onload=function(){var t=new Image;t.onload=function(){var e=o.create(t,6,1).getContext("2d");if(e.globalCompositeOperation="multiply",e.drawImage(r,0,0),e.drawImage(t,2,0),!e.getImageData(2,0,1,1))return!1;var i=e.getImageData(2,0,1,1).data;o.remove(t),a.supportNewBlendModes=255===i[0]&&0===i[1]&&0===i[2]},t.src=n+"/wCKxvRF"+s},r.src=n+"AP804Oa6"+s,!1),a.supportInverseAlpha=function(){var t=o.create(this,2,1).getContext("2d");t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1);var e=t.getImageData(0,0,1,1);if(null===e)return!1;t.putImageData(e,1,0);var i=t.getImageData(1,0,1,1);return i.data[0]===e.data[0]&&i.data[1]===e.data[1]&&i.data[2]===e.data[2]&&i.data[3]===e.data[3]}()),a)},function(t,e){t.exports=function(t,e,i,n){return Math.atan2(n-e,i-t)}},function(t,e){t.exports=function(t){return(t%=2*Math.PI)>=0?t:t+2*Math.PI}},function(t,e){t.exports=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)}},function(t,e){t.exports=function(t,e,i,n){var s=t-i,r=e-n;return s*s+r*r}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t>e-i}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t0?Math.ceil(t):Math.floor(t)}},function(t,e,i){var n=i(3);t.exports=function(t,e,i,s,r,o,a,h){void 0===h&&(h=new n);var l=Math.sin(r),u=Math.cos(r),c=u*o,d=l*o,f=-l*a,p=u*a,g=1/(c*p+f*-d);return h.x=p*g*t+-f*g*e+(s*f-i*p)*g,h.y=c*g*e+-d*g*t+(-s*c+i*d)*g,h}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},clone:function(){return new n(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return Math.sqrt(e*e+i*i+n*n+s*s)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return e*e+i*i+n*n+s*s},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.val;return this.x=r[0]*e+r[4]*i+r[8]*n+r[12]*s,this.y=r[1]*e+r[5]*i+r[9]*n+r[13]*s,this.z=r[2]*e+r[6]*i+r[10]*n+r[14]*s,this.w=r[3]*e+r[7]*i+r[11]*n+r[15]*s,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});n.prototype.sub=n.prototype.subtract,n.prototype.mul=n.prototype.multiply,n.prototype.div=n.prototype.divide,n.prototype.dist=n.prototype.distance,n.prototype.distSq=n.prototype.distanceSq,n.prototype.len=n.prototype.length,n.prototype.lenSq=n.prototype.lengthSq,t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this},fromMat4:function(t){var e=t.val,i=this.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=n,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*r-o*h,c=-l*s+o*a,d=h*s-r*a,f=e*u+i*c+n*d;return f?(f=1/f,t[0]=u*f,t[1]=(-l*i+n*h)*f,t[2]=(o*i-n*r)*f,t[3]=c*f,t[4]=(l*e-n*a)*f,t[5]=(-o*e+n*s)*f,t[6]=d*f,t[7]=(-h*e+i*a)*f,t[8]=(r*e-i*s)*f,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=r*l-o*h,t[1]=n*h-i*l,t[2]=i*o-n*r,t[3]=o*a-s*l,t[4]=e*l-n*a,t[5]=n*s-e*o,t[6]=s*h-r*a,t[7]=i*a-e*h,t[8]=e*r-i*s,this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return e*(l*r-o*h)+i*(-l*s+o*a)+n*(h*s-r*a)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=t.val,d=c[0],f=c[1],p=c[2],g=c[3],v=c[4],y=c[5],m=c[6],x=c[7],T=c[8];return e[0]=d*i+f*r+p*h,e[1]=d*n+f*o+p*l,e[2]=d*s+f*a+p*u,e[3]=g*i+v*r+y*h,e[4]=g*n+v*o+y*l,e[5]=g*s+v*a+y*u,e[6]=m*i+x*r+T*h,e[7]=m*n+x*o+T*l,e[8]=m*s+x*a+T*u,this},translate:function(t){var e=this.val,i=t.x,n=t.y;return e[6]=i*e[0]+n*e[3]+e[6],e[7]=i*e[1]+n*e[4]+e[7],e[8]=i*e[2]+n*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=Math.sin(t),l=Math.cos(t);return e[0]=l*i+h*r,e[1]=l*n+h*o,e[2]=l*s+h*a,e[3]=l*r-h*i,e[4]=l*o-h*n,e[5]=l*a-h*s,this},scale:function(t){var e=this.val,i=t.x,n=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=n*e[3],e[4]=n*e[4],e[5]=n*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,n=t.z,s=t.w,r=e+e,o=i+i,a=n+n,h=e*r,l=e*o,u=e*a,c=i*o,d=i*a,f=n*a,p=s*r,g=s*o,v=s*a,y=this.val;return y[0]=1-(c+f),y[3]=l+v,y[6]=u-g,y[1]=l-v,y[4]=1-(h+f),y[7]=d+p,y[2]=u+g,y[5]=d-p,y[8]=1-(h+c),this},normalFromMat4:function(t){var e=t.val,i=this.val,n=e[0],s=e[1],r=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=e[9],f=e[10],p=e[11],g=e[12],v=e[13],y=e[14],m=e[15],x=n*h-s*a,T=n*l-r*a,w=n*u-o*a,b=s*l-r*h,E=s*u-o*h,S=r*u-o*l,A=c*v-d*g,_=c*y-f*g,C=c*m-p*g,M=d*y-f*v,P=d*m-p*v,O=f*m-p*y,R=x*O-T*P+w*M+b*C-E*_+S*A;return R?(R=1/R,i[0]=(h*O-l*P+u*M)*R,i[1]=(l*C-a*O-u*_)*R,i[2]=(a*P-h*C+u*A)*R,i[3]=(r*P-s*O-o*M)*R,i[4]=(n*O-r*C+o*_)*R,i[5]=(s*C-n*P-o*A)*R,i[6]=(v*S-y*E+m*b)*R,i[7]=(y*w-g*S-m*T)*R,i[8]=(g*E-v*w+m*x)*R,this):null}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},zero:function(){var t=this.val;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,this},xyz:function(t,e,i){this.identity();var n=this.val;return n[12]=t,n[13]=e,n[14]=i,this},scaling:function(t,e,i){this.zero();var n=this.val;return n[0]=t,n[5]=e,n[10]=i,n[15]=1,this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[3],s=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=s,t[11]=t[14],t[12]=n,t[13]=r,t[14]=o,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15],y=e*o-i*r,m=e*a-n*r,x=e*h-s*r,T=i*a-n*o,w=i*h-s*o,b=n*h-s*a,E=l*p-u*f,S=l*g-c*f,A=l*v-d*f,_=u*g-c*p,C=u*v-d*p,M=c*v-d*g,P=y*M-m*C+x*_+T*A-w*S+b*E;return P?(P=1/P,t[0]=(o*M-a*C+h*_)*P,t[1]=(n*C-i*M-s*_)*P,t[2]=(p*b-g*w+v*T)*P,t[3]=(c*w-u*b-d*T)*P,t[4]=(a*A-r*M-h*S)*P,t[5]=(e*M-n*A+s*S)*P,t[6]=(g*x-f*b-v*m)*P,t[7]=(l*b-c*x+d*m)*P,t[8]=(r*C-o*A+h*E)*P,t[9]=(i*A-e*C-s*E)*P,t[10]=(f*w-p*x+v*y)*P,t[11]=(u*x-l*w-d*y)*P,t[12]=(o*S-r*_-a*E)*P,t[13]=(e*_-i*S+n*E)*P,t[14]=(p*m-f*T-g*y)*P,t[15]=(l*T-u*m+c*y)*P,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return t[0]=o*(c*v-d*g)-u*(a*v-h*g)+p*(a*d-h*c),t[1]=-(i*(c*v-d*g)-u*(n*v-s*g)+p*(n*d-s*c)),t[2]=i*(a*v-h*g)-o*(n*v-s*g)+p*(n*h-s*a),t[3]=-(i*(a*d-h*c)-o*(n*d-s*c)+u*(n*h-s*a)),t[4]=-(r*(c*v-d*g)-l*(a*v-h*g)+f*(a*d-h*c)),t[5]=e*(c*v-d*g)-l*(n*v-s*g)+f*(n*d-s*c),t[6]=-(e*(a*v-h*g)-r*(n*v-s*g)+f*(n*h-s*a)),t[7]=e*(a*d-h*c)-r*(n*d-s*c)+l*(n*h-s*a),t[8]=r*(u*v-d*p)-l*(o*v-h*p)+f*(o*d-h*u),t[9]=-(e*(u*v-d*p)-l*(i*v-s*p)+f*(i*d-s*u)),t[10]=e*(o*v-h*p)-r*(i*v-s*p)+f*(i*h-s*o),t[11]=-(e*(o*d-h*u)-r*(i*d-s*u)+l*(i*h-s*o)),t[12]=-(r*(u*g-c*p)-l*(o*g-a*p)+f*(o*c-a*u)),t[13]=e*(u*g-c*p)-l*(i*g-n*p)+f*(i*c-n*u),t[14]=-(e*(o*g-a*p)-r*(i*g-n*p)+f*(i*a-n*o)),t[15]=e*(o*c-a*u)-r*(i*c-n*u)+l*(i*a-n*o),this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return(e*o-i*r)*(c*v-d*g)-(e*a-n*r)*(u*v-d*p)+(e*h-s*r)*(u*g-c*p)+(i*a-n*o)*(l*v-d*f)-(i*h-s*o)*(l*g-c*f)+(n*h-s*a)*(l*p-u*f)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],y=e[15],m=t.val,x=m[0],T=m[1],w=m[2],b=m[3];return e[0]=x*i+T*o+w*u+b*p,e[1]=x*n+T*a+w*c+b*g,e[2]=x*s+T*h+w*d+b*v,e[3]=x*r+T*l+w*f+b*y,x=m[4],T=m[5],w=m[6],b=m[7],e[4]=x*i+T*o+w*u+b*p,e[5]=x*n+T*a+w*c+b*g,e[6]=x*s+T*h+w*d+b*v,e[7]=x*r+T*l+w*f+b*y,x=m[8],T=m[9],w=m[10],b=m[11],e[8]=x*i+T*o+w*u+b*p,e[9]=x*n+T*a+w*c+b*g,e[10]=x*s+T*h+w*d+b*v,e[11]=x*r+T*l+w*f+b*y,x=m[12],T=m[13],w=m[14],b=m[15],e[12]=x*i+T*o+w*u+b*p,e[13]=x*n+T*a+w*c+b*g,e[14]=x*s+T*h+w*d+b*v,e[15]=x*r+T*l+w*f+b*y,this},multiplyLocal:function(t){var e=[],i=this.val,n=t.val;return e[0]=i[0]*n[0]+i[1]*n[4]+i[2]*n[8]+i[3]*n[12],e[1]=i[0]*n[1]+i[1]*n[5]+i[2]*n[9]+i[3]*n[13],e[2]=i[0]*n[2]+i[1]*n[6]+i[2]*n[10]+i[3]*n[14],e[3]=i[0]*n[3]+i[1]*n[7]+i[2]*n[11]+i[3]*n[15],e[4]=i[4]*n[0]+i[5]*n[4]+i[6]*n[8]+i[7]*n[12],e[5]=i[4]*n[1]+i[5]*n[5]+i[6]*n[9]+i[7]*n[13],e[6]=i[4]*n[2]+i[5]*n[6]+i[6]*n[10]+i[7]*n[14],e[7]=i[4]*n[3]+i[5]*n[7]+i[6]*n[11]+i[7]*n[15],e[8]=i[8]*n[0]+i[9]*n[4]+i[10]*n[8]+i[11]*n[12],e[9]=i[8]*n[1]+i[9]*n[5]+i[10]*n[9]+i[11]*n[13],e[10]=i[8]*n[2]+i[9]*n[6]+i[10]*n[10]+i[11]*n[14],e[11]=i[8]*n[3]+i[9]*n[7]+i[10]*n[11]+i[11]*n[15],e[12]=i[12]*n[0]+i[13]*n[4]+i[14]*n[8]+i[15]*n[12],e[13]=i[12]*n[1]+i[13]*n[5]+i[14]*n[9]+i[15]*n[13],e[14]=i[12]*n[2]+i[13]*n[6]+i[14]*n[10]+i[15]*n[14],e[15]=i[12]*n[3]+i[13]*n[7]+i[14]*n[11]+i[15]*n[15],this.fromArray(e)},translate:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[12]=s[0]*e+s[4]*i+s[8]*n+s[12],s[13]=s[1]*e+s[5]*i+s[9]*n+s[13],s[14]=s[2]*e+s[6]*i+s[10]*n+s[14],s[15]=s[3]*e+s[7]*i+s[11]*n+s[15],this},translateXYZ:function(t,e,i){var n=this.val;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this},scale:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[0]=s[0]*e,s[1]=s[1]*e,s[2]=s[2]*e,s[3]=s[3]*e,s[4]=s[4]*i,s[5]=s[5]*i,s[6]=s[6]*i,s[7]=s[7]*i,s[8]=s[8]*n,s[9]=s[9]*n,s[10]=s[10]*n,s[11]=s[11]*n,this},scaleXYZ:function(t,e,i){var n=this.val;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),n=Math.sin(e),s=1-i,r=t.x,o=t.y,a=t.z,h=s*r,l=s*o;return this.fromArray([h*r+i,h*o-n*a,h*a+n*o,0,h*o+n*a,l*o+i,l*a-n*r,0,h*a-n*o,l*a+n*r,s*a*a+i,0,0,0,0,1]),this},rotate:function(t,e){var i=this.val,n=e.x,s=e.y,r=e.z,o=Math.sqrt(n*n+s*s+r*r);if(Math.abs(o)<1e-6)return null;n*=o=1/o,s*=o,r*=o;var a=Math.sin(t),h=Math.cos(t),l=1-h,u=i[0],c=i[1],d=i[2],f=i[3],p=i[4],g=i[5],v=i[6],y=i[7],m=i[8],x=i[9],T=i[10],w=i[11],b=n*n*l+h,E=s*n*l+r*a,S=r*n*l-s*a,A=n*s*l-r*a,_=s*s*l+h,C=r*s*l+n*a,M=n*r*l+s*a,P=s*r*l-n*a,O=r*r*l+h;return i[0]=u*b+p*E+m*S,i[1]=c*b+g*E+x*S,i[2]=d*b+v*E+T*S,i[3]=f*b+y*E+w*S,i[4]=u*A+p*_+m*C,i[5]=c*A+g*_+x*C,i[6]=d*A+v*_+T*C,i[7]=f*A+y*_+w*C,i[8]=u*M+p*P+m*O,i[9]=c*M+g*P+x*O,i[10]=d*M+v*P+T*O,i[11]=f*M+y*P+w*O,this},rotateX:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this},fromRotationTranslation:function(t,e){var i=this.val,n=t.x,s=t.y,r=t.z,o=t.w,a=n+n,h=s+s,l=r+r,u=n*a,c=n*h,d=n*l,f=s*h,p=s*l,g=r*l,v=o*a,y=o*h,m=o*l;return i[0]=1-(f+g),i[1]=c+m,i[2]=d-y,i[3]=0,i[4]=c-m,i[5]=1-(u+g),i[6]=p+v,i[7]=0,i[8]=d+y,i[9]=p-v,i[10]=1-(u+f),i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this},fromQuat:function(t){var e=this.val,i=t.x,n=t.y,s=t.z,r=t.w,o=i+i,a=n+n,h=s+s,l=i*o,u=i*a,c=i*h,d=n*a,f=n*h,p=s*h,g=r*o,v=r*a,y=r*h;return e[0]=1-(d+p),e[1]=u+y,e[2]=c-v,e[3]=0,e[4]=u-y,e[5]=1-(l+p),e[6]=f+g,e[7]=0,e[8]=c+v,e[9]=f-g,e[10]=1-(l+d),e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},frustum:function(t,e,i,n,s,r){var o=this.val,a=1/(e-t),h=1/(n-i),l=1/(s-r);return o[0]=2*s*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*s*h,o[6]=0,o[7]=0,o[8]=(e+t)*a,o[9]=(n+i)*h,o[10]=(r+s)*l,o[11]=-1,o[12]=0,o[13]=0,o[14]=r*s*2*l,o[15]=0,this},perspective:function(t,e,i,n){var s=this.val,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this},perspectiveLH:function(t,e,i,n){var s=this.val;return s[0]=2*i/t,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*i/e,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=-n/(i-n),s[11]=1,s[12]=0,s[13]=0,s[14]=i*n/(i-n),s[15]=0,this},ortho:function(t,e,i,n,s,r){var o=this.val,a=t-e,h=i-n,l=s-r;return a=0===a?a:1/a,h=0===h?h:1/h,l=0===l?l:1/l,o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this},lookAt:function(t,e,i){var n=this.val,s=t.x,r=t.y,o=t.z,a=i.x,h=i.y,l=i.z,u=e.x,c=e.y,d=e.z;if(Math.abs(s-u)<1e-6&&Math.abs(r-c)<1e-6&&Math.abs(o-d)<1e-6)return this.identity();var f=s-u,p=r-c,g=o-d,v=1/Math.sqrt(f*f+p*p+g*g),y=h*(g*=v)-l*(p*=v),m=l*(f*=v)-a*g,x=a*p-h*f;(v=Math.sqrt(y*y+m*m+x*x))?(y*=v=1/v,m*=v,x*=v):(y=0,m=0,x=0);var T=p*x-g*m,w=g*y-f*x,b=f*m-p*y;return(v=Math.sqrt(T*T+w*w+b*b))?(T*=v=1/v,w*=v,b*=v):(T=0,w=0,b=0),n[0]=y,n[1]=T,n[2]=f,n[3]=0,n[4]=m,n[5]=w,n[6]=p,n[7]=0,n[8]=x,n[9]=b,n[10]=g,n[11]=0,n[12]=-(y*s+m*r+x*o),n[13]=-(T*s+w*r+b*o),n[14]=-(f*s+p*r+g*o),n[15]=1,this},yawPitchRoll:function(t,e,i){this.zero(),s.zero(),r.zero();var n=this.val,o=s.val,a=r.val,h=Math.sin(i),l=Math.cos(i);return n[10]=1,n[15]=1,n[0]=l,n[1]=h,n[4]=-h,n[5]=l,h=Math.sin(e),l=Math.cos(e),o[0]=1,o[15]=1,o[5]=l,o[10]=l,o[9]=-h,o[6]=h,h=Math.sin(t),l=Math.cos(t),a[5]=1,a[15]=1,a[0]=l,a[2]=-h,a[8]=h,a[10]=l,this.multiplyLocal(s),this.multiplyLocal(r),this},setWorldMatrix:function(t,e,i,n,o){return this.yawPitchRoll(t.y,t.x,t.z),s.scaling(i.x,i.y,i.z),r.xyz(e.x,e.y,e.z),this.multiplyLocal(s),this.multiplyLocal(r),void 0!==n&&this.multiplyLocal(n),void 0!==o&&this.multiplyLocal(o),this}}),s=new n,r=new n;t.exports=n},function(t,e,i){var n=i(0),s=i(173),r=i(334),o=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),h=new s(1,0,0),l=new s(0,1,0),u=new s,c=new r,d=new n({initialize:function(t,e,i,n){"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},rotationTo:function(t,e){var i=t.x*e.x+t.y*e.y+t.z*e.z;return i<-.999999?(u.copy(h).cross(t).length()<1e-6&&u.copy(l).cross(t),u.normalize(),this.setAxisAngle(u,Math.PI)):i>.999999?(this.x=0,this.y=0,this.z=0,this.w=1,this):(u.copy(t).cross(e),this.x=u.x,this.y=u.y,this.z=u.z,this.w=1+i,this.normalize())},setAxes:function(t,e,i){var n=c.val;return n[0]=e.x,n[3]=e.y,n[6]=e.z,n[1]=i.x,n[4]=i.y,n[7]=i.z,n[2]=-t.x,n[5]=-t.y,n[8]=-t.z,this.fromMat3(c).normalize()},identity:function(){return this.x=0,this.y=0,this.z=0,this.w=1,this},setAxisAngle:function(t,e){e*=.5;var i=Math.sin(e);return this.x=i*t.x,this.y=i*t.y,this.z=i*t.z,this.w=Math.cos(e),this},multiply:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.x,o=t.y,a=t.z,h=t.w;return this.x=e*h+s*r+i*a-n*o,this.y=i*h+s*o+n*r-e*a,this.z=n*h+s*a+e*o-i*r,this.w=s*h-e*r-i*o-n*a,this},slerp:function(t,e){var i=this.x,n=this.y,s=this.z,r=this.w,o=t.x,a=t.y,h=t.z,l=t.w,u=i*o+n*a+s*h+r*l;u<0&&(u=-u,o=-o,a=-a,h=-h,l=-l);var c=1-e,d=e;if(1-u>1e-6){var f=Math.acos(u),p=Math.sin(f);c=Math.sin((1-e)*f)/p,d=Math.sin(e*f)/p}return this.x=c*i+d*o,this.y=c*n+d*a,this.z=c*s+d*h,this.w=c*r+d*l,this},invert:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n,r=s?1/s:0;return this.x=-t*r,this.y=-e*r,this.z=-i*r,this.w=n*r,this},conjugate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},rotateX:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+s*r,this.y=i*o+n*r,this.z=n*o-i*r,this.w=s*o-e*r,this},rotateY:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o-n*r,this.y=i*o+s*r,this.z=n*o+e*r,this.w=s*o-i*r,this},rotateZ:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+i*r,this.y=i*o-e*r,this.z=n*o+s*r,this.w=s*o-n*r,this},calculateW:function(){var t=this.x,e=this.y,i=this.z;return this.w=-Math.sqrt(1-t*t-e*e-i*i),this},fromMat3:function(t){var e,i=t.val,n=i[0]+i[4]+i[8];if(n>0)e=Math.sqrt(n+1),this.w=.5*e,e=.5/e,this.x=(i[7]-i[5])*e,this.y=(i[2]-i[6])*e,this.z=(i[3]-i[1])*e;else{var s=0;i[4]>i[0]&&(s=1),i[8]>i[3*s+s]&&(s=2);var r=o[s],h=o[r];e=Math.sqrt(i[3*s+s]-i[3*r+r]-i[3*h+h]+1),a[s]=.5*e,e=.5/e,a[r]=(i[3*r+s]+i[3*s+r])*e,a[h]=(i[3*h+s]+i[3*s+h])*e,this.x=a[0],this.y=a[1],this.z=a[2],this.w=(i[3*h+r]-i[3*r+h])*e}return this}});t.exports=d},function(t,e,i){var n=i(338),s=i(26),r=i(29),o=i(168);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===r.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!e.customEnvironment&&!e.canvas&&e.renderType!==r.HEADLESS)if(e.renderType===r.CANVAS||e.renderType!==r.CANVAS&&!o.webGL){if(!o.canvas)throw new Error("Cannot create Canvas or WebGL context, aborting.");e.renderType=r.CANVAS}else e.renderType=r.WEBGL;e.antialias||s.disableSmoothing();var a,h,l=t.scale.baseSize,u=l.width,c=l.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=u,t.canvas.height=c):t.canvas=s.create(t,u,c,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||n.setCrisp(t.canvas),e.renderType!==r.HEADLESS&&(a=i(505),h=i(508),e.renderType===r.WEBGL?t.renderer=new h(t):(t.renderer=new a(t),t.context=t.renderer.gameContext))}},function(t,e){t.exports={setCrisp:function(t){return["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"].forEach(function(e){t.style["image-rendering"]=e}),t.style.msInterpolationMode="nearest-neighbor",t},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}}},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_FS","","precision mediump float;","","uniform sampler2D uMainSampler;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.rgb * outTint.a, outTint.a);"," vec4 color = texture;",""," if (outTintEffect == 0.0)"," {"," // Multiply texture tint"," color = texture * texel;"," }"," else if (outTintEffect == 1.0)"," {"," // Solid color + texture alpha"," color.rgb = mix(texture.rgb, outTint.rgb * outTint.a, texture.a);"," color.a = texture.a * texel.a;"," }"," else if (outTintEffect == 2.0)"," {"," // Solid color, no texture"," color = texel;"," }",""," gl_FragColor = color;","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_VS","","precision mediump float;","","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform mat4 uModelMatrix;","","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTintEffect;","attribute vec4 inTint;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main ()","{"," gl_Position = uProjectionMatrix * uViewMatrix * uModelMatrix * vec4(inPosition, 1.0, 1.0);",""," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}","",""].join("\n")},function(t,e,i){var n=i(29);t.exports=function(t){var e=t.config;if(!e.hideBanner){var i="WebGL";e.renderType===n.CANVAS?i="Canvas":e.renderType===n.HEADLESS&&(i="Headless");var s,r=e.audio,o=t.device.audio;if(s=!o.webAudio||r&&r.disableWebAudio?r&&r.noAudio||!o.webAudio&&!o.audioData?"No Audio":"HTML5 Audio":"Web Audio",t.device.browser.ie)window.console&&console.log("Phaser v"+n.VERSION+" / https://phaser.io");else{var a,h="",l=[h];Array.isArray(e.bannerBackgroundColor)?(e.bannerBackgroundColor.forEach(function(t){h=h.concat("%c "),l.push("background: "+t),a=t}),l[l.length-1]="color: "+e.bannerTextColor+"; background: "+a):(h=h.concat("%c "),l.push("color: "+e.bannerTextColor+"; background: "+e.bannerBackgroundColor)),l.push("background: #fff"),e.gameTitle&&(h=h.concat(e.gameTitle),e.gameVersion&&(h=h.concat(" v"+e.gameVersion)),e.hidePhaser||(h=h.concat(" / "))),e.hidePhaser||(h=h.concat("Phaser v"+n.VERSION+" ("+i+" | "+s+")")),h=h.concat(" %c "+e.gameURL),l[0]=h,console.log.apply(console,l)}}}},function(t,e,i){var n=i(0),s=i(6),r=i(1),o=i(343),a=new n({initialize:function(t,e){this.game=t,this.raf=new o,this.started=!1,this.running=!1,this.minFps=s(e,"min",5),this.targetFps=s(e,"target",60),this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=r,this.forceSetTimeOut=s(e,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=s(e,"deltaHistory",10),this.panicMax=s(e,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=s(e,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.startTime+=this.time-this._pauseTime},resetDelta:function(){var t=window.performance.now();this.time=t,this.lastTime=t,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0;for(var e=0;e0||!this.inFocus)&&(this._coolDown--,r=Math.min(r,this._target)),r>this._min&&(r=n[i],r=Math.min(r,this._min)),n[i]=r,this.deltaIndex++,this.deltaIndex>s&&(this.deltaIndex=0),o=0;for(var a=0;athis.nextFpsUpdate&&(this.actualFps=.25*this.framesThisSecond+.75*this.actualFps,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0),this.framesThisSecond++;var h=o/this._target;this.callback(t,o,h),this.lastTime=t,this.frame++},tick:function(){this.step()},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){this.running?this.sleep():t&&(this.startTime+=-this.lastTime+(this.lastTime+window.performance.now())),this.raf.start(this.step.bind(this),this.useRAF),this.running=!0,this.step()},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.callback=r,this.raf=null,this.game=null}});t.exports=a},function(t,e,i){var n=i(0),s=i(1),r=new n({initialize:function(){this.isRunning=!1,this.callback=s,this.tick=0,this.isSetTimeOut=!1,this.timeOutID=null,this.lastTime=0,this.target=0;var t=this;this.step=function e(){var i=window.performance.now();t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.requestAnimationFrame(e)},this.stepTimeout=function e(){var i=Date.now(),n=Math.min(Math.max(2*t.target+t.tick-i,0),t.target);t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.setTimeout(e,n)}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.target=i,this.isRunning=!0,this.timeOutID=e?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=s}});t.exports=r},function(t,e,i){var n=i(18);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e="visibilitychange":["webkit","moz","ms"].forEach(function(t){void 0!==document[t+"Hidden"]&&(document.hidden=function(){return document[t+"Hidden"]},e=t+"visibilitychange")});e&&document.addEventListener(e,function(t){document.hidden||"pause"===t.type?i.emit(n.HIDDEN):i.emit(n.VISIBLE)},!1),window.onblur=function(){i.emit(n.BLUR)},window.onfocus=function(){i.emit(n.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},function(t,e,i){var n=i(346),s=i(26),r=i(6);t.exports=function(t){var e=r(t,"data",[]),i=r(t,"canvas",null),o=r(t,"palette",n),a=r(t,"pixelWidth",1),h=r(t,"pixelHeight",a),l=r(t,"resizeCanvas",!0),u=r(t,"clearCanvas",!0),c=r(t,"preRender",null),d=r(t,"postRender",null),f=Math.floor(Math.abs(e[0].length*a)),p=Math.floor(Math.abs(e.length*h));i||(i=s.create2D(this,f,p),l=!1,u=!1),l&&(i.width=f,i.height=p);var g=i.getContext("2d");u&&g.clearRect(0,0,f,p),c&&c(i,g);for(var v=0;vi;)n-=i;ni.length-2?i.length-1:r+1],c=i[r>i.length-3?i.length-1:r+2];return e.set(n(a,h.x,l.x,u.x,c.x),n(a,h.y,l.y,u.y,c.y))},toJSON:function(){for(var t=[],e=0;e1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}},function(t,e,i){var n=i(116);t.exports=function(t){if("complete"!==document.readyState&&"interactive"!==document.readyState){var e=function(){document.removeEventListener("deviceready",e,!0),document.removeEventListener("DOMContentLoaded",e,!0),window.removeEventListener("load",e,!0),t()};document.body?n.cordova?document.addEventListener("deviceready",e,!1):(document.addEventListener("DOMContentLoaded",e,!0),window.addEventListener("load",e,!0)):window.setTimeout(e,20)}else t()}},function(t,e,i){var n=i(176);t.exports=function(t,e){var i=window.screen,s=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);if(s&&"string"==typeof s.type)return s.type;if("string"==typeof s)return s;if(i)return i.height>i.width?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if("number"==typeof window.orientation)return 0===window.orientation||180===window.orientation?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return n.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return n.ORIENTATION.LANDSCAPE}return e>t?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE}},function(t,e){t.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},function(t,e){t.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},function(t,e){t.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5}},function(t,e){t.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},function(t,e){t.exports=function(t){var e;return""!==t&&("string"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e||(e=document.body),e}},function(t,e){t.exports=function(t){var e="";try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):(e=new ActiveXObject("Microsoft.XMLDOM")).loadXML(t)}catch(t){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null}},function(t,e,i){var n=i(0),s=i(178),r=i(9),o=i(54),a=i(18),h=i(365),l=i(366),u=i(367),c=i(368),d=i(30),f=i(332),p=new n({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new r,this.isOver=!0,this.defaultCursor="",this.keyboard=e.inputKeyboard?new h(this):null,this.mouse=e.inputMouse?new l(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers,e.inputTouch&&1===this.pointersTotal&&(this.pointersTotal=2);for(var i=0;i<=this.pointersTotal;i++){var n=new u(this,i);n.smoothFactor=e.inputSmoothFactor,this.pointers.push(n)}this.mousePointer=e.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(a.BOOT,this.boot,this)},boot:function(){this.canvas=this.game.canvas,this.scaleManager=this.game.scale,this.events.emit(o.MANAGER_BOOT),this.game.events.on(a.PRE_RENDER,this.preRender,this),this.game.events.once(a.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(o.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(o.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(o.MANAGER_UPDATE);for(var n=0;n10&&(t=10-this.pointersTotal);for(var i=0;i-1&&e.preventDefault()}},this.onKeyUp=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.useQueue||t.manager.events.emit(o.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}};var e=this.target;e&&(e.addEventListener("keydown",this.onKeyDown,!1),e.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var t=this.target;t.removeEventListener("keydown",this.onKeyDown,!1),t.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},removeCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(r.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});t.exports=l},function(t,e,i){var n=i(0),s=i(168),r=i(54),o=i(0),a=new n({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=o,this.onMouseDown=o,this.onMouseUp=o,this.onMouseDownWindow=o,this.onMouseUpWindow=o,this.onMouseOver=o,this.onMouseOut=o,this.onMouseWheel=o,this.pointerLockChange=o,t.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.capture=t.inputMouseCapture,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return document.body.addEventListener("contextmenu",function(t){return t.preventDefault(),!1}),this},requestPointerLock:function(){if(s.pointerLock){var t=this.target;t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock()}},releasePointerLock:function(){s.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this,e=this.manager.canvas,i=window&&window.focus&&this.manager.game.config.autoFocus;this.onMouseMove=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseMove(e),t.capture&&e.preventDefault())},this.onMouseDown=function(n){i&&window.focus(),!n.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseDown(n),t.capture&&n.target===e&&n.preventDefault())},this.onMouseDownWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseDown(i)},this.onMouseUp=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseUp(i),t.capture&&i.target===e&&i.preventDefault())},this.onMouseUpWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseUp(i)},this.onMouseOver=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOver(e)},this.onMouseOut=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOut(e)},this.onMouseWheel=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.onMouseWheel(e)};var n=this.target;if(n){var r={passive:!0},o={passive:!1};n.addEventListener("mousemove",this.onMouseMove,this.capture?o:r),n.addEventListener("mousedown",this.onMouseDown,this.capture?o:r),n.addEventListener("mouseup",this.onMouseUp,this.capture?o:r),n.addEventListener("mouseover",this.onMouseOver,this.capture?o:r),n.addEventListener("mouseout",this.onMouseOut,this.capture?o:r),n.addEventListener("wheel",this.onMouseWheel,this.capture?o:r),window&&this.manager.game.config.inputWindowEvents&&(window.addEventListener("mousedown",this.onMouseDownWindow,o),window.addEventListener("mouseup",this.onMouseUpWindow,o)),s.pointerLock&&(this.pointerLockChange=function(e){var i=t.target;t.locked=document.pointerLockElement===i||document.mozPointerLockElement===i||document.webkitPointerLockElement===i,t.manager.onPointerLockChange(e)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mouseover",this.onMouseOver),t.removeEventListener("mouseout",this.onMouseOut),window&&(window.removeEventListener("mousedown",this.onMouseDownWindow),window.removeEventListener("mouseup",this.onMouseUpWindow)),s.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=a},function(t,e,i){var n=i(316),s=i(0),r=i(53),o=i(144),a=i(326),h=i(3),l=new s({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new h,this.prevPosition=new h,this.midPoint=new h(-1,-1),this.velocity=new h,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){var e=this.x,i=this.y;1!==t.resolution&&(e+=t._x,i+=t._y);var n=t.getWorldPoint(e,i);return this.worldX=n.x,this.worldY=n.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t=this.position.x,e=this.position.y,i=this.midPoint.x,s=this.midPoint.y;if(t!==i||e!==s){var r=a(this.motionFactor,i,t),h=a(this.motionFactor,s,e);o(r,t,.1)&&(r=t),o(h,e,.1)&&(h=e),this.midPoint.set(r,h);var l=t-r,u=e-h;this.velocity.set(l,u),this.angle=n(r,h,t,e),this.distance=Math.sqrt(l*l+u*u)}},up:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=t.timeStamp),this.isDown=!1,this.wasTouch=!1},down:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=t.timeStamp),this.isDown=!0,this.wasTouch=!1},move:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.button&&!this.isDown},rightButtonReleased:function(){return 2===this.button&&!this.isDown},middleButtonReleased:function(){return 1===this.button&&!this.isDown},backButtonReleased:function(){return 3===this.button&&!this.isDown},forwardButtonReleased:function(){return 4===this.button&&!this.isDown},getDistance:function(){return this.isDown?r(this.downX,this.downY,this.x,this.y):r(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,n=this.prevPosition.y,s=this.position.x,r=this.position.y,o=0;o0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),t.events.on(a.PRE_STEP,this.step,this),t.events.once(a.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(t){this.getParent(t),this.getParentBounds();var e=t.width,i=t.height,s=t.scaleMode,r=t.resolution,o=t.zoom,a=t.autoRound;if("string"==typeof e){var h=this.parentSize.width;0===h&&(h=window.innerWidth);var l=parseInt(e,10)/100;e=Math.floor(h*l)}if("string"==typeof i){var c=this.parentSize.height;0===c&&(c=window.innerHeight);var d=parseInt(i,10)/100;i=Math.floor(c*d)}this.resolution=1,this.scaleMode=s,this.autoRound=a,this.autoCenter=t.autoCenter,this.resizeInterval=t.resizeInterval,a&&(e=Math.floor(e),i=Math.floor(i)),this.gameSize.setSize(e,i),o===n.ZOOM.MAX_ZOOM&&(o=this.getMaxZoom()),this.zoom=o,1!==o&&(this._resetZoom=!0),this.baseSize.setSize(e*r,i*r),a&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),t.minWidth>0&&this.displaySize.setMin(t.minWidth*o,t.minHeight*o),t.maxWidth>0&&this.displaySize.setMax(t.maxWidth*o,t.maxHeight*o),this.displaySize.setSize(e,i),this.orientation=u(e,i)},getParent:function(t){var e=t.parent;if(null!==e){if(this.parent=l(e),this.parentIsWindow=this.parent===document.body,t.expandParent&&t.scaleMode!==n.SCALE_MODE.NONE){var i=this.parent.getBoundingClientRect();(this.parentIsWindow||0===i.height)&&(document.documentElement.style.height="100%",document.body.style.height="100%",i=this.parent.getBoundingClientRect(),this.parentIsWindow||0!==i.height||(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}t.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=l(t.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var t=this.parentSize,e=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(e.height=h(!0));var i=this.resolution,n=e.width*i,s=e.height*i;return(t.width!==n||t.height!==s)&&(t.setSize(n,s),!0)},lockOrientation:function(t){var e=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return!!e&&e(t)},setParentSize:function(t,e){return this.parentSize.setSize(t,e),this.refresh()},setGameSize:function(t,e){var i=this.autoRound,n=this.resolution;i&&(t=Math.floor(t),e=Math.floor(e));var s=this.width,r=this.height;return this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),i&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t,e),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(s,r)},resize:function(t,e){var i=this.zoom,n=this.resolution,s=this.autoRound;s&&(t=Math.floor(t),e=Math.floor(e));var r=this.width,o=this.height;this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),s&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t*i*n,e*i*n),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var a=this.canvas.style,h=t*i,l=e*i;return s&&(h=Math.floor(h),l=Math.floor(l)),h===t&&l===e||(a.width=h+"px",a.height=l+"px"),this.refresh(r,o)},setZoom:function(t){return this.zoom=t,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},refresh:function(t,e){void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var i=this.game.domContainer;if(i){this.baseSize.setCSS(i);var n=this.canvas.style,s=i.style;s.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",s.marginLeft=n.marginLeft,s.marginTop=n.marginTop}return this.emit(o.RESIZE,this.gameSize,this.baseSize,this.displaySize,this.resolution,t,e),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var t=u(this.width,this.height);t!==this.orientation&&(this.orientation=t,this.emit(o.ORIENTATION_CHANGE,t))}},updateScale:function(){var t,e,i=this.canvas.style,s=this.gameSize.width,r=this.gameSize.height,o=this.zoom,a=this.autoRound;this.scaleMode===n.SCALE_MODE.NONE?(this.displaySize.setSize(s*o*1,r*o*1),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this._resetZoom&&(i.width=t+"px",i.height=e+"px",this._resetZoom=!1)):this.scaleMode===n.SCALE_MODE.RESIZE?(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(1*this.displaySize.width,1*this.displaySize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this.canvas.width=t,this.canvas.height=e):(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),i.width=t+"px",i.height=e+"px"),this.getParentBounds(),this.updateCenter()},getMaxZoom:function(){var t=p(this.parentSize.width,this.gameSize.width,0,!0),e=p(this.parentSize.height,this.gameSize.height,0,!0);return Math.max(Math.min(t,e),1)},updateCenter:function(){var t=this.autoCenter;if(t!==n.CENTER.NO_CENTER){var e=this.canvas,i=e.style,s=e.getBoundingClientRect(),r=s.width,o=s.height,a=Math.floor((this.parentSize.width-r)/2),h=Math.floor((this.parentSize.height-o)/2);t===n.CENTER.CENTER_HORIZONTALLY?h=0:t===n.CENTER.CENTER_VERTICALLY&&(a=0),i.marginLeft=a+"px",i.marginTop=h+"px"}},updateBounds:function(){var t=this.canvasBounds,e=this.canvas.getBoundingClientRect();t.x=e.left+(window.pageXOffset||0)-(document.documentElement.clientLeft||0),t.y=e.top+(window.pageYOffset||0)-(document.documentElement.clientTop||0),t.width=e.width,t.height=e.height},transformX:function(t){return(t-this.canvasBounds.left)*this.displayScale.x},transformY:function(t){return(t-this.canvasBounds.top)*this.displayScale.y},startFullscreen:function(t){void 0===t&&(t={navigationUI:"hide"});var e=this.fullscreen;if(e.available){if(!e.active){var i,n=this.getFullscreenTarget();(i=e.keyboard?n[e.request](Element.ALLOW_KEYBOARD_INPUT):n[e.request](t))?i.then(this.fullscreenSuccessHandler.bind(this)).catch(this.fullscreenErrorHandler.bind(this)):e.active?this.fullscreenSuccessHandler():this.fullscreenErrorHandler()}}else this.emit(o.FULLSCREEN_UNSUPPORTED)},fullscreenSuccessHandler:function(){this.getParentBounds(),this.refresh(),this.emit(o.ENTER_FULLSCREEN)},fullscreenErrorHandler:function(t){this.removeFullscreenTarget(),this.emit(o.FULLSCREEN_FAILED,t)},getFullscreenTarget:function(){if(!this.fullscreenTarget){var t=document.createElement("div");t.style.margin="0",t.style.padding="0",t.style.width="100%",t.style.height="100%",this.fullscreenTarget=t,this._createdFullscreenTarget=!0}this._createdFullscreenTarget&&(this.canvas.parentNode.insertBefore(this.fullscreenTarget,this.canvas),this.fullscreenTarget.appendChild(this.canvas));return this.fullscreenTarget},removeFullscreenTarget:function(){if(this._createdFullscreenTarget){var t=this.fullscreenTarget;if(t&&t.parentNode){var e=t.parentNode;e.insertBefore(this.canvas,t),e.removeChild(t)}}},stopFullscreen:function(){var t=this.fullscreen;if(!t.available)return this.emit(o.FULLSCREEN_UNSUPPORTED),!1;t.active&&document[t.cancel](),this.removeFullscreenTarget(),this.getParentBounds(),this.emit(o.LEAVE_FULLSCREEN),this.refresh()},toggleFullscreen:function(t){this.fullscreen.active?this.stopFullscreen():this.startFullscreen(t)},startListeners:function(){var t=this,e=this.listeners;if(e.orientationChange=function(){t._checkOrientation=!0,t.dirty=!0},e.windowResize=function(){t.dirty=!0},window.addEventListener("orientationchange",e.orientationChange,!1),window.addEventListener("resize",e.windowResize,!1),this.fullscreen.available){e.fullScreenChange=function(e){return t.onFullScreenChange(e)},e.fullScreenError=function(e){return t.onFullScreenError(e)};["webkit","moz",""].forEach(function(t){document.addEventListener(t+"fullscreenchange",e.fullScreenChange,!1),document.addEventListener(t+"fullscreenerror",e.fullScreenError,!1)}),document.addEventListener("MSFullscreenChange",e.fullScreenChange,!1),document.addEventListener("MSFullscreenError",e.fullScreenError,!1)}},onFullScreenChange:function(){document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||this.stopFullscreen()},onFullScreenError:function(){this.removeFullscreenTarget()},step:function(t,e){this.parent&&(this._lastCheck+=e,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var t=this.listeners;window.removeEventListener("orientationchange",t.orientationChange,!1),window.removeEventListener("resize",t.windowResize,!1);["webkit","moz",""].forEach(function(e){document.removeEventListener(e+"fullscreenchange",t.fullScreenChange,!1),document.removeEventListener(e+"fullscreenerror",t.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",t.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",t.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===n.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===n.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=v},function(t,e,i){var n=i(22),s=i(0),r=i(93),o=i(3),a=new s({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===n&&(n=null),this._width=t,this._height=e,this._parent=n,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(t){return void 0===t&&(t=0),this.aspectMode=t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=n(t,0,this.maxWidth),this.minHeight=n(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=n(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=n(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case a.NONE:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(r(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(t,e,!0);break;case a.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minWidth,this.maxWidth),e&&this._parent&&t>this._parent.width&&(t=Math.max(this.minWidth,this._parent.width)),t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minHeight,this.maxHeight),e&&this._parent&&t>this._parent.height&&(t=Math.max(this.minHeight,this._parent.height)),t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var n=this.snapTo,s=0===e?1:t/e;return i&&this.aspectRatio>s||!i&&this.aspectRatio0&&(t=(e=r(e,n.y))*this.aspectRatio)):(i&&this.aspectRatios)&&(t=(e=r(e,n.y))*this.aspectRatio,n.x>0&&(e=(t=r(t,n.x))*(1/this.aspectRatio))),this._width=t,this._height=e,this},fitTo:function(t,e){return this.constrain(t,e,!0)},envelop:function(t,e){return this.constrain(t,e,!1)},setWidth:function(t){return this.setSize(t,this._height)},setHeight:function(t){return this.setSize(this._width,t)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(t){t&&t.style&&(t.style.width=this._width+"px",t.style.height=this._height+"px")},copy:function(t){return t.setAspectMode(this.aspectMode),t.aspectRatio=this.aspectRatio,t.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(t){this.setSize(t,this._height)}},height:{get:function(){return this._height},set:function(t){this.setSize(this._width,t)}}});a.NONE=0,a.WIDTH_CONTROLS_HEIGHT=1,a.HEIGHT_CONTROLS_WIDTH=2,a.FIT=3,a.ENVELOP=4,t.exports=a},function(t,e,i){var n=i(0),s=i(123),r=i(19),o=i(18),a=i(6),h=i(82),l=i(1),u=i(373),c=i(179),d=new n({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,e){Array.isArray(e)||(e=[e]);for(var i=0;i-1&&(delete this.keys[n],this.scenes.splice(i,1),this._start.indexOf(n)>-1&&(i=this._start.indexOf(n),this._start.splice(i,1)),e.sys.destroy())}return this},bootScene:function(t){var e,i=t.sys,n=i.settings;t.init&&(t.init.call(t,n.data),n.status=s.INIT,n.isTransition&&i.events.emit(r.TRANSITION_INIT,n.transitionFrom,n.transitionDuration)),i.load&&(e=i.load).reset(),e&&t.preload?(t.preload.call(t),0===e.list.size?this.create(t):(n.status=s.LOADING,e.once(h.COMPLETE,this.loadComplete,this),e.start())):this.create(t)},loadComplete:function(t){var e=t.scene;this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(e)},payloadComplete:function(t){this.bootScene(t.scene)},update:function(t,e){this.processQueue(),this.isProcessing=!0;for(var i=this.scenes.length-1;i>=0;i--){var n=this.scenes[i].sys;n.settings.status>s.START&&n.settings.status<=s.RUNNING&&n.step(t,e)}},render:function(t){for(var e=0;e=s.LOADING&&i.settings.status0){var i=this.getScene(t);this.scenes.splice(e,1),this.scenes.unshift(i)}}return this},moveDown:function(t){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e>0){var i=e-1,n=this.getScene(t),s=this.getAt(i);this.scenes[e]=s,this.scenes[i]=n}}return this},moveUp:function(t){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e=r.x&&t=r.y&&e=r.x&&t=r.y&&e-1){var o=this.context.getImageData(t,e,1,1);o.data[0]=i,o.data[1]=n,o.data[2]=s,o.data[3]=r,this.context.putImageData(o,t,e)}return this},putData:function(t,e,i,n,s,r,o){return void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=t.width),void 0===o&&(o=t.height),this.context.putImageData(t,e,i,n,s,r,o),this},getData:function(t,e,i,n){return t=s(Math.floor(t),0,this.width-1),e=s(Math.floor(e),0,this.height-1),i=s(i,1,this.width-t),n=s(n,1,this.height-e),this.context.getImageData(t,e,i,n)},getPixel:function(t,e,i){i||(i=new r);var n=this.getIndex(t,e);if(n>-1){var s=this.data,o=s[n+0],a=s[n+1],h=s[n+2],l=s[n+3];i.setTo(o,a,h,l)}return i},getPixels:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=i),t=Math.abs(Math.round(t)),e=Math.abs(Math.round(e));for(var o=s(t,0,this.width),a=s(t+i,0,this.width),h=s(e,0,this.height),l=s(e+n,0,this.height),u=new r,c=[],d=h;d0)&&(!!n.prototype.pause.call(this)&&(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(r.PAUSE,this),!0)))},resume:function(){return!this.manager.isLocked(this,"resume")&&(!(this.startTime>0)&&(!!n.prototype.resume.call(this)&&(!!this.pickAndPlayAudioTag()&&(this.emit(r.RESUME,this),!0))))},stop:function(){return!this.manager.isLocked(this,"stop")&&(!!n.prototype.stop.call(this)&&(this.stopAndReleaseAudioTag(),this.emit(r.STOP,this),!0))},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var t=this.currentConfig.seek,e=this.currentConfig.delay,i=(this.currentMarker?this.currentMarker.start:0)+t;return this.previousTime=i,this.audio.currentTime=i,this.applyConfig(),0===e?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+1e3*e,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var t=0;t0)this.startTime=n-this.manager.loopEndOffset?(this.audio.currentTime=i+Math.max(0,s-n),s=this.audio.currentTime):s=n)return this.reset(),this.stopAndReleaseAudioTag(),void this.emit(r.COMPLETE,this);this.previousTime=s}},destroy:function(){n.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=this.currentConfig.volume*this.manager.volume)},calculateRate:function(){n.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(t){this.currentConfig.mute=t,this.manager.isLocked(this,"mute",t)||(this.updateMute(),this.emit(r.MUTE,this,t))}},setMute:function(t){return this.mute=t,this},volume:{get:function(){return this.currentConfig.volume},set:function(t){this.currentConfig.volume=t,this.manager.isLocked(this,"volume",t)||(this.updateVolume(),this.emit(r.VOLUME,this,t))}},setVolume:function(t){return this.volume=t,this},rate:{get:function(){return this.currentConfig.rate},set:function(t){this.currentConfig.rate=t,this.manager.isLocked(this,r.RATE,t)||(this.calculateRate(),this.emit(r.RATE,this,t))}},setRate:function(t){return this.rate=t,this},detune:{get:function(){return this.currentConfig.detune},set:function(t){this.currentConfig.detune=t,this.manager.isLocked(this,r.DETUNE,t)||(this.calculateRate(),this.emit(r.DETUNE,this,t))}},setDetune:function(t){return this.detune=t,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(t){this.manager.isLocked(this,"seek",t)||this.startTime>0||(this.isPlaying||this.isPaused)&&(t=Math.min(Math.max(0,t),this.duration),this.isPlaying?(this.previousTime=t,this.audio.currentTime=t):this.isPaused&&(this.currentConfig.seek=t),this.emit(r.SEEK,this,t))}},setSeek:function(t){return this.seek=t,this},loop:{get:function(){return this.currentConfig.loop},set:function(t){this.currentConfig.loop=t,this.manager.isLocked(this,"loop",t)||(this.audio&&(this.audio.loop=t),this.emit(r.LOOP,this,t))}},setLoop:function(t){return this.loop=t,this}});t.exports=o},function(t,e,i){var n=i(124),s=i(0),r=i(9),o=i(383),a=i(1),h=new s({Extends:r,initialize:function(t){r.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){var i=new o(this,t,e);return this.sounds.push(i),i},addAudioSprite:function(t,e){var i=this.add(t,e);return i.spritemap={},i},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return n.prototype.remove.call(this,t)},removeByKey:function(t){return n.prototype.removeByKey.call(this,t)},pauseAll:a,resumeAll:a,stopAll:a,update:a,setRate:a,setDetune:a,setMute:a,setVolume:a,forEachActiveSound:function(t,e){n.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){n.prototype.destroy.call(this)}});t.exports=h},function(t,e,i){var n=i(125),s=i(0),r=i(9),o=i(17),a=new s({Extends:r,initialize:function(t,e,i){void 0===i&&(i={}),r.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=o({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},i),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!1},updateMarker:function(t){return!1},removeMarker:function(t){return null},play:function(t,e){return!1},pause:function(){return!1},resume:function(){return!1},stop:function(){return!1},destroy:function(){this.manager.remove(this),n.prototype.destroy.call(this)}});t.exports=a},function(t,e,i){var n=i(385),s=i(124),r=i(0),o=i(59),a=i(386),h=new r({Extends:s,initialize:function(t){this.context=this.createAudioContext(t),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked="suspended"===this.context.state&&("ontouchstart"in window||"onclick"in window),s.call(this,t),this.locked&&this.unlock()},createAudioContext:function(t){var e=t.config.audio;return e&&e.context?(e.context.resume(),e.context):new AudioContext},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){var i=new a(this,t,e);return this.sounds.push(i),i},decodeAudio:function(t,e){var i;i=Array.isArray(t)?t:[{key:t,data:e}];for(var s=this.game.cache.audio,r=i.length,a=0;a>4,u[h++]=(15&i)<<4|s>>2,u[h++]=(3&s)<<6|63&r;return l}},function(t,e,i){var n=i(125),s=i(0),r=i(59),o=new s({Extends:n,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('There is no audio asset with key "'+e+'" in the audio cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.context.createGain(),this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),this.volumeNode.connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,n.call(this,t,e,i)},play:function(t,e){return!!n.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(r.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime-1;r--)n[s][r]=t[r][s]}return n}},function(t,e){function i(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function n(t,e){return te?1:0}var s=function(t,e,r,o,a){for(void 0===r&&(r=0),void 0===o&&(o=t.length-1),void 0===a&&(a=n);o>r;){if(o-r>600){var h=o-r+1,l=e-r+1,u=Math.log(h),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(h-c)/h)*(l-h/2<0?-1:1),f=Math.max(r,Math.floor(e-l*c/h+d)),p=Math.min(o,Math.floor(e+(h-l)*c/h+d));s(t,e,f,p,a)}var g=t[e],v=r,y=o;for(i(t,r,e),a(t[o],g)>0&&i(t,r,o);v0;)y--}0===a(t[r],g)?i(t,r,y):i(t,++y,o),y<=e&&(r=y+1),e<=y&&(o=y-1)}};t.exports=s},function(t,e,i){var n=i(6),s=i(114),r=function(t,e,i){for(var n=[],s=0;s0?s.delayedPlay(d,r,o):s.load(r)}return t}},function(t,e,i){var n=i(12);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=Math.min(t.x,e.x),r=Math.min(t.y,e.y),o=Math.max(t.right,e.right)-s,a=Math.max(t.bottom,e.bottom)-r;return i.setTo(s,r,o,a)}},function(t,e,i){var n=i(0),s=i(11),r=i(953),o=i(13),a=i(7),h=i(177),l=i(19),u=i(333),c=new n({Extends:o,Mixins:[s.AlphaSingle,s.BlendMode,s.Depth,s.Origin,s.ScrollFactor,s.Transform,s.Visible,r],initialize:function(t,e,i,n,s,r){o.call(this,t,"DOMElement"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,this.rotate3dAngle="deg",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(e,i),"string"==typeof n?"#"===n[0]?this.setElement(n.substr(1),s,r):this.createElement(n,s,r):n&&this.setElement(n,s,r),t.sys.events.on(l.SLEEP,this.handleSceneEvent,this),t.sys.events.on(l.WAKE,this.handleSceneEvent,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?"block":"none")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+"px"}},addListener:function(t){if(this.node){t=t.split(" ");for(var e=0;e>>16,m=(65280&p)>>>8,x=255&p,c.strokeStyle="rgba("+y+","+m+","+x+","+d+")",c.lineWidth=v,T+=3;break;case n.FILL_STYLE:g=l[T+1],f=l[T+2],y=(16711680&g)>>>16,m=(65280&g)>>>8,x=255&g,c.fillStyle="rgba("+y+","+m+","+x+","+f+")",T+=2;break;case n.BEGIN_PATH:c.beginPath();break;case n.CLOSE_PATH:c.closePath();break;case n.FILL_PATH:h||c.fill();break;case n.STROKE_PATH:h||c.stroke();break;case n.FILL_RECT:h?c.rect(l[T+1],l[T+2],l[T+3],l[T+4]):c.fillRect(l[T+1],l[T+2],l[T+3],l[T+4]),T+=4;break;case n.FILL_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.fill(),T+=6;break;case n.STROKE_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.stroke(),T+=6;break;case n.LINE_TO:c.lineTo(l[T+1],l[T+2]),T+=2;break;case n.MOVE_TO:c.moveTo(l[T+1],l[T+2]),T+=2;break;case n.LINE_FX_TO:c.lineTo(l[T+1],l[T+2]),T+=5;break;case n.MOVE_FX_TO:c.moveTo(l[T+1],l[T+2]),T+=5;break;case n.SAVE:c.save();break;case n.RESTORE:c.restore();break;case n.TRANSLATE:c.translate(l[T+1],l[T+2]),T+=2;break;case n.SCALE:c.scale(l[T+1],l[T+2]),T+=2;break;case n.ROTATE:c.rotate(l[T+1]),T+=1;break;case n.GRADIENT_FILL_STYLE:T+=5;break;case n.GRADIENT_LINE_STYLE:T+=6;break;case n.SET_TEXTURE:T+=2}c.restore()}}},function(t,e,i){var n=i(0),s=i(2),r=new n({initialize:function(t,e,i,n,r){if("object"==typeof t){var o=t;t=s(o,"x",0),e=s(o,"y",0),i=s(o,"power",0),n=s(o,"epsilon",100),r=s(o,"gravity",50)}else void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=100),void 0===r&&(r=50);this.x=t,this.y=e,this.active=!0,this._gravity=r,this._power=0,this._epsilon=0,this.power=i,this.epsilon=n},update:function(t,e){var i=this.x-t.x,n=this.y-t.y,s=i*i+n*n;if(0!==s){var r=Math.sqrt(s);s0},resetPosition:function(){this.x=0,this.y=0},fire:function(t,e){var i=this.emitter;this.frame=i.getFrame(),i.emitZone&&i.emitZone.getPoint(this),void 0===t?(i.follow&&(this.x+=i.follow.x+i.followOffset.x),this.x+=i.x.onEmit(this,"x")):this.x+=t,void 0===e?(i.follow&&(this.y+=i.follow.y+i.followOffset.y),this.y+=i.y.onEmit(this,"y")):this.y+=e,this.life=i.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0;var n=i.speedX.onEmit(this,"speedX"),o=i.speedY?i.speedY.onEmit(this,"speedY"):n;if(i.radial){var a=s(i.angle.onEmit(this,"angle"));this.velocityX=Math.cos(a)*Math.abs(n),this.velocityY=Math.sin(a)*Math.abs(o)}else if(i.moveTo){var h=i.moveToX.onEmit(this,"moveToX"),l=i.moveToY?i.moveToY.onEmit(this,"moveToY"):h,u=Math.atan2(l-this.y,h-this.x),c=r(this.x,this.y,h,l)/(this.life/1e3);this.velocityX=Math.cos(u)*c,this.velocityY=Math.sin(u)*c}else this.velocityX=n,this.velocityY=o;i.acceleration&&(this.accelerationX=i.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=i.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=i.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=i.maxVelocityY.onEmit(this,"maxVelocityY"),this.delayCurrent=i.delay.onEmit(this,"delay"),this.scaleX=i.scaleX.onEmit(this,"scaleX"),this.scaleY=i.scaleY?i.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=i.rotate.onEmit(this,"rotate"),this.rotation=s(this.angle),this.bounce=i.bounce.onEmit(this,"bounce"),this.alpha=i.alpha.onEmit(this,"alpha"),this.tint=i.tint.onEmit(this,"tint")},computeVelocity:function(t,e,i,n){var s=this.velocityX,r=this.velocityY,o=this.accelerationX,a=this.accelerationY,h=this.maxVelocityX,l=this.maxVelocityY;s+=t.gravityX*i,r+=t.gravityY*i,o&&(s+=o*i),a&&(r+=a*i),s>h?s=h:s<-h&&(s=-h),r>l?r=l:r<-l&&(r=-l),this.velocityX=s,this.velocityY=r;for(var u=0;ue.right&&t.collideRight&&(this.x=e.right,this.velocityX*=i),this.ye.bottom&&t.collideBottom&&(this.y=e.bottom,this.velocityY*=i)},update:function(t,e,i){if(this.delayCurrent>0)return this.delayCurrent-=t,!1;var n=this.emitter,r=1-this.lifeCurrent/this.life;return this.lifeT=r,this.computeVelocity(n,t,e,i),this.x+=this.velocityX*e,this.y+=this.velocityY*e,n.bounds&&this.checkBounds(n),n.deathZone&&n.deathZone.willKill(this)?(this.lifeCurrent=0,!0):(this.scaleX=n.scaleX.onUpdate(this,"scaleX",r,this.scaleX),n.scaleY?this.scaleY=n.scaleY.onUpdate(this,"scaleY",r,this.scaleY):this.scaleY=this.scaleX,this.angle=n.rotate.onUpdate(this,"rotate",r,this.angle),this.rotation=s(this.angle),this.alpha=n.alpha.onUpdate(this,"alpha",r,this.alpha),this.tint=n.tint.onUpdate(this,"tint",r,this.tint),this.lifeCurrent-=t,this.lifeCurrent<=0)}});t.exports=o},function(t,e,i){var n=i(52),s=i(0),r=i(11),o=i(402),a=i(403),h=i(970),l=i(2),u=i(184),c=i(404),d=i(99),f=i(400),p=i(405),g=i(12),v=i(128),y=i(3),m=i(58),x=new s({Mixins:[r.BlendMode,r.Mask,r.ScrollFactor,r.Visible],initialize:function(t,e){this.manager=t,this.texture=t.texture,this.frames=[t.defaultFrame],this.defaultFrame=t.defaultFrame,this.configFastMap=["active","blendMode","collideBottom","collideLeft","collideRight","collideTop","deathCallback","deathCallbackScope","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxParticles","name","on","particleBringToTop","particleClass","radial","timeScale","trackVisible","visible"],this.configOpMap=["accelerationX","accelerationY","angle","alpha","bounce","delay","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],this.name="",this.particleClass=f,this.x=new h(e,"x",0,!0),this.y=new h(e,"y",0,!0),this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.accelerationX=new h(e,"accelerationX",0,!0),this.accelerationY=new h(e,"accelerationY",0,!0),this.maxVelocityX=new h(e,"maxVelocityX",1e4,!0),this.maxVelocityY=new h(e,"maxVelocityY",1e4,!0),this.speedX=new h(e,"speedX",0,!0),this.speedY=new h(e,"speedY",0,!0),this.moveTo=!1,this.moveToX=new h(e,"moveToX",0,!0),this.moveToY=new h(e,"moveToY",0,!0),this.bounce=new h(e,"bounce",0,!0),this.scaleX=new h(e,"scaleX",1),this.scaleY=new h(e,"scaleY",1),this.tint=new h(e,"tint",4294967295),this.alpha=new h(e,"alpha",1),this.lifespan=new h(e,"lifespan",1e3,!0),this.angle=new h(e,"angle",{min:0,max:360},!0),this.rotate=new h(e,"rotate",0),this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.quantity=new h(e,"quantity",1,!0),this.delay=new h(e,"delay",0,!0),this.frequency=0,this.on=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZone=null,this.deathZone=null,this.bounds=null,this.collideLeft=!0,this.collideRight=!0,this.collideTop=!0,this.collideBottom=!0,this.active=!0,this.visible=!0,this.blendMode=n.NORMAL,this.follow=null,this.followOffset=new y,this.trackVisible=!1,this.currentFrame=0,this.randomFrame=!0,this.frameQuantity=1,this.dead=[],this.alive=[],this._counter=0,this._frameCounter=0,e&&this.fromJSON(e)},fromJSON:function(t){if(!t)return this;var e=0,i="";for(e=0;e0&&this.getParticleCount()===this.maxParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e&&(this.emitCallbackScope=e)),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e&&(this.deathCallbackScope=e)),this},killAll:function(){for(var t=this.dead,e=this.alive;e.length>0;)t.push(e.pop());return this},forEachAlive:function(t,e){for(var i=this.alive,n=i.length,s=0;s0){var u=this.deathCallback,c=this.deathCallbackScope;for(o=h-1;o>=0;o--){var d=a[o];s.splice(d.index,1),r.push(d.particle),u&&u.call(c,d.particle),d.particle.resetPosition()}}this.on&&(0===this.frequency?this.emitParticle():this.frequency>0&&(this._counter-=e,this._counter<=0&&(this.emitParticle(),this._counter=this.frequency-Math.abs(this._counter))))},depthSortCallback:function(t,e){return t.y-e.y}});t.exports=x},function(t,e,i){var n=new(i(0))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){var e=this.source.contains(t.x,t.y);return e&&this.killOnEnter||!e&&!this.killOnEnter}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s){void 0===n&&(n=!1),void 0===s&&(s=!0),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=n,this.counter=-1,this.seamless=s,this._length=0,this._direction=0,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var t=this.points[0],e=this.points[this.points.length-1];t.x===e.x&&t.y===e.y&&this.points.pop()}var i=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=n},function(t,e){t.exports=function(t,e){for(var i=0;i0&&(s=-h.PI2+s%h.PI2):s>h.PI2?s=h.PI2:s<0&&(s=h.PI2+s%h.PI2);for(var u,c=[a+Math.cos(n)*i,l+Math.sin(n)*i];e<1;)u=s*e+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),e+=t;return u=s+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),c.push(a+Math.cos(n)*i,l+Math.sin(n)*i),this.pathIndexes=o(c),this.pathData=c,this}});t.exports=u},function(t,e,i){var n=i(0),s=i(999),r=i(66),o=i(12),a=i(31),h=new n({Extends:a,Mixins:[s],initialize:function(t,e,i,n,s,r){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Curve",n),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(e,i),void 0!==s&&this.setFillStyle(s,r),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],n=this.geom.getPoints(e),s=0;sc+v)){var y=g.getPoint((u-c)/v);o.push(y);break}c+=v}return o}},function(t,e,i){var n=i(57),s=i(56);t.exports=function(t){for(var e=t.points,i=0,r=0;r0&&r.push(i([0,0],n[0])),e=0;e1&&r.push(i([0,0],n[n.length-1])),t.setTo(r)}},function(t,e,i){var n=i(0),s=i(12),r=i(31),o=i(1020),a=new n({Extends:r,Mixins:[o],initialize:function(t,e,i,n,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=128),void 0===o&&(o=128),r.call(this,t,"Rectangle",new s(0,0,n,o)),this.setPosition(e,i),this.setSize(n,o),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=a},function(t,e,i){var n=i(1023),s=i(0),r=i(66),o=i(31),a=new s({Extends:o,Mixins:[n],initialize:function(t,e,i,n,s,r,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=5),void 0===s&&(s=32),void 0===r&&(r=64),o.call(this,t,"Star",null),this._points=n,this._innerRadius=s,this._outerRadius=r,this.setPosition(e,i),this.setSize(2*r,2*r),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,n=this._outerRadius,s=Math.PI/2*3,o=Math.PI/e,a=n,h=n;t.push(a,h+-n);for(var l=0;l=1)return i.x=r.x1,i.y=r.y1,i;var h=s(r),l=s(o),u=s(a),c=(h+l+u)*e,d=0;return ch+l?(d=(c-=h+l)/u,i.x=a.x1+(a.x2-a.x1)*d,i.y=a.y1+(a.y2-a.y1)*d):(d=(c-=h)/l,i.x=o.x1+(o.x2-o.x1)*d,i.y=o.y1+(o.y2-o.y1)*d),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]);var o=t.getLineA(),a=t.getLineB(),h=t.getLineC(),l=n(o),u=n(a),c=n(h),d=l+u+c;e||(e=d/i);for(var f=0;fl+u?(g=(p-=l+u)/c,v.x=h.x1+(h.x2-h.x1)*g,v.y=h.y1+(h.y2-h.y1)*g):(g=(p-=l)/u,v.x=a.x1+(a.x2-a.x1)*g,v.y=a.y1+(a.y2-a.y1)*g),r.push(v)}return r}},function(t,e){t.exports=function(t,e,i){if(!t||"number"==typeof t)return!1;if(t.hasOwnProperty(e))return t[e]=i,!0;if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=t,o=0;o0?(h=this.lightPool.pop()).set(t,e,i,a[0],a[1],a[2],o):h=new s(t,e,i,a[0],a[1],a[2],o),this.lights.push(h),h},removeLight:function(t){var e=this.lights.indexOf(t);return e>=0&&(this.lightPool.push(t),this.lights.splice(e,1)),this},shutdown:function(){for(;this.lights.length>0;)this.lightPool.push(this.lights.pop());this.ambientColor={r:.1,g:.1,b:.1},this.culledLights.length=0,this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=o},function(t,e,i){var n=i(46),s=i(17),r={Circle:i(1086),Ellipse:i(1096),Intersects:i(428),Line:i(1115),Point:i(1137),Polygon:i(1151),Rectangle:i(441),Triangle:i(1181)};r=s(!1,r,n),t.exports=r},function(t,e,i){t.exports={CircleToCircle:i(204),CircleToRectangle:i(205),GetCircleToCircle:i(1106),GetCircleToRectangle:i(1107),GetLineToCircle:i(206),GetLineToRectangle:i(208),GetRectangleIntersection:i(1108),GetRectangleToRectangle:i(1109),GetRectangleToTriangle:i(1110),GetTriangleToCircle:i(1111),GetTriangleToLine:i(433),GetTriangleToTriangle:i(1112),LineToCircle:i(207),LineToLine:i(84),LineToRectangle:i(429),PointToLine:i(437),PointToLineSegment:i(1113),RectangleToRectangle:i(131),RectangleToTriangle:i(430),RectangleToValues:i(1114),TriangleToCircle:i(432),TriangleToLine:i(434),TriangleToTriangle:i(435)}},function(t,e){t.exports=function(t,e){var i=t.x1,n=t.y1,s=t.x2,r=t.y2,o=e.x,a=e.y,h=e.right,l=e.bottom,u=0;if(i>=o&&i<=h&&n>=a&&n<=l||s>=o&&s<=h&&r>=a&&r<=l)return!0;if(i=o){if((u=n+(r-n)*(o-i)/(s-i))>a&&u<=l)return!0}else if(i>h&&s<=h&&(u=n+(r-n)*(h-i)/(s-i))>=a&&u<=l)return!0;if(n=a){if((u=i+(s-i)*(a-n)/(r-n))>=o&&u<=h)return!0}else if(n>l&&r<=l&&(u=i+(s-i)*(l-n)/(r-n))>=o&&u<=h)return!0;return!1}},function(t,e,i){var n=i(84),s=i(47),r=i(209),o=i(431);t.exports=function(t,e){if(e.left>t.right||e.rightt.bottom||e.bottom0}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},function(t,e,i){var n=i(207),s=i(83);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottome.right||t.righte.bottom||t.bottom0||(c=s(e),(d=n(t,c,!0)).length>0)}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},function(t,e){t.exports=function(t,e,i){void 0===i&&(i=1);var n=e.x1,s=e.y1,r=e.x2,o=e.y2,a=t.x,h=t.y,l=(r-n)*(r-n)+(o-s)*(o-s);if(0===l)return!1;var u=((a-n)*(r-n)+(h-s)*(o-s))/l;if(u<0)return Math.sqrt((n-a)*(n-a)+(s-h)*(s-h))<=i;if(u>=0&&u<=1){var c=((s-h)*(r-n)-(n-a)*(o-s))/l;return Math.abs(c)*Math.sqrt(l)<=i}return Math.sqrt((r-a)*(r-a)+(o-h)*(o-h))<=i}},function(t,e,i){var n=i(15),s=i(58),r=i(85);t.exports=function(t){var e=r(t)-n.TAU;return s(e,-Math.PI,Math.PI)}},function(t,e){t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},function(t,e){t.exports=function(t){return t.x*t.x+t.y*t.y}},function(t,e,i){var n=i(12);n.Area=i(1156),n.Ceil=i(1157),n.CeilAll=i(1158),n.CenterOn=i(166),n.Clone=i(1159),n.Contains=i(47),n.ContainsPoint=i(1160),n.ContainsRect=i(442),n.CopyFrom=i(1161),n.Decompose=i(431),n.Equals=i(1162),n.FitInside=i(1163),n.FitOutside=i(1164),n.Floor=i(1165),n.FloorAll=i(1166),n.FromPoints=i(175),n.GetAspectRatio=i(211),n.GetCenter=i(1167),n.GetPoint=i(150),n.GetPoints=i(273),n.GetSize=i(1168),n.Inflate=i(1169),n.Intersection=i(1170),n.MarchingAnts=i(284),n.MergePoints=i(1171),n.MergeRect=i(1172),n.MergeXY=i(1173),n.Offset=i(1174),n.OffsetPoint=i(1175),n.Overlaps=i(1176),n.Perimeter=i(112),n.PerimeterPoint=i(1177),n.Random=i(153),n.RandomOutside=i(1178),n.SameDimensions=i(1179),n.Scale=i(1180),n.Union=i(391),t.exports=n},function(t,e){t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(s.BUTTON_DOWN,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(s.BUTTON_UP,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=r},function(t,e,i){var n=i(447),s=i(448),r=i(0),o=i(9),a=i(3),h=new r({Extends:o,initialize:function(t,e){o.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],r=0;r=2&&(this.leftStick.set(r[0].getValue(),r[1].getValue()),s>=4&&this.rightStick.set(r[2].getValue(),r[3].getValue()))},destroy:function(){var t;for(this.removeAllListeners(),this.manager=null,this.pad=null,t=0;t=r;for(i=0;i=r;)this._elapsed-=r,this.step(s)}},step:function(t){var e,i,n=this.bodies.entries,s=n.length;for(e=0;e0){var l=this.tree,u=this.staticTree;for(n=(i=h.entries).length,t=0;t-1&&p>g&&(t.velocity.normalize().scale(g),p=g),t.speed=p},separate:function(t,e,i,n,s){if(!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e))return!1;if(i&&!1===i.call(n,t.gameObject,e.gameObject))return!1;if(t.isCircle&&e.isCircle)return this.separateCircle(t,e,s);if(t.isCircle!==e.isCircle){var r=t.isCircle?e:t,o=t.isCircle?t:e,a={x:r.x,y:r.y,right:r.right,bottom:r.bottom},h=o.center;if((h.ya.bottom)&&(h.xa.right))return this.separateCircle(t,e,s)}var l=!1,c=!1;this.forceX||Math.abs(this.gravity.y+t.gravity.y)r.right&&(s=h(o.x,o.y,r.right,r.y)-o.radius):o.y>r.bottom&&(o.xr.right&&(s=h(o.x,o.y,r.right,r.bottom)-o.radius)),s*=-1}else s=t.halfWidth+e.halfWidth-h(t.center.x,t.center.y,e.center.x,e.center.y);if(i||0===s||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==s&&(t.onOverlap||e.onOverlap)&&this.emit(u.OVERLAP,t.gameObject,e.gameObject,t,e),0!==s;var a=t.center.x-e.center.x,l=t.center.y-e.center.y,c=Math.sqrt(Math.pow(a,2)+Math.pow(l,2)),d=(e.center.x-t.center.x)/c||0,f=(e.center.y-t.center.y)/c||0,v=2*(t.velocity.x*d+t.velocity.y*f-e.velocity.x*d-e.velocity.y*f)/(t.mass+e.mass);t.immovable||(t.velocity.x=t.velocity.x-v*t.mass*d,t.velocity.y=t.velocity.y-v*t.mass*f),e.immovable||(e.velocity.x=e.velocity.x+v*e.mass*d,e.velocity.y=e.velocity.y+v*e.mass*f);var y=e.velocity.x-t.velocity.x,m=e.velocity.y-t.velocity.y,x=Math.atan2(m,y),T=this._frameTime;return t.immovable||e.immovable||(s/=2),t.immovable||(t.x+=t.velocity.x*T-s*Math.cos(x),t.y+=t.velocity.y*T-s*Math.sin(x)),e.immovable||(e.x+=e.velocity.x*T+s*Math.cos(x),e.y+=e.velocity.y*T+s*Math.sin(x)),t.velocity.x*=t.bounce.x,t.velocity.y*=t.bounce.y,e.velocity.x*=e.bounce.x,e.velocity.y*=e.bounce.y,(t.onCollide||e.onCollide)&&this.emit(u.COLLIDE,t.gameObject,e.gameObject,t,e),!0},intersects:function(t,e){return t!==e&&(t.isCircle||e.isCircle?t.isCircle?e.isCircle?h(t.center.x,t.center.y,e.center.x,e.center.y)<=t.halfWidth+e.halfWidth:this.circleBodyIntersects(t,e):this.circleBodyIntersects(e,t):!(t.right<=e.position.x||t.bottom<=e.position.y||t.position.x>=e.right||t.position.y>=e.bottom))},circleBodyIntersects:function(t,e){var i=s(t.center.x,e.left,e.right),n=s(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-n)*(t.center.y-n)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!0)},collide:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!1)},collideObjects:function(t,e,i,n,s,r){var o,a;t.isParent&&void 0===t.physicsType&&(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var h=Array.isArray(t),l=Array.isArray(e);if(this._total=0,h||l)if(!h&&l)for(o=0;o0},collideHandler:function(t,e,i,n,s,r){if(void 0===e&&t.isParent)return this.collideGroupVsGroup(t,t,i,n,s,r);if(!t||!e)return!1;if(t.body){if(e.body)return this.collideSpriteVsSprite(t,e,i,n,s,r);if(e.isParent)return this.collideSpriteVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideSpriteVsTilemapLayer(t,e,i,n,s,r)}else if(t.isParent){if(e.body)return this.collideSpriteVsGroup(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideGroupVsTilemapLayer(t,e,i,n,s,r)}else if(t.isTilemap){if(e.body)return this.collideSpriteVsTilemapLayer(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsTilemapLayer(e,t,i,n,s,r)}},collideSpriteVsSprite:function(t,e,i,n,s,r){return!(!t.body||!e.body)&&(this.separate(t.body,e.body,n,s,r)&&(i&&i.call(s,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,n,s,r){var o,h,l,u=t.body;if(0!==e.length&&u&&u.enable)if(this.useTree){var c=this.treeMinMax;c.minX=u.left,c.minY=u.top,c.maxX=u.right,c.maxY=u.bottom;var d=e.physicsType===a.DYNAMIC_BODY?this.tree.search(c):this.staticTree.search(c);for(h=d.length,o=0;oc.baseTileWidth){var d=(c.tileWidth-c.baseTileWidth)*e.scaleX;a-=d,l+=d}c.tileHeight>c.baseTileHeight&&(u+=(c.tileHeight-c.baseTileHeight)*e.scaleY);var f=e.getTilesWithinWorldXY(a,h,l,u);return 0!==f.length&&this.collideSpriteVsTilesHandler(t,f,i,n,s,r,!0)},collideSpriteVsTilesHandler:function(t,e,i,n,s,r,o){for(var a,h,l=t.body,c={left:0,right:0,top:0,bottom:0},d=!1,f=0;f0&&t>i&&(t=i)),0!==n&&0!==e&&(e<0&&e<-n?e=-n:e>0&&e>n&&(e=n)),this.gameObject.x+=t,this.gameObject.y+=e}t<0?this.facing=s.FACING_LEFT:t>0&&(this.facing=s.FACING_RIGHT),e<0?this.facing=s.FACING_UP:e>0&&(this.facing=s.FACING_DOWN),this.allowRotation&&(this.gameObject.angle+=this.deltaZ()),this._tx=t,this._ty=e},setBoundsRectangle:function(t){return this.customBoundsRectangle=t||this.world.bounds,this},checkWorldBounds:function(){var t=this.position,e=this.customBoundsRectangle,i=this.world.checkCollision,n=this.worldBounce?-this.worldBounce.x:-this.bounce.x,s=this.worldBounce?-this.worldBounce.y:-this.bounce.y,r=!1;return t.xe.right&&i.right&&(t.x=e.right-this.width,this.velocity.x*=n,this.blocked.right=!0,r=!0),t.ye.bottom&&i.down&&(t.y=e.bottom-this.height,this.velocity.y*=s,this.blocked.down=!0,r=!0),r&&(this.blocked.none=!1),r},setOffset:function(t,e){return void 0===e&&(e=t),this.offset.set(t,e),this.updateCenter(),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&n.getCenter){var s=n.displayWidth/2,r=n.displayHeight/2;this.offset.set(s-this.halfWidth,r-this.halfHeight)}return this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter()):this.isCircle=!1,this},reset:function(t,e){this.stop();var i=this.gameObject;i.setPosition(t,e),i.getTopLeft?i.getTopLeft(this.position):this.position.set(t,e),this.prev.copy(this.position),this.prevFrame.copy(this.position),this.rotation=i.angle,this.preRotation=i.angle,this.updateBounds(),this.updateCenter()},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?this.radius>0&&t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:h(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this._dx>0?this._dx:-this._dx},deltaAbsY:function(){return this._dy>0?this._dy:-this._dy},deltaX:function(){return this._dx},deltaY:function(){return this._dy},deltaXFinal:function(){return this._tx},deltaYFinal:function(){return this._ty},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.enable=!1,this.world&&this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor),this.isCircle?t.strokeCircle(i,n,this.width/2):(this.checkCollision.up&&t.lineBetween(e.x,e.y,e.x+this.width,e.y),this.checkCollision.right&&t.lineBetween(e.x+this.width,e.y,e.x+this.width,e.y+this.height),this.checkCollision.down&&t.lineBetween(e.x,e.y+this.height,e.x+this.width,e.y+this.height),this.checkCollision.left&&t.lineBetween(e.x,e.y,e.x,e.y+this.height))),this.debugShowVelocity&&(t.lineStyle(t.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),t.lineBetween(i,n,i+this.velocity.x/2,n+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setCollideWorldBounds:function(t,e,i){void 0===t&&(t=!0),this.collideWorldBounds=t;var n=void 0!==e,s=void 0!==i;return(n||s)&&(this.worldBounce||(this.worldBounce=new l),n&&(this.worldBounce.x=e),s&&(this.worldBounce.y=i)),this},setVelocity:function(t,e){return this.velocity.set(t,e),t=this.velocity.x,e=this.velocity.y,this.speed=Math.sqrt(t*t+e*e),this},setVelocityX:function(t){this.velocity.x=t;var e=t,i=this.velocity.y;return this.speed=Math.sqrt(e*e+i*i),this},setVelocityY:function(t){this.velocity.y=t;var e=this.velocity.x,i=t;return this.speed=Math.sqrt(e*e+i*i),this},setMaxVelocity:function(t,e){return this.maxVelocity.set(t,e),this},setMaxSpeed:function(t){return this.maxSpeed=t,this},setBounce:function(t,e){return this.bounce.set(t,e),this},setBounceX:function(t){return this.bounce.x=t,this},setBounceY:function(t){return this.bounce.y=t,this},setAcceleration:function(t,e){return this.acceleration.set(t,e),this},setAccelerationX:function(t){return this.acceleration.x=t,this},setAccelerationY:function(t){return this.acceleration.y=t,this},setAllowDrag:function(t){return void 0===t&&(t=!0),this.allowDrag=t,this},setAllowGravity:function(t){return void 0===t&&(t=!0),this.allowGravity=t,this},setAllowRotation:function(t){return void 0===t&&(t=!0),this.allowRotation=t,this},setDrag:function(t,e){return this.drag.set(t,e),this},setDragX:function(t){return this.drag.x=t,this},setDragY:function(t){return this.drag.y=t,this},setGravity:function(t,e){return this.gravity.set(t,e),this},setGravityX:function(t){return this.gravity.x=t,this},setGravityY:function(t){return this.gravity.y=t,this},setFriction:function(t,e){return this.friction.set(t,e),this},setFrictionX:function(t){return this.friction.x=t,this},setFrictionY:function(t){return this.friction.y=t,this},setAngularVelocity:function(t){return this.angularVelocity=t,this},setAngularAcceleration:function(t){return this.angularAcceleration=t,this},setAngularDrag:function(t){return this.angularDrag=t,this},setMass:function(t){return this.mass=t,this},setImmovable:function(t){return void 0===t&&(t=!0),this.immovable=t,this},setEnable:function(t){return void 0===t&&(t=!0),this.enable=t,this},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=u},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=n,this.collideCallback=s,this.processCallback=r,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=n},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsX()+e.deltaAbsX()+s;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(r=t.right-e.x)>o&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?r=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.right=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.left=!0)):t._dxo&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?r=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.left=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=r,e.overlapX=r,r}},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsY()+e.deltaAbsY()+s;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(r=t.bottom-e.y)>o&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?r=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.down=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.up=!0)):t._dyo&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?r=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.up=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=r,e.overlapY=r,r}},function(t,e,i){var n=i(388);function s(t){if(!(this instanceof s))return new s(t,[".left",".top",".right",".bottom"]);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function r(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,i,s,r){for(var o,a=[e,i];a.length;)(i=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((i-e)/s/2)*s,n(t,o,e,i,r),a.push(e,o,o,i))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!p(t,e))return i;for(var s,r,o,a,h=[];e;){for(s=0,r=e.children.length;s=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(s,r,e)},_split:function(t,e){var i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);var r=this._chooseSplitIndex(i,s,n),a=g(i.children.splice(r,i.children.length-r));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var n,s,r,o,h,l,u,d,f,p,g,v,y,m;for(l=u=1/0,n=e;n<=i-e;n++)s=a(t,0,n,this.toBBox),r=a(t,n,i,this.toBBox),f=s,p=r,void 0,void 0,void 0,void 0,g=Math.max(f.minX,p.minX),v=Math.max(f.minY,p.minY),y=Math.min(f.maxX,p.maxX),m=Math.min(f.maxY,p.maxY),o=Math.max(0,y-g)*Math.max(0,m-v),h=c(s)+c(r),o=e;s--)r=t.children[s],h(u,t.leaf?o(r):r),c+=d(u);return c},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)h(e[n],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():o(t[i],this.toBBox)},compareMinX:function(t,e){return t.left-e.left},compareMinY:function(t,e){return t.top-e.top},toBBox:function(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}},t.exports=s},function(t,e){t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},function(t,e,i){var n=i(55),s=i(0),r=i(50),o=i(47),a=i(3),h=new s({initialize:function(t,e){var i=e.width?e.width:64,n=e.height?e.height:64;this.world=t,this.gameObject=e,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new a,this.position=new a(e.x-e.displayOriginX,e.y-e.displayOriginY),this.width=i,this.height=n,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new a(e.x+this.halfWidth,e.y+this.halfHeight),this.velocity=a.ZERO,this.allowGravity=!1,this.gravity=a.ZERO,this.bounce=a.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.physicsType=r.STATIC_BODY,this._dx=0,this._dy=0},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,t.body=this,this.gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&n.getCenter){var s=n.displayWidth/2,r=n.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(s-this.halfWidth,r-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y}return this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=t,this.width=2*t,this.height=2*t,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter(),this.world.staticTree.insert(this)):this.isCircle=!1,this},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},reset:function(t,e){var i=this.gameObject;void 0===t&&(t=i.x),void 0===e&&(e=i.y),this.world.staticTree.remove(this),i.setPosition(t,e),i.getTopLeft(this.position),this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?n(this,t,e):o(this,t,e)},postUpdate:function(){},deltaAbsX:function(){return 0},deltaAbsY:function(){return 0},deltaX:function(){return 0},deltaY:function(){return 0},deltaZ:function(){return 0},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?t.strokeCircle(i,n,this.width/2):t.strokeRect(e.x,e.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(t){return t<=0&&(t=.1),this.mass=t,this},x:{get:function(){return this.position.x},set:function(t){this.world.staticTree.remove(this),this.position.x=t,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(t){this.world.staticTree.remove(this),this.position.y=t,this.world.staticTree.insert(this)}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=h},function(t,e){t.exports={NEVER:0,LITE:1,PASSIVE:2,ACTIVE:4,FIXED:8}},function(t,e){t.exports={NONE:0,A:1,B:2,BOTH:3}},function(t,e){var i={};t.exports=i,i.create=function(t,e){var n=t.bodyA,s=t.bodyB,r={id:i.id(n,s),bodyA:n,bodyB:s,activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:n.isSensor||s.isSensor,timeCreated:e,timeUpdated:e,collision:null,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return i.update(r,t,e),r},i.update=function(t,e,n){if(t.collision=e,e.collided){var s=e.supports,r=t.activeContacts,o=e.parentA,a=e.parentB;t.inverseMass=o.inverseMass+a.inverseMass,t.friction=Math.min(o.friction,a.friction),t.frictionStatic=Math.max(o.frictionStatic,a.frictionStatic),t.restitution=Math.max(o.restitution,a.restitution),t.slop=Math.max(o.slop,a.slop);for(var h=0;h-1}return!1}},function(t,e,i){var n=i(75),s=i(103),r=i(219);t.exports=function(t,e,i,o,a){if(void 0===i&&(i=!1),void 0===o&&(o=!0),!s(t,e,a))return null;var h=a.data[e][t];return h?(a.data[e][t]=i?null:new n(a,-1,t,e,a.tileWidth,a.tileHeight),o&&h&&h.collides&&r(t,e,a),h):null}},function(t,e,i){var n=i(32),s=i(222),r=i(479),o=i(480),a=i(491);t.exports=function(t,e,i,h,l,u){var c;switch(e){case n.ARRAY_2D:c=s(t,i,h,l,u);break;case n.CSV:c=r(t,i,h,l,u);break;case n.TILED_JSON:c=o(t,i,u);break;case n.WELTMEISTER:c=a(t,i,u);break;default:console.warn("Unrecognized tilemap data format: "+e),c=null}return c}},function(t,e,i){var n=i(32),s=i(222);t.exports=function(t,e,i,r,o){var a=e.trim().split("\n").map(function(t){return t.split(",")}),h=s(t,a,i,r,o);return h.format=n.CSV,h}},function(t,e,i){var n=i(32),s=i(105),r=i(481),o=i(483),a=i(484),h=i(487),l=i(489),u=i(490);t.exports=function(t,e,i){if("isometric"==e.orientation)console.warn("isometric map types are WIP in this version of Phaser");else if("orthogonal"!==e.orientation)return console.warn("Only orthogonal map types are supported in this version of Phaser"),null;var c=new s({width:e.width,height:e.height,name:t,tileWidth:e.tilewidth,tileHeight:e.tileheight,orientation:e.orientation,format:n.TILED_JSON,version:e.version,properties:e.properties,renderOrder:e.renderorder,infinite:e.infinite});c.layers=r(e,i),c.images=o(e);var d=a(e);return c.tilesets=d.tilesets,c.imageCollections=d.imageCollections,c.objects=h(e),c.tiles=l(c),u(c),c}},function(t,e,i){var n=i(482),s=i(2),r=i(104),o=i(223),a=i(75),h=i(224);t.exports=function(t,e){for(var i=s(t,"infinite",!1),l=[],u=[],c=h(t);c.i0;)if(c.i>=c.layers.length){if(u.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}c=u.pop()}else{var d=c.layers[c.i];if(c.i++,"tilelayer"===d.type)if(d.compression)console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+d.name+"'");else{if(d.encoding&&"base64"===d.encoding){if(d.chunks)for(var f=0;f0?((v=new a(p,g.gid,O,R,t.tilewidth,t.tileheight)).rotation=g.rotation,v.flipX=g.flipped,m[R][O]=v):(y=e?null:new a(p,-1,O,R,t.tilewidth,t.tileheight),m[R][O]=y),++x===S.width&&(C++,x=0)}}else{p=new r({name:c.name+d.name,x:c.x+s(d,"offsetx",0)+d.x,y:c.y+s(d,"offsety",0)+d.y,width:d.width,height:d.height,tileWidth:t.tilewidth,tileHeight:t.tileheight,alpha:c.opacity*d.opacity,visible:c.visible&&d.visible,properties:s(d,"properties",{}),orientation:t.orientation}),console.log("layerdata orientation",p.orientation);for(var L=[],k=0,D=d.data.length;k0?((v=new a(p,g.gid,x,m.length,t.tilewidth,t.tileheight)).rotation=g.rotation,v.flipX=g.flipped,L.push(v)):(y=e?null:new a(p,-1,x,m.length,t.tilewidth,t.tileheight),L.push(y)),++x===d.width&&(m.push(L),x=0,L=[])}p.data=m,l.push(p)}else if("group"===d.type){var F=h(t,d,c);u.push(c),c=F}}return l}},function(t,e){t.exports=function(t){for(var e=window.atob(t),i=e.length,n=new Array(i/4),s=0;s>>0;return n}},function(t,e,i){var n=i(2),s=i(224);t.exports=function(t){for(var e=[],i=[],r=s(t);r.i0;)if(r.i>=r.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}r=i.pop()}else{var o=r.layers[r.i];if(r.i++,"imagelayer"===o.type){var a=n(o,"offsetx",0)+n(o,"startx",0),h=n(o,"offsety",0)+n(o,"starty",0);e.push({name:r.name+o.name,image:o.image,x:r.x+a+o.x,y:r.y+h+o.y,alpha:r.opacity*o.opacity,visible:r.visible&&o.visible,properties:n(o,"properties",{})})}else if("group"===o.type){var l=s(t,o,r);i.push(r),r=l}}return e}},function(t,e,i){var n=i(141),s=i(485),r=i(225);t.exports=function(t){for(var e,i=[],o=[],a=null,h=0;h1){if(Array.isArray(l.tiles)){for(var c={},d={},f=0;f=this.firstgid&&t0;)if(a.i>=a.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}a=i.pop()}else{var h=a.layers[a.i];if(a.i++,h.opacity*=a.opacity,h.visible=a.visible&&h.visible,"objectgroup"===h.type){h.name=a.name+h.name;for(var l=a.x+n(h,"startx",0)+n(h,"offsetx",0),u=a.y+n(h,"starty",0)+n(h,"offsety",0),c=[],d=0;da&&(a=e.layer[l].width),e.layer[l].height>h&&(h=e.layer[l].height);var u=new s({width:a,height:h,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:n.WELTMEISTER});return u.layers=r(e,i),u.tilesets=o(e),u}},function(t,e,i){var n=i(104),s=i(75);t.exports=function(t,e){for(var i=[],r=0;r-1?new s(a,f,c,u,o.tilesize,o.tilesize):e?null:new s(a,-1,c,u,o.tilesize,o.tilesize),h.push(d)}l.push(h),h=[]}a.data=l,i.push(a)}return i}},function(t,e,i){var n=i(141);t.exports=function(t){for(var e=[],i=[],s=0;s-1&&(this.renderOrder=t),this},addTilesetImage:function(t,e,i,n,s,r,o){if(void 0===t)return null;if(void 0!==e&&null!==e||(e=t),!this.scene.sys.textures.exists(e))return console.warn("Invalid Tileset Image: "+e),null;var h=this.scene.sys.textures.get(e),l=this.getTilesetIndex(t);if(null===l&&this.format===a.TILED_JSON)return console.warn("No data found for Tileset: "+t),null;var u=this.tilesets[l];return u?(u.setTileSize(i,n),u.setSpacing(s,r),u.setImage(h),u):(void 0===i&&(i=this.tileWidth),void 0===n&&(n=this.tileHeight),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o=0),(u=new p(t,o,i,n,s,r)).setImage(h),this.tilesets.push(u),u)},convertLayerToStatic:function(t){if(null===(t=this.getLayer(t)))return null;var e=t.tilemapLayer;if(!(e&&e instanceof r))return null;var i=new c(e.scene,e.tilemap,e.layerIndex,e.tileset,e.x,e.y);return this.scene.sys.displayList.add(i),e.destroy(),i},copy:function(t,e,i,n,s,r,o,a){return a=this.getLayer(a),this._isStaticCall(a,"copy")?this:null!==a?(f.Copy(t,e,i,n,s,r,o,a),this):null},createBlankDynamicLayer:function(t,e,i,n,s,o,a,l){if(void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.width),void 0===o&&(o=this.height),void 0===a&&(a=this.tileWidth),void 0===l&&(l=this.tileHeight),null!==this.getLayerIndex(t))return console.warn("Invalid Tilemap Layer ID: "+t),null;var u,c=new h({name:t,tileWidth:a,tileHeight:l,width:s,height:o,orientation:this.orientation});console.log("tm orientation : ",c.orientation);for(var f=0;f-1&&this.putTileAt(e,r.x,r.y,i,r.tilemapLayer)}return n},removeTileAt:function(t,e,i,n,s){return s=this.getLayer(s),this._isStaticCall(s,"removeTileAt")?null:null===s?null:f.RemoveTileAt(t,e,i,n,s)},removeTileAtWorldXY:function(t,e,i,n,s,r){return r=this.getLayer(r),this._isStaticCall(r,"removeTileAtWorldXY")?null:null===r?null:f.RemoveTileAtWorldXY(t,e,i,n,s,r)},renderDebug:function(t,e,i){return null===(i=this.getLayer(i))?null:(f.RenderDebug(t,e,i),this)},renderDebugFull:function(t,e){for(var i=this.layers,n=0;n=0&&t<4&&(this._renderOrder=t),this},calculateFacesAt:function(t,e){return a.CalculateFacesAt(t,e,this.layer),this},calculateFacesWithin:function(t,e,i,n){return a.CalculateFacesWithin(t,e,i,n,this.layer),this},createFromTiles:function(t,e,i,n,s){return a.CreateFromTiles(t,e,i,n,s,this.layer)},cull:function(t){return this.cullCallback(this.layer,t,this.culledTiles,this._renderOrder)},copy:function(t,e,i,n,s,r,o){return a.Copy(t,e,i,n,s,r,o,this.layer),this},destroy:function(t){void 0===t&&(t=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),t&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],o.prototype.destroy.call(this))},fill:function(t,e,i,n,s,r){return a.Fill(t,e,i,n,s,r,this.layer),this},filterTiles:function(t,e,i,n,s,r,o){return a.FilterTiles(t,e,i,n,s,r,o,this.layer)},findByIndex:function(t,e,i){return a.FindByIndex(t,e,i,this.layer)},findTile:function(t,e,i,n,s,r,o){return a.FindTile(t,e,i,n,s,r,o,this.layer)},forEachTile:function(t,e,i,n,s,r,o){return a.ForEachTile(t,e,i,n,s,r,o,this.layer),this},getTileAt:function(t,e,i){return a.GetTileAt(t,e,i,this.layer)},getTileAtWorldXY:function(t,e,i,n){return a.GetTileAtWorldXY(t,e,i,n,this.layer)},getTilesWithin:function(t,e,i,n,s){return a.GetTilesWithin(t,e,i,n,s,this.layer)},getTilesWithinShape:function(t,e,i){return a.GetTilesWithinShape(t,e,i,this.layer)},getTilesWithinWorldXY:function(t,e,i,n,s,r){return a.GetTilesWithinWorldXY(t,e,i,n,s,r,this.layer)},hasTileAt:function(t,e){return a.HasTileAt(t,e,this.layer)},hasTileAtWorldXY:function(t,e,i){return a.HasTileAtWorldXY(t,e,i,this.layer)},putTileAt:function(t,e,i,n){return a.PutTileAt(t,e,i,n,this.layer)},putTileAtWorldXY:function(t,e,i,n,s){return a.PutTileAtWorldXY(t,e,i,n,s,this.layer)},putTilesAt:function(t,e,i,n){return a.PutTilesAt(t,e,i,n,this.layer),this},randomize:function(t,e,i,n,s){return a.Randomize(t,e,i,n,s,this.layer),this},removeTileAt:function(t,e,i,n){return a.RemoveTileAt(t,e,i,n,this.layer)},removeTileAtWorldXY:function(t,e,i,n,s){return a.RemoveTileAtWorldXY(t,e,i,n,s,this.layer)},renderDebug:function(t,e){return a.RenderDebug(t,e,this.layer),this},replaceByIndex:function(t,e,i,n,s,r){return a.ReplaceByIndex(t,e,i,n,s,r,this.layer),this},setSkipCull:function(t){return void 0===t&&(t=!0),this.skipCull=t,this},setCullPadding:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=1),this.cullPaddingX=t,this.cullPaddingY=e,this},setCollision:function(t,e,i,n){return a.SetCollision(t,e,i,this.layer,n),this},setCollisionBetween:function(t,e,i,n){return a.SetCollisionBetween(t,e,i,n,this.layer),this},setCollisionByProperty:function(t,e,i){return a.SetCollisionByProperty(t,e,i,this.layer),this},setCollisionByExclusion:function(t,e,i){return a.SetCollisionByExclusion(t,e,i,this.layer),this},setCollisionFromCollisionGroup:function(t,e){return a.SetCollisionFromCollisionGroup(t,e,this.layer),this},setTileIndexCallback:function(t,e,i){return a.SetTileIndexCallback(t,e,i,this.layer),this},setTileLocationCallback:function(t,e,i,n,s,r){return a.SetTileLocationCallback(t,e,i,n,s,r,this.layer),this},shuffle:function(t,e,i,n){return a.Shuffle(t,e,i,n,this.layer),this},swapByIndex:function(t,e,i,n,s,r){return a.SwapByIndex(t,e,i,n,s,r,this.layer),this},tileToWorldX:function(t,e){return a.TileToWorldX(t,e,this.layer)},tileToWorldY:function(t,e){return a.TileToWorldY(t,e,this.layer)},tileToWorldXY:function(t,e,i,n){return a.TileToWorldXY(t,e,i,n,this.layer)},weightedRandomize:function(t,e,i,n,s){return a.WeightedRandomize(t,e,i,n,s,this.layer),this},worldToTileX:function(t,e,i){return a.WorldToTileX(t,e,i,this.layer)},worldToTileY:function(t,e,i){return a.WorldToTileY(t,e,i,this.layer)},worldToTileXY:function(t,e,i,n,s){return a.WorldToTileXY(t,e,i,n,s,this.layer)}});t.exports=h},function(t,e,i){var n=i(0),s=i(11),r=i(18),o=i(13),a=i(1344),h=i(137),l=i(30),u=i(10),c=new n({Extends:o,Mixins:[s.Alpha,s.BlendMode,s.ComputedSize,s.Depth,s.Flip,s.GetBounds,s.Origin,s.Pipeline,s.Transform,s.Visible,s.ScrollFactor,a],initialize:function(t,e,i,n,s,a){o.call(this,t,"StaticTilemapLayer"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],this.layer.tilemapLayer=this,this.tileset=[],this.culledTiles=[],this.skipCull=!1,this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=h.CullTiles,this.renderer=t.sys.game.renderer,this.vertexBuffer=[],this.bufferData=[],this.vertexViewF32=[],this.vertexViewU32=[],this.dirty=[],this.vertexCount=[],this._renderOrder=0,this._tempMatrix=new l,this.gidMap=[],this.setTilesets(n),this.setAlpha(this.layer.alpha),this.setPosition(s,a),this.setOrigin(),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.updateVBOData(),this.initPipeline("TextureTintPipeline"),t.sys.game.events.on(r.CONTEXT_RESTORED,function(){this.updateVBOData()},this)},setTilesets:function(t){var e=[],i=[],n=this.tilemap;Array.isArray(t)||(t=[t]);for(var s=0;sv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(1===p)for(o=0;o=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(2===p)for(o=u-1;o>=0;o--)for(a=0;av||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(3===p)for(o=u-1;o>=0;o--)for(a=l-1;a>=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));this.dirty[e]=!1,null===y?(y=i.createVertexBuffer(m,n.STATIC_DRAW),this.vertexBuffer[e]=y):(i.setVertexBuffer(y),n.bufferSubData(n.ARRAY_BUFFER,0,m))}return this},batchTile:function(t,e,i,n,s,r,o){var a=i.getTileTextureCoordinates(e.index);if(!a)return t;var h=i.tileWidth,l=i.tileHeight,c=h/2,d=l/2,f=a.x/n,p=a.y/s,g=(a.x+h)/n,v=(a.y+l)/s,y=this._tempMatrix,m=-c,x=-d;e.flipX&&(h*=-1,m+=i.tileWidth),e.flipY&&(l*=-1,x+=i.tileHeight);var T=m+h,w=x+l;y.applyITRS(c+e.pixelX,d+e.pixelY,e.rotation,1,1);var b=u.getTintAppendFloatAlpha(16777215,r.alpha*this.alpha*e.alpha),E=y.getX(m,x),S=y.getY(m,x),A=y.getX(m,w),_=y.getY(m,w),C=y.getX(T,w),M=y.getY(T,w),P=y.getX(T,x),O=y.getY(T,x);r.roundPixels&&(E=Math.round(E),S=Math.round(S),A=Math.round(A),_=Math.round(_),C=Math.round(C),M=Math.round(M),P=Math.round(P),O=Math.round(O));var R=this.vertexViewF32[o],L=this.vertexViewU32[o];return R[++t]=E,R[++t]=S,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=b,R[++t]=A,R[++t]=_,R[++t]=f,R[++t]=v,R[++t]=0,L[++t]=b,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=b,R[++t]=E,R[++t]=S,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=b,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=b,R[++t]=P,R[++t]=O,R[++t]=g,R[++t]=p,R[++t]=0,L[++t]=b,this.vertexCount[o]+=6,t},setRenderOrder:function(t){if("string"==typeof t&&(t=["right-down","left-down","right-up","left-up"].indexOf(t)),t>=0&&t<4){this._renderOrder=t;for(var e=0;e0){var t=this.delay+this.delay*this.repeat;return(this.elapsed+this.delay*(this.repeat-this.repeatCount))/t}return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return.001*this.elapsed},remove:function(t){void 0===t&&(t=!1),this.elapsed=this.delay,this.hasDispatched=!t,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});t.exports=r},function(t,e,i){var n=i(1353);t.exports=function(t){var e,i=[];if(t.hasOwnProperty("props"))for(e in t.props)"_"!==e.substr(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===n.indexOf(e)&&"_"!==e.substr(0,1)&&i.push({key:e,value:t[e]});return i}},function(t,e,i){var n=i(6);t.exports=function(t){var e=n(t,"tweens",null);return null===e?[]:("function"==typeof e&&(e=e.call()),Array.isArray(e)||(e=[e]),e)}},function(t,e,i){var n=i(229),s=i(14),r=i(88),o=i(70),a=i(142),h=i(6),l=i(228),u=i(230),c=i(232);t.exports=function(t,e,i){void 0===i&&(i=n);var d=h(e,"from",0),f=h(e,"to",1),p=[{value:d}],g=a(e,"delay",i.delay),v=a(e,"duration",i.duration),y=h(e,"easeParams",i.easeParams),m=o(h(e,"ease",i.ease),y),x=a(e,"hold",i.hold),T=a(e,"repeat",i.repeat),w=a(e,"repeatDelay",i.repeatDelay),b=r(e,"yoyo",i.yoyo),E=[],S=l("value",f),A=c(p[0],0,"value",S.getEnd,S.getStart,S.getActive,m,g,v,b,x,T,w,!1,!1);A.start=d,A.current=d,A.to=f,E.push(A);var _=new u(t,E,p);_.offset=s(e,"offset",null),_.completeDelay=s(e,"completeDelay",0),_.loop=Math.round(s(e,"loop",0)),_.loopDelay=Math.round(s(e,"loopDelay",0)),_.paused=r(e,"paused",!1),_.useFrames=r(e,"useFrames",!1);for(var C=h(e,"callbackScope",_),M=[_,null],P=u.TYPES,O=0;OS&&(S=C),E[A][_]=C}}}var M=o?n(o):null;return a?function(t,e,n,s){var r,o=0,a=s%y,h=Math.floor(s/y);if(a>=0&&a=0&&h0?Math.floor(v/p.length):h(e,"duration",g.duration),g.delay=h(e,"delay",g.delay),g.easeParams=c(e,"easeParams",g.easeParams),g.ease=a(c(e,"ease",g.ease),g.easeParams),g.hold=h(e,"hold",g.hold),g.repeat=h(e,"repeat",g.repeat),g.repeatDelay=h(e,"repeatDelay",g.repeatDelay),g.yoyo=o(e,"yoyo",g.yoyo),g.flipX=o(e,"flipX",g.flipX),g.flipY=o(e,"flipY",g.flipY);for(var y=0;y0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay},init:function(){return this.calcDuration(),this.progress=0,this.totalProgress=0,!this.paused||(this.state=a.PAUSED,!1)},resetTweens:function(t){for(var e=0;e0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweens(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=a.LOOP_DELAY):(this.state=a.ACTIVE,this.dispatchTimelineEvent(r.TIMELINE_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=a.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=a.PENDING_REMOVE,this.dispatchTimelineEvent(r.TIMELINE_COMPLETE,this.callbacks.onComplete))},update:function(t,e){if(this.state!==a.PAUSED){switch(this.useFrames&&(e=1*this.manager.timeScale),e*=this.timeScale,this.elapsed+=e,this.progress=Math.min(this.elapsed/this.duration,1),this.totalElapsed+=e,this.totalProgress=Math.min(this.totalElapsed/this.totalDuration,1),this.state){case a.ACTIVE:for(var i=this.totalData,n=0;n=this.nextTick&&this.currentAnim.setFrame(this)}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),e},updateFrame:function(t){var e=this.setCurrentFrame(t);if(this.isPlaying){t.setAlpha&&(e.alpha=t.alpha);var i=this.currentAnim;e.emit(r.SPRITE_ANIMATION_KEY_UPDATE+i.key,i,t,e),e.emit(r.SPRITE_ANIMATION_UPDATE,i,t,e),3===this._pendingStop&&this._pendingStopValue===t&&this.currentAnim.completeAnimation(this)}},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},setYoyo:function(t){return void 0===t&&(t=!1),this._yoyo=t,this.parent},getYoyo:function(){return this._yoyo},destroy:function(){this.animationManager.off(r.REMOVE_ANIMATION,this.remove,this),this.animationManager=null,this.parent=null,this.currentAnim=null,this.currentFrame=null}});t.exports=o},function(t,e,i){var n=i(506),s=i(48),r=i(0),o=i(29),a=i(507),h=i(92),l=i(30),u=new r({initialize:function(t){this.game=t,this.type=o.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.config={clearBeforeRender:t.config.clearBeforeRender,backgroundColor:t.config.backgroundColor,resolution:t.config.resolution,antialias:t.config.antialias,roundPixels:t.config.roundPixels},this.gameCanvas=t.canvas;var e={alpha:t.config.transparent,desynchronized:t.config.desynchronized};this.gameContext=this.game.config.context?this.game.config.context:this.gameCanvas.getContext("2d",e),this.currentContext=this.gameContext,this.antialias=t.config.antialias,this.blendModes=a(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.init()},init:function(){this.game.scale.on(h.RESIZE,this.onResize,this);var t=this.game.scale.baseSize;this.resize(t.width,t.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,n=this.height;t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),e.clearBeforeRender&&t.clearRect(0,0,i,n),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,n)),t.save(),this.drawCount=0},render:function(t,e,i,n){var r=e.list,o=r.length,a=n._cx,h=n._cy,l=n._cw,u=n._ch,c=n.renderToTexture?n.context:t.sys.context;c.save(),this.game.scene.customViewports&&(c.beginPath(),c.rect(a,h,l,u),c.clip()),this.currentContext=c;var d=n.mask;d&&d.preRenderCanvas(this,null,n._maskCamera),n.transparent||(c.fillStyle=n.backgroundColor.rgba,c.fillRect(a,h,l,u)),c.globalAlpha=n.alpha,c.globalCompositeOperation="source-over",this.drawCount+=r.length,n.renderToTexture&&n.emit(s.PRE_RENDER,n),n.matrix.copyToContext(c);for(var f=0;f=0?m=-(m+d):m<0&&(m=Math.abs(m)-d)),t.flipY&&(x>=0?x=-(x+f):x<0&&(x=Math.abs(x)-f))}var w=1,b=1;t.flipX&&(p||(m+=-e.realWidth+2*v),w=-1),t.flipY&&(p||(x+=-e.realHeight+2*y),b=-1),a.applyITRS(t.x,t.y,t.rotation,t.scaleX*w,t.scaleY*b),o.copyFrom(i.matrix),n?(o.multiplyWithOffset(n,-i.scrollX*t.scrollFactorX,-i.scrollY*t.scrollFactorY),a.e=t.x,a.f=t.y,o.multiply(a,h)):(a.e-=i.scrollX*t.scrollFactorX,a.f-=i.scrollY*t.scrollFactorY,o.multiply(a,h)),r.save(),h.setToContext(r),r.globalCompositeOperation=this.blendModes[t.blendMode],r.globalAlpha=s,r.imageSmoothingEnabled=!(!this.antialias||e.source.scaleMode),r.drawImage(e.source.image,u,c,d,f,m,x,d/g,f/g),r.restore()}},destroy:function(){this.gameCanvas=null,this.gameContext=null,this.game=null}});t.exports=u},function(t,e,i){var n=i(26),s=i(33),r=i(2);t.exports=function(t,e){var i=r(e,"callback"),o=r(e,"type","image/png"),a=r(e,"encoder",.92),h=Math.abs(Math.round(r(e,"x",0))),l=Math.abs(Math.round(r(e,"y",0))),u=r(e,"width",t.width),c=r(e,"height",t.height);if(r(e,"getPixel",!1)){var d=t.getContext("2d").getImageData(h,l,1,1).data;i.call(null,new s(d[0],d[1],d[2],d[3]/255))}else if(0!==h||0!==l||u!==t.width||c!==t.height){var f=n.createWebGL(this,u,c);f.getContext("2d").drawImage(t,h,l,u,c,0,0,u,c);var p=new Image;p.onerror=function(){i.call(null),n.remove(f)},p.onload=function(){i.call(null,p),n.remove(f)},p.src=f.toDataURL(o,a)}else{var g=new Image;g.onerror=function(){i.call(null)},g.onload=function(){i.call(null,g)},g.src=t.toDataURL(o,a)}}},function(t,e,i){var n=i(52),s=i(315);t.exports=function(){var t=[],e=s.supportNewBlendModes,i="source-over";return t[n.NORMAL]=i,t[n.ADD]="lighter",t[n.MULTIPLY]=e?"multiply":i,t[n.SCREEN]=e?"screen":i,t[n.OVERLAY]=e?"overlay":i,t[n.DARKEN]=e?"darken":i,t[n.LIGHTEN]=e?"lighten":i,t[n.COLOR_DODGE]=e?"color-dodge":i,t[n.COLOR_BURN]=e?"color-burn":i,t[n.HARD_LIGHT]=e?"hard-light":i,t[n.SOFT_LIGHT]=e?"soft-light":i,t[n.DIFFERENCE]=e?"difference":i,t[n.EXCLUSION]=e?"exclusion":i,t[n.HUE]=e?"hue":i,t[n.SATURATION]=e?"saturation":i,t[n.COLOR]=e?"color":i,t[n.LUMINOSITY]=e?"luminosity":i,t[n.ERASE]="destination-out",t[n.SOURCE_IN]="source-in",t[n.SOURCE_OUT]="source-out",t[n.SOURCE_ATOP]="source-atop",t[n.DESTINATION_OVER]="destination-over",t[n.DESTINATION_IN]="destination-in",t[n.DESTINATION_OUT]="destination-out",t[n.DESTINATION_ATOP]="destination-atop",t[n.LIGHTER]="lighter",t[n.COPY]="copy",t[n.XOR]="xor",t}},function(t,e,i){var n=i(91),s=i(48),r=i(0),o=i(29),a=i(18),h=i(118),l=i(1),u=i(92),c=i(80),d=i(119),f=i(30),p=i(10),g=i(509),v=i(510),y=i(511),m=i(236),x=i(512),T=new r({initialize:function(t){var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!1,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,resolution:e.resolution,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=o.WEBGL,this.width=0,this.height=0,this.canvas=t.canvas,this.blendModes=[],this.nativeTextures=[],this.contextLost=!1,this.pipelines=null,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.currentActiveTextureUnit=0,this.currentTextures=new Array(16),this.currentFramebuffer=null,this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=l,this.contextRestoredHandler=l,this.gl=null,this.supportedExtensions=null,this.extensions={},this.glFormats=[],this.compression={ETC1:!1,PVRTC:!1,S3TC:!1},this.drawingBufferHeight=0,this.blankTexture=null,this.defaultCamera=new n(0,0,0,0),this._tempMatrix1=new f,this._tempMatrix2=new f,this._tempMatrix3=new f,this._tempMatrix4=new f,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.mipmapFilter=null,this.init(this.config)},init:function(t){var e,i=this.game,n=this.canvas,s=t.backgroundColor;if(!(e=i.config.context?i.config.context:n.getContext("webgl",t.contextCreation)||n.getContext("experimental-webgl",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=e;var r=this;this.contextLostHandler=function(t){r.contextLost=!0,r.game.events.emit(a.CONTEXT_LOST,r),t.preventDefault()},this.contextRestoredHandler=function(){r.contextLost=!1,r.init(r.config),r.game.events.emit(a.CONTEXT_RESTORED,r)},n.addEventListener("webglcontextlost",this.contextLostHandler,!1),n.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),i.context=e;for(var h=0;h<=27;h++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats[0]=e.BYTE,this.glFormats[1]=e.SHORT,this.glFormats[2]=e.UNSIGNED_BYTE,this.glFormats[3]=e.UNSIGNED_SHORT,this.glFormats[4]=e.FLOAT,this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:e.uniform1f,length:1},"1fv":{func:e.uniform1fv,length:1},"1i":{func:e.uniform1i,length:1},"1iv":{func:e.uniform1iv,length:1},"2f":{func:e.uniform2f,length:2},"2fv":{func:e.uniform2fv,length:1},"2i":{func:e.uniform2i,length:2},"2iv":{func:e.uniform2iv,length:1},"3f":{func:e.uniform3f,length:3},"3fv":{func:e.uniform3fv,length:1},"3i":{func:e.uniform3i,length:3},"3iv":{func:e.uniform3iv,length:1},"4f":{func:e.uniform4f,length:4},"4fv":{func:e.uniform4fv,length:1},"4i":{func:e.uniform4i,length:4},"4iv":{func:e.uniform4iv,length:1}};var l=e.getSupportedExtensions();t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE));var u="WEBGL_compressed_texture_",c="WEBKIT_"+u;this.compression.ETC1=e.getExtension(u+"etc1")||e.getExtension(c+"etc1"),this.compression.PVRTC=e.getExtension(u+"pvrtc")||e.getExtension(c+"pvrtc"),this.compression.S3TC=e.getExtension(u+"s3tc")||e.getExtension(c+"s3tc"),this.supportedExtensions=l,e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),e.enable(e.BLEND),e.clearColor(s.redGL,s.greenGL,s.blueGL,s.alphaGL),this.mipmapFilter=e[t.mipmapFilter];for(var f=0;f0&&n>0;if(o&&a){var h=o[0],l=o[1],u=o[2],c=o[3];a=h!==t||l!==e||u!==i||c!==n}a&&(this.flush(),r.scissor(t,s-e-n,i,n))},popScissor:function(){var t=this.scissorStack;t.pop();var e=t[t.length-1];e&&this.setScissor(e[0],e[1],e[2],e[3]),this.currentScissor=e},setPipeline:function(t,e){return this.currentPipeline===t&&this.currentPipeline.vertexBuffer===this.currentVertexBuffer&&this.currentPipeline.program===this.currentProgram||(this.flush(),this.currentPipeline=t,this.currentPipeline.bind()),this.currentPipeline.onBind(e),this.currentPipeline},hasActiveStencilMask:function(){var t=this.currentMask.mask,e=this.currentCameraMask.mask;return t&&t.isStencil||e&&e.isStencil},rebindPipeline:function(t){var e=this.gl;e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),this.hasActiveStencilMask()?e.clear(e.DEPTH_BUFFER_BIT):(e.disable(e.STENCIL_TEST),e.clear(e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT)),e.viewport(0,0,this.width,this.height),this.setBlendMode(0,!0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.blankTexture.glTexture),this.currentActiveTextureUnit=0,this.currentTextures[0]=this.blankTexture.glTexture,this.currentPipeline=t,this.currentPipeline.bind(),this.currentPipeline.onBind()},clearPipeline:function(){this.flush(),this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.setBlendMode(0,!0)},setBlendMode:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.blendModes[t];return!!(e||t!==o.BlendModes.SKIP_CHECK&&this.currentBlendMode!==t)&&(this.flush(),i.enable(i.BLEND),i.blendEquation(n.equation),n.func.length>2?i.blendFuncSeparate(n.func[0],n.func[1],n.func[2],n.func[3]):i.blendFunc(n.func[0],n.func[1]),this.currentBlendMode=t,!0)},addBlendMode:function(t,e){return this.blendModes.push({func:t,equation:e})-1},updateBlendMode:function(t,e,i){return this.blendModes[t]&&(this.blendModes[t].func=e,i&&(this.blendModes[t].equation=i)),this},removeBlendMode:function(t){return t>17&&this.blendModes[t]&&this.blendModes.splice(t,1),this},setBlankTexture:function(t){void 0===t&&(t=!1),!t&&0===this.currentActiveTextureUnit&&this.currentTextures[0]||this.setTexture2D(this.blankTexture.glTexture,0)},setTexture2D:function(t,e,i){void 0===i&&(i=!0);var n=this.gl;return t!==this.currentTextures[e]&&(i&&this.flush(),this.currentActiveTextureUnit!==e&&(n.activeTexture(n.TEXTURE0+e),this.currentActiveTextureUnit=e),n.bindTexture(n.TEXTURE_2D,t),this.currentTextures[e]=t),this},setFramebuffer:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.width,s=this.height;return t!==this.currentFramebuffer&&(t&&t.renderTexture?(n=t.renderTexture.width,s=t.renderTexture.height):this.flush(),i.bindFramebuffer(i.FRAMEBUFFER,t),i.viewport(0,0,n,s),e&&(t?(this.drawingBufferHeight=s,this.pushScissor(0,0,n,s)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=t),this},setProgram:function(t){var e=this.gl;return t!==this.currentProgram&&(this.flush(),e.useProgram(t),this.currentProgram=t),this},setVertexBuffer:function(t){var e=this.gl;return t!==this.currentVertexBuffer&&(this.flush(),e.bindBuffer(e.ARRAY_BUFFER,t),this.currentVertexBuffer=t),this},setIndexBuffer:function(t){var e=this.gl;return t!==this.currentIndexBuffer&&(this.flush(),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.currentIndexBuffer=t),this},createTextureFromSource:function(t,e,i,n){var s=this.gl,r=s.NEAREST,a=s.NEAREST,l=s.CLAMP_TO_EDGE;e=t?t.width:e,i=t?t.height:i;var u=h(e,i);return u&&(l=s.REPEAT),n===o.ScaleModes.LINEAR&&this.config.antialias&&(r=u?this.mipmapFilter:s.LINEAR,a=s.LINEAR),t||"number"!=typeof e||"number"!=typeof i?this.createTexture2D(0,r,a,l,l,s.RGBA,t):this.createTexture2D(0,r,a,l,l,s.RGBA,null,e,i)},createTexture2D:function(t,e,i,n,s,r,o,a,l,u,c,d){u=void 0===u||null===u||u,void 0===c&&(c=!1),void 0===d&&(d=!1);var f=this.gl,p=f.createTexture();return this.setTexture2D(p,0),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,e),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,i),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,s),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,n),f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,u),f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,d),null===o||void 0===o?f.texImage2D(f.TEXTURE_2D,t,r,a,l,0,r,f.UNSIGNED_BYTE,null):(c||(a=o.width,l=o.height),f.texImage2D(f.TEXTURE_2D,t,r,r,f.UNSIGNED_BYTE,o)),h(a,l)&&f.generateMipmap(f.TEXTURE_2D),this.setTexture2D(null,0),p.isAlphaPremultiplied=u,p.isRenderTexture=!1,p.width=a,p.height=l,this.nativeTextures.push(p),p},createFramebuffer:function(t,e,i,n){var s,r=this.gl,o=r.createFramebuffer();if(this.setFramebuffer(o),n){var a=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,a),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t,e),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,a)}if(i.isRenderTexture=!0,i.isAlphaPremultiplied=!1,r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,i,0),(s=r.checkFramebufferStatus(r.FRAMEBUFFER))!==r.FRAMEBUFFER_COMPLETE){throw new Error("Framebuffer incomplete. Framebuffer status: "+{36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"}[s])}return o.renderTexture=i,this.setFramebuffer(null),o},createProgram:function(t,e){var i=this.gl,n=i.createProgram(),s=i.createShader(i.VERTEX_SHADER),r=i.createShader(i.FRAGMENT_SHADER);if(i.shaderSource(s,t),i.shaderSource(r,e),i.compileShader(s),i.compileShader(r),!i.getShaderParameter(s,i.COMPILE_STATUS))throw new Error("Failed to compile Vertex Shader:\n"+i.getShaderInfoLog(s));if(!i.getShaderParameter(r,i.COMPILE_STATUS))throw new Error("Failed to compile Fragment Shader:\n"+i.getShaderInfoLog(r));if(i.attachShader(n,s),i.attachShader(n,r),i.linkProgram(n),!i.getProgramParameter(n,i.LINK_STATUS))throw new Error("Failed to link program:\n"+i.getProgramInfoLog(n));return n},createVertexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setVertexBuffer(n),i.bufferData(i.ARRAY_BUFFER,t,e),this.setVertexBuffer(null),n},createIndexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setIndexBuffer(n),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t,e),this.setIndexBuffer(null),n},deleteTexture:function(t){var e=this.nativeTextures.indexOf(t);return-1!==e&&c(this.nativeTextures,e),this.gl.deleteTexture(t),this.currentTextures[0]!==t||this.game.pendingDestroy||this.setBlankTexture(!0),this},deleteFramebuffer:function(t){return this.gl.deleteFramebuffer(t),this},deleteProgram:function(t){return this.gl.deleteProgram(t),this},deleteBuffer:function(t){return this.gl.deleteBuffer(t),this},preRenderCamera:function(t){var e=t._cx,i=t._cy,n=t._cw,r=t._ch,o=this.pipelines.TextureTintPipeline,a=t.backgroundColor;if(t.renderToTexture){this.flush(),this.pushScissor(e,i,n,-r),this.setFramebuffer(t.framebuffer);var h=this.gl;h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT),o.projOrtho(e,n+e,i,r+i,-1e3,1e3),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n+e,r+i,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL),t.emit(s.PRE_RENDER,t)}else this.pushScissor(e,i,n,r),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n,r,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL)},getCurrentStencilMask:function(){var t=null,e=this.maskStack,i=this.currentCameraMask;return e.length>0?t=e[e.length-1]:i.mask&&i.mask.isStencil&&(t=i),t},postRenderCamera:function(t){var e=this.pipelines.TextureTintPipeline;if(t.flashEffect.postRenderWebGL(e,p.getTintFromFloats),t.fadeEffect.postRenderWebGL(e,p.getTintFromFloats),t.dirty=!1,this.popScissor(),t.renderToTexture){if(e.flush(),this.setFramebuffer(null),t.emit(s.POST_RENDER,t),t.renderToGame){e.projOrtho(0,e.width,e.height,0,-1e3,1e3);var i=p.getTintAppendFloatAlpha;(t.pipeline?t.pipeline:e).batchTexture(t,t.glTexture,t.width,t.height,t.x,t.y,t.width,t.height,t.zoom,t.zoom,t.rotation,t.flipX,!t.flipY,1,1,0,0,0,0,t.width,t.height,i(t._tintTL,t._alphaTL),i(t._tintTR,t._alphaTR),i(t._tintBL,t._alphaBL),i(t._tintBR,t._alphaBR),t._isTinted&&t.tintFill,0,0,this.defaultCamera,null)}this.setBlankTexture(!0)}t.mask&&(this.currentCameraMask.mask=null,t.mask.postRenderWebGL(this,t._maskCamera))},preRender:function(){if(!this.contextLost){var t=this.gl,e=this.pipelines;if(t.bindFramebuffer(t.FRAMEBUFFER,null),this.config.clearBeforeRender){var i=this.config.backgroundColor;t.clearColor(i.redGL,i.greenGL,i.blueGL,i.alphaGL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}for(var n in t.enable(t.SCISSOR_TEST),e)e[n].onPreRender();this.currentScissor=[0,0,this.width,this.height],this.scissorStack=[this.currentScissor],this.game.scene.customViewports&&t.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.setPipeline(this.pipelines.TextureTintPipeline)}},render:function(t,e,i,n){if(!this.contextLost){var s=e.list,r=s.length,a=this.pipelines;for(var h in a)a[h].onRender(t,n);if(this.preRenderCamera(n),0===r)return this.setBlendMode(o.BlendModes.NORMAL),void this.postRenderCamera(n);this.currentType="";for(var l=this.currentMask,u=0;u0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},createVideoTexture:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=this.gl,s=n.NEAREST,r=n.NEAREST,o=t.videoWidth,a=t.videoHeight,l=n.CLAMP_TO_EDGE,u=h(o,a);return!e&&u&&(l=n.REPEAT),this.config.antialias&&(s=u?this.mipmapFilter:n.LINEAR,r=n.LINEAR),this.createTexture2D(0,s,r,l,l,n.RGBA,t,o,a,!0,!0,i)},updateVideoTexture:function(t,e,i){void 0===i&&(i=!1);var n=this.gl,s=t.videoWidth,r=t.videoHeight;return s>0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},setTextureFilter:function(t,e){var i=this.gl,n=[i.LINEAR,i.NEAREST][e];return this.setTexture2D(t,0),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,n),this.setTexture2D(null,0),this},setFloat1:function(t,e,i){return this.setProgram(t),this.gl.uniform1f(this.gl.getUniformLocation(t,e),i),this},setFloat2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2f(this.gl.getUniformLocation(t,e),i,n),this},setFloat3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3f(this.gl.getUniformLocation(t,e),i,n,s),this},setFloat4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4f(this.gl.getUniformLocation(t,e),i,n,s,r),this},setFloat1v:function(t,e,i){return this.setProgram(t),this.gl.uniform1fv(this.gl.getUniformLocation(t,e),i),this},setFloat2v:function(t,e,i){return this.setProgram(t),this.gl.uniform2fv(this.gl.getUniformLocation(t,e),i),this},setFloat3v:function(t,e,i){return this.setProgram(t),this.gl.uniform3fv(this.gl.getUniformLocation(t,e),i),this},setFloat4v:function(t,e,i){return this.setProgram(t),this.gl.uniform4fv(this.gl.getUniformLocation(t,e),i),this},setInt1:function(t,e,i){return this.setProgram(t),this.gl.uniform1i(this.gl.getUniformLocation(t,e),i),this},setInt2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2i(this.gl.getUniformLocation(t,e),i,n),this},setInt3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3i(this.gl.getUniformLocation(t,e),i,n,s),this},setInt4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4i(this.gl.getUniformLocation(t,e),i,n,s,r),this},setMatrix2:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix2fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix3:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix3fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix4:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix4fv(this.gl.getUniformLocation(t,e),i,n),this},getMaxTextures:function(){return this.config.maxTextures},getMaxTextureSize:function(){return this.config.maxTextureSize},destroy:function(){for(var t=0;t0&&this.flush();var e=this.inverseRotationMatrix;if(t){var i=-t,n=Math.cos(i),s=Math.sin(i);e[1]=s,e[3]=-s,e[0]=e[4]=n}else e[0]=e[4]=1,e[1]=e[3]=0;this.renderer.setMatrix3(this.program,"uInverseRotationMatrix",!1,e),this.currentNormalMapRotation=t}},batchSprite:function(t,e,i){if(this.active){var n=t.texture.dataSource[t.frame.sourceIndex];n&&(this.renderer.setPipeline(this),this.setTexture2D(n.glTexture,1),this.setNormalMapRotation(t.rotation),r.prototype.batchSprite.call(this,t,e,i))}}});a.LIGHT_COUNT=o,t.exports=a},function(t,e,i){var n=i(0),s=i(2),r=i(237),o=i(339),a=i(340),h=i(30),l=i(145),u=new n({Extends:l,Mixins:[r],initialize:function(t){var e=t.renderer.config;l.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:t.renderer.gl.TRIANGLE_STRIP,vertShader:s(t,"vertShader",a),fragShader:s(t,"fragShader",o),vertexCapacity:s(t,"vertexCapacity",6*e.batchSize),vertexSize:s(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.mvpInit()},onBind:function(){return l.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return l.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this}});t.exports=u},function(t,e,i){var n={};t.exports=n;var s=i(101),r=i(37);n.fromVertices=function(t){for(var e={},i=0;i1?1:0;d1?1:0;p0:0!=(t.mask&e.category)&&0!=(e.mask&t.category)}},function(t,e,i){var n={};t.exports=n;var s=i(86),r=i(101);n.collides=function(t,e,i){var o,a,h,l,u=!1;if(i){var c=t.parent,d=e.parent,f=c.speed*c.speed+c.angularSpeed*c.angularSpeed+d.speed*d.speed+d.angularSpeed*d.angularSpeed;u=i&&i.collided&&f<.2,l=i}else l={collided:!1,bodyA:t,bodyB:e};if(i&&u){var p=l.axisBody,g=p===t?e:t,v=[p.axes[i.axisNumber]];if(h=n._overlapAxes(p.vertices,g.vertices,v),l.reused=!0,h.overlap<=0)return l.collided=!1,l}else{if((o=n._overlapAxes(t.vertices,e.vertices,t.axes)).overlap<=0)return l.collided=!1,l;if((a=n._overlapAxes(e.vertices,t.vertices,e.axes)).overlap<=0)return l.collided=!1,l;o.overlaps?s=a:a=0?o.index-1:u.length-1],l.x=s.x-c.x,l.y=s.y-c.y,h=-r.dot(i,l),a=s,s=u[(o.index+1)%u.length],l.x=s.x-c.x,l.y=s.y-c.y,(n=-r.dot(i,l))>>0;if("function"!=typeof t)throw new TypeError;for(var n=arguments.length>=2?arguments[1]:void 0,s=0;s>16)+(65280&t)+((255&t)<<16)},n={_tintTL:16777215,_tintTR:16777215,_tintBL:16777215,_tintBR:16777215,_isTinted:!1,tintFill:!1,clearTint:function(){return this.setTint(16777215),this._isTinted=!1,this},setTint:function(t,e,n,s){return void 0===t&&(t=16777215),void 0===e&&(e=t,n=t,s=t),this._tintTL=i(t),this._tintTR=i(e),this._tintBL=i(n),this._tintBR=i(s),this._isTinted=!0,this.tintFill=!1,this},setTintFill:function(t,e,i,n){return this.setTint(t,e,i,n),this.tintFill=!0,this},tintTopLeft:{get:function(){return this._tintTL},set:function(t){this._tintTL=i(t),this._isTinted=!0}},tintTopRight:{get:function(){return this._tintTR},set:function(t){this._tintTR=i(t),this._isTinted=!0}},tintBottomLeft:{get:function(){return this._tintBL},set:function(t){this._tintBL=i(t),this._isTinted=!0}},tintBottomRight:{get:function(){return this._tintBR},set:function(t){this._tintBR=i(t),this._isTinted=!0}},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){return this._isTinted}}};t.exports=n},function(t,e){t.exports="changedata"},function(t,e){t.exports="changedata-"},function(t,e){t.exports="removedata"},function(t,e){t.exports="setdata"},function(t,e){t.exports="destroy"},function(t,e){t.exports="complete"},function(t,e){t.exports="created"},function(t,e){t.exports="error"},function(t,e){t.exports="loop"},function(t,e){t.exports="play"},function(t,e){t.exports="seeked"},function(t,e){t.exports="seeking"},function(t,e){t.exports="stop"},function(t,e){t.exports="timeout"},function(t,e){t.exports="unlocked"},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"alpha",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"x",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r,o,a){return void 0!==i&&null!==i||(i=e),n(t,"x",e,s,o,a),n(t,"y",i,r,o,a)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"y",e,i,s,r)}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=6.28);for(var s=i,r=(n-i)/t.length,o=0;o0?s(o,i):i<0&&r(o,Math.abs(i));for(var a=0;a1)if(0===s){var d=t.length-1;for(o=t[d].x,a=t[d].y,h=d-1;h>=0;h--)l=(c=t[h]).x,u=c.y,c.x=o,c.y=a,o=l,a=u;t[d].x=e,t[d].y=i}else{for(o=t[0].x,a=t[0].y,h=1;h0?(this._speedX-=this.dragX*t,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*t,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*t,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*t,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom&&(e.zoom+=this._zoom,e.zoom<.001&&(e.zoom=.001))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=r},function(t,e,i){t.exports={Camera:i(292),BaseCamera:i(91),CameraManager:i(699),Effects:i(300),Events:i(48)}},function(t,e){t.exports="cameradestroy"},function(t,e){t.exports="camerafadeincomplete"},function(t,e){t.exports="camerafadeinstart"},function(t,e){t.exports="camerafadeoutcomplete"},function(t,e){t.exports="camerafadeoutstart"},function(t,e){t.exports="cameraflashcomplete"},function(t,e){t.exports="cameraflashstart"},function(t,e){t.exports="camerapancomplete"},function(t,e){t.exports="camerapanstart"},function(t,e){t.exports="postrender"},function(t,e){t.exports="prerender"},function(t,e){t.exports="camerashakecomplete"},function(t,e){t.exports="camerashakestart"},function(t,e){t.exports="camerazoomcomplete"},function(t,e){t.exports="camerazoomstart"},function(t,e,i){var n=i(22),s=i(0),r=i(48),o=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s,o,a,h){if(void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=0),void 0===o&&(o=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene),!o&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=n,this.blue=s,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h;var l=t?r.FADE_OUT_START:r.FADE_IN_START;return this.camera.emit(l,this.camera,this,e,i,n,s),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed=1?1:1/e*(1+(e*t|0))}},function(t,e,i){var n=i(22),s=i(0),r=i(48),o=i(3),a=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new o,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===i&&(i=!1),void 0===n&&(n=null),void 0===s&&(s=this.camera.scene),!i&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=t,this.progress=0,"number"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=n,this._onUpdateScope=s,this.camera.emit(r.SHAKE_START,this.camera,this,t,e),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){if(this.isRunning)if(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed0&&(o.preRender(1),t.render(n,e,i,o))}},resetAll:function(){for(var t=0;t1)for(var i=1;i=1)&&(s.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(s.mspointer=!0),navigator.getGamepads&&(s.gamepads=!0),"onwheel"in window||n.ie&&"WheelEvent"in window?s.wheelEvent="wheel":"onmousewheel"in window?s.wheelEvent="mousewheel":n.firefox&&"MouseScrollEvent"in window&&(s.wheelEvent="DOMMouseScroll"),s)},function(t,e,i){var n=i(117),s={audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){s.audioData=!!window.Audio,s.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t=document.createElement("audio"),e=!!t.canPlayType;try{if(e&&(t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")&&(s.ogg=!0),(t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,"")||t.canPlayType("audio/opus;").replace(/^no$/,""))&&(s.opus=!0),t.canPlayType("audio/mpeg;").replace(/^no$/,"")&&(s.mp3=!0),t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")&&(s.wav=!0),(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;").replace(/^no$/,""))&&(s.m4a=!0),t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")&&(s.webm=!0),""!==t.canPlayType('audio/mp4;codecs="ec-3"')))if(n.edge)s.dolby=!0;else if(n.safari&&n.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var i=parseInt(RegExp.$1,10),r=parseInt(RegExp.$2,10);(10===i&&r>=11||i>10)&&(s.dolby=!0)}}catch(t){}return s}()},function(t,e){var i={h264:!1,hls:!1,mp4:!1,ogg:!1,vp9:!1,webm:!1};t.exports=function(){var t=document.createElement("video"),e=!!t.canPlayType;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")&&(i.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.h264=!0,i.mp4=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")&&(i.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")&&(i.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.hls=!0))}catch(t){}return i}()},function(t,e){var i={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){var t,e="Fullscreen",n="FullScreen",s=["request"+e,"request"+n,"webkitRequest"+e,"webkitRequest"+n,"msRequest"+e,"msRequest"+n,"mozRequest"+n,"mozRequest"+e];for(t=0;tMath.PI&&(t-=n.PI2),Math.abs(((t+n.TAU)%n.PI2-n.PI2)%n.PI2)}},function(t,e,i){var n=i(317);t.exports=function(t){return n(t+Math.PI)}},function(t,e,i){var n=i(15);t.exports=function(t,e,i){return void 0===i&&(i=.05),t===e?t:(Math.abs(e-t)<=i||Math.abs(e-t)>=n.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e1?t[i]-(n(s-i,t[i],t[i],t[i-1],t[i-1])-t[i]):n(s-r,t[r?r-1:0],t[r],t[i1?n(t[i],t[i-1],i-s):n(t[r],t[r+1>i?i:r+1],s-r)}},function(t,e,i){var n=i(158);t.exports=function(t,e,i){return e+(i-e)*n(t,0,1)}},function(t,e,i){t.exports={GetNext:i(327),IsSize:i(118),IsValue:i(754)}},function(t,e){t.exports=function(t){return t>0&&0==(t&t-1)}},function(t,e,i){t.exports={Ceil:i(328),Floor:i(93),To:i(756)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var n=0;n>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return this.n=i,2.3283064365386963e-10*(i>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e0;e--){var i=Math.floor(this.frac()*(e+1)),n=t[i];t[i]=t[e],t[e]=n}return t}});t.exports=n},function(t,e){t.exports=function(t){for(var e=0,i=0;i1?void 0!==n?(s=(n-t)/(n-i))<0&&(s=0):s=1:s<0&&(s=0),s}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,n=2*Math.random()-1,s=Math.sqrt(1-n*n)*e;return t.x=Math.cos(i)*s,t.y=Math.sin(i)*s,t.z=n*e,t}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},function(t,e){t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.round(t*n)/n}},function(t,e){t.exports=function(t,e,i,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=1),n*=Math.PI/t;for(var s=[],r=[],o=0;o0&&t<=e*i&&(r=t>e-1?t-(o=Math.floor(t/e))*e:t,s.set(r,o)),s}},function(t,e){t.exports=function(t,e,i){return Math.abs(t-e)<=i}},function(t,e,i){var n=i(173),s=i(335),r=i(336),o=new s,a=new r,h=new n;t.exports=function(t,e,i){return a.setAxisAngle(e,i),o.fromRotationTranslation(a,h.set(0,0,0)),t.transformMat4(o)}},function(t,e){t.exports="addtexture"},function(t,e){t.exports="onerror"},function(t,e){t.exports="onload"},function(t,e){t.exports="ready"},function(t,e){t.exports="removetexture"},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","","precision mediump float;","","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","","void main()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," float alpha = mainColor.a;",""," if (!uInvertMaskAlpha)"," {"," alpha *= (maskColor.a);"," }"," else"," {"," alpha *= (1.0 - maskColor.a);"," }",""," gl_FragColor = vec4(mainColor.rgb * alpha, alpha);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","","precision mediump float;","","attribute vec2 inPosition;","","void main()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_FORWARD_DIFFUSE_FS","","precision mediump float;","","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","","const int kMaxLights = %LIGHT_COUNT%;","","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","","varying vec2 outTexCoord;","varying vec4 outTint;","","void main()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 color = texture2D(uMainSampler, outTexCoord) * vec4(outTint.rgb * outTint.a, outTint.a);"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;",""," for (int index = 0; index < kMaxLights; ++index)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }",""," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","","}",""].join("\n")},function(t,e,i){t.exports={GenerateTexture:i(345),Palettes:i(785)}},function(t,e,i){t.exports={ARNE16:i(346),C64:i(786),CGA:i(787),JMP:i(788),MSX:i(789)}},function(t,e){t.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},function(t,e){t.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},function(t,e,i){t.exports={Path:i(791),CubicBezier:i(347),Curve:i(81),Ellipse:i(348),Line:i(349),QuadraticBezier:i(350),Spline:i(351)}},function(t,e,i){var n=i(0),s=i(347),r=i(348),o=i(5),a=i(349),h=i(792),l=i(350),u=i(12),c=i(351),d=i(3),f=i(15),p=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return void 0===e&&(e=!1),this.ellipseTo(t,t,0,360,e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new a(e,t)),this},cubicBezierTo:function(t,e,i,n,r,o){var a,h,l,u=this.getEndPoint();return t instanceof d?(a=t,h=e,l=i):(a=new d(i,n),h=new d(r,o),l=new d(t,e)),this.add(new s(u,a,h,l))},quadraticBezierTo:function(t,e,i,n){var s,r,o=this.getEndPoint();return t instanceof d?(s=t,r=e):(s=new d(i,n),r=new d(t,e)),this.add(new l(o,s,r))},draw:function(t,e){for(var i=0;i0?this.curves[this.curves.length-1].getPoint(1,t):t.copy(this.startPoint),t},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),n=this.getCurveLengths(),s=0;s=i){var r=n[s]-i,o=this.curves[s],a=o.getLength(),h=0===a?0:1-r/a;return o.getPointAt(h,e)}s++}return null},getPoints:function(t){void 0===t&&(t=12);for(var e,i=[],n=0;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i},getRandomPoint:function(t){return void 0===t&&(t=new d),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getStartPoint:function(t){return void 0===t&&(t=new d),t.copy(this.startPoint)},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):this._tmpVec2B.set(t,e);var i=this.getEndPoint(this._tmpVec2A);return this.add(new a([i.x,i.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new h(t.x,t.y)):this.add(new h(t,e))},toJSON:function(){for(var t=[],e=0;e>16&255,g:t>>8&255,b:255&t,a:255};return t>16777215&&(e.a=t>>>24),e}},function(t,e,i){var n=i(33),s=i(355);t.exports=function(t,e,i){var r=i,o=i,a=i;if(0!==e){var h=i<.5?i*(1+e):i+e-i*e,l=2*i-h;r=s(l,h,t+1/3),o=s(l,h,t),a=s(l,h,t-1/3)}return(new n).setGLTo(r,o,a,1)}},function(t,e,i){var n=i(164);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],s=0;s<=359;s++)i.push(n(s/359,t,e));return i}},function(t,e,i){var n=i(115),s=function(t,e,i,s,r,o,a,h){void 0===a&&(a=100),void 0===h&&(h=0);var l=h/a;return{r:n(t,s,l),g:n(e,r,l),b:n(i,o,l)}};t.exports={RGBWithRGB:s,ColorWithRGB:function(t,e,i,n,r,o){return void 0===r&&(r=100),void 0===o&&(o=0),s(t.r,t.g,t.b,e,i,n,r,o)},ColorWithColor:function(t,e,i,n){return void 0===i&&(i=100),void 0===n&&(n=0),s(t.r,t.g,t.b,e.r,e.g,e.b,i,n)}}},function(t,e,i){var n=i(171),s=i(33);t.exports=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=255),new s(n(t,e),n(t,e),n(t,e))}},function(t,e,i){var n=i(354);t.exports=function(t,e,i,s,r){return void 0===s&&(s=255),void 0===r&&(r="#"),"#"===r?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1):"0x"+n(s)+n(t)+n(e)+n(i)}},function(t,e,i){t.exports={BitmapMask:i(277),GeometryMask:i(278)}},function(t,e,i){var n={AddToDOM:i(120),DOMContentLoaded:i(356),GetScreenOrientation:i(357),GetTarget:i(362),ParseXML:i(363),RemoveFromDOM:i(177),RequestAnimationFrame:i(343)};t.exports=n},function(t,e,i){t.exports={EventEmitter:i(814)}},function(t,e,i){var n=i(0),s=i(9),r=i(23),o=new n({Extends:s,initialize:function(){s.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});r.register("EventEmitter",o,"events"),t.exports=o},function(t,e,i){var n=i(120),s=i(288),r=i(291),o=i(26),a=i(0),h=i(313),l=i(816),u=i(337),c=i(113),d=i(341),f=i(314),p=i(356),g=i(9),v=i(18),y=i(364),m=i(23),x=i(369),T=i(370),w=i(372),b=i(119),E=i(375),S=i(342),A=i(344),_=i(379),C=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new s(this),this.textures=new E(this),this.cache=new r(this),this.registry=new c(this),this.input=new y(this,this.config),this.scene=new w(this,this.config.sceneConfig),this.device=f,this.scale=new T(this,this.config),this.sound=null,this.sound=_.create(this),this.loop=new S(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,p(this.boot.bind(this))},boot:function(){m.hasCore("EventEmitter")?(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),l(this),d(this),n(this.canvas,this.config.parent),this.textures.once(b.READY,this.texturesReady,this),this.events.emit(v.BOOT)):console.warn("Aborting. Core Plugins missing.")},texturesReady:function(){this.events.emit(v.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),A(this);var t=this.events;t.on(v.HIDDEN,this.onHidden,this),t.on(v.VISIBLE,this.onVisible,this),t.on(v.BLUR,this.onBlur,this),t.on(v.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e);var n=this.renderer;n.preRender(),i.emit(v.PRE_RENDER,n,t,e),this.scene.render(n),n.postRender(),i.emit(v.POST_RENDER,n,t,e)},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e),i.emit(v.PRE_RENDER),i.emit(v.POST_RENDER)},onHidden:function(){this.loop.pause(),this.events.emit(v.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(v.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(v.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=C},function(t,e,i){var n=i(120);t.exports=function(t){var e=t.config;if(e.parent&&e.domCreateContainer){var i=document.createElement("div");i.style.cssText=["display: block;","width: "+t.scale.width+"px;","height: "+t.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: none;","transform: scale(1);","transform-origin: left top;"].join(" "),t.domContainer=i,n(i,e.parent)}}},function(t,e){t.exports="boot"},function(t,e){t.exports="destroy"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameout"},function(t,e){t.exports="gameover"},function(t,e){t.exports="gameobjectdown"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameobjectmove"},function(t,e){t.exports="gameobjectout"},function(t,e){t.exports="gameobjectover"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="wheel"},function(t,e){t.exports="gameobjectup"},function(t,e){t.exports="gameobjectwheel"},function(t,e){t.exports="boot"},function(t,e){t.exports="process"},function(t,e){t.exports="update"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointerdownoutside"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="pointerupoutside"},function(t,e){t.exports="wheel"},function(t,e){t.exports="pointerlockchange"},function(t,e){t.exports="preupdate"},function(t,e){t.exports="shutdown"},function(t,e){t.exports="start"},function(t,e){t.exports="update"},function(t,e){t.exports=function(t){if(!t)return window.innerHeight;var e=Math.abs(window.orientation),i={w:0,h:0},n=document.createElement("div");return n.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(n),i.w=90===e?n.offsetHeight:window.innerWidth,i.h=90===e?window.innerWidth:n.offsetHeight,document.documentElement.removeChild(n),n=null,90!==Math.abs(window.orientation)?i.h:i.w}},function(t,e){t.exports="addfile"},function(t,e){t.exports="complete"},function(t,e){t.exports="filecomplete"},function(t,e){t.exports="filecomplete-"},function(t,e){t.exports="loaderror"},function(t,e){t.exports="load"},function(t,e){t.exports="fileprogress"},function(t,e){t.exports="postprocess"},function(t,e){t.exports="progress"},function(t,e){t.exports="start"},function(t,e,i){var n=i(2),s=i(180);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,i=n(t.settings,"physics",!1);if(e||i){var r=[];if(e&&r.push(s(e+"Physics")),i)for(var o in i)o=s(o.concat("Physics")),-1===r.indexOf(o)&&r.push(o);return r}}},function(t,e,i){var n=i(2);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),i=n(t.settings,"plugins",!1);return Array.isArray(i)?i:e||[]}},function(t,e,i){t.exports={game:"game",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"}},function(t,e){t.exports=function(t,e,i){if(i.getElementsByTagName("TextureAtlas")){var n=t.source[e];t.add("__BASE",e,0,0,n.width,n.height);for(var s,r=i.getElementsByTagName("SubTexture"),o=0;og||c<-g)&&(c=0),c<0&&(c=g+c),-1!==d&&(g=c+(d+1));for(var v=f,y=f,m=0,x=0,T=0;Tr&&(m=w-r),b>o&&(x=b-o),t.add(T,e,i+v,s+y,h-m,l-x),(v+=h+p)+h>r&&(v=f,y+=l+p)}return t}},function(t,e,i){var n=i(2);t.exports=function(t,e,i){var s=n(i,"frameWidth",null),r=n(i,"frameHeight",s);if(!s)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var o=t.source[0];t.add("__BASE",0,0,0,o.width,o.height);var a,h=n(i,"startFrame",0),l=n(i,"endFrame",-1),u=n(i,"margin",0),c=n(i,"spacing",0),d=e.cutX,f=e.cutY,p=e.cutWidth,g=e.cutHeight,v=e.realWidth,y=e.realHeight,m=Math.floor((v-u+c)/(s+c)),x=Math.floor((y-u+c)/(r+c)),T=m*x,w=e.x,b=s-w,E=s-(v-p-w),S=e.y,A=r-S,_=r-(y-g-S);(h>T||h<-T)&&(h=0),h<0&&(h=T+h),-1!==l&&(T=h+(l+1));for(var C=u,M=u,P=0,O=e.sourceIndex,R=0;R0){var r=i-t.length;if(r<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.push(e),n&&n.call(s,e),e):null;for(var o=e.length-1;o>=0;)-1!==t.indexOf(e[o])&&e.splice(o,1),o--;if(0===(o=e.length))return null;i>0&&o>r&&(e.splice(r),o=r);for(var a=0;a0){var o=n-t.length;if(o<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.splice(i,0,e),s&&s.call(r,e),e):null;for(var a=e.length-1;a>=0;)-1!==t.indexOf(e[a])&&e.pop(),a--;if(0===(a=e.length))return null;n>0&&a>o&&(e.splice(o),a=o);for(var h=a-1;h>=0;h--){var l=e[h];t.splice(i,0,l),s&&s.call(r,l)}return e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i0){var n=t[i-1],s=t.indexOf(n);t[i]=n,t[s]=e}return t}},function(t,e){t.exports=function(t,e,i){var n=t.indexOf(e);if(-1===n||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return n!==i&&(t.splice(n,1),t.splice(i,0,e)),e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);if(-1!==i&&it.length-1)throw new Error("Index out of bounds");var r=n(t,e);return i&&i.call(s,r),r}},function(t,e,i){var n=i(68);t.exports=function(t,e,i,s,r){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===r&&(r=t),n(t,e,i)){var o=i-e,a=t.splice(e,o);if(s)for(var h=0;h0&&(t.splice(i,1),t.unshift(e)),e}},function(t,e,i){var n=i(68);t.exports=function(t,e,i,s,r){if(void 0===s&&(s=0),void 0===r&&(r=t.length),n(t,s,r))for(var o=s;o0){for(n=0;nl||U-N>l?(Y.push(X.i-1),X.cr?(Y.push(X.i+X.word.length),N=0,B=null):B=X):X.cr&&(Y.push(X.i+X.word.length),N=0,B=null)}for(n=Y.length-1;n>=0;n--)s=a,r=Y[n],o="\n",a=s.substr(0,r)+o+s.substr(r+1);i.wrappedText=a,h=a.length,D=[],F=null}for(n=0;nb&&(c=b),d>E&&(d=E);var G=b+w.xAdvance,V=E+v;fR&&(R=k),kR&&(R=k),k0&&(a=(o=z.wrappedText).length);var U=e._bounds.lines;1===N?X=(U.longest-U.lengths[0])/2:2===N&&(X=U.longest-U.lengths[0]);for(var W=s.roundPixels,G=0;G0&&(a=(o=L.wrappedText).length);var k=e._bounds.lines;1===P?R=(k.longest-k.lengths[0])/2:2===P&&(R=k.longest-k.lengths[0]),h.translate(-e.displayOriginX,-e.displayOriginY);for(var D=s.roundPixels,F=0;F0!=t>0,this._alpha=t}}});t.exports=r},function(t,e,i){var n=i(1),s=i(1);n=i(951),s=i(952),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){var r=e.list;if(0!==r.length){var o=e.localTransform;s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var a=-1!==e.blendMode;a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=r,d=r.length,f=0;f0||e.cropHeight>0;l&&(h.flush(),t.pushScissor(e.x,e.y,e.cropWidth*e.scaleX,e.cropHeight*e.scaleY));var u=h._tempMatrix1,c=h._tempMatrix2,d=h._tempMatrix3,f=h._tempMatrix4;c.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),u.copyFrom(s.matrix),r?(u.multiplyWithOffset(r,-s.scrollX*e.scrollFactorX,-s.scrollY*e.scrollFactorY),c.e=e.x,c.f=e.y,u.multiply(c,d)):(c.e-=s.scrollX*e.scrollFactorX,c.f-=s.scrollY*e.scrollFactorY,u.multiply(c,d));var p=e.frame,g=p.glTexture,v=p.cutX,y=p.cutY,m=g.width,x=g.height,T=e._isTinted&&e.tintFill,w=n.getTintAppendFloatAlpha(e._tintTL,s.alpha*e._alphaTL),b=n.getTintAppendFloatAlpha(e._tintTR,s.alpha*e._alphaTR),E=n.getTintAppendFloatAlpha(e._tintBL,s.alpha*e._alphaBL),S=n.getTintAppendFloatAlpha(e._tintBR,s.alpha*e._alphaBR);h.setTexture2D(g,0);var A,_,C=0,M=0,P=0,O=0,R=e.letterSpacing,L=0,k=0,D=0,F=0,I=e.scrollX,B=e.scrollY,N=e.fontData,Y=N.chars,X=N.lineHeight,z=e.fontSize/N.size,U=0,W=e._align,G=0,V=0;e.getTextBounds(!1);var H=e._bounds.lines;1===W?V=(H.longest-H.lengths[0])/2:2===W&&(V=H.longest-H.lengths[0]);for(var j=s.roundPixels,q=e.displayCallback,K=e.callbackData,J=0;J0&&e.cropHeight>0&&(h.beginPath(),h.rect(0,0,e.cropWidth,e.cropHeight),h.clip());for(var N=0;N0&&(Y=Y%b-b):Y>b?Y=b:Y<0&&(Y=b+Y%b),null===_&&(_=new o(F+Math.cos(N)*B,I+Math.sin(N)*B,v),E.push(_),D+=.01);D<1+z;)w=Y*D+N,x=F+Math.cos(w)*B,T=I+Math.sin(w)*B,_.points.push(new r(x,T,v)),D+=.01;w=Y+N,x=F+Math.cos(w)*B,T=I+Math.sin(w)*B,_.points.push(new r(x,T,v));break;case n.FILL_RECT:u.setTexture2D(M),u.batchFillRect(p[++P],p[++P],p[++P],p[++P],f,c);break;case n.FILL_TRIANGLE:u.setTexture2D(M),u.batchFillTriangle(p[++P],p[++P],p[++P],p[++P],p[++P],p[++P],f,c);break;case n.STROKE_TRIANGLE:u.setTexture2D(M),u.batchStrokeTriangle(p[++P],p[++P],p[++P],p[++P],p[++P],p[++P],v,f,c);break;case n.LINE_TO:null!==_?_.points.push(new r(p[++P],p[++P],v)):(_=new o(p[++P],p[++P],v),E.push(_));break;case n.MOVE_TO:_=new o(p[++P],p[++P],v),E.push(_);break;case n.SAVE:a.push(f.copyToArray());break;case n.RESTORE:f.copyFromArray(a.pop());break;case n.TRANSLATE:F=p[++P],I=p[++P],f.translate(F,I);break;case n.SCALE:F=p[++P],I=p[++P],f.scale(F,I);break;case n.ROTATE:f.rotate(p[++P]);break;case n.SET_TEXTURE:var U=p[++P],W=p[++P];u.currentFrame=U,u.setTexture2D(U.glTexture,0),u.tintEffect=W,M=U.glTexture;break;case n.CLEAR_TEXTURE:u.currentFrame=t.blankTexture,u.tintEffect=2,M=t.blankTexture.glTexture}}}},function(t,e,i){var n=i(1),s=i(1);n=i(964),s=i(965),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(1),s=i(1);n=i(967),s=i(968),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){t.exports={GravityWell:i(399),Particle:i(400),ParticleEmitter:i(401),ParticleEmitterManager:i(193),Zones:i(974)}},function(t,e,i){var n=i(0),s=i(329),r=i(70),o=i(2),a=i(58),h=new n({initialize:function(t,e,i,n){void 0===n&&(n=!1),this.propertyKey=e,this.propertyValue=i,this.defaultValue=i,this.steps=0,this.counter=0,this.start=0,this.end=0,this.ease,this.emitOnly=n,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.loadConfig(t)},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=o(t,this.propertyKey,this.defaultValue),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return this.propertyValue},onChange:function(t){return this.propertyValue=t,this.setMethods()},setMethods:function(){var t=this.propertyValue,e=typeof t;if("number"===e)this.onEmit=this.staticValueEmit,this.onUpdate=this.staticValueUpdate;else if(Array.isArray(t))this.onEmit=this.randomStaticValueEmit;else if("function"===e)this.emitOnly?this.onEmit=t:this.onUpdate=t;else if("object"===e&&(this.has(t,"random")||this.hasBoth(t,"start","end")||this.hasBoth(t,"min","max"))){this.start=this.has(t,"start")?t.start:t.min,this.end=this.has(t,"end")?t.end:t.max;var i=this.hasBoth(t,"min","max")||!!t.random;if(i){var n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),this.onEmit=this.randomRangedValueEmit}if(this.has(t,"steps"))this.steps=t.steps,this.counter=this.start,this.onEmit=this.steppedEmit;else{var s=this.has(t,"ease")?t.ease:"Linear";this.ease=r(s),i||(this.onEmit=this.easedValueEmit),this.onUpdate=this.easeValueUpdate}}else"object"===e&&this.hasEither(t,"onEmit","onUpdate")&&(this.has(t,"onEmit")&&(this.onEmit=t.onEmit),this.has(t,"onUpdate")&&(this.onUpdate=t.onUpdate));return this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,n){return n},staticValueEmit:function(){return this.propertyValue},staticValueUpdate:function(){return this.propertyValue},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.propertyValue[t]},randomRangedValueEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i),i},steppedEmit:function(){var t=this.counter,e=this.counter+(this.end-this.start)/this.steps;return this.counter=a(e,this.start,this.end),t},easedValueEmit:function(t,e){if(t&&t.data[e]){var i=t.data[e];i.min=this.start,i.max=this.end}return this.start},easeValueUpdate:function(t,e,i){var n=t.data[e];return(n.max-n.min)*this.ease(i)+n.min}});t.exports=h},function(t,e,i){var n=i(1),s=i(1);n=i(972),s=i(973),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(10);t.exports=function(t,e,i,s,r){var o=e.emitters.list,a=o.length;if(0!==a){var h=this.pipeline,l=h._tempMatrix1.copyFrom(s.matrix),u=h._tempMatrix2,c=h._tempMatrix3,d=h._tempMatrix4.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);l.multiply(d),t.setPipeline(h);var f=s.roundPixels,p=e.defaultFrame.glTexture,g=n.getTintAppendFloatAlphaAndSwap;h.setTexture2D(p,0);for(var v=0;v?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"}},function(t,e,i){var n=i(6);t.exports=function(t,e){var i=e.width,s=e.height,r=Math.floor(i/2),o=Math.floor(s/2),a=n(e,"chars","");if(""!==a){var h=n(e,"image",""),l=n(e,"offset.x",0),u=n(e,"offset.y",0),c=n(e,"spacing.x",0),d=n(e,"spacing.y",0),f=n(e,"lineSpacing",0),p=n(e,"charsPerRow",null);null===p&&(p=t.sys.textures.getFrame(h).width/i)>a.length&&(p=a.length);for(var g=l,v=u,y={retroFont:!0,font:h,size:i,lineHeight:s+f,chars:{}},m=0,x=0;x0&&r.maxLines1&&(d+=f*(h-1)),{width:a,height:d,lines:h,lineWidths:o,lineSpacing:f,lineHeight:c}}},function(t,e,i){var n=i(1),s=i(1);n=i(986),s=i(987),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(10);t.exports=function(t,e,i,s,r){if(0!==e.width&&0!==e.height){var o=e.frame,a=o.width,h=o.height,l=n.getTintAppendFloatAlpha;this.pipeline.batchTexture(e,o.glTexture,a,h,e.x,e.y,a/e.style.resolution,h/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,a,h,l(e._tintTL,s.alpha*e._alphaTL),l(e._tintTR,s.alpha*e._alphaTR),l(e._tintBL,s.alpha*e._alphaBL),l(e._tintBR,s.alpha*e._alphaBR),e._isTinted&&e.tintFill,0,0,s,r)}}},function(t,e){t.exports=function(t,e,i,n,s){0!==e.width&&0!==e.height&&t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(0),s=i(14),r=i(6),o=i(989),a={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},h=new n({initialize:function(t,e){this.parent=t,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this._font,this.setStyle(e,!1,!0);var i=r(e,"metrics",!1);this.metrics=i?{ascent:r(i,"ascent",0),descent:r(i,"descent",0),fontSize:r(i,"fontSize",0)}:o(this)},setStyle:function(t,e,i){for(var n in void 0===e&&(e=!0),void 0===i&&(i=!1),t&&t.hasOwnProperty("fontSize")&&"number"==typeof t.fontSize&&(t.fontSize=t.fontSize.toString()+"px"),a){var o=i?a[n][1]:this[n];this[n]="wordWrapCallback"===n||"wordWrapCallbackScope"===n?r(t,a[n][0],o):s(t,a[n][0],o)}var h=r(t,"font",null);null!==h&&this.setFont(h,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var l=r(t,"fill",null);return null!==l&&(this.color=l),e?this.update(!0):this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline="alphabetic",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap="round",e.lineJoin="round"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=o(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i=t,n="",s="";if("string"!=typeof t)i=r(t,"fontFamily","Courier"),n=r(t,"fontSize","16px"),s=r(t,"fontStyle","");else{var o=t.split(" "),a=0;s=o.length>2?o[a++]:"",n=o[a++]||"16px",i=o[a++]||"Courier"}return i===this.fontFamily&&n===this.fontSize&&s===this.fontStyle||(this.fontFamily=i,this.fontSize=n,this.fontStyle=s,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return"number"==typeof t&&(t=t.toString()+"px"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,n,s,r){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i="#000"),void 0===n&&(n=0),void 0===s&&(s=!1),void 0===r&&(r=!0),this.shadowOffsetX=t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=n,this.shadowStroke=s,this.shadowFill=r,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return void 0===t&&(t="#000"),this.shadowColor=t,this.update(!1)},setShadowBlur:function(t){return void 0===t&&(t=0),this.shadowBlur=t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return void 0===t&&(t="left"),this.align=t,this.update(!1)},setMaxLines:function(t){return void 0===t&&(t=0),this.maxLines=t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t={};for(var e in a)t[e]=this[e];return t.metrics=this.getTextMetrics(),t},destroy:function(){this.parent=void 0}});t.exports=h},function(t,e,i){var n=i(26);t.exports=function(t){var e=n.create(this),i=e.getContext("2d");t.syncFont(e,i);var s=Math.ceil(i.measureText(t.testString).width*t.baselineX),r=s,o=2*r;r=r*t.baselineY|0,e.width=s,e.height=o,i.fillStyle="#f00",i.fillRect(0,0,s,o),i.font=t._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(t.testString,0,r);var a={ascent:0,descent:0,fontSize:0};if(!i.getImageData(0,0,s,o))return a.ascent=r,a.descent=r+6,a.fontSize=a.ascent+a.descent,n.remove(e),a;var h,l,u=i.getImageData(0,0,s,o).data,c=u.length,d=4*s,f=0,p=!1;for(h=0;hr;h--){for(l=0;l0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.fillColor,e.fillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.altFillColor,e.altFillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0){var R=o.strokeTint,L=n.getTintAppendFloatAlphaAndSwap(e.outlineFillColor,e.outlineFillAlpha*d);for(R.TL=L,R.TR=L,R.BL=L,R.BR=L,_=1;_0)for(n(h,e),_=0;_0)for(n(h,e,e.altFillColor,e.altFillAlpha*c),_=0;_0){for(s(h,e,e.outlineFillColor,e.outlineFillAlpha*c),A=1;Ao.vertexCapacity&&o.flush(),o.setTexture2D(u,0);for(var y=o.vertexViewF32,m=o.vertexViewU32,x=o.vertexCount*o.vertexComponentCount-1,T=0,w=e.tintFill,b=0;b0?Math.PI*t.radius*t.radius:0}},function(t,e,i){var n=i(65);t.exports=function(t){return new n(t.x,t.y,t.radius)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},function(t,e,i){var n=i(12);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(95);n.Area=i(1097),n.Circumference=i(397),n.CircumferencePoint=i(192),n.Clone=i(1098),n.Contains=i(96),n.ContainsPoint=i(1099),n.ContainsRect=i(1100),n.CopyFrom=i(1101),n.Equals=i(1102),n.GetBounds=i(1103),n.GetPoint=i(395),n.GetPoints=i(396),n.Offset=i(1104),n.OffsetPoint=i(1105),n.Random=i(155),t.exports=n},function(t,e){t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},function(t,e,i){var n=i(95);t.exports=function(t){return new n(t.x,t.y,t.width,t.height)}},function(t,e,i){var n=i(96);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(96);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},function(t,e,i){var n=i(12);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(4),s=i(204);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a,h,l=t.x,u=t.y,c=t.radius,d=e.x,f=e.y,p=e.radius;if(u===f)0==(a=(o=-2*f)*o-4*(r=1)*(d*d+(h=(p*p-c*c-d*d+l*l)/(2*(l-d)))*h-2*d*h+f*f-p*p))?i.push(new n(h,-o/(2*r))):a>0&&(i.push(new n(h,(-o+Math.sqrt(a))/(2*r))),i.push(new n(h,(-o-Math.sqrt(a))/(2*r))));else{var g=(l-d)/(u-f),v=(p*p-c*c-d*d+l*l-f*f+u*u)/(2*(u-f));0==(a=(o=2*u*g-2*v*g-2*l)*o-4*(r=g*g+1)*(l*l+u*u+v*v-c*c-2*u*v))?(h=-o/(2*r),i.push(new n(h,v-h*g))):a>0&&(h=(-o+Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)),h=(-o-Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)))}}return i}},function(t,e,i){var n=i(206),s=i(205);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC(),h=e.getLineD();n(r,t,i),n(o,t,i),n(a,t,i),n(h,t,i)}return i}},function(t,e,i){var n=i(12),s=i(131);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},function(t,e,i){var n=i(208),s=i(131);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC(),h=t.getLineD();n(r,e,i),n(o,e,i),n(a,e,i),n(h,e,i)}return i}},function(t,e,i){var n=i(430),s=i(208);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(r,t,i),s(o,t,i),s(a,t,i)}return i}},function(t,e,i){var n=i(206),s=i(432);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC();n(r,e,i),n(o,e,i),n(a,e,i)}return i}},function(t,e,i){var n=i(435),s=i(433);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(t,r,i),s(t,o,i),s(t,a,i)}return i}},function(t,e,i){var n=i(437);t.exports=function(t,e){if(!n(t,e))return!1;var i=Math.min(e.x1,e.x2),s=Math.max(e.x1,e.x2),r=Math.min(e.y1,e.y2),o=Math.max(e.y1,e.y2);return t.x>=i&&t.x<=s&&t.y>=r&&t.y<=o}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===r&&(r=0),!(e>t.right+r||it.bottom+r||s0){var y=u[0],m=[y];for(h=1;h=o&&(m.push(x),y=x)}var T=u[u.length-1];return n(y,T)i&&(i=h.x),h.xr&&(r=h.y),h.yn(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.centerX,e.y=t.centerY,e}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.width,e.y=t.height,e}},function(t,e,i){var n=i(166);t.exports=function(t,e,i){var s=t.centerX,r=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),n(t,s,r)}},function(t,e,i){var n=i(12),s=i(131);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},function(t,e){t.exports=function(t,e){for(var i=t.x,n=t.right,s=t.y,r=t.bottom,o=0;oe.x&&t.ye.y}},function(t,e,i){var n=i(4),s=i(35);t.exports=function(t,e,i){void 0===i&&(i=new n),e=s(e);var r=Math.sin(e),o=Math.cos(e),a=o>0?t.width/2:t.width/-2,h=r>0?t.height/2:t.height/-2;return Math.abs(a*r)-1&&(s.splice(a,1),this.clear(o,!0))}t.length=0,this._pendingRemoval.length=0,this._list=s.concat(e.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.isActive()},updatePoll:function(t,e){if(!this.isActive())return!1;if(this.pluginEvents.emit(d.UPDATE,t,e),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var i,n=this.manager,s=n.pointers,r=n.pointersTotal;for(i=0;i0){if(this._pollTimer-=e,!(this._pollTimer<0))return!1;this._pollTimer=this.pollRate}var a=!1;for(i=0;i0&&(a=!0)}return a},update:function(t,e){if(!this.isActive())return!1;for(var i=e.length,n=!1,s=0;s0&&(n=!0)}return this._updatedThisFrame=!0,n},clear:function(t,e){void 0===e&&(e=!1);var i=t.input;if(i){e||this.queueForRemoval(t),i.gameObject=void 0,i.target=void 0,i.hitArea=void 0,i.hitAreaCallback=void 0,i.callbackContext=void 0,this.manager.resetCursor(i),t.input=null;var n=this._draggable.indexOf(t);return n>-1&&this._draggable.splice(n,1),(n=this._drag[0].indexOf(t))>-1&&this._drag[0].splice(n,1),(n=this._over[0].indexOf(t))>-1&&this._over[0].splice(n,1),t}},disable:function(t){t.input.enabled=!1},enable:function(t,e,i,n){return void 0===n&&(n=!1),t.input?t.input.enabled=!0:this.setHitArea(t,e,i),t.input&&n&&!t.input.dropZone&&(t.input.dropZone=n),this},hitTestPointer:function(t){for(var e=this.cameras.getCamerasBelowPointer(t),i=0;i0)return t.camera=n,s}return t.camera=e[0],[]},processDownEvents:function(t){var e=0,i=this._temp,n=this._eventData,s=this._eventContainer;n.cancelled=!1;for(var r=!1,o=0;o0&&l(t.x,t.y,t.downX,t.downY)>=s?i=!0:n>0&&e>=t.downTime+n&&(i=!0),i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;for(var e=this._drag[t.id],i=0;i1&&(this.sortGameObjects(i),this.topOnly&&i.splice(1)),this._drag[t.id]=i,0===this.dragDistanceThreshold&&0===this.dragTimeThreshold?(this.setDragState(t,3),this.processDragStartList(t)):(this.setDragState(t,2),0))},processDragMoveEvent:function(t){if(2===this.getDragState(t)&&this.processDragThresholdEvent(t,this.manager.game.loop.now),4!==this.getDragState(t))return 0;for(var e=this._tempZones,i=this._drag[t.id],n=0;n0?(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),e[0]?(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):a.target=null)}else!h&&e[0]&&(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h));if(o.parentContainer){var u=t.x-a.dragStartXGlobal,c=t.y-a.dragStartYGlobal,f=o.getParentRotation(),p=u*Math.cos(f)+c*Math.sin(f),g=c*Math.cos(f)-u*Math.sin(f);p*=1/o.parentContainer.scaleX,g*=1/o.parentContainer.scaleY,s=p+a.dragStartX,r=g+a.dragStartY}else s=t.x-a.dragX,r=t.y-a.dragY;o.emit(d.GAMEOBJECT_DRAG,t,s,r),this.emit(d.DRAG,t,o,s,r)}return i.length},processDragUpEvent:function(t){for(var e=this._drag[t.id],i=0;i0){var r=this.manager,o=this._eventData,a=this._eventContainer;o.cancelled=!1;for(var h=!1,l=0;l0){var s=this.manager,r=this._eventData,o=this._eventContainer;r.cancelled=!1;var a=!1;this.sortGameObjects(e);for(var h=0;h0){for(this.sortGameObjects(s),e=0;e0){for(this.sortGameObjects(r),e=0;e-1&&this._draggable.splice(s,1)}return this},makePixelPerfect:function(t){void 0===t&&(t=1);var e=this.systems.textures;return h(e,t)},setHitArea:function(t,e,i){if(void 0===e)return this.setHitAreaFromTexture(t);Array.isArray(t)||(t=[t]);var n=!1,s=!1,r=!1,o=!1,h=!1,l=!0;if(y(e)){var u=e;e=p(u,"hitArea",null),i=p(u,"hitAreaCallback",null),n=p(u,"draggable",!1),s=p(u,"dropZone",!1),r=p(u,"cursor",!1),o=p(u,"useHandCursor",!1),h=p(u,"pixelPerfect",!1);var c=p(u,"alphaTolerance",1);h&&(e={},i=this.makePixelPerfect(c)),e&&i||(this.setHitAreaFromTexture(t),l=!1)}else"function"!=typeof e||i||(i=e,e={});for(var d=0;d=e}}},function(t,e,i){t.exports={Events:i(133),KeyboardManager:i(365),KeyboardPlugin:i(1219),Key:i(450),KeyCodes:i(122),KeyCombo:i(451),JustDown:i(1224),JustUp:i(1225),DownDuration:i(1226),UpDuration:i(1227)}},function(t,e){t.exports="keydown"},function(t,e){t.exports="keyup"},function(t,e){t.exports="keycombomatch"},function(t,e){t.exports="down"},function(t,e){t.exports="keydown-"},function(t,e){t.exports="keyup-"},function(t,e){t.exports="up"},function(t,e,i){var n=i(0),s=i(9),r=i(133),o=i(18),a=i(6),h=i(54),l=i(132),u=i(450),c=i(122),d=i(451),f=i(1223),p=i(93),g=new n({Extends:s,initialize:function(t){s.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],t.pluginEvents.once(h.BOOT,this.boot,this),t.pluginEvents.on(h.START,this.start,this)},boot:function(){var t=this.settings.input;this.enabled=a(t,"keyboard",!0);var e=a(t,"keyboard.capture",null);e&&this.addCaptures(e),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.useQueue?this.sceneInputPlugin.pluginEvents.on(h.UPDATE,this.update,this):this.sceneInputPlugin.manager.events.on(h.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this),this.game.events.on(o.BLUR,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var n={};if("string"==typeof t){t=t.split(",");for(var s=0;s-1?n[s]=t:n[t.keyCode]=t,e&&this.addCapture(t.keyCode),t.setEmitOnRepeat(i),t}return"string"==typeof t&&(t=c[t.toUpperCase()]),n[t]||(n[t]=new u(this,t),e&&this.addCapture(t),n[t].setEmitOnRepeat(i)),n[t]},removeKey:function(t,e){void 0===e&&(e=!1);var i,n=this.keys;if(t instanceof u){var s=n.indexOf(t);s>-1&&(i=this.keys[s],this.keys[s]=void 0)}else"string"==typeof t&&(t=c[t.toUpperCase()]);return n[t]&&(i=n[t],n[t]=void 0),i&&(i.plugin=null,e&&i.destroy()),this},createCombo:function(t,e){return new d(this,t,e)},checkDown:function(t,e){if(this.enabled&&t.isDown){var i=p(this.time-t.timeDown,e);if(i>t._tick)return t._tick=i,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,n=0;n0&&e.maxKeyDelay>0){var r=e.timeLastMatched+e.maxKeyDelay;t.timeStamp<=r&&(s=!0,i=n(t,e))}else s=!0,i=n(t,e);return!s&&e.resetOnWrongKey&&(e.index=0,e.current=e.keyCodes[0]),i&&(e.timeLastMatched=t.timeStamp,e.matched=!0,e.timeMatched=t.timeStamp),i}},function(t,e){t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},function(t,e){t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},function(t,e,i){var n=i(122),s={};for(var r in n)s[n[r]]=r;t.exports=s},function(t,e){t.exports=function(t){return!!t._justDown&&(t._justDown=!1,!0)}},function(t,e){t.exports=function(t){return!!t._justUp&&(t._justUp=!1,!0)}},function(t,e){t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i'),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push("");var n=[i.join("\n")],o=this;try{var a=new window.Blob(n,{type:"image/svg+xml;charset=utf-8"})}catch(t){return o.state=s.FILE_ERRORED,void o.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){r.revokeObjectURL(o.data),o.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(o.data),o.onProcessError()},r.createObjectURL(this.data,a,"image/svg+xml")},addToCache:function(){var t=this.cache.addImage(this.key,this.data);this.pendingDestroy(t)}});o.register("htmlTexture",function(t,e,i,n,s){if(Array.isArray(t))for(var r=0;r0},isLoading:function(){return this.state===s.LOADER_LOADING||this.state===s.LOADER_PROCESSING},isReady:function(){return this.state===s.LOADER_IDLE||this.state===s.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(a.START,this),0===this.list.size?this.loadComplete():(this.state=s.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(c.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(a.PROGRESS,this.progress)},update:function(){this.state===s.LOADER_LOADING&&this.list.size>0&&this.inflight.sizei&&(n=l,i=c)}}return n},moveTo:function(t,e,i,n,s){void 0===n&&(n=60),void 0===s&&(s=0);var o=Math.atan2(i-t.y,e-t.x);return s>0&&(n=r(t.x,t.y,e,i)/(s/1e3)),t.body.velocity.setToPolar(o,n),o},moveToObject:function(t,e,i,n){return this.moveTo(t,e.x,e.y,i,n)},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(s(t),e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(t,e)},overlapRect:function(t,e,i,n,s,r){return c(this.world,t,e,i,n,s,r)},overlapCirc:function(t,e,i,n,s){return u(this.world,t,e,i,n,s)},shutdown:function(){if(this.world){var t=this.systems.events;t.off(f.UPDATE,this.world.update,this.world),t.off(f.POST_UPDATE,this.world.postUpdate,this.world),t.off(f.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null}},destroy:function(){this.shutdown(),this.scene.sys.events.off(f.START,this.start,this),this.scene=null,this.systems=null}});d.register("ArcadePhysics",v,"arcadePhysics"),t.exports=v},function(t,e){t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},function(t,e){t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},function(t,e){t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i){return this.body.setCollideWorldBounds(t,e,i),this}}},function(t,e){t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},function(t,e){t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},function(t,e){var i={enableBody:function(t,e,i,n,s){return t&&this.body.reset(e,i),n&&(this.body.gameObject.active=!0),s&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};t.exports=i},function(t,e){t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},function(t,e){t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},function(t,e){var i={setImmovable:function(t){return void 0===t&&(t=!0),this.body.immovable=t,this}};t.exports=i},function(t,e){t.exports={setMass:function(t){return this.body.mass=t,this}}},function(t,e){t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},function(t,e){t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},function(t,e,i){var n=i(461),s=i(65),r=i(204),o=i(205);t.exports=function(t,e,i,a,h,l){var u=n(t,e-a,i-a,2*a,2*a,h,l);if(0===u.length)return u;for(var c=new s(e,i,a),d=new s,f=[],p=0;pe.deltaAbsY()?m=-1:e.deltaAbsX()0&&u&&t.checkCollision.right&&h&&t.right>i&&(a=t.right-i)>r&&(a=0),0!==a&&(t.customSeparateX?t.overlapX=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):e>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=e,0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x}},function(t,e,i){var n=i(1284);t.exports=function(t,e,i,s,r,o){var a=0,h=e.faceTop,l=e.faceBottom,u=e.collideUp,c=e.collideDown;return o||(h=!0,l=!0,u=!0,c=!0),t.deltaY()<0&&c&&t.checkCollision.up?l&&t.y0&&u&&t.checkCollision.down&&h&&t.bottom>i&&(a=t.bottom-i)>r&&(a=0),0!==a&&(t.customSeparateY?t.overlapY=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):e>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=e,0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},function(t,e,i){var n=i(465);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.x,a=e.velocity.x;if(t.immovable||e.immovable)t.immovable?(e.x+=r,e.velocity.x=o-a*e.bounce.x,t.moves&&(e.y+=(t.y-t.prev.y)*t.friction.y)):(t.x-=r,t.velocity.x=a-o*t.bounce.x,e.moves&&(t.y+=(e.y-e.prev.y)*e.friction.y));else{r*=.5,t.x-=r,e.x+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.x=u+h*t.bounce.x,e.velocity.x=u+l*e.bounce.x}return!0}},function(t,e,i){var n=i(466);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateY||e.customSeparateY)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.y,a=e.velocity.y;if(t.immovable||e.immovable)t.immovable?(e.y+=r,e.velocity.y=o-a*e.bounce.y,t.moves&&(e.x+=(t.x-t.prev.x)*t.friction.x)):(t.y-=r,t.velocity.y=a-o*t.bounce.y,e.moves&&(t.x+=(e.x-e.prev.x)*e.friction.x));else{r*=.5,t.y-=r,e.y+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.y=u+h*t.bounce.y,e.velocity.y=u+l*e.bounce.y}return!0}},function(t,e,i){t.exports={COLLIDE:i(1400),PAUSE:i(1401),RESUME:i(1402)}},function(t,e,i){t.exports={Acceleration:i(1404),BodyScale:i(1405),BodyType:i(1406),Bounce:i(1407),CheckAgainst:i(1408),Collides:i(1409),Debug:i(1410),Friction:i(1411),Gravity:i(1412),Offset:i(1413),SetGameObject:i(1414),Velocity:i(1415)}},function(t,e,i){var n={};t.exports=n;var s=i(146),r=i(218),o=i(37),a=i(62),h=i(109);n.stack=function(t,e,i,n,r,o,h){for(var l,u=s.create({label:"Stack"}),c=t,d=e,f=0,p=0;pg&&(g=m),a.translate(y,{x:.5*x,y:.5*m}),c=y.bounds.max.x+r,s.addBody(u,y),l=y,f+=1}else c+=r}d+=g+o,c=t}return u},n.chain=function(t,e,i,n,a,h){for(var l=t.bodies,u=1;u0)for(l=0;l0&&(d=f[l-1+(h-1)*e],s.addConstraint(t,r.create(o.extend({bodyA:d,bodyB:c},a)))),n&&ld||o<(l=d-l)||o>i-1-l))return 1===c&&a.translate(u,{x:(o+(i%2==1?1:-1))*f,y:0}),h(t+(u?o*f:0)+o*r,n,o,l,u,c)})},n.newtonsCradle=function(t,e,i,n,o){for(var a=s.create({label:"Newtons Cradle"}),l=0;l1;if(!d||t!=d.x||e!=d.y){d&&n?(f=d.x,p=d.y):(f=0,p=0);var s={x:f+t,y:p+e};!n&&d||(d=s),g.push(s),y=f+t,m=p+e}},T=function(t){var e=t.pathSegTypeAsLetter.toUpperCase();if("Z"!==e){switch(e){case"M":case"L":case"T":case"C":case"S":case"Q":y=t.x,m=t.y;break;case"H":y=t.x;break;case"V":m=t.y}x(y,m,t.pathSegType)}};for(n._svgPathToAbsolute(t),o=t.getTotalLength(),l=[],i=0;i0?this.setFromTileCollision(i):this.setFromTileRectangle(i)}},setFromTileRectangle:function(t){void 0===t&&(t={}),l(t,"isStatic")||(t.isStatic=!0),l(t,"addToWorld")||(t.addToWorld=!0);var e=this.tile.getBounds(),i=e.x+e.width/2,s=e.y+e.height/2,r=n.rectangle(i,s,e.width,e.height,t);return this.setBody(r,t.addToWorld),this},setFromTileCollision:function(t){void 0===t&&(t={}),l(t,"isStatic")||(t.isStatic=!0),l(t,"addToWorld")||(t.addToWorld=!0);for(var e=this.tile.tilemapLayer.scaleX,i=this.tile.tilemapLayer.scaleY,r=this.tile.getLeft(),o=this.tile.getTop(),a=this.tile.getCollisionGroup(),c=h(a,"objects",[]),d=[],f=0;f1&&(t.parts=d,this.setBody(s.create(t),t.addToWorld)),this},setBody:function(t,e){return void 0===e&&(e=!0),this.body&&this.removeBody(),this.body=t,this.body.gameObject=this,e&&this.world.add(this.body),this},removeBody:function(){return this.body&&(this.world.remove(this.body),this.body.gameObject=void 0,this.body=void 0),this},destroy:function(){this.removeBody(),this.tile.physics.matterBody=void 0,this.removeAllListeners()}});t.exports=c},function(t,e,i){var n=i(1391);n.Body=i(62),n.Composite=i(146),n.World=i(1297),n.Detector=i(515),n.Grid=i(1298),n.Pairs=i(1299),n.Pair=i(472),n.Query=i(1392),n.Resolver=i(1300),n.SAT=i(516),n.Constraint=i(218),n.Common=i(37),n.Engine=i(1393),n.Events=i(239),n.Sleeping=i(238),n.Plugin=i(1296),n.Bodies=i(109),n.Composites=i(1289),n.Axes=i(513),n.Bounds=i(102),n.Svg=i(1290),n.Vector=i(101),n.Vertices=i(86),n.World.add=n.Composite.add,n.World.remove=n.Composite.remove,n.World.addComposite=n.Composite.addComposite,n.World.addBody=n.Composite.addBody,n.World.addConstraint=n.Composite.addConstraint,n.World.clear=n.Composite.clear,t.exports=n},function(t,e,i){var n={};t.exports=n;var s=i(37);n._registry={},n.register=function(t){if(n.isPlugin(t)||s.warn("Plugin.register:",n.toString(t),"does not implement all required fields."),t.name in n._registry){var e=n._registry[t.name],i=n.versionParse(t.version).number,r=n.versionParse(e.version).number;i>r?(s.warn("Plugin.register:",n.toString(e),"was upgraded to",n.toString(t)),n._registry[t.name]=t):i-1},n.isFor=function(t,e){var i=t.for&&n.dependencyParse(t.for);return!t.for||e.name===i.name&&n.versionSatisfies(e.version,i.range)},n.use=function(t,e){if(t.uses=(t.uses||[]).concat(e||[]),0!==t.uses.length){for(var i=n.dependencies(t),r=s.topologicalSort(i),o=[],a=0;a0&&!h.silent&&s.info(o.join(" "))}else s.warn("Plugin.use:",n.toString(t),"does not specify any dependencies to install.")},n.dependencies=function(t,e){var i=n.dependencyParse(t),r=i.name;if(!(r in(e=e||{}))){t=n.resolve(t)||t,e[r]=s.map(t.uses||[],function(e){n.isPlugin(e)&&n.register(e);var r=n.dependencyParse(e),o=n.resolve(e);return o&&!n.versionSatisfies(o.version,r.range)?(s.warn("Plugin.dependencies:",n.toString(o),"does not satisfy",n.toString(r),"used by",n.toString(i)+"."),o._warned=!0,t._warned=!0):o||(s.warn("Plugin.dependencies:",n.toString(e),"used by",n.toString(i),"could not be resolved."),t._warned=!0),r.name});for(var o=0;o=s[2];if("^"===i.operator)return s[0]>0?o[0]===s[0]&&r.number>=i.number:s[1]>0?o[1]===s[1]&&o[2]>=s[2]:o[2]===s[2]}return t===e||"*"===t}},function(t,e,i){var n={};t.exports=n;var s=i(146),r=(i(218),i(37));n.create=function(t){var e=s.create(),i={label:"World",gravity:{x:0,y:1,scale:.001},bounds:{min:{x:-1/0,y:-1/0},max:{x:1/0,y:1/0}}};return r.extend(e,i,t)}},function(t,e,i){var n={};t.exports=n;var s=i(472),r=i(515),o=i(37);n.create=function(t){var e={controller:n,detector:r.collisions,buckets:{},pairs:{},pairsList:[],bucketWidth:48,bucketHeight:48};return o.extend(e,t)},n.update=function(t,e,i,s){var r,o,a,h,l,u=i.world,c=t.buckets,d=!1,f=i.metrics;for(f.broadphaseTests=0,r=0;ru.bounds.max.x||p.bounds.max.yu.bounds.max.y)){var g=n._getRegion(t,p);if(!p.region||g.id!==p.region.id||s){f.broadphaseTests+=1,p.region&&!s||(p.region=g);var v=n._regionUnion(g,p.region);for(o=v.startCol;o<=v.endCol;o++)for(a=v.startRow;a<=v.endRow;a++){h=c[l=n._getBucketId(o,a)];var y=o>=g.startCol&&o<=g.endCol&&a>=g.startRow&&a<=g.endRow,m=o>=p.region.startCol&&o<=p.region.endCol&&a>=p.region.startRow&&a<=p.region.endRow;!y&&m&&m&&h&&n._bucketRemoveBody(t,h,p),(p.region===g||y&&!m||s)&&(h||(h=n._createBucket(c,l)),n._bucketAddBody(t,h,p))}p.region=g,d=!0}}}d&&(t.pairsList=n._createActivePairsList(t))},n.clear=function(t){t.buckets={},t.pairs={},t.pairsList=[]},n._regionUnion=function(t,e){var i=Math.min(t.startCol,e.startCol),s=Math.max(t.endCol,e.endCol),r=Math.min(t.startRow,e.startRow),o=Math.max(t.endRow,e.endRow);return n._createRegion(i,s,r,o)},n._getRegion=function(t,e){var i=e.bounds,s=Math.floor(i.min.x/t.bucketWidth),r=Math.floor(i.max.x/t.bucketWidth),o=Math.floor(i.min.y/t.bucketHeight),a=Math.floor(i.max.y/t.bucketHeight);return n._createRegion(s,r,o,a)},n._createRegion=function(t,e,i,n){return{id:t+","+e+","+i+","+n,startCol:t,endCol:e,startRow:i,endRow:n}},n._getBucketId=function(t,e){return"C"+t+"R"+e},n._createBucket=function(t,e){return t[e]=[]},n._bucketAddBody=function(t,e,i){for(var n=0;n0?n.push(i):delete t.pairs[e[s]];return n}},function(t,e,i){var n={};t.exports=n;var s=i(472),r=i(37);n._pairMaxIdleLife=1e3,n.create=function(t){return r.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},t)},n.update=function(t,e,i){var n,r,o,a,h=t.list,l=t.table,u=t.collisionStart,c=t.collisionEnd,d=t.collisionActive;for(u.length=0,c.length=0,d.length=0,a=0;an._pairMaxIdleLife&&l.push(o);for(o=0;of.friction*f.frictionStatic*D*i&&(I=R,F=o.clamp(f.friction*L*i,-I,I));var B=r.cross(S,y),N=r.cross(A,y),Y=T/(g.inverseMass+v.inverseMass+g.inverseInertia*B*B+v.inverseInertia*N*N);if(k*=Y,F*=Y,P<0&&P*P>n._restingThresh*i)b.normalImpulse=0;else{var X=b.normalImpulse;b.normalImpulse=Math.min(b.normalImpulse+k,0),k=b.normalImpulse-X}if(O*O>n._restingThreshTangent*i)b.tangentImpulse=0;else{var z=b.tangentImpulse;b.tangentImpulse=o.clamp(b.tangentImpulse+F,-I,I),F=b.tangentImpulse-z}s.x=y.x*k+m.x*F,s.y=y.y*k+m.y*F,g.isStatic||g.isSleeping||(g.positionPrev.x+=s.x*g.inverseMass,g.positionPrev.y+=s.y*g.inverseMass,g.anglePrev+=r.cross(S,s)*g.inverseInertia),v.isStatic||v.isSleeping||(v.positionPrev.x-=s.x*v.inverseMass,v.positionPrev.y-=s.y*v.inverseMass,v.anglePrev-=r.cross(A,s)*v.inverseInertia)}}}}},function(t,e,i){t.exports={BasePlugin:i(473),DefaultPlugins:i(174),PluginCache:i(23),PluginManager:i(369),ScenePlugin:i(1302)}},function(t,e,i){var n=i(473),s=i(0),r=i(19),o=new s({Extends:n,initialize:function(t,e){n.call(this,e),this.scene=t,this.systems=t.sys,t.sys.events.once(r.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=o},function(t,e,i){var n=i(17),s=i(176),r={Center:i(358),Events:i(92),Orientation:i(359),ScaleManager:i(370),ScaleModes:i(360),Zoom:i(361)};r=n(!1,r=n(!1,r=n(!1,r=n(!1,r,s.CENTER),s.ORIENTATION),s.SCALE_MODE),s.ZOOM),t.exports=r},function(t,e,i){var n=i(123),s=i(17),r={Events:i(19),SceneManager:i(372),ScenePlugin:i(1305),Settings:i(374),Systems:i(179)};r=s(!1,r,n),t.exports=r},function(t,e,i){var n=i(22),s=i(0),r=i(19),o=i(2),a=i(23),h=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.pluginStart,this)},boot:function(){this.systems.events.once(r.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp("stop",e),this.manager.queueOp("start",e,t),this},transition:function(t){void 0===t&&(t={});var e=o(t,"target",!1),i=this.manager.getScene(e);if(!e||!this.checkValidTransition(i))return!1;var n=o(t,"duration",1e3);this._elapsed=0,this._target=i,this._duration=n,this._willSleep=o(t,"sleep",!1),this._willRemove=o(t,"remove",!1);var s=o(t,"onUpdate",null);s&&(this._onUpdate=s,this._onUpdateScope=o(t,"onUpdateScope",this.scene));var a=o(t,"allowInput",!1);this.settings.transitionAllowInput=a;var h=i.sys.settings;return h.isTransition=!0,h.transitionFrom=this.scene,h.transitionDuration=n,h.transitionAllowInput=a,o(t,"moveAbove",!1)?this.manager.moveAbove(this.key,e):o(t,"moveBelow",!1)&&this.manager.moveBelow(this.key,e),i.sys.isSleeping()?i.sys.wake():this.manager.start(e,o(t,"data")),this.systems.events.emit(r.TRANSITION_OUT,i,n),this.systems.events.on(r.UPDATE,this.step,this),!0},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=n(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;this.systems.events.off(r.UPDATE,this.step,this),t.events.emit(r.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i,n){return this.manager.add(t,e,i,n)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp("start",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp("run",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("pause",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("resume",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("sleep",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("wake",t,e),this},switch:function(t){return t!==this.key&&this.manager.queueOp("switch",this.key,t),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);var n=this.manager.getScene(e);return n&&n.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(r.SHUTDOWN,this.shutdown,this),t.off(r.POST_UPDATE,this.step,this),t.off(r.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});a.register("ScenePlugin",h,"scenePlugin"),t.exports=h},function(t,e,i){t.exports={List:i(126),Map:i(160),ProcessQueue:i(185),RTree:i(467),Set:i(108),Size:i(371)}},function(t,e,i){var n=i(17),s=i(1308),r={CanvasTexture:i(376),Events:i(119),FilterMode:s,Frame:i(94),Parsers:i(378),Texture:i(181),TextureManager:i(375),TextureSource:i(377)};r=n(!1,r,s),t.exports=r},function(t,e){t.exports={LINEAR:0,NEAREST:1}},function(t,e,i){t.exports={Components:i(137),Parsers:i(1338),Formats:i(32),ImageCollection:i(485),ParseToTilemap:i(226),Tile:i(75),Tilemap:i(494),TilemapCreator:i(1347),TilemapFactory:i(1348),Tileset:i(141),LayerData:i(104),MapData:i(105),ObjectLayer:i(488),DynamicTilemapLayer:i(495),StaticTilemapLayer:i(496)}},function(t,e,i){var n=i(24),s=i(51);t.exports=function(t,e,i,r,o,a,h,l){t<0&&(t=0),e<0&&(e=0),void 0===h&&(h=!0);for(var u=n(t,e,i,r,null,l),c=o-t,d=a-e,f=0;f=0&&p=0&&ge.worldView.x&&n.xe.worldView.y&&n.y=v;o--)(h=c[a][o])&&-1!==h.index&&h.visible&&0!==h.alpha&&i.push(h);else if(2===r)for(a=x;a>=m;a--)for(o=v;c[a]&&o=m;a--)for(o=y;c[a]&&o>=v;o--)(h=c[a][o])&&-1!==h.index&&h.visible&&0!==h.alpha&&i.push(h)}else if("isometric"==t.orientation)if(0===r){for(a=m;a=v;o--)if(T(o,a)){if(!(h=c[a][o])||-1===h.index||!h.visible||0===h.alpha)continue;i.push(h)}}else if(2===r){for(a=x;a>=m;a--)for(o=v;c[a]&&o=m;a--)for(o=y;c[a]&&o>=v;o--)if(T(o,a)){if(!(h=c[a][o])||-1===h.index||!h.visible||0===h.alpha)continue;i.push(h)}return u.tilesDrawn=i.length,u.tilesTotal=d*f,i}},function(t,e,i){var n=i(24),s=i(51),r=i(74);t.exports=function(t,e,i,o,a,h,l){for(var u=-1!==l.collideIndexes.indexOf(t),c=n(e,i,o,a,null,l),d=0;d=0;r--)for(s=n.width-1;s>=0;s--)if((o=n.data[r][s])&&o.index===t){if(a===e)return o;a+=1}}else for(r=0;re)){for(var l=t;l<=e;l++)r(l,i,a);if(h)for(var u=0;u=t&&d.index<=e&&n(d,i)}o&&s(0,0,a.width,a.height,a)}}},function(t,e,i){var n=i(74),s=i(51),r=i(221);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var a=0;a0&&n(a,t)}}e&&s(0,0,i.width,i.height,i)}},function(t,e){t.exports=function(t,e,i,n){if("number"==typeof t)n.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var s=0,r=t.length;s1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f0&&(t.currentPipeline&&t.currentPipeline.vertexCount>0&&t.flush(),r.vertexBuffer=e.vertexBuffer[a],t.setPipeline(r),t.setTexture2D(s[a].glTexture,0),t.gl.drawArrays(r.topology,0,e.vertexCount[a]));r.vertexBuffer=o,r.viewIdentity(),r.modelIdentity()}},function(t,e){t.exports=function(t,e,i,n,s){e.cull(n);var r=e.culledTiles,o=r.length;if(0!==o){var a=t._tempMatrix1,h=t._tempMatrix2,l=t._tempMatrix3;h.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),a.copyFrom(n.matrix);var u=t.currentContext,c=e.gidMap;u.save(),s?(a.multiplyWithOffset(s,-n.scrollX*e.scrollFactorX,-n.scrollY*e.scrollFactorY),h.e=e.x,h.f=e.y,a.multiply(h,l),l.copyToContext(u)):(h.e-=n.scrollX*e.scrollFactorX,h.f-=n.scrollY*e.scrollFactorY,h.copyToContext(u));var d=n.alpha*e.alpha;(!t.antialias||e.scaleX>1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f-1&&this._active.splice(s,1),n.destroy()}for(i=0;i=n.delay)){var s=n.elapsed-n.delay;n.elapsed=n.delay,!n.hasDispatched&&n.callback&&(n.hasDispatched=!0,n.callback.apply(n.callbackScope,n.args)),n.repeatCount>0?(n.repeatCount--,n.elapsed=s,n.hasDispatched=!1):this._pendingRemoval.push(n)}}}},shutdown:function(){var t;for(t=0;t-1&&(e.state=u.REMOVED,s.splice(r,1)):(e.state=u.REMOVED,n.splice(r,1))}for(i.length=0,i=this._add,t=0;t>2],r+=i[(3&n[o])<<4|n[o+1]>>4],r+=i[(15&n[o+1])<<2|n[o+2]>>6],r+=i[63&n[o+2]];return s%3==2?r=r.substring(0,r.length-1)+"=":s%3==1&&(r=r.substring(0,r.length-2)+"=="),r}},function(t,e,i){t.exports={Clone:i(67),Extend:i(17),GetAdvancedValue:i(14),GetFastValue:i(2),GetMinMaxValue:i(1372),GetValue:i(6),HasAll:i(1373),HasAny:i(404),HasValue:i(99),IsPlainObject:i(7),Merge:i(107),MergeRight:i(1374),Pick:i(486),SetValue:i(424)}},function(t,e,i){var n=i(6),s=i(22);t.exports=function(t,e,i,r,o){void 0===o&&(o=i);var a=n(t,e,o);return s(a,i,r)}},function(t,e){t.exports=function(t,e){for(var i=0;i=t.pos.x+t.size.x||this.pos.x+this.size.x<=t.pos.x||this.pos.y>=t.pos.y+t.size.y||this.pos.y+this.size.y<=t.pos.y)},resetSize:function(t,e,i,n){return this.pos.x=t,this.pos.y=e,this.size.x=i,this.size.y=n,this},toJSON:function(){return{name:this.name,size:{x:this.size.x,y:this.size.y},pos:{x:this.pos.x,y:this.pos.y},vel:{x:this.vel.x,y:this.vel.y},accel:{x:this.accel.x,y:this.accel.y},friction:{x:this.friction.x,y:this.friction.y},maxVel:{x:this.maxVel.x,y:this.maxVel.y},gravityFactor:this.gravityFactor,bounciness:this.bounciness,minBounceVelocity:this.minBounceVelocity,type:this.type,checkAgainst:this.checkAgainst,collides:this.collides}},fromJSON:function(){},check:function(){},collideWith:function(t,e){this.parent&&this.parent._collideCallback&&this.parent._collideCallback.call(this.parent._callbackScope,this,t,e)},handleMovementTrace:function(){return!0},destroy:function(){this.world.remove(this),this.enabled=!1,this.world=null,this.gameObject=null,this.parent=null}});t.exports=h},function(t,e,i){var n=i(0),s=i(1403),r=new n({initialize:function(t,e){void 0===t&&(t=32),this.tilesize=t,this.data=Array.isArray(e)?e:[],this.width=Array.isArray(e)?e[0].length:0,this.height=Array.isArray(e)?e.length:0,this.lastSlope=55,this.tiledef=s},trace:function(t,e,i,n,s,r){var o={collision:{x:!1,y:!1,slope:!1},pos:{x:t+i,y:e+n},tile:{x:0,y:0}};if(!this.data)return o;var a=Math.ceil(Math.max(Math.abs(i),Math.abs(n))/this.tilesize);if(a>1)for(var h=i/a,l=n/a,u=0;u0?r:0,y=n<0?f:0,m=Math.max(Math.floor(i/f),0),x=Math.min(Math.ceil((i+o)/f),g);u=Math.floor((t.pos.x+v)/f);var T=Math.floor((e+v)/f);if((l>0||u===T||T<0||T>=p)&&(T=-1),u>=0&&u1&&d<=this.lastSlope&&this.checkDef(t,d,e,i,a,h,r,o,T,c));c++)if(1===(d=this.data[c][u])||d>this.lastSlope||d>1&&this.checkDef(t,d,e,i,a,h,r,o,u,c)){if(d>1&&d<=this.lastSlope&&t.collision.slope)break;t.collision.x=!0,t.tile.x=d,t.pos.x=u*f-v+y,e=t.pos.x,a=0;break}}if(s){var w=s>0?o:0,b=s<0?f:0,E=Math.max(Math.floor(t.pos.x/f),0),S=Math.min(Math.ceil((t.pos.x+r)/f),p);c=Math.floor((t.pos.y+w)/f);var A=Math.floor((i+w)/f);if((l>0||c===A||A<0||A>=g)&&(A=-1),c>=0&&c1&&d<=this.lastSlope&&this.checkDef(t,d,e,i,a,h,r,o,u,A));u++)if(1===(d=this.data[c][u])||d>this.lastSlope||d>1&&this.checkDef(t,d,e,i,a,h,r,o,u,c)){if(d>1&&d<=this.lastSlope&&t.collision.slope)break;t.collision.y=!0,t.tile.y=d,t.pos.y=c*f-w+b;break}}},checkDef:function(t,e,i,n,s,r,o,a,h,l){var u=this.tiledef[e];if(!u)return!1;var c=this.tilesize,d=(h+u[0])*c,f=(l+u[1])*c,p=(u[2]-u[0])*c,g=(u[3]-u[1])*c,v=u[4],y=i+s+(g<0?o:0)-d,m=n+r+(p>0?a:0)-f;if(p*m-g*y>0){if(s*-g+r*p<0)return v;var x=Math.sqrt(p*p+g*g),T=g/x,w=-p/x,b=y*T+m*w,E=T*b,S=w*b;return E*E+S*S>=s*s+r*r?v||p*(m-r)-g*(y-s)<.5:(t.pos.x=i+s-E,t.pos.y=n+r-S,t.collision.slope={x:p,y:g,nx:T,ny:w},!0)}return!1}});t.exports=r},function(t,e,i){var n=i(0),s=i(1382),r=i(1383),o=i(1384),a=new n({initialize:function(t){this.world=t,this.sys=t.scene.sys},body:function(t,e,i,n){return new s(this.world,t,e,i,n)},existing:function(t){var e=t.x-t.frame.centerX,i=t.y-t.frame.centerY,n=t.width,s=t.height;return t.body=this.world.create(e,i,n,s),t.body.parent=t,t.body.gameObject=t,t},image:function(t,e,i,n){var s=new r(this.world,t,e,i,n);return this.sys.displayList.add(s),s},sprite:function(t,e,i,n){var s=new o(this.world,t,e,i,n);return this.sys.displayList.add(s),this.sys.updateList.add(s),s},destroy:function(){this.world=null,this.sys=null}});t.exports=a},function(t,e,i){var n=i(0),s=i(1288),r=new n({Mixins:[s.Acceleration,s.BodyScale,s.BodyType,s.Bounce,s.CheckAgainst,s.Collides,s.Debug,s.Friction,s.Gravity,s.Offset,s.SetGameObject,s.Velocity],initialize:function(t,e,i,n,s){this.body=t.create(e,i,n,s),this.body.parent=this,this.size=this.body.size,this.offset=this.body.offset,this.vel=this.body.vel,this.accel=this.body.accel,this.friction=this.body.friction,this.maxVel=this.body.maxVel}});t.exports=r},function(t,e,i){var n=i(0),s=i(1288),r=i(98),o=new n({Extends:r,Mixins:[s.Acceleration,s.BodyScale,s.BodyType,s.Bounce,s.CheckAgainst,s.Collides,s.Debug,s.Friction,s.Gravity,s.Offset,s.SetGameObject,s.Velocity],initialize:function(t,e,i,n,s){r.call(this,t.scene,e,i,n,s),this.body=t.create(e-this.frame.centerX,i-this.frame.centerY,this.width,this.height),this.body.parent=this,this.body.gameObject=this,this.size=this.body.size,this.offset=this.body.offset,this.vel=this.body.vel,this.accel=this.body.accel,this.friction=this.body.friction,this.maxVel=this.body.maxVel}});t.exports=o},function(t,e,i){var n=i(0),s=i(1288),r=i(69),o=new n({Extends:r,Mixins:[s.Acceleration,s.BodyScale,s.BodyType,s.Bounce,s.CheckAgainst,s.Collides,s.Debug,s.Friction,s.Gravity,s.Offset,s.SetGameObject,s.Velocity],initialize:function(t,e,i,n,s){r.call(this,t.scene,e,i,n,s),this.body=t.create(e-this.frame.centerX,i-this.frame.centerY,this.width,this.height),this.body.parent=this,this.body.gameObject=this,this.size=this.body.size,this.offset=this.body.offset,this.vel=this.body.vel,this.accel=this.body.accel,this.friction=this.body.friction,this.maxVel=this.body.maxVel}});t.exports=o},function(t,e,i){var n=i(1379),s=i(0),r=i(470),o=i(1380),a=i(9),h=i(1287),l=i(2),u=i(99),c=i(108),d=i(1417),f=i(32),p=i(471),g=new s({Extends:a,initialize:function(t,e){a.call(this),this.scene=t,this.bodies=new c,this.gravity=l(e,"gravity",0),this.cellSize=l(e,"cellSize",64),this.collisionMap=new o,this.timeScale=l(e,"timeScale",1),this.maxStep=l(e,"maxStep",.05),this.enabled=!0,this.drawDebug=l(e,"debug",!1),this.debugGraphic;var i=l(e,"maxVelocity",100);if(this.defaults={debugShowBody:l(e,"debugShowBody",!0),debugShowVelocity:l(e,"debugShowVelocity",!0),bodyDebugColor:l(e,"debugBodyColor",16711935),velocityDebugColor:l(e,"debugVelocityColor",65280),maxVelocityX:l(e,"maxVelocityX",i),maxVelocityY:l(e,"maxVelocityY",i),minBounceVelocity:l(e,"minBounceVelocity",40),gravityFactor:l(e,"gravityFactor",1),bounciness:l(e,"bounciness",0)},this.walls={left:null,right:null,top:null,bottom:null},this.delta=0,this._lastId=0,l(e,"setBounds",!1)){var n=e.setBounds;if("boolean"==typeof n)this.setBounds();else{var s=l(n,"x",0),r=l(n,"y",0),h=l(n,"width",t.sys.scale.width),u=l(n,"height",t.sys.scale.height),d=l(n,"thickness",64),f=l(n,"left",!0),p=l(n,"right",!0),g=l(n,"top",!0),v=l(n,"bottom",!0);this.setBounds(s,r,h,u,d,f,p,g,v)}}this.drawDebug&&this.createDebugGraphic()},setCollisionMap:function(t,e){if("string"==typeof t){var i=this.scene.cache.tilemap.get(t);if(!i||i.format!==f.WELTMEISTER)return console.warn("The specified key does not correspond to a Weltmeister tilemap: "+t),null;for(var n,s=i.data.layer,r=0;rr.ACTIVE&&d(this,t,e))},setCollidesNever:function(t){for(var e=0;e=0&&h<=1&&l>=0&&l<=1}function s(t,e,i){return(e[0]-t[0])*(i[1]-t[1])-(i[0]-t[0])*(e[1]-t[1])}function r(t,e,i){return s(t,e,i)>0}function o(t,e,i){return s(t,e,i)>=0}function a(t,e,i){return s(t,e,i)<0}function h(t,e,i){return s(t,e,i)<=0}t.exports={decomp:function(t){var e=function t(e){var i=[],n=[],s=[],r=[];var o=Number.MAX_VALUE;for(var a=0;a0?function t(e,i){if(0===i.length)return[e];if(i instanceof Array&&i.length&&i[0]instanceof Array&&2===i[0].length&&i[0][0]instanceof Array){for(var n=[e],s=0;su)return console.warn("quickDecomp: max level ("+u+") reached."),i;for(var L=0;LA&&(A+=e.length),S=Number.MAX_VALUE,A<_)return i;for(var k=_;k<=A;++k)o(f(O,L-1),f(O,L),f(O,k))&&h(f(O,L+1),f(O,L),f(O,k))&&(E=d(f(O,L),f(O,k)))3&&n>=0;--n)c(f(t,n-1),f(t,n),f(t,n+1),e)&&(t.splice(n%t.length,1),i++);return i},removeDuplicatePoints:function(t,e){for(var i=t.length-1;i>=1;--i)for(var n=t[i],s=i-1;s>=0;--s)E(n,t[s],e)&&t.splice(i,1)},makeCCW:function(t){for(var e=0,i=t,n=1;ni[e][0])&&(e=n);return!r(f(t,e-1),f(t,e),f(t,e+1))&&(function(t){for(var e=[],i=t.length,n=0;n!==i;n++)e.push(t.pop());for(var n=0;n!==i;n++)t[n]=e[n]}(t),!0)}};var l=[],u=[];function c(t,e,i,n){if(n){var r=l,o=u;r[0]=e[0]-t[0],r[1]=e[1]-t[1],o[0]=i[0]-e[0],o[1]=i[1]-e[1];var a=r[0]*o[0]+r[1]*o[1],h=Math.sqrt(r[0]*r[0]+r[1]*r[1]),c=Math.sqrt(o[0]*o[0]+o[1]*o[1]);return Math.acos(a/(h*c))0&&u.trigger(t,"collisionStart",{pairs:T.collisionStart}),o.preSolvePosition(T.list),s=0;s0&&u.trigger(t,"collisionActive",{pairs:T.collisionActive}),T.collisionEnd.length>0&&u.trigger(t,"collisionEnd",{pairs:T.collisionEnd}),h.update(t.metrics,t),n._bodiesClearForces(y),u.trigger(t,"afterUpdate",v),t},n.merge=function(t,e){if(f.extend(t,e),e.world){t.world=e.world,n.clear(t);for(var i=c.allBodies(t.world),s=0;s0&&(i=s[0].bodyA,n=s[0].bodyB),t.emit(u.COLLISION_START,e,i,n)}),p.on(e,"collisionActive",function(e){var i,n,s=e.pairs;s.length>0&&(i=s[0].bodyA,n=s[0].bodyB),t.emit(u.COLLISION_ACTIVE,e,i,n)}),p.on(e,"collisionEnd",function(e){var i,n,s=e.pairs;s.length>0&&(i=s[0].bodyA,n=s[0].bodyB),t.emit(u.COLLISION_END,e,i,n)})},setBounds:function(t,e,i,n,s,r,o,a,h){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===n&&(n=this.scene.sys.scale.height),void 0===s&&(s=64),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===h&&(h=!0),this.updateWall(r,"left",t-s,e-s,s,n+2*s),this.updateWall(o,"right",t+i,e-s,s,n+2*s),this.updateWall(a,"top",t,e-s,i,s),this.updateWall(h,"bottom",t,e+n,i,s),this},updateWall:function(t,e,i,n,s,r){var o=this.walls[e];t?(o&&v.remove(this.localWorld,o),i+=s/2,n+=r/2,this.walls[e]=this.create(i,n,s,r,{isStatic:!0,friction:0,frictionStatic:0})):(o&&v.remove(this.localWorld,o),this.walls[e]=null)},createDebugGraphic:function(){var t=this.scene.sys.add.graphics({x:0,y:0});return t.setDepth(Number.MAX_VALUE),this.debugGraphic=t,this.drawDebug=!0,t},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=1),this.localWorld.gravity.x=t,this.localWorld.gravity.y=e,void 0!==i&&(this.localWorld.gravity.scale=i),this},create:function(t,e,i,s,r){var o=n.rectangle(t,e,i,s,r);return v.add(this.localWorld,o),o},add:function(t){return v.add(this.localWorld,t),this},remove:function(t,e){Array.isArray(t)||(t=[t]);for(var i=0;in.deltaMax?n.deltaMax:e)/n.delta,n.delta=e),0!==n.timeScalePrev&&(r*=s.timeScale/n.timeScalePrev),0===s.timeScale&&(r=0),n.timeScalePrev=s.timeScale,n.correction=r,n.frameCounter+=1,t-n.counterTimestamp>=1e3&&(n.fps=n.frameCounter*((t-n.counterTimestamp)/1e3),n.counterTimestamp=t,n.frameCounter=0),h.update(i,e,r)}},step:function(t,e){h.update(this.engine,t,e)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(t){var e=t.hasOwnProperty("body")?t.body:t;return null!==a.get(this.localWorld,e.id,e.type)},getAllBodies:function(){return a.allBodies(this.localWorld)},getAllConstraints:function(){return a.allConstraints(this.localWorld)},getAllComposites:function(){return a.allComposites(this.localWorld)},postUpdate:function(){if(this.drawDebug){var t=this.debugConfig,e=this.engine,i=this.debugGraphic,n=a.allBodies(this.localWorld);this.debugGraphic.clear(),t.showBroadphase&&e.broadphase.controller&&this.renderGrid(e.broadphase,i,t.broadphaseColor,.5),t.showBounds&&this.renderBodyBounds(n,i,t.boundsColor,.5),(t.showBody||t.showStaticBody)&&this.renderBodies(n),t.showJoint&&this.renderJoints(),(t.showAxes||t.showAngleIndicator)&&this.renderBodyAxes(n,i,t.showAxes,t.angleColor,.5),t.showVelocity&&this.renderBodyVelocity(n,i,t.velocityColor,1,2),t.showSeparations&&this.renderSeparations(e.pairs.list,i,t.separationColor),t.showCollisions&&this.renderCollisions(e.pairs.list,i,t.collisionColor)}},renderGrid:function(t,e,i,n){e.lineStyle(1,i,n);for(var s=o.keys(t.buckets),r=0;r0){var l=h[0].vertex.x,u=h[0].vertex.y;2===h.length&&(l=(h[0].vertex.x+h[1].vertex.x)/2,u=(h[0].vertex.y+h[1].vertex.y)/2),a.bodyB===a.supports[0].body||a.bodyA.isStatic?e.lineBetween(l-8*a.normal.x,u-8*a.normal.y,l,u):e.lineBetween(l+8*a.normal.x,u+8*a.normal.y,l,u)}}return this},renderBodyBounds:function(t,e,i,n){e.lineStyle(1,i,n);for(var s=0;s1?1:0;h1?1:0;a1?1:0;a1&&this.renderConvexHull(g,e,f,m)}}},renderBody:function(t,e,i,n,s,r,o,a){void 0===n&&(n=null),void 0===s&&(s=null),void 0===r&&(r=1),void 0===o&&(o=null),void 0===a&&(a=null);for(var h=this.debugConfig,l=h.sensorFillColor,u=h.sensorLineColor,c=t.parts,d=c.length,f=d>1?1:0;f1){var s=t.vertices;e.lineStyle(n,i),e.beginPath(),e.moveTo(s[0].x,s[0].y);for(var r=1;r0&&(e.fillStyle(a),e.fillCircle(u.x,u.y,h),e.fillCircle(c.x,c.y,h)),this},resetCollisionIDs:function(){return s._nextCollidingGroupId=1,s._nextNonCollidingGroupId=-1,s._nextCategory=1,this},shutdown:function(){p.off(this.engine),this.removeAllListeners(),v.clear(this.localWorld,!1),h.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});t.exports=m},function(t,e,i){(function(e){i(518);var n=i(29),s=i(17),r={Actions:i(240),Animations:i(638),BlendModes:i(52),Cache:i(639),Cameras:i(642),Core:i(725),Class:i(0),Create:i(784),Curves:i(790),Data:i(793),Display:i(795),DOM:i(812),Events:i(813),Game:i(815),GameObjects:i(908),Geom:i(427),Input:i(1196),Loader:i(1230),Math:i(169),Physics:i(1396),Plugins:i(1301),Renderer:i(1456),Scale:i(1303),ScaleModes:i(233),Scene:i(373),Scenes:i(1304),Structs:i(1306),Textures:i(1307),Tilemaps:i(1309),Time:i(1349),Tweens:i(1351),Utils:i(1368)};r.Sound=i(1378),r=s(!1,r,n),t.exports=r,e.Phaser=r}).call(this,i(517))},function(t,e,i){t.exports={Arcade:i(1256),Impact:i(1397),Matter:i(1420)}},function(t,e,i){t.exports={Body:i(1379),Events:i(1287),COLLIDES:i(470),CollisionMap:i(1380),Factory:i(1381),Image:i(1383),ImpactBody:i(1382),ImpactPhysics:i(1416),Sprite:i(1384),TYPE:i(471),World:i(1385)}},function(t,e,i){var n=i(22);t.exports=function(t,e,i,s,r){if(i)return n(e+i*t,-r,r);if(s){var o=s*t;return e-o>0?e-o:e+o<0?e+o:0}return n(e,-r,r)}},function(t,e){t.exports=function(t,e){if(t.standing=!1,e.collision.y&&(t.bounciness>0&&Math.abs(t.vel.y)>t.minBounceVelocity?t.vel.y*=-t.bounciness:(t.vel.y>0&&(t.standing=!0),t.vel.y=0)),e.collision.x&&(t.bounciness>0&&Math.abs(t.vel.x)>t.minBounceVelocity?t.vel.x*=-t.bounciness:t.vel.x=0),e.collision.slope){var i=e.collision.slope;if(t.bounciness>0){var n=t.vel.x*i.nx+t.vel.y*i.ny;t.vel.x=(t.vel.x-i.nx*n*2)*t.bounciness,t.vel.y=(t.vel.y-i.ny*n*2)*t.bounciness}else{var s=i.x*i.x+i.y*i.y,r=(t.vel.x*i.x+t.vel.y*i.y)/s;t.vel.x=i.x*r,t.vel.y=i.y*r;var o=Math.atan2(i.x,i.y);o>t.slopeStanding.min&&oi.last.x&&e.last.xi.last.y&&e.last.y0))r=t.collisionMap.trace(e.pos.x,e.pos.y,0,-(e.pos.y+e.size.y-i.pos.y),e.size.x,e.size.y),e.pos.y=r.pos.y,e.bounciness>0&&e.vel.y>e.minBounceVelocity?e.vel.y*=-e.bounciness:(e.standing=!0,e.vel.y=0);else{var l=(e.vel.y-i.vel.y)/2;e.vel.y=-l,i.vel.y=l,s=i.vel.x*t.delta,r=t.collisionMap.trace(e.pos.x,e.pos.y,s,-o/2,e.size.x,e.size.y),e.pos.y=r.pos.y;var u=t.collisionMap.trace(i.pos.x,i.pos.y,0,o/2,i.size.x,i.size.y);i.pos.y=u.pos.y}}},function(t,e,i){t.exports={BodyBounds:i(1386),Factory:i(1387),Image:i(1389),Matter:i(1295),MatterPhysics:i(1452),PolyDecomp:i(1388),Sprite:i(1390),TileBody:i(1294),PhysicsEditorParser:i(1291),PhysicsJSONParser:i(1292),World:i(1394)}},function(t,e,i){var n=i(514),s=i(2),r=i(3);t.exports=function(t,e,i,o){void 0===i&&(i={}),void 0===o&&(o=!0);var a=e.x,h=e.y;if(e.body={temp:!0,position:{x:a,y:h}},[n.Bounce,n.Collision,n.Force,n.Friction,n.Gravity,n.Mass,n.Sensor,n.SetBody,n.Sleep,n.Static,n.Transform,n.Velocity].forEach(function(t){for(var i in t)(n=t[i]).get&&"function"==typeof n.get||n.set&&"function"==typeof n.set?Object.defineProperty(e,i,{get:t[i].get,set:t[i].set}):Object.defineProperty(e,i,{value:t[i]});var n}),e.world=t,e._tempVec2=new r(a,h),i.hasOwnProperty("type")&&"body"===i.type)e.setExistingBody(i,o);else{var l=s(i,"shape",null);l||(l="rectangle"),i.addToWorld=o,e.setBody(l,i)}return e}},function(t,e){t.exports={setBounce:function(t){return this.body.restitution=t,this}}},function(t,e){var i={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var e=0;if(Array.isArray(t))for(var i=0;i1?1:0;s0},intersectPoint:function(t,e,i){i=this.getMatterBodies(i);var n=k.create(t,e),s=[];return M.point(i,n).forEach(function(t){-1===s.indexOf(t)&&s.push(t)}),s},intersectRect:function(t,e,i,n,s,r){void 0===s&&(s=!1),r=this.getMatterBodies(r);var o={min:{x:t,y:e},max:{x:t+i,y:e+n}},a=[];return M.region(r,o,s).forEach(function(t){-1===a.indexOf(t)&&a.push(t)}),a},intersectRay:function(t,e,i,n,s,r){void 0===s&&(s=1),r=this.getMatterBodies(r);for(var o=[],a=M.ray(r,k.create(t,e),k.create(i,n),s),h=0;h0)for(var a=s+1;ae.max.x?i=e.min.x-t.max.x:t.max.xe.max.y?n=e.min.y-t.max.y:t.max.y0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this},transformMat3:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this},transformMat4:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[4]*i+n[12],this.y=n[1]*e+n[5]*i+n[13],this},reset:function(){return this.x=0,this.y=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0),n.LEFT=new n(-1,0),n.UP=new n(0,-1),n.DOWN=new n(0,1),n.ONE=new n(1,1),t.exports=n},function(t,e,i){var n=i(0),s=i(46),r=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=s.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=r},function(t,e,i){var n=i(0),s=i(23),r=i(21),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectFactory",o,"add"),t.exports=o},function(t,e){t.exports=function(t,e,i){if(t&&"number"!=typeof t){if(t.hasOwnProperty(e))return t[e];if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=i,o=0;o>>0},getTintAppendFloatAlpha:function(t,e){return((255&(255*e|0))<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255&(255*e|0))<<24|(255&(0|t))<<16|(255&(t>>8|0))<<8|255&(t>>16|0))>>>0},getFloatsFromUintRGB:function(t){return[(255&(t>>16|0))/255,(255&(t>>8|0))/255,(255&(0|t))/255]},getComponentCount:function(t,e){for(var i=0,n=0;n=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},function(t,e,i){var n=i(0),s=i(278),r=i(110),o=i(10),a=i(89),h=new n({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new r(this)),this},setData:function(t,e){return this.data||(this.data=new r(this)),this.data.set(t,e),this},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.input&&(this.input.enabled=!1),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},update:function(){},toJSON:function(){return s(this)},willRender:function(t){return!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return i.unshift(this.scene.sys.displayList.getIndex(t)),i},destroy:function(t){if(void 0===t&&(t=!1),this.scene&&!this.ignoreDestroy){this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this);var e=this.scene.sys;t||(e.displayList.remove(this),e.updateList.remove(this)),this.input&&(e.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),t||e.queueDepthSort(),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0,this.removeAllListeners()}}});h.RENDER_MASK=15,t.exports=h},function(t,e,i){var n=i(166),s=i(6);t.exports=function(t,e,i){var r=s(t,e,null);if(null===r)return i;if(Array.isArray(r))return n.RND.pick(r);if("object"==typeof r){if(r.hasOwnProperty("randInt"))return n.RND.integerInRange(r.randInt[0],r.randInt[1]);if(r.hasOwnProperty("randFloat"))return n.RND.realInRange(r.randFloat[0],r.randFloat[1])}else if("function"==typeof r)return r(e);return r}},function(t,e){var i={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=i},function(t,e,i){var n=i(0),s=i(23),r=i(21),o=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.displayList,this.updateList,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},s.register("GameObjectCreator",o,"make"),t.exports=o},function(t,e,i){var n=i(7),s=function(){var t,e,i,r,o,a,h=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof h&&(c=h,h=arguments[1]||{},l=2),u===l&&(h=this,--l);l=400&&t.status<=599&&(n=!1),this.resetXHR(),this.loader.nextFile(this,n)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(r.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=s.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=s.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=s.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.cache.add(this.key,this.data),this.pendingDestroy()},pendingDestroy:function(t){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit(r.FILE_COMPLETE,e,i,t),this.loader.emit(r.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});c.createObjectURL=function(t,e,i){if("function"==typeof URL)t.src=URL.createObjectURL(e);else{var n=new FileReader;n.onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+n.result.split(",")[1]},n.onerror=t.onerror,n.readAsDataURL(e)}},c.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=c},function(t,e,i){t.exports={BOOT:i(705),CREATE:i(706),DESTROY:i(707),PAUSE:i(708),POST_UPDATE:i(709),PRE_UPDATE:i(710),READY:i(711),RENDER:i(712),RESUME:i(713),SHUTDOWN:i(714),SLEEP:i(715),START:i(716),TRANSITION_COMPLETE:i(717),TRANSITION_INIT:i(718),TRANSITION_OUT:i(719),TRANSITION_START:i(720),TRANSITION_WAKE:i(721),UPDATE:i(722),WAKE:i(723)}},function(t,e){t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},function(t,e){var i={},n={},s={register:function(t,e,n,s){void 0===s&&(s=!1),i[t]={plugin:e,mapping:n,custom:s}},registerCustom:function(t,e,i,s){n[t]={plugin:e,mapping:i,data:s}},hasCore:function(t){return i.hasOwnProperty(t)},hasCustom:function(t){return n.hasOwnProperty(t)},getCore:function(t){return i[t]},getCustom:function(t){return n[t]},getCustomClass:function(t){return n.hasOwnProperty(t)?n[t].plugin:null},remove:function(t){i.hasOwnProperty(t)&&delete i[t]},removeCustom:function(t){n.hasOwnProperty(t)&&delete n[t]},destroyCorePlugins:function(){for(var t in i)i.hasOwnProperty(t)&&delete i[t]},destroyCustomPlugins:function(){for(var t in n)n.hasOwnProperty(t)&&delete n[t]}};t.exports=s},function(t,e,i){var n=i(2);t.exports=function(t,e,i,s,r,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=o.width),void 0===s&&(s=o.height);var a=n(r,"isNotEmpty",!1),h=n(r,"isColliding",!1),l=n(r,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(s+=e,e=0),t+i>o.width&&(i=Math.max(o.width-t,0)),e+s>o.height&&(s=Math.max(o.height-e,0));for(var u=[],c=e;c=0;o--)t[o][e]=i+a*n,a++;return t}},function(t,e,i){var n,s,r,o=i(29),a=i(162),h=[],l=!1;t.exports={create2D:function(t,e,i){return n(t,e,i,o.CANVAS)},create:n=function(t,e,i,n,r){var u;void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=o.CANVAS),void 0===r&&(r=!1);var c=s(n);return null===c?(c={parent:t,canvas:document.createElement("canvas"),type:n},n===o.CANVAS&&h.push(c),u=c.canvas):(c.parent=t,u=c.canvas),r&&(c.parent=u),u.width=e,u.height=i,l&&n===o.CANVAS&&a.disable(u.getContext("2d")),u},createWebGL:function(t,e,i){return n(t,e,i,o.WEBGL)},disableSmoothing:function(){l=!0},enableSmoothing:function(){l=!1},first:s=function(t){if(void 0===t&&(t=o.CANVAS),t===o.WEBGL)return null;for(var e=0;e0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):n||r?s.TAU-(r>0?Math.acos(-n/this.scaleY):-Math.acos(n/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,e){var i=this.matrix;return i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5],this},scale:function(t,e){var i=this.matrix;return i[0]*=t,i[1]*=t,i[2]*=e,i[3]*=e,this},rotate:function(t){var e=Math.sin(t),i=Math.cos(t),n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3];return n[0]=s*i+o*e,n[1]=r*i+a*e,n[2]=s*-e+o*i,n[3]=r*-e+a*i,this},multiply:function(t,e){var i=this.matrix,n=t.matrix,s=i[0],r=i[1],o=i[2],a=i[3],h=i[4],l=i[5],u=n[0],c=n[1],d=n[2],f=n[3],p=n[4],g=n[5],v=void 0===e?this:e;return v.a=u*s+c*o,v.b=u*r+c*a,v.c=d*s+f*o,v.d=d*r+f*a,v.e=p*s+g*o+h,v.f=p*r+g*a+l,v},multiplyWithOffset:function(t,e,i){var n=this.matrix,s=t.matrix,r=n[0],o=n[1],a=n[2],h=n[3],l=e*r+i*a+n[4],u=e*o+i*h+n[5],c=s[0],d=s[1],f=s[2],p=s[3],g=s[4],v=s[5];return n[0]=c*r+d*a,n[1]=c*o+d*h,n[2]=f*r+p*a,n[3]=f*o+p*h,n[4]=g*r+v*a+l,n[5]=g*o+v*h+u,this},transform:function(t,e,i,n,s,r){var o=this.matrix,a=o[0],h=o[1],l=o[2],u=o[3],c=o[4],d=o[5];return o[0]=t*a+e*l,o[1]=t*h+e*u,o[2]=i*a+n*l,o[3]=i*h+n*u,o[4]=s*a+r*l+c,o[5]=s*h+r*u+d,this},transformPoint:function(t,e,i){void 0===i&&(i={x:0,y:0});var n=this.matrix,s=n[0],r=n[1],o=n[2],a=n[3],h=n[4],l=n[5];return i.x=t*s+e*o+h,i.y=t*r+e*a+l,i},invert:function(){var t=this.matrix,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=e*s-i*n;return t[0]=s/a,t[1]=-i/a,t[2]=-n/a,t[3]=e/a,t[4]=(n*o-s*r)/a,t[5]=-(e*o-i*r)/a,this},copyFrom:function(t){var e=this.matrix;return e[0]=t.a,e[1]=t.b,e[2]=t.c,e[3]=t.d,e[4]=t.e,e[5]=t.f,this},copyFromArray:function(t){var e=this.matrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],this},copyToContext:function(t){var e=this.matrix;return t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t},setToContext:function(t){var e=this.matrix;return t.setTransform(e[0],e[1],e[2],e[3],e[4],e[5]),t},copyToArray:function(t){var e=this.matrix;return void 0===t?t=[e[0],e[1],e[2],e[3],e[4],e[5]]:(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]),t},setTransform:function(t,e,i,n,s,r){var o=this.matrix;return o[0]=t,o[1]=e,o[2]=i,o[3]=n,o[4]=s,o[5]=r,this},decomposeMatrix:function(){var t=this.decomposedMatrix,e=this.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(t.translateX=e[4],t.translateY=e[5],i||n){var a=Math.sqrt(i*i+n*n);t.rotation=n>0?Math.acos(i/a):-Math.acos(i/a),t.scaleX=a,t.scaleY=o/a}else if(s||r){var h=Math.sqrt(s*s+r*r);t.rotation=.5*Math.PI-(r>0?Math.acos(-s/h):-Math.acos(s/h)),t.scaleX=o/h,t.scaleY=h}else t.rotation=0,t.scaleX=0,t.scaleY=0;return t},applyITRS:function(t,e,i,n,s){var r=this.matrix,o=Math.sin(i),a=Math.cos(i);return r[4]=t,r[5]=e,r[0]=a*n,r[1]=o*n,r[2]=-o*s,r[3]=a*s,this},applyInverse:function(t,e,i){void 0===i&&(i=new r);var n=this.matrix,s=n[0],o=n[1],a=n[2],h=n[3],l=n[4],u=n[5],c=1/(s*h+a*-o);return i.x=h*c*t+-a*c*e+(u*a-l*h)*c,i.y=s*c*e+-o*c*t+(-u*s+l*o)*c,i},getX:function(t,e){return t*this.a+e*this.c+this.e},getY:function(t,e){return t*this.b+e*this.d+this.f},getCSSMatrix:function(){var t=this.matrix;return"matrix("+t[0]+","+t[1]+","+t[2]+","+t[3]+","+t[4]+","+t[5]+")"},destroy:function(){this.matrix=null,this.decomposedMatrix=null}});t.exports=o},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(56),a=new n({Extends:r,Mixins:[s.AlphaSingle,s.BlendMode,s.ComputedSize,s.Depth,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Transform,s.Visible],initialize:function(t,e,i){void 0===e&&(e="Shape"),r.call(this,t,e),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.initPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]}});t.exports=a},function(t,e,i){var n=i(0),s=i(160),r=i(292),o=i(161),a=i(293),h=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,n)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(t,e,i,n,s){return void 0===n&&(n=255),void 0===s&&(s=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=n,this._locked=!1,this.update(s)},setGLTo:function(t,e,i,n){return void 0===n&&(n=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=n,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return o(t,e,i,this)},update:function(t){if(void 0===t&&(t=!1),this._locked)return this;var e=this.r,i=this.g,n=this.b,o=this.a;return this._color=s(e,i,n),this._color32=r(e,i,n,o),this._rgba="rgba("+e+","+i+","+n+","+o/255+")",t&&a(e,i,n,this),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return a(t,e,i,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),n=Math.floor(t+Math.random()*(e-t)),s=Math.floor(t+Math.random()*(e-t));return this.setTo(i,n,s)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t));return this.setTo(i,i,i)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,n=this.b;return e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),n=Math.max(0,Math.min(255,n-Math.round(-t/100*255))),this.setTo(e,i,n)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,o(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,o(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,o(this._h,this._s,t,this)}}});t.exports=h},function(t,e){t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},function(t,e){t.exports=function(t,e,i,n,s,r){var o;void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=1);var a=0,h=t.length;if(1===r)for(o=s;o=0;o--)t[o][e]+=i+a*n,a++;return t}},function(t,e,i){var n=i(15);t.exports=function(t){return t*n.DEG_TO_RAD}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.fillColor,r=n||e.fillAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.fillStyle="rgba("+o+","+a+","+h+","+r+")"}},function(t,e){var i={};t.exports=i,function(){i._nextId=0,i._seed=0,i._nowStartTime=+new Date,i.extend=function(t,e){var n,s;"boolean"==typeof e?(n=2,s=e):(n=1,s=!0);for(var r=n;r0;e--){var n=Math.floor(i.random()*(e+1)),s=t[e];t[e]=t[n],t[n]=s}return t},i.choose=function(t){return t[Math.floor(i.random()*t.length)]},i.isElement=function(t){return"undefined"!=typeof HTMLElement?t instanceof HTMLElement:!!(t&&t.nodeType&&t.nodeName)},i.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i.isFunction=function(t){return"function"==typeof t},i.isPlainObject=function(t){return"object"==typeof t&&t.constructor===Object},i.isString=function(t){return"[object String]"===toString.call(t)},i.clamp=function(t,e,i){return ti?i:t},i.sign=function(t){return t<0?-1:1},i.now=function(){if("undefined"!=typeof window&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return new Date-i._nowStartTime},i.random=function(e,i){return e=void 0!==e?e:0,i=void 0!==i?i:1,e+t()*(i-e)};var t=function(){return i._seed=(9301*i._seed+49297)%233280,i._seed/233280};i.colorToNumber=function(t){return 3==(t=t.replace("#","")).length&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),parseInt(t,16)},i.logLevel=1,i.log=function(){console&&i.logLevel>0&&i.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.info=function(){console&&i.logLevel>0&&i.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.warn=function(){console&&i.logLevel>0&&i.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.nextId=function(){return i._nextId++},i.indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0;i=e&&t.y<=i&&t.y+t.height>=i}},function(t,e,i){t.exports={DESTROY:i(646),FADE_IN_COMPLETE:i(647),FADE_IN_START:i(648),FADE_OUT_COMPLETE:i(649),FADE_OUT_START:i(650),FLASH_COMPLETE:i(651),FLASH_START:i(652),PAN_COMPLETE:i(653),PAN_START:i(654),POST_RENDER:i(655),PRE_RENDER:i(656),SHAKE_COMPLETE:i(657),SHAKE_START:i(658),ZOOM_COMPLETE:i(659),ZOOM_START:i(660)}},function(t,e){t.exports=function(t,e,i,n){var s=i||e.strokeColor,r=n||e.strokeAlpha,o=(16711680&s)>>>16,a=(65280&s)>>>8,h=255&s;t.strokeStyle="rgba("+o+","+a+","+h+","+r+")",t.lineWidth=e.lineWidth}},function(t,e){t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},function(t,e,i){var n=i(137),s=i(24);t.exports=function(t,e,i,r,o){for(var a=null,h=null,l=null,u=null,c=s(t,e,i,r,null,o),d=0;d0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},function(t,e,i){var n=i(0),s=i(272),r=i(148),o=i(46),a=i(149),h=i(3),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=n},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return r(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this},getPointA:function(t){return void 0===t&&(t=new h),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new h),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=l},function(t,e){t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},function(t,e){t.exports=function(t,e,i){var n=i-e;return e+((t-e)%n+n)%n}},function(t,e,i){t.exports={COMPLETE:i(884),DECODED:i(885),DECODED_ALL:i(886),DESTROY:i(887),DETUNE:i(888),GLOBAL_DETUNE:i(889),GLOBAL_MUTE:i(890),GLOBAL_RATE:i(891),GLOBAL_VOLUME:i(892),LOOP:i(893),LOOPED:i(894),MUTE:i(895),PAUSE_ALL:i(896),PAUSE:i(897),PLAY:i(898),RATE:i(899),RESUME_ALL:i(900),RESUME:i(901),SEEK:i(902),STOP_ALL:i(903),STOP:i(904),UNLOCKED:i(905),VOLUME:i(906)}},function(t,e,i){var n=i(0),s=i(19),r=i(20),o=i(8),a=i(2),h=i(6),l=i(7),u=new n({Extends:r,initialize:function(t,e,i,n,o){var u="json";if(l(e)){var c=e;e=a(c,"key"),i=a(c,"url"),n=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"dataKey",o)}var d={type:"json",cache:t.cacheManager.json,extension:u,responseType:"text",key:e,url:i,xhrSettings:n,config:o};r.call(this,t,d),l(i)&&(this.data=o?h(i,o):i,this.state=s.FILE_POPULATED)},onProcess:function(){if(this.state!==s.FILE_POPULATED){this.state=s.FILE_PROCESSING;var t=JSON.parse(this.xhrLoader.responseText),e=this.config;this.data="string"==typeof e?h(t,e,t):t}this.onProcessComplete()}});o.register("json",function(t,e,i,n){if(Array.isArray(t))for(var s=0;s0&&r.rotateAbout(o.position,i,t.position,o.position)}},n.setVelocity=function(t,e){t.positionPrev.x=t.position.x-e.x,t.positionPrev.y=t.position.y-e.y,t.velocity.x=e.x,t.velocity.y=e.y,t.speed=r.magnitude(t.velocity)},n.setAngularVelocity=function(t,e){t.anglePrev=t.angle-e,t.angularVelocity=e,t.angularSpeed=Math.abs(t.angularVelocity)},n.translate=function(t,e){n.setPosition(t,r.add(t.position,e))},n.rotate=function(t,e,i){if(i){var s=Math.cos(e),r=Math.sin(e),o=t.position.x-i.x,a=t.position.y-i.y;n.setPosition(t,{x:i.x+(o*s-a*r),y:i.y+(o*r+a*s)}),n.setAngle(t,t.angle+e)}else n.setAngle(t,t.angle+e)},n.scale=function(t,e,i,r){var o=0,a=0;r=r||t.position;for(var u=0;u0&&(o+=c.area,a+=c.inertia),c.position.x=r.x+(c.position.x-r.x)*e,c.position.y=r.y+(c.position.y-r.y)*i,h.update(c.bounds,c.vertices,t.velocity)}t.parts.length>1&&(t.area=o,t.isStatic||(n.setMass(t,t.density*o),n.setInertia(t,a))),t.circleRadius&&(e===i?t.circleRadius*=e:t.circleRadius=null)},n.update=function(t,e,i,n){var o=Math.pow(e*i*t.timeScale,2),a=1-t.frictionAir*i*t.timeScale,u=t.position.x-t.positionPrev.x,c=t.position.y-t.positionPrev.y;t.velocity.x=u*a*n+t.force.x/t.mass*o,t.velocity.y=c*a*n+t.force.y/t.mass*o,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.position.x+=t.velocity.x,t.position.y+=t.velocity.y,t.angularVelocity=(t.angle-t.anglePrev)*a*n+t.torque/t.inertia*o,t.anglePrev=t.angle,t.angle+=t.angularVelocity,t.speed=r.magnitude(t.velocity),t.angularSpeed=Math.abs(t.angularVelocity);for(var d=0;d0&&(f.position.x+=t.velocity.x,f.position.y+=t.velocity.y),0!==t.angularVelocity&&(s.rotate(f.vertices,t.angularVelocity,t.position),l.rotate(f.axes,t.angularVelocity),d>0&&r.rotateAbout(f.position,t.angularVelocity,t.position,f.position)),h.update(f.bounds,f.vertices,t.velocity)}},n.applyForce=function(t,e,i){t.force.x+=i.x,t.force.y+=i.y;var n=e.x-t.position.x,s=e.y-t.position.y;t.torque+=n*i.y-s*i.x},n._totalProperties=function(t){for(var e={mass:0,area:0,inertia:0,centre:{x:0,y:0}},i=1===t.parts.length?0:1;i80*i){n=h=t[0],a=l=t[1];for(var T=i;Th&&(h=u),f>l&&(l=f);g=0!==(g=Math.max(h-n,l-a))?1/g:0}return o(y,x,i,n,a,g),x}function s(t,e,i,n,s){var r,o;if(s===_(t,e,i,n)>0)for(r=e;r=e;r-=n)o=b(r,t[r],t[r+1],o);return o&&y(o,o.next)&&(E(o),o=o.next),o}function r(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!y(n,n.next)&&0!==m(n.prev,n,n.next))n=n.next;else{if(E(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function o(t,e,i,n,s,c,d){if(t){!d&&c&&function(t,e,i,n){var s=t;do{null===s.z&&(s.z=f(s.x,s.y,e,i,n)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next}while(s!==t);s.prevZ.nextZ=null,s.prevZ=null,function(t){var e,i,n,s,r,o,a,h,l=1;do{for(i=t,t=null,r=null,o=0;i;){for(o++,n=i,a=0,e=0;e0||h>0&&n;)0!==a&&(0===h||!n||i.z<=n.z)?(s=i,i=i.nextZ,a--):(s=n,n=n.nextZ,h--),r?r.nextZ=s:t=s,s.prevZ=r,r=s;i=n}r.nextZ=null,l*=2}while(o>1)}(s)}(t,n,s,c);for(var p,g,v=t;t.prev!==t.next;)if(p=t.prev,g=t.next,c?h(t,n,s,c):a(t))e.push(p.i/i),e.push(t.i/i),e.push(g.i/i),E(t),t=g.next,v=g.next;else if((t=g)===v){d?1===d?o(t=l(t,e,i),e,i,n,s,c,2):2===d&&u(t,e,i,n,s,c):o(r(t),e,i,n,s,c,1);break}}}function a(t){var e=t.prev,i=t,n=t.next;if(m(e,i,n)>=0)return!1;for(var s=t.next.next;s!==t.prev;){if(g(e.x,e.y,i.x,i.y,n.x,n.y,s.x,s.y)&&m(s.prev,s,s.next)>=0)return!1;s=s.next}return!0}function h(t,e,i,n){var s=t.prev,r=t,o=t.next;if(m(s,r,o)>=0)return!1;for(var a=s.xr.x?s.x>o.x?s.x:o.x:r.x>o.x?r.x:o.x,u=s.y>r.y?s.y>o.y?s.y:o.y:r.y>o.y?r.y:o.y,c=f(a,h,e,i,n),d=f(l,u,e,i,n),p=t.prevZ,v=t.nextZ;p&&p.z>=c&&v&&v.z<=d;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;p&&p.z>=c;){if(p!==t.prev&&p!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;v&&v.z<=d;){if(v!==t.prev&&v!==t.next&&g(s.x,s.y,r.x,r.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function l(t,e,i){var n=t;do{var s=n.prev,r=n.next.next;!y(s,r)&&x(s,n,n.next,r)&&T(s,r)&&T(r,s)&&(e.push(s.i/i),e.push(n.i/i),e.push(r.i/i),E(n),E(n.next),n=t=r),n=n.next}while(n!==t);return n}function u(t,e,i,n,s,a){var h=t;do{for(var l=h.next.next;l!==h.prev;){if(h.i!==l.i&&v(h,l)){var u=w(h,l);return h=r(h,h.next),u=r(u,u.next),o(h,e,i,n,s,a),void o(u,e,i,n,s,a)}l=l.next}h=h.next}while(h!==t)}function c(t,e){return t.x-e.x}function d(t,e){if(e=function(t,e){var i,n=e,s=t.x,r=t.y,o=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){var a=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=s&&a>o){if(o=a,a===s){if(r===n.y)return n;if(r===n.next.y)return n.next}i=n.x=n.x&&n.x>=u&&s!==n.x&&g(ri.x)&&T(n,t)&&(i=n,d=h),n=n.next;return i}(t,e)){var i=w(e,t);r(i,i.next)}}function f(t,e,i,n,s){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*s)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*s)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,i=t;do{e.x=0&&(t-o)*(n-a)-(i-o)*(e-a)>=0&&(i-o)*(r-a)-(s-o)*(n-a)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&x(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&T(t,e)&&T(e,t)&&function(t,e){var i=t,n=!1,s=(t.x+e.x)/2,r=(t.y+e.y)/2;do{i.y>r!=i.next.y>r&&i.next.y!==i.y&&s<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)}function m(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,i,n){return!!(y(t,e)&&y(i,n)||y(t,n)&&y(i,e))||m(t,e,i)>0!=m(t,e,n)>0&&m(i,n,t)>0!=m(i,n,e)>0}function T(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function w(t,e){var i=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),s=t.next,r=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,n.next=i,i.prev=n,r.next=n,n.prev=r,n}function b(t,e,i,n){var s=new S(t,e,i);return n?(s.next=n.next,s.prev=n,n.next.prev=s,n.next=s):(s.prev=s,s.next=s),s}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function S(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function _(t,e,i,n){for(var s=0,r=e,o=i-n;r0&&(n+=t[s-1].length,i.holes.push(n))}return i}},function(t,e){t.exports=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i]=t[i].slice(0):e[i]=t[i];return e}},function(t,e){t.exports=function(t,e,i,n){var s=t.length;if(e<0||e>s||e>=i||i>s||e+i>s){if(n)throw new Error("Range Error: Values outside acceptable range");return!1}return!0}},function(t,e,i){var n=i(164),s=i(177);t.exports=function(t,e){var i=n.Power0;if("string"==typeof t)if(n.hasOwnProperty(t))i=n[t];else{var r="";t.indexOf(".")&&("in"===(r=t.substr(t.indexOf(".")+1)).toLowerCase()?r="easeIn":"out"===r.toLowerCase()?r="easeOut":"inout"===r.toLowerCase()&&(r="easeInOut")),t=s(t.substr(0,t.indexOf(".")+1)+r),n.hasOwnProperty(t)&&(i=n[t])}else"function"==typeof t?i=t:Array.isArray(t)&&t.length;if(!e)return i;var o=e.slice(0);return o.unshift(0),function(t){return o[0]=t,i.apply(this,o)}}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){var o=t.strokeTint,a=n.getTintAppendFloatAlphaAndSwap(e.strokeColor,e.strokeAlpha*i);o.TL=a,o.TR=a,o.BL=a,o.BR=a;var h=e.pathData,l=h.length-1,u=e.lineWidth,c=u/2,d=h[0]-s,f=h[1]-r;e.closePath||(l-=2);for(var p=2;p=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}}});t.exports=u},function(t,e,i){var n=i(0),s=i(19),r=i(20),o=i(8),a=i(2),h=i(7),l=new n({Extends:r,initialize:function t(e,i,n,s,o){var l,u="png";if(h(i)){var c=i;i=a(c,"key"),n=a(c,"url"),l=a(c,"normalMap"),s=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"frameConfig")}Array.isArray(n)&&(l=n[1],n=n[0]);var d={type:"image",cache:e.textureManager,extension:u,responseType:"blob",key:i,url:n,xhrSettings:s,config:o};if(r.call(this,e,d),l){var f=new t(e,this.key,l,s,o);f.type="normalMap",this.setLink(f),e.addFile(f)}},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){r.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(t.data),t.onProcessError()},r.createObjectURL(this.data,this.xhrLoader.response,"image/png")},addToCache:function(){var t,e=this.linkFile;e&&e.state===s.FILE_COMPLETE?(t="image"===this.type?this.cache.addImage(this.key,this.data,e.data):this.cache.addImage(e.key,e.data,this.data),this.pendingDestroy(t),e.pendingDestroy(t)):e||(t=this.cache.addImage(this.key,this.data),this.pendingDestroy(t))}});o.register("image",function(t,e,i){if(Array.isArray(t))for(var n=0;nthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=t.properties,this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldX(this.x,t):this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldY(this.y,t)-(this.height-this.baseHeight)*e.scaleY:this.y*this.baseHeight-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return void 0===e&&(e=new r),e.x=this.getLeft(),e.y=this.getTop(),e.width=this.getRight()-e.x,e.height=this.getBottom()-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},intersects:function(t,e,i,n){return!(i<=this.pixelX||n<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){(void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,n,s){(void 0===e&&(e=t),void 0===i&&(i=t),void 0===n&&(n=t),void 0===s&&(s=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=n,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=n,s)&&(this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y));return this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,n){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==n&&(this.baseHeight=n),this.updatePixelXY(),this},updatePixelXY:function(){return"orthogonal"===this.layer.orientation?(this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight):"isometric"===this.layer.orientation&&(this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5),this},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.layer.tilemapLayer;if(t){var e=t.gidMap[this.index];if(e)return e}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=o},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(962),a=new n({Extends:r,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.ScrollFactor,s.Size,s.TextureCrop,s.Tint,s.Transform,s.Visible,o],initialize:function(t,e,i,n,o){r.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s.Animation(this),this.setTexture(n,o),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline()},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e,i){return this.anims.play(t,e,i),this},toJSON:function(){return s.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=a},function(t,e){t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},function(t,e){t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},function(t,e){t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},function(t,e){t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},function(t,e){t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,n=t[e],s=e;si&&(e=i/2);var n=Math.max(1,Math.round(i/e));return s(this.getSpacedPoints(n),t)},getDistancePoints:function(t){var e=this.getLength(),i=Math.max(1,e/t);return this.getSpacedPoints(i)},getEndPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(1,t)},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],n=this.getPoint(0,this._tmpVec2A),s=0;i.push(0);for(var r=1;r<=t;r++)s+=(e=this.getPoint(r/t,this._tmpVec2B)).distance(n),i.push(s),n.copy(e);return this.cacheArcLengths=i,i},getPointAt:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++)i.push(this.getPoint(n/t));return i},getRandomPoint:function(t){return void 0===t&&(t=new o),this.getPoint(Math.random(),t)},getSpacedPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++){var s=this.getUtoTmapping(n/t,null,t);i.push(this.getPoint(s))}return i},getStartPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(0,t)},getTangent:function(t,e){void 0===e&&(e=new o);var i=t-1e-4,n=t+1e-4;return i<0&&(i=0),n>1&&(n=1),this.getPoint(i,this._tmpVec2A),this.getPoint(n,e),e.subtract(this._tmpVec2A).normalize()},getTangentAt:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)},getTFromDistance:function(t,e){return t<=0?0:this.getUtoTmapping(0,t,e)},getUtoTmapping:function(t,e,i){var n,s=this.getLengths(i),r=0,o=s.length;n=e?Math.min(e,s[o-1]):t*s[o-1];for(var a,h=0,l=o-1;h<=l;)if((a=s[r=Math.floor(h+(l-h)/2)]-n)<0)h=r+1;else{if(!(a>0)){l=r;break}l=r-1}if(s[r=l]===n)return r/(o-1);var u=s[r];return(r+(n-u)/(s[r+1]-u))/(o-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});t.exports=a},function(t,e,i){t.exports={ADD:i(863),COMPLETE:i(864),FILE_COMPLETE:i(865),FILE_KEY_COMPLETE:i(866),FILE_LOAD_ERROR:i(867),FILE_LOAD:i(868),FILE_PROGRESS:i(869),POST_PROCESS:i(870),PROGRESS:i(871),START:i(872)}},function(t,e){t.exports=function(t,e,i){var n=t.x3-t.x1,s=t.y3-t.y1,r=t.x2-t.x1,o=t.y2-t.y1,a=e-t.x1,h=i-t.y1,l=n*n+s*s,u=n*r+s*o,c=n*a+s*h,d=r*r+o*o,f=r*a+o*h,p=l*d-u*u,g=0===p?0:1/p,v=(d*c-u*f)*g,m=(l*f-u*c)*g;return v>=0&&m>=0&&v+m<1}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.x1,r=t.y1,o=t.x2,a=t.y2,h=e.x1,l=e.y1,u=e.x2,c=e.y2,d=(u-h)*(r-l)-(c-l)*(s-h),f=(o-s)*(r-l)-(a-r)*(s-h),p=(c-l)*(o-s)-(u-h)*(a-r);if(0===p)return!1;var g=d/p,v=f/p;return g>=0&&g<=1&&v>=0&&v<=1&&(i.x=s+g*(o-s),i.y=r+g*(a-r),!0)}},function(t,e){t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},function(t,e,i){var n={};t.exports=n;var s=i(98),r=i(37);n.create=function(t,e){for(var i=[],n=0;n0)return!1}return!0},n.scale=function(t,e,i,r){if(1===e&&1===i)return t;var o,a;r=r||n.centre(t);for(var h=0;h=0?h-1:t.length-1],u=t[h],c=t[(h+1)%t.length],d=e[h0&&(r|=2),3===r)return!1;return 0!==r||null},n.hull=function(t){var e,i,n=[],r=[];for((t=t.slice(0)).sort(function(t,e){var i=t.x-e.x;return 0!==i?i:t.y-e.y}),i=0;i=2&&s.cross3(r[r.length-2],r[r.length-1],e)<=0;)r.pop();r.push(e)}for(i=t.length-1;i>=0;i-=1){for(e=t[i];n.length>=2&&s.cross3(n[n.length-2],n[n.length-1],e)<=0;)n.pop();n.push(e)}return n.pop(),r.pop(),n.concat(r)}},function(t,e,i){var n=i(22);t.exports=function(t,e,i){return(i-e)*(t=n(t,0,1))}},function(t,e){t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},function(t,e){t.exports={CREATED:0,INIT:1,DELAY:2,OFFSET_DELAY:3,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING_ADD:20,PAUSED:21,LOOP_DELAY:22,ACTIVE:23,COMPLETE_DELAY:24,PENDING_REMOVE:25,REMOVED:26}},function(t,e,i){t.exports={DESTROY:i(581),VIDEO_COMPLETE:i(582),VIDEO_CREATED:i(583),VIDEO_ERROR:i(584),VIDEO_LOOP:i(585),VIDEO_PLAY:i(586),VIDEO_SEEKED:i(587),VIDEO_SEEKING:i(588),VIDEO_STOP:i(589),VIDEO_TIMEOUT:i(590),VIDEO_UNLOCKED:i(591)}},function(t,e,i){var n=i(0),s=i(11),r=i(35),o=i(10),a=i(48),h=i(12),l=i(30),u=i(159),c=i(3),d=new n({Extends:o,Mixins:[s.Alpha,s.Visible],initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.resolution=1,this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=t,this._y=e,this._cx=0,this._cy=0,this._cw=0,this._ch=0,this._width=i,this._height=n,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoom=1,this._rotation=0,this.matrix=new l,this.transparent=!0,this.backgroundColor=u("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new c(i/2,n/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new c);var n=.5*this.width,s=.5*this.height;return i.x=t-n,i.y=e-s,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){if(this.useBounds){var t=this._bounds,e=.5*this.width,i=.5*this.height;this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i}return this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],n=e[1],s=e[2],r=e[3],o=i*r-n*s;if(!o)return t;var a=e[4],h=e[5],l=this.scrollX,u=this.scrollY,c=this.width,d=this.height,f=this.culledObjects,p=t.length;o=1/o,f.length=0;for(var g=0;gC&&w_&&bs&&(t=s),t},clampY:function(t){var e=this._bounds,i=this.displayHeight,n=e.y+(i-this.height)/2,s=Math.max(n,n+e.height-i);return ts&&(t=s),t},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(t){return void 0===t&&(t=0),this.rotation=r(t),this},setBackgroundColor:function(t){return void 0===t&&(t="rgba(0,0,0,0)"),this.backgroundColor=u(t),this.transparent=0===this.backgroundColor.alpha,this},setBounds:function(t,e,i,n,s){return void 0===s&&(s=!1),this._bounds.setTo(t,e,i,n),this.dirty=!0,this.useBounds=!0,s?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(t){void 0===t&&(t=new h);var e=this._bounds;return t.setTo(e.x,e.y,e.width,e.height),t},setName:function(t){return void 0===t&&(t=""),this.name=t,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setRoundPixels:function(t){return this.roundPixels=t,this},setScene:function(t){this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=t;var e=t.sys;this.sceneManager=e.game.scene,this.scaleManager=e.scale,this.cameraManager=e.cameras;var i=this.scaleManager.resolution;return this.resolution=i,this._cx=this._x*i,this._cy=this._y*i,this._cw=this._width*i,this._ch=this._height*i,this.updateSystem(),this},setScroll:function(t,e){return void 0===e&&(e=t),this.scrollX=t,this.scrollY=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},setViewport:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setZoom:function(t){return void 0===t&&(t=1),0===t&&(t=.001),this.zoom=t,this},setMask:function(t,e){return void 0===e&&(e=!0),this.mask=t,this._maskCamera=e?this.cameraManager.default:this,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var t={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(t.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),t},update:function(){},updateSystem:function(){if(this.scaleManager){var t=0!==this._x||0!==this._y||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,e=this.sceneManager;t&&!this._customViewport?e.customViewports++:!t&&this._customViewport&&e.customViewports--,this.dirty=!0,this._customViewport=t}},destroy:function(){this.emit(a.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(t){this._x=t,this._cx=t*this.resolution,this.updateSystem()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._cy=t*this.resolution,this.updateSystem()}},width:{get:function(){return this._width},set:function(t){this._width=t,this._cw=t*this.resolution,this.updateSystem()}},height:{get:function(){return this._height},set:function(t){this._height=t,this._ch=t*this.resolution,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(t){this._scrollX=t,this.dirty=!0}},scrollY:{get:function(){return this._scrollY},set:function(t){this._scrollY=t,this.dirty=!0}},zoom:{get:function(){return this._zoom},set:function(t){this._zoom=t,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=t,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoom}},displayHeight:{get:function(){return this.height/this.zoom}}});t.exports=d},function(t,e,i){t.exports={ENTER_FULLSCREEN:i(699),FULLSCREEN_FAILED:i(700),FULLSCREEN_UNSUPPORTED:i(701),LEAVE_FULLSCREEN:i(702),ORIENTATION_CHANGE:i(703),RESIZE:i(704)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=i(0),s=i(22),r=i(17),o=new n({initialize:function(t,e,i,n,s,r,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.glTexture=this.source.glTexture,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0}},this.setSize(r,o,n,s)},setSize:function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0),this.cutX=i,this.cutY=n,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var s=this.data,r=s.cut;r.x=i,r.y=n,r.w=t,r.h=e,r.r=i+t,r.b=n+e,s.sourceSize.w=t,s.sourceSize.h=e,s.spriteSourceSize.w=t,s.spriteSourceSize.h=e,s.radius=.5*Math.sqrt(t*t+e*e);var o=s.drawImage;return o.x=i,o.y=n,o.width=t,o.height=e,this.updateUVs()},setTrim:function(t,e,i,n,s,r){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=n,a.w=s,a.h=r,a.r=i+s,a.b=n+r,this.x=i,this.y=n,this.width=s,this.height=r,this.halfWidth=.5*s,this.halfHeight=.5*r,this.centerX=Math.floor(s/2),this.centerY=Math.floor(r/2),this.updateUVs()},setCropUVs:function(t,e,i,n,r,o,a){var h=this.cutX,l=this.cutY,u=this.cutWidth,c=this.cutHeight,d=this.realWidth,f=this.realHeight,p=h+(e=s(e,0,d)),g=l+(i=s(i,0,f)),v=n=s(n,0,d-e),m=r=s(r,0,f-i),y=this.data;if(y.trim){var x=y.spriteSourceSize,T=e+(n=s(n,0,u-e)),w=i+(r=s(r,0,c-i));if(!(x.rT||x.y>w)){var b=Math.max(x.x,e),E=Math.max(x.y,i),S=Math.min(x.r,T)-b,_=Math.min(x.b,w)-E;v=S,m=_,p=o?h+(u-(b-x.x)-S):h+(b-x.x),g=a?l+(c-(E-x.y)-_):l+(E-x.y),e=b,i=E,n=S,r=_}else p=0,g=0,v=0,m=0}else o&&(p=h+(u-e-n)),a&&(g=l+(c-i-r));var A=this.source.width,C=this.source.height;return t.u0=Math.max(0,p/A),t.v0=Math.max(0,g/C),t.u1=Math.min(1,(p+v)/A),t.v1=Math.min(1,(g+m)/C),t.x=e,t.y=i,t.cx=p,t.cy=g,t.cw=v,t.ch=m,t.width=n,t.height=r,t.flipX=o,t.flipY=a,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,n=this.cutHeight,s=this.data.drawImage;s.width=i,s.height=n;var r=this.source.width,o=this.source.height;return this.u0=t/r,this.v0=e/o,this.u1=(t+i)/r,this.v1=(e+n)/o,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new o(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=r(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.source=null,this.texture=null,this.glTexture=null,this.customData=null,this.data=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=o},function(t,e,i){var n=i(0),s=i(95),r=i(393),o=i(394),a=i(46),h=i(152),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=a.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=n},contains:function(t,e){return s(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=l},function(t,e){t.exports=function(t,e,i){if(t.width<=0||t.height<=0)return!1;var n=(e-t.x)/t.width,s=(i-t.y)/t.height;return(n*=n)+(s*=s)<.25}},function(t,e,i){var n=i(238),s=i(0),r=i(89),o=i(2),a=i(6),h=i(7),l=i(387),u=i(128),c=i(74),d=new s({initialize:function(t,e,i){i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?h(e[0])&&(i=e,e=null):h(e)&&(i=e,e=null),this.scene=t,this.children=new u(e),this.isParent=!0,this.type="Group",this.classType=o(i,"classType",c),this.name=o(i,"name",""),this.active=o(i,"active",!0),this.maxSize=o(i,"maxSize",-1),this.defaultKey=o(i,"defaultKey",null),this.defaultFrame=o(i,"defaultFrame",null),this.runChildUpdate=o(i,"runChildUpdate",!1),this.createCallback=o(i,"createCallback",null),this.removeCallback=o(i,"removeCallback",null),this.createMultipleCallback=o(i,"createMultipleCallback",null),this.internalCreateCallback=o(i,"internalCreateCallback",null),this.internalRemoveCallback=o(i,"internalRemoveCallback",null),i&&this.createMultiple(i)},create:function(t,e,i,n,s,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===n&&(n=this.defaultFrame),void 0===s&&(s=!0),void 0===r&&(r=!0),this.isFull())return null;var o=new this.classType(this.scene,t,e,i,n);return this.scene.sys.displayList.add(o),o.preUpdate&&this.scene.sys.updateList.add(o),o.visible=s,o.setActive(r),this.add(o),o},createMultiple:function(t){if(this.isFull())return[];Array.isArray(t)||(t=[t]);var e=[];if(t[0].key)for(var i=0;i=0;u--)if((l=d[u]).active===i){if(++c===e)break}else l=null;return l?("number"==typeof s&&(l.x=s),"number"==typeof r&&(l.y=r),l):n?this.create(s,r,o,a,h):null},get:function(t,e,i,n,s){return this.getFirst(!1,!0,t,e,i,n,s)},getFirstAlive:function(t,e,i,n,s,r){return this.getFirst(!0,t,e,i,n,s,r)},getFirstDead:function(t,e,i,n,s,r){return this.getFirst(!1,t,e,i,n,s,r)},playAnimation:function(t,e){return n.PlayAnimation(this.children.entries,t,e),this},isFull:function(){return-1!==this.maxSize&&this.children.size>=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;it.max.x&&(t.max.x=s.x),s.xt.max.y&&(t.max.y=s.y),s.y0?t.max.x+=i.x:t.min.x+=i.x,i.y>0?t.max.y+=i.y:t.min.y+=i.y)},i.contains=function(t,e){return e.x>=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},i.overlaps=function(t,e){return t.min.x<=e.max.x&&t.max.x>=e.min.x&&t.max.y>=e.min.y&&t.min.y<=e.max.y},i.translate=function(t,e){t.min.x+=e.x,t.max.x+=e.x,t.min.y+=e.y,t.max.y+=e.y},i.shift=function(t,e){var i=t.max.x-t.min.x,n=t.max.y-t.min.y;t.min.x=e.x,t.max.x=e.x+i,t.min.y=e.y,t.max.y=e.y+n}},function(t,e){t.exports=function(t,e,i){return t>=0&&t=0&&e0&&s.area(T)1?(d=o.create(r.extend({parts:f.slice(0)},a)),o.setPosition(d,{x:t,y:e}),d):f[0]},n.flagCoincidentParts=function(t,e){void 0===e&&(e=5);for(var i=0;i0;e--){var i=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[i],t[i]=n}return t}},function(t,e){t.exports=function(t,e,i){return(e-t)*i+t}},function(t,e,i){(function(e){var i={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=function(){var t=navigator.userAgent;/Windows/.test(t)?i.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?i.macOS=!0:/Android/.test(t)?i.android=!0:/Linux/.test(t)?i.linux=!0:/iP[ao]d|iPhone/i.test(t)?(i.iOS=!0,navigator.appVersion.match(/OS (\d+)/),i.iOSVersion=parseInt(RegExp.$1,10),i.iPhone=-1!==t.toLowerCase().indexOf("iphone"),i.iPad=-1!==t.toLowerCase().indexOf("ipad")):/Kindle/.test(t)||/\bKF[A-Z][A-Z]+/.test(t)||/Silk.*Mobile Safari/.test(t)?i.kindle=!0:/CrOS/.test(t)&&(i.chromeOS=!0),(/Windows Phone/i.test(t)||/IEMobile/i.test(t))&&(i.android=!1,i.iOS=!1,i.macOS=!1,i.windows=!0,i.windowsPhone=!0);var n=/Silk/.test(t);return(i.windows||i.macOS||i.linux&&!n||i.chromeOS)&&(i.desktop=!0),(i.windowsPhone||/Windows NT/i.test(t)&&/Touch/i.test(t))&&(i.desktop=!1),navigator.standalone&&(i.webApp=!0),void 0!==window.cordova&&(i.cordova=!0),void 0!==e&&e.versions&&e.versions.node&&(i.node=!0),i.node&&"object"==typeof e.versions&&(i.nodeWebkit=!!e.versions["node-webkit"],i.electron=!!e.versions.electron),void 0!==window.ejecta&&(i.ejecta=!0),/Crosswalk/.test(t)&&(i.crosswalk=!0),i.pixelRatio=window.devicePixelRatio||1,i}()}).call(this,i(725))},function(t,e,i){var n,s=i(113),r={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0};t.exports=(n=navigator.userAgent,/Edge\/\d+/.test(n)?r.edge=!0:/Chrome\/(\d+)/.test(n)&&!s.windowsPhone?(r.chrome=!0,r.chromeVersion=parseInt(RegExp.$1,10)):/Firefox\D+(\d+)/.test(n)?(r.firefox=!0,r.firefoxVersion=parseInt(RegExp.$1,10)):/AppleWebKit/.test(n)&&s.iOS?r.mobileSafari=!0:/MSIE (\d+\.\d+);/.test(n)?(r.ie=!0,r.ieVersion=parseInt(RegExp.$1,10)):/Opera/.test(n)?r.opera=!0:/Safari/.test(n)&&!s.windowsPhone?r.safari=!0:/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(n)&&(r.ie=!0,r.trident=!0,r.tridentVersion=parseInt(RegExp.$1,10),r.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(n)&&(r.silk=!0),r)},function(t,e){t.exports=function(t,e){return t>0&&0==(t&t-1)&&e>0&&0==(e&e-1)}},function(t,e,i){t.exports={ADD:i(775),ERROR:i(776),LOAD:i(777),READY:i(778),REMOVE:i(779)}},function(t,e){t.exports=function(t,e){var i;if(e)"string"==typeof e?i=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement)return t;return i||(i=document.body),i.appendChild(t),t}},function(t,e,i){var n=i(79);t.exports=function(t,e,i,s){var r;if(void 0===s&&(s=t),!Array.isArray(e))return-1!==(r=t.indexOf(e))?(n(t,r),i&&i.call(s,e),e):null;for(var o=e.length-1;o>=0;){var a=e[o];-1!==(r=t.indexOf(a))?(n(t,r),i&&i.call(s,a)):e.pop(),o--}return e}},function(t,e){t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},function(t,e){t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},function(t,e,i){var n=i(65);t.exports=function(t,e){var i=n(t);for(var s in e)i.hasOwnProperty(s)||(i[s]=e[s]);return i}},function(t,e,i){var n=i(0),s=i(65),r=i(10),o=i(59),a=i(18),h=i(1),l=new n({Extends:r,initialize:function(t){r.call(this),this.game=t,this.jsonCache=t.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,t.events.on(a.BLUR,function(){this.pauseOnBlur&&this.onBlur()},this),t.events.on(a.FOCUS,function(){this.pauseOnBlur&&this.onFocus()},this),t.events.on(a.PRE_STEP,this.update,this),t.events.once(a.DESTROY,this.destroy,this)},add:h,addAudioSprite:function(t,e){void 0===e&&(e={});var i=this.add(t,e);for(var n in i.spritemap=this.jsonCache.get(t).spritemap,i.spritemap)if(i.spritemap.hasOwnProperty(n)){var r=s(e),o=i.spritemap[n];r.loop=!!o.hasOwnProperty("loop")&&o.loop,i.addMarker({name:n,start:o.start,duration:o.end-o.start,config:r})}return i},play:function(t,e){var i=this.add(t);return i.once(o.COMPLETE,i.destroy,i),e?e.name?(i.addMarker(e),i.play(e.name)):i.play(e):i.play()},playAudioSprite:function(t,e,i){var n=this.addAudioSprite(t);return n.once(o.COMPLETE,n.destroy,n),n.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;i>=0;i--){var n=this.sounds[i];n.key===t&&(n.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound(function(t){t.pause()}),this.emit(o.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(t){t.resume()}),this.emit(o.RESUME_ALL,this)},stopAll:function(){this.forEachActiveSound(function(t){t.stop()}),this.emit(o.STOP_ALL,this)},unlock:h,onBlur:h,onFocus:h,update:function(t,e){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(o.UNLOCKED,this));for(var i=this.sounds.length-1;i>=0;i--)this.sounds[i].pendingRemove&&this.sounds.splice(i,1);this.sounds.forEach(function(i){i.update(t,e)})},destroy:function(){this.removeAllListeners(),this.forEachActiveSound(function(t){t.destroy()}),this.sounds.length=0,this.sounds=null,this.game=null},forEachActiveSound:function(t,e){var i=this;this.sounds.forEach(function(n,s){n&&!n.pendingRemove&&t.call(e||i,n,s,i.sounds)})},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(o.GLOBAL_DETUNE,this,t)}}});t.exports=l},function(t,e,i){var n=i(0),s=i(10),r=i(59),o=i(17),a=i(1),h=new n({Extends:s,initialize:function(t,e,i){s.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},this.currentConfig=this.config,this.config=o(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(console.error("addMarker "+t.name+" already exists in Sound"),!1):(t=o(!0,{name:"",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0}},t),this.markers[t.name]=t,!0))},updateMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name)&&(this.markers[t.name]?(this.markers[t.name]=o(!0,this.markers[t.name],t),!0):(console.warn("Audio Marker: "+t.name+" missing in Sound: "+this.key),!1))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if(void 0===t&&(t=""),"object"==typeof t&&(e=t,t=""),"string"!=typeof t)return!1;if(t){if(!this.markers[t])return console.warn("Marker: "+t+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=o(this.currentConfig,e),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return!(this.isPaused||!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!0,!0)},resume:function(){return!(!this.isPaused||this.isPlaying)&&(this.isPlaying=!0,this.isPaused=!1,!0)},stop:function(){return!(!this.isPaused&&!this.isPlaying)&&(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),!0)},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:a,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,e=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*e},destroy:function(){this.pendingRemove||(this.emit(r.DESTROY,this),this.pendingRemove=!0,this.manager=null,this.key="",this.removeAllListeners(),this.isPlaying=!1,this.isPaused=!1,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=h},function(t,e,i){var n=i(179),s=i(0),r=i(1),o=i(126),a=new s({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=r,this.removeCallback=r,this._sortKey=""},add:function(t,e){return e?n.Add(this.list,t):n.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?n.AddAt(this.list,t,e):n.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(t,e){return t?(void 0===e&&(e=function(e,i){return e[t]-i[t]}),o.inplace(this.list,e),this):this},getByName:function(t){return n.GetFirst(this.list,"name",t)},getRandom:function(t,e){return n.GetRandom(this.list,t,e)},getFirst:function(t,e,i,s){return n.GetFirst(this.list,t,e,i,s)},getAll:function(t,e,i,s){return n.GetAll(this.list,t,e,i,s)},count:function(t,e){return n.CountAllMatching(this.list,t,e)},swap:function(t,e){n.Swap(this.list,t,e)},moveTo:function(t,e){return n.MoveTo(this.list,t,e)},remove:function(t,e){return e?n.Remove(this.list,t):n.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?n.RemoveAt(this.list,t):n.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?n.RemoveBetween(this.list,t,e):n.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return n.BringToTop(this.list,t)},sendToBack:function(t){return n.SendToBack(this.list,t)},moveUp:function(t){return n.MoveUp(this.list,t),t},moveDown:function(t){return n.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return n.Shuffle(this.list),this},replace:function(t,e){return n.Replace(this.list,t,e)},exists:function(t){return this.list.indexOf(t)>-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){for(var i=[null],n=2;n0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});t.exports=a},function(t,e,i){var n=i(180),s=i(385);t.exports=function(t,e){if(void 0===e&&(e=90),!n(t))return null;if("string"!=typeof e&&(e=(e%360+360)%360),90===e||-270===e||"rotateLeft"===e)(t=s(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=s(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;il&&(r=l),o>l&&(o=l),a=s,h=r;;)if(a-1&&this.entries.splice(e,1),this},dump:function(){console.group("Set");for(var t=0;t-1},union:function(t){var e=new n;return t.entries.forEach(function(t){e.set(t)}),this.entries.forEach(function(t){e.set(t)}),e},intersect:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)&&e.set(i)}),e},difference:function(t){var e=new n;return this.entries.forEach(function(i){t.contains(i)||e.set(i)}),e},size:{get:function(){return this.entries.length},set:function(t){return t0&&o.length0&&a.lengthe.right||t.y>e.bottom)}},function(t,e,i){var n=i(6),s={},r={register:function(t,e,i,n,r){s[t]={plugin:e,mapping:i,settingsKey:n,configKey:r}},getPlugin:function(t){return s[t]},install:function(t){var e=t.scene.sys,i=e.settings.input,r=e.game.config;for(var o in s){var a=s[o].plugin,h=s[o].mapping,l=s[o].settingsKey,u=s[o].configKey;n(i,l,r[u])&&(t[h]=new a(t))}},remove:function(t){s.hasOwnProperty(t)&&delete s[t]}};t.exports=r},function(t,e,i){t.exports={ANY_KEY_DOWN:i(1211),ANY_KEY_UP:i(1212),COMBO_MATCH:i(1213),DOWN:i(1214),KEY_DOWN:i(1215),KEY_UP:i(1216),UP:i(1217)}},function(t,e){t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===t&&(t=""),void 0===e&&(e=!0),void 0===i&&(i=""),void 0===n&&(n=""),void 0===s&&(s=0),void 0===r&&(r=!1),{responseType:t,async:e,user:i,password:n,timeout:s,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:r}}},function(t,e,i){var n=i(0),s=i(213),r=i(74),o=new n({Extends:r,Mixins:[s.Acceleration,s.Angular,s.Bounce,s.Debug,s.Drag,s.Enable,s.Friction,s.Gravity,s.Immovable,s.Mass,s.Size,s.Velocity],initialize:function(t,e,i,n,s){r.call(this,t,e,i,n,s),this.body=null}});t.exports=o},function(t,e,i){t.exports={CalculateFacesAt:i(216),CalculateFacesWithin:i(51),Copy:i(1307),CreateFromTiles:i(1308),CullTiles:i(1309),Fill:i(1310),FilterTiles:i(1311),FindByIndex:i(1312),FindTile:i(1313),ForEachTile:i(1314),GetTileAt:i(137),GetTileAtWorldXY:i(1315),GetTilesWithin:i(24),GetTilesWithinShape:i(1316),GetTilesWithinWorldXY:i(1317),HasTileAt:i(475),HasTileAtWorldXY:i(1318),IsInLayerBounds:i(100),PutTileAt:i(218),PutTileAtWorldXY:i(1319),PutTilesAt:i(1320),Randomize:i(1321),RemoveTileAt:i(476),RemoveTileAtWorldXY:i(1322),RenderDebug:i(1323),ReplaceByIndex:i(472),SetCollision:i(1324),SetCollisionBetween:i(1325),SetCollisionByExclusion:i(1326),SetCollisionByProperty:i(1327),SetCollisionFromCollisionGroup:i(1328),SetTileIndexCallback:i(1329),SetTileLocationCallback:i(1330),Shuffle:i(1331),SwapByIndex:i(1332),TileToWorldX:i(470),TileToWorldXY:i(217),TileToWorldY:i(471),WeightedRandomize:i(1333),WorldToTileX:i(473),WorldToTileXY:i(72),WorldToTileY:i(474)}},function(t,e,i){var n=i(100);t.exports=function(t,e,i,s){if(void 0===i&&(i=!1),n(t,e,s)){var r=s.data[e][t]||null;return null===r?null:-1===r.index?i?r:null:r}return null}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o,a){(void 0===i||i<=0)&&(i=32),(void 0===n||n<=0)&&(n=32),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o={}),void 0===a&&(a={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=n,this.tileMargin=s,this.tileSpacing=r,this.tileProperties=o,this.tileData=a,this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){var e=this.getTileData(t);return e&&e.objectgroup?e.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&t=this.vertexCapacity},resize:function(t,e,i){return this.width=t*i,this.height=e*i,this.resolution=i,this},bind:function(){var t=this.gl,e=this.vertexBuffer,i=this.attributes,n=this.program,s=this.renderer,r=this.vertexSize;s.setProgram(n),s.setVertexBuffer(e);for(var o=0;o=0?(t.enableVertexAttribArray(h),t.vertexAttribPointer(h,a.size,a.type,a.normalized,r,a.offset)):-1!==h&&t.disableVertexAttribArray(h)}return this},onBind:function(){return this},onPreRender:function(){return this},onRender:function(){return this},onPostRender:function(){return this},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t=this.gl,e=this.vertexCount,i=this.topology,n=this.vertexSize;if(0!==e)return t.bufferSubData(t.ARRAY_BUFFER,0,this.bytes.subarray(0,e*n)),t.drawArrays(i,0,e),this.vertexCount=0,this.flushLocked=!1,this;this.flushLocked=!1},destroy:function(){var t=this.gl;return t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),delete this.program,delete this.vertexBuffer,delete this.gl,this},setFloat1:function(t,e){return this.renderer.setFloat1(this.program,t,e),this},setFloat2:function(t,e,i){return this.renderer.setFloat2(this.program,t,e,i),this},setFloat3:function(t,e,i,n){return this.renderer.setFloat3(this.program,t,e,i,n),this},setFloat4:function(t,e,i,n,s){return this.renderer.setFloat4(this.program,t,e,i,n,s),this},setFloat1v:function(t,e){return this.renderer.setFloat1v(this.program,t,e),this},setFloat2v:function(t,e){return this.renderer.setFloat2v(this.program,t,e),this},setFloat3v:function(t,e){return this.renderer.setFloat3v(this.program,t,e),this},setFloat4v:function(t,e){return this.renderer.setFloat4v(this.program,t,e),this},setInt1:function(t,e){return this.renderer.setInt1(this.program,t,e),this},setInt2:function(t,e,i){return this.renderer.setInt2(this.program,t,e,i),this},setInt3:function(t,e,i,n){return this.renderer.setInt3(this.program,t,e,i,n),this},setInt4:function(t,e,i,n,s){return this.renderer.setInt4(this.program,t,e,i,n,s),this},setMatrix2:function(t,e,i){return this.renderer.setMatrix2(this.program,t,e,i),this},setMatrix3:function(t,e,i){return this.renderer.setMatrix3(this.program,t,e,i),this},setMatrix4:function(t,e,i){return this.renderer.setMatrix4(this.program,t,e,i),this}});t.exports=r},function(t,e,i){var n={};t.exports=n;var s=i(237),r=i(37),o=i(99),a=i(62);n.create=function(t){return r.extend({id:r.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{}},t)},n.setModified=function(t,e,i,r){if(s.trigger(t,"compositeModified",t),t.isModified=e,i&&t.parent&&n.setModified(t.parent,e,i,r),r)for(var o=0;o1?2-s:s,o=r*Math.cos(i),a=r*Math.sin(i);return e.x=t.x+o*t.radius,e.y=t.y+a*t.radius,e}},function(t,e,i){var n=i(22),s=i(0),r=i(10),o=i(108),a=i(267),h=i(268),l=i(6),u=new s({Extends:r,initialize:function(t,e,i){r.call(this),this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,l(i,"frames",[]),l(i,"defaultTextureKey",null)),this.frameRate=l(i,"frameRate",null),this.duration=l(i,"duration",null),null===this.duration&&null===this.frameRate?(this.frameRate=24,this.duration=this.frameRate/this.frames.length*1e3):this.duration&&null===this.frameRate?this.frameRate=this.frames.length/(this.duration/1e3):this.duration=this.frames.length/this.frameRate*1e3,this.msPerFrame=1e3/this.frameRate,this.skipMissedFrames=l(i,"skipMissedFrames",!0),this.delay=l(i,"delay",0),this.repeat=l(i,"repeat",0),this.repeatDelay=l(i,"repeatDelay",0),this.yoyo=l(i,"yoyo",!1),this.showOnStart=l(i,"showOnStart",!1),this.hideOnComplete=l(i,"hideOnComplete",!1),this.paused=!1,this.manager.on(o.PAUSE_ALL,this.pause,this),this.manager.on(o.RESUME_ALL,this.resume,this)},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i=this.getFrames(this.manager.textureManager,e);if(i.length>0){if(0===t)this.frames=i.concat(this.frames);else if(t===this.frames.length)this.frames=this.frames.concat(i);else{var n=this.frames.slice(0,t),s=this.frames.slice(t);this.frames=n.concat(i,s)}this.updateFrameSequence()}return this},checkFrame:function(t){return t>=0&&t0){s.isLast=!0,s.nextFrame=a[0],a[0].prevFrame=s;var v=1/(a.length-1);for(r=0;r=this.frames.length&&(e=0),t.currentAnim!==this&&(t.currentAnim=this,t.frameRate=this.frameRate,t.duration=this.duration,t.msPerFrame=this.msPerFrame,t.skipMissedFrames=this.skipMissedFrames,t._delay=this.delay,t._repeat=this.repeat,t._repeatDelay=this.repeatDelay,t._yoyo=this.yoyo);var i=this.frames[e];0!==e||t.forward||(i=this.getLastFrame()),t.updateFrame(i)},getFrameByProgress:function(t){return t=n(t,0,1),a(t,this.frames,"progress")},nextFrame:function(t){var e=t.currentFrame;e.isLast?t._yoyo?this.handleYoyoFrame(t,!1):t.repeatCounter>0?t._reverse&&t.forward?t.forward=!1:this.repeatAnimation(t):this.completeAnimation(t):this.updateAndGetNextTick(t,e.nextFrame)},handleYoyoFrame:function(t,e){if(e||(e=!1),t._reverse===!e&&t.repeatCounter>0)return t.forward=e,void this.repeatAnimation(t);if(t._reverse===e||0!==t.repeatCounter){t.forward=e;var i=e?t.currentFrame.nextFrame:t.currentFrame.prevFrame;this.updateAndGetNextTick(t,i)}else this.completeAnimation(t)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(t){var e=t.currentFrame;e.isFirst?t._yoyo?this.handleYoyoFrame(t,!0):t.repeatCounter>0?t._reverse&&!t.forward?(t.currentFrame=this.getLastFrame(),this.repeatAnimation(t)):(t.forward=!0,this.repeatAnimation(t)):this.completeAnimation(t):this.updateAndGetNextTick(t,e.prevFrame)},updateAndGetNextTick:function(t,e){t.updateFrame(e),this.getNextTick(t)},removeFrame:function(t){var e=this.frames.indexOf(t);return-1!==e&&this.removeFrameAt(e),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop)return this.completeAnimation(t);if(t._repeatDelay>0&&!1===t.pendingRepeat)t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t._repeatDelay;else if(t.repeatCounter--,t.updateFrame(t.currentFrame[t.forward?"nextFrame":"prevFrame"]),t.isPlaying){this.getNextTick(t),t.pendingRepeat=!1;var e=t.currentFrame,i=t.parent;this.emit(o.ANIMATION_REPEAT,this,e),i.emit(o.SPRITE_ANIMATION_KEY_REPEAT+this.key,this,e,t.repeatCounter,i),i.emit(o.SPRITE_ANIMATION_REPEAT,this,e,t.repeatCounter,i)}},setFrame:function(t){t.forward?this.nextFrame(t):this.previousFrame(t)},toJSON:function(){var t={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showOnStart:this.showOnStart,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(e){t.frames.push(e.toJSON())}),t},updateFrameSequence:function(){for(var t,e=this.frames.length,i=1/(e-1),n=0;n1?(t.isLast=!0,t.prevFrame=this.frames[e-2],t.nextFrame=this.frames[0]):e>1&&(t.prevFrame=this.frames[n-1],t.nextFrame=this.frames[n+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.removeAllListeners(),this.manager.off(o.PAUSE_ALL,this.pause,this),this.manager.off(o.RESUME_ALL,this.resume,this),this.manager.remove(this.key);for(var t=0;t=1)return i.x=t.x,i.y=t.y,i;var r=n(t)*e;return e>.5?(r-=t.width+t.height)<=t.width?(i.x=t.right-r,i.y=t.bottom):(i.x=t.x,i.y=t.bottom-(r-t.width)):r<=t.width?(i.x=t.x+r,i.y=t.y):(i.x=t.right,i.y=t.y+(r-t.width)),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=n(t)/i);for(var o=t.x1,a=t.y1,h=t.x2,l=t.y2,u=0;u=1&&(a=1-a,h=1-h),e.x=t.x1+(i*a+r*h),e.y=t.y1+(s*a+o*h),e}},function(t,e){t.exports=function(t,e,i,n,s){var r=n+Math.atan2(t.y-i,t.x-e);return t.x=e+s*Math.cos(r),t.y=i+s*Math.sin(r),t}},function(t,e){t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},function(t,e){t.exports=function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){if(this.entries={},this.size=0,Array.isArray(t))for(var e=0;e=(t=t.toString()).length)switch(n){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var r=Math.ceil((s=e-t.length)/2);t=new Array(s-r+1).join(i)+t+new Array(r+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},function(t,e,i){var n=i(291),s=i(294),r=i(296),o=i(297);t.exports=function(t){switch(typeof t){case"string":return"rgb"===t.substr(0,3).toLowerCase()?o(t):n(t);case"number":return s(t);case"object":return r(t)}}},function(t,e){t.exports=function(t,e,i){return t<<16|e<<8|i}},function(t,e,i){var n=i(160);t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1);var r=Math.floor(6*t),o=6*t-r,a=Math.floor(i*(1-e)*255),h=Math.floor(i*(1-o*e)*255),l=Math.floor(i*(1-(1-o)*e)*255),u=i=Math.floor(i*=255),c=i,d=i,f=r%6;return 0===f?(c=l,d=a):1===f?(u=h,d=a):2===f?(u=a,d=l):3===f?(u=a,c=h):4===f?(u=l,c=a):5===f&&(c=a,d=h),s?s.setTo?s.setTo(u,c,d,s.alpha,!1):(s.r=u,s.g=c,s.b=d,s.color=n(u,c,d),s):{r:u,g:c,b:d,color:n(u,c,d)}}},function(t,e){var i,n="";t.exports={disable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!1),t},enable:function(t){return""===n&&(n=i(t)),n&&(t[n]=!0),t},getPrefix:i=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i0&&(n=1/Math.sqrt(n),this.x=t*n,this.y=e*n,this.z=i*n),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z;return this.x=i*o-n*r,this.y=n*s-e*o,this.z=e*r-i*s,this},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this},transformMat3:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=e*s[0]+i*s[3]+n*s[6],this.y=e*s[1]+i*s[4]+n*s[7],this.z=e*s[2]+i*s[5]+n*s[8],this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=t.val;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12],this.y=s[1]*e+s[5]*i+s[9]*n+s[13],this.z=s[2]*e+s[6]*i+s[10]*n+s[14],this},transformCoordinates:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=e*s[0]+i*s[4]+n*s[8]+s[12],o=e*s[1]+i*s[5]+n*s[9]+s[13],a=e*s[2]+i*s[6]+n*s[10]+s[14],h=e*s[3]+i*s[7]+n*s[11]+s[15];return this.x=r/h,this.y=o/h,this.z=a/h,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},project:function(t){var e=this.x,i=this.y,n=this.z,s=t.val,r=s[0],o=s[1],a=s[2],h=s[3],l=s[4],u=s[5],c=s[6],d=s[7],f=s[8],p=s[9],g=s[10],v=s[11],m=s[12],y=s[13],x=s[14],T=1/(e*h+i*d+n*v+s[15]);return this.x=(e*r+i*l+n*f+m)*T,this.y=(e*o+i*u+n*p+y)*T,this.z=(e*a+i*c+n*g+x)*T,this},unproject:function(t,e){var i=t.x,n=t.y,s=t.z,r=t.w,o=this.x-i,a=r-this.y-1-n,h=this.z;return this.x=2*o/s-1,this.y=2*a/r-1,this.z=2*h-1,this.project(e)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0,0),n.LEFT=new n(-1,0,0),n.UP=new n(0,-1,0),n.DOWN=new n(0,1,0),n.FORWARD=new n(0,0,1),n.BACK=new n(0,0,-1),n.ONE=new n(1,1,1),t.exports=n},function(t,e,i){t.exports={Global:["game","anims","cache","plugins","registry","scale","sound","textures"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]}},function(t,e,i){var n=i(12),s=i(15);t.exports=function(t,e){if(void 0===e&&(e=new n),0===t.length)return e;for(var i,r,o,a=Number.MAX_VALUE,h=Number.MAX_VALUE,l=s.MIN_SAFE_INTEGER,u=s.MIN_SAFE_INTEGER,c=0;c0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(t){return this.settings.visible=t,this},setActive:function(t,e){return t?this.resume(e):this.pause(e)},start:function(t){t&&(this.settings.data=t),this.settings.status=s.START,this.settings.active=!0,this.settings.visible=!0,this.events.emit(o.START,this),this.events.emit(o.READY,this,t)},shutdown:function(t){this.events.off(o.TRANSITION_INIT),this.events.off(o.TRANSITION_START),this.events.off(o.TRANSITION_COMPLETE),this.events.off(o.TRANSITION_OUT),this.settings.status=s.SHUTDOWN,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.SHUTDOWN,this,t)},destroy:function(){this.settings.status=s.DESTROYED,this.settings.active=!1,this.settings.visible=!1,this.events.emit(o.DESTROY,this),this.events.removeAllListeners();for(var t=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],e=0;e0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});t.exports=u},function(t,e,i){var n=i(179),s=i(52),r=i(0),o=i(11),a=i(89),h=i(13),l=i(12),u=i(949),c=i(389),d=i(3),f=new r({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.Transform,o.Visible,u],initialize:function(t,e,i,n){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._displayList=t.sys.displayList,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.setPosition(e,i),this.clearAlpha(),this.setBlendMode(s.SKIP_CHECK),n&&this.add(n)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return void 0===t&&(t=!0),this.exclusive=t,this},getBounds:function(t){if(void 0===t&&(t=new l),t.setTo(this.x,this.y,0,0),this.list.length>0)for(var e=this.list,i=new l,n=0;n-1},setAll:function(t,e,i,s){return n.SetAll(this.list,t,e,i,s),this},each:function(t,e){var i,n=[null],s=this.list.slice(),r=s.length;for(i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[],this._displayList=null}});t.exports=f},function(t,e,i){var n=i(127),s=i(0),r=i(954),o=new s({Extends:n,Mixins:[r],initialize:function(t,e,i,s,r,o,a){n.call(this,t,e,i,s,r,o,a),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=o},function(t,e,i){var n=i(90),s=i(0),r=i(188),o=i(266),a=i(269),h=i(270),l=i(274),u=i(151),c=i(279),d=i(280),f=i(277),p=i(30),g=i(94),v=i(13),m=i(2),y=i(6),x=i(15),T=i(960),w=new s({Extends:v,Mixins:[o,a,h,l,u,c,d,f,T],initialize:function(t,e){var i=y(e,"x",0),n=y(e,"y",0);v.call(this,t,"Graphics"),this.setPosition(i,n),this.initPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this._tempMatrix1=new p,this._tempMatrix2=new p,this._tempMatrix3=new p,this.setDefaultStyles(e)},setDefaultStyles:function(t){return y(t,"lineStyle",null)&&(this.defaultStrokeWidth=y(t,"lineStyle.width",1),this.defaultStrokeColor=y(t,"lineStyle.color",16777215),this.defaultStrokeAlpha=y(t,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),y(t,"fillStyle",null)&&(this.defaultFillColor=y(t,"fillStyle.color",16777215),this.defaultFillAlpha=y(t,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return void 0===i&&(i=1),this.commandBuffer.push(r.LINE_STYLE,t,e,i),this._lineWidth=t,this},fillStyle:function(t,e){return void 0===e&&(e=1),this.commandBuffer.push(r.FILL_STYLE,t,e),this},fillGradientStyle:function(t,e,i,n,s){return void 0===s&&(s=1),this.commandBuffer.push(r.GRADIENT_FILL_STYLE,s,t,e,i,n),this},lineGradientStyle:function(t,e,i,n,s,o){return void 0===o&&(o=1),this.commandBuffer.push(r.GRADIENT_LINE_STYLE,t,o,e,i,n,s),this},setTexture:function(t,e,i){if(void 0===i&&(i=0),void 0===t)this.commandBuffer.push(r.CLEAR_TEXTURE);else{var n=this.scene.sys.textures.getFrame(t,e);n&&(2===i&&(i=3),this.commandBuffer.push(r.SET_TEXTURE,n,i))}return this},beginPath:function(){return this.commandBuffer.push(r.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(r.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(r.FILL_PATH),this},fill:function(){return this.commandBuffer.push(r.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(r.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(r.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,x.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,n){return this.commandBuffer.push(r.FILL_RECT,t,e,i,n),this},strokeRect:function(t,e,i,n){var s=this._lineWidth/2,r=t-s,o=t+s;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+n),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+n),this.strokePath(),this.beginPath(),this.moveTo(r,e),this.lineTo(o+i,e),this.strokePath(),this.beginPath(),this.moveTo(r,e+n),this.lineTo(o+i,e+n),this.strokePath(),this},fillRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.fillPath(),this},strokeRoundedRect:function(t,e,i,n,s){void 0===s&&(s=20);var r=s,o=s,a=s,h=s;return"number"!=typeof s&&(r=m(s,"tl",20),o=m(s,"tr",20),a=m(s,"bl",20),h=m(s,"br",20)),this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.arc(t+i-o,e+o,o,-x.TAU,0),this.lineTo(t+i,e+n-h),this.arc(t+i-h,e+n-h,h,0,x.TAU),this.lineTo(t+a,e+n),this.arc(t+a,e+n-a,a,x.TAU,Math.PI),this.lineTo(t,e+r),this.arc(t+r,e+r,r,-Math.PI,-x.TAU),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(r.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.FILL_TRIANGLE,t,e,i,n,s,o),this},strokeTriangle:function(t,e,i,n,s,o){return this.commandBuffer.push(r.STROKE_TRIANGLE,t,e,i,n,s,o),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,n){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,n),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(r.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(r.MOVE_TO,t,e),this},strokePoints:function(t,e,i,n){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var s=1;s-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(t,e,i){var n,s,r=this.scene.sys,o=r.game.renderer;if(void 0===e&&(e=r.scale.width),void 0===i&&(i=r.scale.height),w.TargetCamera.setScene(this.scene),w.TargetCamera.setViewport(0,0,e,i),w.TargetCamera.scrollX=this.x,w.TargetCamera.scrollY=this.y,"string"==typeof t)if(r.textures.exists(t)){var a=(n=r.textures.get(t)).getSourceImage();a instanceof HTMLCanvasElement&&(s=a.getContext("2d"))}else s=(n=r.textures.createCanvas(t,e,i)).getSourceImage().getContext("2d");else t instanceof HTMLCanvasElement&&(s=t.getContext("2d"));return s&&(this.renderCanvas(o,this,0,w.TargetCamera,null,s,!1),n&&n.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});w.TargetCamera=new n,t.exports=w},function(t,e){t.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,SET_TEXTURE:19,CLEAR_TEXTURE:20,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},function(t,e,i){var n=i(4);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.width/2,r=t.height/2;return i.x=t.x+s*Math.cos(e),i.y=t.y+r*Math.sin(e),i}},function(t,e,i){var n=i(0),s=i(11),r=i(13),o=i(397),a=i(124),h=i(399),l=i(970),u=new n({Extends:r,Mixins:[s.Depth,s.Mask,s.Pipeline,s.Transform,s.Visible,l],initialize:function(t,e,i,n){if(r.call(this,t,"ParticleEmitterManager"),this.blendMode=-1,this.timeScale=1,this.texture=null,this.frame=null,this.frameNames=[],null===i||"object"!=typeof i&&!Array.isArray(i)||(n=i,i=null),this.setTexture(e,i),this.initPipeline(),this.emitters=new a(this),this.wells=new a(this),n){Array.isArray(n)||(n=[n]);for(var s=0;s0?e.defaultFrame=i[0]:e.defaultFrame=this.defaultFrame,this},addEmitter:function(t){return this.emitters.add(t)},createEmitter:function(t){return this.addEmitter(new h(this,t))},removeEmitter:function(t){return this.emitters.remove(t,!0)},addGravityWell:function(t){return this.wells.add(t)},createGravityWell:function(t){return this.addGravityWell(new o(t))},emitParticle:function(t,e,i){for(var n=this.emitters.list,s=0;ss.width&&(t=s.width-this.frame.cutX),this.frame.cutY+e>s.height&&(e=s.height-this.frame.cutY),this.frame.setSize(t,e,this.frame.cutX,this.frame.cutY)}this.updateDisplayOrigin();var r=this.input;return r&&!r.customHitArea&&(r.hitArea.width=t,r.hitArea.height=e),this},setGlobalTint:function(t){return this.globalTint=t,this},setGlobalAlpha:function(t){return this.globalAlpha=t,this},saveTexture:function(t){return this.textureManager.renameTexture(this.texture.key,t),this._saved=!0,this.texture},fill:function(t,e,i,n,s,r){void 0===e&&(e=1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.frame.cutWidth),void 0===r&&(r=this.frame.cutHeight);var o=255&(t>>16|0),a=255&(t>>8|0),h=255&(0|t),l=this.gl,u=this.frame;if(this.camera.preRender(1,1),l){var c=this.camera._cx,f=this.camera._cy,p=this.camera._cw,g=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(c,f,p,g,g);var v=this.pipeline;v.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),v.drawFillRect(i,n,s,r,d.getTintFromFloats(o/255,a/255,h/255,1),e),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),v.projOrtho(0,v.width,v.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.context.fillStyle="rgba("+o+","+a+","+h+","+e+")",this.context.fillRect(i+u.cutX,n+u.cutY,s,r),this.renderer.setContext();return this.dirty=!0,this},clear:function(){if(this.dirty){var t=this.gl;if(t){var e=this.renderer;e.setFramebuffer(this.framebuffer,!0),this.frame.cutWidth===this.canvas.width&&this.frame.cutHeight===this.canvas.height||t.scissor(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),e.setFramebuffer(null,!0)}else{var i=this.context;i.save(),i.setTransform(1,0,0,1,0,0),i.clearRect(this.frame.cutX,this.frame.cutY,this.frame.cutWidth,this.frame.cutHeight),i.restore()}this.dirty=!1}return this},erase:function(t,e,i){this._eraseMode=!0;var s=this.renderer.currentBlendMode;return this.renderer.setBlendMode(n.ERASE),this.draw(t,e,i,1,16777215),this.renderer.setBlendMode(s),this._eraseMode=!1,this},draw:function(t,e,i,n,s){void 0===n&&(n=this.globalAlpha),s=void 0===s?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(s>>16)+(65280&s)+((255&s)<<16),Array.isArray(t)||(t=[t]);var r=this.gl;if(this.camera.preRender(1,1),r){var o=this.camera._cx,a=this.camera._cy,h=this.camera._cw,l=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(o,a,h,l,l);var u=this.pipeline;u.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),this.batchList(t,e,i,n,s),u.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),u.projOrtho(0,u.width,u.height,0,-1e3,1e3)}else this.renderer.setContext(this.context),this.batchList(t,e,i,n,s),this.renderer.setContext();return this.dirty=!0,this},drawFrame:function(t,e,i,n,s,r){void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.globalAlpha),r=void 0===r?(this.globalTint>>16)+(65280&this.globalTint)+((255&this.globalTint)<<16):(r>>16)+(65280&r)+((255&r)<<16);var o=this.gl,a=this.textureManager.getFrame(t,e);if(a){if(this.camera.preRender(1,1),o){var h=this.camera._cx,l=this.camera._cy,u=this.camera._cw,c=this.camera._ch;this.renderer.setFramebuffer(this.framebuffer,!1),this.renderer.pushScissor(h,l,u,c,c);var d=this.pipeline;d.projOrtho(0,this.texture.width,0,this.texture.height,-1e3,1e3),d.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,r,s,this.camera.matrix,null),d.flush(),this.renderer.setFramebuffer(null,!1),this.renderer.popScissor(),d.projOrtho(0,d.width,d.height,0,-1e3,1e3)}else this.batchTextureFrame(a,i+this.frame.cutX,n+this.frame.cutY,s,r);this.dirty=!0}return this},batchList:function(t,e,i,n,s){for(var r=0;rr&&(o=t[r]),s[r]=o,t.length>r+1&&(o=t[r+1]),s[r+1]=o}return this},setColors:function(t){var e=this.points.length;if(e<1)return this;var i,n=this.colors;void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]);var s=0;if(t.length===e)for(i=0;is&&(r=t[s]),n[s]=r,t.length>s+1&&(r=t[s+1]),n[s+1]=r}return this},setPoints:function(t,e,i){if(void 0===t&&(t=2),"number"==typeof t){var n,s,r,o=t;if(o<2&&(o=2),t=[],this.horizontal)for(r=-this.frame.halfWidth,s=this.frame.width/(o-1),n=0;nl){if(0===c){for(var g=f;g.length&&(g=g.slice(0,-1),!((p=e.measureText(g).width)<=l)););if(!g.length)throw new Error("This text's wordWrapWidth setting is less than a single character!");var v=d.substr(g.length);u[c]=v,h+=g}var m=u[c].length?c:c+1,y=u.slice(m).join(" ").replace(/[ \n]*$/gi,"");s[o+1]=y+" "+(s[o+1]||""),r=s.length;break}h+=f,l-=p}n+=h.replace(/[ \n]*$/gi,"")+"\n"}}return n=n.replace(/[\s|\n]*$/gi,"")},basicWordWrap:function(t,e,i){for(var n="",s=t.split(this.splitRegExp),r=s.length-1,o=e.measureText(" ").width,a=0;a<=r;a++){for(var h=i,l=s[a].split(" "),u=l.length-1,c=0;c<=u;c++){var d=l[c],f=e.measureText(d).width,p=f+o;p>h&&c>0&&(n+="\n",h=i),n+=d,c0&&(d+=h.lineSpacing*g),i.rtl)c=f-c;else if("right"===i.align)c+=o-h.lineWidths[g];else if("center"===i.align)c+=(o-h.lineWidths[g])/2;else if("justify"===i.align){if(h.lineWidths[g]/h.width>=.85){var v=h.width-h.lineWidths[g],m=e.measureText(" ").width,y=a[g].trim(),x=y.split(" ");v+=(a[g].length-y.length)*m;for(var T=Math.floor(v/m),w=0;T>0;)x[w]+=" ",w=(w+1)%(x.length-1||1),--T;a[g]=x.join(" ")}}this.autoRound&&(c=Math.round(c),d=Math.round(d)),i.strokeThickness&&(this.style.syncShadow(e,i.shadowStroke),e.strokeText(a[g],c,d)),i.color&&(this.style.syncShadow(e,i.shadowFill),e.fillText(a[g],c,d))}e.restore(),this.renderer.gl&&(this.frame.source.glTexture=this.renderer.canvasToTexture(t,this.frame.source.glTexture,!0),this.frame.glTexture=this.frame.source.glTexture),this.dirty=!0;var b=this.input;return b&&!b.customHitArea&&(b.hitArea.width=this.width,b.hitArea.height=this.height),this},getTextMetrics:function(){return this.style.getTextMetrics()},text:{get:function(){return this._text},set:function(t){this.setText(t)}},toJSON:function(){var t=o.ToJSON(this),e={autoRound:this.autoRound,text:this._text,style:this.style.toJSON(),padding:{left:this.padding.left,right:this.padding.right,top:this.padding.top,bottom:this.padding.bottom}};return t.data=e,t},preDestroy:function(){this.style.rtl&&c(this.canvas),s.remove(this.canvas),this.texture.destroy()}});t.exports=p},function(t,e,i){var n=i(26),s=i(0),r=i(11),o=i(18),a=i(13),h=i(325),l=i(162),u=i(989),c=i(3),d=new s({Extends:a,Mixins:[r.Alpha,r.BlendMode,r.ComputedSize,r.Crop,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Tint,r.Transform,r.Visible,u],initialize:function(t,e,i,s,r,l,u){var d=t.sys.game.renderer;a.call(this,t,"TileSprite");var f=t.sys.textures.get(l),p=f.get(u);s&&r?(s=Math.floor(s),r=Math.floor(r)):(s=p.width,r=p.height),this._tilePosition=new c,this._tileScale=new c(1,1),this.dirty=!1,this.renderer=d,this.canvas=n.create(this,s,r),this.context=this.canvas.getContext("2d"),this.displayTexture=f,this.displayFrame=p,this._crop=this.resetCropObject(),this.texture=t.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.potWidth=h(p.width),this.potHeight=h(p.height),this.fillCanvas=n.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d"),this.fillPattern=null,this.setPosition(e,i),this.setSize(s,r),this.setFrame(u),this.setOriginFromFrame(),this.initPipeline(),t.sys.game.events.on(o.CONTEXT_RESTORED,function(t){var e=t.gl;this.dirty=!0,this.fillPattern=null,this.fillPattern=t.createTexture2D(0,e.LINEAR,e.LINEAR,e.REPEAT,e.REPEAT,e.RGBA,this.fillCanvas,this.potWidth,this.potHeight)},this)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){var e=this.displayTexture.get(t);return this.potWidth=h(e.width),this.potHeight=h(e.height),this.canvas.width=0,e.cutWidth&&e.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=e,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){if(this.dirty&&this.renderer){var t=this.displayFrame;if(t.source.isRenderTexture||t.source.isGLTexture)return console.warn("TileSprites can only use Image or Canvas based textures"),void(this.dirty=!1);var e=this.fillContext,i=this.fillCanvas,n=this.potWidth,s=this.potHeight;this.renderer.gl||(n=t.cutWidth,s=t.cutHeight),e.clearRect(0,0,n,s),i.width=n,i.height=s,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,n,s),this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var t=this.canvas;if(t.width===this.width&&t.height===this.height||(t.width=this.width,t.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl)this.dirty=!1;else{var e=this.context;this.scene.sys.game.config.antialias||l.disable(e);var i=this._tileScale.x,n=this._tileScale.y,s=this._tilePosition.x,r=this._tilePosition.y;e.clearRect(0,0,this.width,this.height),e.save(),e.scale(i,n),e.translate(-s,-r),e.fillStyle=this.fillPattern,e.fillRect(s,r,this.width/i,this.height/n),e.restore(),this.dirty=!1}},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),n.remove(this.canvas),n.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null,this.texture.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=d},function(t,e,i){var n=i(0),s=i(22),r=i(11),o=i(89),a=i(18),h=i(13),l=i(59),u=i(192),c=i(992),d=i(15),f=new n({Extends:h,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,c],initialize:function(t,e,i,n){h.call(this,t,"Video"),this.video=null,this.videoTexture=null,this.videoTextureSource=null,this.snapshotTexture=null,this.flipY=!1,this._key=u(),this.touchLocked=!0,this.playWhenUnlocked=!1,this.retryLimit=20,this.retry=0,this.retryInterval=500,this._retryID=null,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={play:this.playHandler.bind(this),error:this.loadErrorHandler.bind(this),end:this.completeHandler.bind(this),time:this.timeUpdateHandler.bind(this),seeking:this.seekingHandler.bind(this),seeked:this.seekedHandler.bind(this)},this._crop=this.resetCropObject(),this.markers={},this._markerIn=-1,this._markerOut=d.MAX_SAFE_INTEGER,this._lastUpdate=0,this._cacheKey="",this._isSeeking=!1,this.removeVideoElementOnDestroy=!1,this.setPosition(e,i),this.initPipeline(),n&&this.changeSource(n,!1);var s=t.sys.game.events;s.on(a.PAUSE,this.globalPause,this),s.on(a.RESUME,this.globalResume,this);var r=t.sys.sound;r&&r.on(l.GLOBAL_MUTE,this.globalMute,this)},play:function(t,e,i){if(this.touchLocked&&this.playWhenUnlocked||this.isPlaying())return this;var n=this.video;if(!n)return console.warn("Video not loaded"),this;void 0===t&&(t=n.loop);var s=this.scene.sys.sound;s&&s.mute&&this.setMute(!0),isNaN(e)||(this._markerIn=e),!isNaN(i)&&i>e&&(this._markerOut=i),n.loop=t;var r=this._callbacks,o=n.play();return void 0!==o?o.then(this.playPromiseSuccessHandler.bind(this)).catch(this.playPromiseErrorHandler.bind(this)):(n.addEventListener("playing",r.play,!0),n.readyState<2&&(this.retry=this.retryLimit,this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval))),n.addEventListener("ended",r.end,!0),n.addEventListener("timeupdate",r.time,!0),n.addEventListener("seeking",r.seeking,!0),n.addEventListener("seeked",r.seeked,!0),this},changeSource:function(t,e,i,n,s){void 0===e&&(e=!0),this.video&&this.stop();var r=this.scene.sys.cache.video.get(t);return r?(this.video=r,this._cacheKey=t,this._codePaused=r.paused,this._codeMuted=r.muted,this.videoTexture?(this.scene.sys.textures.remove(this._key),this.videoTexture=this.scene.sys.textures.create(this._key,r,r.videoWidth,r.videoHeight),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,r.videoWidth,r.videoHeight),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,r.videoWidth,r.videoHeight)):this.updateTexture(),r.currentTime=0,this._lastUpdate=0,e&&this.play(i,n,s)):this.video=null,this},addMarker:function(t,e,i){return!isNaN(e)&&e>=0&&!isNaN(i)&&(this.markers[t]=[e,i]),this},playMarker:function(t,e){var i=this.markers[t];return i&&this.play(e,i[0],i[1]),this},removeMarker:function(t){return delete this.markers[t],this},snapshot:function(t,e){return void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.snapshotArea(0,0,this.width,this.height,t,e)},snapshotArea:function(t,e,i,n,s,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=this.height),void 0===s&&(s=i),void 0===r&&(r=n);var o=this.video,a=this.snapshotTexture;return a?(a.setSize(s,r),o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)):(a=this.scene.sys.textures.createCanvas(u(),s,r),this.snapshotTexture=a,o&&a.context.drawImage(o,t,e,i,n,0,0,s,r)),a.update()},saveSnapshotTexture:function(t){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,t):this.snapshotTexture=this.scene.sys.textures.createCanvas(t,this.width,this.height),this.snapshotTexture},loadURL:function(t,e,i){void 0===e&&(e="loadeddata"),void 0===i&&(i=!1),this.video&&this.stop(),this.videoTexture&&this.scene.sys.textures.remove(this._key);var n=document.createElement("video");return n.controls=!1,i&&(n.muted=!0,n.defaultMuted=!0,n.setAttribute("autoplay","autoplay")),n.setAttribute("playsinline","playsinline"),n.setAttribute("preload","auto"),n.addEventListener("error",this._callbacks.error,!0),n.src=t,n.load(),this.video=n,this},playPromiseSuccessHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn)},playPromiseErrorHandler:function(t){this.scene.sys.input.once("pointerdown",this.unlockHandler,this),this.touchLocked=!0,this.playWhenUnlocked=!0,this.emit(o.VIDEO_ERROR,this,t)},playHandler:function(){this.touchLocked=!1,this.emit(o.VIDEO_PLAY,this),this.video.removeEventListener("playing",this._callbacks.play,!0)},loadErrorHandler:function(t){this.stop(),this.emit(o.VIDEO_ERROR,this,t)},unlockHandler:function(){this.touchLocked=!1,this.playWhenUnlocked=!1,this.emit(o.VIDEO_UNLOCKED,this),this._markerIn>-1&&(this.video.currentTime=this._markerIn),this.video.play(),this.emit(o.VIDEO_PLAY,this)},completeHandler:function(){this.emit(o.VIDEO_COMPLETE,this)},timeUpdateHandler:function(){this.video&&this.video.currentTime=this._markerOut&&(t.loop?(t.currentTime=this._markerIn,this.updateTexture(),this._lastUpdate=e,this.emit(o.VIDEO_LOOP,this)):(this.emit(o.VIDEO_COMPLETE,this),this.stop())))}},checkVideoProgress:function(){this.video.readyState>=2?this.updateTexture():(this.retry--,this.retry>0?this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval):this.emit(o.VIDEO_TIMEOUT,this))},updateTexture:function(){var t=this.video,e=t.videoWidth,i=t.videoHeight;if(this.videoTexture){var n=this.videoTextureSource;n.source!==t&&(n.source=t,n.width=e,n.height=i),n.update()}else this.videoTexture=this.scene.sys.textures.create(this._key,t,e,i),this.videoTextureSource=this.videoTexture.source[0],this.videoTexture.add("__BASE",0,0,0,e,i),this.setTexture(this.videoTexture),this.setSizeToFrame(),this.updateDisplayOrigin(),this.emit(o.VIDEO_CREATED,this,e,i)},getVideoKey:function(){return this._cacheKey},seekTo:function(t){var e=this.video;if(e){var i=e.duration;if(i!==1/0&&!isNaN(i)){var n=i*t;this.setCurrentTime(n)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e=this.video;if(e){if("string"==typeof t){var i=t[0],n=parseFloat(t.substr(1));"+"===i?t=e.currentTime+n:"-"===i&&(t=e.currentTime-n)}e.currentTime=t,this._lastUpdate=t}return this},isSeeking:function(){return this._isSeeking},seekingHandler:function(){this._isSeeking=!0,this.emit(o.VIDEO_SEEKING,this)},seekedHandler:function(){this._isSeeking=!1,this.emit(o.VIDEO_SEEKED,this),this.video&&this.updateTexture()},getProgress:function(){var t=this.video;if(t){var e=t.currentTime,i=t.duration;if(i!==1/0&&!isNaN(i))return e/i}return 0},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){void 0===t&&(t=!0),this._codeMuted=t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},globalPause:function(){this._systemPaused=!0,this.video&&this.video.pause()},globalResume:function(){this._systemPaused=!1,this.video&&!this._codePaused&&this.video.play()},setPaused:function(t){void 0===t&&(t=!0);var e=this.video;return this._codePaused=t,e&&(t?e.paused||e.pause():t||e.paused&&!this._systemPaused&&e.play()),this},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(t){return void 0===t&&(t=1),this.video&&(this.video.volume=s(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&this.scene.sys.textures.renameTexture(this._key,t),this._key=t,this.flipY=e,this.videoTextureSource&&this.videoTextureSource.setFlipY(e),this.videoTexture},stop:function(){var t=this.video;if(t){var e=this._callbacks;for(var i in e)t.removeEventListener(i,e[i],!0);t.pause()}return this._retryID&&window.clearTimeout(this._retryID),this.emit(o.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("autoplay"),t.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(),this.removeVideoElementOnDestroy&&this.removeVideoElement();var t=this.scene.sys.game.events;t.off(a.PAUSE,this.globalPause,this),t.off(a.RESUME,this.globalResume,this);var e=this.scene.sys.sound;e&&e.off(l.GLOBAL_MUTE,this.globalMute,this),this._retryID&&window.clearTimeout(this._retryID)}});t.exports=f},function(t,e,i){var n=i(0),s=i(198),r=i(414),o=i(46),a=new n({initialize:function(t){this.type=o.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return s(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],"string"==typeof t&&(t=t.split(" ")),!Array.isArray(t))return this;for(var e,i=Number.MAX_VALUE,n=0;no||r>a)return!1;if(s<=i||r<=n)return!0;var h=s-i,l=r-n;return h*h+l*l<=t.radius*t.radius}},function(t,e,i){var n=i(4),s=i(204);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a=t.x1,h=t.y1,l=t.x2,u=t.y2,c=e.x,d=e.y,f=e.radius,p=l-a,g=u-h,v=a-c,m=h-d,y=p*p+g*g,x=2*(p*v+g*m),T=x*x-4*y*(v*v+m*m-f*f);if(0===T){var w=-x/(2*y);r=a+w*p,o=h+w*g,w>=0&&w<=1&&i.push(new n(r,o))}else if(T>0){var b=(-x-Math.sqrt(T))/(2*y);r=a+b*p,o=h+b*g,b>=0&&b<=1&&i.push(new n(r,o));var E=(-x+Math.sqrt(T))/(2*y);r=a+E*p,o=h+E*g,E>=0&&E<=1&&i.push(new n(r,o))}}return i}},function(t,e,i){var n=i(55),s=new(i(4));t.exports=function(t,e,i){if(void 0===i&&(i=s),n(e,t.x1,t.y1))return i.x=t.x1,i.y=t.y1,!0;if(n(e,t.x2,t.y2))return i.x=t.x2,i.y=t.y2,!0;var r=t.x2-t.x1,o=t.y2-t.y1,a=e.x-t.x1,h=e.y-t.y1,l=r*r+o*o,u=r,c=o;if(l>0){var d=(a*r+h*o)/l;u*=d,c*=d}return i.x=t.x1+u,i.y=t.y1+c,u*u+c*c<=l&&u*r+c*o>=0&&n(e,i.x,i.y)}},function(t,e,i){var n=i(4),s=i(83),r=i(427);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e))for(var o=e.getLineA(),a=e.getLineB(),h=e.getLineC(),l=e.getLineD(),u=[new n,new n,new n,new n],c=[s(o,t,u[0]),s(a,t,u[1]),s(h,t,u[2]),s(l,t,u[3])],d=0;d<4;d++)c[d]&&i.push(u[d]);return i}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=!1),void 0===n&&(n=[]);for(var s,r,o,a,h,l,u=t.x3-t.x1,c=t.y3-t.y1,d=t.x2-t.x1,f=t.y2-t.y1,p=u*u+c*c,g=u*d+c*f,v=d*d+f*f,m=p*v-g*g,y=0===m?0:1/m,x=t.x1,T=t.y1,w=0;w=0&&r>=0&&s+r<1&&(n.push({x:e[w].x,y:e[w].y}),i)));w++);return n}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,t}},function(t,e){t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},function(t,e){t.exports=function(t,e,i,n){var s=Math.cos(n),r=Math.sin(n),o=t.x1-e,a=t.y1-i;return t.x1=o*s-a*r+e,t.y1=o*r+a*s+i,o=t.x2-e,a=t.y2-i,t.x2=o*s-a*r+e,t.y2=o*r+a*s+i,o=t.x3-e,a=t.y3-i,t.x3=o*s-a*r+e,t.y3=o*r+a*s+i,t}},function(t,e,i){t.exports={BUTTON_DOWN:i(1197),BUTTON_UP:i(1198),CONNECTED:i(1199),DISCONNECTED:i(1200),GAMEPAD_BUTTON_DOWN:i(1201),GAMEPAD_BUTTON_UP:i(1202)}},function(t,e,i){var n=i(17),s=i(134);t.exports=function(t,e){var i=void 0===t?s():n({},t);if(e)for(var r in e)void 0!==e[r]&&(i[r]=e[r]);return i}},function(t,e,i){var n=i(0),s=i(19),r=i(20),o=i(8),a=i(2),h=i(7),l=i(361),u=new n({Extends:r,initialize:function(t,e,i,n){var s="xml";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),n=a(o,"xhrSettings"),s=a(o,"extension",s)}var l={type:"xml",cache:t.cacheManager.xml,extension:s,responseType:"text",key:e,url:i,xhrSettings:n};r.call(this,t,l)},onProcess:function(){this.state=s.FILE_PROCESSING,this.data=l(this.xhrLoader.responseText),this.data?this.onProcessComplete():(console.warn("Invalid XMLFile: "+this.key),this.onProcessError())}});o.register("xml",function(t,e,i){if(Array.isArray(t))for(var n=0;n0?1:.7),e.damping=e.damping||0,e.angularStiffness=e.angularStiffness||0,e.angleA=e.bodyA?e.bodyA.angle:e.angleA,e.angleB=e.bodyB?e.bodyB.angle:e.angleB,e.plugin={};var o={visible:!0,type:"line",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return 0===e.length&&e.stiffness>.1?(o.type="pin",o.anchors=!1):e.stiffness<.9&&(o.type="spring"),e.render=l.extend(o,e.render),e},n.preSolveAll=function(t){for(var e=0;e0&&(c.position.x+=l.x,c.position.y+=l.y),0!==l.angle&&(s.rotate(c.vertices,l.angle,i.position),h.rotate(c.axes,l.angle),u>0&&r.rotateAbout(c.position,l.angle,i.position,c.position)),a.update(c.bounds,c.vertices,i.velocity)}l.angle*=n._warming,l.x*=n._warming,l.y*=n._warming}}},n.pointAWorld=function(t){return{x:(t.bodyA?t.bodyA.position.x:0)+t.pointA.x,y:(t.bodyA?t.bodyA.position.y:0)+t.pointA.y}},n.pointBWorld=function(t){return{x:(t.bodyB?t.bodyB.position.x:0)+t.pointB.x,y:(t.bodyB?t.bodyB.position.y:0)+t.pointB.y}}},function(t,e,i){var n=i(137);t.exports=function(t,e,i){var s=n(t,e,!0,i),r=n(t,e-1,!0,i),o=n(t,e+1,!0,i),a=n(t-1,e,!0,i),h=n(t+1,e,!0,i),l=s&&s.collides;return l&&(s.faceTop=!0,s.faceBottom=!0,s.faceLeft=!0,s.faceRight=!0),r&&r.collides&&(l&&(s.faceTop=!1),r.faceBottom=!l),o&&o.collides&&(l&&(s.faceBottom=!1),o.faceTop=!l),a&&a.collides&&(l&&(s.faceLeft=!1),a.faceRight=!l),h&&h.collides&&(l&&(s.faceRight=!1),h.faceLeft=!l),s&&!s.collides&&s.resetFaces(),s}},function(t,e,i){var n=i(470),s=i(471),r=i(3);t.exports=function(t,e,i,o,a){var h=a.orientation,l=a.baseTileWidth,u=a.baseTileHeight,c=a.tilemapLayer;if(void 0===i&&(i=new r(0,0)),"orthogonal"===h)i.x=n(t,o,a,h),i.y=s(e,o,a,h);else if("isometric"===h){var d=0,f=0;c&&(void 0===o&&(o=c.scene.cameras.main),d=c.x+o.scrollX*(1-c.scrollFactorX),l*=c.scaleX,f=c.y+o.scrollY*(1-c.scrollFactorY),u*=c.scaleY),i.x=d+l/2*(t-e),i.y=f+(t+e)*(u/2)}return i}},function(t,e,i){var n=i(73),s=i(100),r=i(216),o=i(71);t.exports=function(t,e,i,a,h){if(!s(e,i,h))return null;void 0===a&&(a=!0);var l=h.data[i][e],u=l&&l.collides;if(t instanceof n)null===h.data[i][e]&&(h.data[i][e]=new n(h,t.index,e,i,h.tileWidth,h.tileHeight)),h.data[i][e].copy(t);else{var c=t;null===h.data[i][e]?h.data[i][e]=new n(h,c,e,i,h.tileWidth,h.tileHeight):h.data[i][e].index=c}var d=h.data[i][e],f=-1!==h.collideIndexes.indexOf(d.index);return o(d,f),a&&u!==d.collides&&r(e,i,h),d}},function(t,e){t.exports=function(t,e,i){var n=i.collideIndexes.indexOf(t);e&&-1===n?i.collideIndexes.push(t):e||-1===n||i.collideIndexes.splice(n,1)}},function(t,e,i){var n=i(33),s=i(101),r=i(102),o=i(73);t.exports=function(t,e,i,a,h){for(var l=new s({tileWidth:i,tileHeight:a}),u=new r({name:t,tileWidth:i,tileHeight:a,format:n.ARRAY_2D,layers:[l]}),c=[],d=e.length,f=0,p=0;p0&&(s.totalDuration+=s.t2*s.repeat),s.totalDuration>t&&(t=s.totalDuration),s.delay0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay,this.startDelay=e},init:function(){if(this.paused&&!this.parentIsTimeline)return this.state=h.PENDING_ADD,this._pausedState=h.INIT,!1;for(var t=this.data,e=this.totalTargets,i=0;i0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=h.LOOP_DELAY):(this.state=h.ACTIVE,this.dispatchTweenEvent(r.TWEEN_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=h.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=h.PENDING_REMOVE,this.dispatchTweenEvent(r.TWEEN_COMPLETE,this.callbacks.onComplete))},pause:function(){return this.state===h.PAUSED?this:(this.paused=!0,this._pausedState=this.state,this.state=h.PAUSED,this)},play:function(t){void 0===t&&(t=!1);var e=this.state;return e!==h.INIT||this.parentIsTimeline?e===h.ACTIVE||e===h.PENDING_ADD&&this._pausedState===h.PENDING_ADD?this:this.parentIsTimeline||e!==h.PENDING_REMOVE&&e!==h.REMOVED?(this.parentIsTimeline?(this.resetTweenData(t),0===this.calculatedOffset?this.state=h.ACTIVE:(this.countdown=this.calculatedOffset,this.state=h.OFFSET_DELAY)):this.paused?(this.paused=!1,this.makeActive()):(this.resetTweenData(t),this.state=h.ACTIVE,this.makeActive()),this):(this.seek(0),this.parent.makeActive(this),this):(this.resetTweenData(!1),this.state=h.ACTIVE,this)},resetTweenData:function(t){for(var e=this.data,i=this.totalData,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY),r.getActiveValue&&(o[a]=r.getActiveValue(r.target,r.key,r.start))}},resume:function(){return this.state===h.PAUSED?(this.paused=!1,this.state=this._pausedState):this.play(),this},seek:function(t,e){if(void 0===e&&(e=16.6),this.totalDuration>=36e5)return console.warn("Tween.seek duration too long"),this;this.state===h.REMOVED&&this.makeActive(),this.elapsed=0,this.progress=0,this.totalElapsed=0,this.totalProgress=0;for(var i=this.data,n=this.totalTargets,s=0;s0&&(r.elapsed=r.delay,r.state=h.DELAY)}this.calcDuration();var c=!1;this.state===h.PAUSED&&(c=!0,this.state=h.ACTIVE),this.isSeeking=!0;do{this.update(0,e)}while(this.totalProgress0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.start=e.getStartValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},setStateFromStart:function(t,e,i){return e.repeatCounter>0?(e.repeatCounter--,e.elapsed=i,e.progress=i/e.duration,e.flipX&&e.target.toggleFlipX(),e.flipY&&e.target.toggleFlipY(),e.end=e.getEndValue(e.target,e.key,e.start,e.index,t.totalTargets,t),e.repeatDelay>0?(e.elapsed=e.repeatDelay-i,e.current=e.start,e.target[e.key]=e.current,h.REPEAT_DELAY):(this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e),h.PLAYING_FORWARD)):h.COMPLETE},updateTweenData:function(t,e,i){var n=e.target;switch(e.state){case h.PLAYING_FORWARD:case h.PLAYING_BACKWARD:if(!n){e.state=h.COMPLETE;break}var s=e.elapsed,o=e.duration,a=0;(s+=i)>o&&(a=s-o,s=o);var l=e.state===h.PLAYING_FORWARD,u=s/o;if(e.elapsed=s,e.progress=u,e.previous=e.current,1===u)l?(e.current=e.end,n[e.key]=e.end,e.hold>0?(e.elapsed=e.hold-a,e.state=h.HOLD_DELAY):e.state=this.setStateFromEnd(t,e,a)):(e.current=e.start,n[e.key]=e.start,e.state=this.setStateFromStart(t,e,a));else{var c=l?e.ease(u):e.ease(1-u);e.current=e.start+(e.end-e.start)*c,n[e.key]=e.current}this.dispatchTweenDataEvent(r.TWEEN_UPDATE,t.callbacks.onUpdate,e);break;case h.DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PENDING_RENDER);break;case h.REPEAT_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.elapsed=Math.abs(e.elapsed),e.state=h.PLAYING_FORWARD,this.dispatchTweenDataEvent(r.TWEEN_REPEAT,t.callbacks.onRepeat,e));break;case h.HOLD_DELAY:e.elapsed-=i,e.elapsed<=0&&(e.state=this.setStateFromEnd(t,e,Math.abs(e.elapsed)));break;case h.PENDING_RENDER:n?(e.start=e.getStartValue(n,e.key,n[e.key],e.index,t.totalTargets,t),e.end=e.getEndValue(n,e.key,e.start,e.index,t.totalTargets,t),e.current=e.start,n[e.key]=e.start,e.state=h.PLAYING_FORWARD):e.state=h.COMPLETE}return e.state!==h.COMPLETE}});u.TYPES=["onActive","onComplete","onLoop","onRepeat","onStart","onUpdate","onYoyo"],a.register("tween",function(t){return this.scene.sys.tweens.add(t)}),o.register("tween",function(t){return this.scene.sys.tweens.create(t)}),t.exports=u},function(t,e,i){t.exports={TIMELINE_COMPLETE:i(1350),TIMELINE_LOOP:i(1351),TIMELINE_PAUSE:i(1352),TIMELINE_RESUME:i(1353),TIMELINE_START:i(1354),TIMELINE_UPDATE:i(1355),TWEEN_ACTIVE:i(1356),TWEEN_COMPLETE:i(1357),TWEEN_LOOP:i(1358),TWEEN_REPEAT:i(1359),TWEEN_START:i(1360),TWEEN_UPDATE:i(1361),TWEEN_YOYO:i(1362)}},function(t,e){t.exports=function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p){return{target:t,index:e,key:i,getActiveValue:r,getEndValue:n,getStartValue:s,ease:o,duration:0,totalDuration:0,delay:0,yoyo:l,hold:0,repeat:0,repeatDelay:0,flipX:f,flipY:p,progress:0,elapsed:0,repeatCounter:0,start:0,previous:0,current:0,end:0,t1:0,t2:0,gen:{delay:a,duration:h,hold:u,repeat:c,repeatDelay:d},state:0}}},function(t,e){t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-Math.PI,Math.PI)}},function(t,e,i){var n=i(58);t.exports=function(t){return n(t,-180,180)}},function(t,e,i){var n=i(0),s=i(64),r=i(2),o=i(235),a=i(337),h=i(338),l=i(30),u=i(9),c=i(142),d=new n({Extends:c,Mixins:[o],initialize:function(t){var e=t.renderer.config;c.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:r(t,"topology",t.renderer.gl.TRIANGLES),vertShader:r(t,"vertShader",h),fragShader:r(t,"fragShader",a),vertexCapacity:r(t,"vertexCapacity",6*e.batchSize),vertexSize:r(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.tintEffect=2,this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[],this.mvpInit()},onBind:function(){return c.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return c.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this},batchSprite:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix1,s=this._tempMatrix2,r=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,l=o.v0,c=o.u1,d=o.v1,f=o.x,p=o.y,g=o.cutWidth,v=o.cutHeight,m=o.customPivot,y=t.displayOriginX,x=t.displayOriginY,T=-y+f,w=-x+p;if(t.isCropped){var b=t._crop;b.flipX===t.flipX&&b.flipY===t.flipY||o.updateCropUVs(b,t.flipX,t.flipY),h=b.u0,l=b.v0,c=b.u1,d=b.v1,g=b.width,v=b.height,T=-y+(f=b.x),w=-x+(p=b.y)}var E=1,S=1;t.flipX&&(m||(T+=-o.realWidth+2*y),E=-1),(t.flipY||o.source.isGLTexture&&!a.flipY)&&(m||(w+=-o.realHeight+2*x),S=-1),s.applyITRS(t.x,t.y,t.rotation,t.scaleX*E,t.scaleY*S),n.copyFrom(e.matrix),i?(n.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),s.e=t.x,s.f=t.y,n.multiply(s,r)):(s.e-=e.scrollX*t.scrollFactorX,s.f-=e.scrollY*t.scrollFactorY,n.multiply(s,r));var _=T+g,A=w+v,C=r.getX(T,w),M=r.getY(T,w),P=r.getX(T,A),O=r.getY(T,A),R=r.getX(_,A),L=r.getY(_,A),D=r.getX(_,w),F=r.getY(_,w),k=u.getTintAppendFloatAlpha(t._tintTL,e.alpha*t._alphaTL),I=u.getTintAppendFloatAlpha(t._tintTR,e.alpha*t._alphaTR),B=u.getTintAppendFloatAlpha(t._tintBL,e.alpha*t._alphaBL),N=u.getTintAppendFloatAlpha(t._tintBR,e.alpha*t._alphaBR);e.roundPixels&&(C=Math.round(C),M=Math.round(M),P=Math.round(P),O=Math.round(O),R=Math.round(R),L=Math.round(L),D=Math.round(D),F=Math.round(F)),this.setTexture2D(a,0);var Y=t._isTinted&&t.tintFill;this.batchQuad(C,M,P,O,R,L,D,F,h,l,c,d,k,I,B,N,Y,a,0)},batchQuad:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y){var x=!1;this.vertexCount+6>this.vertexCapacity&&(this.flush(),x=!0,this.setTexture2D(m,y));var T=this.vertexViewF32,w=this.vertexViewU32,b=this.vertexCount*this.vertexComponentCount-1;return T[++b]=t,T[++b]=e,T[++b]=h,T[++b]=l,T[++b]=v,w[++b]=d,T[++b]=i,T[++b]=n,T[++b]=h,T[++b]=c,T[++b]=v,w[++b]=p,T[++b]=s,T[++b]=r,T[++b]=u,T[++b]=c,T[++b]=v,w[++b]=g,T[++b]=t,T[++b]=e,T[++b]=h,T[++b]=l,T[++b]=v,w[++b]=d,T[++b]=s,T[++b]=r,T[++b]=u,T[++b]=c,T[++b]=v,w[++b]=g,T[++b]=o,T[++b]=a,T[++b]=u,T[++b]=l,T[++b]=v,w[++b]=f,this.vertexCount+=6,x},batchTri:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g){var v=!1;this.vertexCount+3>this.vertexCapacity&&(this.flush(),this.setTexture2D(p,g),v=!0);var m=this.vertexViewF32,y=this.vertexViewU32,x=this.vertexCount*this.vertexComponentCount-1;return m[++x]=t,m[++x]=e,m[++x]=o,m[++x]=a,m[++x]=f,y[++x]=u,m[++x]=i,m[++x]=n,m[++x]=o,m[++x]=l,m[++x]=f,y[++x]=c,m[++x]=s,m[++x]=r,m[++x]=h,m[++x]=l,m[++x]=f,y[++x]=d,this.vertexCount+=3,v},batchTexture:function(t,e,i,n,s,r,o,a,h,l,u,c,d,f,p,g,v,m,y,x,T,w,b,E,S,_,A,C,M,P,O){this.renderer.setPipeline(this,t);var R=this._tempMatrix1,L=this._tempMatrix2,D=this._tempMatrix3,F=m/i+A,k=y/n+C,I=(m+x)/i+A,B=(y+T)/n+C,N=o,Y=a,X=-g,z=-v;if(t.isCropped){var U=t._crop;N=U.width,Y=U.height,o=U.width,a=U.height;var W=m=U.x,G=y=U.y;c&&(W=x-U.x-U.width),d&&!e.isRenderTexture&&(G=T-U.y-U.height),F=W/i+A,k=G/n+C,I=(W+U.width)/i+A,B=(G+U.height)/n+C,X=-g+m,z=-v+y}d^=!O&&e.isRenderTexture?1:0,c&&(N*=-1,X+=o),d&&(Y*=-1,z+=a);var V=X+N,H=z+Y;L.applyITRS(s,r,u,h,l),R.copyFrom(M.matrix),P?(R.multiplyWithOffset(P,-M.scrollX*f,-M.scrollY*p),L.e=s,L.f=r,R.multiply(L,D)):(L.e-=M.scrollX*f,L.f-=M.scrollY*p,R.multiply(L,D));var j=D.getX(X,z),q=D.getY(X,z),K=D.getX(X,H),J=D.getY(X,H),Z=D.getX(V,H),Q=D.getY(V,H),$=D.getX(V,z),tt=D.getY(V,z);M.roundPixels&&(j=Math.round(j),q=Math.round(q),K=Math.round(K),J=Math.round(J),Z=Math.round(Z),Q=Math.round(Q),$=Math.round($),tt=Math.round(tt)),this.setTexture2D(e,0),this.batchQuad(j,q,K,J,Z,Q,$,tt,F,k,I,B,w,b,E,S,_,e,0)},batchTextureFrame:function(t,e,i,n,s,r,o){this.renderer.setPipeline(this);var a=this._tempMatrix1.copyFrom(r),h=this._tempMatrix2,l=e+t.width,c=i+t.height;o?a.multiply(o,h):h=a;var d=h.getX(e,i),f=h.getY(e,i),p=h.getX(e,c),g=h.getY(e,c),v=h.getX(l,c),m=h.getY(l,c),y=h.getX(l,i),x=h.getY(l,i);this.setTexture2D(t.glTexture,0),n=u.getTintAppendFloatAlpha(n,s),this.batchQuad(d,f,p,g,v,m,y,x,t.u0,t.v0,t.u1,t.v1,n,n,n,n,0,t.glTexture,0)},drawFillRect:function(t,e,i,n,s,r){var o=t+i,a=e+n;this.setTexture2D();var h=u.getTintAppendFloatAlphaAndSwap(s,r);this.batchQuad(t,e,t,a,o,a,o,e,0,0,1,1,h,h,h,h,2)},batchFillRect:function(t,e,i,n,s,r){this.renderer.setPipeline(this);var o=this._tempMatrix3;r&&r.multiply(s,o);var a=t+i,h=e+n,l=o.getX(t,e),u=o.getY(t,e),c=o.getX(t,h),d=o.getY(t,h),f=o.getX(a,h),p=o.getY(a,h),g=o.getX(a,e),v=o.getY(a,e),m=this.currentFrame,y=m.u0,x=m.v0,T=m.u1,w=m.v1;this.batchQuad(l,u,c,d,f,p,g,v,y,x,T,w,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.fillTint.BR,this.tintEffect)},batchFillTriangle:function(t,e,i,n,s,r,o,a){this.renderer.setPipeline(this);var h=this._tempMatrix3;a&&a.multiply(o,h);var l=h.getX(t,e),u=h.getY(t,e),c=h.getX(i,n),d=h.getY(i,n),f=h.getX(s,r),p=h.getY(s,r),g=this.currentFrame,v=g.u0,m=g.v0,y=g.u1,x=g.v1;this.batchTri(l,u,c,d,f,p,v,m,y,x,this.fillTint.TL,this.fillTint.TR,this.fillTint.BL,this.tintEffect)},batchStrokeTriangle:function(t,e,i,n,s,r,o,a,h){var l=this.tempTriangle;l[0].x=t,l[0].y=e,l[0].width=o,l[1].x=i,l[1].y=n,l[1].width=o,l[2].x=s,l[2].y=r,l[2].width=o,l[3].x=t,l[3].y=e,l[3].width=o,this.batchStrokePath(l,o,!1,a,h)},batchFillPath:function(t,e,i){this.renderer.setPipeline(this);var n=this._tempMatrix3;i&&i.multiply(e,n);for(var r,o,a=t.length,h=this.polygonCache,l=this.fillTint.TL,u=this.fillTint.TR,c=this.fillTint.BL,d=this.tintEffect,f=0;f0&&H[4]?this.batchQuad(D,F,P,O,H[0],H[1],H[2],H[3],U,W,G,V,B,N,Y,X,I):(j[0]=D,j[1]=F,j[2]=P,j[3]=O,j[4]=1),h&&j[4]?this.batchQuad(C,M,R,L,j[0],j[1],j[2],j[3],U,W,G,V,B,N,Y,X,I):(H[0]=C,H[1]=M,H[2]=R,H[3]=L,H[4]=1)}}});t.exports=d},function(t,e){var i={modelMatrixDirty:!1,viewMatrixDirty:!1,projectionMatrixDirty:!1,modelMatrix:null,viewMatrix:null,projectionMatrix:null,mvpInit:function(){return this.modelMatrixDirty=!0,this.viewMatrixDirty=!0,this.projectionMatrixDirty=!0,this.modelMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},mvpUpdate:function(){var t=this.program;return this.modelMatrixDirty&&(this.renderer.setMatrix4(t,"uModelMatrix",!1,this.modelMatrix),this.modelMatrixDirty=!1),this.viewMatrixDirty&&(this.renderer.setMatrix4(t,"uViewMatrix",!1,this.viewMatrix),this.viewMatrixDirty=!1),this.projectionMatrixDirty&&(this.renderer.setMatrix4(t,"uProjectionMatrix",!1,this.projectionMatrix),this.projectionMatrixDirty=!1),this},modelIdentity:function(){var t=this.modelMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.modelMatrixDirty=!0,this},modelScale:function(t,e,i){var n=this.modelMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.modelMatrixDirty=!0,this},modelTranslate:function(t,e,i){var n=this.modelMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.modelMatrixDirty=!0,this},modelRotateX:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.modelMatrixDirty=!0,this},modelRotateY:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.modelMatrixDirty=!0,this},modelRotateZ:function(t){var e=this.modelMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.modelMatrixDirty=!0,this},viewIdentity:function(){var t=this.viewMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.viewMatrixDirty=!0,this},viewScale:function(t,e,i){var n=this.viewMatrix;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this.viewMatrixDirty=!0,this},viewTranslate:function(t,e,i){var n=this.viewMatrix;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this.viewMatrixDirty=!0,this},viewRotateX:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this.viewMatrixDirty=!0,this},viewRotateY:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this.viewMatrixDirty=!0,this},viewRotateZ:function(t){var e=this.viewMatrix,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this.viewMatrixDirty=!0,this},viewLoad2D:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=0,e[4]=t[2],e[5]=t[3],e[6]=0,e[7]=0,e[8]=t[4],e[9]=t[5],e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this.viewMatrixDirty=!0,this},viewLoad:function(t){var e=this.viewMatrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this.viewMatrixDirty=!0,this},projIdentity:function(){var t=this.projectionMatrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this.projectionMatrixDirty=!0,this},projOrtho:function(t,e,i,n,s,r){var o=this.projectionMatrix,a=1/(t-e),h=1/(i-n),l=1/(s-r);return o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this.projectionMatrixDirty=!0,this},projPersp:function(t,e,i,n){var s=this.projectionMatrix,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this.projectionMatrixDirty=!0,this}};t.exports=i},function(t,e,i){var n={};t.exports=n;var s=i(237);n._motionWakeThreshold=.18,n._motionSleepThreshold=.08,n._minBias=.9,n.update=function(t,e){for(var i=e*e*e,s=0;s0&&r.motion=r.sleepThreshold&&n.set(r,!0)):r.sleepCounter>0&&(r.sleepCounter-=1)}else n.set(r,!1)}},n.afterCollisions=function(t,e){for(var i=e*e*e,s=0;sn._motionWakeThreshold*i&&n.set(l,!1)}}}},n.set=function(t,e){var i=t.isSleeping;e?(t.isSleeping=!0,t.sleepCounter=t.sleepThreshold,t.positionImpulse.x=0,t.positionImpulse.y=0,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.anglePrev=t.angle,t.speed=0,t.angularSpeed=0,t.motion=0,i||s.trigger(t,"sleepStart")):(t.isSleeping=!1,t.sleepCounter=0,i&&s.trigger(t,"sleepEnd"))}},function(t,e,i){var n={};t.exports=n;var s=i(37);n.on=function(t,e,i){for(var n,s=e.split(" "),r=0;r0){i||(i={}),n=e.split(" ");for(var l=0;le.length&&(r=e.length),i?(n=e[r-1][i],(s=e[r][i])-t<=t-n?e[r]:e[r-1]):(n=e[r-1],(s=e[r])-t<=t-n?s:n)}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=n,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration}},destroy:function(){this.frame=void 0}});t.exports=n},function(t,e,i){var n=i(52),s={_blendMode:n.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=n[t]),(t|=0)>=-1&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=s},function(t,e){var i={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.scene.sys.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}};t.exports=i},function(t,e,i){var n=i(147),s=i(109);t.exports=function(t,e,i,r){void 0===r&&(r=[]),e||(e=s(t)/i);for(var o=0;o=t.right&&(h=1,a+=o-t.right,o=t.right);break;case 1:(a+=e)>=t.bottom&&(h=2,o-=a-t.bottom,a=t.bottom);break;case 2:(o-=e)<=t.left&&(h=3,a-=t.left-o,o=t.left);break;case 3:(a-=e)<=t.top&&(h=0,a=t.top)}return r}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,n=0;n-h&&(c-=h,n+=l),fd.right&&(f=u(f,f+(g-d.right),this.lerp.x)),vd.bottom&&(p=u(p,p+(v-d.bottom),this.lerp.y))):(f=u(f,g-h,this.lerp.x),p=u(p,v-l,this.lerp.y))}this.useBounds&&(f=this.clampX(f),p=this.clampY(p)),this.roundPixels&&(h=Math.round(h),l=Math.round(l)),this.scrollX=f,this.scrollY=p;var m=f+n,y=p+s;this.midPoint.set(m,y);var x=e/o,T=i/o;this.worldView.setTo(m-x/2,y-T/2,x,T),a.applyITRS(this.x+h,this.y+l,this.rotation,o,o),a.translate(-h,-l),this.shakeEffect.preRender()},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.followOffset.set(t,e),this},startFollow:function(t,e,i,n,s,r){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===n&&(n=i),void 0===s&&(s=0),void 0===r&&(r=s),this._follow=t,this.roundPixels=e,i=o(i,0,1),n=o(n,0,1),this.lerp.set(i,n),this.followOffset.set(s,r);var a=this.width/2,h=this.height/2,l=t.x-s,u=t.y-r;return this.midPoint.set(l,u),this.scrollX=l-a,this.scrollY=u-h,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.visible&&(this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.clearRenderToTexture(),this.resetFX(),n.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=f},function(t,e,i){var n=i(32);t.exports=function(t){var e=new n;t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var i=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(i){var s=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16);e.setTo(s,r,o)}return e}},function(t,e){t.exports=function(t,e,i,n){return n<<24|t<<16|e<<8|i}},function(t,e){t.exports=function(t,e,i,n){void 0===n&&(n={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var s=Math.min(t,e,i),r=Math.max(t,e,i),o=r-s,a=0,h=0===r?0:o/r,l=r;return r!==s&&(r===t?a=(e-i)/o+(e16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},function(t,e,i){var n=i(32);t.exports=function(t){return new n(t.r,t.g,t.b,t.a)}},function(t,e,i){var n=i(32);t.exports=function(t){var e=new n,i=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t.toLowerCase());if(i){var s=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10),a=void 0!==i[4]?parseFloat(i[4]):1;e.setTo(s,r,o,255*a)}return e}},function(t,e,i){t.exports={Fade:i(661),Flash:i(662),Pan:i(663),Shake:i(696),Zoom:i(697)}},function(t,e,i){t.exports={In:i(664),Out:i(665),InOut:i(666)}},function(t,e,i){t.exports={In:i(667),Out:i(668),InOut:i(669)}},function(t,e,i){t.exports={In:i(670),Out:i(671),InOut:i(672)}},function(t,e,i){t.exports={In:i(673),Out:i(674),InOut:i(675)}},function(t,e,i){t.exports={In:i(676),Out:i(677),InOut:i(678)}},function(t,e,i){t.exports={In:i(679),Out:i(680),InOut:i(681)}},function(t,e,i){t.exports=i(682)},function(t,e,i){t.exports={In:i(683),Out:i(684),InOut:i(685)}},function(t,e,i){t.exports={In:i(686),Out:i(687),InOut:i(688)}},function(t,e,i){t.exports={In:i(689),Out:i(690),InOut:i(691)}},function(t,e,i){t.exports={In:i(692),Out:i(693),InOut:i(694)}},function(t,e,i){t.exports=i(695)},function(t,e,i){var n=i(0),s=i(29),r=i(312),o=i(2),a=i(6),h=i(7),l=i(166),u=i(1),c=i(171),d=i(159),f=new n({initialize:function(t){void 0===t&&(t={});this.width=a(t,"width",1024),this.height=a(t,"height",768),this.zoom=a(t,"zoom",1),this.resolution=a(t,"resolution",1),this.parent=a(t,"parent",void 0),this.scaleMode=a(t,"scaleMode",0),this.expandParent=a(t,"expandParent",!0),this.autoRound=a(t,"autoRound",!1),this.autoCenter=a(t,"autoCenter",0),this.resizeInterval=a(t,"resizeInterval",500),this.fullscreenTarget=a(t,"fullscreenTarget",null),this.minWidth=a(t,"minWidth",0),this.maxWidth=a(t,"maxWidth",0),this.minHeight=a(t,"minHeight",0),this.maxHeight=a(t,"maxHeight",0);var e=a(t,"scale",null);e&&(this.width=a(e,"width",this.width),this.height=a(e,"height",this.height),this.zoom=a(e,"zoom",this.zoom),this.resolution=a(e,"resolution",this.resolution),this.parent=a(e,"parent",this.parent),this.scaleMode=a(e,"mode",this.scaleMode),this.expandParent=a(e,"expandParent",this.expandParent),this.autoRound=a(e,"autoRound",this.autoRound),this.autoCenter=a(e,"autoCenter",this.autoCenter),this.resizeInterval=a(e,"resizeInterval",this.resizeInterval),this.fullscreenTarget=a(e,"fullscreenTarget",this.fullscreenTarget),this.minWidth=a(e,"min.width",this.minWidth),this.maxWidth=a(e,"max.width",this.maxWidth),this.minHeight=a(e,"min.height",this.minHeight),this.maxHeight=a(e,"max.height",this.maxHeight)),this.renderType=a(t,"type",s.AUTO),this.canvas=a(t,"canvas",null),this.context=a(t,"context",null),this.canvasStyle=a(t,"canvasStyle",null),this.customEnvironment=a(t,"customEnvironment",!1),this.sceneConfig=a(t,"scene",null),this.seed=a(t,"seed",[(Date.now()*Math.random()).toString()]),l.RND=new l.RandomDataGenerator(this.seed),this.gameTitle=a(t,"title",""),this.gameURL=a(t,"url","https://phaser.io"),this.gameVersion=a(t,"version",""),this.autoFocus=a(t,"autoFocus",!0),this.domCreateContainer=a(t,"dom.createContainer",!1),this.domBehindCanvas=a(t,"dom.behindCanvas",!1),this.inputKeyboard=a(t,"input.keyboard",!0),this.inputKeyboardEventTarget=a(t,"input.keyboard.target",window),this.inputKeyboardCapture=a(t,"input.keyboard.capture",[]),this.inputMouse=a(t,"input.mouse",!0),this.inputMouseEventTarget=a(t,"input.mouse.target",null),this.inputMouseCapture=a(t,"input.mouse.capture",!0),this.inputTouch=a(t,"input.touch",r.input.touch),this.inputTouchEventTarget=a(t,"input.touch.target",null),this.inputTouchCapture=a(t,"input.touch.capture",!0),this.inputActivePointers=a(t,"input.activePointers",1),this.inputSmoothFactor=a(t,"input.smoothFactor",0),this.inputWindowEvents=a(t,"input.windowEvents",!0),this.inputGamepad=a(t,"input.gamepad",!1),this.inputGamepadEventTarget=a(t,"input.gamepad.target",window),this.disableContextMenu=a(t,"disableContextMenu",!1),this.audio=a(t,"audio"),this.hideBanner=!1===a(t,"banner",null),this.hidePhaser=a(t,"banner.hidePhaser",!1),this.bannerTextColor=a(t,"banner.text","#ffffff"),this.bannerBackgroundColor=a(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=a(t,"fps",null);var i=a(t,"render",t);this.antialias=a(i,"antialias",!0),this.antialiasGL=a(i,"antialiasGL",!0),this.mipmapFilter=a(i,"mipmapFilter","LINEAR"),this.desynchronized=a(i,"desynchronized",!1),this.roundPixels=a(i,"roundPixels",!1),this.pixelArt=a(i,"pixelArt",1!==this.zoom),this.pixelArt&&(this.antialias=!1,this.roundPixels=!0),this.transparent=a(i,"transparent",!1),this.clearBeforeRender=a(i,"clearBeforeRender",!0),this.premultipliedAlpha=a(i,"premultipliedAlpha",!0),this.failIfMajorPerformanceCaveat=a(i,"failIfMajorPerformanceCaveat",!1),this.powerPreference=a(i,"powerPreference","default"),this.batchSize=a(i,"batchSize",2e3),this.maxLights=a(i,"maxLights",10);var n=a(t,"backgroundColor",0);this.backgroundColor=d(n),0===n&&this.transparent&&(this.backgroundColor.alpha=0),this.preBoot=a(t,"callbacks.preBoot",u),this.postBoot=a(t,"callbacks.postBoot",u),this.physics=a(t,"physics",{}),this.defaultPhysicsSystem=a(this.physics,"default",!1),this.loaderBaseURL=a(t,"loader.baseURL",""),this.loaderPath=a(t,"loader.path",""),this.loaderMaxParallelDownloads=a(t,"loader.maxParallelDownloads",32),this.loaderCrossOrigin=a(t,"loader.crossOrigin",void 0),this.loaderResponseType=a(t,"loader.responseType",""),this.loaderAsync=a(t,"loader.async",!0),this.loaderUser=a(t,"loader.user",""),this.loaderPassword=a(t,"loader.password",""),this.loaderTimeout=a(t,"loader.timeout",0),this.loaderWithCredentials=a(t,"loader.withCredentials",!1),this.installGlobalPlugins=[],this.installScenePlugins=[];var f=a(t,"plugins",null),p=c.DefaultScene;f&&(Array.isArray(f)?this.defaultPlugins=f:h(f)&&(this.installGlobalPlugins=o(f,"global",[]),this.installScenePlugins=o(f,"scene",[]),Array.isArray(f.default)?p=f.default:Array.isArray(f.defaultMerge)&&(p=p.concat(f.defaultMerge)))),this.defaultPlugins=p;var g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=a(t,"images.default",g+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=a(t,"images.missing",g+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),window&&(window.FORCE_WEBGL?this.renderType=s.WEBGL:window.FORCE_CANVAS&&(this.renderType=s.CANVAS))}});t.exports=f},function(t,e,i){t.exports={os:i(113),browser:i(114),features:i(165),input:i(726),audio:i(727),video:i(728),fullscreen:i(729),canvasFeatures:i(313)}},function(t,e,i){var n,s,r,o=i(26),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=(void 0!==document&&(a.supportNewBlendModes=(n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",s="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(r=new Image).onload=function(){var t=new Image;t.onload=function(){var e=o.create(t,6,1).getContext("2d");if(e.globalCompositeOperation="multiply",e.drawImage(r,0,0),e.drawImage(t,2,0),!e.getImageData(2,0,1,1))return!1;var i=e.getImageData(2,0,1,1).data;o.remove(t),a.supportNewBlendModes=255===i[0]&&0===i[1]&&0===i[2]},t.src=n+"/wCKxvRF"+s},r.src=n+"AP804Oa6"+s,!1),a.supportInverseAlpha=function(){var t=o.create(this,2,1).getContext("2d");t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1);var e=t.getImageData(0,0,1,1);if(null===e)return!1;t.putImageData(e,1,0);var i=t.getImageData(1,0,1,1);return i.data[0]===e.data[0]&&i.data[1]===e.data[1]&&i.data[2]===e.data[2]&&i.data[3]===e.data[3]}()),a)},function(t,e){t.exports=function(t,e,i,n){return Math.atan2(n-e,i-t)}},function(t,e){t.exports=function(t){return(t%=2*Math.PI)>=0?t:t+2*Math.PI}},function(t,e){t.exports=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)}},function(t,e){t.exports=function(t,e,i,n){var s=t-i,r=e-n;return s*s+r*r}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t>e-i}},function(t,e){t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t0?Math.ceil(t):Math.floor(t)}},function(t,e,i){var n=i(3);t.exports=function(t,e,i,s,r,o,a,h){void 0===h&&(h=new n);var l=Math.sin(r),u=Math.cos(r),c=u*o,d=l*o,f=-l*a,p=u*a,g=1/(c*p+f*-d);return h.x=p*g*t+-f*g*e+(s*f-i*p)*g,h.y=c*g*e+-d*g*t+(-s*c+i*d)*g,h}},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},clone:function(){return new n(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return Math.sqrt(e*e+i*i+n*n+s*s)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,s=t.w-this.w||0;return e*e+i*i+n*n+s*s},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.val;return this.x=r[0]*e+r[4]*i+r[8]*n+r[12]*s,this.y=r[1]*e+r[5]*i+r[9]*n+r[13]*s,this.z=r[2]*e+r[6]*i+r[10]*n+r[14]*s,this.w=r[3]*e+r[7]*i+r[11]*n+r[15]*s,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,r=t.y,o=t.z,a=t.w,h=a*e+r*n-o*i,l=a*i+o*e-s*n,u=a*n+s*i-r*e,c=-s*e-r*i-o*n;return this.x=h*a+c*-s+l*-o-u*-r,this.y=l*a+c*-r+u*-s-h*-o,this.z=u*a+c*-o+h*-r-l*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});n.prototype.sub=n.prototype.subtract,n.prototype.mul=n.prototype.multiply,n.prototype.div=n.prototype.divide,n.prototype.dist=n.prototype.distance,n.prototype.distSq=n.prototype.distanceSq,n.prototype.len=n.prototype.length,n.prototype.lenSq=n.prototype.lengthSq,t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this},fromMat4:function(t){var e=t.val,i=this.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=n,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*r-o*h,c=-l*s+o*a,d=h*s-r*a,f=e*u+i*c+n*d;return f?(f=1/f,t[0]=u*f,t[1]=(-l*i+n*h)*f,t[2]=(o*i-n*r)*f,t[3]=c*f,t[4]=(l*e-n*a)*f,t[5]=(-o*e+n*s)*f,t[6]=d*f,t[7]=(-h*e+i*a)*f,t[8]=(r*e-i*s)*f,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=r*l-o*h,t[1]=n*h-i*l,t[2]=i*o-n*r,t[3]=o*a-s*l,t[4]=e*l-n*a,t[5]=n*s-e*o,t[6]=s*h-r*a,t[7]=i*a-e*h,t[8]=e*r-i*s,this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return e*(l*r-o*h)+i*(-l*s+o*a)+n*(h*s-r*a)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=t.val,d=c[0],f=c[1],p=c[2],g=c[3],v=c[4],m=c[5],y=c[6],x=c[7],T=c[8];return e[0]=d*i+f*r+p*h,e[1]=d*n+f*o+p*l,e[2]=d*s+f*a+p*u,e[3]=g*i+v*r+m*h,e[4]=g*n+v*o+m*l,e[5]=g*s+v*a+m*u,e[6]=y*i+x*r+T*h,e[7]=y*n+x*o+T*l,e[8]=y*s+x*a+T*u,this},translate:function(t){var e=this.val,i=t.x,n=t.y;return e[6]=i*e[0]+n*e[3]+e[6],e[7]=i*e[1]+n*e[4]+e[7],e[8]=i*e[2]+n*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=Math.sin(t),l=Math.cos(t);return e[0]=l*i+h*r,e[1]=l*n+h*o,e[2]=l*s+h*a,e[3]=l*r-h*i,e[4]=l*o-h*n,e[5]=l*a-h*s,this},scale:function(t){var e=this.val,i=t.x,n=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=n*e[3],e[4]=n*e[4],e[5]=n*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,n=t.z,s=t.w,r=e+e,o=i+i,a=n+n,h=e*r,l=e*o,u=e*a,c=i*o,d=i*a,f=n*a,p=s*r,g=s*o,v=s*a,m=this.val;return m[0]=1-(c+f),m[3]=l+v,m[6]=u-g,m[1]=l-v,m[4]=1-(h+f),m[7]=d+p,m[2]=u+g,m[5]=d-p,m[8]=1-(h+c),this},normalFromMat4:function(t){var e=t.val,i=this.val,n=e[0],s=e[1],r=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=e[9],f=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],x=n*h-s*a,T=n*l-r*a,w=n*u-o*a,b=s*l-r*h,E=s*u-o*h,S=r*u-o*l,_=c*v-d*g,A=c*m-f*g,C=c*y-p*g,M=d*m-f*v,P=d*y-p*v,O=f*y-p*m,R=x*O-T*P+w*M+b*C-E*A+S*_;return R?(R=1/R,i[0]=(h*O-l*P+u*M)*R,i[1]=(l*C-a*O-u*A)*R,i[2]=(a*P-h*C+u*_)*R,i[3]=(r*P-s*O-o*M)*R,i[4]=(n*O-r*C+o*A)*R,i[5]=(s*C-n*P-o*_)*R,i[6]=(v*S-m*E+y*b)*R,i[7]=(m*w-g*S-y*T)*R,i[8]=(g*E-v*w+y*x)*R,this):null}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},zero:function(){var t=this.val;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,this},xyz:function(t,e,i){this.identity();var n=this.val;return n[12]=t,n[13]=e,n[14]=i,this},scaling:function(t,e,i){this.zero();var n=this.val;return n[0]=t,n[5]=e,n[10]=i,n[15]=1,this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[3],s=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=s,t[11]=t[14],t[12]=n,t[13]=r,t[14]=o,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15],m=e*o-i*r,y=e*a-n*r,x=e*h-s*r,T=i*a-n*o,w=i*h-s*o,b=n*h-s*a,E=l*p-u*f,S=l*g-c*f,_=l*v-d*f,A=u*g-c*p,C=u*v-d*p,M=c*v-d*g,P=m*M-y*C+x*A+T*_-w*S+b*E;return P?(P=1/P,t[0]=(o*M-a*C+h*A)*P,t[1]=(n*C-i*M-s*A)*P,t[2]=(p*b-g*w+v*T)*P,t[3]=(c*w-u*b-d*T)*P,t[4]=(a*_-r*M-h*S)*P,t[5]=(e*M-n*_+s*S)*P,t[6]=(g*x-f*b-v*y)*P,t[7]=(l*b-c*x+d*y)*P,t[8]=(r*C-o*_+h*E)*P,t[9]=(i*_-e*C-s*E)*P,t[10]=(f*w-p*x+v*m)*P,t[11]=(u*x-l*w-d*m)*P,t[12]=(o*S-r*A-a*E)*P,t[13]=(e*A-i*S+n*E)*P,t[14]=(p*y-f*T-g*m)*P,t[15]=(l*T-u*y+c*m)*P,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return t[0]=o*(c*v-d*g)-u*(a*v-h*g)+p*(a*d-h*c),t[1]=-(i*(c*v-d*g)-u*(n*v-s*g)+p*(n*d-s*c)),t[2]=i*(a*v-h*g)-o*(n*v-s*g)+p*(n*h-s*a),t[3]=-(i*(a*d-h*c)-o*(n*d-s*c)+u*(n*h-s*a)),t[4]=-(r*(c*v-d*g)-l*(a*v-h*g)+f*(a*d-h*c)),t[5]=e*(c*v-d*g)-l*(n*v-s*g)+f*(n*d-s*c),t[6]=-(e*(a*v-h*g)-r*(n*v-s*g)+f*(n*h-s*a)),t[7]=e*(a*d-h*c)-r*(n*d-s*c)+l*(n*h-s*a),t[8]=r*(u*v-d*p)-l*(o*v-h*p)+f*(o*d-h*u),t[9]=-(e*(u*v-d*p)-l*(i*v-s*p)+f*(i*d-s*u)),t[10]=e*(o*v-h*p)-r*(i*v-s*p)+f*(i*h-s*o),t[11]=-(e*(o*d-h*u)-r*(i*d-s*u)+l*(i*h-s*o)),t[12]=-(r*(u*g-c*p)-l*(o*g-a*p)+f*(o*c-a*u)),t[13]=e*(u*g-c*p)-l*(i*g-n*p)+f*(i*c-n*u),t[14]=-(e*(o*g-a*p)-r*(i*g-n*p)+f*(i*a-n*o)),t[15]=e*(o*c-a*u)-r*(i*c-n*u)+l*(i*a-n*o),this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return(e*o-i*r)*(c*v-d*g)-(e*a-n*r)*(u*v-d*p)+(e*h-s*r)*(u*g-c*p)+(i*a-n*o)*(l*v-d*f)-(i*h-s*o)*(l*g-c*f)+(n*h-s*a)*(l*p-u*f)},multiply:function(t){var e=this.val,i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=t.val,x=y[0],T=y[1],w=y[2],b=y[3];return e[0]=x*i+T*o+w*u+b*p,e[1]=x*n+T*a+w*c+b*g,e[2]=x*s+T*h+w*d+b*v,e[3]=x*r+T*l+w*f+b*m,x=y[4],T=y[5],w=y[6],b=y[7],e[4]=x*i+T*o+w*u+b*p,e[5]=x*n+T*a+w*c+b*g,e[6]=x*s+T*h+w*d+b*v,e[7]=x*r+T*l+w*f+b*m,x=y[8],T=y[9],w=y[10],b=y[11],e[8]=x*i+T*o+w*u+b*p,e[9]=x*n+T*a+w*c+b*g,e[10]=x*s+T*h+w*d+b*v,e[11]=x*r+T*l+w*f+b*m,x=y[12],T=y[13],w=y[14],b=y[15],e[12]=x*i+T*o+w*u+b*p,e[13]=x*n+T*a+w*c+b*g,e[14]=x*s+T*h+w*d+b*v,e[15]=x*r+T*l+w*f+b*m,this},multiplyLocal:function(t){var e=[],i=this.val,n=t.val;return e[0]=i[0]*n[0]+i[1]*n[4]+i[2]*n[8]+i[3]*n[12],e[1]=i[0]*n[1]+i[1]*n[5]+i[2]*n[9]+i[3]*n[13],e[2]=i[0]*n[2]+i[1]*n[6]+i[2]*n[10]+i[3]*n[14],e[3]=i[0]*n[3]+i[1]*n[7]+i[2]*n[11]+i[3]*n[15],e[4]=i[4]*n[0]+i[5]*n[4]+i[6]*n[8]+i[7]*n[12],e[5]=i[4]*n[1]+i[5]*n[5]+i[6]*n[9]+i[7]*n[13],e[6]=i[4]*n[2]+i[5]*n[6]+i[6]*n[10]+i[7]*n[14],e[7]=i[4]*n[3]+i[5]*n[7]+i[6]*n[11]+i[7]*n[15],e[8]=i[8]*n[0]+i[9]*n[4]+i[10]*n[8]+i[11]*n[12],e[9]=i[8]*n[1]+i[9]*n[5]+i[10]*n[9]+i[11]*n[13],e[10]=i[8]*n[2]+i[9]*n[6]+i[10]*n[10]+i[11]*n[14],e[11]=i[8]*n[3]+i[9]*n[7]+i[10]*n[11]+i[11]*n[15],e[12]=i[12]*n[0]+i[13]*n[4]+i[14]*n[8]+i[15]*n[12],e[13]=i[12]*n[1]+i[13]*n[5]+i[14]*n[9]+i[15]*n[13],e[14]=i[12]*n[2]+i[13]*n[6]+i[14]*n[10]+i[15]*n[14],e[15]=i[12]*n[3]+i[13]*n[7]+i[14]*n[11]+i[15]*n[15],this.fromArray(e)},translate:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[12]=s[0]*e+s[4]*i+s[8]*n+s[12],s[13]=s[1]*e+s[5]*i+s[9]*n+s[13],s[14]=s[2]*e+s[6]*i+s[10]*n+s[14],s[15]=s[3]*e+s[7]*i+s[11]*n+s[15],this},translateXYZ:function(t,e,i){var n=this.val;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this},scale:function(t){var e=t.x,i=t.y,n=t.z,s=this.val;return s[0]=s[0]*e,s[1]=s[1]*e,s[2]=s[2]*e,s[3]=s[3]*e,s[4]=s[4]*i,s[5]=s[5]*i,s[6]=s[6]*i,s[7]=s[7]*i,s[8]=s[8]*n,s[9]=s[9]*n,s[10]=s[10]*n,s[11]=s[11]*n,this},scaleXYZ:function(t,e,i){var n=this.val;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),n=Math.sin(e),s=1-i,r=t.x,o=t.y,a=t.z,h=s*r,l=s*o;return this.fromArray([h*r+i,h*o-n*a,h*a+n*o,0,h*o+n*a,l*o+i,l*a-n*r,0,h*a-n*o,l*a+n*r,s*a*a+i,0,0,0,0,1]),this},rotate:function(t,e){var i=this.val,n=e.x,s=e.y,r=e.z,o=Math.sqrt(n*n+s*s+r*r);if(Math.abs(o)<1e-6)return null;n*=o=1/o,s*=o,r*=o;var a=Math.sin(t),h=Math.cos(t),l=1-h,u=i[0],c=i[1],d=i[2],f=i[3],p=i[4],g=i[5],v=i[6],m=i[7],y=i[8],x=i[9],T=i[10],w=i[11],b=n*n*l+h,E=s*n*l+r*a,S=r*n*l-s*a,_=n*s*l-r*a,A=s*s*l+h,C=r*s*l+n*a,M=n*r*l+s*a,P=s*r*l-n*a,O=r*r*l+h;return i[0]=u*b+p*E+y*S,i[1]=c*b+g*E+x*S,i[2]=d*b+v*E+T*S,i[3]=f*b+m*E+w*S,i[4]=u*_+p*A+y*C,i[5]=c*_+g*A+x*C,i[6]=d*_+v*A+T*C,i[7]=f*_+m*A+w*C,i[8]=u*M+p*P+y*O,i[9]=c*M+g*P+x*O,i[10]=d*M+v*P+T*O,i[11]=f*M+m*P+w*O,this},rotateX:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[4],r=e[5],o=e[6],a=e[7],h=e[8],l=e[9],u=e[10],c=e[11];return e[4]=s*n+h*i,e[5]=r*n+l*i,e[6]=o*n+u*i,e[7]=a*n+c*i,e[8]=h*n-s*i,e[9]=l*n-r*i,e[10]=u*n-o*i,e[11]=c*n-a*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[8],l=e[9],u=e[10],c=e[11];return e[0]=s*n-h*i,e[1]=r*n-l*i,e[2]=o*n-u*i,e[3]=a*n-c*i,e[8]=s*i+h*n,e[9]=r*i+l*n,e[10]=o*i+u*n,e[11]=a*i+c*n,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),s=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5],u=e[6],c=e[7];return e[0]=s*n+h*i,e[1]=r*n+l*i,e[2]=o*n+u*i,e[3]=a*n+c*i,e[4]=h*n-s*i,e[5]=l*n-r*i,e[6]=u*n-o*i,e[7]=c*n-a*i,this},fromRotationTranslation:function(t,e){var i=this.val,n=t.x,s=t.y,r=t.z,o=t.w,a=n+n,h=s+s,l=r+r,u=n*a,c=n*h,d=n*l,f=s*h,p=s*l,g=r*l,v=o*a,m=o*h,y=o*l;return i[0]=1-(f+g),i[1]=c+y,i[2]=d-m,i[3]=0,i[4]=c-y,i[5]=1-(u+g),i[6]=p+v,i[7]=0,i[8]=d+m,i[9]=p-v,i[10]=1-(u+f),i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this},fromQuat:function(t){var e=this.val,i=t.x,n=t.y,s=t.z,r=t.w,o=i+i,a=n+n,h=s+s,l=i*o,u=i*a,c=i*h,d=n*a,f=n*h,p=s*h,g=r*o,v=r*a,m=r*h;return e[0]=1-(d+p),e[1]=u+m,e[2]=c-v,e[3]=0,e[4]=u-m,e[5]=1-(l+p),e[6]=f+g,e[7]=0,e[8]=c+v,e[9]=f-g,e[10]=1-(l+d),e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},frustum:function(t,e,i,n,s,r){var o=this.val,a=1/(e-t),h=1/(n-i),l=1/(s-r);return o[0]=2*s*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*s*h,o[6]=0,o[7]=0,o[8]=(e+t)*a,o[9]=(n+i)*h,o[10]=(r+s)*l,o[11]=-1,o[12]=0,o[13]=0,o[14]=r*s*2*l,o[15]=0,this},perspective:function(t,e,i,n){var s=this.val,r=1/Math.tan(t/2),o=1/(i-n);return s[0]=r/e,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=r,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(n+i)*o,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*n*i*o,s[15]=0,this},perspectiveLH:function(t,e,i,n){var s=this.val;return s[0]=2*i/t,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*i/e,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=-n/(i-n),s[11]=1,s[12]=0,s[13]=0,s[14]=i*n/(i-n),s[15]=0,this},ortho:function(t,e,i,n,s,r){var o=this.val,a=t-e,h=i-n,l=s-r;return a=0===a?a:1/a,h=0===h?h:1/h,l=0===l?l:1/l,o[0]=-2*a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*l,o[11]=0,o[12]=(t+e)*a,o[13]=(n+i)*h,o[14]=(r+s)*l,o[15]=1,this},lookAt:function(t,e,i){var n=this.val,s=t.x,r=t.y,o=t.z,a=i.x,h=i.y,l=i.z,u=e.x,c=e.y,d=e.z;if(Math.abs(s-u)<1e-6&&Math.abs(r-c)<1e-6&&Math.abs(o-d)<1e-6)return this.identity();var f=s-u,p=r-c,g=o-d,v=1/Math.sqrt(f*f+p*p+g*g),m=h*(g*=v)-l*(p*=v),y=l*(f*=v)-a*g,x=a*p-h*f;(v=Math.sqrt(m*m+y*y+x*x))?(m*=v=1/v,y*=v,x*=v):(m=0,y=0,x=0);var T=p*x-g*y,w=g*m-f*x,b=f*y-p*m;return(v=Math.sqrt(T*T+w*w+b*b))?(T*=v=1/v,w*=v,b*=v):(T=0,w=0,b=0),n[0]=m,n[1]=T,n[2]=f,n[3]=0,n[4]=y,n[5]=w,n[6]=p,n[7]=0,n[8]=x,n[9]=b,n[10]=g,n[11]=0,n[12]=-(m*s+y*r+x*o),n[13]=-(T*s+w*r+b*o),n[14]=-(f*s+p*r+g*o),n[15]=1,this},yawPitchRoll:function(t,e,i){this.zero(),s.zero(),r.zero();var n=this.val,o=s.val,a=r.val,h=Math.sin(i),l=Math.cos(i);return n[10]=1,n[15]=1,n[0]=l,n[1]=h,n[4]=-h,n[5]=l,h=Math.sin(e),l=Math.cos(e),o[0]=1,o[15]=1,o[5]=l,o[10]=l,o[9]=-h,o[6]=h,h=Math.sin(t),l=Math.cos(t),a[5]=1,a[15]=1,a[0]=l,a[2]=-h,a[8]=h,a[10]=l,this.multiplyLocal(s),this.multiplyLocal(r),this},setWorldMatrix:function(t,e,i,n,o){return this.yawPitchRoll(t.y,t.x,t.z),s.scaling(i.x,i.y,i.z),r.xyz(e.x,e.y,e.z),this.multiplyLocal(s),this.multiplyLocal(r),void 0!==n&&this.multiplyLocal(n),void 0!==o&&this.multiplyLocal(o),this}}),s=new n,r=new n;t.exports=n},function(t,e,i){var n=i(0),s=i(170),r=i(332),o=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),h=new s(1,0,0),l=new s(0,1,0),u=new s,c=new r,d=new n({initialize:function(t,e,i,n){"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this},set:function(t,e,i,n){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s,this.w=n*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,s=this.z,r=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=s+e*(t.z-s),this.w=r+e*(t.w-r),this},rotationTo:function(t,e){var i=t.x*e.x+t.y*e.y+t.z*e.z;return i<-.999999?(u.copy(h).cross(t).length()<1e-6&&u.copy(l).cross(t),u.normalize(),this.setAxisAngle(u,Math.PI)):i>.999999?(this.x=0,this.y=0,this.z=0,this.w=1,this):(u.copy(t).cross(e),this.x=u.x,this.y=u.y,this.z=u.z,this.w=1+i,this.normalize())},setAxes:function(t,e,i){var n=c.val;return n[0]=e.x,n[3]=e.y,n[6]=e.z,n[1]=i.x,n[4]=i.y,n[7]=i.z,n[2]=-t.x,n[5]=-t.y,n[8]=-t.z,this.fromMat3(c).normalize()},identity:function(){return this.x=0,this.y=0,this.z=0,this.w=1,this},setAxisAngle:function(t,e){e*=.5;var i=Math.sin(e);return this.x=i*t.x,this.y=i*t.y,this.z=i*t.z,this.w=Math.cos(e),this},multiply:function(t){var e=this.x,i=this.y,n=this.z,s=this.w,r=t.x,o=t.y,a=t.z,h=t.w;return this.x=e*h+s*r+i*a-n*o,this.y=i*h+s*o+n*r-e*a,this.z=n*h+s*a+e*o-i*r,this.w=s*h-e*r-i*o-n*a,this},slerp:function(t,e){var i=this.x,n=this.y,s=this.z,r=this.w,o=t.x,a=t.y,h=t.z,l=t.w,u=i*o+n*a+s*h+r*l;u<0&&(u=-u,o=-o,a=-a,h=-h,l=-l);var c=1-e,d=e;if(1-u>1e-6){var f=Math.acos(u),p=Math.sin(f);c=Math.sin((1-e)*f)/p,d=Math.sin(e*f)/p}return this.x=c*i+d*o,this.y=c*n+d*a,this.z=c*s+d*h,this.w=c*r+d*l,this},invert:function(){var t=this.x,e=this.y,i=this.z,n=this.w,s=t*t+e*e+i*i+n*n,r=s?1/s:0;return this.x=-t*r,this.y=-e*r,this.z=-i*r,this.w=n*r,this},conjugate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},rotateX:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+s*r,this.y=i*o+n*r,this.z=n*o-i*r,this.w=s*o-e*r,this},rotateY:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o-n*r,this.y=i*o+s*r,this.z=n*o+e*r,this.w=s*o-i*r,this},rotateZ:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,s=this.w,r=Math.sin(t),o=Math.cos(t);return this.x=e*o+i*r,this.y=i*o-e*r,this.z=n*o+s*r,this.w=s*o-n*r,this},calculateW:function(){var t=this.x,e=this.y,i=this.z;return this.w=-Math.sqrt(1-t*t-e*e-i*i),this},fromMat3:function(t){var e,i=t.val,n=i[0]+i[4]+i[8];if(n>0)e=Math.sqrt(n+1),this.w=.5*e,e=.5/e,this.x=(i[7]-i[5])*e,this.y=(i[2]-i[6])*e,this.z=(i[3]-i[1])*e;else{var s=0;i[4]>i[0]&&(s=1),i[8]>i[3*s+s]&&(s=2);var r=o[s],h=o[r];e=Math.sqrt(i[3*s+s]-i[3*r+r]-i[3*h+h]+1),a[s]=.5*e,e=.5/e,a[r]=(i[3*r+s]+i[3*s+r])*e,a[h]=(i[3*h+s]+i[3*s+h])*e,this.x=a[0],this.y=a[1],this.z=a[2],this.w=(i[3*h+r]-i[3*r+h])*e}return this}});t.exports=d},function(t,e,i){var n=i(336),s=i(26),r=i(29),o=i(165);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===r.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!e.customEnvironment&&!e.canvas&&e.renderType!==r.HEADLESS)if(e.renderType===r.CANVAS||e.renderType!==r.CANVAS&&!o.webGL){if(!o.canvas)throw new Error("Cannot create Canvas or WebGL context, aborting.");e.renderType=r.CANVAS}else e.renderType=r.WEBGL;e.antialias||s.disableSmoothing();var a,h,l=t.scale.baseSize,u=l.width,c=l.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=u,t.canvas.height=c):t.canvas=s.create(t,u,c,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||n.setCrisp(t.canvas),e.renderType!==r.HEADLESS&&(a=i(504),h=i(507),e.renderType===r.WEBGL?t.renderer=new h(t):(t.renderer=new a(t),t.context=t.renderer.gameContext))}},function(t,e){t.exports={setCrisp:function(t){return["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"].forEach(function(e){t.style["image-rendering"]=e}),t.style.msInterpolationMode="nearest-neighbor",t},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}}},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_FS","","precision mediump float;","","uniform sampler2D uMainSampler;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.rgb * outTint.a, outTint.a);"," vec4 color = texture;",""," if (outTintEffect == 0.0)"," {"," // Multiply texture tint"," color = texture * texel;"," }"," else if (outTintEffect == 1.0)"," {"," // Solid color + texture alpha"," color.rgb = mix(texture.rgb, outTint.rgb * outTint.a, texture.a);"," color.a = texture.a * texel.a;"," }"," else if (outTintEffect == 2.0)"," {"," // Solid color, no texture"," color = texel;"," }",""," gl_FragColor = color;","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_TEXTURE_TINT_VS","","precision mediump float;","","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform mat4 uModelMatrix;","","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTintEffect;","attribute vec4 inTint;","","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","","void main ()","{"," gl_Position = uProjectionMatrix * uViewMatrix * uModelMatrix * vec4(inPosition, 1.0, 1.0);",""," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}","",""].join("\n")},function(t,e,i){var n=i(29);t.exports=function(t){var e=t.config;if(!e.hideBanner){var i="WebGL";e.renderType===n.CANVAS?i="Canvas":e.renderType===n.HEADLESS&&(i="Headless");var s,r=e.audio,o=t.device.audio;if(s=!o.webAudio||r&&r.disableWebAudio?r&&r.noAudio||!o.webAudio&&!o.audioData?"No Audio":"HTML5 Audio":"Web Audio",t.device.browser.ie)window.console&&console.log("Phaser v"+n.VERSION+" / https://phaser.io");else{var a,h="",l=[h];Array.isArray(e.bannerBackgroundColor)?(e.bannerBackgroundColor.forEach(function(t){h=h.concat("%c "),l.push("background: "+t),a=t}),l[l.length-1]="color: "+e.bannerTextColor+"; background: "+a):(h=h.concat("%c "),l.push("color: "+e.bannerTextColor+"; background: "+e.bannerBackgroundColor)),l.push("background: #fff"),e.gameTitle&&(h=h.concat(e.gameTitle),e.gameVersion&&(h=h.concat(" v"+e.gameVersion)),e.hidePhaser||(h=h.concat(" / "))),e.hidePhaser||(h=h.concat("Phaser v"+n.VERSION+" ("+i+" | "+s+")")),h=h.concat(" %c "+e.gameURL),l[0]=h,console.log.apply(console,l)}}}},function(t,e,i){var n=i(0),s=i(6),r=i(1),o=i(341),a=new n({initialize:function(t,e){this.game=t,this.raf=new o,this.started=!1,this.running=!1,this.minFps=s(e,"min",5),this.targetFps=s(e,"target",60),this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=r,this.forceSetTimeOut=s(e,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=s(e,"deltaHistory",10),this.panicMax=s(e,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=s(e,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.startTime+=this.time-this._pauseTime},resetDelta:function(){var t=window.performance.now();this.time=t,this.lastTime=t,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0;for(var e=0;e0||!this.inFocus)&&(this._coolDown--,r=Math.min(r,this._target)),r>this._min&&(r=n[i],r=Math.min(r,this._min)),n[i]=r,this.deltaIndex++,this.deltaIndex>s&&(this.deltaIndex=0),o=0;for(var a=0;athis.nextFpsUpdate&&(this.actualFps=.25*this.framesThisSecond+.75*this.actualFps,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0),this.framesThisSecond++;var h=o/this._target;this.callback(t,o,h),this.lastTime=t,this.frame++},tick:function(){this.step()},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){this.running?this.sleep():t&&(this.startTime+=-this.lastTime+(this.lastTime+window.performance.now())),this.raf.start(this.step.bind(this),this.useRAF),this.running=!0,this.step()},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.callback=r,this.raf=null,this.game=null}});t.exports=a},function(t,e,i){var n=i(0),s=i(1),r=new n({initialize:function(){this.isRunning=!1,this.callback=s,this.tick=0,this.isSetTimeOut=!1,this.timeOutID=null,this.lastTime=0,this.target=0;var t=this;this.step=function e(){var i=window.performance.now();t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.requestAnimationFrame(e)},this.stepTimeout=function e(){var i=Date.now(),n=Math.min(Math.max(2*t.target+t.tick-i,0),t.target);t.lastTime=t.tick,t.tick=i,t.callback(i),t.timeOutID=window.setTimeout(e,n)}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.target=i,this.isRunning=!0,this.timeOutID=e?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=s}});t.exports=r},function(t,e,i){var n=i(18);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e="visibilitychange":["webkit","moz","ms"].forEach(function(t){void 0!==document[t+"Hidden"]&&(document.hidden=function(){return document[t+"Hidden"]},e=t+"visibilitychange")});e&&document.addEventListener(e,function(t){document.hidden||"pause"===t.type?i.emit(n.HIDDEN):i.emit(n.VISIBLE)},!1),window.onblur=function(){i.emit(n.BLUR)},window.onfocus=function(){i.emit(n.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},function(t,e,i){var n=i(344),s=i(26),r=i(6);t.exports=function(t){var e=r(t,"data",[]),i=r(t,"canvas",null),o=r(t,"palette",n),a=r(t,"pixelWidth",1),h=r(t,"pixelHeight",a),l=r(t,"resizeCanvas",!0),u=r(t,"clearCanvas",!0),c=r(t,"preRender",null),d=r(t,"postRender",null),f=Math.floor(Math.abs(e[0].length*a)),p=Math.floor(Math.abs(e.length*h));i||(i=s.create2D(this,f,p),l=!1,u=!1),l&&(i.width=f,i.height=p);var g=i.getContext("2d");u&&g.clearRect(0,0,f,p),c&&c(i,g);for(var v=0;vi;)n-=i;ni.length-2?i.length-1:r+1],c=i[r>i.length-3?i.length-1:r+2];return e.set(n(a,h.x,l.x,u.x,c.x),n(a,h.y,l.y,u.y,c.y))},toJSON:function(){for(var t=[],e=0;e1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}},function(t,e,i){var n=i(113);t.exports=function(t){if("complete"!==document.readyState&&"interactive"!==document.readyState){var e=function(){document.removeEventListener("deviceready",e,!0),document.removeEventListener("DOMContentLoaded",e,!0),window.removeEventListener("load",e,!0),t()};document.body?n.cordova?document.addEventListener("deviceready",e,!1):(document.addEventListener("DOMContentLoaded",e,!0),window.addEventListener("load",e,!0)):window.setTimeout(e,20)}else t()}},function(t,e,i){var n=i(173);t.exports=function(t,e){var i=window.screen,s=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);if(s&&"string"==typeof s.type)return s.type;if("string"==typeof s)return s;if(i)return i.height>i.width?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if("number"==typeof window.orientation)return 0===window.orientation||180===window.orientation?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return n.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return n.ORIENTATION.LANDSCAPE}return e>t?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE}},function(t,e){t.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},function(t,e){t.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},function(t,e){t.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5}},function(t,e){t.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},function(t,e){t.exports=function(t){var e;return""!==t&&("string"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e||(e=document.body),e}},function(t,e){t.exports=function(t){var e="";try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):(e=new ActiveXObject("Microsoft.XMLDOM")).loadXML(t)}catch(t){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null}},function(t,e,i){var n=i(0),s=i(175),r=i(10),o=i(54),a=i(18),h=i(363),l=i(364),u=i(365),c=i(366),d=i(30),f=i(330),p=new n({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new r,this.isOver=!0,this.defaultCursor="",this.keyboard=e.inputKeyboard?new h(this):null,this.mouse=e.inputMouse?new l(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers,e.inputTouch&&1===this.pointersTotal&&(this.pointersTotal=2);for(var i=0;i<=this.pointersTotal;i++){var n=new u(this,i);n.smoothFactor=e.inputSmoothFactor,this.pointers.push(n)}this.mousePointer=e.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(a.BOOT,this.boot,this)},boot:function(){this.canvas=this.game.canvas,this.scaleManager=this.game.scale,this.events.emit(o.MANAGER_BOOT),this.game.events.on(a.PRE_RENDER,this.preRender,this),this.game.events.once(a.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(o.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(o.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(o.MANAGER_UPDATE);for(var n=0;n10&&(t=10-this.pointersTotal);for(var i=0;i-1&&e.preventDefault()}},this.onKeyUp=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.useQueue||t.manager.events.emit(o.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}};var e=this.target;e&&(e.addEventListener("keydown",this.onKeyDown,!1),e.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var t=this.target;t.removeEventListener("keydown",this.onKeyDown,!1),t.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},removeCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(r.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});t.exports=l},function(t,e,i){var n=i(0),s=i(165),r=i(54),o=i(0),a=new n({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=o,this.onMouseDown=o,this.onMouseUp=o,this.onMouseDownWindow=o,this.onMouseUpWindow=o,this.onMouseOver=o,this.onMouseOut=o,this.onMouseWheel=o,this.pointerLockChange=o,t.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.capture=t.inputMouseCapture,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return document.body.addEventListener("contextmenu",function(t){return t.preventDefault(),!1}),this},requestPointerLock:function(){if(s.pointerLock){var t=this.target;t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock()}},releasePointerLock:function(){s.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this,e=this.manager.canvas,i=window&&window.focus&&this.manager.game.config.autoFocus;this.onMouseMove=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseMove(e),t.capture&&e.preventDefault())},this.onMouseDown=function(n){i&&window.focus(),!n.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseDown(n),t.capture&&n.target===e&&n.preventDefault())},this.onMouseDownWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseDown(i)},this.onMouseUp=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&(t.manager.onMouseUp(i),t.capture&&i.target===e&&i.preventDefault())},this.onMouseUpWindow=function(i){!i.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&i.target!==e&&t.manager.onMouseUp(i)},this.onMouseOver=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOver(e)},this.onMouseOut=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.setCanvasOut(e)},this.onMouseWheel=function(e){!e.defaultPrevented&&t.enabled&&t.manager&&t.manager.enabled&&t.manager.onMouseWheel(e)};var n=this.target;if(n){var r={passive:!0},o={passive:!1};n.addEventListener("mousemove",this.onMouseMove,this.capture?o:r),n.addEventListener("mousedown",this.onMouseDown,this.capture?o:r),n.addEventListener("mouseup",this.onMouseUp,this.capture?o:r),n.addEventListener("mouseover",this.onMouseOver,this.capture?o:r),n.addEventListener("mouseout",this.onMouseOut,this.capture?o:r),n.addEventListener("wheel",this.onMouseWheel,this.capture?o:r),window&&this.manager.game.config.inputWindowEvents&&(window.addEventListener("mousedown",this.onMouseDownWindow,o),window.addEventListener("mouseup",this.onMouseUpWindow,o)),s.pointerLock&&(this.pointerLockChange=function(e){var i=t.target;t.locked=document.pointerLockElement===i||document.mozPointerLockElement===i||document.webkitPointerLockElement===i,t.manager.onPointerLockChange(e)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mouseover",this.onMouseOver),t.removeEventListener("mouseout",this.onMouseOut),window&&(window.removeEventListener("mousedown",this.onMouseDownWindow),window.removeEventListener("mouseup",this.onMouseUpWindow)),s.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=a},function(t,e,i){var n=i(314),s=i(0),r=i(53),o=i(141),a=i(324),h=i(3),l=new s({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new h,this.prevPosition=new h,this.midPoint=new h(-1,-1),this.velocity=new h,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){var e=this.x,i=this.y;1!==t.resolution&&(e+=t._x,i+=t._y);var n=t.getWorldPoint(e,i);return this.worldX=n.x,this.worldY=n.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t=this.position.x,e=this.position.y,i=this.midPoint.x,s=this.midPoint.y;if(t!==i||e!==s){var r=a(this.motionFactor,i,t),h=a(this.motionFactor,s,e);o(r,t,.1)&&(r=t),o(h,e,.1)&&(h=e),this.midPoint.set(r,h);var l=t-r,u=e-h;this.velocity.set(l,u),this.angle=n(r,h,t,e),this.distance=Math.sqrt(l*l+u*u)}},up:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=t.timeStamp),this.isDown=!1,this.wasTouch=!1},down:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=t.timeStamp),this.isDown=!0,this.wasTouch=!1},move:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.button&&!this.isDown},rightButtonReleased:function(){return 2===this.button&&!this.isDown},middleButtonReleased:function(){return 1===this.button&&!this.isDown},backButtonReleased:function(){return 3===this.button&&!this.isDown},forwardButtonReleased:function(){return 4===this.button&&!this.isDown},getDistance:function(){return this.isDown?r(this.downX,this.downY,this.x,this.y):r(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,n=this.prevPosition.y,s=this.position.x,r=this.position.y,o=0;o0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),t.events.on(a.PRE_STEP,this.step,this),t.events.once(a.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(t){this.getParent(t),this.getParentBounds();var e=t.width,i=t.height,s=t.scaleMode,r=t.resolution,o=t.zoom,a=t.autoRound;if("string"==typeof e){var h=this.parentSize.width;0===h&&(h=window.innerWidth);var l=parseInt(e,10)/100;e=Math.floor(h*l)}if("string"==typeof i){var c=this.parentSize.height;0===c&&(c=window.innerHeight);var d=parseInt(i,10)/100;i=Math.floor(c*d)}this.resolution=1,this.scaleMode=s,this.autoRound=a,this.autoCenter=t.autoCenter,this.resizeInterval=t.resizeInterval,a&&(e=Math.floor(e),i=Math.floor(i)),this.gameSize.setSize(e,i),o===n.ZOOM.MAX_ZOOM&&(o=this.getMaxZoom()),this.zoom=o,1!==o&&(this._resetZoom=!0),this.baseSize.setSize(e*r,i*r),a&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),t.minWidth>0&&this.displaySize.setMin(t.minWidth*o,t.minHeight*o),t.maxWidth>0&&this.displaySize.setMax(t.maxWidth*o,t.maxHeight*o),this.displaySize.setSize(e,i),this.orientation=u(e,i)},getParent:function(t){var e=t.parent;if(null!==e){if(this.parent=l(e),this.parentIsWindow=this.parent===document.body,t.expandParent&&t.scaleMode!==n.SCALE_MODE.NONE){var i=this.parent.getBoundingClientRect();(this.parentIsWindow||0===i.height)&&(document.documentElement.style.height="100%",document.body.style.height="100%",i=this.parent.getBoundingClientRect(),this.parentIsWindow||0!==i.height||(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}t.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=l(t.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var t=this.parentSize,e=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(e.height=h(!0));var i=this.resolution,n=e.width*i,s=e.height*i;return(t.width!==n||t.height!==s)&&(t.setSize(n,s),!0)},lockOrientation:function(t){var e=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return!!e&&e(t)},setParentSize:function(t,e){return this.parentSize.setSize(t,e),this.refresh()},setGameSize:function(t,e){var i=this.autoRound,n=this.resolution;i&&(t=Math.floor(t),e=Math.floor(e));var s=this.width,r=this.height;return this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),i&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t,e),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(s,r)},resize:function(t,e){var i=this.zoom,n=this.resolution,s=this.autoRound;s&&(t=Math.floor(t),e=Math.floor(e));var r=this.width,o=this.height;this.gameSize.resize(t,e),this.baseSize.resize(t*n,e*n),s&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t*i*n,e*i*n),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var a=this.canvas.style,h=t*i,l=e*i;return s&&(h=Math.floor(h),l=Math.floor(l)),h===t&&l===e||(a.width=h+"px",a.height=l+"px"),this.refresh(r,o)},setZoom:function(t){return this.zoom=t,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},refresh:function(t,e){void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var i=this.game.domContainer;if(i){this.baseSize.setCSS(i);var n=this.canvas.style,s=i.style;s.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",s.marginLeft=n.marginLeft,s.marginTop=n.marginTop}return this.emit(o.RESIZE,this.gameSize,this.baseSize,this.displaySize,this.resolution,t,e),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var t=u(this.width,this.height);t!==this.orientation&&(this.orientation=t,this.emit(o.ORIENTATION_CHANGE,t))}},updateScale:function(){var t,e,i=this.canvas.style,s=this.gameSize.width,r=this.gameSize.height,o=this.zoom,a=this.autoRound;this.scaleMode===n.SCALE_MODE.NONE?(this.displaySize.setSize(s*o*1,r*o*1),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this._resetZoom&&(i.width=t+"px",i.height=e+"px",this._resetZoom=!1)):this.scaleMode===n.SCALE_MODE.RESIZE?(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(1*this.displaySize.width,1*this.displaySize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),this.canvas.width=t,this.canvas.height=e):(this.displaySize.setSize(this.parentSize.width,this.parentSize.height),t=this.displaySize.width/1,e=this.displaySize.height/1,a&&(t=Math.floor(t),e=Math.floor(e)),i.width=t+"px",i.height=e+"px"),this.getParentBounds(),this.updateCenter()},getMaxZoom:function(){var t=p(this.parentSize.width,this.gameSize.width,0,!0),e=p(this.parentSize.height,this.gameSize.height,0,!0);return Math.max(Math.min(t,e),1)},updateCenter:function(){var t=this.autoCenter;if(t!==n.CENTER.NO_CENTER){var e=this.canvas,i=e.style,s=e.getBoundingClientRect(),r=s.width,o=s.height,a=Math.floor((this.parentSize.width-r)/2),h=Math.floor((this.parentSize.height-o)/2);t===n.CENTER.CENTER_HORIZONTALLY?h=0:t===n.CENTER.CENTER_VERTICALLY&&(a=0),i.marginLeft=a+"px",i.marginTop=h+"px"}},updateBounds:function(){var t=this.canvasBounds,e=this.canvas.getBoundingClientRect();t.x=e.left+(window.pageXOffset||0)-(document.documentElement.clientLeft||0),t.y=e.top+(window.pageYOffset||0)-(document.documentElement.clientTop||0),t.width=e.width,t.height=e.height},transformX:function(t){return(t-this.canvasBounds.left)*this.displayScale.x},transformY:function(t){return(t-this.canvasBounds.top)*this.displayScale.y},startFullscreen:function(t){void 0===t&&(t={navigationUI:"hide"});var e=this.fullscreen;if(e.available){if(!e.active){var i,n=this.getFullscreenTarget();(i=e.keyboard?n[e.request](Element.ALLOW_KEYBOARD_INPUT):n[e.request](t))?i.then(this.fullscreenSuccessHandler.bind(this)).catch(this.fullscreenErrorHandler.bind(this)):e.active?this.fullscreenSuccessHandler():this.fullscreenErrorHandler()}}else this.emit(o.FULLSCREEN_UNSUPPORTED)},fullscreenSuccessHandler:function(){this.getParentBounds(),this.refresh(),this.emit(o.ENTER_FULLSCREEN)},fullscreenErrorHandler:function(t){this.removeFullscreenTarget(),this.emit(o.FULLSCREEN_FAILED,t)},getFullscreenTarget:function(){if(!this.fullscreenTarget){var t=document.createElement("div");t.style.margin="0",t.style.padding="0",t.style.width="100%",t.style.height="100%",this.fullscreenTarget=t,this._createdFullscreenTarget=!0}this._createdFullscreenTarget&&(this.canvas.parentNode.insertBefore(this.fullscreenTarget,this.canvas),this.fullscreenTarget.appendChild(this.canvas));return this.fullscreenTarget},removeFullscreenTarget:function(){if(this._createdFullscreenTarget){var t=this.fullscreenTarget;if(t&&t.parentNode){var e=t.parentNode;e.insertBefore(this.canvas,t),e.removeChild(t)}}},stopFullscreen:function(){var t=this.fullscreen;if(!t.available)return this.emit(o.FULLSCREEN_UNSUPPORTED),!1;t.active&&document[t.cancel](),this.removeFullscreenTarget(),this.getParentBounds(),this.emit(o.LEAVE_FULLSCREEN),this.refresh()},toggleFullscreen:function(t){this.fullscreen.active?this.stopFullscreen():this.startFullscreen(t)},startListeners:function(){var t=this,e=this.listeners;if(e.orientationChange=function(){t._checkOrientation=!0,t.dirty=!0},e.windowResize=function(){t.dirty=!0},window.addEventListener("orientationchange",e.orientationChange,!1),window.addEventListener("resize",e.windowResize,!1),this.fullscreen.available){e.fullScreenChange=function(e){return t.onFullScreenChange(e)},e.fullScreenError=function(e){return t.onFullScreenError(e)};["webkit","moz",""].forEach(function(t){document.addEventListener(t+"fullscreenchange",e.fullScreenChange,!1),document.addEventListener(t+"fullscreenerror",e.fullScreenError,!1)}),document.addEventListener("MSFullscreenChange",e.fullScreenChange,!1),document.addEventListener("MSFullscreenError",e.fullScreenError,!1)}},onFullScreenChange:function(){document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||this.stopFullscreen()},onFullScreenError:function(){this.removeFullscreenTarget()},step:function(t,e){this.parent&&(this._lastCheck+=e,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var t=this.listeners;window.removeEventListener("orientationchange",t.orientationChange,!1),window.removeEventListener("resize",t.windowResize,!1);["webkit","moz",""].forEach(function(e){document.removeEventListener(e+"fullscreenchange",t.fullScreenChange,!1),document.removeEventListener(e+"fullscreenerror",t.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",t.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",t.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===n.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===n.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=v},function(t,e,i){var n=i(22),s=i(0),r=i(92),o=i(3),a=new s({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===n&&(n=null),this._width=t,this._height=e,this._parent=n,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(t){return void 0===t&&(t=0),this.aspectMode=t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=n(t,0,this.maxWidth),this.minHeight=n(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=n(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=n(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case a.NONE:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(r(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(t,e,!0);break;case a.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minWidth,this.maxWidth),e&&this._parent&&t>this._parent.width&&(t=Math.max(this.minWidth,this._parent.width)),t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minHeight,this.maxHeight),e&&this._parent&&t>this._parent.height&&(t=Math.max(this.minHeight,this._parent.height)),t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var n=this.snapTo,s=0===e?1:t/e;return i&&this.aspectRatio>s||!i&&this.aspectRatio0&&(t=(e=r(e,n.y))*this.aspectRatio)):(i&&this.aspectRatios)&&(t=(e=r(e,n.y))*this.aspectRatio,n.x>0&&(e=(t=r(t,n.x))*(1/this.aspectRatio))),this._width=t,this._height=e,this},fitTo:function(t,e){return this.constrain(t,e,!0)},envelop:function(t,e){return this.constrain(t,e,!1)},setWidth:function(t){return this.setSize(t,this._height)},setHeight:function(t){return this.setSize(this._width,t)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(t){t&&t.style&&(t.style.width=this._width+"px",t.style.height=this._height+"px")},copy:function(t){return t.setAspectMode(this.aspectMode),t.aspectRatio=this.aspectRatio,t.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(t){this.setSize(t,this._height)}},height:{get:function(){return this._height},set:function(t){this.setSize(this._width,t)}}});a.NONE=0,a.WIDTH_CONTROLS_HEIGHT=1,a.HEIGHT_CONTROLS_WIDTH=2,a.FIT=3,a.ENVELOP=4,t.exports=a},function(t,e,i){var n=i(0),s=i(120),r=i(21),o=i(18),a=i(6),h=i(81),l=i(1),u=i(371),c=i(176),d=new n({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,e){Array.isArray(e)||(e=[e]);for(var i=0;i-1&&(delete this.keys[n],this.scenes.splice(i,1),this._start.indexOf(n)>-1&&(i=this._start.indexOf(n),this._start.splice(i,1)),e.sys.destroy())}return this},bootScene:function(t){var e,i=t.sys,n=i.settings;t.init&&(t.init.call(t,n.data),n.status=s.INIT,n.isTransition&&i.events.emit(r.TRANSITION_INIT,n.transitionFrom,n.transitionDuration)),i.load&&(e=i.load).reset(),e&&t.preload?(t.preload.call(t),0===e.list.size?this.create(t):(n.status=s.LOADING,e.once(h.COMPLETE,this.loadComplete,this),e.start())):this.create(t)},loadComplete:function(t){var e=t.scene;this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(e)},payloadComplete:function(t){this.bootScene(t.scene)},update:function(t,e){this.processQueue(),this.isProcessing=!0;for(var i=this.scenes.length-1;i>=0;i--){var n=this.scenes[i].sys;n.settings.status>s.START&&n.settings.status<=s.RUNNING&&n.step(t,e)}},render:function(t){for(var e=0;e=s.LOADING&&i.settings.status0){var i=this.getScene(t);this.scenes.splice(e,1),this.scenes.unshift(i)}}return this},moveDown:function(t){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e>0){var i=e-1,n=this.getScene(t),s=this.getAt(i);this.scenes[e]=s,this.scenes[i]=n}}return this},moveUp:function(t){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e=r.x&&t=r.y&&e=r.x&&t=r.y&&e-1){var o=this.context.getImageData(t,e,1,1);o.data[0]=i,o.data[1]=n,o.data[2]=s,o.data[3]=r,this.context.putImageData(o,t,e)}return this},putData:function(t,e,i,n,s,r,o){return void 0===n&&(n=0),void 0===s&&(s=0),void 0===r&&(r=t.width),void 0===o&&(o=t.height),this.context.putImageData(t,e,i,n,s,r,o),this},getData:function(t,e,i,n){return t=s(Math.floor(t),0,this.width-1),e=s(Math.floor(e),0,this.height-1),i=s(i,1,this.width-t),n=s(n,1,this.height-e),this.context.getImageData(t,e,i,n)},getPixel:function(t,e,i){i||(i=new r);var n=this.getIndex(t,e);if(n>-1){var s=this.data,o=s[n+0],a=s[n+1],h=s[n+2],l=s[n+3];i.setTo(o,a,h,l)}return i},getPixels:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=i),t=Math.abs(Math.round(t)),e=Math.abs(Math.round(e));for(var o=s(t,0,this.width),a=s(t+i,0,this.width),h=s(e,0,this.height),l=s(e+n,0,this.height),u=new r,c=[],d=h;d0)&&(!!n.prototype.pause.call(this)&&(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(r.PAUSE,this),!0)))},resume:function(){return!this.manager.isLocked(this,"resume")&&(!(this.startTime>0)&&(!!n.prototype.resume.call(this)&&(!!this.pickAndPlayAudioTag()&&(this.emit(r.RESUME,this),!0))))},stop:function(){return!this.manager.isLocked(this,"stop")&&(!!n.prototype.stop.call(this)&&(this.stopAndReleaseAudioTag(),this.emit(r.STOP,this),!0))},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var t=this.currentConfig.seek,e=this.currentConfig.delay,i=(this.currentMarker?this.currentMarker.start:0)+t;return this.previousTime=i,this.audio.currentTime=i,this.applyConfig(),0===e?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+1e3*e,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var t=0;t0)this.startTime=n-this.manager.loopEndOffset?(this.audio.currentTime=i+Math.max(0,s-n),s=this.audio.currentTime):s=n)return this.reset(),this.stopAndReleaseAudioTag(),void this.emit(r.COMPLETE,this);this.previousTime=s}},destroy:function(){n.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=this.currentConfig.volume*this.manager.volume)},calculateRate:function(){n.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(t){this.currentConfig.mute=t,this.manager.isLocked(this,"mute",t)||(this.updateMute(),this.emit(r.MUTE,this,t))}},setMute:function(t){return this.mute=t,this},volume:{get:function(){return this.currentConfig.volume},set:function(t){this.currentConfig.volume=t,this.manager.isLocked(this,"volume",t)||(this.updateVolume(),this.emit(r.VOLUME,this,t))}},setVolume:function(t){return this.volume=t,this},rate:{get:function(){return this.currentConfig.rate},set:function(t){this.currentConfig.rate=t,this.manager.isLocked(this,r.RATE,t)||(this.calculateRate(),this.emit(r.RATE,this,t))}},setRate:function(t){return this.rate=t,this},detune:{get:function(){return this.currentConfig.detune},set:function(t){this.currentConfig.detune=t,this.manager.isLocked(this,r.DETUNE,t)||(this.calculateRate(),this.emit(r.DETUNE,this,t))}},setDetune:function(t){return this.detune=t,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(t){this.manager.isLocked(this,"seek",t)||this.startTime>0||(this.isPlaying||this.isPaused)&&(t=Math.min(Math.max(0,t),this.duration),this.isPlaying?(this.previousTime=t,this.audio.currentTime=t):this.isPaused&&(this.currentConfig.seek=t),this.emit(r.SEEK,this,t))}},setSeek:function(t){return this.seek=t,this},loop:{get:function(){return this.currentConfig.loop},set:function(t){this.currentConfig.loop=t,this.manager.isLocked(this,"loop",t)||(this.audio&&(this.audio.loop=t),this.emit(r.LOOP,this,t))}},setLoop:function(t){return this.loop=t,this}});t.exports=o},function(t,e,i){var n=i(122),s=i(0),r=i(10),o=i(381),a=i(1),h=new s({Extends:r,initialize:function(t){r.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){var i=new o(this,t,e);return this.sounds.push(i),i},addAudioSprite:function(t,e){var i=this.add(t,e);return i.spritemap={},i},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return n.prototype.remove.call(this,t)},removeByKey:function(t){return n.prototype.removeByKey.call(this,t)},pauseAll:a,resumeAll:a,stopAll:a,update:a,setRate:a,setDetune:a,setMute:a,setVolume:a,forEachActiveSound:function(t,e){n.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){n.prototype.destroy.call(this)}});t.exports=h},function(t,e,i){var n=i(123),s=i(0),r=i(10),o=i(17),a=new s({Extends:r,initialize:function(t,e,i){void 0===i&&(i={}),r.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=o({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0},i),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!1},updateMarker:function(t){return!1},removeMarker:function(t){return null},play:function(t,e){return!1},pause:function(){return!1},resume:function(){return!1},stop:function(){return!1},destroy:function(){this.manager.remove(this),n.prototype.destroy.call(this)}});t.exports=a},function(t,e,i){var n=i(383),s=i(122),r=i(0),o=i(59),a=i(384),h=new r({Extends:s,initialize:function(t){this.context=this.createAudioContext(t),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked="suspended"===this.context.state&&("ontouchstart"in window||"onclick"in window),s.call(this,t),this.locked&&this.unlock()},createAudioContext:function(t){var e=t.config.audio;return e&&e.context?(e.context.resume(),e.context):new AudioContext},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){var i=new a(this,t,e);return this.sounds.push(i),i},decodeAudio:function(t,e){var i;i=Array.isArray(t)?t:[{key:t,data:e}];for(var s=this.game.cache.audio,r=i.length,a=0;a>4,u[h++]=(15&i)<<4|s>>2,u[h++]=(3&s)<<6|63&r;return l}},function(t,e,i){var n=i(123),s=i(0),r=i(59),o=new s({Extends:n,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('There is no audio asset with key "'+e+'" in the audio cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.context.createGain(),this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),this.volumeNode.connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,n.call(this,t,e,i)},play:function(t,e){return!!n.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(r.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime-1;r--)n[s][r]=t[r][s]}return n}},function(t,e){function i(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function n(t,e){return te?1:0}var s=function(t,e,r,o,a){for(void 0===r&&(r=0),void 0===o&&(o=t.length-1),void 0===a&&(a=n);o>r;){if(o-r>600){var h=o-r+1,l=e-r+1,u=Math.log(h),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(h-c)/h)*(l-h/2<0?-1:1),f=Math.max(r,Math.floor(e-l*c/h+d)),p=Math.min(o,Math.floor(e+(h-l)*c/h+d));s(t,e,f,p,a)}var g=t[e],v=r,m=o;for(i(t,r,e),a(t[o],g)>0&&i(t,r,o);v0;)m--}0===a(t[r],g)?i(t,r,m):i(t,++m,o),m<=e&&(r=m+1),e<=m&&(o=m-1)}};t.exports=s},function(t,e,i){var n=i(6),s=i(111),r=function(t,e,i){for(var n=[],s=0;s0?s.delayedPlay(d,r,o):s.load(r)}return t}},function(t,e,i){var n=i(12);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=Math.min(t.x,e.x),r=Math.min(t.y,e.y),o=Math.max(t.right,e.right)-s,a=Math.max(t.bottom,e.bottom)-r;return i.setTo(s,r,o,a)}},function(t,e,i){var n=i(0),s=i(11),r=i(952),o=i(13),a=i(7),h=i(174),l=i(21),u=i(331),c=new n({Extends:o,Mixins:[s.AlphaSingle,s.BlendMode,s.Depth,s.Origin,s.ScrollFactor,s.Transform,s.Visible,r],initialize:function(t,e,i,n,s,r){o.call(this,t,"DOMElement"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,this.rotate3dAngle="deg",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(e,i),"string"==typeof n?"#"===n[0]?this.setElement(n.substr(1),s,r):this.createElement(n,s,r):n&&this.setElement(n,s,r),t.sys.events.on(l.SLEEP,this.handleSceneEvent,this),t.sys.events.on(l.WAKE,this.handleSceneEvent,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?"block":"none")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+"px"}},addListener:function(t){if(this.node){t=t.split(" ");for(var e=0;e>>16,y=(65280&p)>>>8,x=255&p,c.strokeStyle="rgba("+m+","+y+","+x+","+d+")",c.lineWidth=v,T+=3;break;case n.FILL_STYLE:g=l[T+1],f=l[T+2],m=(16711680&g)>>>16,y=(65280&g)>>>8,x=255&g,c.fillStyle="rgba("+m+","+y+","+x+","+f+")",T+=2;break;case n.BEGIN_PATH:c.beginPath();break;case n.CLOSE_PATH:c.closePath();break;case n.FILL_PATH:h||c.fill();break;case n.STROKE_PATH:h||c.stroke();break;case n.FILL_RECT:h?c.rect(l[T+1],l[T+2],l[T+3],l[T+4]):c.fillRect(l[T+1],l[T+2],l[T+3],l[T+4]),T+=4;break;case n.FILL_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.fill(),T+=6;break;case n.STROKE_TRIANGLE:c.beginPath(),c.moveTo(l[T+1],l[T+2]),c.lineTo(l[T+3],l[T+4]),c.lineTo(l[T+5],l[T+6]),c.closePath(),h||c.stroke(),T+=6;break;case n.LINE_TO:c.lineTo(l[T+1],l[T+2]),T+=2;break;case n.MOVE_TO:c.moveTo(l[T+1],l[T+2]),T+=2;break;case n.LINE_FX_TO:c.lineTo(l[T+1],l[T+2]),T+=5;break;case n.MOVE_FX_TO:c.moveTo(l[T+1],l[T+2]),T+=5;break;case n.SAVE:c.save();break;case n.RESTORE:c.restore();break;case n.TRANSLATE:c.translate(l[T+1],l[T+2]),T+=2;break;case n.SCALE:c.scale(l[T+1],l[T+2]),T+=2;break;case n.ROTATE:c.rotate(l[T+1]),T+=1;break;case n.GRADIENT_FILL_STYLE:T+=5;break;case n.GRADIENT_LINE_STYLE:T+=6;break;case n.SET_TEXTURE:T+=2}c.restore()}}},function(t,e,i){var n=i(0),s=i(2),r=new n({initialize:function(t,e,i,n,r){if("object"==typeof t){var o=t;t=s(o,"x",0),e=s(o,"y",0),i=s(o,"power",0),n=s(o,"epsilon",100),r=s(o,"gravity",50)}else void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=100),void 0===r&&(r=50);this.x=t,this.y=e,this.active=!0,this._gravity=r,this._power=0,this._epsilon=0,this.power=i,this.epsilon=n},update:function(t,e){var i=this.x-t.x,n=this.y-t.y,s=i*i+n*n;if(0!==s){var r=Math.sqrt(s);s0},resetPosition:function(){this.x=0,this.y=0},fire:function(t,e){var i=this.emitter;this.frame=i.getFrame(),i.emitZone&&i.emitZone.getPoint(this),void 0===t?(i.follow&&(this.x+=i.follow.x+i.followOffset.x),this.x+=i.x.onEmit(this,"x")):this.x+=t,void 0===e?(i.follow&&(this.y+=i.follow.y+i.followOffset.y),this.y+=i.y.onEmit(this,"y")):this.y+=e,this.life=i.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0;var n=i.speedX.onEmit(this,"speedX"),o=i.speedY?i.speedY.onEmit(this,"speedY"):n;if(i.radial){var a=s(i.angle.onEmit(this,"angle"));this.velocityX=Math.cos(a)*Math.abs(n),this.velocityY=Math.sin(a)*Math.abs(o)}else if(i.moveTo){var h=i.moveToX.onEmit(this,"moveToX"),l=i.moveToY?i.moveToY.onEmit(this,"moveToY"):h,u=Math.atan2(l-this.y,h-this.x),c=r(this.x,this.y,h,l)/(this.life/1e3);this.velocityX=Math.cos(u)*c,this.velocityY=Math.sin(u)*c}else this.velocityX=n,this.velocityY=o;i.acceleration&&(this.accelerationX=i.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=i.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=i.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=i.maxVelocityY.onEmit(this,"maxVelocityY"),this.delayCurrent=i.delay.onEmit(this,"delay"),this.scaleX=i.scaleX.onEmit(this,"scaleX"),this.scaleY=i.scaleY?i.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=i.rotate.onEmit(this,"rotate"),this.rotation=s(this.angle),this.bounce=i.bounce.onEmit(this,"bounce"),this.alpha=i.alpha.onEmit(this,"alpha"),this.tint=i.tint.onEmit(this,"tint")},computeVelocity:function(t,e,i,n){var s=this.velocityX,r=this.velocityY,o=this.accelerationX,a=this.accelerationY,h=this.maxVelocityX,l=this.maxVelocityY;s+=t.gravityX*i,r+=t.gravityY*i,o&&(s+=o*i),a&&(r+=a*i),s>h?s=h:s<-h&&(s=-h),r>l?r=l:r<-l&&(r=-l),this.velocityX=s,this.velocityY=r;for(var u=0;ue.right&&t.collideRight&&(this.x=e.right,this.velocityX*=i),this.ye.bottom&&t.collideBottom&&(this.y=e.bottom,this.velocityY*=i)},update:function(t,e,i){if(this.delayCurrent>0)return this.delayCurrent-=t,!1;var n=this.emitter,r=1-this.lifeCurrent/this.life;return this.lifeT=r,this.computeVelocity(n,t,e,i),this.x+=this.velocityX*e,this.y+=this.velocityY*e,n.bounds&&this.checkBounds(n),n.deathZone&&n.deathZone.willKill(this)?(this.lifeCurrent=0,!0):(this.scaleX=n.scaleX.onUpdate(this,"scaleX",r,this.scaleX),n.scaleY?this.scaleY=n.scaleY.onUpdate(this,"scaleY",r,this.scaleY):this.scaleY=this.scaleX,this.angle=n.rotate.onUpdate(this,"rotate",r,this.angle),this.rotation=s(this.angle),this.alpha=n.alpha.onUpdate(this,"alpha",r,this.alpha),this.tint=n.tint.onUpdate(this,"tint",r,this.tint),this.lifeCurrent-=t,this.lifeCurrent<=0)}});t.exports=o},function(t,e,i){var n=i(52),s=i(0),r=i(11),o=i(400),a=i(401),h=i(969),l=i(2),u=i(181),c=i(402),d=i(105),f=i(398),p=i(403),g=i(12),v=i(126),m=i(3),y=i(58),x=new s({Mixins:[r.BlendMode,r.Mask,r.ScrollFactor,r.Visible],initialize:function(t,e){this.manager=t,this.texture=t.texture,this.frames=[t.defaultFrame],this.defaultFrame=t.defaultFrame,this.configFastMap=["active","blendMode","collideBottom","collideLeft","collideRight","collideTop","deathCallback","deathCallbackScope","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxParticles","name","on","particleBringToTop","particleClass","radial","timeScale","trackVisible","visible"],this.configOpMap=["accelerationX","accelerationY","angle","alpha","bounce","delay","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],this.name="",this.particleClass=f,this.x=new h(e,"x",0,!0),this.y=new h(e,"y",0,!0),this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.accelerationX=new h(e,"accelerationX",0,!0),this.accelerationY=new h(e,"accelerationY",0,!0),this.maxVelocityX=new h(e,"maxVelocityX",1e4,!0),this.maxVelocityY=new h(e,"maxVelocityY",1e4,!0),this.speedX=new h(e,"speedX",0,!0),this.speedY=new h(e,"speedY",0,!0),this.moveTo=!1,this.moveToX=new h(e,"moveToX",0,!0),this.moveToY=new h(e,"moveToY",0,!0),this.bounce=new h(e,"bounce",0,!0),this.scaleX=new h(e,"scaleX",1),this.scaleY=new h(e,"scaleY",1),this.tint=new h(e,"tint",4294967295),this.alpha=new h(e,"alpha",1),this.lifespan=new h(e,"lifespan",1e3,!0),this.angle=new h(e,"angle",{min:0,max:360},!0),this.rotate=new h(e,"rotate",0),this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.quantity=new h(e,"quantity",1,!0),this.delay=new h(e,"delay",0,!0),this.frequency=0,this.on=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZone=null,this.deathZone=null,this.bounds=null,this.collideLeft=!0,this.collideRight=!0,this.collideTop=!0,this.collideBottom=!0,this.active=!0,this.visible=!0,this.blendMode=n.NORMAL,this.follow=null,this.followOffset=new m,this.trackVisible=!1,this.currentFrame=0,this.randomFrame=!0,this.frameQuantity=1,this.dead=[],this.alive=[],this._counter=0,this._frameCounter=0,e&&this.fromJSON(e)},fromJSON:function(t){if(!t)return this;var e=0,i="";for(e=0;e0&&this.getParticleCount()===this.maxParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e&&(this.emitCallbackScope=e)),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e&&(this.deathCallbackScope=e)),this},killAll:function(){for(var t=this.dead,e=this.alive;e.length>0;)t.push(e.pop());return this},forEachAlive:function(t,e){for(var i=this.alive,n=i.length,s=0;s0){var u=this.deathCallback,c=this.deathCallbackScope;for(o=h-1;o>=0;o--){var d=a[o];s.splice(d.index,1),r.push(d.particle),u&&u.call(c,d.particle),d.particle.resetPosition()}}this.on&&(0===this.frequency?this.emitParticle():this.frequency>0&&(this._counter-=e,this._counter<=0&&(this.emitParticle(),this._counter=this.frequency-Math.abs(this._counter))))},depthSortCallback:function(t,e){return t.y-e.y}});t.exports=x},function(t,e,i){var n=new(i(0))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){var e=this.source.contains(t.x,t.y);return e&&this.killOnEnter||!e&&!this.killOnEnter}});t.exports=n},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s){void 0===n&&(n=!1),void 0===s&&(s=!0),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=n,this.counter=-1,this.seamless=s,this._length=0,this._direction=0,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var t=this.points[0],e=this.points[this.points.length-1];t.x===e.x&&t.y===e.y&&this.points.pop()}var i=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=n},function(t,e){t.exports=function(t,e){for(var i=0;i0&&(s=-h.PI2+s%h.PI2):s>h.PI2?s=h.PI2:s<0&&(s=h.PI2+s%h.PI2);for(var u,c=[a+Math.cos(n)*i,l+Math.sin(n)*i];e<1;)u=s*e+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),e+=t;return u=s+n,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),c.push(a+Math.cos(n)*i,l+Math.sin(n)*i),this.pathIndexes=o(c),this.pathData=c,this}});t.exports=u},function(t,e,i){var n=i(0),s=i(998),r=i(64),o=i(12),a=i(31),h=new n({Extends:a,Mixins:[s],initialize:function(t,e,i,n,s,r){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Curve",n),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(e,i),void 0!==s&&this.setFillStyle(s,r),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],n=this.geom.getPoints(e),s=0;sc+v)){var m=g.getPoint((u-c)/v);o.push(m);break}c+=v}return o}},function(t,e,i){var n=i(57),s=i(56);t.exports=function(t){for(var e=t.points,i=0,r=0;r0&&r.push(i([0,0],n[0])),e=0;e1&&r.push(i([0,0],n[n.length-1])),t.setTo(r)}},function(t,e,i){var n=i(0),s=i(12),r=i(31),o=i(1019),a=new n({Extends:r,Mixins:[o],initialize:function(t,e,i,n,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=128),void 0===o&&(o=128),r.call(this,t,"Rectangle",new s(0,0,n,o)),this.setPosition(e,i),this.setSize(n,o),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=a},function(t,e,i){var n=i(1022),s=i(0),r=i(64),o=i(31),a=new s({Extends:o,Mixins:[n],initialize:function(t,e,i,n,s,r,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=5),void 0===s&&(s=32),void 0===r&&(r=64),o.call(this,t,"Star",null),this._points=n,this._innerRadius=s,this._outerRadius=r,this.setPosition(e,i),this.setSize(2*r,2*r),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,n=this._outerRadius,s=Math.PI/2*3,o=Math.PI/e,a=n,h=n;t.push(a,h+-n);for(var l=0;l=1)return i.x=r.x1,i.y=r.y1,i;var h=s(r),l=s(o),u=s(a),c=(h+l+u)*e,d=0;return ch+l?(d=(c-=h+l)/u,i.x=a.x1+(a.x2-a.x1)*d,i.y=a.y1+(a.y2-a.y1)*d):(d=(c-=h)/l,i.x=o.x1+(o.x2-o.x1)*d,i.y=o.y1+(o.y2-o.y1)*d),i}},function(t,e,i){var n=i(57),s=i(4);t.exports=function(t,e,i,r){void 0===r&&(r=[]);var o=t.getLineA(),a=t.getLineB(),h=t.getLineC(),l=n(o),u=n(a),c=n(h),d=l+u+c;e||(e=d/i);for(var f=0;fl+u?(g=(p-=l+u)/c,v.x=h.x1+(h.x2-h.x1)*g,v.y=h.y1+(h.y2-h.y1)*g):(g=(p-=l)/u,v.x=a.x1+(a.x2-a.x1)*g,v.y=a.y1+(a.y2-a.y1)*g),r.push(v)}return r}},function(t,e){t.exports=function(t,e,i){if(!t||"number"==typeof t)return!1;if(t.hasOwnProperty(e))return t[e]=i,!0;if(-1!==e.indexOf(".")){for(var n=e.split("."),s=t,r=t,o=0;o0?(h=this.lightPool.pop()).set(t,e,i,a[0],a[1],a[2],o):h=new s(t,e,i,a[0],a[1],a[2],o),this.lights.push(h),h},removeLight:function(t){var e=this.lights.indexOf(t);return e>=0&&(this.lightPool.push(t),this.lights.splice(e,1)),this},shutdown:function(){for(;this.lights.length>0;)this.lightPool.push(this.lights.pop());this.ambientColor={r:.1,g:.1,b:.1},this.culledLights.length=0,this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=o},function(t,e,i){var n=i(46),s=i(17),r={Circle:i(1085),Ellipse:i(1095),Intersects:i(426),Line:i(1114),Point:i(1136),Polygon:i(1150),Rectangle:i(439),Triangle:i(1180)};r=s(!1,r,n),t.exports=r},function(t,e,i){t.exports={CircleToCircle:i(201),CircleToRectangle:i(202),GetCircleToCircle:i(1105),GetCircleToRectangle:i(1106),GetLineToCircle:i(203),GetLineToRectangle:i(205),GetRectangleIntersection:i(1107),GetRectangleToRectangle:i(1108),GetRectangleToTriangle:i(1109),GetTriangleToCircle:i(1110),GetTriangleToLine:i(431),GetTriangleToTriangle:i(1111),LineToCircle:i(204),LineToLine:i(83),LineToRectangle:i(427),PointToLine:i(435),PointToLineSegment:i(1112),RectangleToRectangle:i(130),RectangleToTriangle:i(428),RectangleToValues:i(1113),TriangleToCircle:i(430),TriangleToLine:i(432),TriangleToTriangle:i(433)}},function(t,e){t.exports=function(t,e){var i=t.x1,n=t.y1,s=t.x2,r=t.y2,o=e.x,a=e.y,h=e.right,l=e.bottom,u=0;if(i>=o&&i<=h&&n>=a&&n<=l||s>=o&&s<=h&&r>=a&&r<=l)return!0;if(i=o){if((u=n+(r-n)*(o-i)/(s-i))>a&&u<=l)return!0}else if(i>h&&s<=h&&(u=n+(r-n)*(h-i)/(s-i))>=a&&u<=l)return!0;if(n=a){if((u=i+(s-i)*(a-n)/(r-n))>=o&&u<=h)return!0}else if(n>l&&r<=l&&(u=i+(s-i)*(l-n)/(r-n))>=o&&u<=h)return!0;return!1}},function(t,e,i){var n=i(83),s=i(47),r=i(206),o=i(429);t.exports=function(t,e){if(e.left>t.right||e.rightt.bottom||e.bottom0}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},function(t,e,i){var n=i(204),s=i(82);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottome.right||t.righte.bottom||t.bottom0||(c=s(e),(d=n(t,c,!0)).length>0)}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},function(t,e){t.exports=function(t,e,i){void 0===i&&(i=1);var n=e.x1,s=e.y1,r=e.x2,o=e.y2,a=t.x,h=t.y,l=(r-n)*(r-n)+(o-s)*(o-s);if(0===l)return!1;var u=((a-n)*(r-n)+(h-s)*(o-s))/l;if(u<0)return Math.sqrt((n-a)*(n-a)+(s-h)*(s-h))<=i;if(u>=0&&u<=1){var c=((s-h)*(r-n)-(n-a)*(o-s))/l;return Math.abs(c)*Math.sqrt(l)<=i}return Math.sqrt((r-a)*(r-a)+(o-h)*(o-h))<=i}},function(t,e,i){var n=i(15),s=i(58),r=i(84);t.exports=function(t){var e=r(t)-n.TAU;return s(e,-Math.PI,Math.PI)}},function(t,e){t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},function(t,e){t.exports=function(t){return t.x*t.x+t.y*t.y}},function(t,e,i){var n=i(12);n.Area=i(1155),n.Ceil=i(1156),n.CeilAll=i(1157),n.CenterOn=i(163),n.Clone=i(1158),n.Contains=i(47),n.ContainsPoint=i(1159),n.ContainsRect=i(440),n.CopyFrom=i(1160),n.Decompose=i(429),n.Equals=i(1161),n.FitInside=i(1162),n.FitOutside=i(1163),n.Floor=i(1164),n.FloorAll=i(1165),n.FromPoints=i(172),n.GetAspectRatio=i(208),n.GetCenter=i(1166),n.GetPoint=i(147),n.GetPoints=i(271),n.GetSize=i(1167),n.Inflate=i(1168),n.Intersection=i(1169),n.MarchingAnts=i(282),n.MergePoints=i(1170),n.MergeRect=i(1171),n.MergeXY=i(1172),n.Offset=i(1173),n.OffsetPoint=i(1174),n.Overlaps=i(1175),n.Perimeter=i(109),n.PerimeterPoint=i(1176),n.Random=i(150),n.RandomOutside=i(1177),n.SameDimensions=i(1178),n.Scale=i(1179),n.Union=i(389),t.exports=n},function(t,e){t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(s.BUTTON_DOWN,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(s.BUTTON_UP,e,this,t),this.pad.emit(s.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=r},function(t,e,i){var n=i(445),s=i(446),r=i(0),o=i(10),a=i(3),h=new r({Extends:o,initialize:function(t,e){o.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],r=0;r=2&&(this.leftStick.set(r[0].getValue(),r[1].getValue()),s>=4&&this.rightStick.set(r[2].getValue(),r[3].getValue()))},destroy:function(){var t;for(this.removeAllListeners(),this.manager=null,this.pad=null,t=0;t=r;for(i=0;i=r;)this._elapsed-=r,this.step(s)}},step:function(t){var e,i,n=this.bodies.entries,s=n.length;for(e=0;e0){var l=this.tree,u=this.staticTree;for(n=(i=h.entries).length,t=0;t-1&&p>g&&(t.velocity.normalize().scale(g),p=g),t.speed=p},separate:function(t,e,i,n,s){if(!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e))return!1;if(i&&!1===i.call(n,t.gameObject,e.gameObject))return!1;if(t.isCircle&&e.isCircle)return this.separateCircle(t,e,s);if(t.isCircle!==e.isCircle){var r=t.isCircle?e:t,o=t.isCircle?t:e,a={x:r.x,y:r.y,right:r.right,bottom:r.bottom},h=o.center;if((h.ya.bottom)&&(h.xa.right))return this.separateCircle(t,e,s)}var l=!1,c=!1;this.forceX||Math.abs(this.gravity.y+t.gravity.y)r.right&&(s=h(o.x,o.y,r.right,r.y)-o.radius):o.y>r.bottom&&(o.xr.right&&(s=h(o.x,o.y,r.right,r.bottom)-o.radius)),s*=-1}else s=t.halfWidth+e.halfWidth-h(t.center.x,t.center.y,e.center.x,e.center.y);if(i||0===s||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==s&&(t.onOverlap||e.onOverlap)&&this.emit(u.OVERLAP,t.gameObject,e.gameObject,t,e),0!==s;var a=t.center.x-e.center.x,l=t.center.y-e.center.y,c=Math.sqrt(Math.pow(a,2)+Math.pow(l,2)),d=(e.center.x-t.center.x)/c||0,f=(e.center.y-t.center.y)/c||0,v=2*(t.velocity.x*d+t.velocity.y*f-e.velocity.x*d-e.velocity.y*f)/(t.mass+e.mass);t.immovable||(t.velocity.x=t.velocity.x-v*t.mass*d,t.velocity.y=t.velocity.y-v*t.mass*f),e.immovable||(e.velocity.x=e.velocity.x+v*e.mass*d,e.velocity.y=e.velocity.y+v*e.mass*f);var m=e.velocity.x-t.velocity.x,y=e.velocity.y-t.velocity.y,x=Math.atan2(y,m),T=this._frameTime;return t.immovable||e.immovable||(s/=2),t.immovable||(t.x+=t.velocity.x*T-s*Math.cos(x),t.y+=t.velocity.y*T-s*Math.sin(x)),e.immovable||(e.x+=e.velocity.x*T+s*Math.cos(x),e.y+=e.velocity.y*T+s*Math.sin(x)),t.velocity.x*=t.bounce.x,t.velocity.y*=t.bounce.y,e.velocity.x*=e.bounce.x,e.velocity.y*=e.bounce.y,(t.onCollide||e.onCollide)&&this.emit(u.COLLIDE,t.gameObject,e.gameObject,t,e),!0},intersects:function(t,e){return t!==e&&(t.isCircle||e.isCircle?t.isCircle?e.isCircle?h(t.center.x,t.center.y,e.center.x,e.center.y)<=t.halfWidth+e.halfWidth:this.circleBodyIntersects(t,e):this.circleBodyIntersects(e,t):!(t.right<=e.position.x||t.bottom<=e.position.y||t.position.x>=e.right||t.position.y>=e.bottom))},circleBodyIntersects:function(t,e){var i=s(t.center.x,e.left,e.right),n=s(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-n)*(t.center.y-n)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!0)},collide:function(t,e,i,n,s){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===s&&(s=i),this.collideObjects(t,e,i,n,s,!1)},collideObjects:function(t,e,i,n,s,r){var o,a;t.isParent&&void 0===t.physicsType&&(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var h=Array.isArray(t),l=Array.isArray(e);if(this._total=0,h||l)if(!h&&l)for(o=0;o0},collideHandler:function(t,e,i,n,s,r){if(void 0===e&&t.isParent)return this.collideGroupVsGroup(t,t,i,n,s,r);if(!t||!e)return!1;if(t.body){if(e.body)return this.collideSpriteVsSprite(t,e,i,n,s,r);if(e.isParent)return this.collideSpriteVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideSpriteVsTilemapLayer(t,e,i,n,s,r)}else if(t.isParent){if(e.body)return this.collideSpriteVsGroup(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsGroup(t,e,i,n,s,r);if(e.isTilemap)return this.collideGroupVsTilemapLayer(t,e,i,n,s,r)}else if(t.isTilemap){if(e.body)return this.collideSpriteVsTilemapLayer(e,t,i,n,s,r);if(e.isParent)return this.collideGroupVsTilemapLayer(e,t,i,n,s,r)}},collideSpriteVsSprite:function(t,e,i,n,s,r){return!(!t.body||!e.body)&&(this.separate(t.body,e.body,n,s,r)&&(i&&i.call(s,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,n,s,r){var o,h,l,u=t.body;if(0!==e.length&&u&&u.enable)if(this.useTree){var c=this.treeMinMax;c.minX=u.left,c.minY=u.top,c.maxX=u.right,c.maxY=u.bottom;var d=e.physicsType===a.DYNAMIC_BODY?this.tree.search(c):this.staticTree.search(c);for(h=d.length,o=0;oc.baseTileWidth){var d=(c.tileWidth-c.baseTileWidth)*e.scaleX;a-=d,l+=d}c.tileHeight>c.baseTileHeight&&(u+=(c.tileHeight-c.baseTileHeight)*e.scaleY);var f=e.getTilesWithinWorldXY(a,h,l,u);return 0!==f.length&&this.collideSpriteVsTilesHandler(t,f,i,n,s,r,!0)},collideSpriteVsTilesHandler:function(t,e,i,n,s,r,o){for(var a,h,l=t.body,c={left:0,right:0,top:0,bottom:0},d=!1,f=0;f0&&t>i&&(t=i)),0!==n&&0!==e&&(e<0&&e<-n?e=-n:e>0&&e>n&&(e=n)),this.gameObject.x+=t,this.gameObject.y+=e}t<0?this.facing=s.FACING_LEFT:t>0&&(this.facing=s.FACING_RIGHT),e<0?this.facing=s.FACING_UP:e>0&&(this.facing=s.FACING_DOWN),this.allowRotation&&(this.gameObject.angle+=this.deltaZ()),this._tx=t,this._ty=e},setBoundsRectangle:function(t){return this.customBoundsRectangle=t||this.world.bounds,this},checkWorldBounds:function(){var t=this.position,e=this.customBoundsRectangle,i=this.world.checkCollision,n=this.worldBounce?-this.worldBounce.x:-this.bounce.x,s=this.worldBounce?-this.worldBounce.y:-this.bounce.y,r=!1;return t.xe.right&&i.right&&(t.x=e.right-this.width,this.velocity.x*=n,this.blocked.right=!0,r=!0),t.ye.bottom&&i.down&&(t.y=e.bottom-this.height,this.velocity.y*=s,this.blocked.down=!0,r=!0),r&&(this.blocked.none=!1),r},setOffset:function(t,e){return void 0===e&&(e=t),this.offset.set(t,e),this.updateCenter(),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&n.getCenter){var s=(n.width-t)/2,r=(n.height-e)/2;this.offset.set(s,r)}return this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter()):this.isCircle=!1,this},reset:function(t,e){this.stop();var i=this.gameObject;i.setPosition(t,e),i.getTopLeft?i.getTopLeft(this.position):this.position.set(t,e),this.prev.copy(this.position),this.prevFrame.copy(this.position),this.rotation=i.angle,this.preRotation=i.angle,this.updateBounds(),this.updateCenter()},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?this.radius>0&&t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:h(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this._dx>0?this._dx:-this._dx},deltaAbsY:function(){return this._dy>0?this._dy:-this._dy},deltaX:function(){return this._dx},deltaY:function(){return this._dy},deltaXFinal:function(){return this._tx},deltaYFinal:function(){return this._ty},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.enable=!1,this.world&&this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor),this.isCircle?t.strokeCircle(i,n,this.width/2):(this.checkCollision.up&&t.lineBetween(e.x,e.y,e.x+this.width,e.y),this.checkCollision.right&&t.lineBetween(e.x+this.width,e.y,e.x+this.width,e.y+this.height),this.checkCollision.down&&t.lineBetween(e.x,e.y+this.height,e.x+this.width,e.y+this.height),this.checkCollision.left&&t.lineBetween(e.x,e.y,e.x,e.y+this.height))),this.debugShowVelocity&&(t.lineStyle(t.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),t.lineBetween(i,n,i+this.velocity.x/2,n+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setCollideWorldBounds:function(t,e,i){void 0===t&&(t=!0),this.collideWorldBounds=t;var n=void 0!==e,s=void 0!==i;return(n||s)&&(this.worldBounce||(this.worldBounce=new l),n&&(this.worldBounce.x=e),s&&(this.worldBounce.y=i)),this},setVelocity:function(t,e){return this.velocity.set(t,e),t=this.velocity.x,e=this.velocity.y,this.speed=Math.sqrt(t*t+e*e),this},setVelocityX:function(t){this.velocity.x=t;var e=t,i=this.velocity.y;return this.speed=Math.sqrt(e*e+i*i),this},setVelocityY:function(t){this.velocity.y=t;var e=this.velocity.x,i=t;return this.speed=Math.sqrt(e*e+i*i),this},setMaxVelocity:function(t,e){return this.maxVelocity.set(t,e),this},setMaxSpeed:function(t){return this.maxSpeed=t,this},setBounce:function(t,e){return this.bounce.set(t,e),this},setBounceX:function(t){return this.bounce.x=t,this},setBounceY:function(t){return this.bounce.y=t,this},setAcceleration:function(t,e){return this.acceleration.set(t,e),this},setAccelerationX:function(t){return this.acceleration.x=t,this},setAccelerationY:function(t){return this.acceleration.y=t,this},setAllowDrag:function(t){return void 0===t&&(t=!0),this.allowDrag=t,this},setAllowGravity:function(t){return void 0===t&&(t=!0),this.allowGravity=t,this},setAllowRotation:function(t){return void 0===t&&(t=!0),this.allowRotation=t,this},setDrag:function(t,e){return this.drag.set(t,e),this},setDragX:function(t){return this.drag.x=t,this},setDragY:function(t){return this.drag.y=t,this},setGravity:function(t,e){return this.gravity.set(t,e),this},setGravityX:function(t){return this.gravity.x=t,this},setGravityY:function(t){return this.gravity.y=t,this},setFriction:function(t,e){return this.friction.set(t,e),this},setFrictionX:function(t){return this.friction.x=t,this},setFrictionY:function(t){return this.friction.y=t,this},setAngularVelocity:function(t){return this.angularVelocity=t,this},setAngularAcceleration:function(t){return this.angularAcceleration=t,this},setAngularDrag:function(t){return this.angularDrag=t,this},setMass:function(t){return this.mass=t,this},setImmovable:function(t){return void 0===t&&(t=!0),this.immovable=t,this},setEnable:function(t){return void 0===t&&(t=!0),this.enable=t,this},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=u},function(t,e,i){var n=new(i(0))({initialize:function(t,e,i,n,s,r,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=n,this.collideCallback=s,this.processCallback=r,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=n},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsX()+e.deltaAbsX()+s;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(r=t.right-e.x)>o&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?r=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.right=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.left=!0)):t._dxo&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?r=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.left=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=r,e.overlapX=r,r}},function(t,e,i){var n=i(50);t.exports=function(t,e,i,s){var r=0,o=t.deltaAbsY()+e.deltaAbsY()+s;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(r=t.bottom-e.y)>o&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?r=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.down=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.up=!0)):t._dyo&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?r=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType===n.STATIC_BODY&&(t.blocked.none=!1,t.blocked.up=!0),t.physicsType===n.STATIC_BODY&&(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=r,e.overlapY=r,r}},function(t,e,i){var n=i(386);function s(t){if(!(this instanceof s))return new s(t,[".left",".top",".right",".bottom"]);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function r(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,i,s,r){for(var o,a=[e,i];a.length;)(i=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((i-e)/s/2)*s,n(t,o,e,i,r),a.push(e,o,o,i))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!p(t,e))return i;for(var s,r,o,a,h=[];e;){for(s=0,r=e.children.length;s=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(s,r,e)},_split:function(t,e){var i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);var r=this._chooseSplitIndex(i,s,n),a=g(i.children.splice(r,i.children.length-r));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var n,s,r,o,h,l,u,d,f,p,g,v,m,y;for(l=u=1/0,n=e;n<=i-e;n++)s=a(t,0,n,this.toBBox),r=a(t,n,i,this.toBBox),f=s,p=r,void 0,void 0,void 0,void 0,g=Math.max(f.minX,p.minX),v=Math.max(f.minY,p.minY),m=Math.min(f.maxX,p.maxX),y=Math.min(f.maxY,p.maxY),o=Math.max(0,m-g)*Math.max(0,y-v),h=c(s)+c(r),o=e;s--)r=t.children[s],h(u,t.leaf?o(r):r),c+=d(u);return c},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)h(e[n],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():o(t[i],this.toBBox)},compareMinX:function(t,e){return t.left-e.left},compareMinY:function(t,e){return t.top-e.top},toBBox:function(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}},t.exports=s},function(t,e){t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},function(t,e,i){var n=i(55),s=i(0),r=i(50),o=i(47),a=i(3),h=new s({initialize:function(t,e){var i=e.displayWidth?e.displayWidth:64,n=e.displayHeight?e.displayHeight:64;this.world=t,this.gameObject=e,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new a,this.position=new a(e.x-e.displayOriginX,e.y-e.displayOriginY),this.width=i,this.height=n,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new a(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=a.ZERO,this.allowGravity=!1,this.gravity=a.ZERO,this.bounce=a.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.physicsType=r.STATIC_BODY,this._dx=0,this._dy=0},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,t.body=this,this.gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&n.getCenter){var s=n.displayWidth/2,r=n.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(s-this.halfWidth,r-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y}return this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=t,this.width=2*t,this.height=2*t,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter(),this.world.staticTree.insert(this)):this.isCircle=!1,this},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},reset:function(t,e){var i=this.gameObject;void 0===t&&(t=i.x),void 0===e&&(e=i.y),this.world.staticTree.remove(this),i.setPosition(t,e),i.getTopLeft(this.position),this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?n(this,t,e):o(this,t,e)},postUpdate:function(){},deltaAbsX:function(){return 0},deltaAbsY:function(){return 0},deltaX:function(){return 0},deltaY:function(){return 0},deltaZ:function(){return 0},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?t.strokeCircle(i,n,this.width/2):t.strokeRect(e.x,e.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(t){return t<=0&&(t=.1),this.mass=t,this},x:{get:function(){return this.position.x},set:function(t){this.world.staticTree.remove(this),this.position.x=t,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(t){this.world.staticTree.remove(this),this.position.y=t,this.world.staticTree.insert(this)}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=h},function(t,e){var i={};t.exports=i,i.create=function(t,e){var n=t.bodyA,s=t.bodyB,r={id:i.id(n,s),bodyA:n,bodyB:s,activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:n.isSensor||s.isSensor,timeCreated:e,timeUpdated:e,collision:null,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return i.update(r,t,e),r},i.update=function(t,e,n){if(t.collision=e,e.collided){var s=e.supports,r=t.activeContacts,o=e.parentA,a=e.parentB;t.inverseMass=o.inverseMass+a.inverseMass,t.friction=Math.min(o.friction,a.friction),t.frictionStatic=Math.max(o.frictionStatic,a.frictionStatic),t.restitution=Math.max(o.restitution,a.restitution),t.slop=Math.max(o.slop,a.slop);for(var h=0;h-1}return!1}},function(t,e,i){var n=i(73),s=i(100),r=i(216);t.exports=function(t,e,i,o,a){if(void 0===i&&(i=!1),void 0===o&&(o=!0),!s(t,e,a))return null;var h=a.data[e][t];return h?(a.data[e][t]=i?null:new n(a,-1,t,e,a.tileWidth,a.tileHeight),o&&h&&h.collides&&r(t,e,a),h):null}},function(t,e,i){var n=i(33),s=i(220),r=i(478),o=i(479),a=i(490);t.exports=function(t,e,i,h,l,u){var c;switch(e){case n.ARRAY_2D:c=s(t,i,h,l,u);break;case n.CSV:c=r(t,i,h,l,u);break;case n.TILED_JSON:c=o(t,i,u);break;case n.WELTMEISTER:c=a(t,i,u);break;default:console.warn("Unrecognized tilemap data format: "+e),c=null}return c}},function(t,e,i){var n=i(33),s=i(220);t.exports=function(t,e,i,r,o){var a=e.trim().split("\n").map(function(t){return t.split(",")}),h=s(t,a,i,r,o);return h.format=n.CSV,h}},function(t,e,i){var n=i(33),s=i(102),r=i(480),o=i(482),a=i(483),h=i(486),l=i(488),u=i(489);t.exports=function(t,e,i){if("isometric"===e.orientation)console.warn("isometric map types are WIP in this version of Phaser");else if("orthogonal"!==e.orientation)return console.warn("Only orthogonal map types are supported in this version of Phaser"),null;var c=new s({width:e.width,height:e.height,name:t,tileWidth:e.tilewidth,tileHeight:e.tileheight,orientation:e.orientation,format:n.TILED_JSON,version:e.version,properties:e.properties,renderOrder:e.renderorder,infinite:e.infinite});c.layers=r(e,i),c.images=o(e);var d=a(e);return c.tilesets=d.tilesets,c.imageCollections=d.imageCollections,c.objects=h(e),c.tiles=l(c),u(c),c}},function(t,e,i){var n=i(481),s=i(2),r=i(101),o=i(221),a=i(73),h=i(222);t.exports=function(t,e){for(var i=s(t,"infinite",!1),l=[],u=[],c=h(t);c.i0;)if(c.i>=c.layers.length){if(u.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}c=u.pop()}else{var d=c.layers[c.i];if(c.i++,"tilelayer"===d.type)if(d.compression)console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+d.name+"'");else{if(d.encoding&&"base64"===d.encoding){if(d.chunks)for(var f=0;f0?((v=new a(p,g.gid,O,R,t.tilewidth,t.tileheight)).rotation=g.rotation,v.flipX=g.flipped,y[R][O]=v):(m=e?null:new a(p,-1,O,R,t.tilewidth,t.tileheight),y[R][O]=m),++x===S.width&&(C++,x=0)}}else{p=new r({name:c.name+d.name,x:c.x+s(d,"offsetx",0)+d.x,y:c.y+s(d,"offsety",0)+d.y,width:d.width,height:d.height,tileWidth:t.tilewidth,tileHeight:t.tileheight,alpha:c.opacity*d.opacity,visible:c.visible&&d.visible,properties:s(d,"properties",{}),orientation:t.orientation});for(var L=[],D=0,F=d.data.length;D0?((v=new a(p,g.gid,x,y.length,t.tilewidth,t.tileheight)).rotation=g.rotation,v.flipX=g.flipped,L.push(v)):(m=e?null:new a(p,-1,x,y.length,t.tilewidth,t.tileheight),L.push(m)),++x===d.width&&(y.push(L),x=0,L=[])}p.data=y,l.push(p)}else if("group"===d.type){var k=h(t,d,c);u.push(c),c=k}}return l}},function(t,e){t.exports=function(t){for(var e=window.atob(t),i=e.length,n=new Array(i/4),s=0;s>>0;return n}},function(t,e,i){var n=i(2),s=i(222);t.exports=function(t){for(var e=[],i=[],r=s(t);r.i0;)if(r.i>=r.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}r=i.pop()}else{var o=r.layers[r.i];if(r.i++,"imagelayer"===o.type){var a=n(o,"offsetx",0)+n(o,"startx",0),h=n(o,"offsety",0)+n(o,"starty",0);e.push({name:r.name+o.name,image:o.image,x:r.x+a+o.x,y:r.y+h+o.y,alpha:r.opacity*o.opacity,visible:r.visible&&o.visible,properties:n(o,"properties",{})})}else if("group"===o.type){var l=s(t,o,r);i.push(r),r=l}}return e}},function(t,e,i){var n=i(138),s=i(484),r=i(223);t.exports=function(t){for(var e,i=[],o=[],a=null,h=0;h1){if(Array.isArray(l.tiles)){for(var c={},d={},f=0;f=this.firstgid&&t0;)if(a.i>=a.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}a=i.pop()}else{var h=a.layers[a.i];if(a.i++,h.opacity*=a.opacity,h.visible=a.visible&&h.visible,"objectgroup"===h.type){h.name=a.name+h.name;for(var l=a.x+n(h,"startx",0)+n(h,"offsetx",0),u=a.y+n(h,"starty",0)+n(h,"offsety",0),c=[],d=0;da&&(a=e.layer[l].width),e.layer[l].height>h&&(h=e.layer[l].height);var u=new s({width:a,height:h,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:n.WELTMEISTER});return u.layers=r(e,i),u.tilesets=o(e),u}},function(t,e,i){var n=i(101),s=i(73);t.exports=function(t,e){for(var i=[],r=0;r-1?new s(a,f,c,u,o.tilesize,o.tilesize):e?null:new s(a,-1,c,u,o.tilesize,o.tilesize),h.push(d)}l.push(h),h=[]}a.data=l,i.push(a)}return i}},function(t,e,i){var n=i(138);t.exports=function(t){for(var e=[],i=[],s=0;s-1&&(this.renderOrder=t),this},addTilesetImage:function(t,e,i,n,s,r,o){if(void 0===t)return null;if(void 0!==e&&null!==e||(e=t),!this.scene.sys.textures.exists(e))return console.warn("Invalid Tileset Image: "+e),null;var h=this.scene.sys.textures.get(e),l=this.getTilesetIndex(t);if(null===l&&this.format===a.TILED_JSON)return console.warn("No data found for Tileset: "+t),null;var u=this.tilesets[l];return u?(u.setTileSize(i,n),u.setSpacing(s,r),u.setImage(h),u):(void 0===i&&(i=this.tileWidth),void 0===n&&(n=this.tileHeight),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o=0),(u=new p(t,o,i,n,s,r)).setImage(h),this.tilesets.push(u),u)},convertLayerToStatic:function(t){if(null===(t=this.getLayer(t)))return null;var e=t.tilemapLayer;if(!(e&&e instanceof r))return null;var i=new c(e.scene,e.tilemap,e.layerIndex,e.tileset,e.x,e.y);return this.scene.sys.displayList.add(i),e.destroy(),i},copy:function(t,e,i,n,s,r,o,a){return a=this.getLayer(a),this._isStaticCall(a,"copy")?this:null!==a?(f.Copy(t,e,i,n,s,r,o,a),this):null},createBlankDynamicLayer:function(t,e,i,n,s,o,a,l){if(void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=this.width),void 0===o&&(o=this.height),void 0===a&&(a=this.tileWidth),void 0===l&&(l=this.tileHeight),null!==this.getLayerIndex(t))return console.warn("Invalid Tilemap Layer ID: "+t),null;for(var u,c=new h({name:t,tileWidth:a,tileHeight:l,width:s,height:o,orientation:this.orientation}),f=0;f-1&&this.putTileAt(e,r.x,r.y,i,r.tilemapLayer)}return n},removeTileAt:function(t,e,i,n,s){return s=this.getLayer(s),this._isStaticCall(s,"removeTileAt")?null:null===s?null:f.RemoveTileAt(t,e,i,n,s)},removeTileAtWorldXY:function(t,e,i,n,s,r){return r=this.getLayer(r),this._isStaticCall(r,"removeTileAtWorldXY")?null:null===r?null:f.RemoveTileAtWorldXY(t,e,i,n,s,r)},renderDebug:function(t,e,i){return null===(i=this.getLayer(i))?null:(f.RenderDebug(t,e,i),this)},renderDebugFull:function(t,e){for(var i=this.layers,n=0;n=0&&t<4&&(this._renderOrder=t),this},calculateFacesAt:function(t,e){return a.CalculateFacesAt(t,e,this.layer),this},calculateFacesWithin:function(t,e,i,n){return a.CalculateFacesWithin(t,e,i,n,this.layer),this},createFromTiles:function(t,e,i,n,s){return a.CreateFromTiles(t,e,i,n,s,this.layer)},cull:function(t){return this.cullCallback(this.layer,t,this.culledTiles,this._renderOrder)},copy:function(t,e,i,n,s,r,o){return a.Copy(t,e,i,n,s,r,o,this.layer),this},destroy:function(t){void 0===t&&(t=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),t&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],o.prototype.destroy.call(this))},fill:function(t,e,i,n,s,r){return a.Fill(t,e,i,n,s,r,this.layer),this},filterTiles:function(t,e,i,n,s,r,o){return a.FilterTiles(t,e,i,n,s,r,o,this.layer)},findByIndex:function(t,e,i){return a.FindByIndex(t,e,i,this.layer)},findTile:function(t,e,i,n,s,r,o){return a.FindTile(t,e,i,n,s,r,o,this.layer)},forEachTile:function(t,e,i,n,s,r,o){return a.ForEachTile(t,e,i,n,s,r,o,this.layer),this},getTileAt:function(t,e,i){return a.GetTileAt(t,e,i,this.layer)},getTileAtWorldXY:function(t,e,i,n){return a.GetTileAtWorldXY(t,e,i,n,this.layer)},getTilesWithin:function(t,e,i,n,s){return a.GetTilesWithin(t,e,i,n,s,this.layer)},getTilesWithinShape:function(t,e,i){return a.GetTilesWithinShape(t,e,i,this.layer)},getTilesWithinWorldXY:function(t,e,i,n,s,r){return a.GetTilesWithinWorldXY(t,e,i,n,s,r,this.layer)},hasTileAt:function(t,e){return a.HasTileAt(t,e,this.layer)},hasTileAtWorldXY:function(t,e,i){return a.HasTileAtWorldXY(t,e,i,this.layer)},putTileAt:function(t,e,i,n){return a.PutTileAt(t,e,i,n,this.layer)},putTileAtWorldXY:function(t,e,i,n,s){return a.PutTileAtWorldXY(t,e,i,n,s,this.layer)},putTilesAt:function(t,e,i,n){return a.PutTilesAt(t,e,i,n,this.layer),this},randomize:function(t,e,i,n,s){return a.Randomize(t,e,i,n,s,this.layer),this},removeTileAt:function(t,e,i,n){return a.RemoveTileAt(t,e,i,n,this.layer)},removeTileAtWorldXY:function(t,e,i,n,s){return a.RemoveTileAtWorldXY(t,e,i,n,s,this.layer)},renderDebug:function(t,e){return a.RenderDebug(t,e,this.layer),this},replaceByIndex:function(t,e,i,n,s,r){return a.ReplaceByIndex(t,e,i,n,s,r,this.layer),this},setSkipCull:function(t){return void 0===t&&(t=!0),this.skipCull=t,this},setCullPadding:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=1),this.cullPaddingX=t,this.cullPaddingY=e,this},setCollision:function(t,e,i,n){return a.SetCollision(t,e,i,this.layer,n),this},setCollisionBetween:function(t,e,i,n){return a.SetCollisionBetween(t,e,i,n,this.layer),this},setCollisionByProperty:function(t,e,i){return a.SetCollisionByProperty(t,e,i,this.layer),this},setCollisionByExclusion:function(t,e,i){return a.SetCollisionByExclusion(t,e,i,this.layer),this},setCollisionFromCollisionGroup:function(t,e){return a.SetCollisionFromCollisionGroup(t,e,this.layer),this},setTileIndexCallback:function(t,e,i){return a.SetTileIndexCallback(t,e,i,this.layer),this},setTileLocationCallback:function(t,e,i,n,s,r){return a.SetTileLocationCallback(t,e,i,n,s,r,this.layer),this},shuffle:function(t,e,i,n){return a.Shuffle(t,e,i,n,this.layer),this},swapByIndex:function(t,e,i,n,s,r){return a.SwapByIndex(t,e,i,n,s,r,this.layer),this},tileToWorldX:function(t,e){return a.TileToWorldX(t,e,this.layer)},tileToWorldY:function(t,e){return a.TileToWorldY(t,e,this.layer)},tileToWorldXY:function(t,e,i,n){return a.TileToWorldXY(t,e,i,n,this.layer)},weightedRandomize:function(t,e,i,n,s){return a.WeightedRandomize(t,e,i,n,s,this.layer),this},worldToTileX:function(t,e,i){return a.WorldToTileX(t,e,i,this.layer)},worldToTileY:function(t,e,i){return a.WorldToTileY(t,e,i,this.layer)},worldToTileXY:function(t,e,i,n,s){return a.WorldToTileXY(t,e,i,n,s,this.layer)}});t.exports=h},function(t,e,i){var n=i(0),s=i(11),r=i(18),o=i(13),a=i(1340),h=i(136),l=i(30),u=i(9),c=new n({Extends:o,Mixins:[s.Alpha,s.BlendMode,s.ComputedSize,s.Depth,s.Flip,s.GetBounds,s.Origin,s.Pipeline,s.Transform,s.Visible,s.ScrollFactor,a],initialize:function(t,e,i,n,s,a){o.call(this,t,"StaticTilemapLayer"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],this.layer.tilemapLayer=this,this.tileset=[],this.culledTiles=[],this.skipCull=!1,this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=h.CullTiles,this.renderer=t.sys.game.renderer,this.vertexBuffer=[],this.bufferData=[],this.vertexViewF32=[],this.vertexViewU32=[],this.dirty=[],this.vertexCount=[],this._renderOrder=0,this._tempMatrix=new l,this.gidMap=[],this.setTilesets(n),this.setAlpha(this.layer.alpha),this.setPosition(s,a),this.setOrigin(),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.updateVBOData(),this.initPipeline("TextureTintPipeline"),t.sys.game.events.on(r.CONTEXT_RESTORED,function(){this.updateVBOData()},this)},setTilesets:function(t){var e=[],i=[],n=this.tilemap;Array.isArray(t)||(t=[t]);for(var s=0;sv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(1===p)for(o=0;o=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(2===p)for(o=u-1;o>=0;o--)for(a=0;av||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));else if(3===p)for(o=u-1;o>=0;o--)for(a=l-1;a>=0;a--)!(r=f[o][a])||r.indexv||!r.visible||(x=this.batchTile(x,r,h,c,d,t,e));this.dirty[e]=!1,null===m?(m=i.createVertexBuffer(y,n.STATIC_DRAW),this.vertexBuffer[e]=m):(i.setVertexBuffer(m),n.bufferSubData(n.ARRAY_BUFFER,0,y))}return this},batchTile:function(t,e,i,n,s,r,o){var a=i.getTileTextureCoordinates(e.index);if(!a)return t;var h=i.tileWidth,l=i.tileHeight,c=h/2,d=l/2,f=a.x/n,p=a.y/s,g=(a.x+h)/n,v=(a.y+l)/s,m=this._tempMatrix,y=-c,x=-d;e.flipX&&(h*=-1,y+=i.tileWidth),e.flipY&&(l*=-1,x+=i.tileHeight);var T=y+h,w=x+l;m.applyITRS(c+e.pixelX,d+e.pixelY,e.rotation,1,1);var b=u.getTintAppendFloatAlpha(16777215,r.alpha*this.alpha*e.alpha),E=m.getX(y,x),S=m.getY(y,x),_=m.getX(y,w),A=m.getY(y,w),C=m.getX(T,w),M=m.getY(T,w),P=m.getX(T,x),O=m.getY(T,x);r.roundPixels&&(E=Math.round(E),S=Math.round(S),_=Math.round(_),A=Math.round(A),C=Math.round(C),M=Math.round(M),P=Math.round(P),O=Math.round(O));var R=this.vertexViewF32[o],L=this.vertexViewU32[o];return R[++t]=E,R[++t]=S,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=b,R[++t]=_,R[++t]=A,R[++t]=f,R[++t]=v,R[++t]=0,L[++t]=b,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=b,R[++t]=E,R[++t]=S,R[++t]=f,R[++t]=p,R[++t]=0,L[++t]=b,R[++t]=C,R[++t]=M,R[++t]=g,R[++t]=v,R[++t]=0,L[++t]=b,R[++t]=P,R[++t]=O,R[++t]=g,R[++t]=p,R[++t]=0,L[++t]=b,this.vertexCount[o]+=6,t},setRenderOrder:function(t){if("string"==typeof t&&(t=["right-down","left-down","right-up","left-up"].indexOf(t)),t>=0&&t<4){this._renderOrder=t;for(var e=0;e0){var t=this.delay+this.delay*this.repeat;return(this.elapsed+this.delay*(this.repeat-this.repeatCount))/t}return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return.001*this.elapsed},remove:function(t){void 0===t&&(t=!1),this.elapsed=this.delay,this.hasDispatched=!t,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});t.exports=r},function(t,e,i){var n=i(1349);t.exports=function(t){var e,i=[];if(t.hasOwnProperty("props"))for(e in t.props)"_"!==e.substr(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===n.indexOf(e)&&"_"!==e.substr(0,1)&&i.push({key:e,value:t[e]});return i}},function(t,e,i){var n=i(6);t.exports=function(t){var e=n(t,"tweens",null);return null===e?[]:("function"==typeof e&&(e=e.call()),Array.isArray(e)||(e=[e]),e)}},function(t,e,i){var n=i(227),s=i(14),r=i(87),o=i(67),a=i(139),h=i(6),l=i(226),u=i(228),c=i(230);t.exports=function(t,e,i){void 0===i&&(i=n);var d=h(e,"from",0),f=h(e,"to",1),p=[{value:d}],g=a(e,"delay",i.delay),v=a(e,"duration",i.duration),m=h(e,"easeParams",i.easeParams),y=o(h(e,"ease",i.ease),m),x=a(e,"hold",i.hold),T=a(e,"repeat",i.repeat),w=a(e,"repeatDelay",i.repeatDelay),b=r(e,"yoyo",i.yoyo),E=[],S=l("value",f),_=c(p[0],0,"value",S.getEnd,S.getStart,S.getActive,y,g,v,b,x,T,w,!1,!1);_.start=d,_.current=d,_.to=f,E.push(_);var A=new u(t,E,p);A.offset=s(e,"offset",null),A.completeDelay=s(e,"completeDelay",0),A.loop=Math.round(s(e,"loop",0)),A.loopDelay=Math.round(s(e,"loopDelay",0)),A.paused=r(e,"paused",!1),A.useFrames=r(e,"useFrames",!1);for(var C=h(e,"callbackScope",A),M=[A,null],P=u.TYPES,O=0;OS&&(S=C),E[_][A]=C}}}var M=o?n(o):null;return a?function(t,e,n,s){var r,o=0,a=s%m,h=Math.floor(s/m);if(a>=0&&a=0&&h0?Math.floor(v/p.length):h(e,"duration",g.duration),g.delay=h(e,"delay",g.delay),g.easeParams=c(e,"easeParams",g.easeParams),g.ease=a(c(e,"ease",g.ease),g.easeParams),g.hold=h(e,"hold",g.hold),g.repeat=h(e,"repeat",g.repeat),g.repeatDelay=h(e,"repeatDelay",g.repeatDelay),g.yoyo=o(e,"yoyo",g.yoyo),g.flipX=o(e,"flipX",g.flipX),g.flipY=o(e,"flipY",g.flipY);for(var m=0;m0?this.totalDuration=this.duration+this.completeDelay+(this.duration+this.loopDelay)*this.loopCounter:this.totalDuration=this.duration+this.completeDelay},init:function(){return this.calcDuration(),this.progress=0,this.totalProgress=0,!this.paused||(this.state=a.PAUSED,!1)},resetTweens:function(t){for(var e=0;e0?(this.elapsed=0,this.progress=0,this.loopCounter--,this.resetTweens(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.state=a.LOOP_DELAY):(this.state=a.ACTIVE,this.dispatchTimelineEvent(r.TIMELINE_LOOP,this.callbacks.onLoop))):this.completeDelay>0?(this.state=a.COMPLETE_DELAY,this.countdown=this.completeDelay):(this.state=a.PENDING_REMOVE,this.dispatchTimelineEvent(r.TIMELINE_COMPLETE,this.callbacks.onComplete))},update:function(t,e){if(this.state!==a.PAUSED){switch(this.useFrames&&(e=1*this.manager.timeScale),e*=this.timeScale,this.elapsed+=e,this.progress=Math.min(this.elapsed/this.duration,1),this.totalElapsed+=e,this.totalProgress=Math.min(this.totalElapsed/this.totalDuration,1),this.state){case a.ACTIVE:for(var i=this.totalData,n=0;n=this.nextTick&&this.currentAnim.setFrame(this)}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),e},updateFrame:function(t){var e=this.setCurrentFrame(t);if(this.isPlaying){t.setAlpha&&(e.alpha=t.alpha);var i=this.currentAnim;e.emit(r.SPRITE_ANIMATION_KEY_UPDATE+i.key,i,t,e),e.emit(r.SPRITE_ANIMATION_UPDATE,i,t,e),3===this._pendingStop&&this._pendingStopValue===t&&this.currentAnim.completeAnimation(this)}},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},setYoyo:function(t){return void 0===t&&(t=!1),this._yoyo=t,this.parent},getYoyo:function(){return this._yoyo},destroy:function(){this.animationManager.off(r.REMOVE_ANIMATION,this.remove,this),this.animationManager=null,this.parent=null,this.currentAnim=null,this.currentFrame=null}});t.exports=o},function(t,e,i){var n=i(505),s=i(48),r=i(0),o=i(29),a=i(506),h=i(91),l=i(30),u=new r({initialize:function(t){this.game=t,this.type=o.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.config={clearBeforeRender:t.config.clearBeforeRender,backgroundColor:t.config.backgroundColor,resolution:t.config.resolution,antialias:t.config.antialias,roundPixels:t.config.roundPixels},this.gameCanvas=t.canvas;var e={alpha:t.config.transparent,desynchronized:t.config.desynchronized};this.gameContext=this.game.config.context?this.game.config.context:this.gameCanvas.getContext("2d",e),this.currentContext=this.gameContext,this.antialias=t.config.antialias,this.blendModes=a(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this._tempMatrix4=new l,this.init()},init:function(){this.game.scale.on(h.RESIZE,this.onResize,this);var t=this.game.scale.baseSize;this.resize(t.width,t.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,n=this.height;t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),e.clearBeforeRender&&t.clearRect(0,0,i,n),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,n)),t.save(),this.drawCount=0},render:function(t,e,i,n){var r=e.list,o=r.length,a=n._cx,h=n._cy,l=n._cw,u=n._ch,c=n.renderToTexture?n.context:t.sys.context;c.save(),this.game.scene.customViewports&&(c.beginPath(),c.rect(a,h,l,u),c.clip()),this.currentContext=c;var d=n.mask;d&&d.preRenderCanvas(this,null,n._maskCamera),n.transparent||(c.fillStyle=n.backgroundColor.rgba,c.fillRect(a,h,l,u)),c.globalAlpha=n.alpha,c.globalCompositeOperation="source-over",this.drawCount+=r.length,n.renderToTexture&&n.emit(s.PRE_RENDER,n),n.matrix.copyToContext(c);for(var f=0;f=0?y=-(y+d):y<0&&(y=Math.abs(y)-d)),t.flipY&&(x>=0?x=-(x+f):x<0&&(x=Math.abs(x)-f))}var w=1,b=1;t.flipX&&(p||(y+=-e.realWidth+2*v),w=-1),t.flipY&&(p||(x+=-e.realHeight+2*m),b=-1),a.applyITRS(t.x,t.y,t.rotation,t.scaleX*w,t.scaleY*b),o.copyFrom(i.matrix),n?(o.multiplyWithOffset(n,-i.scrollX*t.scrollFactorX,-i.scrollY*t.scrollFactorY),a.e=t.x,a.f=t.y,o.multiply(a,h)):(a.e-=i.scrollX*t.scrollFactorX,a.f-=i.scrollY*t.scrollFactorY,o.multiply(a,h)),r.save(),h.setToContext(r),r.globalCompositeOperation=this.blendModes[t.blendMode],r.globalAlpha=s,r.imageSmoothingEnabled=!(!this.antialias||e.source.scaleMode),r.drawImage(e.source.image,u,c,d,f,y,x,d/g,f/g),r.restore()}},destroy:function(){this.gameCanvas=null,this.gameContext=null,this.game=null}});t.exports=u},function(t,e,i){var n=i(26),s=i(32),r=i(2);t.exports=function(t,e){var i=r(e,"callback"),o=r(e,"type","image/png"),a=r(e,"encoder",.92),h=Math.abs(Math.round(r(e,"x",0))),l=Math.abs(Math.round(r(e,"y",0))),u=r(e,"width",t.width),c=r(e,"height",t.height);if(r(e,"getPixel",!1)){var d=t.getContext("2d").getImageData(h,l,1,1).data;i.call(null,new s(d[0],d[1],d[2],d[3]/255))}else if(0!==h||0!==l||u!==t.width||c!==t.height){var f=n.createWebGL(this,u,c);f.getContext("2d").drawImage(t,h,l,u,c,0,0,u,c);var p=new Image;p.onerror=function(){i.call(null),n.remove(f)},p.onload=function(){i.call(null,p),n.remove(f)},p.src=f.toDataURL(o,a)}else{var g=new Image;g.onerror=function(){i.call(null)},g.onload=function(){i.call(null,g)},g.src=t.toDataURL(o,a)}}},function(t,e,i){var n=i(52),s=i(313);t.exports=function(){var t=[],e=s.supportNewBlendModes,i="source-over";return t[n.NORMAL]=i,t[n.ADD]="lighter",t[n.MULTIPLY]=e?"multiply":i,t[n.SCREEN]=e?"screen":i,t[n.OVERLAY]=e?"overlay":i,t[n.DARKEN]=e?"darken":i,t[n.LIGHTEN]=e?"lighten":i,t[n.COLOR_DODGE]=e?"color-dodge":i,t[n.COLOR_BURN]=e?"color-burn":i,t[n.HARD_LIGHT]=e?"hard-light":i,t[n.SOFT_LIGHT]=e?"soft-light":i,t[n.DIFFERENCE]=e?"difference":i,t[n.EXCLUSION]=e?"exclusion":i,t[n.HUE]=e?"hue":i,t[n.SATURATION]=e?"saturation":i,t[n.COLOR]=e?"color":i,t[n.LUMINOSITY]=e?"luminosity":i,t[n.ERASE]="destination-out",t[n.SOURCE_IN]="source-in",t[n.SOURCE_OUT]="source-out",t[n.SOURCE_ATOP]="source-atop",t[n.DESTINATION_OVER]="destination-over",t[n.DESTINATION_IN]="destination-in",t[n.DESTINATION_OUT]="destination-out",t[n.DESTINATION_ATOP]="destination-atop",t[n.LIGHTER]="lighter",t[n.COPY]="copy",t[n.XOR]="xor",t}},function(t,e,i){var n=i(90),s=i(48),r=i(0),o=i(29),a=i(18),h=i(115),l=i(1),u=i(91),c=i(79),d=i(116),f=i(30),p=i(9),g=i(508),v=i(509),m=i(510),y=i(234),x=i(511),T=new r({initialize:function(t){var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!1,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,resolution:e.resolution,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=o.WEBGL,this.width=0,this.height=0,this.canvas=t.canvas,this.blendModes=[],this.nativeTextures=[],this.contextLost=!1,this.pipelines=null,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.currentActiveTextureUnit=0,this.currentTextures=new Array(16),this.currentFramebuffer=null,this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=l,this.contextRestoredHandler=l,this.gl=null,this.supportedExtensions=null,this.extensions={},this.glFormats=[],this.compression={ETC1:!1,PVRTC:!1,S3TC:!1},this.drawingBufferHeight=0,this.blankTexture=null,this.defaultCamera=new n(0,0,0,0),this._tempMatrix1=new f,this._tempMatrix2=new f,this._tempMatrix3=new f,this._tempMatrix4=new f,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.mipmapFilter=null,this.init(this.config)},init:function(t){var e,i=this.game,n=this.canvas,s=t.backgroundColor;if(!(e=i.config.context?i.config.context:n.getContext("webgl",t.contextCreation)||n.getContext("experimental-webgl",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=e;var r=this;this.contextLostHandler=function(t){r.contextLost=!0,r.game.events.emit(a.CONTEXT_LOST,r),t.preventDefault()},this.contextRestoredHandler=function(){r.contextLost=!1,r.init(r.config),r.game.events.emit(a.CONTEXT_RESTORED,r)},n.addEventListener("webglcontextlost",this.contextLostHandler,!1),n.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),i.context=e;for(var h=0;h<=27;h++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats[0]=e.BYTE,this.glFormats[1]=e.SHORT,this.glFormats[2]=e.UNSIGNED_BYTE,this.glFormats[3]=e.UNSIGNED_SHORT,this.glFormats[4]=e.FLOAT,this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:e.uniform1f,length:1},"1fv":{func:e.uniform1fv,length:1},"1i":{func:e.uniform1i,length:1},"1iv":{func:e.uniform1iv,length:1},"2f":{func:e.uniform2f,length:2},"2fv":{func:e.uniform2fv,length:1},"2i":{func:e.uniform2i,length:2},"2iv":{func:e.uniform2iv,length:1},"3f":{func:e.uniform3f,length:3},"3fv":{func:e.uniform3fv,length:1},"3i":{func:e.uniform3i,length:3},"3iv":{func:e.uniform3iv,length:1},"4f":{func:e.uniform4f,length:4},"4fv":{func:e.uniform4fv,length:1},"4i":{func:e.uniform4i,length:4},"4iv":{func:e.uniform4iv,length:1}};var l=e.getSupportedExtensions();t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE));var u="WEBGL_compressed_texture_",c="WEBKIT_"+u;this.compression.ETC1=e.getExtension(u+"etc1")||e.getExtension(c+"etc1"),this.compression.PVRTC=e.getExtension(u+"pvrtc")||e.getExtension(c+"pvrtc"),this.compression.S3TC=e.getExtension(u+"s3tc")||e.getExtension(c+"s3tc"),this.supportedExtensions=l,e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),e.enable(e.BLEND),e.clearColor(s.redGL,s.greenGL,s.blueGL,s.alphaGL),this.mipmapFilter=e[t.mipmapFilter];for(var f=0;f0&&n>0;if(o&&a){var h=o[0],l=o[1],u=o[2],c=o[3];a=h!==t||l!==e||u!==i||c!==n}a&&(this.flush(),r.scissor(t,s-e-n,i,n))},popScissor:function(){var t=this.scissorStack;t.pop();var e=t[t.length-1];e&&this.setScissor(e[0],e[1],e[2],e[3]),this.currentScissor=e},setPipeline:function(t,e){return this.currentPipeline===t&&this.currentPipeline.vertexBuffer===this.currentVertexBuffer&&this.currentPipeline.program===this.currentProgram||(this.flush(),this.currentPipeline=t,this.currentPipeline.bind()),this.currentPipeline.onBind(e),this.currentPipeline},hasActiveStencilMask:function(){var t=this.currentMask.mask,e=this.currentCameraMask.mask;return t&&t.isStencil||e&&e.isStencil},rebindPipeline:function(t){var e=this.gl;e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),this.hasActiveStencilMask()?e.clear(e.DEPTH_BUFFER_BIT):(e.disable(e.STENCIL_TEST),e.clear(e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT)),e.viewport(0,0,this.width,this.height),this.setBlendMode(0,!0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.blankTexture.glTexture),this.currentActiveTextureUnit=0,this.currentTextures[0]=this.blankTexture.glTexture,this.currentPipeline=t,this.currentPipeline.bind(),this.currentPipeline.onBind()},clearPipeline:function(){this.flush(),this.currentPipeline=null,this.currentProgram=null,this.currentVertexBuffer=null,this.currentIndexBuffer=null,this.setBlendMode(0,!0)},setBlendMode:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.blendModes[t];return!!(e||t!==o.BlendModes.SKIP_CHECK&&this.currentBlendMode!==t)&&(this.flush(),i.enable(i.BLEND),i.blendEquation(n.equation),n.func.length>2?i.blendFuncSeparate(n.func[0],n.func[1],n.func[2],n.func[3]):i.blendFunc(n.func[0],n.func[1]),this.currentBlendMode=t,!0)},addBlendMode:function(t,e){return this.blendModes.push({func:t,equation:e})-1},updateBlendMode:function(t,e,i){return this.blendModes[t]&&(this.blendModes[t].func=e,i&&(this.blendModes[t].equation=i)),this},removeBlendMode:function(t){return t>17&&this.blendModes[t]&&this.blendModes.splice(t,1),this},setBlankTexture:function(t){void 0===t&&(t=!1),!t&&0===this.currentActiveTextureUnit&&this.currentTextures[0]||this.setTexture2D(this.blankTexture.glTexture,0)},setTexture2D:function(t,e,i){void 0===i&&(i=!0);var n=this.gl;return t!==this.currentTextures[e]&&(i&&this.flush(),this.currentActiveTextureUnit!==e&&(n.activeTexture(n.TEXTURE0+e),this.currentActiveTextureUnit=e),n.bindTexture(n.TEXTURE_2D,t),this.currentTextures[e]=t),this},setFramebuffer:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.width,s=this.height;return t!==this.currentFramebuffer&&(t&&t.renderTexture?(n=t.renderTexture.width,s=t.renderTexture.height):this.flush(),i.bindFramebuffer(i.FRAMEBUFFER,t),i.viewport(0,0,n,s),e&&(t?(this.drawingBufferHeight=s,this.pushScissor(0,0,n,s)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=t),this},setProgram:function(t){var e=this.gl;return t!==this.currentProgram&&(this.flush(),e.useProgram(t),this.currentProgram=t),this},setVertexBuffer:function(t){var e=this.gl;return t!==this.currentVertexBuffer&&(this.flush(),e.bindBuffer(e.ARRAY_BUFFER,t),this.currentVertexBuffer=t),this},setIndexBuffer:function(t){var e=this.gl;return t!==this.currentIndexBuffer&&(this.flush(),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.currentIndexBuffer=t),this},createTextureFromSource:function(t,e,i,n){var s=this.gl,r=s.NEAREST,a=s.NEAREST,l=s.CLAMP_TO_EDGE;e=t?t.width:e,i=t?t.height:i;var u=h(e,i);return u&&(l=s.REPEAT),n===o.ScaleModes.LINEAR&&this.config.antialias&&(r=u?this.mipmapFilter:s.LINEAR,a=s.LINEAR),t||"number"!=typeof e||"number"!=typeof i?this.createTexture2D(0,r,a,l,l,s.RGBA,t):this.createTexture2D(0,r,a,l,l,s.RGBA,null,e,i)},createTexture2D:function(t,e,i,n,s,r,o,a,l,u,c,d){u=void 0===u||null===u||u,void 0===c&&(c=!1),void 0===d&&(d=!1);var f=this.gl,p=f.createTexture();return this.setTexture2D(p,0),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,e),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,i),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,s),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,n),f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,u),f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,d),null===o||void 0===o?f.texImage2D(f.TEXTURE_2D,t,r,a,l,0,r,f.UNSIGNED_BYTE,null):(c||(a=o.width,l=o.height),f.texImage2D(f.TEXTURE_2D,t,r,r,f.UNSIGNED_BYTE,o)),h(a,l)&&f.generateMipmap(f.TEXTURE_2D),this.setTexture2D(null,0),p.isAlphaPremultiplied=u,p.isRenderTexture=!1,p.width=a,p.height=l,this.nativeTextures.push(p),p},createFramebuffer:function(t,e,i,n){var s,r=this.gl,o=r.createFramebuffer();if(this.setFramebuffer(o),n){var a=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,a),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t,e),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,a)}if(i.isRenderTexture=!0,i.isAlphaPremultiplied=!1,r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,i,0),(s=r.checkFramebufferStatus(r.FRAMEBUFFER))!==r.FRAMEBUFFER_COMPLETE){throw new Error("Framebuffer incomplete. Framebuffer status: "+{36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"}[s])}return o.renderTexture=i,this.setFramebuffer(null),o},createProgram:function(t,e){var i=this.gl,n=i.createProgram(),s=i.createShader(i.VERTEX_SHADER),r=i.createShader(i.FRAGMENT_SHADER);if(i.shaderSource(s,t),i.shaderSource(r,e),i.compileShader(s),i.compileShader(r),!i.getShaderParameter(s,i.COMPILE_STATUS))throw new Error("Failed to compile Vertex Shader:\n"+i.getShaderInfoLog(s));if(!i.getShaderParameter(r,i.COMPILE_STATUS))throw new Error("Failed to compile Fragment Shader:\n"+i.getShaderInfoLog(r));if(i.attachShader(n,s),i.attachShader(n,r),i.linkProgram(n),!i.getProgramParameter(n,i.LINK_STATUS))throw new Error("Failed to link program:\n"+i.getProgramInfoLog(n));return n},createVertexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setVertexBuffer(n),i.bufferData(i.ARRAY_BUFFER,t,e),this.setVertexBuffer(null),n},createIndexBuffer:function(t,e){var i=this.gl,n=i.createBuffer();return this.setIndexBuffer(n),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t,e),this.setIndexBuffer(null),n},deleteTexture:function(t){var e=this.nativeTextures.indexOf(t);return-1!==e&&c(this.nativeTextures,e),this.gl.deleteTexture(t),this.currentTextures[0]!==t||this.game.pendingDestroy||this.setBlankTexture(!0),this},deleteFramebuffer:function(t){return this.gl.deleteFramebuffer(t),this},deleteProgram:function(t){return this.gl.deleteProgram(t),this},deleteBuffer:function(t){return this.gl.deleteBuffer(t),this},preRenderCamera:function(t){var e=t._cx,i=t._cy,n=t._cw,r=t._ch,o=this.pipelines.TextureTintPipeline,a=t.backgroundColor;if(t.renderToTexture){this.flush(),this.pushScissor(e,i,n,-r),this.setFramebuffer(t.framebuffer);var h=this.gl;h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT),o.projOrtho(e,n+e,i,r+i,-1e3,1e3),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n+e,r+i,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL),t.emit(s.PRE_RENDER,t)}else this.pushScissor(e,i,n,r),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&o.drawFillRect(e,i,n,r,p.getTintFromFloats(a.redGL,a.greenGL,a.blueGL,1),a.alphaGL)},getCurrentStencilMask:function(){var t=null,e=this.maskStack,i=this.currentCameraMask;return e.length>0?t=e[e.length-1]:i.mask&&i.mask.isStencil&&(t=i),t},postRenderCamera:function(t){var e=this.pipelines.TextureTintPipeline;if(t.flashEffect.postRenderWebGL(e,p.getTintFromFloats),t.fadeEffect.postRenderWebGL(e,p.getTintFromFloats),t.dirty=!1,this.popScissor(),t.renderToTexture){if(e.flush(),this.setFramebuffer(null),t.emit(s.POST_RENDER,t),t.renderToGame){e.projOrtho(0,e.width,e.height,0,-1e3,1e3);var i=p.getTintAppendFloatAlpha;(t.pipeline?t.pipeline:e).batchTexture(t,t.glTexture,t.width,t.height,t.x,t.y,t.width,t.height,t.zoom,t.zoom,t.rotation,t.flipX,!t.flipY,1,1,0,0,0,0,t.width,t.height,i(t._tintTL,t._alphaTL),i(t._tintTR,t._alphaTR),i(t._tintBL,t._alphaBL),i(t._tintBR,t._alphaBR),t._isTinted&&t.tintFill,0,0,this.defaultCamera,null)}this.setBlankTexture(!0)}t.mask&&(this.currentCameraMask.mask=null,t.mask.postRenderWebGL(this,t._maskCamera))},preRender:function(){if(!this.contextLost){var t=this.gl,e=this.pipelines;if(t.bindFramebuffer(t.FRAMEBUFFER,null),this.config.clearBeforeRender){var i=this.config.backgroundColor;t.clearColor(i.redGL,i.greenGL,i.blueGL,i.alphaGL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}for(var n in t.enable(t.SCISSOR_TEST),e)e[n].onPreRender();this.currentScissor=[0,0,this.width,this.height],this.scissorStack=[this.currentScissor],this.game.scene.customViewports&&t.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.setPipeline(this.pipelines.TextureTintPipeline)}},render:function(t,e,i,n){if(!this.contextLost){var s=e.list,r=s.length,a=this.pipelines;for(var h in a)a[h].onRender(t,n);if(this.preRenderCamera(n),0===r)return this.setBlendMode(o.BlendModes.NORMAL),void this.postRenderCamera(n);this.currentType="";for(var l=this.currentMask,u=0;u0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},createVideoTexture:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=this.gl,s=n.NEAREST,r=n.NEAREST,o=t.videoWidth,a=t.videoHeight,l=n.CLAMP_TO_EDGE,u=h(o,a);return!e&&u&&(l=n.REPEAT),this.config.antialias&&(s=u?this.mipmapFilter:n.LINEAR,r=n.LINEAR),this.createTexture2D(0,s,r,l,l,n.RGBA,t,o,a,!0,!0,i)},updateVideoTexture:function(t,e,i){void 0===i&&(i=!1);var n=this.gl,s=t.videoWidth,r=t.videoHeight;return s>0&&r>0&&(this.setTexture2D(e,0),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,i),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.width=s,e.height=r,this.setTexture2D(null,0)),e},setTextureFilter:function(t,e){var i=this.gl,n=[i.LINEAR,i.NEAREST][e];return this.setTexture2D(t,0),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,n),this.setTexture2D(null,0),this},setFloat1:function(t,e,i){return this.setProgram(t),this.gl.uniform1f(this.gl.getUniformLocation(t,e),i),this},setFloat2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2f(this.gl.getUniformLocation(t,e),i,n),this},setFloat3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3f(this.gl.getUniformLocation(t,e),i,n,s),this},setFloat4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4f(this.gl.getUniformLocation(t,e),i,n,s,r),this},setFloat1v:function(t,e,i){return this.setProgram(t),this.gl.uniform1fv(this.gl.getUniformLocation(t,e),i),this},setFloat2v:function(t,e,i){return this.setProgram(t),this.gl.uniform2fv(this.gl.getUniformLocation(t,e),i),this},setFloat3v:function(t,e,i){return this.setProgram(t),this.gl.uniform3fv(this.gl.getUniformLocation(t,e),i),this},setFloat4v:function(t,e,i){return this.setProgram(t),this.gl.uniform4fv(this.gl.getUniformLocation(t,e),i),this},setInt1:function(t,e,i){return this.setProgram(t),this.gl.uniform1i(this.gl.getUniformLocation(t,e),i),this},setInt2:function(t,e,i,n){return this.setProgram(t),this.gl.uniform2i(this.gl.getUniformLocation(t,e),i,n),this},setInt3:function(t,e,i,n,s){return this.setProgram(t),this.gl.uniform3i(this.gl.getUniformLocation(t,e),i,n,s),this},setInt4:function(t,e,i,n,s,r){return this.setProgram(t),this.gl.uniform4i(this.gl.getUniformLocation(t,e),i,n,s,r),this},setMatrix2:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix2fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix3:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix3fv(this.gl.getUniformLocation(t,e),i,n),this},setMatrix4:function(t,e,i,n){return this.setProgram(t),this.gl.uniformMatrix4fv(this.gl.getUniformLocation(t,e),i,n),this},getMaxTextures:function(){return this.config.maxTextures},getMaxTextureSize:function(){return this.config.maxTextureSize},destroy:function(){for(var t=0;t0&&this.flush();var e=this.inverseRotationMatrix;if(t){var i=-t,n=Math.cos(i),s=Math.sin(i);e[1]=s,e[3]=-s,e[0]=e[4]=n}else e[0]=e[4]=1,e[1]=e[3]=0;this.renderer.setMatrix3(this.program,"uInverseRotationMatrix",!1,e),this.currentNormalMapRotation=t}},batchSprite:function(t,e,i){if(this.active){var n=t.texture.dataSource[t.frame.sourceIndex];n&&(this.renderer.setPipeline(this),this.setTexture2D(n.glTexture,1),this.setNormalMapRotation(t.rotation),r.prototype.batchSprite.call(this,t,e,i))}}});a.LIGHT_COUNT=o,t.exports=a},function(t,e,i){var n=i(0),s=i(2),r=i(235),o=i(337),a=i(338),h=i(30),l=i(142),u=new n({Extends:l,Mixins:[r],initialize:function(t){var e=t.renderer.config;l.call(this,{game:t.game,renderer:t.renderer,gl:t.renderer.gl,topology:t.renderer.gl.TRIANGLE_STRIP,vertShader:s(t,"vertShader",a),fragShader:s(t,"fragShader",o),vertexCapacity:s(t,"vertexCapacity",6*e.batchSize),vertexSize:s(t,"vertexSize",5*Float32Array.BYTES_PER_ELEMENT+4*Uint8Array.BYTES_PER_ELEMENT),attributes:[{name:"inPosition",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:0},{name:"inTexCoord",size:2,type:t.renderer.gl.FLOAT,normalized:!1,offset:2*Float32Array.BYTES_PER_ELEMENT},{name:"inTintEffect",size:1,type:t.renderer.gl.FLOAT,normalized:!1,offset:4*Float32Array.BYTES_PER_ELEMENT},{name:"inTint",size:4,type:t.renderer.gl.UNSIGNED_BYTE,normalized:!0,offset:5*Float32Array.BYTES_PER_ELEMENT}]}),this.vertexViewF32=new Float32Array(this.vertexData),this.vertexViewU32=new Uint32Array(this.vertexData),this.maxQuads=e.batchSize,this.batches=[],this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.mvpInit()},onBind:function(){return l.prototype.onBind.call(this),this.mvpUpdate(),this},resize:function(t,e,i){return l.prototype.resize.call(this,t,e,i),this.projOrtho(0,this.width,this.height,0,-1e3,1e3),this},setTexture2D:function(t,e){return void 0===t&&(t=this.renderer.blankTexture.glTexture),void 0===e&&(e=0),this.requireTextureBatch(t,e)&&this.pushBatch(t,e),this},requireTextureBatch:function(t,e){var i=this.batches,n=i.length;return!(n>0)||!((e>0?i[n-1].textures[e-1]:i[n-1].texture)===t)},pushBatch:function(t,e){if(0===e)this.batches.push({first:this.vertexCount,texture:t,textures:[]});else{var i=[];i[e-1]=t,this.batches.push({first:this.vertexCount,texture:null,textures:i})}},flush:function(){if(this.flushLocked)return this;this.flushLocked=!0;var t,e,i,n=this.gl,s=this.vertexCount,r=this.topology,o=this.vertexSize,a=this.renderer,h=this.batches,l=h.length,u=0,c=null;if(0===l||0===s)return this.flushLocked=!1,this;n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,s*o));for(var d=0;d0){for(e=0;e0){for(e=0;e0&&(a.setTexture2D(c.texture,0,!1),n.drawArrays(r,c.first,u)),this.vertexCount=0,h.length=0,this.flushLocked=!1,this}});t.exports=u},function(t,e,i){var n={};t.exports=n;var s=i(98),r=i(37);n.fromVertices=function(t){for(var e={},i=0;i1?1:0;d1?1:0;p0:0!=(t.mask&e.category)&&0!=(e.mask&t.category)}},function(t,e,i){var n={};t.exports=n;var s=i(85),r=i(98);n.collides=function(t,e,i){var o,a,h,l,u=!1;if(i){var c=t.parent,d=e.parent,f=c.speed*c.speed+c.angularSpeed*c.angularSpeed+d.speed*d.speed+d.angularSpeed*d.angularSpeed;u=i&&i.collided&&f<.2,l=i}else l={collided:!1,bodyA:t,bodyB:e};if(i&&u){var p=l.axisBody,g=p===t?e:t,v=[p.axes[i.axisNumber]];if(h=n._overlapAxes(p.vertices,g.vertices,v),l.reused=!0,h.overlap<=0)return l.collided=!1,l}else{if((o=n._overlapAxes(t.vertices,e.vertices,t.axes)).overlap<=0)return l.collided=!1,l;if((a=n._overlapAxes(e.vertices,t.vertices,e.axes)).overlap<=0)return l.collided=!1,l;o.overlaps?s=a:a=0?o.index-1:u.length-1],l.x=s.x-c.x,l.y=s.y-c.y,h=-r.dot(i,l),a=s,s=u[(o.index+1)%u.length],l.x=s.x-c.x,l.y=s.y-c.y,(n=-r.dot(i,l))>>0;if("function"!=typeof t)throw new TypeError;for(var n=arguments.length>=2?arguments[1]:void 0,s=0;s>16)+(65280&t)+((255&t)<<16)},n={_tintTL:16777215,_tintTR:16777215,_tintBL:16777215,_tintBR:16777215,_isTinted:!1,tintFill:!1,clearTint:function(){return this.setTint(16777215),this._isTinted=!1,this},setTint:function(t,e,n,s){return void 0===t&&(t=16777215),void 0===e&&(e=t,n=t,s=t),this._tintTL=i(t),this._tintTR=i(e),this._tintBL=i(n),this._tintBR=i(s),this._isTinted=!0,this.tintFill=!1,this},setTintFill:function(t,e,i,n){return this.setTint(t,e,i,n),this.tintFill=!0,this},tintTopLeft:{get:function(){return this._tintTL},set:function(t){this._tintTL=i(t),this._isTinted=!0}},tintTopRight:{get:function(){return this._tintTR},set:function(t){this._tintTR=i(t),this._isTinted=!0}},tintBottomLeft:{get:function(){return this._tintBL},set:function(t){this._tintBL=i(t),this._isTinted=!0}},tintBottomRight:{get:function(){return this._tintBR},set:function(t){this._tintBR=i(t),this._isTinted=!0}},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){return this._isTinted}}};t.exports=n},function(t,e){t.exports="changedata"},function(t,e){t.exports="changedata-"},function(t,e){t.exports="removedata"},function(t,e){t.exports="setdata"},function(t,e){t.exports="destroy"},function(t,e){t.exports="complete"},function(t,e){t.exports="created"},function(t,e){t.exports="error"},function(t,e){t.exports="loop"},function(t,e){t.exports="play"},function(t,e){t.exports="seeked"},function(t,e){t.exports="seeking"},function(t,e){t.exports="stop"},function(t,e){t.exports="timeout"},function(t,e){t.exports="unlocked"},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"alpha",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"x",e,i,s,r)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r,o,a){return void 0!==i&&null!==i||(i=e),n(t,"x",e,s,o,a),n(t,"y",i,r,o,a)}},function(t,e,i){var n=i(34);t.exports=function(t,e,i,s,r){return n(t,"y",e,i,s,r)}},function(t,e){t.exports=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=6.28);for(var s=i,r=(n-i)/t.length,o=0;o0?s(o,i):i<0&&r(o,Math.abs(i));for(var a=0;a1)if(0===s){var d=t.length-1;for(o=t[d].x,a=t[d].y,h=d-1;h>=0;h--)l=(c=t[h]).x,u=c.y,c.x=o,c.y=a,o=l,a=u;t[d].x=e,t[d].y=i}else{for(o=t[0].x,a=t[0].y,h=1;h0?(this._speedX-=this.dragX*t,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*t,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*t,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*t,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom&&(e.zoom+=this._zoom,e.zoom<.001&&(e.zoom=.001))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=r},function(t,e,i){t.exports={Camera:i(290),BaseCamera:i(90),CameraManager:i(698),Effects:i(298),Events:i(48)}},function(t,e){t.exports="cameradestroy"},function(t,e){t.exports="camerafadeincomplete"},function(t,e){t.exports="camerafadeinstart"},function(t,e){t.exports="camerafadeoutcomplete"},function(t,e){t.exports="camerafadeoutstart"},function(t,e){t.exports="cameraflashcomplete"},function(t,e){t.exports="cameraflashstart"},function(t,e){t.exports="camerapancomplete"},function(t,e){t.exports="camerapanstart"},function(t,e){t.exports="postrender"},function(t,e){t.exports="prerender"},function(t,e){t.exports="camerashakecomplete"},function(t,e){t.exports="camerashakestart"},function(t,e){t.exports="camerazoomcomplete"},function(t,e){t.exports="camerazoomstart"},function(t,e,i){var n=i(22),s=i(0),r=i(48),o=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s,o,a,h){if(void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=0),void 0===o&&(o=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene),!o&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=n,this.blue=s,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h;var l=t?r.FADE_OUT_START:r.FADE_IN_START;return this.camera.emit(l,this.camera,this,e,i,n,s),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed=1?1:1/e*(1+(e*t|0))}},function(t,e,i){var n=i(22),s=i(0),r=i(48),o=i(3),a=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new o,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,s){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===i&&(i=!1),void 0===n&&(n=null),void 0===s&&(s=this.camera.scene),!i&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=t,this.progress=0,"number"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=n,this._onUpdateScope=s,this.camera.emit(r.SHAKE_START,this.camera,this,t,e),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){if(this.isRunning)if(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed0&&(o.preRender(1),t.render(n,e,i,o))}},resetAll:function(){for(var t=0;t1)for(var i=1;i=1)&&(s.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(s.mspointer=!0),navigator.getGamepads&&(s.gamepads=!0),"onwheel"in window||n.ie&&"WheelEvent"in window?s.wheelEvent="wheel":"onmousewheel"in window?s.wheelEvent="mousewheel":n.firefox&&"MouseScrollEvent"in window&&(s.wheelEvent="DOMMouseScroll"),s)},function(t,e,i){var n=i(114),s={audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){s.audioData=!!window.Audio,s.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t=document.createElement("audio"),e=!!t.canPlayType;try{if(e&&(t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")&&(s.ogg=!0),(t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,"")||t.canPlayType("audio/opus;").replace(/^no$/,""))&&(s.opus=!0),t.canPlayType("audio/mpeg;").replace(/^no$/,"")&&(s.mp3=!0),t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")&&(s.wav=!0),(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;").replace(/^no$/,""))&&(s.m4a=!0),t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")&&(s.webm=!0),""!==t.canPlayType('audio/mp4;codecs="ec-3"')))if(n.edge)s.dolby=!0;else if(n.safari&&n.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var i=parseInt(RegExp.$1,10),r=parseInt(RegExp.$2,10);(10===i&&r>=11||i>10)&&(s.dolby=!0)}}catch(t){}return s}()},function(t,e){var i={h264:!1,hls:!1,mp4:!1,ogg:!1,vp9:!1,webm:!1};t.exports=function(){var t=document.createElement("video"),e=!!t.canPlayType;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")&&(i.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.h264=!0,i.mp4=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")&&(i.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")&&(i.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")&&(i.hls=!0))}catch(t){}return i}()},function(t,e){var i={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){var t,e="Fullscreen",n="FullScreen",s=["request"+e,"request"+n,"webkitRequest"+e,"webkitRequest"+n,"msRequest"+e,"msRequest"+n,"mozRequest"+n,"mozRequest"+e];for(t=0;tMath.PI&&(t-=n.PI2),Math.abs(((t+n.TAU)%n.PI2-n.PI2)%n.PI2)}},function(t,e,i){var n=i(315);t.exports=function(t){return n(t+Math.PI)}},function(t,e,i){var n=i(15);t.exports=function(t,e,i){return void 0===i&&(i=.05),t===e?t:(Math.abs(e-t)<=i||Math.abs(e-t)>=n.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e1?t[i]-(n(s-i,t[i],t[i],t[i-1],t[i-1])-t[i]):n(s-r,t[r?r-1:0],t[r],t[i1?n(t[i],t[i-1],i-s):n(t[r],t[r+1>i?i:r+1],s-r)}},function(t,e,i){var n=i(155);t.exports=function(t,e,i){return e+(i-e)*n(t,0,1)}},function(t,e,i){t.exports={GetNext:i(325),IsSize:i(115),IsValue:i(753)}},function(t,e){t.exports=function(t){return t>0&&0==(t&t-1)}},function(t,e,i){t.exports={Ceil:i(326),Floor:i(92),To:i(755)}},function(t,e){t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),n?(i+t)/e:i+t)}},function(t,e,i){var n=new(i(0))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var n=0;n>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return this.n=i,2.3283064365386963e-10*(i>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e0;e--){var i=Math.floor(this.frac()*(e+1)),n=t[i];t[i]=t[e],t[e]=n}return t}});t.exports=n},function(t,e){t.exports=function(t){for(var e=0,i=0;i1?void 0!==n?(s=(n-t)/(n-i))<0&&(s=0):s=1:s<0&&(s=0),s}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},function(t,e){t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,n=2*Math.random()-1,s=Math.sqrt(1-n*n)*e;return t.x=Math.cos(i)*s,t.y=Math.sin(i)*s,t.z=n*e,t}},function(t,e){t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},function(t,e){t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.round(t*n)/n}},function(t,e){t.exports=function(t,e,i,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=1),n*=Math.PI/t;for(var s=[],r=[],o=0;o0&&t<=e*i&&(r=t>e-1?t-(o=Math.floor(t/e))*e:t,s.set(r,o)),s}},function(t,e){t.exports=function(t,e,i){return Math.abs(t-e)<=i}},function(t,e,i){var n=i(170),s=i(333),r=i(334),o=new s,a=new r,h=new n;t.exports=function(t,e,i){return a.setAxisAngle(e,i),o.fromRotationTranslation(a,h.set(0,0,0)),t.transformMat4(o)}},function(t,e){t.exports="addtexture"},function(t,e){t.exports="onerror"},function(t,e){t.exports="onload"},function(t,e){t.exports="ready"},function(t,e){t.exports="removetexture"},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","","precision mediump float;","","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","","void main()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," float alpha = mainColor.a;",""," if (!uInvertMaskAlpha)"," {"," alpha *= (maskColor.a);"," }"," else"," {"," alpha *= (1.0 - maskColor.a);"," }",""," gl_FragColor = vec4(mainColor.rgb * alpha, alpha);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","","precision mediump float;","","attribute vec2 inPosition;","","void main()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}",""].join("\n")},function(t,e){t.exports=["#define SHADER_NAME PHASER_FORWARD_DIFFUSE_FS","","precision mediump float;","","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","","const int kMaxLights = %LIGHT_COUNT%;","","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","","varying vec2 outTexCoord;","varying vec4 outTint;","","void main()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 color = texture2D(uMainSampler, outTexCoord) * vec4(outTint.rgb * outTint.a, outTint.a);"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;",""," for (int index = 0; index < kMaxLights; ++index)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }",""," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","","}",""].join("\n")},function(t,e,i){t.exports={GenerateTexture:i(343),Palettes:i(784)}},function(t,e,i){t.exports={ARNE16:i(344),C64:i(785),CGA:i(786),JMP:i(787),MSX:i(788)}},function(t,e){t.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},function(t,e){t.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},function(t,e){t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},function(t,e,i){t.exports={Path:i(790),CubicBezier:i(345),Curve:i(80),Ellipse:i(346),Line:i(347),QuadraticBezier:i(348),Spline:i(349)}},function(t,e,i){var n=i(0),s=i(345),r=i(346),o=i(5),a=i(347),h=i(791),l=i(348),u=i(12),c=i(349),d=i(3),f=i(15),p=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return void 0===e&&(e=!1),this.ellipseTo(t,t,0,360,e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new a(e,t)),this},cubicBezierTo:function(t,e,i,n,r,o){var a,h,l,u=this.getEndPoint();return t instanceof d?(a=t,h=e,l=i):(a=new d(i,n),h=new d(r,o),l=new d(t,e)),this.add(new s(u,a,h,l))},quadraticBezierTo:function(t,e,i,n){var s,r,o=this.getEndPoint();return t instanceof d?(s=t,r=e):(s=new d(i,n),r=new d(t,e)),this.add(new l(o,s,r))},draw:function(t,e){for(var i=0;i0?this.curves[this.curves.length-1].getPoint(1,t):t.copy(this.startPoint),t},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),n=this.getCurveLengths(),s=0;s=i){var r=n[s]-i,o=this.curves[s],a=o.getLength(),h=0===a?0:1-r/a;return o.getPointAt(h,e)}s++}return null},getPoints:function(t){void 0===t&&(t=12);for(var e,i=[],n=0;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i},getRandomPoint:function(t){return void 0===t&&(t=new d),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getStartPoint:function(t){return void 0===t&&(t=new d),t.copy(this.startPoint)},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):this._tmpVec2B.set(t,e);var i=this.getEndPoint(this._tmpVec2A);return this.add(new a([i.x,i.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new h(t.x,t.y)):this.add(new h(t,e))},toJSON:function(){for(var t=[],e=0;e>16&255,g:t>>8&255,b:255&t,a:255};return t>16777215&&(e.a=t>>>24),e}},function(t,e,i){var n=i(32),s=i(353);t.exports=function(t,e,i){var r=i,o=i,a=i;if(0!==e){var h=i<.5?i*(1+e):i+e-i*e,l=2*i-h;r=s(l,h,t+1/3),o=s(l,h,t),a=s(l,h,t-1/3)}return(new n).setGLTo(r,o,a,1)}},function(t,e,i){var n=i(161);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],s=0;s<=359;s++)i.push(n(s/359,t,e));return i}},function(t,e,i){var n=i(112),s=function(t,e,i,s,r,o,a,h){void 0===a&&(a=100),void 0===h&&(h=0);var l=h/a;return{r:n(t,s,l),g:n(e,r,l),b:n(i,o,l)}};t.exports={RGBWithRGB:s,ColorWithRGB:function(t,e,i,n,r,o){return void 0===r&&(r=100),void 0===o&&(o=0),s(t.r,t.g,t.b,e,i,n,r,o)},ColorWithColor:function(t,e,i,n){return void 0===i&&(i=100),void 0===n&&(n=0),s(t.r,t.g,t.b,e.r,e.g,e.b,i,n)}}},function(t,e,i){var n=i(168),s=i(32);t.exports=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=255),new s(n(t,e),n(t,e),n(t,e))}},function(t,e,i){var n=i(352);t.exports=function(t,e,i,s,r){return void 0===s&&(s=255),void 0===r&&(r="#"),"#"===r?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1):"0x"+n(s)+n(t)+n(e)+n(i)}},function(t,e,i){t.exports={BitmapMask:i(275),GeometryMask:i(276)}},function(t,e,i){var n={AddToDOM:i(117),DOMContentLoaded:i(354),GetScreenOrientation:i(355),GetTarget:i(360),ParseXML:i(361),RemoveFromDOM:i(174),RequestAnimationFrame:i(341)};t.exports=n},function(t,e,i){t.exports={EventEmitter:i(813)}},function(t,e,i){var n=i(0),s=i(10),r=i(23),o=new n({Extends:s,initialize:function(){s.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});r.register("EventEmitter",o,"events"),t.exports=o},function(t,e,i){var n=i(117),s=i(286),r=i(289),o=i(26),a=i(0),h=i(311),l=i(815),u=i(335),c=i(110),d=i(339),f=i(312),p=i(354),g=i(10),v=i(18),m=i(362),y=i(23),x=i(367),T=i(368),w=i(370),b=i(116),E=i(373),S=i(340),_=i(342),A=i(377),C=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new s(this),this.textures=new E(this),this.cache=new r(this),this.registry=new c(this),this.input=new m(this,this.config),this.scene=new w(this,this.config.sceneConfig),this.device=f,this.scale=new T(this,this.config),this.sound=null,this.sound=A.create(this),this.loop=new S(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,p(this.boot.bind(this))},boot:function(){y.hasCore("EventEmitter")?(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),l(this),d(this),n(this.canvas,this.config.parent),this.textures.once(b.READY,this.texturesReady,this),this.events.emit(v.BOOT)):console.warn("Aborting. Core Plugins missing.")},texturesReady:function(){this.events.emit(v.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),_(this);var t=this.events;t.on(v.HIDDEN,this.onHidden,this),t.on(v.VISIBLE,this.onVisible,this),t.on(v.BLUR,this.onBlur,this),t.on(v.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e);var n=this.renderer;n.preRender(),i.emit(v.PRE_RENDER,n,t,e),this.scene.render(n),n.postRender(),i.emit(v.POST_RENDER,n,t,e)},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i=this.events;i.emit(v.PRE_STEP,t,e),i.emit(v.STEP,t,e),this.scene.update(t,e),i.emit(v.POST_STEP,t,e),i.emit(v.PRE_RENDER),i.emit(v.POST_RENDER)},onHidden:function(){this.loop.pause(),this.events.emit(v.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(v.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(v.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=C},function(t,e,i){var n=i(117);t.exports=function(t){var e=t.config;if(e.parent&&e.domCreateContainer){var i=document.createElement("div");i.style.cssText=["display: block;","width: "+t.scale.width+"px;","height: "+t.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: none;","transform: scale(1);","transform-origin: left top;"].join(" "),t.domContainer=i,n(i,e.parent)}}},function(t,e){t.exports="boot"},function(t,e){t.exports="destroy"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameout"},function(t,e){t.exports="gameover"},function(t,e){t.exports="gameobjectdown"},function(t,e){t.exports="dragend"},function(t,e){t.exports="dragenter"},function(t,e){t.exports="drag"},function(t,e){t.exports="dragleave"},function(t,e){t.exports="dragover"},function(t,e){t.exports="dragstart"},function(t,e){t.exports="drop"},function(t,e){t.exports="gameobjectmove"},function(t,e){t.exports="gameobjectout"},function(t,e){t.exports="gameobjectover"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="wheel"},function(t,e){t.exports="gameobjectup"},function(t,e){t.exports="gameobjectwheel"},function(t,e){t.exports="boot"},function(t,e){t.exports="process"},function(t,e){t.exports="update"},function(t,e){t.exports="pointerdown"},function(t,e){t.exports="pointerdownoutside"},function(t,e){t.exports="pointermove"},function(t,e){t.exports="pointerout"},function(t,e){t.exports="pointerover"},function(t,e){t.exports="pointerup"},function(t,e){t.exports="pointerupoutside"},function(t,e){t.exports="wheel"},function(t,e){t.exports="pointerlockchange"},function(t,e){t.exports="preupdate"},function(t,e){t.exports="shutdown"},function(t,e){t.exports="start"},function(t,e){t.exports="update"},function(t,e){t.exports=function(t){if(!t)return window.innerHeight;var e=Math.abs(window.orientation),i={w:0,h:0},n=document.createElement("div");return n.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(n),i.w=90===e?n.offsetHeight:window.innerWidth,i.h=90===e?window.innerWidth:n.offsetHeight,document.documentElement.removeChild(n),n=null,90!==Math.abs(window.orientation)?i.h:i.w}},function(t,e){t.exports="addfile"},function(t,e){t.exports="complete"},function(t,e){t.exports="filecomplete"},function(t,e){t.exports="filecomplete-"},function(t,e){t.exports="loaderror"},function(t,e){t.exports="load"},function(t,e){t.exports="fileprogress"},function(t,e){t.exports="postprocess"},function(t,e){t.exports="progress"},function(t,e){t.exports="start"},function(t,e,i){var n=i(2),s=i(177);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,i=n(t.settings,"physics",!1);if(e||i){var r=[];if(e&&r.push(s(e+"Physics")),i)for(var o in i)o=s(o.concat("Physics")),-1===r.indexOf(o)&&r.push(o);return r}}},function(t,e,i){var n=i(2);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),i=n(t.settings,"plugins",!1);return Array.isArray(i)?i:e||[]}},function(t,e,i){t.exports={game:"game",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"}},function(t,e){t.exports=function(t,e,i){if(i.getElementsByTagName("TextureAtlas")){var n=t.source[e];t.add("__BASE",e,0,0,n.width,n.height);for(var s,r=i.getElementsByTagName("SubTexture"),o=0;og||c<-g)&&(c=0),c<0&&(c=g+c),-1!==d&&(g=c+(d+1));for(var v=f,m=f,y=0,x=0,T=0;Tr&&(y=w-r),b>o&&(x=b-o),t.add(T,e,i+v,s+m,h-y,l-x),(v+=h+p)+h>r&&(v=f,m+=l+p)}return t}},function(t,e,i){var n=i(2);t.exports=function(t,e,i){var s=n(i,"frameWidth",null),r=n(i,"frameHeight",s);if(!s)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var o=t.source[0];t.add("__BASE",0,0,0,o.width,o.height);var a,h=n(i,"startFrame",0),l=n(i,"endFrame",-1),u=n(i,"margin",0),c=n(i,"spacing",0),d=e.cutX,f=e.cutY,p=e.cutWidth,g=e.cutHeight,v=e.realWidth,m=e.realHeight,y=Math.floor((v-u+c)/(s+c)),x=Math.floor((m-u+c)/(r+c)),T=y*x,w=e.x,b=s-w,E=s-(v-p-w),S=e.y,_=r-S,A=r-(m-g-S);(h>T||h<-T)&&(h=0),h<0&&(h=T+h),-1!==l&&(T=h+(l+1));for(var C=u,M=u,P=0,O=e.sourceIndex,R=0;R0){var r=i-t.length;if(r<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.push(e),n&&n.call(s,e),e):null;for(var o=e.length-1;o>=0;)-1!==t.indexOf(e[o])&&e.splice(o,1),o--;if(0===(o=e.length))return null;i>0&&o>r&&(e.splice(r),o=r);for(var a=0;a0){var o=n-t.length;if(o<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.splice(i,0,e),s&&s.call(r,e),e):null;for(var a=e.length-1;a>=0;)-1!==t.indexOf(e[a])&&e.pop(),a--;if(0===(a=e.length))return null;n>0&&a>o&&(e.splice(o),a=o);for(var h=a-1;h>=0;h--){var l=e[h];t.splice(i,0,l),s&&s.call(r,l)}return e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i0){var n=t[i-1],s=t.indexOf(n);t[i]=n,t[s]=e}return t}},function(t,e){t.exports=function(t,e,i){var n=t.indexOf(e);if(-1===n||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return n!==i&&(t.splice(n,1),t.splice(i,0,e)),e}},function(t,e){t.exports=function(t,e){var i=t.indexOf(e);if(-1!==i&&it.length-1)throw new Error("Index out of bounds");var r=n(t,e);return i&&i.call(s,r),r}},function(t,e,i){var n=i(66);t.exports=function(t,e,i,s,r){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===r&&(r=t),n(t,e,i)){var o=i-e,a=t.splice(e,o);if(s)for(var h=0;h0&&(t.splice(i,1),t.unshift(e)),e}},function(t,e,i){var n=i(66);t.exports=function(t,e,i,s,r){if(void 0===s&&(s=0),void 0===r&&(r=t.length),n(t,s,r))for(var o=s;o0){for(n=0;nl||U-N>l?(Y.push(X.i-1),X.cr?(Y.push(X.i+X.word.length),N=0,B=null):B=X):X.cr&&(Y.push(X.i+X.word.length),N=0,B=null)}for(n=Y.length-1;n>=0;n--)s=a,r=Y[n],o="\n",a=s.substr(0,r)+o+s.substr(r+1);i.wrappedText=a,h=a.length,F=[],k=null}for(n=0;nb&&(c=b),d>E&&(d=E);var G=b+w.xAdvance,V=E+v;fR&&(R=D),DR&&(R=D),D0&&(a=(o=z.wrappedText).length);var U=e._bounds.lines;1===N?X=(U.longest-U.lengths[0])/2:2===N&&(X=U.longest-U.lengths[0]);for(var W=s.roundPixels,G=0;G0&&(a=(o=L.wrappedText).length);var D=e._bounds.lines;1===P?R=(D.longest-D.lengths[0])/2:2===P&&(R=D.longest-D.lengths[0]),h.translate(-e.displayOriginX,-e.displayOriginY);for(var F=s.roundPixels,k=0;k0!=t>0,this._alpha=t}}});t.exports=r},function(t,e,i){var n=i(1),s=i(1);n=i(950),s=i(951),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){var r=e.list;if(0!==r.length){var o=e.localTransform;s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var a=-1!==e.blendMode;a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=r,d=r.length,f=0;f0||e.cropHeight>0;l&&(h.flush(),t.pushScissor(e.x,e.y,e.cropWidth*e.scaleX,e.cropHeight*e.scaleY));var u=h._tempMatrix1,c=h._tempMatrix2,d=h._tempMatrix3,f=h._tempMatrix4;c.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),u.copyFrom(s.matrix),r?(u.multiplyWithOffset(r,-s.scrollX*e.scrollFactorX,-s.scrollY*e.scrollFactorY),c.e=e.x,c.f=e.y,u.multiply(c,d)):(c.e-=s.scrollX*e.scrollFactorX,c.f-=s.scrollY*e.scrollFactorY,u.multiply(c,d));var p=e.frame,g=p.glTexture,v=p.cutX,m=p.cutY,y=g.width,x=g.height,T=e._isTinted&&e.tintFill,w=n.getTintAppendFloatAlpha(e._tintTL,s.alpha*e._alphaTL),b=n.getTintAppendFloatAlpha(e._tintTR,s.alpha*e._alphaTR),E=n.getTintAppendFloatAlpha(e._tintBL,s.alpha*e._alphaBL),S=n.getTintAppendFloatAlpha(e._tintBR,s.alpha*e._alphaBR);h.setTexture2D(g,0);var _,A,C=0,M=0,P=0,O=0,R=e.letterSpacing,L=0,D=0,F=0,k=0,I=e.scrollX,B=e.scrollY,N=e.fontData,Y=N.chars,X=N.lineHeight,z=e.fontSize/N.size,U=0,W=e._align,G=0,V=0;e.getTextBounds(!1);var H=e._bounds.lines;1===W?V=(H.longest-H.lengths[0])/2:2===W&&(V=H.longest-H.lengths[0]);for(var j=s.roundPixels,q=e.displayCallback,K=e.callbackData,J=0;J0&&e.cropHeight>0&&(h.beginPath(),h.rect(0,0,e.cropWidth,e.cropHeight),h.clip());for(var N=0;N0&&(Y=Y%b-b):Y>b?Y=b:Y<0&&(Y=b+Y%b),null===A&&(A=new o(k+Math.cos(N)*B,I+Math.sin(N)*B,v),E.push(A),F+=.01);F<1+z;)w=Y*F+N,x=k+Math.cos(w)*B,T=I+Math.sin(w)*B,A.points.push(new r(x,T,v)),F+=.01;w=Y+N,x=k+Math.cos(w)*B,T=I+Math.sin(w)*B,A.points.push(new r(x,T,v));break;case n.FILL_RECT:u.setTexture2D(M),u.batchFillRect(p[++P],p[++P],p[++P],p[++P],f,c);break;case n.FILL_TRIANGLE:u.setTexture2D(M),u.batchFillTriangle(p[++P],p[++P],p[++P],p[++P],p[++P],p[++P],f,c);break;case n.STROKE_TRIANGLE:u.setTexture2D(M),u.batchStrokeTriangle(p[++P],p[++P],p[++P],p[++P],p[++P],p[++P],v,f,c);break;case n.LINE_TO:null!==A?A.points.push(new r(p[++P],p[++P],v)):(A=new o(p[++P],p[++P],v),E.push(A));break;case n.MOVE_TO:A=new o(p[++P],p[++P],v),E.push(A);break;case n.SAVE:a.push(f.copyToArray());break;case n.RESTORE:f.copyFromArray(a.pop());break;case n.TRANSLATE:k=p[++P],I=p[++P],f.translate(k,I);break;case n.SCALE:k=p[++P],I=p[++P],f.scale(k,I);break;case n.ROTATE:f.rotate(p[++P]);break;case n.SET_TEXTURE:var U=p[++P],W=p[++P];u.currentFrame=U,u.setTexture2D(U.glTexture,0),u.tintEffect=W,M=U.glTexture;break;case n.CLEAR_TEXTURE:u.currentFrame=t.blankTexture,u.tintEffect=2,M=t.blankTexture.glTexture}}}},function(t,e,i){var n=i(1),s=i(1);n=i(963),s=i(964),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(1),s=i(1);n=i(966),s=i(967),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e){t.exports=function(t,e,i,n,s){this.pipeline.batchSprite(e,n,s)}},function(t,e){t.exports=function(t,e,i,n,s){t.batchSprite(e,e.frame,n,s)}},function(t,e,i){t.exports={GravityWell:i(397),Particle:i(398),ParticleEmitter:i(399),ParticleEmitterManager:i(190),Zones:i(973)}},function(t,e,i){var n=i(0),s=i(327),r=i(67),o=i(2),a=i(58),h=new n({initialize:function(t,e,i,n){void 0===n&&(n=!1),this.propertyKey=e,this.propertyValue=i,this.defaultValue=i,this.steps=0,this.counter=0,this.start=0,this.end=0,this.ease,this.emitOnly=n,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.loadConfig(t)},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=o(t,this.propertyKey,this.defaultValue),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return this.propertyValue},onChange:function(t){return this.propertyValue=t,this.setMethods()},setMethods:function(){var t=this.propertyValue,e=typeof t;if("number"===e)this.onEmit=this.staticValueEmit,this.onUpdate=this.staticValueUpdate;else if(Array.isArray(t))this.onEmit=this.randomStaticValueEmit;else if("function"===e)this.emitOnly?this.onEmit=t:this.onUpdate=t;else if("object"===e&&(this.has(t,"random")||this.hasBoth(t,"start","end")||this.hasBoth(t,"min","max"))){this.start=this.has(t,"start")?t.start:t.min,this.end=this.has(t,"end")?t.end:t.max;var i=this.hasBoth(t,"min","max")||!!t.random;if(i){var n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),this.onEmit=this.randomRangedValueEmit}if(this.has(t,"steps"))this.steps=t.steps,this.counter=this.start,this.onEmit=this.steppedEmit;else{var s=this.has(t,"ease")?t.ease:"Linear";this.ease=r(s),i||(this.onEmit=this.easedValueEmit),this.onUpdate=this.easeValueUpdate}}else"object"===e&&this.hasEither(t,"onEmit","onUpdate")&&(this.has(t,"onEmit")&&(this.onEmit=t.onEmit),this.has(t,"onUpdate")&&(this.onUpdate=t.onUpdate));return this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,n){return n},staticValueEmit:function(){return this.propertyValue},staticValueUpdate:function(){return this.propertyValue},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.propertyValue[t]},randomRangedValueEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i),i},steppedEmit:function(){var t=this.counter,e=this.counter+(this.end-this.start)/this.steps;return this.counter=a(e,this.start,this.end),t},easedValueEmit:function(t,e){if(t&&t.data[e]){var i=t.data[e];i.min=this.start,i.max=this.end}return this.start},easeValueUpdate:function(t,e,i){var n=t.data[e];return(n.max-n.min)*this.ease(i)+n.min}});t.exports=h},function(t,e,i){var n=i(1),s=i(1);n=i(971),s=i(972),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){var o=e.emitters.list,a=o.length;if(0!==a){var h=this.pipeline,l=h._tempMatrix1.copyFrom(s.matrix),u=h._tempMatrix2,c=h._tempMatrix3,d=h._tempMatrix4.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);l.multiply(d),t.setPipeline(h);var f=s.roundPixels,p=e.defaultFrame.glTexture,g=n.getTintAppendFloatAlphaAndSwap;h.setTexture2D(p,0);for(var v=0;v?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"}},function(t,e,i){var n=i(6);t.exports=function(t,e){var i=e.width,s=e.height,r=Math.floor(i/2),o=Math.floor(s/2),a=n(e,"chars","");if(""!==a){var h=n(e,"image",""),l=n(e,"offset.x",0),u=n(e,"offset.y",0),c=n(e,"spacing.x",0),d=n(e,"spacing.y",0),f=n(e,"lineSpacing",0),p=n(e,"charsPerRow",null);null===p&&(p=t.sys.textures.getFrame(h).width/i)>a.length&&(p=a.length);for(var g=l,v=u,m={retroFont:!0,font:h,size:i,lineHeight:s+f,chars:{}},y=0,x=0;x0&&r.maxLines1&&(d+=f*(h-1)),{width:a,height:d,lines:h,lineWidths:o,lineSpacing:f,lineHeight:c}}},function(t,e,i){var n=i(1),s=i(1);n=i(985),s=i(986),t.exports={renderWebGL:n,renderCanvas:s}},function(t,e,i){var n=i(9);t.exports=function(t,e,i,s,r){if(0!==e.width&&0!==e.height){var o=e.frame,a=o.width,h=o.height,l=n.getTintAppendFloatAlpha;this.pipeline.batchTexture(e,o.glTexture,a,h,e.x,e.y,a/e.style.resolution,h/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,a,h,l(e._tintTL,s.alpha*e._alphaTL),l(e._tintTR,s.alpha*e._alphaTR),l(e._tintBL,s.alpha*e._alphaBL),l(e._tintBR,s.alpha*e._alphaBR),e._isTinted&&e.tintFill,0,0,s,r)}}},function(t,e){t.exports=function(t,e,i,n,s){0!==e.width&&0!==e.height&&t.batchSprite(e,e.frame,n,s)}},function(t,e,i){var n=i(0),s=i(14),r=i(6),o=i(988),a={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},h=new n({initialize:function(t,e){this.parent=t,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this._font,this.setStyle(e,!1,!0);var i=r(e,"metrics",!1);this.metrics=i?{ascent:r(i,"ascent",0),descent:r(i,"descent",0),fontSize:r(i,"fontSize",0)}:o(this)},setStyle:function(t,e,i){for(var n in void 0===e&&(e=!0),void 0===i&&(i=!1),t&&t.hasOwnProperty("fontSize")&&"number"==typeof t.fontSize&&(t.fontSize=t.fontSize.toString()+"px"),a){var o=i?a[n][1]:this[n];this[n]="wordWrapCallback"===n||"wordWrapCallbackScope"===n?r(t,a[n][0],o):s(t,a[n][0],o)}var h=r(t,"font",null);null!==h&&this.setFont(h,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var l=r(t,"fill",null);return null!==l&&(this.color=l),e?this.update(!0):this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline="alphabetic",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap="round",e.lineJoin="round"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=o(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i=t,n="",s="";if("string"!=typeof t)i=r(t,"fontFamily","Courier"),n=r(t,"fontSize","16px"),s=r(t,"fontStyle","");else{var o=t.split(" "),a=0;s=o.length>2?o[a++]:"",n=o[a++]||"16px",i=o[a++]||"Courier"}return i===this.fontFamily&&n===this.fontSize&&s===this.fontStyle||(this.fontFamily=i,this.fontSize=n,this.fontStyle=s,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return"number"==typeof t&&(t=t.toString()+"px"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,n,s,r){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i="#000"),void 0===n&&(n=0),void 0===s&&(s=!1),void 0===r&&(r=!0),this.shadowOffsetX=t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=n,this.shadowStroke=s,this.shadowFill=r,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return void 0===t&&(t="#000"),this.shadowColor=t,this.update(!1)},setShadowBlur:function(t){return void 0===t&&(t=0),this.shadowBlur=t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return void 0===t&&(t="left"),this.align=t,this.update(!1)},setMaxLines:function(t){return void 0===t&&(t=0),this.maxLines=t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t={};for(var e in a)t[e]=this[e];return t.metrics=this.getTextMetrics(),t},destroy:function(){this.parent=void 0}});t.exports=h},function(t,e,i){var n=i(26);t.exports=function(t){var e=n.create(this),i=e.getContext("2d");t.syncFont(e,i);var s=Math.ceil(i.measureText(t.testString).width*t.baselineX),r=s,o=2*r;r=r*t.baselineY|0,e.width=s,e.height=o,i.fillStyle="#f00",i.fillRect(0,0,s,o),i.font=t._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(t.testString,0,r);var a={ascent:0,descent:0,fontSize:0};if(!i.getImageData(0,0,s,o))return a.ascent=r,a.descent=r+6,a.fontSize=a.ascent+a.descent,n.remove(e),a;var h,l,u=i.getImageData(0,0,s,o).data,c=u.length,d=4*s,f=0,p=!1;for(h=0;hr;h--){for(l=0;l0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.fillColor,e.fillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0)for(u=o.fillTint,c=n.getTintAppendFloatAlphaAndSwap(e.altFillColor,e.altFillAlpha*d),u.TL=c,u.TR=c,u.BL=c,u.BR=c,C=0;C0){var R=o.strokeTint,L=n.getTintAppendFloatAlphaAndSwap(e.outlineFillColor,e.outlineFillAlpha*d);for(R.TL=L,R.TR=L,R.BL=L,R.BR=L,A=1;A0)for(n(h,e),A=0;A0)for(n(h,e,e.altFillColor,e.altFillAlpha*c),A=0;A0){for(s(h,e,e.outlineFillColor,e.outlineFillAlpha*c),_=1;_o.vertexCapacity&&o.flush(),o.setTexture2D(u,0);for(var m=o.vertexViewF32,y=o.vertexViewU32,x=o.vertexCount*o.vertexComponentCount-1,T=0,w=e.tintFill,b=0;b0?Math.PI*t.radius*t.radius:0}},function(t,e,i){var n=i(63);t.exports=function(t){return new n(t.x,t.y,t.radius)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(55);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},function(t,e,i){var n=i(12);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(94);n.Area=i(1096),n.Circumference=i(395),n.CircumferencePoint=i(189),n.Clone=i(1097),n.Contains=i(95),n.ContainsPoint=i(1098),n.ContainsRect=i(1099),n.CopyFrom=i(1100),n.Equals=i(1101),n.GetBounds=i(1102),n.GetPoint=i(393),n.GetPoints=i(394),n.Offset=i(1103),n.OffsetPoint=i(1104),n.Random=i(152),t.exports=n},function(t,e){t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},function(t,e,i){var n=i(94);t.exports=function(t){return new n(t.x,t.y,t.width,t.height)}},function(t,e,i){var n=i(95);t.exports=function(t,e){return n(t,e.x,e.y)}},function(t,e,i){var n=i(95);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},function(t,e){t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},function(t,e){t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},function(t,e,i){var n=i(12);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},function(t,e){t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},function(t,e){t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},function(t,e,i){var n=i(4),s=i(201);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r,o,a,h,l=t.x,u=t.y,c=t.radius,d=e.x,f=e.y,p=e.radius;if(u===f)0==(a=(o=-2*f)*o-4*(r=1)*(d*d+(h=(p*p-c*c-d*d+l*l)/(2*(l-d)))*h-2*d*h+f*f-p*p))?i.push(new n(h,-o/(2*r))):a>0&&(i.push(new n(h,(-o+Math.sqrt(a))/(2*r))),i.push(new n(h,(-o-Math.sqrt(a))/(2*r))));else{var g=(l-d)/(u-f),v=(p*p-c*c-d*d+l*l-f*f+u*u)/(2*(u-f));0==(a=(o=2*u*g-2*v*g-2*l)*o-4*(r=g*g+1)*(l*l+u*u+v*v-c*c-2*u*v))?(h=-o/(2*r),i.push(new n(h,v-h*g))):a>0&&(h=(-o+Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)),h=(-o-Math.sqrt(a))/(2*r),i.push(new n(h,v-h*g)))}}return i}},function(t,e,i){var n=i(203),s=i(202);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC(),h=e.getLineD();n(r,t,i),n(o,t,i),n(a,t,i),n(h,t,i)}return i}},function(t,e,i){var n=i(12),s=i(130);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},function(t,e,i){var n=i(205),s=i(130);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC(),h=t.getLineD();n(r,e,i),n(o,e,i),n(a,e,i),n(h,e,i)}return i}},function(t,e,i){var n=i(428),s=i(205);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(r,t,i),s(o,t,i),s(a,t,i)}return i}},function(t,e,i){var n=i(203),s=i(430);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var r=t.getLineA(),o=t.getLineB(),a=t.getLineC();n(r,e,i),n(o,e,i),n(a,e,i)}return i}},function(t,e,i){var n=i(433),s=i(431);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var r=e.getLineA(),o=e.getLineB(),a=e.getLineC();s(t,r,i),s(t,o,i),s(t,a,i)}return i}},function(t,e,i){var n=i(435);t.exports=function(t,e){if(!n(t,e))return!1;var i=Math.min(e.x1,e.x2),s=Math.max(e.x1,e.x2),r=Math.min(e.y1,e.y2),o=Math.max(e.y1,e.y2);return t.x>=i&&t.x<=s&&t.y>=r&&t.y<=o}},function(t,e){t.exports=function(t,e,i,n,s,r){return void 0===r&&(r=0),!(e>t.right+r||it.bottom+r||s0){var m=u[0],y=[m];for(h=1;h=o&&(y.push(x),m=x)}var T=u[u.length-1];return n(m,T)i&&(i=h.x),h.xr&&(r=h.y),h.yn(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},function(t,e){t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.centerX,e.y=t.centerY,e}},function(t,e,i){var n=i(4);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.width,e.y=t.height,e}},function(t,e,i){var n=i(163);t.exports=function(t,e,i){var s=t.centerX,r=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),n(t,s,r)}},function(t,e,i){var n=i(12),s=i(130);t.exports=function(t,e,i){return void 0===i&&(i=new n),s(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},function(t,e){t.exports=function(t,e){for(var i=t.x,n=t.right,s=t.y,r=t.bottom,o=0;oe.x&&t.ye.y}},function(t,e,i){var n=i(4),s=i(35);t.exports=function(t,e,i){void 0===i&&(i=new n),e=s(e);var r=Math.sin(e),o=Math.cos(e),a=o>0?t.width/2:t.width/-2,h=r>0?t.height/2:t.height/-2;return Math.abs(a*r)-1&&(s.splice(a,1),this.clear(o,!0))}t.length=0,this._pendingRemoval.length=0,this._list=s.concat(e.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.isActive()},updatePoll:function(t,e){if(!this.isActive())return!1;if(this.pluginEvents.emit(d.UPDATE,t,e),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var i,n=this.manager,s=n.pointers,r=n.pointersTotal;for(i=0;i0){if(this._pollTimer-=e,!(this._pollTimer<0))return!1;this._pollTimer=this.pollRate}var a=!1;for(i=0;i0&&(a=!0)}return a},update:function(t,e){if(!this.isActive())return!1;for(var i=e.length,n=!1,s=0;s0&&(n=!0)}return this._updatedThisFrame=!0,n},clear:function(t,e){void 0===e&&(e=!1);var i=t.input;if(i){e||this.queueForRemoval(t),i.gameObject=void 0,i.target=void 0,i.hitArea=void 0,i.hitAreaCallback=void 0,i.callbackContext=void 0,this.manager.resetCursor(i),t.input=null;var n=this._draggable.indexOf(t);return n>-1&&this._draggable.splice(n,1),(n=this._drag[0].indexOf(t))>-1&&this._drag[0].splice(n,1),(n=this._over[0].indexOf(t))>-1&&this._over[0].splice(n,1),t}},disable:function(t){t.input.enabled=!1},enable:function(t,e,i,n){return void 0===n&&(n=!1),t.input?t.input.enabled=!0:this.setHitArea(t,e,i),t.input&&n&&!t.input.dropZone&&(t.input.dropZone=n),this},hitTestPointer:function(t){for(var e=this.cameras.getCamerasBelowPointer(t),i=0;i0)return t.camera=n,s}return t.camera=e[0],[]},processDownEvents:function(t){var e=0,i=this._temp,n=this._eventData,s=this._eventContainer;n.cancelled=!1;for(var r=!1,o=0;o0&&l(t.x,t.y,t.downX,t.downY)>=s?i=!0:n>0&&e>=t.downTime+n&&(i=!0),i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;for(var e=this._drag[t.id],i=0;i1&&(this.sortGameObjects(i),this.topOnly&&i.splice(1)),this._drag[t.id]=i,0===this.dragDistanceThreshold&&0===this.dragTimeThreshold?(this.setDragState(t,3),this.processDragStartList(t)):(this.setDragState(t,2),0))},processDragMoveEvent:function(t){if(2===this.getDragState(t)&&this.processDragThresholdEvent(t,this.manager.game.loop.now),4!==this.getDragState(t))return 0;for(var e=this._tempZones,i=this._drag[t.id],n=0;n0?(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),e[0]?(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):a.target=null)}else!h&&e[0]&&(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h));if(o.parentContainer){var u=t.x-a.dragStartXGlobal,c=t.y-a.dragStartYGlobal,f=o.getParentRotation(),p=u*Math.cos(f)+c*Math.sin(f),g=c*Math.cos(f)-u*Math.sin(f);p*=1/o.parentContainer.scaleX,g*=1/o.parentContainer.scaleY,s=p+a.dragStartX,r=g+a.dragStartY}else s=t.x-a.dragX,r=t.y-a.dragY;o.emit(d.GAMEOBJECT_DRAG,t,s,r),this.emit(d.DRAG,t,o,s,r)}return i.length},processDragUpEvent:function(t){for(var e=this._drag[t.id],i=0;i0){var r=this.manager,o=this._eventData,a=this._eventContainer;o.cancelled=!1;for(var h=!1,l=0;l0){var s=this.manager,r=this._eventData,o=this._eventContainer;r.cancelled=!1;var a=!1;this.sortGameObjects(e);for(var h=0;h0){for(this.sortGameObjects(s),e=0;e0){for(this.sortGameObjects(r),e=0;e-1&&this._draggable.splice(s,1)}return this},makePixelPerfect:function(t){void 0===t&&(t=1);var e=this.systems.textures;return h(e,t)},setHitArea:function(t,e,i){if(void 0===e)return this.setHitAreaFromTexture(t);Array.isArray(t)||(t=[t]);var n=!1,s=!1,r=!1,o=!1,h=!1,l=!0;if(m(e)){var u=e;e=p(u,"hitArea",null),i=p(u,"hitAreaCallback",null),n=p(u,"draggable",!1),s=p(u,"dropZone",!1),r=p(u,"cursor",!1),o=p(u,"useHandCursor",!1),h=p(u,"pixelPerfect",!1);var c=p(u,"alphaTolerance",1);h&&(e={},i=this.makePixelPerfect(c)),e&&i||(this.setHitAreaFromTexture(t),l=!1)}else"function"!=typeof e||i||(i=e,e={});for(var d=0;d=e}}},function(t,e,i){t.exports={Events:i(132),KeyboardManager:i(363),KeyboardPlugin:i(1218),Key:i(448),KeyCodes:i(119),KeyCombo:i(449),JustDown:i(1223),JustUp:i(1224),DownDuration:i(1225),UpDuration:i(1226)}},function(t,e){t.exports="keydown"},function(t,e){t.exports="keyup"},function(t,e){t.exports="keycombomatch"},function(t,e){t.exports="down"},function(t,e){t.exports="keydown-"},function(t,e){t.exports="keyup-"},function(t,e){t.exports="up"},function(t,e,i){var n=i(0),s=i(10),r=i(132),o=i(18),a=i(6),h=i(54),l=i(131),u=i(448),c=i(119),d=i(449),f=i(1222),p=i(92),g=new n({Extends:s,initialize:function(t){s.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],t.pluginEvents.once(h.BOOT,this.boot,this),t.pluginEvents.on(h.START,this.start,this)},boot:function(){var t=this.settings.input;this.enabled=a(t,"keyboard",!0);var e=a(t,"keyboard.capture",null);e&&this.addCaptures(e),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.useQueue?this.sceneInputPlugin.pluginEvents.on(h.UPDATE,this.update,this):this.sceneInputPlugin.manager.events.on(h.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this),this.game.events.on(o.BLUR,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var n={};if("string"==typeof t){t=t.split(",");for(var s=0;s-1?n[s]=t:n[t.keyCode]=t,e&&this.addCapture(t.keyCode),t.setEmitOnRepeat(i),t}return"string"==typeof t&&(t=c[t.toUpperCase()]),n[t]||(n[t]=new u(this,t),e&&this.addCapture(t),n[t].setEmitOnRepeat(i)),n[t]},removeKey:function(t,e){void 0===e&&(e=!1);var i,n=this.keys;if(t instanceof u){var s=n.indexOf(t);s>-1&&(i=this.keys[s],this.keys[s]=void 0)}else"string"==typeof t&&(t=c[t.toUpperCase()]);return n[t]&&(i=n[t],n[t]=void 0),i&&(i.plugin=null,e&&i.destroy()),this},createCombo:function(t,e){return new d(this,t,e)},checkDown:function(t,e){if(this.enabled&&t.isDown){var i=p(this.time-t.timeDown,e);if(i>t._tick)return t._tick=i,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,n=0;n0&&e.maxKeyDelay>0){var r=e.timeLastMatched+e.maxKeyDelay;t.timeStamp<=r&&(s=!0,i=n(t,e))}else s=!0,i=n(t,e);return!s&&e.resetOnWrongKey&&(e.index=0,e.current=e.keyCodes[0]),i&&(e.timeLastMatched=t.timeStamp,e.matched=!0,e.timeMatched=t.timeStamp),i}},function(t,e){t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},function(t,e){t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},function(t,e,i){var n=i(119),s={};for(var r in n)s[n[r]]=r;t.exports=s},function(t,e){t.exports=function(t){return!!t._justDown&&(t._justDown=!1,!0)}},function(t,e){t.exports=function(t){return!!t._justUp&&(t._justUp=!1,!0)}},function(t,e){t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i'),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push("");var n=[i.join("\n")],o=this;try{var a=new window.Blob(n,{type:"image/svg+xml;charset=utf-8"})}catch(t){return o.state=s.FILE_ERRORED,void o.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){r.revokeObjectURL(o.data),o.onProcessComplete()},this.data.onerror=function(){r.revokeObjectURL(o.data),o.onProcessError()},r.createObjectURL(this.data,a,"image/svg+xml")},addToCache:function(){var t=this.cache.addImage(this.key,this.data);this.pendingDestroy(t)}});o.register("htmlTexture",function(t,e,i,n,s){if(Array.isArray(t))for(var r=0;r0},isLoading:function(){return this.state===s.LOADER_LOADING||this.state===s.LOADER_PROCESSING},isReady:function(){return this.state===s.LOADER_IDLE||this.state===s.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(a.START,this),0===this.list.size?this.loadComplete():(this.state=s.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(c.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(a.PROGRESS,this.progress)},update:function(){this.state===s.LOADER_LOADING&&this.list.size>0&&this.inflight.sizei&&(n=l,i=c)}}return n},moveTo:function(t,e,i,n,s){void 0===n&&(n=60),void 0===s&&(s=0);var o=Math.atan2(i-t.y,e-t.x);return s>0&&(n=r(t.x,t.y,e,i)/(s/1e3)),t.body.velocity.setToPolar(o,n),o},moveToObject:function(t,e,i,n){return this.moveTo(t,e.x,e.y,i,n)},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(s(t),e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(t,e)},overlapRect:function(t,e,i,n,s,r){return c(this.world,t,e,i,n,s,r)},overlapCirc:function(t,e,i,n,s){return u(this.world,t,e,i,n,s)},shutdown:function(){if(this.world){var t=this.systems.events;t.off(f.UPDATE,this.world.update,this.world),t.off(f.POST_UPDATE,this.world.postUpdate,this.world),t.off(f.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null}},destroy:function(){this.shutdown(),this.scene.sys.events.off(f.START,this.start,this),this.scene=null,this.systems=null}});d.register("ArcadePhysics",v,"arcadePhysics"),t.exports=v},function(t,e){t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},function(t,e){t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},function(t,e){t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i){return this.body.setCollideWorldBounds(t,e,i),this}}},function(t,e){t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},function(t,e){t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},function(t,e){var i={enableBody:function(t,e,i,n,s){return t&&this.body.reset(e,i),n&&(this.body.gameObject.active=!0),s&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};t.exports=i},function(t,e){t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},function(t,e){t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},function(t,e){var i={setImmovable:function(t){return void 0===t&&(t=!0),this.body.immovable=t,this}};t.exports=i},function(t,e){t.exports={setMass:function(t){return this.body.mass=t,this}}},function(t,e){t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},function(t,e){t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},function(t,e,i){var n=i(459),s=i(63),r=i(201),o=i(202);t.exports=function(t,e,i,a,h,l){var u=n(t,e-a,i-a,2*a,2*a,h,l);if(0===u.length)return u;for(var c=new s(e,i,a),d=new s,f=[],p=0;pe.deltaAbsY()?y=-1:e.deltaAbsX()0&&u&&t.checkCollision.right&&h&&t.right>i&&(a=t.right-i)>r&&(a=0),0!==a&&(t.customSeparateX?t.overlapX=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):e>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=e,0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x}},function(t,e,i){var n=i(1283);t.exports=function(t,e,i,s,r,o){var a=0,h=e.faceTop,l=e.faceBottom,u=e.collideUp,c=e.collideDown;return o||(h=!0,l=!0,u=!0,c=!0),t.deltaY()<0&&c&&t.checkCollision.up?l&&t.y0&&u&&t.checkCollision.down&&h&&t.bottom>i&&(a=t.bottom-i)>r&&(a=0),0!==a&&(t.customSeparateY?t.overlapY=a:n(t,a)),a}},function(t,e){t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):e>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=e,0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},function(t,e,i){var n=i(463);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.x,a=e.velocity.x;if(t.immovable||e.immovable)t.immovable?(e.x+=r,e.velocity.x=o-a*e.bounce.x,t.moves&&(e.y+=(t.y-t.prev.y)*t.friction.y)):(t.x-=r,t.velocity.x=a-o*t.bounce.x,e.moves&&(t.y+=(e.y-e.prev.y)*e.friction.y));else{r*=.5,t.x-=r,e.x+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.x=u+h*t.bounce.x,e.velocity.x=u+l*e.bounce.x}return!0}},function(t,e,i){var n=i(464);t.exports=function(t,e,i,s){var r=n(t,e,i,s);if(i||0===r||t.immovable&&e.immovable||t.customSeparateY||e.customSeparateY)return 0!==r||t.embedded&&e.embedded;var o=t.velocity.y,a=e.velocity.y;if(t.immovable||e.immovable)t.immovable?(e.y+=r,e.velocity.y=o-a*e.bounce.y,t.moves&&(e.x+=(t.x-t.prev.x)*t.friction.x)):(t.y-=r,t.velocity.y=a-o*t.bounce.y,e.moves&&(t.x+=(e.x-e.prev.x)*e.friction.x));else{r*=.5,t.y-=r,e.y+=r;var h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),l=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),u=.5*(h+l);h-=u,l-=u,t.velocity.y=u+h*t.bounce.y,e.velocity.y=u+l*e.bounce.y}return!0}},function(t,e,i){var n={};t.exports=n;var s=i(143),r=i(215),o=i(37),a=i(62),h=i(106);n.stack=function(t,e,i,n,r,o,h){for(var l,u=s.create({label:"Stack"}),c=t,d=e,f=0,p=0;pg&&(g=y),a.translate(m,{x:.5*x,y:.5*y}),c=m.bounds.max.x+r,s.addBody(u,m),l=m,f+=1}else c+=r}d+=g+o,c=t}return u},n.chain=function(t,e,i,n,a,h){for(var l=t.bodies,u=1;u0)for(l=0;l0&&(d=f[l-1+(h-1)*e],s.addConstraint(t,r.create(o.extend({bodyA:d,bodyB:c},a)))),n&&ld||o<(l=d-l)||o>i-1-l))return 1===c&&a.translate(u,{x:(o+(i%2==1?1:-1))*f,y:0}),h(t+(u?o*f:0)+o*r,n,o,l,u,c)})},n.newtonsCradle=function(t,e,i,n,o){for(var a=s.create({label:"Newtons Cradle"}),l=0;l1;if(!d||t!=d.x||e!=d.y){d&&n?(f=d.x,p=d.y):(f=0,p=0);var s={x:f+t,y:p+e};!n&&d||(d=s),g.push(s),m=f+t,y=p+e}},T=function(t){var e=t.pathSegTypeAsLetter.toUpperCase();if("Z"!==e){switch(e){case"M":case"L":case"T":case"C":case"S":case"Q":m=t.x,y=t.y;break;case"H":m=t.x;break;case"V":y=t.y}x(m,y,t.pathSegType)}};for(n._svgPathToAbsolute(t),o=t.getTotalLength(),l=[],i=0;i0?this.setFromTileCollision(i):this.setFromTileRectangle(i)}},setFromTileRectangle:function(t){void 0===t&&(t={}),l(t,"isStatic")||(t.isStatic=!0),l(t,"addToWorld")||(t.addToWorld=!0);var e=this.tile.getBounds(),i=e.x+e.width/2,s=e.y+e.height/2,r=n.rectangle(i,s,e.width,e.height,t);return this.setBody(r,t.addToWorld),this},setFromTileCollision:function(t){void 0===t&&(t={}),l(t,"isStatic")||(t.isStatic=!0),l(t,"addToWorld")||(t.addToWorld=!0);for(var e=this.tile.tilemapLayer.scaleX,i=this.tile.tilemapLayer.scaleY,r=this.tile.getLeft(),o=this.tile.getTop(),a=this.tile.getCollisionGroup(),c=h(a,"objects",[]),d=[],f=0;f1&&(t.parts=d,this.setBody(s.create(t),t.addToWorld)),this},setBody:function(t,e){return void 0===e&&(e=!0),this.body&&this.removeBody(),this.body=t,this.body.gameObject=this,e&&this.world.add(this.body),this},removeBody:function(){return this.body&&(this.world.remove(this.body),this.body.gameObject=void 0,this.body=void 0),this},destroy:function(){this.removeBody(),this.tile.physics.matterBody=void 0,this.removeAllListeners()}});t.exports=c},function(t,e,i){var n=i(1380);n.Body=i(62),n.Composite=i(143),n.World=i(1294),n.Detector=i(514),n.Grid=i(1295),n.Pairs=i(1296),n.Pair=i(468),n.Query=i(1381),n.Resolver=i(1297),n.SAT=i(515),n.Constraint=i(215),n.Common=i(37),n.Engine=i(1382),n.Events=i(237),n.Sleeping=i(236),n.Plugin=i(1293),n.Bodies=i(106),n.Composites=i(1286),n.Axes=i(512),n.Bounds=i(99),n.Svg=i(1287),n.Vector=i(98),n.Vertices=i(85),n.World.add=n.Composite.add,n.World.remove=n.Composite.remove,n.World.addComposite=n.Composite.addComposite,n.World.addBody=n.Composite.addBody,n.World.addConstraint=n.Composite.addConstraint,n.World.clear=n.Composite.clear,t.exports=n},function(t,e,i){var n={};t.exports=n;var s=i(37);n._registry={},n.register=function(t){if(n.isPlugin(t)||s.warn("Plugin.register:",n.toString(t),"does not implement all required fields."),t.name in n._registry){var e=n._registry[t.name],i=n.versionParse(t.version).number,r=n.versionParse(e.version).number;i>r?(s.warn("Plugin.register:",n.toString(e),"was upgraded to",n.toString(t)),n._registry[t.name]=t):i-1},n.isFor=function(t,e){var i=t.for&&n.dependencyParse(t.for);return!t.for||e.name===i.name&&n.versionSatisfies(e.version,i.range)},n.use=function(t,e){if(t.uses=(t.uses||[]).concat(e||[]),0!==t.uses.length){for(var i=n.dependencies(t),r=s.topologicalSort(i),o=[],a=0;a0&&!h.silent&&s.info(o.join(" "))}else s.warn("Plugin.use:",n.toString(t),"does not specify any dependencies to install.")},n.dependencies=function(t,e){var i=n.dependencyParse(t),r=i.name;if(!(r in(e=e||{}))){t=n.resolve(t)||t,e[r]=s.map(t.uses||[],function(e){n.isPlugin(e)&&n.register(e);var r=n.dependencyParse(e),o=n.resolve(e);return o&&!n.versionSatisfies(o.version,r.range)?(s.warn("Plugin.dependencies:",n.toString(o),"does not satisfy",n.toString(r),"used by",n.toString(i)+"."),o._warned=!0,t._warned=!0):o||(s.warn("Plugin.dependencies:",n.toString(e),"used by",n.toString(i),"could not be resolved."),t._warned=!0),r.name});for(var o=0;o=s[2];if("^"===i.operator)return s[0]>0?o[0]===s[0]&&r.number>=i.number:s[1]>0?o[1]===s[1]&&o[2]>=s[2]:o[2]===s[2]}return t===e||"*"===t}},function(t,e,i){var n={};t.exports=n;var s=i(143),r=(i(215),i(37));n.create=function(t){var e=s.create(),i={label:"World",gravity:{x:0,y:1,scale:.001},bounds:{min:{x:-1/0,y:-1/0},max:{x:1/0,y:1/0}}};return r.extend(e,i,t)}},function(t,e,i){var n={};t.exports=n;var s=i(468),r=i(514),o=i(37);n.create=function(t){var e={controller:n,detector:r.collisions,buckets:{},pairs:{},pairsList:[],bucketWidth:48,bucketHeight:48};return o.extend(e,t)},n.update=function(t,e,i,s){var r,o,a,h,l,u=i.world,c=t.buckets,d=!1,f=i.metrics;for(f.broadphaseTests=0,r=0;ru.bounds.max.x||p.bounds.max.yu.bounds.max.y)){var g=n._getRegion(t,p);if(!p.region||g.id!==p.region.id||s){f.broadphaseTests+=1,p.region&&!s||(p.region=g);var v=n._regionUnion(g,p.region);for(o=v.startCol;o<=v.endCol;o++)for(a=v.startRow;a<=v.endRow;a++){h=c[l=n._getBucketId(o,a)];var m=o>=g.startCol&&o<=g.endCol&&a>=g.startRow&&a<=g.endRow,y=o>=p.region.startCol&&o<=p.region.endCol&&a>=p.region.startRow&&a<=p.region.endRow;!m&&y&&y&&h&&n._bucketRemoveBody(t,h,p),(p.region===g||m&&!y||s)&&(h||(h=n._createBucket(c,l)),n._bucketAddBody(t,h,p))}p.region=g,d=!0}}}d&&(t.pairsList=n._createActivePairsList(t))},n.clear=function(t){t.buckets={},t.pairs={},t.pairsList=[]},n._regionUnion=function(t,e){var i=Math.min(t.startCol,e.startCol),s=Math.max(t.endCol,e.endCol),r=Math.min(t.startRow,e.startRow),o=Math.max(t.endRow,e.endRow);return n._createRegion(i,s,r,o)},n._getRegion=function(t,e){var i=e.bounds,s=Math.floor(i.min.x/t.bucketWidth),r=Math.floor(i.max.x/t.bucketWidth),o=Math.floor(i.min.y/t.bucketHeight),a=Math.floor(i.max.y/t.bucketHeight);return n._createRegion(s,r,o,a)},n._createRegion=function(t,e,i,n){return{id:t+","+e+","+i+","+n,startCol:t,endCol:e,startRow:i,endRow:n}},n._getBucketId=function(t,e){return"C"+t+"R"+e},n._createBucket=function(t,e){return t[e]=[]},n._bucketAddBody=function(t,e,i){for(var n=0;n0?n.push(i):delete t.pairs[e[s]];return n}},function(t,e,i){var n={};t.exports=n;var s=i(468),r=i(37);n._pairMaxIdleLife=1e3,n.create=function(t){return r.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},t)},n.update=function(t,e,i){var n,r,o,a,h=t.list,l=t.table,u=t.collisionStart,c=t.collisionEnd,d=t.collisionActive;for(u.length=0,c.length=0,d.length=0,a=0;an._pairMaxIdleLife&&l.push(o);for(o=0;of.friction*f.frictionStatic*F*i&&(I=R,k=o.clamp(f.friction*L*i,-I,I));var B=r.cross(S,m),N=r.cross(_,m),Y=T/(g.inverseMass+v.inverseMass+g.inverseInertia*B*B+v.inverseInertia*N*N);if(D*=Y,k*=Y,P<0&&P*P>n._restingThresh*i)b.normalImpulse=0;else{var X=b.normalImpulse;b.normalImpulse=Math.min(b.normalImpulse+D,0),D=b.normalImpulse-X}if(O*O>n._restingThreshTangent*i)b.tangentImpulse=0;else{var z=b.tangentImpulse;b.tangentImpulse=o.clamp(b.tangentImpulse+k,-I,I),k=b.tangentImpulse-z}s.x=m.x*D+y.x*k,s.y=m.y*D+y.y*k,g.isStatic||g.isSleeping||(g.positionPrev.x+=s.x*g.inverseMass,g.positionPrev.y+=s.y*g.inverseMass,g.anglePrev+=r.cross(S,s)*g.inverseInertia),v.isStatic||v.isSleeping||(v.positionPrev.x-=s.x*v.inverseMass,v.positionPrev.y-=s.y*v.inverseMass,v.anglePrev-=r.cross(_,s)*v.inverseInertia)}}}}},function(t,e,i){t.exports={BasePlugin:i(469),DefaultPlugins:i(171),PluginCache:i(23),PluginManager:i(367),ScenePlugin:i(1299)}},function(t,e,i){var n=i(469),s=i(0),r=i(21),o=new s({Extends:n,initialize:function(t,e){n.call(this,e),this.scene=t,this.systems=t.sys,t.sys.events.once(r.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=o},function(t,e,i){var n=i(17),s=i(173),r={Center:i(356),Events:i(91),Orientation:i(357),ScaleManager:i(368),ScaleModes:i(358),Zoom:i(359)};r=n(!1,r=n(!1,r=n(!1,r=n(!1,r,s.CENTER),s.ORIENTATION),s.SCALE_MODE),s.ZOOM),t.exports=r},function(t,e,i){var n=i(120),s=i(17),r={Events:i(21),SceneManager:i(370),ScenePlugin:i(1302),Settings:i(372),Systems:i(176)};r=s(!1,r,n),t.exports=r},function(t,e,i){var n=i(22),s=i(0),r=i(21),o=i(2),a=i(23),h=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.pluginStart,this)},boot:function(){this.systems.events.once(r.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(r.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp("stop",e),this.manager.queueOp("start",e,t),this},transition:function(t){void 0===t&&(t={});var e=o(t,"target",!1),i=this.manager.getScene(e);if(!e||!this.checkValidTransition(i))return!1;var n=o(t,"duration",1e3);this._elapsed=0,this._target=i,this._duration=n,this._willSleep=o(t,"sleep",!1),this._willRemove=o(t,"remove",!1);var s=o(t,"onUpdate",null);s&&(this._onUpdate=s,this._onUpdateScope=o(t,"onUpdateScope",this.scene));var a=o(t,"allowInput",!1);this.settings.transitionAllowInput=a;var h=i.sys.settings;return h.isTransition=!0,h.transitionFrom=this.scene,h.transitionDuration=n,h.transitionAllowInput=a,o(t,"moveAbove",!1)?this.manager.moveAbove(this.key,e):o(t,"moveBelow",!1)&&this.manager.moveBelow(this.key,e),i.sys.isSleeping()?i.sys.wake():this.manager.start(e,o(t,"data")),this.systems.events.emit(r.TRANSITION_OUT,i,n),this.systems.events.on(r.UPDATE,this.step,this),!0},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=n(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;this.systems.events.off(r.UPDATE,this.step,this),t.events.emit(r.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i,n){return this.manager.add(t,e,i,n)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp("start",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp("run",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("pause",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("resume",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("sleep",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("wake",t,e),this},switch:function(t){return t!==this.key&&this.manager.queueOp("switch",this.key,t),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);var n=this.manager.getScene(e);return n&&n.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(r.SHUTDOWN,this.shutdown,this),t.off(r.POST_UPDATE,this.step,this),t.off(r.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});a.register("ScenePlugin",h,"scenePlugin"),t.exports=h},function(t,e,i){t.exports={List:i(124),Map:i(157),ProcessQueue:i(182),RTree:i(465),Set:i(128),Size:i(369)}},function(t,e,i){var n=i(17),s=i(1305),r={CanvasTexture:i(374),Events:i(116),FilterMode:s,Frame:i(93),Parsers:i(376),Texture:i(178),TextureManager:i(373),TextureSource:i(375)};r=n(!1,r,s),t.exports=r},function(t,e){t.exports={LINEAR:0,NEAREST:1}},function(t,e,i){t.exports={Components:i(136),Parsers:i(1334),Formats:i(33),ImageCollection:i(484),ParseToTilemap:i(224),Tile:i(73),Tilemap:i(493),TilemapCreator:i(1343),TilemapFactory:i(1344),Tileset:i(138),LayerData:i(101),MapData:i(102),ObjectLayer:i(487),DynamicTilemapLayer:i(494),StaticTilemapLayer:i(495)}},function(t,e,i){var n=i(24),s=i(51);t.exports=function(t,e,i,r,o,a,h,l){t<0&&(t=0),e<0&&(e=0),void 0===h&&(h=!0);for(var u=n(t,e,i,r,null,l),c=o-t,d=a-e,f=0;f=0&&p=0&&ge.worldView.x&&s.xe.worldView.y&&s.y=v;o--)(h=c[a][o])&&-1!==h.index&&h.visible&&0!==h.alpha&&i.push(h);else if(2===r)for(a=x;a>=y;a--)for(o=v;c[a]&&o=y;a--)for(o=m;c[a]&&o>=v;o--)(h=c[a][o])&&-1!==h.index&&h.visible&&0!==h.alpha&&i.push(h)}else if("isometric"===t.orientation)if(0===r){for(a=y;a=v;o--)if(T(o,a)){if(!(h=c[a][o])||-1===h.index||!h.visible||0===h.alpha)continue;i.push(h)}}else if(2===r){for(a=x;a>=y;a--)for(o=v;c[a]&&o=y;a--)for(o=m;c[a]&&o>=v;o--)if(T(o,a)){if(!(h=c[a][o])||-1===h.index||!h.visible||0===h.alpha)continue;i.push(h)}return u.tilesDrawn=i.length,u.tilesTotal=d*f,i}},function(t,e,i){var n=i(24),s=i(51),r=i(71);t.exports=function(t,e,i,o,a,h,l){for(var u=-1!==l.collideIndexes.indexOf(t),c=n(e,i,o,a,null,l),d=0;d=0;r--)for(s=n.width-1;s>=0;s--)if((o=n.data[r][s])&&o.index===t){if(a===e)return o;a+=1}}else for(r=0;re)){for(var l=t;l<=e;l++)r(l,i,a);if(h)for(var u=0;u=t&&d.index<=e&&n(d,i)}o&&s(0,0,a.width,a.height,a)}}},function(t,e,i){var n=i(71),s=i(51),r=i(219);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var a=0;a0&&n(a,t)}}e&&s(0,0,i.width,i.height,i)}},function(t,e){t.exports=function(t,e,i,n){if("number"==typeof t)n.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var s=0,r=t.length;s1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f0&&(t.currentPipeline&&t.currentPipeline.vertexCount>0&&t.flush(),r.vertexBuffer=e.vertexBuffer[a],t.setPipeline(r),t.setTexture2D(s[a].glTexture,0),t.gl.drawArrays(r.topology,0,e.vertexCount[a]));r.vertexBuffer=o,r.viewIdentity(),r.modelIdentity()}},function(t,e){t.exports=function(t,e,i,n,s){e.cull(n);var r=e.culledTiles,o=r.length;if(0!==o){var a=t._tempMatrix1,h=t._tempMatrix2,l=t._tempMatrix3;h.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),a.copyFrom(n.matrix);var u=t.currentContext,c=e.gidMap;u.save(),s?(a.multiplyWithOffset(s,-n.scrollX*e.scrollFactorX,-n.scrollY*e.scrollFactorY),h.e=e.x,h.f=e.y,a.multiply(h,l),l.copyToContext(u)):(h.e-=n.scrollX*e.scrollFactorX,h.f-=n.scrollY*e.scrollFactorY,h.copyToContext(u));var d=n.alpha*e.alpha;(!t.antialias||e.scaleX>1||e.scaleY>1)&&(u.imageSmoothingEnabled=!1);for(var f=0;f-1&&this._active.splice(s,1),n.destroy()}for(i=0;i=n.delay)){var s=n.elapsed-n.delay;n.elapsed=n.delay,!n.hasDispatched&&n.callback&&(n.hasDispatched=!0,n.callback.apply(n.callbackScope,n.args)),n.repeatCount>0?(n.repeatCount--,n.elapsed=s,n.hasDispatched=!1):this._pendingRemoval.push(n)}}}},shutdown:function(){var t;for(t=0;t-1&&(e.state=u.REMOVED,s.splice(r,1)):(e.state=u.REMOVED,n.splice(r,1))}for(i.length=0,i=this._add,t=0;t>2],r+=i[(3&n[o])<<4|n[o+1]>>4],r+=i[(15&n[o+1])<<2|n[o+2]>>6],r+=i[63&n[o+2]];return s%3==2?r=r.substring(0,r.length-1)+"=":s%3==1&&(r=r.substring(0,r.length-2)+"=="),r}},function(t,e,i){t.exports={Clone:i(65),Extend:i(17),GetAdvancedValue:i(14),GetFastValue:i(2),GetMinMaxValue:i(1368),GetValue:i(6),HasAll:i(1369),HasAny:i(402),HasValue:i(105),IsPlainObject:i(7),Merge:i(121),MergeRight:i(1370),Pick:i(485),SetValue:i(422)}},function(t,e,i){var n=i(6),s=i(22);t.exports=function(t,e,i,r,o){void 0===o&&(o=i);var a=n(t,e,o);return s(a,i,r)}},function(t,e){t.exports=function(t,e){for(var i=0;i=0&&h<=1&&l>=0&&l<=1}function s(t,e,i){return(e[0]-t[0])*(i[1]-t[1])-(i[0]-t[0])*(e[1]-t[1])}function r(t,e,i){return s(t,e,i)>0}function o(t,e,i){return s(t,e,i)>=0}function a(t,e,i){return s(t,e,i)<0}function h(t,e,i){return s(t,e,i)<=0}t.exports={decomp:function(t){var e=function t(e){var i=[],n=[],s=[],r=[];var o=Number.MAX_VALUE;for(var a=0;a0?function t(e,i){if(0===i.length)return[e];if(i instanceof Array&&i.length&&i[0]instanceof Array&&2===i[0].length&&i[0][0]instanceof Array){for(var n=[e],s=0;su)return console.warn("quickDecomp: max level ("+u+") reached."),i;for(var L=0;L_&&(_+=e.length),S=Number.MAX_VALUE,_3&&n>=0;--n)c(f(t,n-1),f(t,n),f(t,n+1),e)&&(t.splice(n%t.length,1),i++);return i},removeDuplicatePoints:function(t,e){for(var i=t.length-1;i>=1;--i)for(var n=t[i],s=i-1;s>=0;--s)E(n,t[s],e)&&t.splice(i,1)},makeCCW:function(t){for(var e=0,i=t,n=1;ni[e][0])&&(e=n);return!r(f(t,e-1),f(t,e),f(t,e+1))&&(function(t){for(var e=[],i=t.length,n=0;n!==i;n++)e.push(t.pop());for(var n=0;n!==i;n++)t[n]=e[n]}(t),!0)}};var l=[],u=[];function c(t,e,i,n){if(n){var r=l,o=u;r[0]=e[0]-t[0],r[1]=e[1]-t[1],o[0]=i[0]-e[0],o[1]=i[1]-e[1];var a=r[0]*o[0]+r[1]*o[1],h=Math.sqrt(r[0]*r[0]+r[1]*r[1]),c=Math.sqrt(o[0]*o[0]+o[1]*o[1]);return Math.acos(a/(h*c))0&&u.trigger(t,"collisionStart",{pairs:T.collisionStart}),o.preSolvePosition(T.list),s=0;s0&&u.trigger(t,"collisionActive",{pairs:T.collisionActive}),T.collisionEnd.length>0&&u.trigger(t,"collisionEnd",{pairs:T.collisionEnd}),h.update(t.metrics,t),n._bodiesClearForces(m),u.trigger(t,"afterUpdate",v),t},n.merge=function(t,e){if(f.extend(t,e),e.world){t.world=e.world,n.clear(t);for(var i=c.allBodies(t.world),s=0;s0&&(i=s[0].bodyA,n=s[0].bodyB),t.emit(u.COLLISION_START,e,i,n)}),p.on(e,"collisionActive",function(e){var i,n,s=e.pairs;s.length>0&&(i=s[0].bodyA,n=s[0].bodyB),t.emit(u.COLLISION_ACTIVE,e,i,n)}),p.on(e,"collisionEnd",function(e){var i,n,s=e.pairs;s.length>0&&(i=s[0].bodyA,n=s[0].bodyB),t.emit(u.COLLISION_END,e,i,n)})},setBounds:function(t,e,i,n,s,r,o,a,h){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===n&&(n=this.scene.sys.scale.height),void 0===s&&(s=64),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===h&&(h=!0),this.updateWall(r,"left",t-s,e-s,s,n+2*s),this.updateWall(o,"right",t+i,e-s,s,n+2*s),this.updateWall(a,"top",t,e-s,i,s),this.updateWall(h,"bottom",t,e+n,i,s),this},updateWall:function(t,e,i,n,s,r){var o=this.walls[e];t?(o&&v.remove(this.localWorld,o),i+=s/2,n+=r/2,this.walls[e]=this.create(i,n,s,r,{isStatic:!0,friction:0,frictionStatic:0})):(o&&v.remove(this.localWorld,o),this.walls[e]=null)},createDebugGraphic:function(){var t=this.scene.sys.add.graphics({x:0,y:0});return t.setDepth(Number.MAX_VALUE),this.debugGraphic=t,this.drawDebug=!0,t},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=1),this.localWorld.gravity.x=t,this.localWorld.gravity.y=e,void 0!==i&&(this.localWorld.gravity.scale=i),this},create:function(t,e,i,s,r){var o=n.rectangle(t,e,i,s,r);return v.add(this.localWorld,o),o},add:function(t){return v.add(this.localWorld,t),this},remove:function(t,e){Array.isArray(t)||(t=[t]);for(var i=0;in.deltaMax?n.deltaMax:e)/n.delta,n.delta=e),0!==n.timeScalePrev&&(r*=s.timeScale/n.timeScalePrev),0===s.timeScale&&(r=0),n.timeScalePrev=s.timeScale,n.correction=r,n.frameCounter+=1,t-n.counterTimestamp>=1e3&&(n.fps=n.frameCounter*((t-n.counterTimestamp)/1e3),n.counterTimestamp=t,n.frameCounter=0),h.update(i,e,r)}},step:function(t,e){h.update(this.engine,t,e)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(t){var e=t.hasOwnProperty("body")?t.body:t;return null!==a.get(this.localWorld,e.id,e.type)},getAllBodies:function(){return a.allBodies(this.localWorld)},getAllConstraints:function(){return a.allConstraints(this.localWorld)},getAllComposites:function(){return a.allComposites(this.localWorld)},postUpdate:function(){if(this.drawDebug){var t=this.debugConfig,e=this.engine,i=this.debugGraphic,n=a.allBodies(this.localWorld);this.debugGraphic.clear(),t.showBroadphase&&e.broadphase.controller&&this.renderGrid(e.broadphase,i,t.broadphaseColor,.5),t.showBounds&&this.renderBodyBounds(n,i,t.boundsColor,.5),(t.showBody||t.showStaticBody)&&this.renderBodies(n),t.showJoint&&this.renderJoints(),(t.showAxes||t.showAngleIndicator)&&this.renderBodyAxes(n,i,t.showAxes,t.angleColor,.5),t.showVelocity&&this.renderBodyVelocity(n,i,t.velocityColor,1,2),t.showSeparations&&this.renderSeparations(e.pairs.list,i,t.separationColor),t.showCollisions&&this.renderCollisions(e.pairs.list,i,t.collisionColor)}},renderGrid:function(t,e,i,n){e.lineStyle(1,i,n);for(var s=o.keys(t.buckets),r=0;r0){var l=h[0].vertex.x,u=h[0].vertex.y;2===h.length&&(l=(h[0].vertex.x+h[1].vertex.x)/2,u=(h[0].vertex.y+h[1].vertex.y)/2),a.bodyB===a.supports[0].body||a.bodyA.isStatic?e.lineBetween(l-8*a.normal.x,u-8*a.normal.y,l,u):e.lineBetween(l+8*a.normal.x,u+8*a.normal.y,l,u)}}return this},renderBodyBounds:function(t,e,i,n){e.lineStyle(1,i,n);for(var s=0;s1?1:0;h1?1:0;a1?1:0;a1&&this.renderConvexHull(g,e,f,y)}}},renderBody:function(t,e,i,n,s,r,o,a){void 0===n&&(n=null),void 0===s&&(s=null),void 0===r&&(r=1),void 0===o&&(o=null),void 0===a&&(a=null);for(var h=this.debugConfig,l=h.sensorFillColor,u=h.sensorLineColor,c=t.parts,d=c.length,f=d>1?1:0;f1){var s=t.vertices;e.lineStyle(n,i),e.beginPath(),e.moveTo(s[0].x,s[0].y);for(var r=1;r0&&(e.fillStyle(a),e.fillCircle(u.x,u.y,h),e.fillCircle(c.x,c.y,h)),this},resetCollisionIDs:function(){return s._nextCollidingGroupId=1,s._nextNonCollidingGroupId=-1,s._nextCategory=1,this},shutdown:function(){p.off(this.engine),this.removeAllListeners(),v.clear(this.localWorld,!1),h.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});t.exports=y},function(t,e,i){(function(e){i(517);var n=i(29),s=i(17),r={Actions:i(238),Animations:i(637),BlendModes:i(52),Cache:i(638),Cameras:i(641),Core:i(724),Class:i(0),Create:i(783),Curves:i(789),Data:i(792),Display:i(794),DOM:i(811),Events:i(812),Game:i(814),GameObjects:i(907),Geom:i(425),Input:i(1195),Loader:i(1229),Math:i(166),Physics:i(1385),Plugins:i(1298),Renderer:i(1422),Scale:i(1300),ScaleModes:i(231),Scene:i(371),Scenes:i(1301),Structs:i(1303),Textures:i(1304),Tilemaps:i(1306),Time:i(1345),Tweens:i(1347),Utils:i(1364)};r.Sound=i(1374),r=s(!1,r,n),t.exports=r,e.Phaser=r}).call(this,i(516))},function(t,e,i){t.exports={Arcade:i(1255),Matter:i(1386)}},function(t,e,i){t.exports={BodyBounds:i(1375),Factory:i(1376),Image:i(1378),Matter:i(1292),MatterPhysics:i(1418),PolyDecomp:i(1377),Sprite:i(1379),TileBody:i(1291),PhysicsEditorParser:i(1288),PhysicsJSONParser:i(1289),World:i(1383)}},function(t,e,i){var n=i(513),s=i(2),r=i(3);t.exports=function(t,e,i,o){void 0===i&&(i={}),void 0===o&&(o=!0);var a=e.x,h=e.y;if(e.body={temp:!0,position:{x:a,y:h}},[n.Bounce,n.Collision,n.Force,n.Friction,n.Gravity,n.Mass,n.Sensor,n.SetBody,n.Sleep,n.Static,n.Transform,n.Velocity].forEach(function(t){for(var i in t)(n=t[i]).get&&"function"==typeof n.get||n.set&&"function"==typeof n.set?Object.defineProperty(e,i,{get:t[i].get,set:t[i].set}):Object.defineProperty(e,i,{value:t[i]});var n}),e.world=t,e._tempVec2=new r(a,h),i.hasOwnProperty("type")&&"body"===i.type)e.setExistingBody(i,o);else{var l=s(i,"shape",null);l||(l="rectangle"),i.addToWorld=o,e.setBody(l,i)}return e}},function(t,e){t.exports={setBounce:function(t){return this.body.restitution=t,this}}},function(t,e){var i={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var e=0;if(Array.isArray(t))for(var i=0;i1?1:0;s0},intersectPoint:function(t,e,i){i=this.getMatterBodies(i);var n=D.create(t,e),s=[];return M.point(i,n).forEach(function(t){-1===s.indexOf(t)&&s.push(t)}),s},intersectRect:function(t,e,i,n,s,r){void 0===s&&(s=!1),r=this.getMatterBodies(r);var o={min:{x:t,y:e},max:{x:t+i,y:e+n}},a=[];return M.region(r,o,s).forEach(function(t){-1===a.indexOf(t)&&a.push(t)}),a},intersectRay:function(t,e,i,n,s,r){void 0===s&&(s=1),r=this.getMatterBodies(r);for(var o=[],a=M.ray(r,D.create(t,e),D.create(i,n),s),h=0;h0)for(var a=s+1;ae.max.x?i=e.min.x-t.max.x:t.max.xe.max.y?n=e.min.y-t.max.y:t.max.y (http://www.photonstorm.com)", @@ -22,8 +22,10 @@ "buildfb": "webpack --config config/webpack.fb.config.js", "watchfb": "webpack --config config/webpack.fb.config.js --watch", "dist": "webpack --config config/webpack.dist.config.js", - "distT": "webpack --config config/webpack.dist.config.js && npm run toT", - "toT": "@powershell Copy-Item ./dist/phaser.min.js ../phasertest/phaser.min.js", + "distT": "webpack --config config/webpack.dist.config.js && npm run toT1 && npm run toT2 && npm run toT3", + "toT1": "@powershell Copy-Item ./dist/phaser.min.js ../phasertest/phaser.min.js", + "toT2": "@powershell Copy-Item ./dist/phaser.min.js ../orthotest/phaser.min.js", + "toT3": "@powershell Copy-Item ./dist/phaser.min.js ../othertutorial/phaser.min.js ", "distfb": "webpack --config config/webpack.fb.dist.config.js", "distfull": "npm run dist && npm run distfb", "plugin.cam3d": "webpack --config plugins/camera3d/webpack.config.js", diff --git a/src/physics/arcade/tilemap/TileIntersectsBody.js b/src/physics/arcade/tilemap/TileIntersectsBody.js index 9fbd2ba2f..d9e2ab9a1 100644 --- a/src/physics/arcade/tilemap/TileIntersectsBody.js +++ b/src/physics/arcade/tilemap/TileIntersectsBody.js @@ -18,7 +18,6 @@ var TileIntersectsBody = function (tileWorldRect, body) { // Currently, all bodies are treated as rectangles when colliding with a Tile. - return !( body.right <= tileWorldRect.left || body.bottom <= tileWorldRect.top || diff --git a/src/tilemaps/components/CreateFromTiles.js b/src/tilemaps/components/CreateFromTiles.js index a34128ba1..fc33931e5 100644 --- a/src/tilemaps/components/CreateFromTiles.js +++ b/src/tilemaps/components/CreateFromTiles.js @@ -47,7 +47,7 @@ var CreateFromTiles = function (indexes, replacements, spriteConfig, scene, came if (indexes.indexOf(tile.index) !== -1) { - var point = TileToWorldXY(tile.x,tile.y, camera, layer); + var point = TileToWorldXY(tile.x,tile.y, undefined, camera, layer); spriteConfig.x = point.x; spriteConfig.y = point.y; var sprite = scene.make.sprite(spriteConfig); diff --git a/src/tilemaps/components/CullTiles.js b/src/tilemaps/components/CullTiles.js index 50da4096d..f96d35849 100644 --- a/src/tilemaps/components/CullTiles.js +++ b/src/tilemaps/components/CullTiles.js @@ -70,7 +70,7 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) inIsoBounds = function (x,y) { var pos = tilemapLayer.tileToWorldXY(x,y,undefined,camera); - return (pos.x > camera.worldView.x && pos.x < camera.worldView.right) && (pos.y > camera.worldView.y && pos.y < camera.worldView.bottom); + return (pos.x > camera.worldView.x && pos.x < camera.worldView.right - layer.tileWidth) && (pos.y > camera.worldView.y && pos.y < camera.worldView.bottom - layer.tileHeight); }; } } diff --git a/src/tilemaps/components/GetTileAt.js b/src/tilemaps/components/GetTileAt.js index 826c872a4..53d503d44 100644 --- a/src/tilemaps/components/GetTileAt.js +++ b/src/tilemaps/components/GetTileAt.js @@ -39,6 +39,7 @@ var GetTileAt = function (tileX, tileY, nonNull, layer) else { return tile; + } } diff --git a/src/tilemaps/components/GetTileAtWorldXY.js b/src/tilemaps/components/GetTileAtWorldXY.js index 944ad03f5..69324a2e3 100644 --- a/src/tilemaps/components/GetTileAtWorldXY.js +++ b/src/tilemaps/components/GetTileAtWorldXY.js @@ -25,7 +25,7 @@ var WorldToTileXY = require('./WorldToTileXY'); */ var GetTileAtWorldXY = function (worldX, worldY, nonNull, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, camera, layer); + var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); var tileX = point.x; var tileY = point.y; return GetTileAt(tileX, tileY, nonNull, layer); diff --git a/src/tilemaps/components/GetTilesWithinShape.js b/src/tilemaps/components/GetTilesWithinShape.js index e8875108d..e7a6dd99e 100644 --- a/src/tilemaps/components/GetTilesWithinShape.js +++ b/src/tilemaps/components/GetTilesWithinShape.js @@ -49,12 +49,12 @@ var GetTilesWithinShape = function (shape, filteringOptions, camera, layer) else if (shape instanceof Geom.Line) { intersectTest = Intersects.LineToRectangle; } // Top left corner of the shapes's bounding box, rounded down to include partial tiles - var pointStart = WorldToTileXY(shape.left, shape.top, true, camera, layer); + var pointStart = WorldToTileXY(shape.left, shape.top, true, undefined, camera, layer); var xStart = pointStart.x; var yStart = pointStart.y; // Bottom right corner of the shapes's bounding box, rounded up to include partial tiles - var pointEnd = WorldToTileXY(shape.right, shape.bottom, true, camera, layer); + var pointEnd = WorldToTileXY(shape.right, shape.bottom, true, undefined, camera, layer); var xEnd = Math.ceil(pointEnd.x); var yEnd = Math.ceil(pointEnd.y); @@ -77,7 +77,7 @@ var GetTilesWithinShape = function (shape, filteringOptions, camera, layer) for (var i = 0; i < tiles.length; i++) { var tile = tiles[i]; - var point = TileToWorldXY(tile.x, tile.y, camera, layer); + var point = TileToWorldXY(tile.x, tile.y, undefined, camera, layer); tileRect.x = point.x; tileRect.y = point.y; if (intersectTest(shape, tileRect)) diff --git a/src/tilemaps/components/GetTilesWithinWorldXY.js b/src/tilemaps/components/GetTilesWithinWorldXY.js index 6c49c4637..37e15458f 100644 --- a/src/tilemaps/components/GetTilesWithinWorldXY.js +++ b/src/tilemaps/components/GetTilesWithinWorldXY.js @@ -29,15 +29,14 @@ var WorldToTileXY = require('./WorldToTileXY'); */ var GetTilesWithinWorldXY = function (worldX, worldY, width, height, filteringOptions, camera, layer) { - var orientation = layer.orientation; // Top left corner of the rect, rounded down to include partial tiles - var pointStart = WorldToTileXY(worldX, worldY, true, camera, layer, orientation); + var pointStart = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); var xStart = pointStart.x; var yStart = pointStart.y; // Bottom right corner of the rect, rounded up to include partial tiles - var pointEnd = WorldToTileXY(worldX + width, worldY + height, true, camera, layer, orientation); + var pointEnd = WorldToTileXY(worldX + width, worldY + height, false, undefined, camera, layer); var xEnd = Math.ceil(pointEnd.x); var yEnd = Math.ceil(pointEnd.y); diff --git a/src/tilemaps/components/HasTileAtWorldXY.js b/src/tilemaps/components/HasTileAtWorldXY.js index 7965427aa..240512b13 100644 --- a/src/tilemaps/components/HasTileAtWorldXY.js +++ b/src/tilemaps/components/HasTileAtWorldXY.js @@ -24,7 +24,7 @@ var WorldToTileXY = require('./WorldToTileXY'); */ var HasTileAtWorldXY = function (worldX, worldY, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, camera, layer); + var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); var tileX = point.x; var tileY = point.y; return HasTileAt(tileX, tileY, layer); diff --git a/src/tilemaps/components/PutTileAtWorldXY.js b/src/tilemaps/components/PutTileAtWorldXY.js index 3aeb104bd..6b9857d5a 100644 --- a/src/tilemaps/components/PutTileAtWorldXY.js +++ b/src/tilemaps/components/PutTileAtWorldXY.js @@ -28,7 +28,7 @@ var WorldToTileXY = require('./WorldToTileXY'); */ var PutTileAtWorldXY = function (tile, worldX, worldY, recalculateFaces, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, camera, layer); + var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); var tileX = point.x; var tileY = point.y; return PutTileAt(tile, tileX, tileY, recalculateFaces, layer); diff --git a/src/tilemaps/components/RemoveTileAtWorldXY.js b/src/tilemaps/components/RemoveTileAtWorldXY.js index f67740cbb..23a1f5634 100644 --- a/src/tilemaps/components/RemoveTileAtWorldXY.js +++ b/src/tilemaps/components/RemoveTileAtWorldXY.js @@ -26,7 +26,7 @@ var WorldToTileXY = require('./WorldToTileXY'); */ var RemoveTileAtWorldXY = function (worldX, worldY, replaceWithNull, recalculateFaces, camera, layer) { - var point = WorldToTileXY(worldX, worldY, true, camera, layer); + var point = WorldToTileXY(worldX, worldY, true, undefined, camera, layer); var tileX = point.x; var tileY = point.y; return RemoveTileAt(tileX, tileY, replaceWithNull, recalculateFaces, layer); diff --git a/src/tilemaps/mapdata/LayerData.js b/src/tilemaps/mapdata/LayerData.js index fad2ace9a..6f76f530f 100644 --- a/src/tilemaps/mapdata/LayerData.js +++ b/src/tilemaps/mapdata/LayerData.js @@ -110,11 +110,11 @@ var LayerData = new Class({ this.baseTileHeight = GetFastValue(config, 'baseTileHeight', this.tileHeight); /** - * The layer's orientation, necessary to be able to determine q tile's pixelX and pixelY as well as the layer's width and height. + * The layer's orientation, necessary to be able to determine a tile's pixelX and pixelY as well as the layer's width and height. * * @name Phaser.Tilemaps.LayerData#orientation * @type {string} - * @since 3.22.PR_svipal + * @since 3.23beta.PR_svipal */ this.orientation = GetFastValue(config, 'orientation', 'orthogonal'); diff --git a/src/tilemaps/mapdata/MapData.js b/src/tilemaps/mapdata/MapData.js index 85e452686..4e572699d 100644 --- a/src/tilemaps/mapdata/MapData.js +++ b/src/tilemaps/mapdata/MapData.js @@ -117,7 +117,6 @@ var MapData = new Class({ * @since 3.0.0 */ this.orientation = GetFastValue(config, 'orientation', 'orthogonal'); - console.log('map data orientation : ' + this.orientation); /** * Determines the draw order of tilemap. Default is right-down